| | |
| | | |
| | | int OnSave() |
| | | { |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | dw_base.AcceptText(); |
| | | dw_base.DwUpdateAllTo(x); |
| | | xaserverarg arg; |
| | | arg.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | arg.AddArg(L"content", x.xml()); |
| | | //trace(x.xml()); |
| | | if (getUrl(L"/sale/data/AdministrativeDepartment/ad_update", arg.GetString(), x) != 1) |
| | |
| | | AttachEvent(L"WM_XCOMMAND", (FEvent)&AdministrativeDepartmentFolderView::OnXCommand); |
| | | //获取焦点事件,用于重置工具条 |
| | | AttachEvent(L"WM_SETFOCUS", (FEvent)&AdministrativeDepartmentFolderView::OnSetFocus); |
| | | return 1; |
| | | } |
| | | |
| | | int OnParentRetrieve() |
| | | { |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | xaserverarg arg; |
| | | |
| | |
| | | |
| | | int OnRetrieve() |
| | | { |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | xaserverarg arg; |
| | | |
| | |
| | | |
| | | int onload() |
| | | { |
| | | |
| | | SetArg(); |
| | | dw_base = GetControl(L"dw_base"); |
| | | dw_base.openUrl(L"/sale/view/AdministrativeDepartment/template/adwin"); |
| | | getsingle_url = L"/sale/data/AdministrativeDepartment/ad_getsingle"; |