public void BindReimburse(object source, EventArgs e) { if (Validation()) { try { List <Model.Reimburse> reimburseList = ReimburseLogic.GetReimburseByCondition(_LoginUser, _View.SearchReimburseView.EmployeeName, Convert.ToInt32(_View.SearchReimburseView.DepartmentID), (ReimburseStatusEnum) Convert.ToInt32( _View.SearchReimburseView.SelectedReimburseStatus), null, null, Convert.ToInt32( _View.SearchReimburseView. ReimburseCategoriesEnumID), dTotalCostFrom, dTotalCostTo, dtApplyDateFrom, dtApplyDateTo, dtBillingTimeFrom, dtBillingTimeTo, _View.SearchReimburseView.CompanyID, _View.SearchReimburseView.SelectedFinishStatus, HrmisPowers.A901, _View.SearchReimburseView.PagerEntity); _View.SearchReimburseView.ReimburseListSource = reimburseList; _View.SearchReimburseView.Message = "<span class='font14b'>共查到 </span>" + "<span class='fontred'>" + _View.SearchReimburseView.ReimburseListSource.Count + "</span>" + "<span class='font14b'> 个报销单; 共报销金额为</span>" + GetTotalCountStr(reimburseList); } catch (ApplicationException ex) { _View.SearchReimburseView.Message = "<span class='fontred'>" + ex.Message + "</span>"; } } }
public void BindReimburse(object source, EventArgs e) { if (Validation()) { try { bool?isCustomerFilled = null; if (_View.SelectedIsCustomerFilled == 1) { isCustomerFilled = true; } if (_View.SelectedIsCustomerFilled == 0) { isCustomerFilled = false; } List <Model.Reimburse> reimburseList = ReimburseLogic.GetReimburseByCondition(_LoginUser, _View.EmployeeName, Convert.ToInt32(_View.DepartmentID), (ReimburseStatusEnum)Convert.ToInt32(_View.SelectedReimburseStatus), ReimburseStatusEnum.Added, isCustomerFilled, Convert.ToInt32(_View.ReimburseCategoriesEnumID), dTotalCostFrom, dTotalCostTo, dtApplyDateFrom, dtApplyDateTo, null, null, -1, _View.SelectedFinishStatus, HrmisPowers.A904, _View.PagerEntity); _View.ReimburseListSource = reimburseList; _View.Message = "<span class='font14b'>共查到 </span>" + "<span class='fontred'>" + _View.ReimburseListSource.Count + "</span>" + "<span class='font14b'> 个报销单; 共报销金额为</span>" + SearchReimburseInfoPresenter.GetTotalCountStr(reimburseList); } catch (ApplicationException ex) { _View.Message = "<span class='fontred'>" + ex.Message + "</span>"; } } }