Tuesday, July 17, 2018

Define a Data Contract Method

1. Right-click SrsRDPContractSample, point to New, and then click Method.

2. Edit the method so that it contains the following code.


1
2
3
4
5
6
7
[DataMemberAttribute("AccountNum")]
public AccountNum parmAccountNum(AccountNum _accountNum
= accountNum)
{
  accountNum = _accountNum;
  return accountNum;
}

3. Save the method and close the editor.

4. Right-click
SrsRDPContractSample, point to New, and then click Method.

5. Edit the method so that it contains the following code.


1
2
3
4
5
6
7
8
[DataMemberAttribute("CustAccountStatement")]
public CustAccountStatement
parmAccountStmt(CustAccountStatement _accountStmt =
accountStmt)
{
  accountStmt = _accountStmt;
  return accountStmt;
}

6. Save the method and close the editor.

7. Right-click
SrsRDPContractSample, point to New, and then click Method.

8. Edit the method so that it contains the following code.


1
2
3
4
5
6
[DataMemberAttribute("InclTax")]
public boolean parmInclTax(boolean _inclTax = inclTax)
{
  inclTax = _inclTax;
  return inclTax;
}

9. Save the method and close the editor.

Best Regards,
Hossein Karimi

No comments:

Post a Comment

Configure the Firewall on the Enterprise Portal Server

After you install Enterprise Portal, enable Web Server (HTTP) in Windows Firewall. If you do not enable the web server in Windows Firewall...