| | |
| | | dw_2.AcceptText(); |
| | | xstring error; |
| | | xstring str; |
| | | xml x ; |
| | | xaserverarg arg ; |
| | | |
| | | |
| | | xml x; |
| | | xaserverarg arg; |
| | | |
| | | dw_1.DwUpdateAllToEx(x); |
| | | xml x0 = new xml; |
| | | xml x0; |
| | | |
| | | x0.loadXML(L"<data/>"); |
| | | |
| | |
| | | int row = hdr.row; |
| | | |
| | | if(value==L"") return 1; |
| | | if(colname==L"VATAmount"){ |
| | | if(colname==L"VATAmount") |
| | | { |
| | | double VATAmount=dw_1.GetItemDouble(row,L"VATAmount"); |
| | | double billAmtt= dw_1.GetItemDouble(row,L"VATBillAmount"); |
| | | |
| | |
| | | end if |
| | | |
| | | if ls_comName <> '产品部' then |
| | | this.setitem(row,'billamt',dec(this.Describe(L"evaluate('notifybuyamt - if(isnull(kkamt),0,kkamt) + if(isnull(dkamt),0,dkamt)',L"+xstring(row)+L")L"))) |
| | | this.setitem(row,'billamt',dec(this.Describe(L"evaluate('notifybuyamt - if(isnull(kkamt),0,kkamt) + if(isnull(dkamt),0,dkamt)',L"+xstring(row)+L")"))) |
| | | else |
| | | this.setitem(row,'billamt',dec(this.Describe(L"evaluate('prd_nbuyamt - if(isnull(kkamt),0,kkamt) + if(isnull(dkamt),0,dkamt)',L"+xstring(row)+L")L"))) |
| | | this.setitem(row,'billamt',dec(this.Describe(L"evaluate('prd_nbuyamt - if(isnull(kkamt),0,kkamt) + if(isnull(dkamt),0,dkamt)',L"+xstring(row)+L")"))) |
| | | end if |
| | | |
| | | ll_decrate = this.getitemdecimal(row,'retax') |
| | |
| | | int OnRetrieve() |
| | | { |
| | | xml x; |
| | | |
| | | xaserverarg arg ; |
| | | xaserverarg arg; |
| | | |
| | | arg.AddArg(L"QueryTxt",xcontrol(GetControl(L"sle_search")).GetText()); |
| | | arg.AddArg(L"QueryArg",L"<arg/>"); |
| | |
| | | |
| | | |
| | | xml x; |
| | | |
| | | |
| | | xaserverarg arg = GetArg(); |
| | | if(arg) |
| | | { |
| | |
| | | } |
| | | OnAttachEvent(); |
| | | //OnRetrieve(); |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | int onloaded() |
| | | { |
| | | //SetAgent(); |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | }; |