// // GET: /Project/ public ActionResult Index() { Region csra = new Region(Region.RegionAbbrs.csra); Region hoga = new Region(Region.RegionAbbrs.hoga); Region rvly = new Region(Region.RegionAbbrs.rvly); ViewBag.csraTaxCollected = csra.TotalRevenueCollected.ToString("C2"); ViewBag.hogaTaxCollected = hoga.TotalRevenueCollected.ToString("C2"); ViewBag.rvTaxCollected = rvly.TotalRevenueCollected.ToString("C2"); ViewBag.csraTaxCollectedNum = (int)(csra.TotalRevenueCollected / 1000000); ViewBag.hogaTaxCollectedNum = (int)(hoga.TotalRevenueCollected / 1000000); ViewBag.rvTaxCollectedNum = (int)(rvly.TotalRevenueCollected / 1000000); ViewBag.rvTotalFundsBudgeted = rvly.TotalFundsBudgeted.ToString("C2"); ViewBag.hogaTotalFundsBudgeted = hoga.TotalFundsBudgeted.ToString("C2"); ViewBag.csraTotalFundsBudgeted = csra.TotalFundsBudgeted.ToString("C2"); ViewBag.rvTotalFundsBudgetedNum = (int)(rvly.TotalFundsBudgeted / 1000000); ViewBag.hogaTotalFundsBudgetedNum = (int)(hoga.TotalFundsBudgeted / 1000000); ViewBag.csraTotalFundsBudgetedNum = (int)(csra.TotalFundsBudgeted / 1000000); ViewBag.csraFundsSpent = csra.TotalFundsSpent.ToString("C2"); ViewBag.hogaFundsSpent = hoga.TotalFundsSpent.ToString("C2"); ViewBag.rvFundsSpent = rvly.TotalFundsSpent.ToString("C2"); ViewBag.csraTotalProjects = csra.TotalProjects; ViewBag.hogaTotalProjects = hoga.TotalProjects; ViewBag.rvTotalProjects = rvly.TotalProjects; return View(); }
public ActionResult List(string id) { //specific region Region.RegionAbbrs code = (Region.RegionAbbrs)Enum.Parse(typeof(Region.RegionAbbrs), id.ToLower()); Region region = new Region(code); return View(region); }
public ActionResult Filter(string bandString, string countyString, Int32? status, Int32? type, string regionCode) { Region.RegionAbbrs code = (Region.RegionAbbrs)Enum.Parse(typeof(Region.RegionAbbrs), regionCode); Region region = new Region(code); return PartialView("_ProjectList", region.GetProjects(bandString, countyString, status, type)); }
// // GET: /Home/ public ActionResult Index() { Region csra = new Region(Region.RegionAbbrs.csra); Region hoga = new Region(Region.RegionAbbrs.hoga); Region rv = new Region(Region.RegionAbbrs.rvly); ViewBag.csraTaxCollected = csra.TotalRevenueCollected.ToString("C2"); ViewBag.hogaTaxCollected = hoga.TotalRevenueCollected.ToString("C2"); ViewBag.rvTaxCollected = rv.TotalRevenueCollected.ToString("C2"); ViewBag.csraTotalProjects = csra.TotalProjects; ViewBag.hogaTotalProjects = hoga.TotalProjects; ViewBag.rvTotalProjects = rv.TotalProjects; ViewBag.totalTaxRevenueCollected = (csra.TotalRevenueCollected + hoga.TotalRevenueCollected + rv.TotalRevenueCollected) / 1000000; ViewBag.totalTaxRevenueCollectedString = (csra.TotalRevenueCollected + hoga.TotalRevenueCollected + rv.TotalRevenueCollected).ToString("C2"); ViewBag.totalProjects = csra.TotalProjects + hoga.TotalProjects + rv.TotalProjects; ViewBag.totalFinishedProjects = csra.TotalFinishedProjects + hoga.TotalFinishedProjects + rv.TotalFinishedProjects; ViewBag.totalConstructionProjects = csra.TotalConstructionProjects + hoga.TotalConstructionProjects + rv.TotalConstructionProjects; ViewBag.totalFundsBudgeted = (csra.TotalFundsBudgeted + hoga.TotalFundsBudgeted + rv.TotalFundsBudgeted).ToString("C"); ViewBag.csra = csra; ViewBag.hoga = hoga; ViewBag.rv = rv; ViewBag.totalExpenditure = ((csra.TotalFundsSpent + hoga.TotalFundsSpent + rv.TotalFundsSpent)).ToString("C2"); return View(); }