/// <summary> /// Loc added, changed 10.24 /// 전문추가정보 /// /// 여전볍 변경 05.27 /// PV11ReqDataAdd > PV21ReqDataAdd /// </summary> /// <param name="cashAmt"></param> /// <param name="taxAmt"></param> /// <param name="addData"></param> /// <param name="returnData"></param> /// <returns></returns> public DialogResult ShowCashReceiptPopup(int cashAmt, int taxAmt, PV21ReqDataAdd addData, out object returnData) { returnData = null; using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.PY.dll", this.StateRefund ? "WSWD.WmallPos.POS.PY.VC.POS_PY_P015" : "WSWD.WmallPos.POS.PY.VC.POS_PY_P014", cashAmt, taxAmt, addData)) { var res = pop.ShowDialog(this); Application.DoEvents(); returnData = pop.ReturnResult.ContainsKey("PAY_DATA") ? pop.ReturnResult["PAY_DATA"] : null; // 여전법 추가 0630 // 오류코드 확인 if (addData.IsAutoReturn) { // ERROR_CODE if (pop.ReturnResult.ContainsKey("ERROR_CODE")) { returnData = new string[] { (string)pop.ReturnResult["ERROR_CODE"], (string)pop.ReturnResult["ERROR_MSG"] }; } } return(res); } }
/// <summary> /// 고객포인트조회 /// </summary> public void ShowCustPointPopup() { if (SaleMode.ToString().Contains("Other")) { return; } using (var pop = ChildManager.ShowPopup(TITLE_POINT_INQ, "WSWD.WmallPos.POS.PT.dll", "WSWD.WmallPos.POS.PT.VC.POS_PT_P001", m_presenter.CustInfo)) { if (pop.ShowDialog(this) == DialogResult.OK) { Application.DoEvents(); if (!pop.ReturnResult.ContainsKey("Cust")) { return; } if (this.HasItems) { // update customer info m_presenter.CustInfo = (PP01RespData)pop.ReturnResult["Cust"]; } } } }
/// <summary> /// CARD결제/취소 팝업 /// Loc changed on 10.24, /// 전문 추가정보 팝업으로 보내기 /// /// 여전볍 변경 05.27 /// PV11ReqDataAdd > PV21ReqDataAdd /// </summary> /// <param name="inputAmt"></param> /// <param name="cancellable">이팝업 취소가능한지</param> /// <param name="cardPay">원거래카드 BASKET</param> /// <param name="returnData"></param> /// <returns></returns> public DialogResult ShowCardPopup(string inputAmt, string taxAmt, bool cancellable, BasketPayCard cardPay, PV21ReqDataAdd addData, PayCardMode payCardMode, out object returnData, out string errorCode, out string errorMessage) { returnData = null; //using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.PY.dll", // "WSWD.WmallPos.POS.PY.VC.POS_PY_P001", TypeHelper.ToInt32(inputAmt), // string.IsNullOrEmpty(taxAmt) ? // m_presenter.GetTaxAmt(TypeHelper.ToInt32(inputAmt)) : // TypeHelper.ToInt32(taxAmt), // StateRefund, cancellable, // cardPay, addData)) // 여전법 변경 0620 // PayCardMode 추가 using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.PY.dll", "WSWD.WmallPos.POS.PY.VC.POS_PY_P001", TypeHelper.ToInt32(inputAmt), string.IsNullOrEmpty(taxAmt) ? m_presenter.GetTaxAmt(TypeHelper.ToInt32(inputAmt)) : TypeHelper.ToInt32(taxAmt), StateRefund, cancellable, cardPay, addData, payCardMode)) { var retResult = pop.ShowDialog(this); Application.DoEvents(); returnData = pop.ReturnResult.ContainsKey("PAY_DATA") ? pop.ReturnResult["PAY_DATA"] : null; errorCode = pop.ReturnResult.ContainsKey("ERROR_CODE") ? pop.ReturnResult["ERROR_CODE"].ToString() : string.Empty; errorMessage = pop.ReturnResult.ContainsKey("ERROR_MSG") ? pop.ReturnResult["ERROR_MSG"].ToString() : string.Empty; return(retResult); } }
/// <summary> /// 난수받아서 처리 /// </summary> /// <param name="randNum"></param> void RequestICCardReader(string randNum) { TraceHelper.Instance.TraceWrite("RequestICCardReader", "난수: -{0}-", randNum); // request to receice ic card no using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.PY.dll", "WSWD.WmallPos.POS.PY.VC.POS_PY_P004", randNum)) { var res = pop.ShowDialog(this); if (res == DialogResult.OK) { m_icCardTrackII = pop.ReturnResult["TRACKII"].ToString(); m_icCardSeqNo = pop.ReturnResult["IC_CARD_SEQ_NO"].ToString(); m_icCardIssuerCd = pop.ReturnResult["ISSUER_CD"].ToString(); m_icCardIssuerPosCd = pop.ReturnResult["ISSUER_POS_NO"].ToString(); m_icCardEncData = pop.ReturnResult["ENC_DATA"].ToString(); txtCardNo.Text = m_icCardSeqNo; if (ValidatePayment(false, false)) { ProcessPayment(MODE_NORMAL_TRXN); return; } } } ModeProcessing = CashICPaymentState.Ready; }
/// <summary> /// 강제취소, 강제진행 한 basket을 요약정보 보여준다 /// </summary> /// <param name="header">원거래 HEADER BASKET</param> /// <param name="baskets">강제처리 된 결제BASKET</param> public void AutoRtnShowForceCancelBaskets(BasketHeader header, List <BasketBase> baskets) { using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.SL.dll", "WSWD.WmallPos.POS.SL.VC.POS_SL_P006", header, baskets)) { pop.ShowDialog(this); Application.DoEvents(); } }
/// <summary> /// 관리자확인 팝업 /// </summary> /// <returns></returns> bool ValidateAdmin() { using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.SO.dll", "WSWD.WmallPos.POS.SO.VC.POS_SO_P001", "03,04")) { var res = pop.ShowDialog(this); return(res != DialogResult.Cancel); } }
/// <summary> /// 관리자인지확인 /// </summary> /// <returns></returns> public string ValidateAdmin() { using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.SO.dll", "WSWD.WmallPos.POS.SO.VC.POS_SO_P001", "01,03,04")) { var res = pop.ShowDialog(this); Application.DoEvents(); return(res == DialogResult.Cancel ? string.Empty : pop.ReturnResult["CASNO"].ToString()); } }
public DialogResult ShowExchangeRtnPopup(int payAmt, out object returnData) { returnData = null; using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.PY.dll", "WSWD.WmallPos.POS.PY.VC.POS_PY_P019", payAmt)) { var res = pop.ShowDialog(this); Application.DoEvents(); returnData = pop.ReturnResult.ContainsKey("PAY_DATA") ? pop.ReturnResult["PAY_DATA"] : null; return(res); } }
/// <summary> /// 포인트사용 /// 수정: TCL, /// 이유: 반품처리 /// </summary> /// <param name="payAmt"></param> /// <param name="custInfo"></param> /// <param name="returnData"></param> /// <returns></returns> public DialogResult ShowPointUsePopup(int payAmt, PP01RespData custInfo, out object returnData) { returnData = null; using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.PY.dll", "WSWD.WmallPos.POS.PY.VC.POS_PY_P009", payAmt, custInfo, StateRefund)) { var res = pop.ShowDialog(this); Application.DoEvents(); returnData = pop.ReturnResult.ContainsKey("PAY_DATA") ? pop.ReturnResult["PAY_DATA"] : null; return(res); } }
/// <summary> /// 할인쿠폰 /// TCL수정 /// 06.01: 반품처리, StateRefund 파람추가 /// </summary> /// <param name="payAmt"></param> /// <param name="bType"></param> /// <param name="returnData"></param> /// <returns></returns> public DialogResult ShowCouponPopup(int payAmt, List <BasketItem> BasketItems, List <BasketPay> BasketPays, bool bType, out object returnData) { returnData = null; using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.PY.dll", "WSWD.WmallPos.POS.PY.VC.POS_PY_P010", payAmt, BasketItems, BasketPays, bType, StateRefund)) { var res = pop.ShowDialog(this); Application.DoEvents(); returnData = pop.ReturnResult.ContainsKey("PAY_DATA") ? pop.ReturnResult["PAY_DATA"] : null; return(res); } }
public DialogResult ShowOtherTicketPopup(int payAmt, List <BasketPay> BasketPays, int iTranOverCnt, bool bAuto, out object returnData) { returnData = null; using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.PY.dll", "WSWD.WmallPos.POS.PY.VC.POS_PY_P007", payAmt, BasketPays, iTranOverCnt, StateRefund, bAuto)) { var res = pop.ShowDialog(this); Application.DoEvents(); returnData = pop.ReturnResult.ContainsKey("PAY_DATA") ? pop.ReturnResult["PAY_DATA"] : null; return(res); } }
/// <summary> /// 포인트적립화면 /// </summary> /// <param name="cust">고객정보</param> /// <param name="BasketHeader">결제 헤더정보</param> /// <param name="BasketPays">결제 결제내역</param> /// <param name="BasketSubTtl">결제 소계정보</param> /// <param name="dtPromotion">프로모션 정보</param> /// <param name="returnData">포인트 적립정보</param> /// <returns></returns> public DialogResult ShowPointSavePopup(PP01RespData cust, BasketHeader BasketHeader, List <BasketPay> BasketPays, BasketSubTotal BasketSubTtl, BasketPointSave BasketPointSave, Dictionary <string, object> dicPromoPoint, out object returnData) { returnData = null; using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.PT.dll", "WSWD.WmallPos.POS.PT.VC.POS_PT_P002", cust, BasketHeader, BasketPays, BasketSubTtl, BasketPointSave, dicPromoPoint)) { var res = pop.ShowDialog(this); Application.DoEvents(); returnData = pop.ReturnResult.ContainsKey("POINT_DATA") ? pop.ReturnResult["POINT_DATA"] : null; return(res); } }
/// <summary> /// 현금IC 결제화면 /// </summary> /// <param name="cashAmt">결제금액</param> /// <param name="taxAmt"></param> /// <param name="orgCashIC">원거래현금IC Basket</param> /// <param name="allowCancel">닫기버튼활성화여부</param> /// <param name="returnData"></param> /// <param name="errorCode">오류코드</param> /// <param name="errorMessage">오류메시지</param> /// <returns>DialogResult.OK:성공</returns> public DialogResult ShowCashICPopup(int cashAmt, int taxAmt, BasketCashIC orgCashIC, bool allowCancel, out object returnData, out string errorCode, out string errorMessage) { returnData = null; using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.PY.dll", "WSWD.WmallPos.POS.PY.VC.POS_PY_P013", cashAmt, taxAmt, StateRefund, orgCashIC, allowCancel)) { var res = pop.ShowDialog(this); Application.DoEvents(); returnData = pop.ReturnResult.ContainsKey("PAY_DATA") ? pop.ReturnResult["PAY_DATA"] : null; errorCode = pop.ReturnResult.ContainsKey("ERROR_CODE") ? pop.ReturnResult["ERROR_CODE"].ToString() : null; errorMessage = pop.ReturnResult.ContainsKey("ERROR_MSG") ? pop.ReturnResult["ERROR_MSG"].ToString() : null; return(res); } }
private void button11_Click(object sender, EventArgs e) { var pop = ChildManager.ShowPopup("타사상품권", "WSWD.WmallPos.POS.PY.dll", "WSWD.WmallPos.POS.PY.VC.POS_PY_P007", new object[] { 100000, null }); if (pop.ShowDialog(this) == DialogResult.OK) { if (pop.ReturnResult != null && pop.ReturnResult.Count > 0) { foreach (var item in pop.ReturnResult) { MessageBox.Show(item.Value.ToString()); break; } } } }
/// <summary> /// 반납상품교환권 등록화면 /// <param name="giftButton">해당행의 교환권번호버튼</param> /// </summary> void ShowDetailExchGiftList(WSWD.WmallPos.POS.FX.Win.UserControls.Button giftButton) { // TODO // 1. Check amount, remain 회수금액 > 0 // 2. Check 미회수입력 SaleGridCell cell = giftButton.Parent as SaleGridCell; SaleGridRow row = cell.Row; string noRtnReason = row.Cells[8].Controls[0].Text; if (!string.IsNullOrEmpty(noRtnReason)) { ShowMessageBox(WSWD.WmallPos.FX.Shared.MessageDialogType.Warning, string.Empty, ERR_MSG_NORTN_RSN_ENTER_INVALID); return; } if (string.IsNullOrEmpty(giftButton.Text)) { return; } string exchGiftNo = giftButton.Text; Int64 cashAmt = TypeHelper.ToInt64(row.Cells[5].Controls[0].Text.Replace(",", "")); //Int64 giftAmt = TypeHelper.ToInt64(row.Cells[6].Controls[0].Text.Replace(",", "")); Int64 retAmt = TypeHelper.ToInt64(row.Cells[4].Controls[0].Text.Replace(",", "")); // SHOW POUPP using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.SL.dll", "WSWD.WmallPos.POS.SL.VC.POS_SL_P007", m_rtnPrsGiftList, giftButton.Text, retAmt - cashAmt)) { var res = pop.ShowDialog(this); if (res == DialogResult.OK) { // Update back to row data from P007 pop var retList = (List <RtnPrsGiftData>)pop.ReturnResult["GIFT_LIST"]; m_rtnPrsGiftList[giftButton.Text] = retList; // update total input gift amt; PQ11RespData data = (PQ11RespData)row.ItemData; data.RtnGiftAmt = (long)pop.ReturnResult["GIFT_TOTAL"]; row.Cells[6].Controls[0].Text = data.RtnGiftAmt.ToString(); data.RtnPrsnList = new List <RtnPrsGiftData>(); data.RtnPrsnList.AddRange(retList); } } }
void btnType_Click(object sender, EventArgs e) { if (_bDisable) { return; } if (POSDeviceManager.Scanner != null) { POSDeviceManager.Scanner.DataEvent -= new POSDataEventHandler(Scanner_DataEvent); //Scanner Event } using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.PY.dll", "WSWD.WmallPos.POS.PY.VC.POS_PY_P020")) { if (pop.ShowDialog(this) == DialogResult.OK) { if (pop.ReturnResult != null && pop.ReturnResult.Count > 0) { foreach (var item in pop.ReturnResult) { if (item.Key == "KD_GIFT") { txtType.Text = item.Value.ToString(); } else if (item.Key == "NM_GIFT") { lblType.Text = item.Value.ToString(); } } if (txtType.Text.Length > 0) { txtTicketNo.Text = ""; txtTicketAmt.Text = ""; txtTicketNo.SetFocus(); msgBar.Text = strMsg02; } } } } if (POSDeviceManager.Scanner != null) { POSDeviceManager.Scanner.DataEvent += new POSDataEventHandler(Scanner_DataEvent); //Scanner Event } }
private void button2_Click(object sender, EventArgs e) { // 포인트 조회 var pop = ChildManager.ShowPopup("포인트 조회", "WSWD.WmallPos.POS.PT.dll", "WSWD.WmallPos.POS.PT.VC.POS_PT_P001"); if (pop.ShowDialog(this) == DialogResult.OK) { if (pop.ReturnResult != null && pop.ReturnResult.Count > 0) { foreach (var item in pop.ReturnResult) { MessageBox.Show(item.Value.ToString()); break; } } } }
/// <summary> /// 전자서명 받기 /// </summary> /// <returns></returns> public string ShowCardSignPopup(int payAmt) { using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.PY.dll", "WSWD.WmallPos.POS.PY.VC.POS_PY_P002", payAmt, false)) { var res = pop.ShowDialog(this); Application.DoEvents(); if (res == DialogResult.OK) { // 카드결제정보 받기 완료 return(pop.ReturnResult["SIGN_DATA"].ToString()); } return(string.Empty); } }
/// <summary> /// 은련카드 비밀번호팝업 /// /// 여전법 변경 0622 /// 사용안함 /// 은련카드일 경우 신용카드 팝업 동일 /// </summary> /// <param name="workKeyIndex"></param> /// <param name="cardPin"></param> public void ShowERCardPasswordPopup(string cardNo, out string workKeyIndex, out string cardPin) { workKeyIndex = string.Empty; cardPin = string.Empty; using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.PY.dll", "WSWD.WmallPos.POS.PY.VC.POS_PY_P003", true, cardNo, 6, false)) { var res = pop.ShowDialog(this); Application.DoEvents(); if (res == DialogResult.OK) { cardPin = pop.ReturnResult["PASSWORD"].ToString(); workKeyIndex = pop.ReturnResult["WORK_INDEX"].ToString(); } } }
/// <summary> /// 그리드 Label DoubleClick Event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void lbl_DoubleClick(object sender, EventArgs e) { if (grd.RowCount > 0 && grd.CurrentRowIndex >= 0) { DataRow dr = (System.Data.DataRow)(grd.GetRow(grd.CurrentRowIndex).ItemData); if (dr != null && dr["DD_START"] != null && dr["DD_START"].ToString().Length > 0 && dr["NO_SEQ"] != null && dr["NO_SEQ"].ToString().Length > 0) { //공지사항 팝업 using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.SL.dll", "WSWD.WmallPos.POS.SL.VC.POS_SL_P004", new object[] { dr["DD_START"].ToString(), dr["NO_SEQ"].ToString() })) { pop.ShowDialog(this); } } } }
/// <summary> /// 자동반품 - 사은품회수팝업 /// </summary> /// <param name="presentList"></param> /// <param name="basketHeader"></param> /// <param name="returnData">리턴결과</param> /// <returns></returns> public DialogResult AutoRtnShowTksPresentReturnPopup(List <PQ11RespData> presentList, BasketHeader basketHeader, out object returnData) { using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.SL.dll", "WSWD.WmallPos.POS.SL.VC.POS_SL_P005", presentList, basketHeader)) { returnData = null; var res = pop.ShowDialog(this); Application.DoEvents(); if (res == DialogResult.Yes) { returnData = pop.ReturnResult.ContainsKey("PRESENT_LIST") ? pop.ReturnResult["PRESENT_LIST"] : null; } return(res); } }
/// <summary> /// Process key event in View /// 특별한인경우만 뷰에서 키이벤트처리한다 /// </summary> /// <param name="e"></param> public bool ProcessKeyEvent(OPOSKeyEventArgs e) { if (InputState == ItemInputState.Processing) { e.IsHandled = true; return(false); } if (e.Key.OPOSKey == OPOSMapKeys.KEY_INQPRC) { //AutoRtnTksPresentTest(); // 가격조회 e.IsHandled = true; using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.SL.dll", "WSWD.WmallPos.POS.SL.VC.POS_SL_P002")) { pop.ShowDialog(this); Application.DoEvents(); } } if (e.Key.OPOSKey == OPOSMapKeys.KEY_HOLD) { e.IsHandled = true; if (!m_holdPresenter.CheckHoldTrxnExists(InputText)) { m_presenter.ReportInvalidState(InvalidDataInputState.NoHoldTrxn); } } else { if (!this.ChildManager.ProcessFuncKey(e, true, HasItems)) { m_presenter.ReportInvalidState(InvalidDataInputState.InvalidKey); } } return(m_presenter.OnProcessKeyEventReturn(e)); }
/// <summary> /// 기타결제수단 /// </summary> /// <param name="payAmt"></param> /// <param name="taxAmt"></param> /// <param name="returnData"></param> /// <returns></returns> public DialogResult ShowOtherPayMethod(int payAmt, int taxAmt, out object returnData) { returnData = null; using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.PY.dll", "WSWD.WmallPos.POS.PY.VC.POS_PY_P018")) { var res = pop.ShowDialog(this); Application.DoEvents(); if (res == DialogResult.OK) { string className = pop.ReturnResult.ContainsKey("SELECT_CLASS") ? pop.ReturnResult["SELECT_CLASS"].ToString() : string.Empty; if (!string.IsNullOrEmpty(className)) { className = "WSWD.WmallPos.POS.PY.VC." + className; string dllName = "WSWD.WmallPos.POS.PY.dll"; var payPop = ChildManager.ShowPopup(string.Empty, dllName, className, payAmt, taxAmt, StateRefund); res = payPop.ShowDialog(this); Application.DoEvents(); if (res == DialogResult.OK) { returnData = payPop.ReturnResult.ContainsKey("PAY_DATA") ? payPop.ReturnResult["PAY_DATA"] : null; } } else { res = DialogResult.Cancel; } } return(res); } }
/// <summary> /// Form Load Event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void form_Load(object sender, EventArgs e) { //이벤트 등록 InitEvent(); //받을돈 txtGetAmt.Text = m_payAmt.ToString(); //결제금액 txtDiscAmt.SetFocus(); // 비밀번호팝업 using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.SO.dll", "WSWD.WmallPos.POS.SO.VC.POS_SO_P001", "03,04")) { var res = pop.ShowDialog(this); if (res == DialogResult.Cancel) { this.Close(); return; } } }
private void button4_Click(object sender, EventArgs e) { // 카드번호 2701005166385 //전화번호 01046627888 //PP01RespData pp = new PP01RespData(); //pp.CardNo = "2701005166385"; //pp.CustName; //pp.GradeName; //pp.AbtyPoint = "100000"; var pop = ChildManager.ShowPopup("포인트사용", "WSWD.WmallPos.POS.PY.dll", "WSWD.WmallPos.POS.PY.VC.POS_PY_P009", new object[] { 100000, null }); if (pop.ShowDialog(this) == DialogResult.OK) { if (pop.ReturnResult != null && pop.ReturnResult.Count > 0) { foreach (var item in pop.ReturnResult) { MessageBox.Show(item.Value.ToString()); break; } } } }
private void button9_Click(object sender, EventArgs e) { var pop = ChildManager.ShowPopup("가격조회", "WSWD.WmallPos.POS.SL.dll", "WSWD.WmallPos.POS.SL.VC.POS_SL_P002"); pop.ShowDialog(this); }
private void wButton4_Click(object sender, EventArgs e) { var pop = ChildManager.ShowPopup("", "WSWD.WmallPos.POS.TM.dll", "WSWD.WmallPos.POS.TM.VC.POS_TM_P002"); pop.ShowDialog(this); }
/// <summary> /// PP02전문통신(전화번호) 완료 이벤트 /// </summary> /// <param name="responseData"></param> void pp02_TaskCompleted(WSWD.WmallPos.FX.Shared.NetComm.Response.TaskResponseData responseData) { ChildManager.ShowProgress(false); if (responseData.Response.ResponseState == SocketTrxnResType.Success) { var data = responseData.DataRecords.ToDataRecords <PP02RespData>(); if (data.Length > 0) { if (this.InvokeRequired) { this.BeginInvoke((MethodInvoker) delegate() { if (TypeHelper.ToInt32(data[0].CustCount) > 1) { DataTable dtCust = new DataTable(); dtCust.Columns.Add("Col01"); dtCust.Columns.Add("Col02"); for (int i = 0; i < TypeHelper.ToInt32(data[0].CustCount); i++) { dtCust.Rows.Add(new object[] { data[0].CustList[i].CustCardNo.ToString(), data[0].CustList[i].CustName.ToString() }); } //동일 전화번호가 두명이상이면 선택팝업 open if (dtCust.Rows.Count > 0) { using (var pop = ChildManager.ShowPopup(strMsg12, "WSWD.WmallPos.POS.PT.dll", "WSWD.WmallPos.POS.PT.VC.POS_PT_P003", dtCust)) { if (pop.ShowDialog(this) == DialogResult.OK) { if (pop.ReturnResult != null && pop.ReturnResult.Count > 0) { foreach (var item in pop.ReturnResult) { GetServerRegister("1", item.Value.ToString()); break; } } } } } SetControlDisable(false); } if (TypeHelper.ToInt32(data[0].CustCount) <= 1) { GetServerRegister("1", data[0].CustList[0].CustCardNo.ToString()); } }); } else { if (TypeHelper.ToInt32(data[0].CustCount) > 1) { DataTable dtCust = new DataTable(); dtCust.Columns.Add("Col01"); dtCust.Columns.Add("Col02"); for (int i = 0; i < TypeHelper.ToInt32(data[0].CustCount); i++) { dtCust.Rows.Add(new object[] { data[0].CustList[i].CustCardNo.ToString(), data[0].CustList[i].CustName.ToString() }); } //동일 전화번호가 두명이상이면 선택팝업 open if (dtCust.Rows.Count > 0) { using (var pop = ChildManager.ShowPopup(strMsg12, "WSWD.WmallPos.POS.PT.dll", "WSWD.WmallPos.POS.PT.VC.POS_PT_P003", dtCust)) { if (pop.ShowDialog(this) == DialogResult.OK) { if (pop.ReturnResult != null && pop.ReturnResult.Count > 0) { foreach (var item in pop.ReturnResult) { GetServerRegister("1", item.Value.ToString()); break; } } } } } SetControlDisable(false); } if (TypeHelper.ToInt32(data[0].CustCount) <= 1) { GetServerRegister("1", data[0].CustList[0].CustCardNo.ToString()); } } } } else if (responseData.Response.ResponseState == WSWD.WmallPos.FX.Shared.NetComm.SocketTrxnResType.NoInfo) { if (this.InvokeRequired) { this.BeginInvoke((MethodInvoker) delegate() { POSDeviceManager.SignPad.RequestPinData(strMsg06, "", "", "", 1, 13); _returnData = null; txtCardNo.Text = ""; txtCustName.Text = ""; txtGradeName.Text = ""; txtDelayPoint.Text = ""; txtAbtyPoint.Text = ""; txtCltePoint.Text = ""; txtRemark.Text = ""; strCustNo = ""; msgBar.Text = responseData.Response.ErrorMessage.ToString(); SetControlDisable(false); }); } else { POSDeviceManager.SignPad.RequestPinData(strMsg06, "", "", "", 1, 13); _returnData = null; txtCardNo.Text = ""; txtCustName.Text = ""; txtGradeName.Text = ""; txtDelayPoint.Text = ""; txtAbtyPoint.Text = ""; txtCltePoint.Text = ""; txtRemark.Text = ""; strCustNo = ""; msgBar.Text = responseData.Response.ErrorMessage.ToString(); SetControlDisable(false); } } else { if (this.InvokeRequired) { this.BeginInvoke((MethodInvoker) delegate() { POSDeviceManager.SignPad.RequestPinData(strMsg06, "", "", "", 1, 13); _returnData = null; txtCardNo.Text = ""; txtCustName.Text = ""; txtGradeName.Text = ""; txtDelayPoint.Text = ""; txtAbtyPoint.Text = ""; txtCltePoint.Text = ""; txtRemark.Text = ""; strCustNo = ""; msgBar.Text = responseData.Response.ErrorMessage.ToString(); SetControlDisable(false); }); } else { POSDeviceManager.SignPad.RequestPinData(strMsg06, "", "", "", 1, 13); _returnData = null; txtCardNo.Text = ""; txtCustName.Text = ""; txtGradeName.Text = ""; txtDelayPoint.Text = ""; txtAbtyPoint.Text = ""; txtCltePoint.Text = ""; txtRemark.Text = ""; strCustNo = ""; msgBar.Text = responseData.Response.ErrorMessage.ToString(); SetControlDisable(false); } } }