private void addTotalReimbursable(ReportTotal reportTotal, IList <ExpenseItem> items) { if (_toggleClient.ToggleForExperiment("expense").Result) { reportTotal.TotalReimbursable = getTotalReimbursable(items);; } }
private void addNumItems(ReportTotal reportTotal) { if (_toggleClient.GetToggleValue("enable-number-of-items").Result) { reportTotal.NumberOfExpenses = reportTotal.Expenses.Count; } }
// GET: Admin public ActionResult Index() { ViewBag.UserName = LUser.UserName; var obj = CommFunction.GetArrayByDt(ReportTotal.GetProNameAndFee()); //报表设置 ViewBag.LegendArray = obj["Name"]; ViewBag.SeriesArray = obj["Fee"]; return(View()); }
private ReportTotal CreateReport(string tripId, IList <ExpenseItem> items) { decimal total = getTotal(items); ReportTotal reportTotal = new ReportTotal { TripId = tripId, Total = total, Expenses = items }; addNumItems(reportTotal); addTotalReimbursable(reportTotal, items); return(reportTotal); }
private void addTotalReimbursable(ReportTotal reportTotal, IList <ExpenseItem> items) { reportTotal.TotalReimbursable = getTotalReimbursable(items);; }
private void addNumItems(ReportTotal reportTotal) { reportTotal.NumberOfExpenses = reportTotal.Expenses.Count; }