| | |
| | | xstring comdid = arg.GetArgString(L"comdid"); |
| | | if (comdid ==L"xmOK") |
| | | { |
| | | string value = arg.GetArgString(L"content"); |
| | | xstring value = arg.GetArgString(L"content"); |
| | | return value; |
| | | } |
| | | return L""; |
| | |
| | | if (MessageBoxW(GetHWND(),L"是否确定删除记录!",L"提示", 1) == 2) |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | xaserverarg& arg = *(new xaserverarg); |
| | | arg.AddArg(L"Action", action); |
| | | KXMLDOMDocument x; |
| | | |
| | | xstring aurl =L"/workflow/query/actioninfo/" + action; |
| | | |
| | | |
| | | if (xurl::get(GetServerUrl(),aurl,L"", x) != 1) |
| | | return -1; |
| | | |
| | |
| | | if (x1.selectSingleNode(L"//process")) |
| | | { |
| | | KXMLDOMElement e1 = x1.selectSingleNode(L"//process"); |
| | | string valid = e1.getAttribute(L"valid"); |
| | | string finished = e1.getAttribute(L"finished"); |
| | | xstring valid = e1.getAttribute(L"valid"); |
| | | xstring finished = e1.getAttribute(L"finished"); |
| | | xstring errInfo =L""; |
| | | if (valid ==L"0") |
| | | { |
| | |
| | | } |
| | | } |
| | | //更新要求 |
| | | if (execResult & 0xf) |
| | | if (execResult) |
| | | { |
| | | nlist = x.selectNodes(L"//view/update"); |
| | | nlen = nlist.length(); |
| | |
| | | return 1; |
| | | } |
| | | |
| | | virtual string GetTaskID() |
| | | virtual xstring GetTaskID() |
| | | { |
| | | return L""; |
| | | } |
| | |
| | | if (content ==L"") return 1; |
| | | if (content.find(L"update.modify", 0) > 0 || content.find(L"update.delete", 0) > 0) |
| | | { |
| | | int MB_YESNOCANCEL = 3; |
| | | int IDYES = 6; |
| | | int IDNO = 7; |
| | | int IDCANCEL = 2; |
| | | int re = MessageBoxW(GetHWND(),L"数据已经修改,是否保存?",L"提示:", MB_YESNOCANCEL); |
| | | if (re == IDCANCEL) return -1; |
| | | if (re == IDNO) return 1; |
| | | int MB_YESNOCANCEL_ = 3; |
| | | int IDYES_ = 6; |
| | | int IDNO_ = 7; |
| | | int IDCANCEL_ = 2; |
| | | int re = MessageBoxW(GetHWND(),L"数据已经修改,是否保存?",L"提示:", MB_YESNOCANCEL_); |
| | | if (re == IDCANCEL_) return -1; |
| | | if (re == IDNO_) return 1; |
| | | if (DoUpdate(false) == 1) return 1; |
| | | return -1; |
| | | } |