| | |
| | | dw_arg.SetRowSelectorWidth(0); |
| | | dw_arg.SetHScrollState(false); |
| | | dw_arg.SetVScrollState(false); |
| | | |
| | | dw_arg.SetItemString(1, L"DateType", L"本年"); |
| | | tabname = L"sign"; |
| | | tabagent = L""; |
| | | |
| | |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | int OnItemClick(TEvent* evt, LPARAM p) |
| | | { |
| | | DWNMHDR& hdr1 = *(DWNMHDR*)evt->notify.pnmh; |
| | | xstring colname = hdr1.colname; |
| | | |
| | | DWNMHDR& hdr = *(DWNMHDR*)evt->notify.pnmh; |
| | | xstring value = hdr.data; |
| | | |
| | | xaserverarg arg; |
| | | |
| | | |
| | | if (value == L"附件上传") |
| | | { |
| | | if (dw_base.GetGuid(1) == L"") |
| | | { |
| | | alert(L"请先保存,在添加附件!"); |
| | | return 0; |
| | | } |
| | | arg.AddArg(L"entityid", dw_base.GetGuid(1)); |
| | | |
| | | OpenWindow(L"dev:xpage[maint.Document.Test.v3.vx]", arg); |
| | | } |
| | | |
| | | return 1; |
| | | } |
| | | int OnAttachEvent() |
| | | { |
| | | //绑定工具条点击事件 |
| | |
| | | AttachEvent(L"WM_SETFOCUS", (FEvent)&MaintVATInvoice::OnSetFocus); |
| | | AttachEvent(L"dw_list",L"DWV_ITEMCHANGED", (FEvent)&MaintVATInvoice::OnItemChanged); |
| | | AttachEvent(L"dw_base",L"DWV_ITEMCHANGED", (FEvent)&MaintVATInvoice::OnItemChangedTwo); |
| | | AttachEvent(L"dw_base", L"DWV_CLICKED", (FEvent)&MaintVATInvoice::OnItemClick); |
| | | return 1; |
| | | } |
| | | |