- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
public void CreateContract( string session_id, string sOrganizationCode, string sOrganizationName, string sContractNumber, string sClientCode, string sClientName,
double dSum , string sCurrencyCode, string sCurrencyName, double dSumUSD, string sdateContractDate, string sdateContractDueDate, string sResponsibleCode,
string sResponsibleName, string sCuratorCode, string sCuratorName, string sContractType, string sProjectCode, string sDocName , out int nDocNumber, out string sURL,
string sSuperiorContract, string sProtocolNum, string sProcurementType, string sTRU){
nDocNumber = 0;
sURL = string.Empty;
BusinessObject business_object = LoadBusinessObject(session_id);
if (business_object == null)
goto end_of_method;
try
{
business_object.CreateContract(sOrganizationCode, sOrganizationName,sContractNumber,sClientCode,sClientName,dSum,sCurrencyCode,sCurrencyName,
dSumUSD,sdateContractDate,sdateContractDueDate,sResponsibleCode,sResponsibleName,sCuratorCode,sCuratorName,sContractType,
sProjectCode,sDocName,ref nDocNumber,ref sURL, sSuperiorContract,sProtocolNum,sProcurementType,sTRU);
}
catch(Exception e)
{ //...}
end_of_method:
//а дальше код пишет логи)
}