SSRS : Contract Class & Debug it

Hi,

Below is the sample code to Develop the contract class.

Here I need to pass the “Date” as the parameter, based on the selected data I need to get the data.

1) [DataContractAttribute]

class SrsRDPContractIndemnity

{

StartDate        tillDate;

}

2)  [DataMemberAttribute(“Date”)]

public StartDate asOfDate(StartDate _tilldate = today())

{

tillDate = _tilldate;

return tillDate;

}

Debug the contact class: 

static void SSRS_ContractclsDEBUG(Args _args)

{

ProdRouteTrans  prodRouteTrans;

//ACWAPIPETotalItemProdPerMonthTmp  acwaPIPETotalItemProdPerMonthTmp;

MZK_PayrollIndemnityTmp payrollIndemnityTmp;

IndemnityRDP dataprovider = new IndemnityRDP();

SrsRDPContractIndemnity    contract    = new SrsRDPContractIndemnity();

;

contract.asOfDate(today());

dataProvider.parmDataContract(contract);

dataProvider.processReport();

payrollIndemnityTmp = dataProvider.getDate();

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s