コード例 #1
0
        public ActionResult Update(string id)
        {
            ViewBag.urlValue = url ?? Request.Url.PathAndQuery;

            ViewBag.PCs            = GetPCList();
            ViewBag.Communications = GetCommunicationList();
            ViewBag.LineTypes      = GetLineList();

            var obj = _tblLockerLineService.GetById(id);

            return(View(obj));
        }
コード例 #2
0
        public PartialViewResult ControllerStatus(string lineid, string controllerid)
        {
            var url = "";

            var t = _tblLockerLineService.GetById(lineid);

            if (t != null)
            {
                var k = _tblLockerSelfHostService.GetByPCID(t.PCID);
                if (k != null)
                {
                    url = k.Address;
                }
            }

            var result = FunctionHelper.CheckConnectController(url, controllerid);

            var model = new SelectListModel()
            {
                ItemValue = result
            };

            return(PartialView(model));
        }