| | |
| | | |
| | | KXMLDOMDocument xitemdoc = xitem; |
| | | dw_item.DwUpdateAllToEx(xitemdoc); |
| | | if (xitem.xml() != L"") |
| | | if ((xstring)xitem.xml() != L"") |
| | | { |
| | | KXMLDOMElement eitem = xitemdoc.documentElement(); |
| | | if (eitem) ebase.appendChild(eitem); |
| | |
| | | dw_source.DwUpdateAllToEx(xsourcedoc); |
| | | |
| | | |
| | | if (xsource.xml() != L"") |
| | | if ((xstring)xsource.xml() != L"") |
| | | { |
| | | KXMLDOMElement eitem1 = xitemdoc.documentElement(); |
| | | if (eitem1) ebase.appendChild(eitem1); |
| | |
| | | |
| | | KXMLDOMDocument xcustomdoc = xcustom; |
| | | dw_source.DwUpdateAllToEx(xcustomdoc); |
| | | if (xcustom.xml() != L"") |
| | | if ((xstring)xcustom.xml() != L"") |
| | | { |
| | | KXMLDOMElement eitem2 = xitemdoc.documentElement(); |
| | | if (eitem2) ebase.appendChild(eitem2); |
| | |
| | | } |
| | | } |
| | | xml xcustom; |
| | | |
| | | xstring error5; |
| | | dw_custom.DwUpdateAllToEx(xcustom); |
| | | if (xcustom.xml() != L"") |
| | | |
| | | if ((xstring)xcustom.xml() != L"") |
| | | { |
| | | xcustom = CustomView::UpdateCustomItem(dw_base.GetItemString(1, L"InvoiceNo"), xcustom.xml()); |
| | | if (!xcustom) |
| | | { |
| | | xstring error5 = xcustom.text(); |
| | | error5 = xcustom.text(); |
| | | } |
| | | else |
| | | { |
| | |
| | | xml xcdelement ; |
| | | |
| | | dw_cdelement.DwUpdateAllToEx(xcdelement); |
| | | if (xcdelement.xml() != L"") |
| | | if ((xstring)xcdelement.xml() != L"") |
| | | { |
| | | xcdelement = CustomView::UpdateCustomElement(dw_base.GetItemString(1, L"InvoiceNo"), xcdelement.xml()); |
| | | if (!xcdelement) |
| | |
| | | if (x == L"userSalespersonID") |
| | | { |
| | | xstring sSalespersonID = dw_base.GetItemString(1, L"SalespersonID"); |
| | | hdr->data = sSalespersonID; |
| | | hdr->data = sSalespersonID.c_str(true); |
| | | } |
| | | return 1; |
| | | } |
| | |
| | | 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"); |
| | |
| | | |
| | | int onload() |
| | | { |
| | | |
| | | SetArg(); |
| | | xstring userid = publiccode::GetUser().id; |
| | | //trace(userid); |
| | | haveUpdate = true; |
| | |
| | | if (GetWinParam()) |
| | | { |
| | | xaserverarg arg_param=GetArg(); |
| | | |
| | | xstring xs = arg_param.GetString(); |
| | | InvoiceNo = arg_param.GetArgString(L"InvoiceNo"); |
| | | if (InvoiceNo == L"") InvoiceNo = arg_param.GetArgString(L"EntityNo"); |
| | | if (InvoiceNo == L"") |