/// <summary> /// ���캯�� /// </summary> private PayMode() { title = String.Empty; mode = PaymentModeEnum.PostOffice; isActive = false; details = null; }
/// <summary> /// ���캯�� /// </summary> private PayRecord() { mode = PaymentModeEnum.PostOffice; payModeInfo = String.Empty; doc = String.Empty; datetime = DateTime.Now; operater = String.Empty; status = PayRecordStatus.Posted; remark = String.Empty; }
private string GetPayModeInfo(PaymentModeEnum mode, PaymentModeDetails details) { switch (mode) { case PaymentModeEnum.PostOffice: return details.ToString("������{0}<br/>�绰��{1}<br/>��ַ��{2}<br/>�ʱࣺ{3}"); case PaymentModeEnum.Online: return details.ToString("ƽ̨��{0}<br/>�ʺţ�{1}"); case PaymentModeEnum.ElectricityBill: return details.ToString("���У�{0}<br/>�����У�{1}<br/>������{2}<br/>�ʺţ�{3}"); } return "---------"; }
/// <summary> /// ���캯�� /// </summary> /// <param name="m">֧����ʽö��</param> /// <param name="uid">�û�ID</param> public PayMode(PaymentModeEnum m,int uid,string _title) : this() { mode = m; userId = uid; title = _title; switch (mode) { case PaymentModeEnum.PostOffice: details = new PaymentModePostOffice(); break; case PaymentModeEnum.ElectricityBill: details = new PaymentModeElectricityBill(); break; case PaymentModeEnum.Online: details = new PaymentModeOnline(); break; } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (IsPost) { switch (AjaxAction) { case "InvitePayRecord.Save": SavePayRecord(); break; } } else { int.TryParse(Request.QueryString["rid"], out paymentRequireId); require = PaymentRequire.Get(paymentRequireId); if (require != null) { payMode = PayMode.Get(require.PayModeId).Mode; } } }
public MoneyOperationViewModel(ListAppartmentViewModel apvm, PaymentModeEnum mode) : this(new BusinessContext()) { parentAppartmentViewModel = apvm; this.paymentMode = mode; }
/// <summary> /// ��ȡָ���û���֧����¼ /// </summary> /// <param name="uid">�û�ID</param> /// <param name="mode">֧����ʽ</param> /// <param name="status">֧��״̬</param> /// <param name="pager">��ҳ</param> /// <returns></returns> public static List<PayRecord> ListByUser(int uid, PaymentModeEnum mode,PayRecordStatus status, Pager pager) { return List(uid, 0, (short)mode, (short)status, String.Empty, String.Empty, pager); }
/// <summary> /// ��ȡָ�����������֧����¼ /// </summary> /// <param name="rid">����ID</param> /// <param name="mode">֧����ʽ</param> /// <param name="status">֧��״̬</param> /// <param name="pager">��ҳ</param> /// <returns></returns> public static List<PayRecord> ListByRequire(int rid, PaymentModeEnum mode, PayRecordStatus status, Pager pager) { return List(0, rid, (short)mode, (short)status, String.Empty, String.Empty, pager); }
/// <summary> /// ��ȡ֧����¼ /// </summary> /// <param name="mode">֧����ʽ</param> /// <param name="pager">��ҳ</param> /// <returns></returns> public static List<PayRecord> List(PaymentModeEnum mode, Pager pager) { return List(0, 0, (short)mode, (short)-1, String.Empty, String.Empty, pager); }