| | |
| | | xstring GetPayType() |
| | | { |
| | | xcombobox cbx_type = GetControl(L"cbx_type"); |
| | | int h = xcombobox::GetCurSel(cbx_type.GetId()); |
| | | if (h < 0) return ""; |
| | | return xcombobox::GetLBText(cbx_type.GetId(), h); |
| | | int h = xcombobox::GetCurSel(cbx_type.GetHWND()); |
| | | if (h < 0) return L""; |
| | | return xcombobox::GetLBText(cbx_type.GetHWND(), h); |
| | | } |
| | | |
| | | xstring GetEntityName(int pr) |
| | |
| | | arg.AddArg(L"APID", APID); |
| | | arg.AddArg(L"APType", apType); |
| | | |
| | | OpenWindow(L"dev:xpage[maint.ap.vx]", pa); |
| | | OpenWindow(L"dev:xpage[maint.ap.vx]", arg); |
| | | return 1; |
| | | } |
| | | if (comdid.find(L"action:", 0) >= 0) |
| | |
| | | AttachEvent(L"dw_list", L"DWV_DOUBLECLICKED", (FEvent)&ListAP::OnDoubleClicked);//行双击 |
| | | AttachEvent(L"cbx_state", L"CBN_SELCHANGE", (FEvent)&ListAP::OnDatePicker); |
| | | AttachEvent(L"dw_list", L"DWV_ITEMCHANGED", (FEvent)&ListAP::OnItemChanged); |
| | | return 1; |
| | | } |
| | | |
| | | int OnDatePicker(TEvent* evt, int lParam) |