Hi all,
Please explain this,
var cmd = new TsoapCommand('newContractForNewCustomer');
see the code:
if(newCustomer)
{
var cmd = new TsoapCommand('newContractForNewCustomer');
cmd.addParam('customerName',document.getElementById('txtname').value);
cmd.addParam('street',document.getElementById('txtstreet').value);
cmd.addParam('postalCode',document.getElementById('txtPostCode').value);
cmd.addParam('city',document.getElementById('txtCity').value);
cmd.addParam('country',document.getElementById('txtCountry').value);
cmd.addParam('mobilePhone',document.getElementById('txtmobilePhone').value);
cmd.addParam('IDNumber',document.getElementById('txtIDNumber').value);
cmd.addParam('email', document.getElementById('txtEmail').value);
cmd.addParam('emailinvoice', document.getElementById('txtEmailInvoice').value);
if (document.getElementById('chksendInvoiceYes').checked)
sendInvocie = "Yes";
else if (document.getElementById('chksendInvoiceNo').checked)
sendInvocie = "No";
cmd.addParam('sendinvoice', sendInvocie);
cmd.addParam('ccCardType',strcctype);
cmd.addParam('ccNumber',document.getElementById('txtCCNumber').value);
cmd.addParam('ccExpireDate',expiredateFull);
cmd.addParam('ccHolderName',document.getElementById('txtCCHolderName').value);
cmd.addParam('ccHolderSSN',document.getElementById('txtCCHolderSSN').value);
cmd.addParam('contractDate',document.getElementById('textboxforcondate').value);
cmd.addParam('noticeDate',document.getElementById('textboxfornoticedate').value);
cmd.addParam('terminationDate',document.getElementById('textboxforterminationdate').value);
cmd.addParam('ActterminationDate',document.getElementById('textboxforActterminationdate').value);
cmd.addParam('unitID',strUnitId);
cmd.addParam('unitNumber',strunitnumber);
cmd.addParam('unitPrice',document.getElementById('textboxforunitprice').value);
cmd.addParam('monthlyRent',"");
cmd.addParam('TenantRight',document.getElementById('txtTenantRight').innerText);
cmd.addParam('customerComments',document.getElementById('txtCustComment').innerText);
cmd.addParam('custDiscountAmount',document.getElementById('txtfordiscountamnt').value);
cmd.addParam('netPayment',document.getElementById('txtfornetprice').value);
cmd.addParam('signatureDate',document.getElementById('txtsignature').value);
cmd.addParam('bindingUntilDate',document.getElementById('txtbindingdate').value);
cmd.addParam('vacancyDate', document.getElementById('txtvacancydate').value);
cmd.addParam('EvictionNoticedate', document.getElementById('txtEvictionNoticedate').value);
cmd.addParam('EvictionNumber', document.getElementById('txtEvictionNumber').value);
cmd.addParam('EstEviction', document.getElementById('txtEstEviction').value);
cmd.addParam('ActEviction', document.getElementById('txtActEviction').value);
cmd.addParam('Communication', document.getElementById('txtCommunication').innerText);
cmd.addParam('userName', userName);
var strPayType = document.getElementById('ddPaymentType1').selectedIndex;
cmd.addParam('PaymentType', document.getElementById('ddPaymentType1').options[strPayType].value);
result = cmd.send('SbWebService.asmx');
}
Thanks in advance.