Beispiel #1
0
 private void btChangeCheckPrint_Click(object sender, EventArgs e)
 {
     CMSMData.CMSMStruct.DailyAccountStruct ffs = new CMSMData.CMSMStruct.DailyAccountStruct();
     ffs.strOper          = this.cmbOper.Text.ToString();
     ffs.strFillCount     = this.txtFillCount.Text.ToString();
     ffs.strFillFee       = this.txtFillFee.Text.ToString();
     ffs.strFillCountBank = this.txtFillCountBank.Text.ToString();
     ffs.strFillFeeBank   = this.txtFillFeeBank.Text.ToString();
     ffs.strConsCount     = this.txtConsCount.Text.ToString();
     ffs.strRetail        = this.txtRetail.Text.ToString();
     ffs.strRetailBank    = this.txtRetailBank.Text.ToString();
     ffs.strAssCons       = this.txtAssCons.Text.ToString();
     ffs.strRoll          = this.txtRoll.Text.ToString();
     ffs.strRollSum       = this.txtRollSum.Text.ToString();
     ffs.strLargCount     = this.txtLargCount.Text.ToString();
     ffs.strCash          = this.txtCash.Text.ToString();
     ffs.strDeptID        = SysInitial.CurOps.strDeptID;
     //ffs.strOperDate=SysInitial.
     System.Windows.Forms.DialogResult diaRes1 = MessageBox.Show("是否打印当日结账?", "请确认", System.Windows.Forms.MessageBoxButtons.YesNo, System.Windows.Forms.MessageBoxIcon.Question);
     if (diaRes1.Equals(System.Windows.Forms.DialogResult.Yes))
     {
         this.ChangeCheckPrint(ffs, cs);
         this.OpenDrawer();
     }
 }
Beispiel #2
0
        // 当日结账
        protected void ChangeCheckPrint(CMSMData.CMSMStruct.DailyAccountStruct ffs, CommAccess cs, string strOperName, string strDeptName)
        {
            Exception err;

            CMSM.Print.PrintChangeCheck pBill = new CMSM.Print.PrintChangeCheck();
            pBill.cnvcDateType = "当日结账";
            pBill.cnvcOperName = ffs.strOper;
            DateTime dtnow = DateTime.Now;

            pBill.cnvcOperDate      = dtnow.ToShortDateString() + dtnow.ToShortTimeString();
            pBill.cnvcDeptName      = strDeptName;
            pBill.cnvcFillCount     = ffs.strFillCount;
            pBill.cnvcFillFee       = ffs.strFillFee;
            pBill.cnvcFillCountBank = ffs.strFillCountBank;
            pBill.cnvcFillFeeBank   = ffs.strFillFeeBank;
            pBill.cnvcConsCount     = ffs.strConsCount;
            pBill.cnvcRetail        = ffs.strRetail;
            pBill.cnvcRetailBank    = ffs.strRetailBank;
            pBill.cnvcAssCons       = ffs.strAssCons;
            pBill.cnvcRoll          = ffs.strRoll;
            pBill.cnvcRollSum       = ffs.strRollSum;
            pBill.cnvcLargCount     = ffs.strLargCount;
            pBill.cnvcCash          = ffs.strCash;

            string strEn = cs.GetEnterpriseName(out err);

            if (err != null)
            {
                MessageBox.Show("查询企业名称出错,请与管理员联系!", "系统提示", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
                clog.WriteLine(err);
                strEn = "道讯收银";
            }

            string strTel = cs.GetTel2(out err);

            if (err != null)
            {
                MessageBox.Show("查询服务电话出错,请与管理员联系!", "系统提示", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
                clog.WriteLine(err);
                strTel = "";
            }
            pBill.cnvcTel = strTel;
            Print(strEn, pBill);
        }
Beispiel #3
0
 protected void ChangeCheckPrint(CMSMData.CMSMStruct.DailyAccountStruct ffs, CommAccess cs)
 {
     ChangeCheckPrint(ffs, cs, SysInitial.CurOps.strOperName, this.GetColCh(ffs.strDeptID, "MD"));
 }