private void btnShowImagePrintSettings_Click(object sender, EventArgs e)
 {
     using (Image testImage = TaskHelpers.GetScreenshot().CaptureActiveMonitor())
         using (PrintForm printForm = new PrintForm(testImage, Program.Settings.PrintSettings, true))
         {
             printForm.ShowDialog();
         }
 }
Exemplo n.º 2
0
 private void btnPrint_Click(object sender, EventArgs e)
 {
     Utils.printModel = GetPrintData(this.tbbah.Text.Trim().ToUpper());
     using (var pf = new PrintForm())
     {
         pf.ShowDialog();
     }
 }
Exemplo n.º 3
0
        //Кнопка предназначенная для открытия формы предназначеной для печати БД
        private void PrintButton_Click(object sender, EventArgs e)
        {
            //код сворачивания этой формы и открытия формы предназначеной для печати БД
            this.Hide();
            PrintForm form = new PrintForm();

            form.Show();
        }
Exemplo n.º 4
0
        private void PrintQuiz()
        {
            PrintForm p = new PrintForm(firstPage);

            p.Show();
            p.Hide();
            new PrintController().Print(p.First);
            p.Close();
        }
        private void Reference_Label1_Click(object sender, EventArgs e)
        {
            var printForm = new PrintForm();

            printForm.label1.Text = "СПРАВКА\r\nо запланированных мероприятиях на прошедший день";
            printForm.dataGridView1.DataSource = db.DBEventDate.Local.Where
                                                     (p => p.vCalendar.ToString() == string.Format("{0:dd} {0:MMMM} {0:yyyy}", DateTime.Today.AddDays(-1))).ToList();
            DialogResult result = printForm.ShowDialog(this);
        }
Exemplo n.º 6
0
        // 打印
        private void btnPrint_Click(object sender, EventArgs e)
        {
            if (!Utils.CheckUser())
            {
                return;
            }
            Utils.printModel = GetPrintData(this.tbvin.Text.Trim());
            PrintForm pf = new PrintForm();

            pf.ShowDialog();
        }
Exemplo n.º 7
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            if (dgvInvoices.SelectedCells.Count == 1)
            {
                Invoice invoiceForPrinting = new Invoice(InvoiceNumber, selectedCustomer, tbValuta.Text, tbDescription.Text, mtbDate.Text, cbDocType.SelectedItem.ToString());
                invoiceForPrinting.InvoiceItems = Invoice_DbCommunication.GetInvoiceItemsForInvoice(InvoiceNumber);

                Form print = new PrintForm(invoiceForPrinting);
                print.ShowDialog();
            }
        }
Exemplo n.º 8
0
        public frmPartners()
        {
            oPartnerList = new Partner();
            oPartnerCur  = new Partner();
            if (oPartnerList.ErrorNumber != 0 ||
                oPartnerCur.ErrorNumber != 0)
            {
                IsValid = false;
            }

            if (IsValid)
            {
                oPartnerRootList = new Partner();
                oPartnerRootCur  = new Partner();
                if (oPartnerRootList.ErrorNumber != 0 ||
                    oPartnerRootCur.ErrorNumber != 0)
                {
                    IsValid = false;
                }
            }

            if (IsValid)
            {
                oPartnerForRoot      = new Partner();
                oPartnerForPrintForm = new Partner();
                if (oPartnerForRoot.ErrorNumber != 0 ||
                    oPartnerForPrintForm.ErrorNumber != 0)
                {
                    IsValid = false;
                }
            }

            if (IsValid)
            {
                oPrintFormList = new PrintForm();
                oPrintFormCur  = new PrintForm();
                if (oPrintFormList.ErrorNumber != 0 ||
                    oPrintFormCur.ErrorNumber != 0)
                {
                    IsValid = false;
                }
            }

            oHost = new Host();
            if (oHost.ErrorNumber != 0)
            {
                IsValid = false;
            }

            if (IsValid)
            {
                InitializeComponent();
            }
        }
