예제 #1
0
        public ActionResult CRMTopProfit(CRMFilterProfit filter)
        {
            ViewBag.Filter = filter;
            var list = ResultFilter(filter);

            return(PartialView("_CrmTopProfitList", list));
        }
예제 #2
0
        public ActionResult CRMTopProfit()
        {
            var filter = new CRMFilterProfit
            {
                BeginDate = DateTime.Today.AddMonths(-1),
                EndDate   = DateTime.Now,
                Top       = 10
            };

            ViewBag.Filter  = filter;
            ViewBag.Users   = usersServices.GetAllSales(CurrenUser, false);
            ViewBag.Depts   = usersServices.GetAllDepartmentActive(CurrenUser);
            ViewBag.Offices = usersServices.getAllCompany();
            var list = ResultFilter(filter);

            return(View(list));
        }
예제 #3
0
        private List <CRMFilterProfitResult> ResultFilter(CRMFilterProfit filter)
        {
            var qr = crmCustomerService.GetCRMListProfit(filter, CurrenUser);

            return(qr);
        }