Esempio n. 1
0
 private void addTotalReimbursable(ReportTotal reportTotal, IList <ExpenseItem> items)
 {
     if (_toggleClient.ToggleForExperiment("expense").Result)
     {
         reportTotal.TotalReimbursable = getTotalReimbursable(items);;
     }
 }
Esempio n. 2
0
 private void addNumItems(ReportTotal reportTotal)
 {
     if (_toggleClient.GetToggleValue("enable-number-of-items").Result)
     {
         reportTotal.NumberOfExpenses = reportTotal.Expenses.Count;
     }
 }
Esempio n. 3
0
        // 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());
        }
Esempio n. 4
0
        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;
 }