Exemplo n.º 9
0
        /// <summary>
        /// Launchs the Print scenario.
        /// </summary>
        public static void LaunchPrintScenario(List <Oid> oids)
        {
            if (oids == null || oids.Count == 0)
            {
                return;
            }

            PrintForm lPrintForm = new PrintForm();

            lPrintForm.Initialize(oids);
        }
        private void Continue_Button_Click(object sender, EventArgs e)
        {
            var firstDate  = dateTimePicker1.Value;
            var secondDate = dateTimePicker2.Value;
            var printForm  = new PrintForm();

            printForm.label1.Text = $"ОТЧЕТ\r\nо проведенных мероприятиях с {firstDate.Year} года по {secondDate.Year} года";
            printForm.dataGridView1.DataSource = db.DBEventDate.Local.Where
                                                     (p => p.MarkEvent &&
                                                     Convert.ToDateTime(p.vCalendar.ToString()) > firstDate &&
                                                     Convert.ToDateTime(p.vCalendar.ToString()) < secondDate).ToList();
            DialogResult result = printForm.ShowDialog(this);
        }
Exemplo n.º 11
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            int index = gridView1.FocusedRowHandle;

            if (index < 0)
            {
                MessageBox.Show("请选中需要操作的数据行!", "提示");
                return;
            }
            string id = "";

            id = gridView1.GetRowCellValue(index, gridView1.Columns["Id"]).ToString();
            PrintForm printForm = new PrintForm("student", id, ds);
        }
