using System; using System.Collections.Generic; using System.Text; namespace Dfs.WayneChina.SpsDbManager.ResultSet { /// /// Result of Sps_db routine 'CardReq', represents the validation result of a particular card. /// 存储过程`CardReq`之执行结果,代表某张IC卡之验证结果。 /// public class CheckCardResult { /// /// Max allowed amount. /// 加油机所允许之最大金额。 /// public ulong Max_Mon { get; set; } /// /// Pay restriction indicator, e.g. daily max amount, daily max transaction count. /// 消费限制指示,-1:无金额限制;其他,次数有/无限制。 /// public long BalPay_Day { get; set; } /// /// Max allowed amount for a single filling. /// 单次加油所允许之最大金额。 /// public long OnceMaxPay { get; set; } /// /// Discount code. /// 优惠规则代码(如果系统配置有效优惠规则)。 /// public long DiscountNo { get; set; } /// /// Card state, a numeric enumeration. /// 卡状态,枚举值,如:0=正常卡。 /// public long CStatus { get; set; } /// /// Length of the state description(CState field). /// 卡状态描述之长度。 /// public long CStateLen { get; set; } /// /// Description of the card state. /// 卡状态描述。 /// public string CState { get; set; } /// /// Return value. /// 返回值。 /// public int ReturnVar { get; set; } } public class CardResult { public int ReturnValue { get; set; } public CardState CardStatus { get; set; } public ulong MaxAllowedAmount { get; set; } public uint MaxAmountPerTrx { get; set; } public int TrxRestrictionIndicator { get; set; } public uint DiscountNo { get; set; } /// /// 卡状态描述长度 /// public long CardStateDescLen { get; set; } public string CardStateDescription { get; set; } } public enum CardState { /// /// A normal card, ready for use. /// 正常卡。 /// Ok = 0, /// /// A lost card registered on system. /// 挂失卡。 /// Lost = 1, /// /// A closed card. /// 注销卡。 /// Closed = 2, /// /// An expired card. /// 过期卡。 /// Expired = 3, /// /// Other errors. /// 其他错误。 /// Error = 4, /// /// Info not existing for this card. /// 无此卡信息。 /// NoInfo = 5, /// /// A card with the account frosen (A card belongs to an account). /// 账户冻结卡。 /// AccountFrosen = 6 } }