private void btnCardCancel_Click(object sender, EventArgs e) { try { string scope = this.txtScope.Text.Trim(); string str = Van.KICC.Cancel(Van.JobKind.CancelCard, Van.CashKind.None, this.txtTid.Text.Trim(), this.txtCardNo.Text.Trim(), scope, txtAmtSplit.Text.Trim(), txtAmt.Text.Trim(), this.txtOrgRegNo.Text.Trim(), this.txtOrgRegDate.Text.Trim()); SendData(str); Van.RecivedData reqdata = new RecivedData(); reqdata = _ReqData; if (reqdata.IsAgreeError) { MessageBox.Show(reqdata.Message); return; } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// <summary> /// ํ๊ธ์ฐ์์ฆ ์๋ ์น์ธ์ทจ์ /// </summary> private void fnCashBillAutoCacel(bool cashbillyn , CashKind cashbillkind , string regno , string amt , string orgagreeno ) { try { if (cashbillyn) { //ํ๊ธ์์์ฆ ์น์ธ๊ฑด์ด๋ผ๋ฉด //ํ๊ธ์์์ฆ์ ์ทจ์ํ๋ค. /***********************************************************************************************************************************************/ Van.RecivedData CashCancelreq = new RecivedData(); using (BizVanComunication bizVan = new BizVanComunication()) { CashCancelreq = bizVan.SendData("PROJECT_D", JobKind.CancelCash, cashbillkind, regno, "", "", amt, "", "", "", "", CashGbn.None); bizVan.Dispose(); } /***********************************************************************************************************************************************/ if (CashCancelreq.IsAgreeError) { //cashAgreeNo Basic.ShowMessage(1, "ํ๊ธ์์์ฆ ์น์ธ ํ DB ์ ์ฅ์ ์๋ฌ์ ๋๋ค.\n\r" + "ํ๊ธ์์์ฆ ์น์ธ ์ทจ์์ ์๋์ ๊ฐ์ ์๋ฌ๋ก ์ทจ์ํ์ง ๋ชปํ์์ต๋๋ค.\n\r\n\r" + "์๋ฌ๋ด์ฉ:\n\r" + CashCancelreq.Message + "\n\r\n\r" + "์ ์ฐ์ค์ ๋ฌธ์ํ์ฌ ์๊ธฐ ์ทจ์๋ฐ๋๋๋ค. \n\r\n\r" + "์น์ธ๋ฒํธ : " + orgagreeno); Van.Log.Log.SaveLog("[ํ๊ธ์์์ฆ์น์ธํ - DB ์ ์ฅ์์๋ฌ - ํ๊ธ์์์ฆ ์น์ธ์ทจ์์ -์๋ฌ ] - ์น์ธ๋ฒํธ : " + orgagreeno); } } return; } catch (Exception ex) { Basic.ShowMessage(3, ex.Message); } finally { this.Cursor = Cursors.Default; } }
public override BotNode Process(RecivedData recivedData) { if (recivedData.Message == Texts.Ago) { return(this.AgoNode); } else { this._text = "Please Select correct item"; } return(this); }
public override BotNode Process(RecivedData recivedData) { if (recivedData.Message == Texts.Ago) { return(new StartNode(String.Empty)); } else { this.StartMessageText = "Please Select correct item"; } return(this); }
public override BotNode Process(RecivedData recivedData) { if (recivedData.Message == Texts.SelectNumber) { return(new NodeSelectNumber()); } if (recivedData.Message == Texts.About) { return(new NodeAbout()); } else { this.StartMessageText = "Please Select correct item"; } return(this); }
public override BotNode Process(RecivedData recivedData) { int tmp; if (int.TryParse(recivedData.Message, out tmp)) { return(new NodeShowNumberSelected(tmp, this)); } else if (recivedData.Message == Texts.Ago) { return(new StartNode(string.Empty)); } else { this.StartMessageText = "Please Select correct item"; } return(this); }
private void btnCardReg_Click(object sender, EventArgs e) { Van.RecivedData reqdata = new RecivedData(); try { string scope = this.txtScope.Text.Trim(); string str = Van.KICC.Reg(Van.JobKind.RegCard, Van.CashKind.None, this.txtTid.Text.Trim(), this.txtCardNo.Text.Trim(), scope, txtAmtSplit.Text.Trim(), txtAmt.Text.Trim()); if (chkSign.Checked) { //********************************************************************************* //์ธ์ธ์ ๋ฐ๋๋ค. if (this.pictureEdit1.Image != null) { pictureEdit1.Image.Dispose(); pictureEdit1.Image = null; } ReqClear(); Van.frmVanLoading fCash = new frmVanLoading("๊ณ ๊ฐ์ธ์ธ์์ฒญ", VanType.KICC, frmVanLoading.JobKind.Sign, "GetRequest"); fCash.Amount = 10000; fCash.SignPadReqdata = str; fCash.SignPort = int.Parse(this.txtSignPadPort.Text.Trim()); fCash.SignSpeed = 57600; fCash.Owner = this; fCash.VanServerIP = this.txtKiccIP.Text.Trim(); fCash.VanServerPort = int.Parse(this.txtKiccPort.Text.Trim()); fCash.ShowDialog(); Application.DoEvents(); if (_ReqData.RequestCode == ((int)Van.frmVanLoading.RS232Err.PortError).ToString()) { MessageBox.Show("์ธ์ธํจ๋ ์ฐ๊ฒฐ์คํจ ์ ๋๋ค."); return; } else if (_ReqData.RequestCode == ((int)Van.frmVanLoading.RS232Err.NotImage).ToString()) { MessageBox.Show("์ธ์ธ์ด๋ฏธ์ง๊ฐ ์์ต๋๋ค."); return; } else if (_ReqData.RequestCode == ((int)Van.frmVanLoading.RS232Err.TimeOut).ToString()) { MessageBox.Show("์ ํ์๊ฐ ์ด๊ณผ ์ ๋๋ค."); return; } else if (_ReqData.RequestCode == ((int)Van.frmVanLoading.RS232Err.Communication).ToString()) { MessageBox.Show("์ธ์ธํจ๋์ ํต์ ํ ์ ์์ต๋๋ค."); return; } else if (_ReqData.RequestCode == ((int)Van.frmVanLoading.RS232Err.NotData).ToString()) { MessageBox.Show("๋ฐ์ดํฐ๊ฐ ์์ต๋๋ค.."); return; } //********************************************************************************* if (this.pictureEdit1.Image != null) { this.pictureEdit1.Image.Dispose(); this.pictureEdit1.Image = null; } Image imgs = mImage.ByteArrayToImage(_ReqData.SignData); this.pictureEdit1.Image = mImage.ByteArrayToImage(_ReqData.SignData); Van.SignViewer f = new SignViewer(imgs); f.ShowDialog(); } if (!_ReqData.IsSignPadAgree) { SendData(str); } reqdata = _ReqData; if (reqdata.IsAgreeError) { MessageBox.Show(reqdata.Message); return; } if (_ReqData.IsSignPadAgree) { if (this.gridSend.DataSource != null) { ((DataTable)this.gridSend.DataSource).Dispose(); this.gridSend.DataSource = null; } if (this.gridRecevie.DataSource != null) { ((DataTable)this.gridRecevie.DataSource).Dispose(); this.gridRecevie.DataSource = null; } this.gridSend.DataSource = _ReqData.dsDoc.Tables[0].Copy(); this.gridRecevie.DataSource = _ReqData.dsDoc.Tables[1].Copy(); this.gridRecevie.Refresh(); this.gridSend.Refresh(); txtSendData.Text = _ReqData.FullSendData; txtReceviedData.Text = _ReqData.FullRequestData; } txtOrgRegNo.Text = reqdata.AgreeNo; this.txtOrgRegDate.Text = reqdata.AgreeDate.Substring(0, 6); InvokeOnClick(btnCardCancel, new EventArgs()); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// <summary> /// ํ๊ธ๊ฒฐ์ ์ฒ๋ฆฌ /// </summary> private void fnPay110_Reg() { try { bool IsAgreeCash = false; bool IsClose = BizCommon.Gneral_D.IsRoomClose(); if (PayInfo.useKind == UseKind.Room && IsClose) { Basic.ShowMessage(1, "ํ์ฌ ๋ง๊ฐ์์ ์ค์ ๋๋ค. \n\r๋ง๊ฐ์ด ๋๋ํ ์์ ์ ๊ณ์ํ์ญ์์"); return; } int amt = int.Parse(Basic.MaskReplace(txtCashAmt.Text.Trim())); if (amt <= 0) { Basic.ShowMessage(1, "๊ฒฐ์ ๊ธ์ก์ ์ ๋ ฅํ์ฌ ์ฃผ์ญ์์."); txtCashAmt.Focus(); return; } _Pay_UserCheck = ""; //๋ด๋น์์ฒดํฌ๊ธฐ๋ฅ // DAHAH05 f = new DAHAH05(Parm.CurrentUserInformation.roomTask.gsDFacility, "fn_Room_UserCheck"); f.Owner = this; f.ShowDialog(); if (_Pay_UserCheck == "") { Basic.ShowMessage(1, "๋ด๋น์ ํ์ธ์ด ๋์ง ์์์ต๋๋ค."); return; } string empno = _Pay_UserCheck; if (Basic.MaskReplace(Num.GetNumberOnly(PayInfomation.RoomInfo.C_Facipart)) + Basic.MaskReplace(Num.GetNumberOnly(PayInfomation.RoomInfo.C_RoomNo)).Trim() == "") { Basic.ShowMessage(2, "Bill ๋ฒํธ๋ฅผ ์์ฑ ํ ์ ์์ต๋๋ค.\n\r\n\r๋์ฝ๋:" + PayInfomation.RoomInfo.C_Facipart + "\r\n๊ฐ์ค๋ฒํธ:" + PayInfomation.RoomInfo.C_RoomNo); return; } Van.RecivedData Cashreqdata = new RecivedData(); //ํ๊ธ์์์ฆ ์ ํ๋์์๋ if (chkCashBillYn.Checked) { /* if (lupCashBill_IdCode.EditValue.ToString() == "0") * { * DataRow[] dr = Parm.mDataTable.dtZx010ms.Select("HEAD = 'Z0028' AND DETAIL = '0' AND USE_YN = 'Y' "); * * if (dr.Length >= 0) txtCashBillRegNo.Text = dr[0]["ITEM1"].ToString(); * } * * if(lupCashBill_IdCode.EditValue.ToString() == "") * { * //ํ๊ธ์์์ฆ * Basic.ShowMessage(1, "ํ๊ธ์์์ฆ ๊ตฌ๋ถ์ ์ ํํ์ฌ ์ฃผ์ญ์์"); * lupCashBill_IdCode.Focus(); * return; * } * else if(!chkCashSignPad.Checked && txtCashBillRegNo.Text.Trim().Length < 7) * { * //ํ๊ธ์์์ฆ * Basic.ShowMessage(1, "์๋ณ๋ฒํธ๋ฅผ ์ ํํ๊ฒ ์ ๋ ฅํ์ฌ ์ฃผ์ญ์์"); * txtCashBillRegNo.Focus(); * return; * } */ Van.RecivedData reqdata = new RecivedData(); //์๋ณ๋ฒํธ๋ฅผ ์ธ์ธํจ๋๋ก ๋ฐ๋๋ค๋ฉด if (chkCashSignPad.Checked) { using (BizVanComunication regNumber = new BizVanComunication()) { reqdata = regNumber.GetCashRegNumber("PROJECT_D", int.Parse(Basic.MaskReplace(txtCashAmt.Text.Trim())) ); regNumber.Dispose(); } txtCashBillRegNo.Text = reqdata.CashRegNumber; } /* if(txtCashBillRegNo.Text.Trim().Length < 7) * { * //ํ๊ธ์์์ฆ * Basic.ShowMessage(1, "์๋ณ๋ฒํธ๋ฅผ ์ ํํ๊ฒ ์ ๋ ฅํ์ฌ ์ฃผ์ญ์์"); * txtCashBillRegNo.Focus(); * return; * } */ //ํ๊ธ์์์ฆ ์น์ธ์์ฒญ /***********************************************************************************************************************************************/ // if(BizCommon.CheckVan.CheckMode() == DialogResult.No) return; using (BizVanComunication bizVan = new BizVanComunication()) { Cashreqdata = bizVan.SendData("PROJECT_D", JobKind.RegCash, optCashBillKind.SelectedIndex < 1 ? Van.CashKind.Persnal :Van.CashKind.Company, txtCashBillRegNo.Text.Trim(), "", "", Basic.MaskReplace(txtCashAmt.Text.Trim()), "", "", "", "", lupCashBill_IdCode.EditValue.ToString() == "1" ? CashGbn.Card : CashGbn.None); bizVan.Dispose(); } /***********************************************************************************************************************************************/ if (Cashreqdata.IsAgreeError) { Basic.ShowMessage(1, Cashreqdata.Message); return; } //์น์ธ์ฌ๋ถ //DB ์์ ์คํจ์ ์ญ์ ํ๊ธฐ์ํด์ IsAgreeCash = true; } else { if (cAutoReg.Checked) { DataRow[] dr = Parm.mDataTable.dtZx010ms.Select("HEAD = 'Z0028' AND DETAIL = '0' AND USE_YN = 'Y' "); Int32 _intInput = 0; Int32 _intZ0028 = 0; try { _intInput = Convert.ToInt32(txtCashAmt.Text.Replace(",", "")); } catch (Exception ex) { _intInput = -1; } try { _intZ0028 = Convert.ToInt32(dr[0]["ITEM2"].ToString()); } catch (Exception) { _intZ0028 = 0; } if (_intInput >= _intZ0028) { using (BizVanComunication bizVan = new BizVanComunication()) { Cashreqdata = bizVan.SendData("PROJECT_D", JobKind.RegCash, optCashBillKind.SelectedIndex < 1 ? Van.CashKind.Persnal : Van.CashKind.Company, dr[0]["ITEM1"].ToString(), "", "", Basic.MaskReplace(txtCashAmt.Text.Trim()), "", "", "", "", CashGbn.None); bizVan.Dispose(); } /***********************************************************************************************************************************************/ if (Cashreqdata.IsAgreeError) { Basic.ShowMessage(1, Cashreqdata.Message); return; } //์น์ธ์ฌ๋ถ //DB ์์ ์คํจ์ ์ญ์ ํ๊ธฐ์ํด์ IsAgreeCash = true; } } } string cashAgreeNo = Cashreqdata.AgreeNo; this.Cursor = Cursors.WaitCursor; //ํ๊ธ๊ฒฐ์ ๋ฃจํด์ ํ์ด๋ค. string v_ret = fn_110(amt.ToString(), IsAgreeCash, BizCommon.Parm_Pay.PAY_CODE_CASH, cashAgreeNo, empno, PayInfomation.RoomInfo.C_Reference); this.Cursor = Cursors.Default; if (v_ret != "OK") { Basic.ShowMessage(1, v_ret); if (IsAgreeCash) { //ํ๊ธ์์์ฆ ์น์ธ๊ฑด์ด๋ผ๋ฉด //ํ๊ธ์์์ฆ์ ์ทจ์ํ๋ค. /***********************************************************************************************************************************************/ Van.RecivedData CashCancelreq = new RecivedData(); using (BizVanComunication bizVan = new BizVanComunication()) { CashCancelreq = bizVan.SendData("PROJECT_D", JobKind.CancelCash, optCashBillKind.SelectedIndex < 1 ? Van.CashKind.Persnal :Van.CashKind.Company, txtCashBillRegNo.Text.Trim(), "", "", Basic.MaskReplace(txtCashAmt.Text.Trim()), "", "", "", "", lupCashBill_IdCode.EditValue.ToString() == "1" ? CashGbn.Card : CashGbn.None); bizVan.Dispose(); } /***********************************************************************************************************************************************/ if (CashCancelreq.IsAgreeError) { //cashAgreeNo Basic.ShowMessage(1, "ํ๊ธ์์์ฆ ์น์ธ ํ DB ์ ์ฅ์ ์๋ฌ์ ๋๋ค.\n\r" + "ํ๊ธ์์์ฆ ์น์ธ ์ทจ์์ ์๋์ ๊ฐ์ ์๋ฌ๋ก ์ทจ์ํ์ง ๋ชปํ์์ต๋๋ค.\n\r\n\r" + "์๋ฌ๋ด์ฉ:\n\r" + CashCancelreq.Message + "\n\r\n\r" + "์ ์ฐ์ค์ ๋ฌธ์ํ์ฌ ์๊ธฐ ์ทจ์๋ฐ๋๋๋ค. \n\r\n\r" + "์น์ธ๋ฒํธ : " + cashAgreeNo); Van.Log.Log.SaveLog("[ํ๊ธ์์์ฆ์น์ธํ - DB ์ ์ฅ์์๋ฌ - ํ๊ธ์์์ฆ ์น์ธ์ทจ์์ -์๋ฌ ] - ์น์ธ๋ฒํธ : " + cashAgreeNo); } } return; } txtCashAmt.Text = "0"; txtCashBillRegNo.Text = ""; Basic.ShowMessage(1, "์ ์ฅ ํ์์ต๋๋ค."); RaiseDataReflashEvent(true); } catch (Exception ex) { Basic.ShowMessage(3, ex.Message); } finally { this.Cursor = Cursors.Default; } }
private void fn_120(DataRow r, string emp, string memo) { try { #region DataRow ์ ๋ณด /* * dt.Columns.Add("FACILITY_CODE" ); * dt.Columns.Add("MNG_NO" ); * dt.Columns.Add("MNG_SEQ" ,typeof(decimal)); * dt.Columns.Add("TASK_DATE" ); * dt.Columns.Add("KEY_SEQ" ,typeof(decimal)); * dt.Columns.Add("RAISE_CODE" ); * dt.Columns.Add("RAISE_CODE_NAME"); * dt.Columns.Add("PAY_CODE" ); * dt.Columns.Add("PAY_CODE_NAME"); * dt.Columns.Add("PAY_AMT" ,typeof(decimal)); * dt.Columns.Add("RMRK" ); * dt.Columns.Add("REFERENCE" ); * dt.Columns.Add("SEQ_NO" ,typeof(decimal)); * dt.Columns.Add("TRACK_TWO" ); * dt.Columns.Add("CARD_NO" ); * dt.Columns.Add("VALID_THRU" ); * dt.Columns.Add("AGREE_NO" ); * dt.Columns.Add("AGREE_DATE" ); * dt.Columns.Add("INSTALLMENT_CNT" ,typeof(decimal)); * dt.Columns.Add("EASY_YN" ); * * dt.Columns.Add("CO_FACILITY_CODE" ); * dt.Columns.Add("CO_MNG_NO" ); * dt.Columns.Add("CO_MNG_SEQ" ,typeof(decimal)); * dt.Columns.Add("CO_TASK_DATE" ); * dt.Columns.Add("CO_KEY_SEQ" ,typeof(decimal)); */ #endregion //๊ฐ์ค์ผ๋ ๋ง๊ฐ์ฌ๋ถ ํ์ธ bool IsClose = BizCommon.Gneral_D.IsRoomClose(); if (info.useKind == DAZAZ02.UseKind.Room && IsClose) { Basic.ShowMessage(1, "ํ์ฌ ๋ง๊ฐ์์ ์ค์ ๋๋ค. \n\r๋ง๊ฐ์ด ๋๋ํ ์์ ์ ๊ณ์ํ์ญ์์"); return; } //์นด๋์ ๋ณด๋ฅผ ์ฝ์ด์จ๋ค. DataTable dtParm1 = DataLayer.GetDataTableParameter(DataLayer.DatatableStyle.Parameter); dtParm1.Rows.Add(new object[] { "V_BIZ_CODE", Parm.CurrentUserInformation.BizInfo.BizCode }); dtParm1.Rows.Add(new object[] { "V_AGREE_NO", r["AGREE_NO"].ToString().Trim() }); DataSet dsCardinfo = DataLayer.ExecuteSpDataset("PKG_DAZAZ02.PR_CARD_INFO", dtParm1, DataLayer.MessageEncoding.Default); if (dsCardinfo.Tables[0].Rows.Count <= 0) { Basic.ShowMessage(1, "์นด๋์ ๋ณด๊ฐ ์์ต๋๋ค."); return; } /**********************************************************************************************/ //์ทจ์์น์ธ /**********************************************************************************************/ // if(BizCommon.CheckVan.CheckMode() == DialogResult.No) return; string str = ""; string strcancelcardno = ""; if (dsCardinfo.Tables[0].Rows[0]["TRACK_TWO"].ToString().Trim() == "") { strcancelcardno = dsCardinfo.Tables[0].Rows[0]["CARD_NO"].ToString().Trim(); } else { strcancelcardno = dsCardinfo.Tables[0].Rows[0]["TRACK_TWO"].ToString().Trim(); } if (strcancelcardno == "") { Basic.ShowMessage(1, "์นด๋์ ๋ณด๊ฐ ์์ต๋๋ค."); return; } Van.RecivedData reqdata = new RecivedData(); using (BizVanComunication bizAgree = new BizVanComunication()) { reqdata = bizAgree.SendData("PROJECT_D", JobKind.CancelCard, CashKind.None, strcancelcardno, dsCardinfo.Tables[0].Rows[0]["VALID_THRU"].ToString().Trim(), dsCardinfo.Tables[0].Rows[0]["INSTALLMENT_CNT"].ToString().Trim(), dsCardinfo.Tables[0].Rows[0]["SALE_AMT"].ToString().Trim(), "", "", dsCardinfo.Tables[0].Rows[0]["AGREE_NO"].ToString().Trim(), DateTime.Parse(uDate.GetDateFromYYYY_MM_DD(dsCardinfo.Tables[0].Rows[0]["AGREE_DATE"].ToString().Trim())).ToString("yyyyMMdd"), CashGbn.None); bizAgree.Dispose(); } if (reqdata.IsAgreeError) { Basic.ShowMessage(3, "์นด๋ ์น์ธ์ ์ทจ์ํ ์ ์์ต๋๋ค. - \n\r" + reqdata.Message); return; } this.Cursor = Cursors.WaitCursor; try{ //์น์ธ ์ดํ ์๋ฌ๊ฑด์ ๋ํ ๋ฉ์ธ์ง ์ฒ๋ฆฌ๋ฅผ ๋ฌด์กฐ๊ฑดํ๋ค. string AgreeDates = reqdata.AgreeDate.Substring(0, 4) + "-" + reqdata.AgreeDate.Substring(4, 2) + "-" + reqdata.AgreeDate.Substring(6, 2); AgreeDates = DateTime.Parse(AgreeDates).ToString("yyyyMMdd"); string saledate = Parm.CurrentUserInformation.roomTask.gsTaskDate; string bizcode = Parm.CurrentUserInformation.BizInfo.BizCode; string facilitycode = r["FACILITY_CODE"].ToString().Trim(); string billno = Basic.MaskReplace(Num.GetNumberOnly(Faci)) + Basic.MaskReplace(Num.GetNumberOnly(RoomNo)); string saleyn = "Y"; string payseq = "์ผ๋ จ๋ฒํธํ๊ธ์ seqno ์๋๋๋ค"; string agreeyn = "N"; string saleamt = (int.Parse(r["PAY_AMT"].ToString().Trim()) * -1).ToString().Trim(); string cardno = r["CARD_NO"].ToString().Trim(); string validthru = r["VALID_THRU"].ToString().Trim(); string installentcnt = r["INSTALLMENT_CNT"].ToString().Trim(); string agreeno = reqdata.AgreeNo; string orgagreeno = r["AGREE_NO"].ToString().Trim(); string card_co_code = reqdata.CardCoCode; string card_co_name = reqdata.CardCoName; string issu_co_code = reqdata.ISSUCoCode; string issu_co_name = reqdata.ISSUCoName; string card_join_no = reqdata.CardJoinNo; string agreedate = AgreeDates; //string agreetime = reqdata.AgreeDate.Substring(6,4); string agreetime = reqdata.AgreeDate.Length > 6 ? reqdata.AgreeDate.Substring(6, 4) : DateTime.Now.ToString("hhmm"); string track_Two = dsCardinfo.Tables[0].Rows[0]["TRACK_TWO"].ToString().Trim(); string easyyn = "N"; string tid = Parm.CurrentUserInformation.roomTask.gsCardTerminalID; string empno = Parm.CurrentUserInformation.id; string ip = Parm.CurrentUserInformation.ip; //์ฑ๋ฒํ๋ค. DataTable dtParm = DataLayer.GetDataTableParameter(DataLayer.DatatableStyle.Parameter); dtParm.Rows.Add(new object[] { "V_SALE_DATE", saledate }); dtParm.Rows.Add(new object[] { "V_BIZ_CODE", bizcode }); dtParm.Rows.Add(new object[] { "V_FACILITY_CODE", facilitycode }); dtParm.Rows.Add(new object[] { "V_POS_NO", "01" }); dtParm.Rows.Add(new object[] { "V_BILL_NO", billno }); dtParm.Rows.Add(new object[] { "V_SALE_YN", saleyn }); payseq = DataLayer.ExecuteSpScala("PKG_DAZAZ02.PR_IAA030MS_KEY_SEQ", dtParm, DataLayer.MessageEncoding.Default); //์ผ๋จ ๋๊ธธํ ์ด๋ธ์ ๋ด๋๋ค. DataTable dtCard = Pay.CreditCard(saledate, bizcode, facilitycode, billno, saleyn, payseq, agreeyn, saleamt, cardno, validthru, installentcnt, agreeno, orgagreeno, card_co_code, card_co_name, issu_co_code, issu_co_name, card_join_no, agreedate, agreetime, track_Two, easyyn, tid, empno, ip); //์นด๋์ ๋ณด๋ ๋ด์๋ค //ํ๊ธ์ ๋ณด๋ฅผ ๋๋ฐํด์ผ๋๊ธฐ๋๋ฌธ์ ํ๊ธ์ ๋ณด๋ฅผ ๋ด๋๋ค. string mngno = r["MNG_NO"].ToString().Trim(); //๊ด๋ฆฌ๋ฒํธ string mngseq = r["MNG_SEQ"].ToString().Trim(); //๊ด๋ฆฌ์๋ฒ string taskdate = Appdate; //์์ ์ผ์ string keyseq = "์ผ๋ จ๋ฒํธ"; //์ผ๋ จ๋ฒํธ string rasiecode = r["RAISE_CODE"].ToString().Trim(); //๋ฐ์์ฝ๋ string paycode = r["PAY_CODE"].ToString().Trim(); //๊ฒฐ์ ์ฝ๋ string payamt = r["PAY_AMT"].ToString().Trim(); //๊ฒฐ์ ๊ธ์ก string itemstat = "D"; //์ํ string facipart = Faci; //๋์ฝ๋ string reference = reqdata.AgreeNo; //์ฐธ๊ณ (์นด๋๋ฒํธ,์น์ธ๋ฒํธ/๋ฝ์นด๋ฒํธ/์ฐํ๋ฒํธ/์ํ๊ถ๋ฒํธ/ํ์๋ฒํธ) string seqno = payseq; //์๋ฒ string rmrk = "[์น์ธ๋ฒํธ:" + reqdata.AgreeNo + "] ์ฌ์ :" + memo; //๋น๊ณ string co_facilitycode = ""; //์ด์ฒด์์ ์ฅ์ฝ๋ string co_mngcode = ""; //์ด์ฒด๊ด๋ฆฌ๋ฒํธ string co_mngseq = ""; //์ด์ฒด๊ด๋ฆฌ์๋ฒ string co_taskdate = ""; //์ด์ฒด์์ ์ผ์ string co_keyseq = ""; //์ด์ฒด์ผ๋ จ๋ฒํธ string st_facilitycode = facilitycode; //์ต์ด์์ ์ฅ์ฝ๋ string st_mngno = mngno; //์ต์ด๊ด๋ฆฌ๋ฒํธ string st_mngseq = mngseq; //์ต์ด๊ด๋ฆฌ์๋ฒ string st_taskdate = Basic.MaskReplace(r["TASK_DATE"].ToString().Trim()); //์ต์ด์์ ์ผ์ string st_keyseq = r["KEY_SEQ"].ToString().Trim(); //์ต์ด์ผ๋ จ๋ฒํธ string editstatus = "3"; //์์ ๊ตฌ๋ถ //seqno ์๋ฒ์ ๊ฐ์ ธ์์ ํ ๋นํ๋ค. //์ ๊ธํ ์ด๋ธ [DCA030MS] // ์ฌ์ ์ฅ์ฝ๋ // ์์ ์ฅ์ฝ๋ //๊ด๋ฆฌ๋ฒํธ //๊ด๋ฆฌ์๋ฒ// ์์ ์ผ์ // == ์ผ๋ จ๋ฒํธ// // ์๋ฒ์ ๊ฐ์ ธ์จ๋ค //PR_KEY_SEQ DataTable dtParm3 = DataLayer.GetDataTableParameter(DataLayer.DatatableStyle.Parameter); dtParm3.Rows.Add(new object[] { "V_BIZ_CODE", bizcode }); dtParm3.Rows.Add(new object[] { "V_FACILITY_CODE", facilitycode }); dtParm3.Rows.Add(new object[] { "V_MNG_NO", mngno }); dtParm3.Rows.Add(new object[] { "V_MNG_SEQ", mngseq }); dtParm3.Rows.Add(new object[] { "V_TASK_DATE", taskdate }); keyseq = DataLayer.ExecuteSpScala("PKG_DAZAZ02.PR_DCA030MS_KEY_SEQ", dtParm3, DataLayer.MessageEncoding.Default); DataTable dtcash = Pay.Room_110(bizcode, facilitycode, mngno, mngseq, taskdate, keyseq, rasiecode, paycode, payamt, itemstat, facipart, reference, seqno, rmrk, co_facilitycode, co_mngcode, co_mngseq, co_taskdate, co_keyseq, st_facilitycode, st_mngno, st_mngseq, st_taskdate, st_keyseq, empno, ip, editstatus); DataSet dsTmp = DataLayer.AddProdedcure(new DataTable[] { dtcash, dtCard }); string v_ret = DataLayer.ExecuteSpScalaTransaction(dsTmp, "OK", DataLayer.MessageEncoding.Default); if (v_ret != "OK") { Basic.ShowMessage(1, v_ret); Basic.ShowMessage(1, "[์ ์ ์ค์ ๋ฌธ์ํ์ธ์] \n\r์นด๋ ์น์ธ์ ์ทจ์ ๋์์ผ๋ ์๋ฃ๊ฐฑ์ ์ ์๋ฌ์ ๋๋ค.\n\tr" + "์ทจ์ ์น์ธ๋ฒํธ : " + reqdata.AgreeNo + "\n\r" + "\n\r์๋ฌ๋ด์ฉ : " + v_ret); Van.Log.Log.SaveLog("์นด๋ ์น์ธ ์ทจ์ ํ - DB ๊ฐฑ์ ์๋ฌ - ์ทจ์์น์ธ๋ฒํธ : " + reqdata.AgreeNo + " / mngno:" + r["MNG_NO"].ToString().Trim() + " / mngseq:" + r["MNG_SEQ"].ToString().Trim() + " ERR:" + v_ret); } //์์์ฆ์ถ๋ ฅ bill_Print_Card(taskdate, bizcode, facilitycode, billno, keyseq, mngno, mngseq); } catch (Exception ex) { Basic.ShowMessage(1, "[์ ์ ์ค์ ๋ฌธ์ํ์ธ์] \n\r์นด๋ ์น์ธ์ ์ทจ์ ๋์์ผ๋ ์๋ฃ๊ฐฑ์ ์ ์๋ฌ์ ๋๋ค.\n\tr" + "์ทจ์ ์น์ธ๋ฒํธ : " + reqdata.AgreeNo + "\n\r" + "\n\r์๋ฌ๋ด์ฉ : " + ex.Message); Van.Log.Log.SaveLog("์นด๋ ์น์ธ ์ทจ์ ํ - DB ๊ฐฑ์ ์๋ฌ - ์ทจ์์น์ธ๋ฒํธ : " + reqdata.AgreeNo + " / mngno:" + r["MNG_NO"].ToString().Trim() + " / mngseq:" + r["MNG_SEQ"].ToString().Trim() + " ERR:" + ex.Message); } fnSelect(); Basic.ShowMessage(1, "์ทจ์ ํ์์ต๋๋ค."); } catch (Exception ex) { Basic.ShowMessage(3, ex.Message); } finally { this.Cursor = Cursors.Default; } }
/// <summary> /// ํ๊ธ์์์ฆ ์น์ธ /// </summary> private bool fnCashBill(bool cashbillyn , bool cashsignpadyn , string amt , CashKind cashbillkind , string cashbillregno , ref string refcashbillregno , ref string refIdNoCode , ref Van.RecivedData cashreqdata ) { try { bool IsClose = BizCommon.Gneral_D.IsRoomClose(); refIdNoCode = ""; //ํ๊ธ์์์ฆ ์ ํ๋์์๋ if (cashbillyn) { Van.RecivedData reqdata = new RecivedData(); refcashbillregno = cashbillregno; //์๋ณ๋ฒํธ๋ฅผ ์ธ์ธํจ๋๋ก ๋ฐ๋๋ค๋ฉด if (cashsignpadyn) { using (BizVanComunication regNumber = new BizVanComunication()) { reqdata = regNumber.GetCashRegNumber("PROJECT_D", int.Parse(Basic.MaskReplace(amt)) ); regNumber.Dispose(); } refcashbillregno = reqdata.CashRegNumber; } if (cashbillregno.Length < 7) { //ํ๊ธ์์์ฆ Basic.ShowMessage(1, "์๋ณ๋ฒํธ๋ฅผ ์ ํํ๊ฒ ์ ๋ ฅํ์ฌ ์ฃผ์ญ์์"); return(false); } //ํ๊ธ์์์ฆ ์น์ธ์์ฒญ /***********************************************************************************************************************************************/ using (BizVanComunication bizVan = new BizVanComunication()) { cashreqdata = bizVan.SendData("PROJECT_D", JobKind.RegCash, cashbillkind, refcashbillregno.Trim(), "", "", Basic.MaskReplace(amt), "", "", "", "", lupCashBill_IdCode.EditValue.ToString() == "1" ? CashGbn.Card : CashGbn.None); bizVan.Dispose(); } /***********************************************************************************************************************************************/ if (cashreqdata.IsAgreeError) { Basic.ShowMessage(1, cashreqdata.Message); return(false); } //์น์ธ์ฌ๋ถ //DB ์์ ์คํจ์ ์ญ์ ํ๊ธฐ์ํด์ //IsAgreeCash = true; } //์์ง ๋ฐ๊ธ else { DataRow[] dr = Parm.mDataTable.dtZx010ms.Select("HEAD = 'Z0028' AND DETAIL = '0' AND USE_YN = 'Y' "); int _intInput = 0; int _intZ0028 = 0; refcashbillregno = dr[0]["ITEM1"].ToString(); _intInput = int.Parse(amt.Replace(",", "")); refIdNoCode = dr[0]["DETAIL"].ToString(); try { _intZ0028 = int.Parse(dr[0]["ITEM2"].ToString()); } catch (Exception) { _intZ0028 = 0; } if (_intInput >= _intZ0028) { using (BizVanComunication bizVan = new BizVanComunication()) { cashreqdata = bizVan.SendData("PROJECT_D", JobKind.RegCash, cashbillkind, dr[0]["ITEM1"].ToString(), "", "", Basic.MaskReplace(amt.Trim()), "", "", "", "", CashGbn.None); bizVan.Dispose(); } if (cashreqdata.IsAgreeError) { Basic.ShowMessage(1, cashreqdata.Message); return(false); } //์น์ธ์ฌ๋ถ //DB ์์ ์คํจ์ ์ญ์ ํ๊ธฐ์ํด์ //IsAgreeCash = true; } } //cashAgreeNo = Cashreqdata.AgreeNo; //cashAgreeDate = Cashreqdata.AgreeDate; this.Cursor = Cursors.WaitCursor; this.Cursor = Cursors.Default; return(true); } catch (Exception ex) { Basic.ShowMessage(3, ex.Message); return(false); } finally { this.Cursor = Cursors.Default; } }
private void fnCashBillReg(bool cashbillyn) { try { Van.RecivedData CashReqData = new RecivedData(); string CashBillRegNo = ""; string IdNoCode = ""; if (!fnCashBill(cashbillyn , chkCashSignPad.Checked , Basic.MaskReplace(dtSelect.Rows[0]["RSV_AMT"].ToString()) , optCashBillKind.SelectedIndex < 1 ? Van.CashKind.Persnal : Van.CashKind.Company , txtCashBillRegNo.Text.Trim() , ref CashBillRegNo , ref IdNoCode , ref CashReqData ) ) { return; // ํ๊ธ์์์ฆ ์น์ธ } string tmp = CashReqData.AgreeDate.Substring(0, 6); DateTime dt = DateTime.ParseExact(tmp, "yyMMdd", null); string _agreedate = dt.ToString("yyyyMMdd"); DataTable dtparmInsert = DataLayer.GetDataTableParameter(DataLayer.DatatableStyle.Parameter); dtparmInsert.Rows.Add(new object[] { "V_RSV_NO", P_RSV_NO }); dtparmInsert.Rows.Add(new object[] { "V_MNG_NO", P_MNG_NO }); dtparmInsert.Rows.Add(new object[] { "V_SALE_DATE", Parm.CurrentUserInformation.roomTask.gsTaskDate }); dtparmInsert.Rows.Add(new object[] { "V_BIZ_CODE", Parm.CurrentUserInformation.BizInfo.BizCode }); dtparmInsert.Rows.Add(new object[] { "V_SALE_AMT", Basic.MaskReplace(txtAmt.Text.Trim()) }); dtparmInsert.Rows.Add(new object[] { "V_PE_CO_CODE", optCashBillKind.SelectedIndex < 1 ? "P" : "C" }); dtparmInsert.Rows.Add(new object[] { "V_ID_NO_CODE", IdNoCode.Length < 1 ? lupCashBill_IdCode.EditValue.ToString() : IdNoCode }); dtparmInsert.Rows.Add(new object[] { "V_ID_NO", CashBillRegNo }); dtparmInsert.Rows.Add(new object[] { "V_AGREE_NO", CashReqData.AgreeNo }); dtparmInsert.Rows.Add(new object[] { "V_AGREE_DATE", _agreedate }); dtparmInsert.Rows.Add(new object[] { "V_EASY_YN", chkCashSignPad.Checked?"Y":"N" }); dtparmInsert.Rows.Add(new object[] { "V_U_EMP_NO", Parm.CurrentUserInformation.id }); dtparmInsert.Rows.Add(new object[] { "V_U_IP", Parm.CurrentUserInformation.ip }); string Result = DataLayer.ExecuteSpScala("PKG_DAHAH25.PR_10", dtparmInsert, DataLayer.MessageEncoding.Default); if (Result != "OK") { fnCashBillAutoCacel(cashbillyn , optCashBillKind.SelectedIndex < 1 ? Van.CashKind.Persnal : Van.CashKind.Company , CashBillRegNo , Basic.MaskReplace(txtAmt.Text.Trim()) , CashReqData.AgreeNo ); return; } P_REG_YN = true; // ์น์ธ์๋ฃ if (cashbillyn) { fnBill_Cash("Y" , P_GUEST_NAME , CashReqData.Amt , CashBillRegNo , DateTime.Now.ToString("yyyy-MM-dd") , CashReqData.AgreeNo ); } this.Close(); } catch (Exception ex) { Basic.ShowMessage(3, ex.Message); } }
/// <summary> /// ์ ์ฉ์นด๋ ์น์ธ /// </summary> private void fnPay120_Reg() { try { int amt = int.Parse(Basic.MaskReplace(txtCreditAmt.Text.Trim())); /*if(this.txtCreditCardNo.Text.Trim().Length < 13) * { * * Basic.ShowMessage(1, "์นด๋๋ฒํธ๋ฅผ ์ ํํ๊ฒ ์ ๋ ฅํ์ฌ ์ฃผ์ญ์์."); * txtCreditCardNo.Focus(); * return; * } * else */if (amt <= 0) { Basic.ShowMessage(1, "๊ฒฐ์ ๊ธ์ก์ ์ ๋ ฅํ์ฌ ์ฃผ์ญ์์."); txtCreditAmt.Focus(); return; } else if (Basic.MaskReplace(Num.GetNumberOnly(PayInfomation.RoomInfo.C_Facipart)) + Basic.MaskReplace(Num.GetNumberOnly(PayInfomation.RoomInfo.C_RoomNo)).Trim() == "") { Basic.ShowMessage(2, "Bill ๋ฒํธ๋ฅผ ์์ฑ ํ ์ ์์ต๋๋ค.\n\r\n\r๋์ฝ๋:" + PayInfomation.RoomInfo.C_Facipart + "\r\n๊ฐ์ค๋ฒํธ:" + PayInfomation.RoomInfo.C_RoomNo); return; } //๊ฐ์ค์ด ๋ง๊ฐ๋์๋์ง ์ฒดํฌํ๋ค. bool IsClose = BizCommon.Gneral_D.IsRoomClose(); if (PayInfo.useKind == UseKind.Room && IsClose) { Basic.ShowMessage(1, "ํ์ฌ ๋ง๊ฐ์์ ์ค์ ๋๋ค. \n\r๋ง๊ฐ์ด ๋๋ํ ์์ ์ ๊ณ์ํ์ญ์์"); return; } string SendCardNo = ""; _TrackTowInfo = ""; /* if(txtCreditCardNo.Text.Trim().IndexOf("=") < 0) * { * * SendCardNo = txtCreditCardNo.Text.Trim(); * * if( this.txtCreditCardScope.Text.Trim() == "" && * this.txtCreditCardNo.Text.Trim().IndexOf("=") < 0 ) * { * Basic.ShowMessage(1, "ํค์ธ ์ ๋ ฅ์ ๋๋ค - ์ ํจ๊ธฐ๊ฐ์ ์ ๋ ฅํ์ธ์."); * txtCreditCardScope.Focus(); * return; * } * * } * else * { * if (txtCreditCardNo.Text.ToUpper().StartsWith("C")) * txtCreditCardNo.Text = txtCreditCardNo.Text.Remove(0, 1); * _TrackTowInfo = txtCreditCardNo.Text.Trim(); * SendCardNo = txtCreditCardNo.Text.Trim(); * * string str1 = this.txtCreditCardNo.Text.Trim().Split('=')[0]; * string str2 = this.txtCreditCardNo.Text.Trim().Split('=')[1]; * * this.txtCreditCardNo.Text = str1; * * if(str2.Trim().Length < 4) * { * Basic.ShowMessage(1, "MSR ์ ๋ ฅ - ์นด๋๋ฒํธ๊ฐ ์๋ชป๋์์ต๋๋ค."); * return; * } * string strscope = str2.Trim().Substring(0,4); * this.txtCreditCardScope.EditValue = strscope ; * * } */ //์ ํจ๊ธฐ๊ฐ string scope = Basic.MaskReplace(txtCreditCardScope.Text.Trim()); if (scope.Length < 4) { scope = "9999"; } #region ์๋ช ๋ชจ๋ /******************************************************************************/ // ์ธ์ธํจ๋๊ฐ ์ฒดํฌ ๋์ด ์๋ค๋ฉด ์๋ช ๋ชจ๋ ์์ /******************************************************************************/ byte[] b = null; string SignDataString = ""; /* * Van.RecivedData rvcSign = new RecivedData(); * bool IsSucess = true; * if(this.chkCreditSignPad.Checked) * { * using(BizVanComunication bizVan = new BizVanComunication()) * { * * string reqdatas = bizVan.GetVanMakeCardProtocol( "PROJECT_D" , * JobKind.RegCard, * CashKind.None, * SendCardNo , * scope, * Basic.MaskReplace(txtCreditAmtSplit.Text.Trim()), * Basic.MaskReplace(txtCreditAmt.Text.Trim()) , * "1" , * "","","", CashGbn.None ); * * * IsSucess = bizVan.GetSign( "PROJECT_D", * int.Parse(Basic.MaskReplace(txtCreditAmt.Text.Trim())) , * ref rvcSign, * reqdatas); * bizVan.Dispose(); * } * * } * if(!IsSucess) return; */ /******************************************************************************/ // ์๋ช ๋ชจ๋ ์ข ๋ฃ /******************************************************************************/ #endregion /* * SignDataString = rvcSign.SignStringData; * b = rvcSign.SignData; */ //์นด๋์น์ธ์ฒ๋ฆฌ ์์ /***********************************************************************************************************************************************/ Van.RecivedData reqdata = new RecivedData(); /* * if(rvcSign.IsSignPadAgree) * { * reqdata = rvcSign; * if(reqdata.IsAgreeError) * { * MessageBox.Show(reqdata.Message); * return; * } * } * else * */ { using (BizVanComunication bizAgree = new BizVanComunication()) { reqdata = bizAgree.SendData("PROJECT_D", JobKind.RegCard, CashKind.None, SendCardNo, scope, Basic.MaskReplace(txtCreditAmtSplit.Text.Trim()), Basic.MaskReplace(txtCreditAmt.Text.Trim()), "1", SignDataString, "", "", CashGbn.None); bizAgree.Dispose(); } /***********************************************************************************************************************************************/ if (reqdata.IsAgreeError) { MessageBox.Show(reqdata.Message); return; } } this.Cursor = Cursors.WaitCursor; // ์น์ธ์ด ๋ฌ๋ค. //DB์ฒ๋ฆฌ string AgreeDate = reqdata.AgreeDate.Substring(0, 4) + "-" + reqdata.AgreeDate.Substring(4, 2) + "-" + reqdata.AgreeDate.Substring(6, 2); AgreeDate = DateTime.Parse(AgreeDate).ToString("yyyyMMdd"); string outSeq = ""; string v_ret = fn_Card(Basic.MaskReplace(txtCreditAmt.Text.Trim()), // txtCreditCardNo.Text.Trim(), Basic.MaskReplace(reqdata.CashRegNumber), Basic.MaskReplace(scope), reqdata.CardCoCode, reqdata.CardCoName, reqdata.ISSUCoCode, reqdata.ISSUCoName, reqdata.CardJoinNo, reqdata.AgreeNo, this.txtCreditAmtSplit.Text.Trim() == "" ? "0" : this.txtCreditAmtSplit.Text.Trim(), AgreeDate, reqdata.AgreeDate.Length > 6 ? reqdata.AgreeDate.Substring(6, 4) : DateTime.Now.ToString("hhmm"), _TrackTowInfo, "N", Parm.CurrentUserInformation.roomTask.gsCardTerminalID, Parm.CurrentUserInformation.id, ref outSeq); //DB ์ฒ๋ฆฌ์๋ฌ์ ์ทจ์์น์ธ์ //๋ด๋ค. if (v_ret != "OK") { Van.RecivedData reqdataCancel = new RecivedData(); using (BizVanComunication bizAgree = new BizVanComunication()) { reqdataCancel = bizAgree.SendData("PROJECT_D", JobKind.CancelCard, CashKind.None, _TrackTowInfo, scope, Basic.MaskReplace(txtCreditAmtSplit.Text.Trim()), Basic.MaskReplace(txtCreditAmt.Text.Trim()), "", "", reqdata.AgreeNo, reqdata.AgreeDate.Substring(0, 6), CashGbn.None); bizAgree.Dispose(); } /***********************************************************************************************************************************************/ if (reqdataCancel.IsAgreeError) { Basic.ShowMessage(3, "์น์ธ ํ DB ์ ์ฅ์ ์๋ฌ ์ ๋๋ค." + System.Environment.NewLine + "์น์ธ๋ฒํธ๋ : " + reqdata.AgreeNo + " ์ ๋๋ค." + System.Environment.NewLine + "ํ์ฌ ๋ด์ฉ์ CTL + C ๋ก ๋ณต์ฌํ์ฌ ๋ฉ๋ชจ์ฅ์ ๋ถ์ฌ ๋ฃ์ผ์ธ์ - ๋ถ์ฌ๋ฃ์ผ์ ๋ด์ฉ์ผ๋ก ์ ์ฐ์ค์ ๋ฌธ์ํ์ธ์" + System.Environment.NewLine + "์ ์ฐ์ค์ ๋ฌธ์ํ์ฌ ์๊ธฐ๋ก ์น์ธ ์ทจ์๋ฅผ ํ์ญ์์" + System.Environment.NewLine + System.Environment.NewLine + "์น์ธ์ทจ์ ์๋ฌ ๋ด์ฉ" + System.Environment.NewLine + reqdata.Message + System.Environment.NewLine + System.Environment.NewLine + "DB ์ฒ๋ฆฌ ์๋ฌ๋ด์ฉ :" + System.Environment.NewLine + v_ret); Van.Log.Log.SaveLog("[์น์ธํ DB ์ ์ฅ์๋ฌ - ์น์ธ์ทจ์์คํจ] ์๋ฌ๋ด์ฉ - " + reqdataCancel.Message); Van.Log.Log.SaveLog("[์น์ธํ DB ์ ์ฅ์๋ฌ - ์น์ธ์ทจ์์คํจ] ์ทจ์์ ๋ฌธ - $" + reqdataCancel.FullSendData + "$"); return; } Basic.ShowMessage(2, v_ret); return; } //๋ฉ์ธ๋ฐ์ดํฐ๊ฐ ๋ค์ด๊ฐ๋ค๋ฉด ์ธ์ธ๋ฐ์ดํฐ๋ ๋ฃ์ด์ค๋ค. //์ธ์ธ๋ฐ์ดํฐ๊ฐ ์๋ค๋ฉด if (b != null) { string Query = @"INSERT INTO IAA030DT( SALE_DATE , BIZ_CODE , FACILITY_CODE , POS_NO , BILL_NO , SALE_YN , PAY_SEQ , SIGN_IMG , U_EMP_NO , U_IP ) VALUES ( :V_SALE_DATE , :V_BIZ_CODE , :V_FACILITY_CODE , :V_POS_NO , :V_BILL_NO , :V_SALE_YN , :V_PAY_SEQ , :V_SIGN_IMG , :V_U_EMP_NO , :V_U_IP )"; DataTable dtParm = DataLayer.GetDataTableParameter(DataLayer.DatatableStyle.Parameter); dtParm.Rows.Add(":V_SALE_DATE", PayInfomation.SaleDate); dtParm.Rows.Add(":V_BIZ_CODE", PayInfomation.RoomInfo.C_Bizcode); dtParm.Rows.Add(":V_FACILITY_CODE", PayInfomation.RoomInfo.C_Facilitycode); dtParm.Rows.Add(":V_POS_NO", "01"); dtParm.Rows.Add(":V_BILL_NO", Basic.MaskReplace(Num.GetNumberOnly(PayInfomation.RoomInfo.C_Facipart)) + Basic.MaskReplace(Num.GetNumberOnly(PayInfomation.RoomInfo.C_RoomNo))); dtParm.Rows.Add(":V_SALE_YN", "Y"); dtParm.Rows.Add(":V_PAY_SEQ", outSeq); dtParm.Rows.Add(":V_SIGN_IMG", "#"); dtParm.Rows.Add(":V_U_EMP_NO", Parm.CurrentUserInformation.id); dtParm.Rows.Add(":V_U_IP", Parm.CurrentUserInformation.ip); //bill_Print_Card(); try { int ret = DataLayer.ExecuteNonQuery(Query, dtParm, b, DataLayer.MessageEncoding.Default); } catch (Exception ex) { Basic.ShowMessage(2, "์นด๋์น์ธ์ ์ ์์น์ธ ์ฒ๋ฆฌ๋์์ผ๋ฉฐ ์๋ฃ๋ ์ ์์ ์ฅ ๋์์ต๋๋ค. \n\r์ธ์ธ ์ด๋ฏธ์ง๋ง DB ์ ์ ์ฅํ์ง ๋ชปํ์ต๋๋ค.\n\r" + ex.Message); } try { string _strBillNo = Basic.MaskReplace(Num.GetNumberOnly(PayInfomation.RoomInfo.C_Facipart)) + Basic.MaskReplace(Num.GetNumberOnly(PayInfomation.RoomInfo.C_RoomNo)); bill_Print_Card(outSeq, _strBillNo); } catch (Exception ex) { Basic.ShowMessage(2, "์์์ฆ ์ถ๋ ฅ์ค ์๋ฌ!"); } } else // ์ฌ์ธ๋ฐ์ดํฐ๊ฐ ์์ด๋ ์์์ฆ ์ถ๋ ฅ์ ํด์ค๋ค๋ก ๋ณ๊ฒฝํจ. (2015.07.15 ์ ์ํ) { string _strBillNo = Basic.MaskReplace(Num.GetNumberOnly(PayInfomation.RoomInfo.C_Facipart)) + Basic.MaskReplace(Num.GetNumberOnly(PayInfomation.RoomInfo.C_RoomNo)); bill_Print_Card(outSeq, _strBillNo); } Basic.ShowMessage(1, "์ ์ฅ ํ์์ต๋๋ค."); txtCreditCardNo.Text = ""; txtCreditCardScope.Text = ""; txtCreditAmtSplit.Text = "0"; txtCreditAmt.Text = "0"; _TrackTowInfo = ""; RaiseDataReflashEvent(true); } catch (Exception ex) { Basic.ShowMessage(3, ex.Message); } finally { this.Cursor = Cursors.Default; } }