| | |
| | | |
| | | int OnPrint() |
| | | { |
| | | xaserverarg& arg = *new xaserverarg; |
| | | xaserverarg arg; |
| | | |
| | | arg.AddArg(L"EntityName", L"VATNotify", L""); |
| | | arg.AddArg(L"EntityID", L"", L""); |
| | | arg.AddArg(L"EntityNo", dw_item.GetItemString(1, L"InvoiceNo"), L""); |
| | | |
| | | openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg); |
| | | openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", arg); |
| | | return 1; |
| | | } |
| | | |
| | | int OnPrintItem() |
| | | { |
| | | xaserverarg& arg = *new xaserverarg; |
| | | xaserverarg arg ; |
| | | |
| | | arg.AddArg(L"EntityName", L"VATNotify", L""); |
| | | arg.AddArg(L"EntityID", L"", L""); |
| | | arg.AddArg(L"EntityNo", dw_item.GetItemString(1, L"InvoiceNo"), L""); |
| | | |
| | | openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg); |
| | | openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", arg); |
| | | return 1; |
| | | } |
| | | |
| | |
| | | { |
| | | xml x ; |
| | | |
| | | xaserverarg arg = ViewObject::MakeArg(); |
| | | xaserverarg arg; |
| | | arg.AddArg(L"ClassifyID", ClassifyID); |
| | | arg.AddArg(L"InvoiceNo", InvoiceNo); |
| | | arg.AddArg(L"InvoiceExcept", InvoiceNoExcept); |
| | |
| | | { |
| | | xml x ; |
| | | |
| | | xaserverarg arg = ViewObject::MakeArg(); |
| | | xaserverarg arg; |
| | | arg.AddArg(L"ClassifyID", ClassifyID); |
| | | arg.AddArg(L"InvoiceNo", InvoiceNo); |
| | | arg.AddArg(L"InvoiceExcept", InvoiceNoExcept); |
| | |
| | | dw_item.AcceptText(); |
| | | dw_item.DwUpdateAllToEx(x); |
| | | |
| | | xml x0 = ViewObject::MakeXml(); |
| | | xml x0; |
| | | x0.loadXML(L"<root/>"); |
| | | |
| | | KXMLDOMNodeList t = x.selectNodes(L"root/item[@update.modify]"); |
| | |
| | | { |
| | | e1.appendChild(t.item(i)); |
| | | } |
| | | xaserverarg arg = ViewObject::MakeArg(); |
| | | xaserverarg arg; |
| | | arg.AddArg(L"content", x0.xml()); |
| | | |
| | | //trace(x.xml); |
| | |
| | | AttachEvent(L"dw_fob", L"DWV_ITEMCHANGED", (FEvent)&maintpapercardvatnotifyWin::OnFobItemChanged); |
| | | AttachEvent(L"dw_item", L"DWV_ROWFOCUSCHANGED", (FEvent)&maintpapercardvatnotifyWin::OnRowChanged); |
| | | AttachEvent(L"dw_item", L"DWV_ASKDATA", (FEvent)&maintpapercardvatnotifyWin::OnAskDataItem); |
| | | return 1; |
| | | } |
| | | |
| | | int RetrieveFob(xstring InvoiceNo, bool start = false) |
| | |
| | | { |
| | | KXMLDOMElement e = lst.item(i); |
| | | docElement.appendChild(e); |
| | | e.Release(); |
| | | |
| | | } |
| | | docElement.Release(); |
| | | lst.Release(); |
| | | |
| | | dw_fob.Retrieve(x1); |
| | | } |
| | | else |
| | |
| | | |
| | | if (GetWinParam()) |
| | | { |
| | | int pArg = GetArg(); |
| | | arg = GetArg(); |
| | | |
| | | } |
| | | else |
| | |
| | | |
| | | int onload() |
| | | { |
| | | SetArg(); |
| | | dw_item = GetControl(L"dw_item"); |
| | | dw_item.openUrl(L"/sale/view/VATNotify/template/VATNotify/item"); |
| | | dw_item.SetColumnState(L"CName", false); |
| | |
| | | |
| | | if (GetWinParam()) |
| | | { |
| | | int pArg = GetArg(); |
| | | arg = GetArg(); |
| | | |
| | | InvNo = arg.GetArgString(L"invoiceno"); |
| | | SetWindowText(GetHWND(), InvNo); |