void ScrollablePanel_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (e.Key.OPOSKey == OPOSMapKeys.KEY_UP || e.Key.OPOSKey == OPOSMapKeys.KEY_DOWN) { DoScroll(e.Key.OPOSKey == OPOSMapKeys.KEY_UP); } }
/// <summary> /// Key Event /// </summary> /// <param name="e"></param> void form_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (_bDisable) { e.IsHandled = true; return; } if (e.Key.OPOSKey == OPOSMapKeys.KEY_NOSALE) { if (POSDeviceManager.CashDrawer != null && POSDeviceManager.CashDrawer.Status == WSWD.WmallPos.POS.FX.Shared.DeviceStatus.Opened && POSDeviceManager.CashDrawer.Enabled) { //돈통 open POSDeviceManager.CashDrawer.OpenDrawer(); } } else if (e.Key.OPOSKey == WSWD.WmallPos.FX.Shared.OPOSMapKeys.KEY_ENTER) { e.IsHandled = true; //등록 SetCash(); } else if (!e.IsControlKey) { msgBar.Text = strMsg01; } }
/// <summary> /// Key Event /// </summary> /// <param name="e"></param> void form_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (e.Key.OPOSKey == OPOSMapKeys.KEY_ENTER) { e.IsHandled = true; btnClose_Click(btnClose, EventArgs.Empty); } }
/// <summary> /// Key Event /// </summary> /// <param name="e"></param> void form_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (e.Key.OPOSKey == OPOSMapKeys.KEY_CLEAR) { //전자서명 재시도 요청 RequestSignPad(); } else if (e.Key.OPOSKey == OPOSMapKeys.KEY_ENTER) { btnSave_Click(btnSave, EventArgs.Empty); } }
/// <summary> /// Key Event /// </summary> /// <param name="e"></param> void form_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (e.Key.OPOSKey == OPOSMapKeys.KEY_ENTER) { e.IsHandled = true; btnSave_Click(btnSave, EventArgs.Empty); } else if (e.Key.OPOSKey == OPOSMapKeys.KEY_CLEAR) { e.IsHandled = true; RequestInputPassword(); } }
/// <summary> /// KeyEvent 처리 /// </summary> /// <param name="e"></param> void POS_SL_M001_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (this.InvokeRequired) { this.Invoke((MethodInvoker) delegate() { m_presenter.ProcessKeyEvent(e); }); } else { m_presenter.ProcessKeyEvent(e); } }
/// <summary> /// Key Event /// </summary> /// <param name="e"></param> void POS_PY_P015_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (ModeProcessing) { e.IsHandled = true; return; } if (e.Key.OPOSKey == OPOSMapKeys.KEY_ENTER || e.Key.OPOSKey == OPOSMapKeys.KEY_CLEAR) { ValidateOnKeyEvent(e); } }
/// <summary> /// 폼전체 KeyEvent 처리 /// </summary> /// <param name="e"></param> void POS_TM_M001_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { // incAmt 금액이 입력가능하며 10,000,000넘으면 오류표시하한다 if (!e.IsControlKey && incAmt.IsFocused) { int amt = TypeHelper.ToInt32(incAmt.Text); if (amt > 10000000) { // ER00012은 PosMesg.dat에 등록해야함 ShowMessageBox(WSWD.WmallPos.FX.Shared.MessageDialogType.Warning, "ER00012", null); e.IsHandled = true; } } }
void AdminPassPop_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (e.Key.OPOSKey == WSWD.WmallPos.FX.Shared.OPOSMapKeys.KEY_ENTER) { e.IsHandled = true; btnOK_Click(btnOK, EventArgs.Empty); } else if (e.Key.OPOSKey == WSWD.WmallPos.FX.Shared.OPOSMapKeys.KEY_CLEAR) { if (intPassword.Text.Length == 0) { e.IsHandled = true; btnClose_Click(btnClose, EventArgs.Empty); } } }
void POS_SL_P003_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (e.Key.OPOSKey == WSWD.WmallPos.FX.Shared.OPOSMapKeys.KEY_ENTER) { e.IsHandled = true; btOK_Click(btOK, EventArgs.Empty); } else if (e.Key.OPOSKey == WSWD.WmallPos.FX.Shared.OPOSMapKeys.KEY_CLEAR) { if (iptNoBoru.Text.Length > 0) { return; } e.IsHandled = true; btClose_Click(btClose, EventArgs.Empty); } }
/// <summary> /// Key Event /// </summary> /// <param name="e"></param> void form_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (_bDisable) { e.IsHandled = true; return; } if (e.Key.OPOSKey == WSWD.WmallPos.FX.Shared.OPOSMapKeys.KEY_ENTER) { //실행 btnRun_Click(btnRun, null); } else if (e.Key.OPOSKey == WSWD.WmallPos.FX.Shared.OPOSMapKeys.KEY_CLEAR) { this.Close(); } }
/// <summary> /// Key Event /// </summary> /// <param name="e"></param> void form_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (_bDisable) { e.IsHandled = true; return; } if (e.Key.OPOSKey == WSWD.WmallPos.FX.Shared.OPOSMapKeys.KEY_ENTER) { //실행 } else if (e.Key.OPOSKey == WSWD.WmallPos.FX.Shared.OPOSMapKeys.KEY_CLEAR) { if (!txtTransDate.IsFocused) { e.IsHandled = true; this.Close(); } } else if (e.Key.OPOSKey == OPOSMapKeys.KEY_BKS) { e.IsHandled = true; } else if (!e.IsControlKey && txtTransDate.IsFocused) { if (txtTransDate.Text.Length == 3 || txtTransDate.Text.Length == 6) { txtTransDate.Text += (e.KeyCodeText.ToString() + "/"); e.IsHandled = true; } else if (txtTransDate.Text.Length == 9) { DateTime dtTime = DateTime.Now; if (!DateTime.TryParse(txtTransDate.Text + e.KeyCodeText.ToString(), out dtTime)) { txtTransDate.Text = ""; msgBar.Text = strMsg02; e.IsHandled = true; } } } }
/// <summary> /// Key Event /// </summary> /// <param name="e"></param> void POS_PY_P014_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (ModeProcessing) { e.IsHandled = true; return; } if (e.Key.OPOSKey == OPOSMapKeys.KEY_ENTER) { if (ValidateValidBusinessNo()) { e.IsHandled = true; ProcessCashReceipt(); } else { StatusMessage = WSWD.WmallPos.FX.Shared.ConfigData.Current.SysMessage.GetMessage("01390"); } } }
void POS_SO_P001_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (!e.IsControlKey) { m_isError = false; } if (e.Key.OPOSKey == WSWD.WmallPos.FX.Shared.OPOSMapKeys.KEY_CLEAR) { if (txtPassword.Text.Length == 0 && txtCasNo.Text.Length == 0 && txtCasNo.IsFocused) { e.IsHandled = true; btnClose_Click(btnClose, EventArgs.Empty); } else { if (this.FocusedControl != null) { InputText it = (InputText)this.FocusedControl; if (it.Text.Length > 0) { it.SetFocus(); m_casDataRow = null; return; } } e.IsHandled = true; this.PreviousControl(); } } else if (e.Key.OPOSKey == OPOSMapKeys.KEY_ENTER) { ValidateOnEnter(); } }
/// <summary> /// Key Event /// </summary> /// <param name="e"></param> void form_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (_bDisable || _drRow == null) { e.IsHandled = true; return; } if (e.Key.OPOSKey == OPOSMapKeys.KEY_NOSALE) { if (POSDeviceManager.CashDrawer != null && POSDeviceManager.CashDrawer.Status == WSWD.WmallPos.POS.FX.Shared.DeviceStatus.Opened && POSDeviceManager.CashDrawer.Enabled) { //돈통 open POSDeviceManager.CashDrawer.OpenDrawer(); } return; } bool bFG_LIMIT = _drRow["FG_LIMIT"].ToString() == "0" ? true : false; //쿠폰적용 제한(0:제한없음, 1:단일브랜드) int iAM_MAX = TypeHelper.ToInt32(_drRow["AM_MAX"]); //쿠폰 적용 판매 금엑 bool bFG_DC = _drRow["FG_DC"].ToString() == "0" ? true : false; //할인구분 (0:%, 1:금액) int iAM_DC = TypeHelper.ToInt32(_drRow["AM_DC"] != null ? _drRow["AM_DC"].ToString().Replace(WSWD.WmallPos.FX.Shared.ConfigData.Current.SysMessage.GetMessage("00173"), "").Replace("%", "") : ""); //쿠폰 할인금액 if (_drRow != null) { if (bFG_DC) { e.IsHandled = true; } else { StatusMessage = strMsg01; if (e.Key.OPOSKey == OPOSMapKeys.KEY_CLEAR) { if (txtPaymentCnt.Text.Length <= 0 && txtPaymentAmt.Text.Length <= 0) { e.IsHandled = true; this.DialogResult = DialogResult.Cancel; return; } else { txtPaymentAmt.Text = ""; } } else if (e.Key.OPOSKey == OPOSMapKeys.KEY_ENTER) { if (TypeHelper.ToInt32(txtPaymentCnt.Text) > 0) { if (!bFG_DC) { if (TypeHelper.ToInt32(txtPaymentCnt.Text) * iAM_DC <= _iGetAmt) { txtPaymentAmt.Text = string.Format("{0}", TypeHelper.ToInt32(txtPaymentCnt.Text) * iAM_DC); StatusMessage = strMsg08; } else { txtPaymentCnt.Text = ""; StatusMessage = strMsg02; } } } else { txtPaymentCnt.Text = ""; } } else if (e.Key.OPOSKey == OPOSMapKeys.KEY_BKS) { txtPaymentAmt.Text = ""; } else if (!e.IsControlKey) { txtPaymentAmt.Text = ""; } } } else { e.IsHandled = true; if (e.Key.OPOSKey == OPOSMapKeys.KEY_CLEAR) { this.DialogResult = DialogResult.Cancel; } } }
/// <summary> /// Key Event /// </summary> /// <param name="e"></param> void form_KeyEvent(WSWD.WmallPos.FX.Shared.OPOSKeyEventArgs e) { if (_bDisable) { e.IsHandled = true; return; } if (e.Key.OPOSKey == WSWD.WmallPos.FX.Shared.OPOSMapKeys.KEY_ENTER) { #region Enter if (txt04.IsFocused || txt06.IsFocused || txt09.IsFocused) { msgBar.Text = ""; msgBar.ForeColor = Color.FromArgb(51, 51, 51); if (txt04.IsFocused) { if (txt04.Text.Length > 0) { if (txt04.Text.Length != txt04.MaxLength) { txt04.SetFocus(); e.IsHandled = true; } else { txt05.SetFocus(); } } else { txt05.SetFocus(); } } else if (txt06.IsFocused) { if (txt06.Text.Length >= 0) { if (TypeHelper.ToInt32(txt06.Text) > 0 && TypeHelper.ToInt32(txt06.Text) <= 999999999) { txt07.SetFocus(); } else { msgBar.Text = strMsg01; } } else { msgBar.Text = strMsg01; } } else if (txt09.IsFocused) { if (txt09.Text.Length == txt09.MaxLength) { if (txt01.Text.Length != txt01.MaxLength) { txt01.SetFocus(); return; } if (txt02.Text.Length != txt02.MaxLength) { txt02.SetFocus(); return; } if (txt03.Text.Length != txt03.MaxLength) { txt03.SetFocus(); return; } if (txt04.Text.Length > 0) { if (txt04.Text.Length != txt04.MaxLength) { txt04.SetFocus(); return; } } if (txt05.Text.Length != txt05.MaxLength) { txt05.SetFocus(); return; } if (TypeHelper.ToInt32(txt06.Text) <= 0 || TypeHelper.ToInt32(txt06.Text) > 999999999) { if (txt05.Text == "13" || txt05.Text == "14" || txt05.Text == "15" || txt05.Text == "16") { txt05.Text = ""; txt05.SetFocus(); } else { txt06.SetFocus(); } return; } if (txt07.Text.Length != txt07.MaxLength) { txt07.SetFocus(); return; } if (txt08.Text.Length != txt08.MaxLength) { txt08.SetFocus(); return; } DateTime dateTime = DateTime.Now; string strTemp = string.Format("{0}-{1}-{2}", txt07.Text, txt08.Text, txt09.Text); if (!DateTime.TryParse(strTemp, out dateTime)) { txt07.Text = ""; txt08.Text = ""; txt09.Text = ""; txt07.SetFocus(); msgBar.Text = strMsg01; return; } else { if (DateTime.Today < dateTime) { txt07.Text = ""; txt08.Text = ""; txt09.Text = ""; txt07.SetFocus(); msgBar.Text = strMsg01; return; } } //수표 조회 GetServerPV03(); } else { msgBar.Text = strMsg01; } } } else if (txt01.Focused) { if (txt01.Text.Length == txt01.MaxLength) { txt02.SetFocus(); } } else if (txt02.Focused) { if (txt02.Text.Length == txt02.MaxLength) { txt03.SetFocus(); } } else if (txt03.Focused) { if (txt03.Text.Length == txt03.MaxLength) { txt04.SetFocus(); } } else if (txt05.Focused) { if (txt05.Text.Length == txt05.MaxLength && (txt05.Text == "13" || txt05.Text == "14" || txt05.Text == "15" || txt05.Text == "16" || txt05.Text == "19")) { if (txt05.Text == "19") { txt06.SetFocus(); } else { txt07.SetFocus(); } } } else if (txt07.Focused) { if (txt07.Text.Length == txt07.MaxLength) { txt08.SetFocus(); } } else if (txt08.Focused) { if (txt08.Text.Length == txt08.MaxLength) { txt09.SetFocus(); } } #endregion } else if (e.Key.OPOSKey == WSWD.WmallPos.FX.Shared.OPOSMapKeys.KEY_CLEAR) { msgBar.Text = ""; msgBar.ForeColor = Color.FromArgb(51, 51, 51); #region Clear if (txt01.IsFocused) { txt01.SetFocus(); SetClearControl(e, txt01, null); } else if (txt02.IsFocused) { txt02.SetFocus(); SetClearControl(e, txt02, txt01); } else if (txt03.IsFocused) { txt03.SetFocus(); SetClearControl(e, txt03, txt02); } else if (txt04.IsFocused) { txt04.SetFocus(); SetClearControl(e, txt04, txt03); } else if (txt05.IsFocused) { txt05.SetFocus(); SetClearControl(e, txt05, txt04); } else if (txt06.IsFocused) { if (txt05.Text.Length > 0 && txt05.Text == "19") { txt06.SetFocus(); SetClearControl(e, txt06, txt05); } else { e.IsHandled = true; } } else if (txt07.IsFocused) { txt07.SetFocus(); SetClearControl(e, txt07, null); } else if (txt08.IsFocused) { txt08.SetFocus(); SetClearControl(e, txt08, txt07); } else if (txt09.IsFocused) { txt09.SetFocus(); SetClearControl(e, txt09, txt08); } #endregion } else if (e.Key.OPOSKey == WSWD.WmallPos.FX.Shared.OPOSMapKeys.KEY_BKS) { msgBar.Text = ""; msgBar.ForeColor = Color.FromArgb(51, 51, 51); if (txt01.IsFocused) { txt01.SetFocus(); } else if (txt02.IsFocused) { txt02.SetFocus(); } else if (txt03.IsFocused) { txt03.SetFocus(); } else if (txt04.IsFocused) { txt04.SetFocus(); } else if (txt05.IsFocused) { txt06.Text = string.Empty; txt05.SetFocus(); } else if (txt06.IsFocused) { if (txt05.Text.Length > 0 && txt05.Text == "19") { txt06.SetFocus(); } else { e.IsHandled = true; } } else if (txt07.IsFocused) { txt07.SetFocus(); } else if (txt08.IsFocused) { txt08.SetFocus(); } else if (txt09.IsFocused) { txt09.SetFocus(); } } else if (!e.IsControlKey) { #region 숫자 입력 if (txt01.IsFocused) { ValidationLength(e, txt01, txt02); } else if (txt02.IsFocused) { ValidationLength(e, txt02, txt03); } else if (txt03.IsFocused) { ValidationLength(e, txt03, txt04); } else if (txt04.IsFocused) { ValidationLength(e, txt04, txt05); } else if (txt05.IsFocused) { ValidationLength(e, txt05, null); } else if (txt06.IsFocused) { if (txt05.Text.Length > 0 && (txt05.Text == "13" || txt05.Text == "14" || txt05.Text == "15" || txt05.Text == "16" || txt05.Text == "19")) { ValidationLength(e, txt06, txt07); } else { e.IsHandled = true; } } else if (txt07.IsFocused) { ValidationLength(e, txt07, txt08); } else if (txt08.IsFocused) { ValidationLength(e, txt08, txt09); } else if (txt09.IsFocused) { ValidationLength(e, txt09, null); } #endregion } }