コード例 #1
0
        public AdministrationController(IAdministrationServiceAdapter adapter, InfoDataAdapter infoDataAdapter)
        {
            _adapter = adapter;
            _infoAdapter = infoDataAdapter;

            Dictionary<int, string> federalDistricts = _infoAdapter.GetFederalDistricts().ToDictionary(x => x.Id, x => x.Title);
            federalDistricts.Add(0, "");
            ViewBag.FederalDistricts = federalDistricts.OrderBy(x => x.Key);
            ViewBag.FullReport = "";
            ViewBag.Consolidate = "";
            ViewBag.Summary = "";
            ViewBag.Help = "";
            ViewBag.Administration = "active";
        }
コード例 #2
0
ファイル: SummaryController.cs プロジェクト: asdlvs/MinStat
        public SummaryController()
        {
            _infoAdapter = new InfoDataAdapter();
            _summaryAdapter = new SummaryReportAdapter();

            Dictionary<int, string> federalDistricts = _infoAdapter.GetFederalDistricts().ToDictionary(x => x.Id, x => x.Title);
            federalDistricts.Add(0, "Все округа");
            ViewBag.FederalDistricts = federalDistricts.OrderBy(x => x.Key);
            ViewBag.EndDate = DateTime.Now.ToShortDateString();
            ViewBag.FullReport = "";
            ViewBag.Consolidate = "";
            ViewBag.Summary = "active";
            ViewBag.Administration = "";
            ViewBag.Help = "";
        }