| | |
| | | xml x; |
| | | |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | dw_list.DwUpdateAllToEx(x); |
| | | arg.AddArg(L"content", x.xml()); |
| | | if (getUrl(L"/sale/data/AR/update/tran/bank", arg.GetString(), x) != 1) |
| | |
| | | xml x; |
| | | |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | if (getUrl(L"/sale/data/AR/tran/bank", arg.GetString(), x) != 1) |
| | | { |
| | | trace(x.text()); |
| | |
| | | }*/ |
| | | |
| | | xaserverarg arg0 ; |
| | | arg0.setNativePointer(arg0.CreateInstance()); |
| | | |
| | | //arg0.AddArg(L"Action", action,L"xs:xstring"); |
| | | arg0.AddArg(L"EntityName", L"ColorCard",L"xs:xstring"); |
| | | arg0.AddArg(L"EntityIDName", L"ColorCardID",L"xs:xstring"); |
| | |
| | | xml x; |
| | | |
| | | xaserverarg arg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"ColorCardID", id); |
| | | if(xurl::get(L"ColorCard/pref/beforedelete",arg.GetString(),x)!=1) |
| | | { |
| | |
| | | dw_list.DwUpdateAllToEx(x); |
| | | |
| | | xaserverarg arg; |
| | | arg.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | arg.AddArg(L"content",x.xml()); |
| | | |
| | | //trace(x.xml()); |
| | |
| | | dw_list.AcceptText(); |
| | | dw_list.DwUpdateAllToEx(x); |
| | | xaserverarg arg; |
| | | arg.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | arg.AddArg(L"content",x.xml()); |
| | | if(xurl::get(L"/sale/data/Gdn/update/ProParamUpdate", arg.GetString(),x)!=1) |
| | | { |
| | |
| | | xml xi; |
| | | |
| | | xaserverarg argi; |
| | | argi.setNativePointer(argi.CreateInstance()); |
| | | |
| | | if (xurl::get(L"QuickCode/ExchangeRate/import", argi.GetString(), xi) != 1) |
| | | { |
| | | trace(xi.text()); |
| | |
| | | xml x1; |
| | | |
| | | xaserverarg arg1; |
| | | arg1.setNativePointer(arg1.CreateInstance()); |
| | | |
| | | arg1.AddArg(L"id", L"地区"); |
| | | if (xurl::get(L"/sale/data/QuickCode/entity/list", arg1.GetString(), x1) != 1) |
| | | { |
| | |
| | | xml x2; |
| | | |
| | | xaserverarg arg2; |
| | | arg2.setNativePointer(arg2.CreateInstance()); |
| | | |
| | | arg2.AddArg(L"id", L"FND_Currency"); |
| | | if (xurl::get(L"/sale/data/QuickCode/entity/list", arg2.GetString(), x2) != 1) |
| | | { |
| | |
| | | xml x3; |
| | | |
| | | xaserverarg arg3; |
| | | arg3.setNativePointer(arg3.CreateInstance()); |
| | | |
| | | arg3.AddArg(L"id", L"FND_Country"); |
| | | if (xurl::get(L"/sale/data/QuickCode/entity/list", arg3.GetString(), x3) != 1) |
| | | { |
| | |
| | | |
| | | int OnCmdDispatch0(xstring comdid) |
| | | { |
| | | xaserverarg arg = new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xaserverarg arg; |
| | | |
| | | arg = win::GetParam(); |
| | | arg.AddArg(L"comdid",comdid); |
| | | int xitem = treeview::GetSelectedItem(tv_gs.GetId()); |
| | |
| | | |
| | | //alert(xstring(citem)); |
| | | if (citem==0){//树视图有子节点 |
| | | xml x=new xml; |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | xaserverarg arg=new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xml x; |
| | | |
| | | xaserverarg arg; |
| | | |
| | | arg.AddArg(L"parentID",pid); |
| | | //if(xaserver::ExecXQuery(GetServerUrl(),L"[ItemCategoryEx.xq]",arg.GetString(),x)!=1) |
| | | if(url::get(GetEntityName(1)+L"/entity/category",arg.GetString(),x)!=1) |
| | |
| | | int CreateRootTree(){ |
| | | xstring rootid=L"00000000-0000-0000-0000-000000000000"; |
| | | xml x=new xml; |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | |
| | | x.LoadXml(L"<Category HasChild='1'><CategoryID>"+rootid+L"</CategoryID></Category>"); |
| | | int hroot=treeview::InsertItem(tv_gs.GetId(),L"公司产品类别", x.GetXmlDoc().documentElement, 17); |
| | | CreateSubTree(hroot); |
| | |
| | | if (GetParam()) |
| | | { |
| | | int iArgs = GetParam(); |
| | | xaserverarg arg1 = new xaserverarg; |
| | | arg1.setNativePointer(iArgs); |
| | | xaserverarg arg1; |
| | | |
| | | dw_other = new xdwtable; |
| | | dw_other.setNativePointer(arg1.GetArgString(L"dw_other").toInt()); |
| | | dw_prop = new xdwtable; |
| | |
| | | int OnRetrieve() |
| | | { |
| | | xml x ; |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | xaserverarg arg = new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | xaserverarg arg; |
| | | |
| | | arg.AddArg(L"xxx",L"xxx"); |
| | | if (getUrl(L"",arg.GetString(),x)!=1) |
| | | { |
| | |
| | | //trace(val); |
| | | //return 1; |
| | | xaserverarg args; |
| | | args.setNativePointer(args.CreateInstance()); |
| | | |
| | | args.AddArg(L"content", val); |
| | | //trace(val); |
| | | xml x1; |
| | |
| | | xml xs; |
| | | |
| | | xaserverarg args; |
| | | args.setNativePointer(args.CreateInstance()); |
| | | |
| | | args.AddArg(L"Name", Name); |
| | | if (xurl::get(L"/sale/data/ManpowerFile/GetUserName", args.GetString(), xs) != 1) |
| | | { |
| | |
| | | val = xdoc.xml ; |
| | | |
| | | xml xx ; |
| | | xx.setNativePointer(xx.CreateInstance()); |
| | | |
| | | xx.loadXML(val); |
| | | KXMLDOMElement e; |
| | | e = xx.selectSingleNode(L"HrPerson"); |
| | |
| | | if (colname == L"CountryCode") |
| | | { |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"countryCode",coldata); |
| | | xml x; |
| | | |
| | |
| | | int CustomerModify()//跳到客户修改界面 |
| | | { |
| | | //trace(L"asdsad"); |
| | | xaserverarg& arg = *new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xaserverarg arg; |
| | | |
| | | arg.AddArg(L"EntityID", maint::m_EntityID); |
| | | openUrl(L"/sale/view/"+GetEntityName(1)+L"/worknode/customermodify/open", &arg); |
| | | openUrl(L"/sale/view/"+GetEntityName(1)+L"/worknode/customermodify/open", arg); |
| | | //CloseWindow(); |
| | | return 1; |
| | | } |
| | |
| | | |
| | | int OnShare() |
| | | { |
| | | xaserverarg& arg = *new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xaserverarg arg; |
| | | |
| | | int row = dw_detail.GetRow(); |
| | | if(row < 1) return 0; |
| | | xstring PartyID = dw_detail.GetItemString(row,L"PartyID"); |
| | | arg.AddArg(L"EntityID",PartyID); |
| | | arg.AddArg(L"EntityName", L"客户共享"); |
| | | OpenWindow(L"dev:xpage[UserGroupShare.vx]", (LPARAM) & arg); |
| | | OpenWindow(L"dev:xpage[UserGroupShare.vx]", arg); |
| | | return 1; |
| | | } |
| | | |
| | | int OnShareMessage() |
| | | { |
| | | xaserverarg& arg = *new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xaserverarg arg; |
| | | |
| | | int row = dw_detail.GetRow(); |
| | | if(row < 1) return 0; |
| | | xstring PartyID = dw_detail.GetItemString(row,L"PartyID"); |
| | | arg.AddArg(L"PartyID",PartyID); |
| | | OpenWindow(L"dev:xpage[XmShare.Custumer.v3.vx]", (LPARAM)&arg); |
| | | OpenWindow(L"dev:xpage[XmShare.Custumer.v3.vx]", arg); |
| | | |
| | | return 1; |
| | | } |
| | |
| | | { |
| | | xsheet.DeleteSheet(1); |
| | | xstring xp = L"<xframe src='dev:xpage[CustomerGoodsVd.vx]' />"; |
| | | xaserverarg& arg = * new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xaserverarg arg; |
| | | |
| | | arg.AddArg(L"CustomerID",m_EntityID); |
| | | arg.AddArg(L"FROM", L"Customer"); |
| | | arg.AddArg(L"CustomerName", dw_detail.GetItemString(1,L"Name")); |
| | |
| | | xstring value = hdr->data; |
| | | int row = hdr->row; |
| | | //alert(value); |
| | | xaserverarg& arg=*new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xaserverarg arg; |
| | | |
| | | |
| | | if(value == L"上传") |
| | | { |
| | |
| | | |
| | | arg.AddArg(L"entityid",dw.GetGuid(dw.GetRow())); |
| | | |
| | | OpenWindow(L"dev:xpage[maint.Document.Customer.v3.vx]", (LPARAM)&arg); |
| | | OpenWindow(L"dev:xpage[maint.Document.Customer.v3.vx]", arg); |
| | | return 1; |
| | | } |
| | | return 1; |
| | |
| | | { |
| | | xml x; |
| | | xaserverarg arg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"EntityID", ID); |
| | | |
| | | if (getUrl(L"/sale/data/CustomerV3/entity/maint", arg.GetString(), x) != 1) |
| | |
| | | { |
| | | xsheet.DeleteSheet(0); |
| | | xstring xp = L"<xframe src='dev:xpage[CustomerGoodsVd.vx]' />"; |
| | | xaserverarg& arg = *new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xaserverarg arg ; |
| | | |
| | | arg.AddArg(L"CustomerID", m_EntityID); |
| | | arg.AddArg(L"FROM", L"Customer"); |
| | | arg.AddArg(L"CustomerName", dw_detail.GetItemString(1,L"Name")); |
| | |
| | | |
| | | xml x ; |
| | | |
| | | xaserverarg& arg = *new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xaserverarg arg; |
| | | |
| | | arg.AddArg(L"scene",scene,L"xs:xstring"); |
| | | arg.AddArg(L"EntityID",EntityID,L"xs:xstring"); |
| | | arg.AddArg(L"EntityName",GetEntityName(1),L"xs:xstring"); |
| | |
| | | xml x ; |
| | | |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | |
| | | dw_pricelistex.DwUpdateAllToEx(x); |
| | | if(x.xml()!=L"") |
| | |
| | | xml xp ; |
| | | |
| | | xaserverarg arg_pic; |
| | | arg_pic.setNativePointer(arg_pic.CreateInstance()); |
| | | |
| | | arg_pic.AddArg(L"SKUNo", skuno); |
| | | |
| | | xstring res = L"/sale/data/ProductLibrary3/pref/picture/imagelistSKUNo"; |
| | |
| | | dw_goods.SetItemDisplayString(nRow, L"KOPCode", L"CTNS"); |
| | | |
| | | xaserverarg arg3; |
| | | arg3.setNativePointer(arg3.CreateInstance()); |
| | | |
| | | int row3 = dw_goods.GetRow(); |
| | | if (row3 < 1) return 0; |
| | | dw_goods.SetItemString(nRow, L"SKUNo", dw_goods.GetItemString(row3, L"SKUNo")); |
| | |
| | | xml xp ; |
| | | |
| | | xaserverarg arg_pic; |
| | | arg_pic.setNativePointer(arg_pic.CreateInstance()); |
| | | |
| | | arg_pic.AddArg(L"SKUID", skuid); |
| | | if (xurl::get(L"/sale/data/ProductLibrary3/pref/picture/imagelistSKU", arg_pic.GetString(), xp) != 1) |
| | | { |
| | |
| | | xml xp ; |
| | | |
| | | xaserverarg arg_pic; |
| | | arg_pic.setNativePointer(arg_pic.CreateInstance()); |
| | | |
| | | arg_pic.AddArg(L"SKUID", skuid); |
| | | arg_pic.AddArg(L"CustomerID", m_customer); |
| | | arg_pic.AddArg(L"CustomerItemNo", customerItemNo); |
| | |
| | | xml x ; |
| | | |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"no",sno); |
| | | if(xurl::get(L"/sale/data/SO/goods/goodslib/ChildFolderList", arg.GetString(),x)!=1) |
| | | { |
| | |
| | | xml x; |
| | | |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"count", L"1" ); |
| | | arg.AddArg(L"type", typ ); |
| | | if(xurl::get(L"/sale/data/SO/goods/usegoods/goodslib/asknos", arg.GetString(),x)!=1)return L""; |
| | |
| | | dw_list.AcceptText(); |
| | | dw_list.DwUpdateAllToEx(x); |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"content",x.xml()); |
| | | if(xurl::get(L"/sale/data/ProductLibrary3/update/newestproduct", arg.GetString(),x)!=1) |
| | | { |
| | |
| | | return 0; |
| | | }*/ |
| | | |
| | | xaserverarg& arg = *new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xaserverarg arg ; |
| | | |
| | | trace(EntityID); |
| | | arg.AddArg(L"GDNID", EntityID); |
| | | OpenWindow(L"dev:xpage[GDNDelay.vx]", (LPARAM)&arg); |
| | | OpenWindow(L"dev:xpage[GDNDelay.vx]", arg); |
| | | |
| | | } |
| | | else if (comdid == L"action:bill.SourceRemark") return OnSourceRemark(); |
| | |
| | | |
| | | xml x; |
| | | |
| | | xaserverarg& arg = *new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xaserverarg arg ; |
| | | |
| | | arg.AddArg(L"scene", scene, L"xs:xstring"); |
| | | arg.AddArg(L"EntityID", EntityID, L"xs:xstring"); |
| | | arg.AddArg(L"EntityName", EntityName, L"xs:xstring"); |
| | |
| | | CheckCDLine(); |
| | | CheckGW(); |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"EntityName", L"GDN3", L""); |
| | | arg.AddArg(L"EntityID", InvoiceID, L""); |
| | | arg.AddArg(L"EntityNo", dw_base.GetItemString(1, L"InvoiceNo"), L""); |
| | |
| | | xml x ; |
| | | |
| | | xaserverarg arg;//放置参数 |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"gsid", gsid); |
| | | if (getUrl(L"/sale/data/GraduationSchool/data/delete", arg.GetString(), x) != 1) |
| | | { |
| | |
| | | |
| | | xml x ; |
| | | xaserverarg arg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | xstring str = L"<Item update.modify='1' update.delete='1' guid='" + id + L"'/>"; |
| | | arg.AddArg(L"content", str); |
| | | if (xurl::get(L"/sale/data/ProductLibrary/image/update", arg.GetString(), x) != 1) |
| | |
| | | xstring guid = e.getAttribute(L"guid"); |
| | | if (guid == L"") return 1; |
| | | xaserverarg arg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"guid", e.getAttribute(L"guid")); |
| | | if (name == L"个人产品") |
| | | arg.AddArg(L"FolderID", e.getAttribute(L"guid")); |
| | |
| | | } |
| | | content += L"</data>"; |
| | | xaserverarg carg; |
| | | carg.setNativePointer(carg.CreateInstance()); |
| | | |
| | | carg.AddArg(L"content", content); |
| | | OpenWindow(L"dev:xpage[SO.Simulation.Import.vx]", (LPARAM) & carg); |
| | | OpenWindow(L"dev:xpage[SO.Simulation.Import.vx]", carg); |
| | | return 1; |
| | | } |
| | | else if (comdid == L"xmEnquiry") |
| | |
| | | } |
| | | content += L"</data>"; |
| | | xaserverarg carg; |
| | | carg.setNativePointer(carg.CreateInstance()); |
| | | |
| | | carg.AddArg(L"content", content); |
| | | OpenWindow(L"dev:xpage[Enquiry.Import.vx]", (LPARAM)&carg); |
| | | OpenWindow(L"dev:xpage[Enquiry.Import.vx]", carg); |
| | | return 1; |
| | | } |
| | | else if (comdid == L"xmPurchar") |
| | |
| | | xml xp; |
| | | |
| | | xaserverarg arg_pic; |
| | | arg_pic.setNativePointer(arg_pic.CreateInstance()); |
| | | |
| | | arg_pic.AddArg(L"SKUID",skuid); |
| | | if(xurl::get(L"/sale/data/ProductLibrary3/pref/picture/imagelistSKU",arg_pic.GetString(),xp)!=1) |
| | | { |
| | |
| | | xml xp; |
| | | |
| | | xaserverarg arg_pic; |
| | | arg_pic.setNativePointer(arg_pic.CreateInstance()); |
| | | |
| | | arg_pic.AddArg(L"SKUID",skuid); |
| | | arg_pic.AddArg(L"CustomerID",m_customer); |
| | | arg_pic.AddArg(L"CustomerItemNo",customerItemNo); |
| | |
| | | |
| | | xstring items = GetPurchedItems(); |
| | | xaserverarg arg4 ; |
| | | arg4.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | trace(items); |
| | | arg4.AddArg(L"value", items); |
| | | OpenWindow(L"dev:xpage[QuoteFilePurched.vx]", arg4); |
| | |
| | | |
| | | xstring items = GetPurchItems(); |
| | | xaserverarg arg4 ; |
| | | arg4.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | trace(items); |
| | | arg4.AddArg(L"value", items); |
| | | OpenWindow(L"dev:xpage[QuoteFilePurch.vx]", arg4); |
| | |
| | | |
| | | xstring items = GetPurchItems(); |
| | | xaserverarg arg4 ; |
| | | arg4.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | trace(items); |
| | | arg4.AddArg(L"value", items); |
| | | OpenWindow(L"dev:xpage[QuoteFilePurch.vx]", arg4); |
| | |
| | | if (dw_cell.GetItemString(row, colItemNo) != L"") |
| | | { |
| | | xaserverarg argx ; |
| | | argx.setNativePointer(argx.CreateInstance()); |
| | | |
| | | argx.AddArg(L"GoodsNo", dw_cell.GetItemString(row, colItemNo)); |
| | | OpenWindow(L"dev:xpage[CustomerItemNoList.vx]", argx); |
| | | if (argx.GetArgString(L"action") != L"ok") return 1; |
| | |
| | | { |
| | | xml xp ; |
| | | xaserverarg arg_pic ; |
| | | arg_pic.setNativePointer(arg_pic.CreateInstance()); |
| | | |
| | | arg_pic.AddArg(L"SKUNo", goodsno); |
| | | |
| | | ximageview im = GetControl(L"frame:im1"); |
| | |
| | | { |
| | | xml xp ; |
| | | xaserverarg arg_pic ; |
| | | arg_pic.setNativePointer(arg_pic.CreateInstance()); |
| | | |
| | | arg_pic.AddArg(L"GoodsNo", goodsno); |
| | | |
| | | ximageview im = GetControl(L"frame:im1"); |
| | |
| | | if (dw_cell.GetItemString(ARow, colItemNo) != L"") |
| | | { |
| | | xaserverarg argx ; |
| | | argx.setNativePointer(argx.CreateInstance()); |
| | | |
| | | argx.AddArg(L"GoodsNo", dw_cell.GetItemString(ARow, colItemNo)); |
| | | OpenWindow(L"dev:xpage[CustomerItemNoList.vx]", argx); |
| | | if (argx.GetArgString(L"action") != L"ok") |
| | |
| | | { |
| | | xml x; |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"guid", guid); |
| | | if (xurl::get(L"/sale/data/SO/goods/goodsprop/list", arg.GetString(), x) != 1) |
| | | { |
| | |
| | | xstring guid = e.getAttribute(L"guid"); |
| | | if (guid == L"") return 1; |
| | | xaserverarg arg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"guid", e.getAttribute(L"guid")); |
| | | arg.AddArg(L"No", e.getAttribute(L"CategoryNo")); |
| | | arg.AddArg(L"CName", e.getAttribute(L"CName")); |
| | |
| | | xml x; |
| | | |
| | | xaserverarg args ; |
| | | args.setNativePointer(args.CreateInstance()); |
| | | |
| | | args.AddArg(L"myurl", myurl); |
| | | args.AddArg(L"name", ret); |
| | | args.AddArg(L"filepath", sname); |
| | |
| | | return 0; |
| | | |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"filepath", file); |
| | | xml x ; |
| | | if (xurl::get(L"/sale/data/TDocument3/file/delete", arg.GetString(), x) != 1) |
| | |
| | | alert(L"请先保存数据!"); |
| | | return 1; |
| | | } |
| | | xaserverarg& arg = * new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xaserverarg arg; |
| | | |
| | | arg.AddArg(L"EntityName", L"SaleOrder", L""); |
| | | arg.AddArg(L"EntityID", dw_base.GetItemString(1, L"SOID"), L""); |
| | | arg.AddArg(L"EntityNo", dw_base.GetItemString(1, L"SONo"), L""); |
| | | openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg); |
| | | openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", arg); |
| | | return 1; |
| | | } |
| | | else if (comdid == L"xmSaveEx" && bupdate) |
| | |
| | | ximageview im = GetControl(L"im1"); |
| | | |
| | | KXMLDOMDocument xp; |
| | | xaserverarg& arg_pic = *new xaserverarg; |
| | | arg_pic.setNativePointer(arg_pic.CreateInstance()); |
| | | xaserverarg arg_pic ; |
| | | |
| | | arg_pic.AddArg(L"SKUNo", skuno); |
| | | |
| | | xstring res = L"/sale/data/ProductLibrary3/pref/picture/imagelistSKUNo"; |
| | |
| | | xml x; |
| | | |
| | | xaserverarg arg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"guid", sguid); |
| | | arg.AddArg(L"EntityID", sguid); |
| | | // trace(sguid); |
| | |
| | | xml x; |
| | | |
| | | xaserverarg arg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"EntityID", entity); |
| | | |
| | | |
| | |
| | | } |
| | | if (comdid == L"action:bill.Annex") |
| | | { |
| | | xaserverarg& arg = *new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xaserverarg arg ; |
| | | |
| | | arg.AddArg(L"entityid", dw_list.GetItemString(dw_list.GetRow(), L"SupplierID")); |
| | | arg.AddArg(L"ApplyStatus", dw_list.GetItemString(dw_list.GetRow(), L"ApplyStatus")); |
| | | |
| | | OpenWindow(L"dev:xpage[maint.Document.Supplier.v3.vx]", (LPARAM)&arg); |
| | | OpenWindow(L"dev:xpage[maint.Document.Supplier.v3.vx]", arg); |
| | | return 1; |
| | | } |
| | | if (comdid == L"action:bill.AnnexEx") |
| | | { |
| | | xaserverarg& arg4 = *new xaserverarg; |
| | | arg4.setNativePointer(arg4.CreateInstance()); |
| | | xaserverarg arg4; |
| | | |
| | | arg4.AddArg(L"entityid", dw_list.GetItemString(dw_list.GetRow(), L"SupplierID")); |
| | | //arg4.AddArg(L"ApplyStatus",dw_list.GetItemString(dw_list.GetRow(),L"ApplyStatus")); |
| | | |
| | | //OpenWindow(L"dev:xpage[maint.Document.Customer.v3.vx]", p4); |
| | | OpenWindow(L"dev:xpage[maint.Document.SupplierSD.v3.vx]", (LPARAM)&arg4); |
| | | OpenWindow(L"dev:xpage[maint.Document.SupplierSD.v3.vx]", arg4); |
| | | return 1; |
| | | } |
| | | if (comdid == L"action:bill.checked") |
| | |
| | | xml x; |
| | | |
| | | xaserverarg arg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"pid", id); |
| | | arg.AddArg(L"tree", xid); |
| | | //if(xaserver::ExecXQuery(GetServerUrl(),L"[selectRoleInt.xq]",arg.GetString(),x)!=1) |
| | |
| | | xml x; |
| | | |
| | | xaserverarg arg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"id", id); |
| | | trace(id); |
| | | arg.AddArg(L"flag", L"-1"); |
| | |
| | | |
| | | int OnSetTree(int hItem, xstring src) |
| | | { |
| | | xml x=new xml; |
| | | xml x; |
| | | |
| | | xaserverarg arg; |
| | | ; |
| | |
| | | xaserverarg arg; |
| | | |
| | | dw_1.DwUpdateAllToEx(x); |
| | | xml x0 = new xml; |
| | | xml x0; |
| | | |
| | | x0.loadXML(L"<data/>"); |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | arg_param.setNativePointer(arg_param.CreateInstance()); |
| | | |
| | | m_EntityName = L"SO"; |
| | | m_EntityID = L"00000000-0000-0000-0000-000000000000"; |
| | | } |
| | |
| | | { |
| | | KXMLDOMDocument x; |
| | | xaserverarg arg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"EntityNo", EntityNo); |
| | | arg.AddArg(L"EntityID", EntityID); |
| | | arg.AddArg(L"Subject", Subject); |
| | |
| | | //xml |
| | | //x.setNativePointer(xml::CreateInstance()); |
| | | xaserverarg arg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"AssignmentID", sguid); |
| | | if (xaserver::ExecXQuery(L"", L"[getAssignment.xq]", arg.GetString(), x) == 1) |
| | | { |