Ejemplo n.º 1
0
        private void BTN_REFUND_Click(object sender, EventArgs e)
        {
            MessageSmallForm msgSmallForm = new MessageSmallForm(Constants.getMessage("REFUND_COMPLETE"), null);

            msgSmallForm.ShowDialog(this);
            string      refunddt = System.DateTime.Now.ToString("yy'/'MM'/'dd HH:mm:ss");
            Transaction tran     = new Transaction();//거래내용 조회
            JObject     tempObj  = new JObject();
            JObject     tempObj2 = new JObject();

            tempObj.Add("SLIP_NO", m_SlipNo);
            tempObj2.Add("SLIP_STATUS_CODE", "02");
            tempObj2.Add("REFUNDDT", refunddt);

            if (m_nPrintCnt == 0)
            {
                tempObj2.Add(Constants.PRINT_CNT, "1");
            }

            tran.UpdateSlip(tempObj, tempObj2);
            tempObj.RemoveAll();
            tempObj2.RemoveAll();
            tempObj  = null;
            tempObj2 = null;
            tran     = null;

            TXT_REFUND_STATUS.Text = Constants.getScreenText("COMBO_ITEM_PRINT");
            TXT_SLIP_STATUS.Text   = Constants.getScreenText("COMBO_ITEM_REFUND");

            BTN_REFUND.Text    = refunddt;
            BTN_REFUND.Enabled = false;
            //BTN_REFUND.Visible = false;
        }
Ejemplo n.º 2
0
        private void TIL_PRE_Click(object sender, EventArgs e)
        {
            MessageSmallForm tt = new MessageSmallForm("환경설정 비밀번호를 입력하세요", null);

            DialogResult bResult = tt.ShowDialog(this);

            if (bResult != DialogResult.OK)
            {
                if (Constants.TML_ID.Equals(string.Empty))
                {
                    Application.ExitThread();
                    Environment.Exit(0);
                }
                else
                {
                    return;//그냥 반환
                }
            }

            //암호 입력 팝업 호출
            //정상이면 화면전환, 아니면 반환
            metroPanel4.Visible = true;
            metroPanel2.Visible = false;
            metroPanel3.Visible = false;
            metroPanel4.Refresh();
        }