protected void AssIgPrint(CMSMData.CMSMStruct.CardHardStruct chs, CMSMData.CMSMStruct.ConsItemStruct cis, CommAccess cs, string strSerialok, DataTable dtIgItem, double dTolCharge) { Exception err; 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 = "道讯收银"; } DataTable dtNewItem = cs.GetNewGoods(out err); if (err != null) { MessageBox.Show("查询推荐新品出错,请与管理员联系!", "系统提示", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error); clog.WriteLine(err); dtNewItem = new DataTable(); } 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 = ""; } DataTable dtConsItem = new DataTable(); CMSM.Print.ConsTicket pBill = new CMSM.Print.ConsTicket(strSerialok, this.GetColCh(cis.strDeptID, "MD"), cis.strCardID, "当前余额", cis.dChargeLast, chs.dCurCharge, dtConsItem, dTolCharge, 0, "积分兑换", dTolCharge, 0, dtNewItem, strTel, dtIgItem, 0, cis.strOperDate); Print(strEn, pBill); }
protected void RetailConsPrint(CMSMData.CMSMStruct.ConsItemStruct cis, CommAccess cs, string strSerialok, DataTable dtConsItem, double dTolCharge, double dPay, double dBalance, double dDiscount) { Exception err; string strConsTypeTmp = cis.strConsType; switch (cis.strConsType) { case "PT002": strConsTypeTmp = "支付现金"; break; case "PT005": strConsTypeTmp = "门店报损"; break; case "PT006": strConsTypeTmp = "门店品尝"; break; case "PT007": strConsTypeTmp = "门店退货"; break; case "PT008": strConsTypeTmp = "银行卡"; break; } 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 = "道讯收银"; } DataTable dtNewItem = cs.GetNewGoods(out err); if (err != null) { MessageBox.Show("查询推荐新品出错,请与管理员联系!", "系统提示", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error); clog.WriteLine(err); dtNewItem = new DataTable(); } 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 = ""; } DataTable dtIgItem = new DataTable(); CMSM.Print.ConsTicket pBill = new CMSM.Print.ConsTicket(strSerialok, this.GetColCh(cis.strDeptID, "MD"), "", "", 0, 0, dtConsItem, dTolCharge, dDiscount, strConsTypeTmp, dPay, dBalance, dtNewItem, strTel, dtIgItem, 0, cis.strOperDate); Print(strEn, pBill); }
// 当日结账 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); }
protected void BusiPrint(CMSMData.CMSMStruct.BusiStruct ffs, CommAccess cs, string strOperName, string strDeptName) { Exception err; CMSM.Print.PrintBusi pBill = new CMSM.Print.PrintBusi(); pBill.strDateType = "业务量报表"; pBill.strNewAssCount = ffs.strNewAssCount; pBill.strLostAssCount = ffs.strLostAssCount; pBill.strFillFeeCount = ffs.strFillFeeCount; pBill.strFIllFee = ffs.strFIllFee; pBill.strBankFillFee = ffs.strBankFillFee; pBill.strAssConsCount = ffs.strAssConsCount; pBill.strAssCons = ffs.strAssCons; pBill.strRetailCount = ffs.strRetailCount; pBill.strRetail = ffs.strRetail; pBill.strSum = ffs.strSum; pBill.strOperName = ffs.strOperName; DateTime dtnow = DateTime.Now; pBill.strOperDate = dtnow.ToShortDateString() + dtnow.ToShortTimeString(); pBill.strDeptName = ffs.strDeptname; 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); }
protected void FillFeePrint(CMSMData.CMSMStruct.FillFeeStruct ffs, CommAccess cs, string strAssName, string strOperName, string strDeptName) { Exception err; CMSM.Print.PrintedBill pBill = new CMSM.Print.PrintedBill(); pBill.cnvcBillType = "充值"; pBill.cnvcMemberCardNo = ffs.strCardID; pBill.cnvcMemberName = strAssName; pBill.cnnLastBalance = Convert.ToDecimal(ffs.dFeeLast); pBill.cnnBalance = Convert.ToDecimal(ffs.dFeeCur); pBill.cnnPrepay = Convert.ToDecimal(ffs.dFillFee); pBill.cnnDonate = Convert.ToDecimal(ffs.dFillProm); pBill.cnvcOperName = strOperName; pBill.cndOperDate = Convert.ToDateTime(ffs.strFillDate); pBill.cnvcDeptName = strDeptName; 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); }