| | |
| | | OnRetrieve(DatePicker); |
| | | return 1; |
| | | } |
| | | else if (comdid == L"xmPic") |
| | | { |
| | | int row2 = dw_list.GetRow(); |
| | | if (row2 < 1) return 1; |
| | | xstring ID = dw_list.GetGuid(dw_list.GetRow()); |
| | | xaserverarg arg2; |
| | | |
| | | if (ID.length() <= 0) |
| | | { |
| | | return 1; |
| | | } |
| | | trace(ID); |
| | | arg2.AddArg(L"entityid", ID); |
| | | |
| | | |
| | | OpenWindow(L"dev:xpage[maint.Document.Test.v3.vx]", arg2); |
| | | |
| | | return 0; |
| | | } |
| | | else if(comdid.find(L"action:",0)>=0) |
| | | { |
| | | ProcessFlowAction(comdid,1); |
| | |
| | | OpenWindow(L"dev:xpage[del.vatinvoice.vx]"); |
| | | return 1; |
| | | } |
| | | |
| | | else if (comdid == L"SourceRemark") return OnSourceRemark(); |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | int OnSourceRemark() |
| | | { |
| | | xstring name = L"增值税票"; |
| | | KXMLDOMDocument x = ViewObject::RetrieveData(L"/sale/data/TradeFinance3/GetSetUpRemarks", L"Type", name); |
| | | KXMLDOMNodeList items = x.selectNodes(L"data/Item"); |
| | | KXMLDOMNode t = items.item(0); |
| | | xstring Content = L""; |
| | | if (t.selectSingleNode(L"Content")) |
| | | { |
| | | Content = t.selectSingleNode(L"Content").text(); |
| | | } |
| | | xaserverarg arg1; |
| | | |
| | | arg1.AddArg(L"value", Content); |
| | | OpenWindow(L"dev:xpage[memo.edit.new.vx]", arg1); |
| | | |
| | | return 1; |
| | | } |
| | | //命令处理事件 |
| | | int OnXCommand(TEvent* evt, LPARAM param) |
| | | { |