// GET: EnvironmentManagement/CreepingAndRollSpeed public ActionResult Index() { var model = new CreepingAndRollSpeedDurationModel() { SearchCriteriaModel = new SearchCriteriaModel() { Location = "Machine", EndDate = DateTime.Now.AddDays(-1).ToString("dd/MM/yyyy"), StartDate = DateTime.Now.AddDays(-89).ToString("dd/MM/yyyy"), }, LeftModel = new ChartModel() { ChartName = "Left" }, RightModel = new ChartModel() { ChartName = "Right" }, RollModel = new ChartModel() { ChartName = "Roll" } }; ViewBag.ListLocation = new SelectList(EnumsHelper.GetListItemsWithDescription <Constants.RollMachine>(), "Value", "Text"); return(View(model)); }
// // GET: EnvironmentManagement/CleanlinessDataInput public ActionResult Index() { var today = DateTime.Now.ToString("dd/MM/yyyy"); var model = new CleanlinessDataInputModel() { SearchCriteriaModel = new SearchCriteriaModel() { Location = "Line", StartDate = today, EndDate = today }, DateDiameter1 = today.Remove(5), DateDiameter2 = today.Remove(5), }; ViewBag.ListLocation = EnumsHelper.GetListItemsWithDescription <Constants.EnvLine>(); return(View(model)); }