Example #1
0
        //充值
        private void AddMoney()
        {
            FrmInMoney frm = new FrmInMoney();

            frm.icMsg1.timer1.Start();
            frm.TopMost = true;
            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.OK)
            {
                frm.icMsg1.timer1.Stop();

                #region 打印小票模块
                //PrintReport(frm.cardSavingData, FrmMain.patientInfoData.Tables[0].Rows[0]["XingMing"].ToString(), frm.sum.ToString());

                Print cp = new Print();
                cp.PrintReport(FrmMain.patientInfoData.Tables[0].Rows[0]["XingMing"].ToString(), frm.sum.ToString());
                #endregion

                FrmInMoneyMsg fmm = new FrmInMoneyMsg();
                fmm.lblMoney.Text = frm.sum.ToString();
                if (fmm.ShowDialog() == DialogResult.OK)
                {
                    this.AddMoney();
                }
                else
                {
                    CloseWin(this, true);
                }
            }
            else
            {
                CloseWin(this, false);
                frm.icMsg1.timer1.Stop();
            }
        }
Example #2
0
        //充值
        private void AddMoney()
        {
            FrmInMoney frm = new FrmInMoney();

            frm.icMsg1.timer1.Start();
            frm.TopMost = true;
            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.OK)
            {
                frm.icMsg1.timer1.Stop();

                #region 打印小票模块

                Print cp = new Print();
                cp.PrintReport(frm.Sum.ToString(), frm.RcptNo);

                //PrintReport(frm.Sum.ToString(), frm.RcptNo);
                #endregion

                FrmInMoneyMsg fmm = new FrmInMoneyMsg();
                if (fmm.ShowDialog() == DialogResult.OK)
                {
                    this.AddMoney();
                }
                else
                {
                    CloseWin(this, true);
                }
            }
            else
            {
                CloseWin(this, false);
                frm.icMsg1.timer1.Stop();
            }
        }