| | |
| | | { |
| | | 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; |
| | | } |
| | | }; |