Merge branch 'master' of http://116.62.18.175:6699/r/mis-prj
| | |
| | | xaserverarg arg; |
| | | |
| | | arg.AddArg(L"content", x.xml()); |
| | | |
| | | alert(x.xml()); |
| | | if (xurl::get(L"/sale/data/AP/update", arg.GetString(), x) != 1) |
| | | { |
| | | xstring error = x.text(); |
| | |
| | | |
| | | arg.AddArg(L"content", x.xml()); |
| | | |
| | | //trace(x.xml()); |
| | | alert(x.xml()); |
| | | if (xurl::get(L"/sale/data/AR/update/item", arg.GetString(), x) != 1) |
| | | { |
| | | xstring error = x.text(); |
| | |
| | | dw_list = GetControl(L"dw_list"); |
| | | dw_list.openUrl(L"/sale/view/AR/template/list"); |
| | | |
| | | |
| | | dw_signed = GetControl(L"dw_signed"); |
| | | dw_signed.openUrl(L"/sale/view/AR/template/listFinish"); |
| | | dw_exch = GetControl(L"dw_exch"); |
| | |
| | | int onloaded() |
| | | { |
| | | SetAgent(); |
| | | |
| | | return 1; |
| | | } |
| | | }; |
| | |
| | | { |
| | | dw_list.AcceptText(); |
| | | xml x; |
| | | |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xaserverarg arg; |
| | | dw_list.DwUpdateAllTo(x); |
| | | arg.AddArg(L"content", x.xml()); |
| | | if (getUrl(L"/sale/data/AR/update/tran/head", arg.GetString(), x) != 1) |
| | |
| | | int OnRetrieve() |
| | | { |
| | | xml x; |
| | | |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | if (getUrl(L"/sale/data/AR/tran/head", arg.GetString(), x) != 1) |
| | | { |
| | | trace(x.text()); |
| | |
| | | { |
| | | HCURSOR hCursor = xutil::SetCursorWait(); |
| | | xml x; |
| | | |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | int row = dw_obj->GetRow(); |
| | | if (row < 1) return 1; |
| | | xstring CustomerID = dw_obj->GetItemString(row, L"CustomerID"); |
| | |
| | | int OnRetrieve() |
| | | { |
| | | xml x; |
| | | |
| | | xaserverarg arg; |
| | | |
| | | //arg.AddArg(L"sType",c_type); |
| | | if (xurl::get(L"OrganizationStruct/list.CompanyInfo", arg.GetString(), x) != 1) |
| | | { |
| | |
| | | val = xdoc.xml(); |
| | | trace(val); |
| | | xaserverarg args; |
| | | args.setNativePointer(args.CreateInstance()); |
| | | args.AddArg(L"content", val); |
| | | args.AddArg(L"dbmap", L"CompanyInfo.dbmap"); |
| | | //trace(m_EntityValueEx); |
| | |
| | | xstring col = dwhdr.colname; |
| | | if (col != L"") { |
| | | xml x; |
| | | |
| | | xaserverarg arg; |
| | | |
| | | xstring query; |
| | | query = L"[IResourceMSSql.xq]"; |
| | | if (col == L"TradeType") { |
| | |
| | | int OnRetrieve() |
| | | { |
| | | xml x; |
| | | |
| | | xaserverarg arg; |
| | | |
| | | arg.AddArg(L"guid", m_sguid); |
| | | //trace(m_sguid); |
| | | //if (xurl::get(L"OrganizationStruct/detail.CompanyInfo",arg.GetString(),x) != 1) |
| | |
| | | xcontrol xc = GetControl(L"QueryTxt"); |
| | | m_sTxt = xc.GetText() + L""; |
| | | xml x; |
| | | |
| | | xaserverarg arg; |
| | | |
| | | arg.AddArg(L"sTxt", m_sTxt); |
| | | if (xurl::post(L"OrganizationStruct/select.Employee", arg.GetString(), x) != 1) |
| | | { |
| | |
| | | { |
| | | xstring query = L"[MSSqlHrJob.xq]"; |
| | | xml x; |
| | | |
| | | xaserverarg arg; |
| | | |
| | | arg.AddArg(L"type", m_type); |
| | | //if (xaserver::ExecXQuery(GetServerUrl(),query,arg.GetString(),x)!=1) |
| | | if (xurl::post(L"OrganizationStruct/list.Job", arg.GetString(), x) != 1) |
| | |
| | | |
| | | xstring val = xdoc.xml(); |
| | | xaserverarg args; |
| | | args.setNativePointer(args.CreateInstance()); |
| | | args.AddArg(L"content", val); |
| | | //trace(val); |
| | | //return 1; |
| | |
| | | val = xdoc.xml(); |
| | | //trace(val); |
| | | xaserverarg args; |
| | | args.setNativePointer(args.CreateInstance()); |
| | | |
| | | args.AddArg(L"content", val); |
| | | //trace(m_EntityValueEx); |
| | | //trace(val); |
| | |
| | | xml x1=new xml; |
| | | |
| | | xaserverarg arg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"sname", sName); |
| | | arg.AddArg(L"type",sType); |
| | | if(xurl::get(L"/sale/data/"+GetEntityName(1)+L"/pref/searchname",arg.GetString(),x1)!=1) |
| | | |
| | | if(xurl::get(L"/sale/data/"+GetEntityName(1)+ L"/pref/searchname",arg.GetString(),x1)!=1) |
| | | { |
| | | xstring error = x1.text(); |
| | | //alert(L"/sale/data/"+GetEntityName(1)+L"/pref/searchname"); |
| | |
| | | int SendNotice() |
| | | { |
| | | xaserverarg arg; |
| | | |
| | | if (dw_list.GetRowCount() < 1) return 1; |
| | | xstring Subject = L"编号:" + dw_list.GetItemString(dw_list.GetRow(), L"SKUNo") + L" 品名:" + dw_list.GetItemString(dw_list.GetRow(), L"CName") + L",申请货号"; |
| | | xstring EntityID = dw_list.GetItemString(dw_list.GetRow(), L"SKUID"); |
| | |
| | | dw_list.DwUpdateAllToEx(x); |
| | | xstring error = L""; |
| | | xaserverarg arg; |
| | | |
| | | arg.AddArg(L"content", x.xml()); |
| | | if (xurl::get(L"/sale/data/ProductLibrary3/update/product/askgoodsno", arg.GetString(), x) != 1) |
| | | { |
| | |
| | | dw_list.SetColumnState(L"PaperPODate", false); |
| | | |
| | | xml x; |
| | | |
| | | |
| | | xaserverarg arg; |
| | | if (arg) |
| | | { |
| | |
| | | dw_2.AcceptText(); |
| | | xstring error; |
| | | xstring str; |
| | | xml x ; |
| | | xaserverarg arg ; |
| | | |
| | | |
| | | xml x; |
| | | xaserverarg arg; |
| | | |
| | | dw_1.DwUpdateAllToEx(x); |
| | | xml x0 = new xml; |
| | |
| | | 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"); |
| | | |
| | |
| | | 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; |
| | | } |
| | | }; |
| | |
| | | |
| | | int OnOk() |
| | | { |
| | | |
| | | xaserverarg arg = GetArg(); |
| | | arg.AddArg(L"process", L"ok"); |
| | | arg.AddArg(L"Quantity", dw_base.GetItemString(1, L"Quantity")); |
| | |
| | | |
| | | int OnSave() |
| | | { |
| | | xml x ; |
| | | |
| | | xml x; |
| | | dw_list.AcceptText(); |
| | | dw_list.DwUpdateAllToEx(x); |
| | | xaserverarg arg; |
| | |
| | | |
| | | int RetrieveCustomSource(xstring classifyID, xstring supplierID) |
| | | { |
| | | xml x ; |
| | | |
| | | xml x; |
| | | xaserverarg arg ; |
| | | |
| | | if (GetWinParam()) |