Exemplo n.º 12
0
 /// <summary>
 /// 打印
 /// </summary>
 public void PrintDocument(decimal currInpatient, DataLoader dataLoader)
 {
     try
     {
         threeMeasureDrawHepler = new ThreeMeasureDrawHepler(currInpatient, dataLoader);
         PrintForm printDocumentForm = new PrintForm(threeMeasureDrawHepler);
         printDocumentForm.DefaultPageSize = m_DefaultPrintSize;
         printDocumentForm.ShowDialog();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 13
0
        public override void Execute(object parameter)
        {
            var pf = new PrintForm();

            var vm = new PrintFormVM();

            pf.DataContext = vm;

            pf.ShowDialog();

            pf.Topmost = true;

            // TODO: when dialog is closed delete PostScript file from Temp folder
        }
Exemplo n.º 14
0
        private void baseButton1_Click(object sender, EventArgs e)
        {
            PrintForm pf = new PrintForm(this, strPath, Common.Util.CommonTeisu.SIZE_A4, false);

            pf.ShowDialog(this);
            if (this.printFlg == Common.Util.CommonTeisu.ACTION_PREVIEW)
            {
                pf.execPreview(strPath);
                pf.ShowDialog(this);
            }
            else if (this.printFlg == Common.Util.CommonTeisu.ACTION_PRINT)
            {
                pf.execPrint(null, strPath, Common.Util.CommonTeisu.SIZE_B4, Common.Util.CommonTeisu.YOKO, false);
            }
        }
Exemplo n.º 15
0
        private void print()
        {
            btnPrint.Visible = false;
            PrintForm pf = new PrintForm();

            pf.Form = this;
            pf.PrinterSettings.DefaultPageSettings.Landscape      = true;
            pf.PrinterSettings.DefaultPageSettings.Margins.Left   = 30;
            pf.PrinterSettings.DefaultPageSettings.Margins.Right  = 30;
            pf.PrinterSettings.DefaultPageSettings.Margins.Top    = 30;
            pf.PrinterSettings.DefaultPageSettings.Margins.Bottom = 30;
            pf.PrintAction = System.Drawing.Printing.PrintAction.PrintToPreview;
            pf.Print();
            btnPrint.Visible = true;
        }
Exemplo n.º 16
0
 internal void OutputCertificateCompletion()
 {
     try
     {
         if (ExistsRecord)
         {
             _print          = new PrintForm();
             _print.Document = new CertificateCompletion(Item.Number);
             _print.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         ShowError(ex.Message);
     }
 }
Exemplo n.º 17
0
 internal void OutputAcceptanceTransferOwnershipCertificate()
 {
     try
     {
         if (ExistsRecord)
         {
             _print          = new PrintForm();
             _print.Document = new AcceptanceTransferOwnershipCertificate(Item.Number);
             _print.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         ShowError(ex.Message);
     }
 }
Exemplo n.º 18
0
        private void PrintButton_Click(object sender, EventArgs e)
        {
            string bmpFile = @"..\..\src\printout.bmp";

            //https://stackoverflow.com/questions/4246905/print-print-preview-a-bitmap-in-c-sharp
            using (Bitmap bmp = new Bitmap(panel1.Width, panel1.Height))
                using (PrintForm pf = new PrintForm(bmp))
                {
                    Rectangle r = new Rectangle(0, 0, panel1.Width, panel1.Height);
                    panel1.DrawToBitmap(bmp, r);
                    //fails when:
                    //  run more than once
                    bmp.Save(bmpFile);
                    pf.ShowDialog(this);
                }
        }
Exemplo n.º 19
0
 internal void OutputJopTicket()
 {
     try
     {
         if (ExistsRecord)
         {
             _print          = new PrintForm();
             _print.Document = new JobTicket(Item.Number);
             _print.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         ShowError(ex.Message);
     }
 }
Exemplo n.º 20
0
        private void simpleButtonPrinter_Click(object sender, EventArgs e)
        {
            var sp = DevExpressHelper.GetSelectedRecord <SalePoint>(gridViewSalePoints);

            if (sp != null)
            {
                try
                {
                    var clientService = Protocol.CreateClientProxy(sp.IP);
                    PrintForm.Show(this, sp, clientService.GetSpooler());
                }
                catch (Exception ex)
                {
                    ErrorHelper.ShowError <ErrorForm>(null, ex);
                }
            }
        }
Exemplo n.º 21
0
        public static void Main()
        {
            RibbonBarItem rbItem1 = MotherForm.RibbonBarItems["學生", "資料統計"];

            rbItem1["報表"]["成績相關報表"]["評量成績通知單(測試版)"].Enable = UserAcl.Current["JH.Student.HsinChuExamScore_JH_Student"].Executable;
            rbItem1["報表"]["成績相關報表"]["評量成績通知單(測試版)"].Click += delegate
            {
                if (K12.Presentation.NLDPanels.Student.SelectedSource.Count > 0)
                {
                    PrintForm pf = new PrintForm(K12.Presentation.NLDPanels.Student.SelectedSource);
                    pf.ShowDialog();
                }
                else
                {
                    FISCA.Presentation.Controls.MsgBox.Show("請選擇選學生");
                    return;
                }
            };

            RibbonBarItem rbItem2 = MotherForm.RibbonBarItems["班級", "資料統計"];

            rbItem2["報表"]["成績相關報表"]["評量成績通知單(測試版)"].Enable = UserAcl.Current["JH.Student.HsinChuExamScore_JH_Class"].Executable;
            rbItem2["報表"]["成績相關報表"]["評量成績通知單(測試版)"].Click += delegate
            {
                if (K12.Presentation.NLDPanels.Class.SelectedSource.Count > 0)
                {
                    List <string> StudentIDList = Utility.GetClassStudentIDList1ByClassID(K12.Presentation.NLDPanels.Class.SelectedSource);
                    PrintForm     pf            = new PrintForm(StudentIDList);
                    pf.ShowDialog();
                }
                else
                {
                    FISCA.Presentation.Controls.MsgBox.Show("請選擇選班級");
                    return;
                }
            };
            // 評量成績通知單
            Catalog catalog1a = RoleAclSource.Instance["學生"]["功能按鈕"];

            catalog1a.Add(new RibbonFeature("JH.Student.HsinChuExamScore_JH_Student", "評量成績通知單(測試版)"));

            // 評量成績通知單
            Catalog catalog1b = RoleAclSource.Instance["班級"]["功能按鈕"];

            catalog1b.Add(new RibbonFeature("JH.Student.HsinChuExamScore_JH_Class", "評量成績通知單(測試版)"));
        }
Exemplo n.º 22
0
        /// <summary>
        /// 打印
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_Print_Click(object sender, EventArgs e)
        {
            try
            {
                //DataTable dt = gridControlMain.DataSource as DataTable;

                //DataTable dtTemp = dt.Clone();
                //foreach (DataRow dr in dt.Rows)
                //{
                //    if (dr["SELECT"].ToString().ToUpper() == "TRUE")
                //    {
                //        DataRow drTemp = dtTemp.NewRow();
                //        drTemp.ItemArray = dr.ItemArray;
                //        dtTemp.Rows.Add(drTemp);
                //    }
                //}
                //dtTemp.AcceptChanges();

                if (Selection.selection.Count > 0)
                {
                    if (Selection.selection.Cast <DataRowView>().ToList().Count > 280)
                    {
                        if (DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show("打印预览最多只能28页,是否继续?", "打印预览", DrectSoft.Common.Ctrs.DLG.MyMessageBoxButtons.YesNo) == DialogResult.Yes)
                        {
                            PrintForm printForm = new PrintForm(Selection.selection.Cast <DataRowView>().ToList(), radio_CardType.SelectedIndex);
                            printForm.WindowState = FormWindowState.Maximized;
                            printForm.ShowDialog();
                        }
                    }
                    else
                    {
                        PrintForm printForm = new PrintForm(Selection.selection.Cast <DataRowView>().ToList(), radio_CardType.SelectedIndex);
                        printForm.WindowState = FormWindowState.Maximized;
                        printForm.ShowDialog();
                    }
                }
                else
                {
                    MessageBox.Show("请选择需要打印的记录");
                }
            }
            catch (Exception ex)
            {
                MyMessageBox.Show(1, ex);
            }
        }
Exemplo n.º 23
0
        public frmPrintFormsEdit(int?_nPrintFormID)
        {
            oPrintForm = new PrintForm();
            if (oPrintForm.ErrorNumber != 0)
            {
                IsValid = false;
            }

            if (_nPrintFormID.HasValue)
            {
                nPrintFormID = _nPrintFormID;
            }

            if (IsValid)
            {
                InitializeComponent();
            }
        }
Exemplo n.º 24
0
        public override bool Export(PwExportInfo pwExportInfo, Stream sOutput,
                                    IStatusLogger slLogger)
        {
            PrintForm dlg = new PrintForm();

            dlg.InitEx(pwExportInfo.DataGroup, false, -1);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                byte[] pb = Encoding.UTF8.GetBytes(dlg.GeneratedHtml);
                sOutput.Write(pb, 0, pb.Length);
                sOutput.Close();

                return(true);
            }

            return(false);
        }
Exemplo n.º 25
0
 public static void PrintImage(Image img)
 {
     if (Program.Settings.DontShowPrintSettingsDialog)
     {
         using (PrintHelper printHelper = new PrintHelper(img))
         {
             printHelper.Settings = Program.Settings.PrintSettings;
             printHelper.Print();
         }
     }
     else
     {
         using (PrintForm printForm = new PrintForm(img, Program.Settings.PrintSettings))
         {
             printForm.ShowDialog();
         }
     }
 }
Exemplo n.º 26
0
        public override bool Export(PwExportInfo pwExportInfo, Stream sOutput,
                                    IStatusLogger slLogger)
        {
            PrintForm dlg = new PrintForm();

            dlg.InitEx(pwExportInfo.DataGroup, false);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                StreamWriter sw = new StreamWriter(sOutput, Encoding.UTF8);
                sw.Write(dlg.GeneratedHtml);
                sw.Close();

                return(true);
            }

            return(false);
        }
Exemplo n.º 27
0
        public void Print()
        {
            //打印单科会诊信息
            if (m_ConsultTypeID == "6501")
            {
                PrintForm form = new PrintForm(m_ConsultationEntity);
                form.StartPosition = FormStartPosition.CenterScreen;
                form.ShowDialog();
            }
            //保存多科会诊信息
            else
            {
                if (m_UCConsultationMultiply == null)
                    return;
                else
                    m_UCConsultationMultiply.Print();
            }

        }
Exemplo n.º 28
0
        private void buttonDailyReport_Click(object sender, EventArgs e)
        {
            var dt        = new DataTable();
            var UsedClass = new BasicClass();

            SqlParameter[] param = new SqlParameter[1];
            param[0]       = new SqlParameter("@InvoiceFilter", SqlDbType.NVarChar, 150);
            param[0].Value = BasicClass.UserName;

            dt = UsedClass.selectdata("Casher_Select_Invoices_with_all_Information", param);
            var crp = new Reports.DailyCasherReport();

            //CrystalDecisions.CrystalReports.Engine.TextObject invoiceType = (CrystalDecisions.CrystalReports.Engine.TextObject) crp.ReportDefinition.Sections["Section2"].ReportObjects["Text15"];
            //invoiceType.Text = textBoxInvoiceNo.Text;
            crp.SetDataSource(dt);
            PrintForm form = new PrintForm();

            form.crystalReportViewer1.ReportSource = crp;
            form.ShowDialog();
        }
Exemplo n.º 29
0
 private void axAcroPDF1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
 {
     if (e.KeyCode == Keys.F11)
     {
         PrintForm pf = new PrintForm(this, strPath, Common.Util.CommonTeisu.SIZE_A4, false);
         pf.ShowDialog(this);
         if (this.printFlg == Common.Util.CommonTeisu.ACTION_PREVIEW)
         {
             pf.execPreview(strPath);
             pf.ShowDialog(this);
         }
         else if (this.printFlg == Common.Util.CommonTeisu.ACTION_PRINT)
         {
             pf.execPrint(null, strPath, Common.Util.CommonTeisu.SIZE_B4, Common.Util.CommonTeisu.YOKO, false);
         }
     }
     else if (e.KeyCode == Keys.F12)
     {
         this.Close();
     }
 }
Exemplo n.º 30
0
        public override bool Export(PwExportInfo pwExportInfo, Stream sOutput,
                                    IStatusLogger slLogger)
        {
            PrintForm dlg = new PrintForm();

            dlg.InitEx(pwExportInfo.DataGroup, false, -1);

            bool bResult = false;

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                byte[] pb = StrUtil.Utf8.GetBytes(dlg.GeneratedHtml);
                sOutput.Write(pb, 0, pb.Length);
                sOutput.Close();

                bResult = true;
            }

            UIUtil.DestroyForm(dlg);
            return(bResult);
        }
Exemplo n.º 31
0
        private void btn_OK_Click(object sender, EventArgs e)
        {
            errorProvider1.Clear();
            if (txt_PaymentAmount.Text.Trim() == "")
            {
                errorProvider1.SetError(txt_PaymentAmount, "请输入正确的金额!");

                return;
            }
            try
            {
                Convert.ToDecimal(txt_PaymentAmount.Text.Trim());
            }
            catch (Exception)
            {
                errorProvider1.SetError(txt_PaymentAmount, "请输入正确的金额!");
                return;

            }
            model.CastId = manager.GetMaxId();
            model.MemberId = addMemberModel.MemberID.ToString();
            model.PriceAmount = Convert.ToDecimal(txt_PriceAmount.Text.Trim());
            model.PaymentAmount = Convert.ToDecimal(txt_PaymentAmount.Text.Trim());
            model.ChangeAmount = Convert.ToDecimal(txt_ChangeAmount.Text.Trim());
            model.CreateTime = CommTools.GetDateFormatStrot2(DateTime.Now);
            model.AddTypeName = addMemberModel.CardType;
            model.CardID = addMemberModel.CardID;
            model.TypeName =cmb_PayType.Text.Trim();
            model.Des = "售卡";
            model.AddUserName = MainForm.userName;
            model.CusType = MainForm.CusType;
            model.CusState = 0;
            int isAdd = manager.Add(model);
            MessageBox.Show("会员:" + addMemberModel.Name + " 消费" + (isAdd > 0 ? "成功!" : "失败!"));
            CommTools.AddSystemLog("添加", "会员:" + addMemberModel.Name + " 消费信息 " + addMemberModel.CardType + "添加" + (isAdd > 0 ? "成功!" : "失败!"));
            PrintForm pf = new PrintForm(model.CusNum, model.AddTypeName, "1", txt_PriceAmount.Text.Trim(), txt_PriceAmount.Text.Trim(), "1", txt_PriceAmount.Text.Trim(), txt_PaymentAmount.Text.Trim(), txt_ChangeAmount.Text.Trim(), cmb_PayType.Text.Trim());
            pf.ShowDialog();
            this.Close();
        }
Exemplo n.º 32
0
 /// <summary>
 /// 提交数据
 /// </summary>
 private void SubmitData()
 {
     model.CastId = manager.GetMaxId();
     model.CusNum = txt_CardNumber.Text.Trim();
     model.MemberId = "0";
     model.CardID = "0";
     model.PriceAmount = Convert.ToDecimal(txt_PayableAmount.Text.Trim());
     model.PaymentAmount = Convert.ToDecimal(txt_PaymentAmount.Text.Trim());
     model.ChangeAmount = Convert.ToDecimal(txt_ChangeAmount.Text.Trim());
     model.CreateTime = CommTools.GetDateFormatStrot2(DateTime.Now);
     model.CusType = this.cmb_CunsumeType.Text;
     model.CreateTime = CommTools.GetDateFormatStrot2(DateTime.Now);
     model.Peoples = txt_PeoPles.Text.Trim();
     model.CusCount = txt_CunsumeCount.Text.Trim();
     model.TypeName = cmb_PayType.Text.Trim();
     model.Prices = txt_PriceAmount.Text.Trim();
     model.Des = "单次消费";
     model.AddUserName = MainForm.userName;
     model.CusState = 0;
     int isAdd = manager.Add(model);
     MessageBox.Show("单号:" +  txt_CardNumber.Text.Trim() + " 消费" + (isAdd > 0 ? "成功!" : "失败!"));
     //StringBuilder sb = new StringBuilder();
     //string content = Regex.Replace(CommTools.GetString(cmb_CunsumeType.Text.Trim(), 8), @" ", "    ");
     //string coi = Regex.Replace(CommTools.GetString(txt_CunsumeCount.Text.Trim(), 6), @" ", "    ");
     //string coi2 = Regex.Replace(CommTools.GetString(txt_PriceAmount.Text.Trim(), 6), @" ", "    ");
     //string coi3 = Regex.Replace(CommTools.GetString(txt_PaymentAmount.Text.Trim(), 6), @" ", "    ");
     //sb.Append(content + coi + coi2 + coi3);
     CommTools.AddSystemLog("添加", "单次消费:" + txt_CardNumber.Text.Trim() + " 消费信息 " + this.cmb_CunsumeType.Text + "添加" + (isAdd > 0 ? "成功!" : "失败!"));
     //string mes = CommTools.GetPrintStr(MainForm.PrintTitle, model.CusNum, MainForm.PrintAddress, MainForm.PrintPhone, MainForm.PrintEnd, Convert.ToDouble(model.PriceAmount), Convert.ToDouble(model.PaymentAmount), sb.ToString(), txt_PeoPles.Text.Trim());
     //MessageBox.Show(mes);
     PrintForm pf=new PrintForm (model.CusNum,cmb_CunsumeType.Text.Trim(),txt_CunsumeCount.Text.Trim(),txt_PriceAmount.Text.Trim(),txt_PayableAmount.Text.Trim(),txt_PeoPles.Text.Trim(),txt_PayableAmount.Text.Trim(),txt_PaymentAmount.Text.Trim(),txt_ChangeAmount.Text.Trim(),cmb_PayType.Text.Trim());
     pf.ShowDialog();
     this.Close();
     //CunsumeCastModel cunsumeCastModel=new CunsumeCastModel();
     //cunsumeCastModel.Id = cunsumeCastManager.GetMaxId();
     //cunsumeCastModel.ChangeAmount = Convert.ToDecimal(this.txt_ChangeAmount.Text);
     //cunsumeCastModel.Count = Convert.ToInt32(this.txt_CunsumeCount.Text);
     //cunsumeCastModel.CreateTime = this.dtp_AddTime.Value;
     //cunsumeCastModel.CusType = this.cmb_CunsumeType.Text;
     //cunsumeCastModel.MemberId = Convert.ToInt32(txt_CardNumber.Text.Trim());
     //cunsumeCastModel.PayableAmount = Convert.ToDecimal(this.txt_PayableAmount.Text);
     //cunsumeCastModel.PriceAmount = Convert.ToDecimal(this.txt_PriceAmount.Text);
     //cunsumeCastModel.TransactDate = this.dtp_AddTime.Value;
     //int result = this.cunsumeCastManager.Add(cunsumeCastModel);
     //CommTools.AddSystemLog("单次消费", "卡号:" + this.txt_CardNumber.Text + "消费:" + this.txt_PayableAmount.Text + (result > 0 ? "成功" : "失败"));
     //MessageBox.Show("卡号:"+this.txt_CardNumber.Text+"消费:"+this.txt_PayableAmount.Text+(result>0?"成功":"失败"));
     //this.Close();
 }