| | |
| | | dw_list.DwUpdateAllToEx(x); |
| | | |
| | | //trace(x.xml()); |
| | | xml x0 = ViewObject::MakeXml(); |
| | | xml x0; |
| | | x0.loadXML(L"<data/>"); |
| | | |
| | | KXMLDOMNodeList t = x.selectNodes(L"data/Item[@update.modify or @update.delete]"); |
| | |
| | | { |
| | | e1.appendChild(t.item(i)); |
| | | } |
| | | xaserverarg arg = ViewObject::MakeArg(); |
| | | xaserverarg arg; |
| | | arg.AddArg(L"content", x0.xml()); |
| | | |
| | | if (xurl::get(L"/sale/data/AR/update/item", arg.GetString(), x) != 1) |
| | |
| | | return 0; |
| | | } |
| | | |
| | | int OnCombboChanged(ref TCommandEvent evt, int lParam) |
| | | int OnCombboChanged(TEvent * evt, int lParam) |
| | | { |
| | | xstring id = L""; |
| | | xstring name = L""; |
| | | int h = xcombobox::GetCurSel(evt.hCtrl); |
| | | int h = xcombobox::GetCurSel(evt->command.hCtrl); |
| | | if (h > -1) |
| | | { |
| | | xstring txt = xcombobox::GetLBText(evt.hCtrl, h); |
| | | xstring txt = xcombobox::GetLBText(evt->command.hCtrl, h); |
| | | if (txt == L"限定客户") |
| | | { |
| | | OnRetrieve(1); |
| | |
| | | dw_unexch.AcceptText(); |
| | | int row = dw_unexch.GetRow(); |
| | | |
| | | int hCursor = xutil::SetCursorWait(); |
| | | HCURSOR hCursor = xutil::SetCursorWait(); |
| | | double AdjustAmount = dw_unexch.GetItemDouble(row, L"AdjustAmount");//调整数 |
| | | double amted = dw_unexch.GetItemDouble(row, L"实收汇金额");//往次 |
| | | double samt = dw_unexch.GetItemDouble(row, L"应收汇金额");//应收汇金额 |
| | |
| | | } |
| | | double amt1 = dw_obj.GetItemDouble(dw_obj.GetRow(), L"BalanceAmt"); |
| | | |
| | | int v1 = (amt * 100.0).toString().toInt(); |
| | | int v2 = (amt1 * 100.0).toString().toInt(); |
| | | int v1 = xstring(amt * 100.0).toInt(); |
| | | int v2 = xstring(amt1 * 100.0).toInt(); |
| | | if (v2 > v1) |
| | | { |
| | | dw_unexch.ItemChangeTo(row, L"Amount", xstring(amt)); |
| | |
| | | xstring path1 = L"/sale/data/AR/item/exch/listwithcustomer"; |
| | | if (customer == 0) path1 = L"/sale/data/AR/item/exch/list"; |
| | | |
| | | arg.AddArg(L"QueryTxt", GetControl(L"sle_search").GetText()); |
| | | arg.AddArg(L"QueryTxt", xcontrol(GetControl(L"sle_search")).GetText()); |
| | | arg.AddArg(L"QueryArg", GetQueryArg()); |
| | | trace(L"SEID+++L" + SEID + L"+++QueryTxt+++L" + GetControl(L"sle_search").GetText() + L"+++QueryArg+++L" + GetQueryArg()); |
| | | trace(L"SEID+++L" + SEID + L"+++QueryTxt+++L" + xcontrol(GetControl(L"sle_search")).GetText() + L"+++QueryArg+++L" + GetQueryArg()); |
| | | if (getUrl(path, arg.GetString(), x) != 1) |
| | | { |
| | | trace(L"错误信息1=L" + xstring(x.text())); |
| | |
| | | /*xaserverarg arg = GetParam(); |
| | | xstring CustomerIDOne = arg.GetArgString(L"CustomerID"); |
| | | xstring SEIDOne = arg.GetArgString(L"SEID");*/ |
| | | if (GetWinParam())dw_obj = GetParam(); |
| | | if (GetWinParam())dw_obj = *(xdwgrid*)GetWinParam(); |
| | | OnAttachEvent(); |
| | | |
| | | return 1; |