| | |
| | | int OnSave(bool dlg = true) |
| | | { |
| | | xml x; |
| | | |
| | | dw_base.AcceptText(); |
| | | dw_base.DwUpdateAllTo(x); |
| | | xaserverarg arg ; |
| | |
| | | int OnSign() |
| | | { |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | xml x; |
| | | |
| | | dw_base.AcceptText(); |
| | |
| | | } |
| | | arg.AddArg(L"CustomerID", dw_base.GetItemString(1, L"CustomerID")); |
| | | arg.AddArg(L"SEID", dw_base.GetGuid(1)); |
| | | SendMessage(hObject, 0x401, L"xmSignEx:" + dw_base.GetGuid(1), 0); |
| | | SendMessage(hObject, 0x401, (WPARAM)((xstring)L"xmSignEx:" + dw_base.GetGuid(1)).c_str(), 0); |
| | | return 1; |
| | | } |
| | | |
| | |
| | | //获取焦点事件,用于重置工具条 |
| | | AttachEvent(L"WM_SETFOCUS", (FEvent)&SettlementExchangeEdit::OnSetFocus); |
| | | AttachEvent(L"dw_base", L"DWV_ITEMCHANGED", (FEvent)&SettlementExchangeEdit::OnItemChanged); |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | int OnRetrieve(xstring SettlementExchangeID) |
| | | { |
| | | xml x; |
| | | |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | arg.AddArg(L"SEID", SettlementExchangeID); |
| | | |
| | | if (getUrl(L"/sale/data/AR/se/getsebyid", arg.GetString(), x) != 1) |
| | |
| | | } |
| | | int onload() |
| | | { |
| | | SetArg(); |
| | | dw_base = GetControl(L"dw_base"); |
| | | dw_base.openUrl(L"/sale/view/AR/template/SEMaint"); |
| | | dw_base.SetColHeaderHeight(0); |
| | |
| | | { |
| | | xaserverarg arg =GetArg(); |
| | | SettlementExchangeID = arg.GetArgString(L"SettlementExchangeID"); |
| | | hObject = arg.GetArgString(L"HWND").toInt(); |
| | | hObject = (HWND)arg.GetParam(L"HWND"); |
| | | } |
| | | if (SettlementExchangeID != L"") |
| | | { |