public PayoutDefinition (PayoutType type, string subtype, double quantity, string data) { this.type = type; this.subtype = subtype; this.quantity = quantity; this.data = data; }
public PayoutDefinition (string typeString, string subtype, double quantity, string data) { PayoutType t = PayoutType.Other; if (Enum.IsDefined(typeof(PayoutType), typeString)) t = (PayoutType)Enum.Parse (typeof (PayoutType), typeString); this.type = t; this.subtype = subtype; this.quantity = quantity; this.data = data; }
/// <summary> /// PC指示VMC出币 /// PAYOUT_IND 不会减少用户余额! /// </summary> /// <param name="device">出币设备,0硬币出币,1纸币出币</param> /// <param name="value">本次出币总金额</param> /// <param name="type">出币类型 无需理解type 的含义,只需要在出币完成后的PAYOUT_RPT 中将该type 值回传给PC 即可</param> public PayoutRpt PAYOUT_IND(PayoutType device, int value, byte type) { List <byte> sendData = new List <byte>() { 0xE5, 0x00, 0x00, 0x41, 0x89 }; sendData.Add((byte)device); sendData.AddRange(CommonUtil.Int2ByteArray(value, 2)); sendData.Add(type); m_CommandList.Add(new Cmd(sendData, new MT(sendData))); if (SendSuccess(0x89, 0x00)) { byte[] receiveData = WaitReceive(0x07); if (receiveData != null) { return(new PayoutRpt(receiveData)); } } return(null); }
public bool SaveCreditNote(uid iud, string number, string checkSum, decimal amount, string stationNumber, out PayoutType payoutType) { throw new NotImplementedException(); }
/// <summary> /// PC指示VMC出币 /// PAYOUT_IND 不会减少用户余额! /// </summary> /// <param name="device">出币设备,0硬币出币,1纸币出币</param> /// <param name="value">本次出币总金额</param> /// <param name="type">出币类型 无需理解type 的含义,只需要在出币完成后的PAYOUT_RPT 中将该type 值回传给PC 即可</param> public PayoutRpt PAYOUT_IND(PayoutType device, int value, byte type) { List<byte> sendData = new List<byte>() { 0xE5, 0x00, 0x00, 0x41, 0x89 }; sendData.Add((byte)device); sendData.AddRange(CommonUtil.Int2ByteArray(value, 2)); sendData.Add(type); m_CommandList.Add(new Cmd(sendData, new MT(sendData))); if (SendSuccess(0x89, 0x00)) { byte[] receiveData = WaitReceive(0x07); if (receiveData != null) { return new PayoutRpt(receiveData); } } return null; }
public PayoutDefinition (PayoutType type, string subtype, double quantity) : this (type, subtype, quantity, string.Empty) { }
public static PayoutType CreatePayoutType(int payoutTypeID) { PayoutType payoutType = new PayoutType(); payoutType.PayoutTypeID = payoutTypeID; return payoutType; }
public void AddToPayoutTypes(PayoutType payoutType) { base.AddObject("PayoutTypes", payoutType); }