コード例 #1
0
ファイル: PayMode.cs プロジェクト: foresightbrand/kebibi
 /// <summary>
 /// ���캯��
 /// </summary>
 private PayMode()
 {
     title = String.Empty;
     mode = PaymentModeEnum.PostOffice;
     isActive = false;
     details = null;
 }
コード例 #2
0
ファイル: PayRecord.cs プロジェクト: foresightbrand/kebibi
 /// <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;
 }
コード例 #3
0
 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 "---------";
 }
コード例 #4
0
ファイル: PayMode.cs プロジェクト: foresightbrand/kebibi
 /// <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;
     }
 }
コード例 #5
0
        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;
                }
            }
        }
コード例 #6
0
 public MoneyOperationViewModel(ListAppartmentViewModel apvm, PaymentModeEnum mode) : this(new BusinessContext())
 {
     parentAppartmentViewModel = apvm;
     this.paymentMode          = mode;
 }
コード例 #7
0
ファイル: PayRecord.cs プロジェクト: foresightbrand/kebibi
 /// <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);
 }
コード例 #8
0
ファイル: PayRecord.cs プロジェクト: foresightbrand/kebibi
 /// <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);
 }
コード例 #9
0
ファイル: PayRecord.cs プロジェクト: foresightbrand/kebibi
 /// <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);
 }