private void print() { try { StringBuilder outMsg = new StringBuilder(); Print.TT_OpenDevice(new StringBuilder("COM" + SysConfigHelper.readerNode("PrintPort")), new StringBuilder("38400"), outMsg); Print.TT_GetDeviceStatus(outMsg); // Print.TT_PrintText(new StringBuilder("三维终端 快捷支付 便利生活\n"), outMsg); Print.TT_PrintText(new StringBuilder(" \n"), outMsg); Print.TT_PrintText(new StringBuilder(" 三维终端交易凭条\n"), outMsg); Print.TT_PrintText(new StringBuilder("----------------------"), outMsg); Print.TT_PrintText(new StringBuilder(" \n"), outMsg); Print.TT_PrintText(new StringBuilder("交易类型:甘肃一卡通充值\n"), outMsg); Print.TT_PrintText(new StringBuilder("一卡通卡号:" + PrintBLL.hideCardNo(Payment.wintopReChargeParam.WtCardNo) + "****" + "\n"), outMsg); Print.TT_PrintText(new StringBuilder("银行卡号:" + PrintBLL.hideCardNo(Payment.wintopReChargeParam.IcParams["cardNo"]) + "\n"), outMsg); Print.TT_PrintText(new StringBuilder("交易时间:" + SysBLL.getTimeFormat() + "\n"), outMsg); Print.TT_PrintText(new StringBuilder("交易金额:¥" + Payment.wintopReChargeParam.WintopDiscountInfoMsgrspList.CZ00030 + "\n"), outMsg); Print.TT_PrintText(new StringBuilder("订单编号:" + Payment.wintopReChargeParam.WintopOrderInfo.msgrsp.orderNo + "\n"), outMsg); //Print.TT_PrintText(new StringBuilder("流水号:" + orderInfo.msghead.resqn + "\n"), outMsg); Print.TT_PrintText(new StringBuilder("备注:\n"), outMsg); Print.TT_PrintText(new StringBuilder(" \n"), outMsg); Print.TT_PrintText(new StringBuilder(" \n"), outMsg); Print.TT_PrintText(new StringBuilder(" \n"), outMsg); Print.TT_PrintText(new StringBuilder("-----持卡人存根-----\n"), outMsg); Print.TT_PrintText(new StringBuilder(" \n"), outMsg); Print.TT_PrintText(new StringBuilder(" \n"), outMsg); Print.TT_PrintText(new StringBuilder(" \n"), outMsg); Print.TT_PrintText(new StringBuilder(" \n"), outMsg); Print.TT_PrintText(new StringBuilder(" \n"), outMsg); Print.TT_PrintText(new StringBuilder(" \n"), outMsg); Print.TT_PrintText(new StringBuilder(" \n"), outMsg); Print.TT_PrintText(new StringBuilder(" \n"), outMsg); Print.TT_PrintText(new StringBuilder(" \n"), outMsg); Print.TT_CutPaper(1, outMsg); Print.TT_CloseDevice(outMsg); }catch (Exception ex) { log.Write("error:FormCitizenStep08_success:print():" + ex.Message + ex.InnerException); } }