| | |
| | | xdwgrid dw_item; |
| | | xdwgrid dw_goods; |
| | | xnode m_agentNode; //Agent Condition |
| | | xstring InvNo; |
| | | |
| | | public: |
| | | UpdateVatNotifyWin(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} |
| | |
| | | |
| | | int OnSave() |
| | | { |
| | | xml x ; |
| | | |
| | | xml x; |
| | | dw_list.AcceptText(); |
| | | dw_list.DwUpdateAllToEx(x); |
| | | xaserverarg arg = ViewObject::MakeArg(); |
| | | xaserverarg arg; |
| | | arg.AddArg(L"content", x.xml()); |
| | | |
| | | trace(x.xml()); |
| | |
| | | //获取焦点事件,用于重置工具条 |
| | | AttachEvent(L"WM_SETFOCUS", (FEvent)&UpdateVatNotifyWin::OnSetFocus); |
| | | AttachEvent(L"dw_item", L"DWV_ROWFOCUSCHANGED", (FEvent)&UpdateVatNotifyWin::OnRowChanged); |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | int RetrieveCustomSource(xstring classifyID, xstring supplierID) |
| | | { |
| | | xml x ; |
| | | |
| | | xml x; |
| | | xaserverarg arg ; |
| | | |
| | | if (GetWinParam()) |
| | | { |
| | | int pArg = GetArg(); |
| | | |
| | | arg = GetArg(); |
| | | InvNo = arg.GetArgString(L"invoiceno"); |
| | | } |
| | | else |
| | | arg.AddArg(L"invoiceno", L"15HDLD0720"); |
| | | arg.AddArg(L"invoiceno", InvNo); |
| | | |
| | | arg.AddArg(L"ClassifyID", classifyID); |
| | | arg.AddArg(L"SupplierID", supplierID); |
| | |
| | | |
| | | if (GetWinParam()) |
| | | { |
| | | int pArg = GetArg(); |
| | | |
| | | arg = GetArg(); |
| | | InvNo = arg.GetArgString(L"invoiceno"); |
| | | } |
| | | else |
| | | arg.AddArg(L"invoiceno", L"15HDLD0720"); |
| | | arg.AddArg(L"invoiceno", InvNo); |
| | | if (getUrl(L"/sale/data/VATNotify/entity/base/miss", arg.GetString(), x) != 1) |
| | | { |
| | | trace(x.text()); |
| | |
| | | |
| | | int onload() |
| | | { |
| | | SetArg(); |
| | | dw_list = GetControl(L"dw_list"); |
| | | dw_list.openUrl(L"/sale/view/VATNotify/template/VATNotify/item"); |
| | | dw_item = GetControl(L"dw_item"); |