public ActionResult Index() { IncentiveCollectionBusiness business = new IncentiveCollectionBusiness(); business.SetUserAuth(ViewBag.UserAuth); IncentiveCollectionReportViewModel model = new IncentiveCollectionReportViewModel(); ViewBag.ListBranch = business.GetListBranch(); return(View(model)); }
public ActionResult Index(string p, string b) { IncentiveCollectionBusiness business = new IncentiveCollectionBusiness(); business.SetUserAuth(ViewBag.UserAuth); IncentiveCollectionReportViewModel model = business.GetReportSPVFakturis(p, b); ViewBag.ListBranch = business.GetListBranch(); return(View(model)); }
public ActionResult Index(string p, int?b) { IncentiveCollectionBusiness business = new IncentiveCollectionBusiness(); business.SetUserAuth(ViewBag.UserAuth); if (RoleCode.NSM.Equals(ViewBag.UserAuth.RoleCode)) { ViewBag.ListBranch = business.GetListBranch(); } IncentiveCollectionReportViewModel model = business.GetReport(p, b); return(View(model)); }