Esempio n. 1
0
        public void PrintReport(string name, string sum)
        {
            InitPrint();
            DPrinter.LineFeed();
            PrintContent("齐都医院收款凭证", 0, (char)1, true);
            PrintContent("----------------------------------------------------", 11, (char)0, false);
            PrintContent("姓  名:" + name + " ", 0, (char)0, false);
            PrintContent("充值金额:" + sum + "元 ", 0, (char)0, false);;
            PrintContent("卡余额:" + FrmMain.cardBlance.ToString() + "元 ", 0, (char)0, false);
            PrintContent("证件号码:" + FrmMain.patientInfoData.Tables[0].Rows[0]["ShenFenZheng"] == null ? "" : FrmMain.patientInfoData.Tables[0].Rows[0]["ShenFenZheng"].ToString(), 0, (char)0, false);
            PrintContent("充值类型:现金 ", 0, (char)0, false);

            PrintContent("卡  号:" + FrmMain.cardInfoStruct.CardNo + " ", 0, (char)0, false);
            PrintContent("充值日期:" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), 0, (char)0, false);
            PrintContent("----------------------------------------------------", 11, (char)0, false);
            PrintContent("提示:请妥善保管本凭证!", 0, (char)0, false);
            DPrinter.LineFeed();
            this.cutPage();
        }
Esempio n. 2
0
        public void PrintReport(string sum, string rcptNo)
        {
            InitPrint();
            DPrinter.LineFeed();
            PrintContent("巩义市人民医院", 0, (char)1, true);
            PrintContent("门诊一卡通预缴款收据", 0, (char)1, true);
            PrintContent("----------------------------------------------------", 11, (char)0, false);
            PrintContent("日  期:" + DateTime.Now.ToShortDateString() + " ", 0, (char)0, false);
            PrintContent("卡  号:" + FrmMain.parInfo.Tables[0].Rows[0]["卡号"].ToString() + " ", 0, (char)0, false);
            PrintContent("今收到:" + FrmMain.parInfo.Tables[0].Rows[0]["姓名"].ToString() + " ", 0, (char)0, false);
            PrintContent("缴费类型: 门诊预交金" + " ", 0, (char)0, false);
            PrintContent("金额(人民币):" + sum + "元 ", 0, (char)0, false);
            PrintContent("卡余额(人民币):" + FrmMain.cardBlance.ToString() + "元 ", 0, (char)0, false);
            PrintContent("交款形式: 现金 ", 0, (char)0, false);
            PrintContent("收款员:6666 ", 0, (char)0, false);
            PrintContent("备  注: ", 0, (char)0, false);
            PrintContent("流水号:" + rcptNo + " ", 0, (char)0, false);
            PrintContent("1.请当面核对票款金额,如有疑问即时查询", 0, (char)0, false);
            PrintContent("2.请妥善保管此收据,发现差错,退款时须交验本单", 0, (char)0, false);
            PrintContent("3.此系临时收据,不做报销凭证", 0, (char)0, false);

            DPrinter.LineFeed();
            this.cutPage();
        }