Ejemplo n.º 1
0
        public ActionResult GetForm(string primaryKey)
        {
            var id     = int.Parse(primaryKey);
            var entity = _itemService.Get(item => item.SD_ITEM_ID == id);

            return(Content(entity.ToJson()));
        }
Ejemplo n.º 2
0
        public ActionResult DataItemResultDetail(string route, string cdr1Name, string cdr2Name, int id)
        {
            ViewBag.route    = new MvcHtmlString(route);//表示不应再次进行编码的 HTML 编码的字符串
            ViewBag.cdr1Name = cdr1Name;
            ViewBag.cdr2Name = cdr2Name;
            var itemInfo = _itemService.Get(i => i.SD_ITEM_ID == id);

            ViewBag.itemName = itemInfo.SD_ITEM_NAME;
            return(View());
        }
Ejemplo n.º 3
0
        public ActionResult Index(string primaryKey)
        {
            ViewBag.SD_NAME         = _projectService.GetCurrentSD().SD_NAME;
            ViewBag.TC_PROJECT_NAME = _projectService.GetCurrentSD().TC_PROJECT_NAME;
            var id     = int.Parse(primaryKey);
            var entity = _itemService.Get(item => item.SD_ITEM_ID == id);

            ViewBag.SD_ITEM_CODE  = entity.SD_ITEM_CODE;
            ViewBag.SD_ITEM_NAME  = entity.SD_ITEM_NAME;
            ViewBag.SD_ITEM_ALIAS = entity.SD_ITEM_ALIAS;
            ViewBag.SD_ITEM_ALGO  = entity.SD_ITEM_ALGO;
            var procCatCode = _procStateService.DataItemProcCatCode();
            var state       = _procStateService.Get(proc => proc.PROC_CONTENT_ID == primaryKey && proc.PROC_CAT_CODE == procCatCode);

            ViewBag.ExecuteState = state.PROC_STAT_CODE;
            if (state.PROC_STAT_CODE != "1")
            {
                ViewBag.LastExeUser = state.UPD_USER_ID;
                ViewBag.LastExeTime = state.UPD_DATE;
            }
            var catEntity = _catconfService.Get(cat => cat.CAT_ID == entity.SD_ITEM_CAT_ID);

            if (catEntity != null)
            {
                ViewBag.SD_ITEM_CAT_NAME = catEntity.CAT_NAME;
            }
            var sd_id   = _projectService.GetCurrentSD().SD_ID;
            var procCat = _procLogService.DataItemCatCode();
            var procLog =
                _procLogService.GetSearchList(
                    proc => proc.PROC_CONTENT_ID == primaryKey && proc.SD_ID == sd_id && proc.PROC_CAT_CODE == procCat)
                .OrderByDescending(proc => proc.UPD_DATE)
                .FirstOrDefault();

            if (procLog != null)
            {
                ViewBag.StartTime  = procLog.START_TIME.ToDateString();
                ViewBag.EndTime    = procLog.END_TIME.ToDateString();
                ViewBag.PatientId  = procLog.PATIENT_ID;
                ViewBag.TestUrl    = procLog.PROC_URL;
                ViewBag.ExecuteUrl = procLog.PROC_URL;
            }
            return(View());
        }