public ActionResult CRMTopProfit(CRMFilterProfit filter) { ViewBag.Filter = filter; var list = ResultFilter(filter); return(PartialView("_CrmTopProfitList", list)); }
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)); }
private List <CRMFilterProfitResult> ResultFilter(CRMFilterProfit filter) { var qr = crmCustomerService.GetCRMListProfit(filter, CurrenUser); return(qr); }