| | |
| | | |
| | | int OnPrint() |
| | | { |
| | | xaserverarg arg; |
| | | xaserverarg& arg = *new xaserverarg; |
| | | |
| | | arg.AddArg(L"EntityName", L"VATNotify"); |
| | | arg.AddArg(L"EntityID", L"", L""); |
| | |
| | | arg.AddArg(L"VATNotifyID", L""); |
| | | trace(InvoiceNo + L"==1" + NInvoiceNoEx + L"==2" + SupplierID + L"==3" + dw_list.GetGuid(dw_list.GetRow())); |
| | | |
| | | 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; |
| | | xaserverarg& arg = *new xaserverarg; |
| | | |
| | | arg.AddArg(L"EntityName", L"VATNotify"); |
| | | arg.AddArg(L"EntityID", L"", L""); |
| | |
| | | arg.AddArg(L"VATNotifyID", dw_list.GetGuid(dw_list.GetRow())); |
| | | trace(L"=====L" + InvoiceNo + L"=====L" + SupplierID + L"=====L" + dw_list.GetGuid(dw_list.GetRow())); |
| | | |
| | | openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", p); |
| | | openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg); |
| | | return 1; |
| | | } |
| | | |
| | |
| | | arg.AddArg(L"SupplierID", supplierID); |
| | | arg.AddArg(L"CName", cname); |
| | | |
| | | OpenWindow(L"dev:xpage[maint.papercard.vatnotify.vx]", p); |
| | | OpenWindow(L"dev:xpage[maint.papercard.vatnotify.vx]", arg); |
| | | return 1; |
| | | } |
| | | |
| | |
| | | } |
| | | else if (comdid == L"find") |
| | | { |
| | | m_QueryTxt = GetControl(L"txt").GetText(); |
| | | m_QueryTxt = xcontrol(GetControl(L"txt")).GetText(); |
| | | return OnRetrieve(DatePicker); |
| | | } |
| | | else if (comdid == L"xmRefresh") |
| | |
| | | AttachEvent(L"WM_SETFOCUS", (FEvent)&listvatnotifyWin::OnSetFocus); |
| | | AttachEvent(L"dw_list", L"DWV_CLICKED", (FEvent)&listvatnotifyWin::OnDWClick); |
| | | AttachEvent(L"cbx_state", L"CBN_SELCHANGE", (FEvent)&listvatnotifyWin::OnDatePicker); |
| | | return 1; |
| | | } |
| | | |
| | | int OnDatePicker(TEvent* evt, int lParam) |
| | |
| | | |
| | | DWNMHDR& hdr = *(DWNMHDR*)evt->notify.pnmh; |
| | | |
| | | int h = xcombobox::GetCurSel(evt.hCtrl); |
| | | int h = xcombobox::GetCurSel(evt->command.hCtrl); |
| | | if (h > -1) |
| | | { |
| | | xstring txt = xcombobox::GetLBText(evt.hCtrl, h); |
| | | xstring txt = xcombobox::GetLBText(evt->command.hCtrl, h); |
| | | if (txt == L"通知日期") |
| | | { |
| | | |