| | |
| | | |
| | | //if(dw_base.GetItemString(1,L"GoodsSource") == L"") |
| | | //{ |
| | | // alert(L"请选择货物产地(货物产地:开票工厂金额最大的工厂所属地)L"); |
| | | // alert(L"请选择货物产地(货物产地:开票工厂金额最大的工厂所属地)"); |
| | | // return 0; |
| | | // } |
| | | |
| | |
| | | xstring ClassifyID = dw_custom.GetItemString(k, L"ClassifyID"); |
| | | xstring ClassifyName = dw_custom.GetItemString(k, L"CustName"); |
| | | xstring GroupNo = dw_custom.GetItemString(k, L"GroupNo"); |
| | | if (GroupNo != L"") ClassifyName += ClassifyName + L"(L" + GroupNo + L")L"; |
| | | if (GroupNo != L"") ClassifyName += ClassifyName + L"(" + GroupNo + L")"; |
| | | |
| | | double LegalQty = dw_custom.GetItemDouble(k, L"LegalQty"); |
| | | |
| | |
| | | xstring ClassifyID = dw_custom.GetItemString(k, L"ClassifyID"); |
| | | xstring ClassifyName = dw_custom.GetItemString(k, L"CustName"); |
| | | xstring GroupNo = dw_custom.GetItemString(k, L"GroupNo"); |
| | | if (GroupNo != L"") ClassifyName += ClassifyName + L"(L" + GroupNo + L")L"; |
| | | if (GroupNo != L"") ClassifyName += ClassifyName + L"(" + GroupNo + L")"; |
| | | double VQuantity = dw_custom.GetItemDouble(k, L"Quantity"); |
| | | double VAmount = dw_custom.GetItemDouble(k, L"Amount"); |
| | | double qty = 0.0; |
| | |
| | | if (x == L"userSalespersonID") |
| | | { |
| | | xstring sSalespersonID = dw_base.GetItemString(1, L"SalespersonID"); |
| | | hdr->data = sSalespersonID; |
| | | hdr->data = sSalespersonID.c_str(true); |
| | | } |
| | | return 1; |
| | | } |
| | |
| | | if (o.selectSingleNode(L"VATRates")) |
| | | { |
| | | xstring str1 = o.selectSingleNode(L"VATRates").text(); |
| | | if (str1.find(L",L") >= 0) str1 = str1.left(str1.find(L",L")); |
| | | if (str1.find(L",") >= 0) str1 = str1.left(str1.find(L",")); |
| | | dw_custom.SetItemString(i, L"VATRates", str1); |
| | | } |
| | | if (o.selectSingleNode(L"CustEName")) |
| | |
| | | if(o.selectSingleNode(L"VATRates")) |
| | | { |
| | | xstring str1 = o.selectSingleNode(L"VATRates").text(); |
| | | if(str1.find(L",L")) str1 = str1.left(str1.find(L",L")); |
| | | if(str1.find(L",")) str1 = str1.left(str1.find(L",")); |
| | | dw_custom.SetItemString(i,L"VATRates",str1); |
| | | } |
| | | if(o.selectSingleNode(L"CustEName")) |
| | |
| | | if (o.selectSingleNode(L"VATRates")) |
| | | { |
| | | xstring str1 = o.selectSingleNode(L"VATRates").text(); |
| | | if (str1.find(L",L")) str1 = str1.left(str1.find(L",L")); |
| | | if (str1.find(L",")) str1 = str1.left(str1.find(L",")); |
| | | dw_custom.SetItemString(i, L"VATRates", str1); |
| | | dw_customex.SetItemString(i, L"VATRates", str1); |
| | | } |
| | |
| | | } |
| | | else if (SONos.find(SONo) < 0) |
| | | { |
| | | SONos += L",L" + SONo; |
| | | SONos += L"," + SONo; |
| | | costs += cost; |
| | | } |
| | | } |
| | |
| | | xstring CustomerPONo = t.selectSingleNode(L"CustomerPONo").text(); |
| | | if (OrderNos == L"") |
| | | OrderNos = CustomerPONo; |
| | | else if (OrderNos.find(CustomerPONo) < 0) OrderNos += L",L" + CustomerPONo; |
| | | else if (OrderNos.find(CustomerPONo) < 0) OrderNos += L"," + CustomerPONo; |
| | | } |
| | | |
| | | if (t.selectSingleNode(L"OperationTips")) |
| | |
| | | arg.AddArg(L"CustomerID", dw_base.GetItemString(1, L"CustomerID")); |
| | | arg.AddArg(L"InvoiceNo", dw_base.GetItemString(1, L"InvoiceNo")); |
| | | arg.AddArg(L"SONo", dw_base.GetItemString(1, L"")); |
| | | int p = arg; |
| | | if (dw_base.GetItemString(1, L"CustomerID") == L"") |
| | | { |
| | | OpenWindow(L"dev:xpage[SelectItem.New.GDN.vx]", arg); |
| | |
| | | } |
| | | else |
| | | { |
| | | OpenWindow(L"dev:xpage[select.gdnitem.so.vx]", p); |
| | | OpenWindow(L"dev:xpage[select.gdnitem.so.vx]", arg); |
| | | } |
| | | |
| | | xstring str = arg.GetArgString(L"items"); |
| | |
| | | } |
| | | else if (SONo_s.find(SONo) < 0) |
| | | { |
| | | SONo_s += L",L" + SONo; |
| | | SONo_s += L"," + SONo; |
| | | } |
| | | xstring PONo = dw_item.GetItemString(k, L"PONo"); |
| | | if (PONo_s == L"") |
| | |
| | | } |
| | | else if (PONo_s.find(PONo) < 0) |
| | | { |
| | | PONo_s += L",L" + PONo; |
| | | PONo_s += L"," + PONo; |
| | | } |
| | | } |
| | | dw_base.SetItemString(1, L"OrderNos", PONo_s); |