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(); }
/// <summary> /// 本人付款申请草稿查询 /// </summary> public void LoadDraftSearch() { SearchVM = new PaymentRequestListVM {IsDraft = true, IsTrueFalse = true}; SearchVM.Init(); }
/// <summary> /// 本人付款申请草稿查询 /// </summary> public void LoadApproveSearch() { SearchVM = new PaymentRequestListVM {UserId = CurrentUser.Id}; SearchVM.Init(); }
/// <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(); }