Ejemplo n.º 1
0
        // Print...
        public void Print(PrintElement element)
        {
            element.AddSeat(cnvcBillType);
            element.AddHorizontalRule();

            element.AddData("会员卡号", cnvcMemberCardNo);
            element.AddData("会员名称", cnvcMemberName);
            element.AddHorizontalRule();
            element.AddData("上次余额", cnnLastBalance.ToString("F2"));
            element.AddData("充值金额", cnnPrepay.ToString("F2"));
            element.AddData("赠送金额", cnnDonate.ToString("F2"));
            element.AddData("当前余额", cnnBalance.ToString("F2"));
            element.AddText("谢谢惠顾!  " + cnvcDeptName);
            element.AddData("服务电话", cnvcTel);
            element.AddData("操作员", cnvcOperName);
            element.AddData("操作时间", cndOperDate.ToString("yyyy-MM-dd HH:mm"));
            element.AddBlankLine();
            element.AddBlankLine();
            element.AddBlankLine();
            element.AddHorizontalRule();
        }
Ejemplo n.º 2
0
        public void Print(PrintElement element)
        {
            element.AddText("谢谢惠顾!  " + this.strDeptName);
            element.AddData("日期", this.strOperDate);
            element.AddData("小票号", this.strSerial);
            if (this.strCardId.Length > 0)
            {
                element.AddData("卡号", this.strCardId);
            }
            if (this.dLastBalance > 0)
            {
                element.AddData("上次余额", this.dLastBalance.ToString("F2"));
            }
            if (this.strComment.Length > 0)
            {
                element.AddData(this.strComment, this.dBalance.ToString("F2"));
            }
            if (this.dIg > 0)
            {
                element.AddData("当前积分", this.dIg);
            }
            if (this.strTel.Length > 0)
            {
                element.AddData("服务电话", this.strTel);
            }
            element.AddHorizontalRule();

            if (dtConsItem.Rows.Count > 0)
            {
                element.AddFourText("商品名称", "单价", "数量", "小计");
                foreach (DataRow dr in dtConsItem.Rows)
                {
                    element.AddFourText(dr["GoodsName"].ToString(), Convert.ToDouble(dr["Price"]).ToString("F2"), dr["Count"].ToString(), Convert.ToDouble(dr["Fee"]).ToString("F2"));
                }
            }
            if (dtIgItem.Rows.Count > 0)
            {
                element.AddFourText("商品名称", "积分", "数量", "小计");
                foreach (DataRow dr in dtIgItem.Rows)
                {
                    element.AddFourText(dr["GoodsName"].ToString(), Convert.ToDouble(dr["IgValue"]).ToString("F2"), dr["Count"].ToString(), Convert.ToDouble(dr["IgPay"]).ToString("F2"));
                }
            }
            element.AddHorizontalRule();
            element.AddData("合计", this.dSum.ToString("F2"));

            if (this.dDiscount > 0)
            {
                element.AddData("折扣", this.dDiscount);
            }
            element.AddData(this.strPayType, this.dPay.ToString("F2"));
            element.AddData("找零", this.dCharge);
            element.AddHorizontalRule();
            if (dtNewItem.Rows.Count > 0)
            {
                element.AddText(this.strDeptName + "推荐新品:");
                element.AddTwoText("商品名称", "单价");
                foreach (DataRow dr in dtNewItem.Rows)
                {
                    element.AddTwoText(dr["vcGoodsName"].ToString(), dr["nPrice"].ToString());
                }
            }

            element.AddBlankLine();
            element.AddBlankLine();
            element.AddBlankLine();
            element.AddBlankLine();
            element.AddBlankLine();
            element.AddBlankLine();
            //element.AddHorizontalRule();
        }