示例#1
0
文件: Bill.cs 项目: SoftSuite/ABB
 private void Print()
 {
     SaleInvoice frmInvoice = new SaleInvoice(Convert.ToDouble(this.txtLOID.Text == "" ? "0" : this.txtLOID.Text));
     //this.Close();
     frmInvoice.ShowDialog();
 }
示例#2
0
文件: Sales.cs 项目: SoftSuite/ABB
        private void Print()
        {
            if (Convert.ToDouble(this.txtCustomer.Text == "" ? "0" : this.txtCustomer.Text) == 0)
                Appz.OpenErrorDialog("¡ÃسÒÃкØÅÙ¡¤éÒ");
            else if (Convert.ToDouble(this.lblNetAmount.Text == "" ? "0" : this.lblNetAmount.Text) > 0)
            {
                SalePayData data = new SalePayData();
                data.CASH = Convert.ToDouble(this.lblNetAmount.Text);
                data.GRANDTOTAL = data.CASH;

                Transaction.SalesSummary frmSummary = new Transaction.SalesSummary(data);
                if (frmSummary.ShowDialog() == DialogResult.OK)
                {
                    this.txtCash.Text = frmSummary.Data.CASH.ToString(Constz.DblFormat);
                    this.txtCoupon.Text = frmSummary.Data.COUPON.ToString(Constz.DblFormat);
                    this.txtCreditCardID.Text = frmSummary.Data.CREDITCARDID;
                    this.txtCreditCardPay.Text = frmSummary.Data.CREDITCARDPAY.ToString(Constz.DblFormat);
                    this.txtCreditCardType.Text = frmSummary.Data.CREDITTYPE.ToString();

                    if (SaveData(true))
                    {
                        SaleInvoice frmInvoice = new SaleInvoice(Convert.ToDouble(this.txtLOID.Text == "" ? "0" : this.txtLOID.Text));
                        //ReportParameterData rdata = new ReportParameterData();
                        //rdata.PARAMETERNAME = "LOID";
                        //rdata.PARAMETERVALUE = this.txtLOID.Text;
                        //ArrayList arr = new ArrayList();
                        //arr.Add(rdata);
                        //Reports.PreviewReport pvReport = new ABBClient.Reports.PreviewReport(Constz.Report.Invoice, arr);
                        ResetState(0);
                        SetNewBarcodeFocus();
                        frmInvoice.Show();
                    }
                }
            }
        }