static public void ProcessFuncKey(this IChildFormManager form, OPOSKeyEventArgs e) { switch (e.Key.OPOSKey) { case OPOSMapKeys.KEY_SIGNOFF: // 싸인오프 e.IsHandled = true; form.OnLoggedOut(); break; case OPOSMapKeys.KEY_EOD: // 정산 e.IsHandled = true; form.ShowMenu("MNU_CLOSE"); break; case OPOSMapKeys.KEY_INOUT: // 입출금등록 e.IsHandled = true; form.ShowMenu("MNU_IO"); break; case OPOSMapKeys.KEY_INQUIRY: // 점검조회 e.IsHandled = true; form.ShowMenu("MNU_CHECK"); break; case OPOSMapKeys.KEY_INQCHK: // 수표조회 e.IsHandled = true; form.ShowForm(string.Empty, "WSWD.WmallPos.POS.IQ.dll", "WSWD.WmallPos.POS.IQ.VC.POS_IQ_P003"); break; case OPOSMapKeys.KEY_INQRECP: // 영수증조회 e.IsHandled = true; form.ShowForm(string.Empty, "WSWD.WmallPos.POS.IQ.dll", "WSWD.WmallPos.POS.IQ.VC.POS_IQ_P004"); break; case OPOSMapKeys.KEY_NOSALE: // 돈통열기 e.IsHandled = true; try { POSDeviceManager.CashDrawer.OpenDrawer(); } catch { } break; default: break; } }
static public bool ProcessFuncKey(this IChildFormManager form, OPOSKeyEventArgs e, bool saleMode, bool hasItems) { bool ret = true; switch (e.Key.OPOSKey) { case OPOSMapKeys.KEY_SIGNOFF: // 싸인오프 e.IsHandled = true; form.OnLoggedOut(); break; case OPOSMapKeys.KEY_EOD: // 정산 e.IsHandled = true; if (!hasItems) { form.ShowMenu("MNU_CLOSE", saleMode); } ret = !hasItems; break; case OPOSMapKeys.KEY_INOUT: // 입출금등록 e.IsHandled = true; if (!hasItems) { form.ShowMenu("MNU_IO", saleMode); } ret = !hasItems; break; case OPOSMapKeys.KEY_INQUIRY: // 점검조회 e.IsHandled = true; if (!hasItems) { form.ShowMenu("MNU_CHECK", saleMode); } ret = !hasItems; break; case OPOSMapKeys.KEY_INQCHK: // 수표조회 e.IsHandled = true; form.ShowForm("수표 조회", "WSWD.WmallPos.POS.IQ.dll", "WSWD.WmallPos.POS.IQ.VC.POS_IQ_P003"); break; case OPOSMapKeys.KEY_INQRECP: // 영수증조회 e.IsHandled = true; if (!hasItems) { form.ShowForm("영수증 조회", "WSWD.WmallPos.POS.IQ.dll", "WSWD.WmallPos.POS.IQ.VC.POS_IQ_P004"); } break; case OPOSMapKeys.KEY_NOSALE: // 돈통열기 e.IsHandled = true; try { POSDeviceManager.CashDrawer.OpenDrawer(); } catch { } break; default: break; } return(ret); }