コード例 #1
0
        public PartialViewResult EditPV(long id)
        {
            Device device = UnitOfWork_Repositories.repoDevices.Find(id);

            ViewBag.UTC_Diff = new SelectList(StaticMenus.GetRegionalTimeOptions(), device.UTC_Diff);
            return(PartialView("_Edit", device));
        }
コード例 #2
0
        public PartialViewResult EditPV(long id)
        {
            Thing Thing = UnitOfWork_Repositories.repoThings.Find(id);

            ViewBag.UTC_Diff   = new SelectList(StaticMenus.GetRegionalTimeOptions(), Thing.UTC_Diff);
            ViewBag.CategoryID = new SelectList(UnitOfWork_Repositories.repoThingCategorys.GetList(), "ID", "Title", Thing.CategoryID);
            return(PartialView("_Edit", Thing));
        }
コード例 #3
0
 public PartialViewResult PlatformConfigPV()
 {
     SetupModels.PlatformConfig conf = new SetupModels.PlatformConfig();
     try
     {
         UnitOfWork_Repositories uof_repos = new UnitOfWork_Repositories();
         conf             = uof_repos.repoDynSettings.GetSetupPlatformConfig();
         ViewBag.TimeZone = new SelectList(StaticMenus.GetRegionalTimeOptions(), conf.TimeZone);
     }
     catch
     {
         ViewBag.TimeZone = new SelectList(StaticMenus.GetRegionalTimeOptions(), 0);
     }
     return(PartialView("_Config", conf));
 }
コード例 #4
0
 public PartialViewResult AddPV()
 {
     ViewBag.UTC_Diff = new SelectList(StaticMenus.GetRegionalTimeOptions(), Config.App_TimeZone);
     return(PartialView("_Add"));
 }
コード例 #5
0
 public PartialViewResult AddPV()
 {
     ViewBag.UTC_Diff   = new SelectList(StaticMenus.GetRegionalTimeOptions(), Config.App_TimeZone);
     ViewBag.CategoryID = new SelectList(UnitOfWork_Repositories.repoThingCategorys.GetList(), "ID", "Title", 0);
     return(PartialView("_Add"));
 }