public PaymentRequestList(string moduleName, PaymentRequestListVM vm)
        {
            InitializeComponent();
            ModuleName = moduleName;
            if (vm == null)
                return;

            _canEdit = CheckPerm(PageMode.EditMode);
            _canDelete = CheckPerm(PageMode.DeleteMode);

            VM = vm;
            pagingControl1.OnNewPage += pagerPaymentRequest_OnNewPage;
            pagingControl1.Init(VM.PaymentRequestTotleCount, PaymentRequestPerPage);
            BindData();
        }
예제 #2
0
 /// <summary>
 /// 本人付款申请草稿查询
 /// </summary>
 public void LoadDraftSearch()
 {
     SearchVM = new PaymentRequestListVM {IsDraft = true, IsTrueFalse = true};
     SearchVM.Init();
 }
예제 #3
0
 /// <summary>
 /// 本人付款申请草稿查询
 /// </summary>
 public void LoadApproveSearch()
 {
     SearchVM = new PaymentRequestListVM {UserId = CurrentUser.Id};
     SearchVM.Init();
 }
예제 #4
0
 /// <summary>
 /// 查询
 /// </summary>
 public void LoadSearch()
 {
     SearchVM = new PaymentRequestListVM { StartDate = StartDate, EndDate = EndDate, PayBPId = PayBPId, ReceiveBPId = ReceiveBPId, QuotaNo = QuotaNo, IsOnlyCurrentUser = IsOnlyCurrentUser };
     if (PaymentComplete != null)
     {
         SearchVM.PaymentComplete = PaymentComplete;
         SearchVM.IsPaid = PaymentComplete == 1;
     }
     SearchVM.Init();
 }