| | |
| | | return arg; |
| | | } |
| | | |
| | | static string GetGuid() |
| | | static xstring GetGuid() |
| | | { |
| | | return publiccode::GetGuid(); |
| | | } |
| | |
| | | } |
| | | static KXMLDOMDocument RetrieveData(string queryUrl, string argName, string argValue, string argName1, string argValue1, string argName2, string argValue2, string argName3, string argValue3) |
| | | { |
| | | return RetrieveData(xapp::GetServerUrl(), queryUrl, argName, argValue, argName1, argValue1, argName2, argValue3, argName2, argValue3); |
| | | return RetrieveData(xapp::GetServerUrl(), queryUrl, argName, argValue, argName1, argValue1, argName2, argValue2, argName3, argValue3); |
| | | } |
| | | |
| | | |
| | | static KXMLDOMDocument RetrieveData(string serverUrl, string queryUrl, string argName, string argValue, string argName1, string argValue1, string argName2, string argValue2, string argName3, string argValue3) |
| | | { |
| | |
| | | } |
| | | } |
| | | dwobj.Redraw(); |
| | | return 1; |
| | | } |
| | | |
| | | static int AddMessage(string serverUrl, string Category, string Reciever, string EntityNo, string EntityID, string Subject, string Content) |
| | | { |
| | | KXMLDOMDocument x; |
| | | xaserverarg arg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | |
| | | arg.AddArg(L"EntityNo", EntityNo); |
| | | arg.AddArg(L"EntityID", EntityID); |
| | | arg.AddArg(L"Subject", Subject); |
| | |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | static int AddTask(xstring serverUrl, xstring FlowID, xstring EntityID, xstring EntityNo, xstring Subject, xstring Content, xstring Status, xstring Category, xstring Reciever) |
| | | { |
| | | |
| | | KXMLDOMDocument x; |
| | | xaserverarg arg; |
| | | arg.AddArg(L"FlowID", FlowID); |
| | | arg.AddArg(L"EntityID", EntityID); |
| | | arg.AddArg(L"EntityNo", EntityNo); |
| | | arg.AddArg(L"Subject", Subject); |
| | | arg.AddArg(L"Content", Content); |
| | | arg.AddArg(L"Status", Status); |
| | | arg.AddArg(L"Category", Category); |
| | | arg.AddArg(L"Reciever", Reciever); |
| | | if (xurl::get(L"/sale/data/business/task/add", arg.GetString(), x) != 1) |
| | | { |
| | | string error = x.text(); |
| | | trace(error); |
| | | return 0; |
| | | } |
| | | return 1; |
| | | } |
| | | }; |