public string GetRecvData(DateTime printDate) { StringBuilder sb = new StringBuilder(); //sb.Append("=============================================\r\n"); sb.AppendFormat("{0:yyyy-MM-dd HH:mm:ss.fff} 收到数据\r\n", DateTime.Now); sb.AppendFormat("{0}\r\n", PubLib.BytesToString(RecvData.recvData)); sb.AppendFormat("指令类别:{0}\r\n", RecvData.commandType); sb.AppendFormat("IC卡号码:{0}\r\n", IC卡号码); sb.AppendFormat("动态密码:{0}\r\n", 动态密码); sb.AppendFormat("控制类型:{0}\r\n", 控制类型.ToDescription()); sb.AppendFormat("币数:{0}\r\n", 币数); sb.AppendFormat("流水号:{0}\r\n", 流水号); sb.AppendFormat("机头地址:{0}\r\n", 机头地址); return(sb.ToString()); }