| | |
| | | |
| | | int OnPrint() |
| | | { |
| | | xaserverarg arg; |
| | | xaserverarg& arg = *new xaserverarg; |
| | | |
| | | 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", p); |
| | | openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg); |
| | | return 1; |
| | | } |
| | | |
| | | int OnPrintItem() |
| | | { |
| | | xaserverarg arg; |
| | | xaserverarg& arg = *new xaserverarg; |
| | | |
| | | 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", p); |
| | | openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg); |
| | | return 1; |
| | | } |
| | | |
| | |
| | | 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) |
| | |
| | | |
| | | 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); |