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); }