/// <summary> /// Check permission for access screen CMS170 /// </summary> /// <param name="param"></param> /// <returns></returns> public ActionResult CMS170_Authority(CMS170_ScreenParameter param) { ObjectResultData res = new ObjectResultData(); try { // Parameter is OK ? if (param.InputData == null) { res.AddErrorMessage(MessageUtil.MODULE_COMMON, MessageUtil.MessageList.MSG0040); return(Json(res)); } } catch (Exception ex) { res.AddErrorMessage(ex); return(Json(res)); } return(InitialScreenEnvironment <CMS170_ScreenParameter>("CMS170", param, res)); }
public ActionResult CMS170() { CMS170_ScreenParameter CMS170Param = new CMS170_ScreenParameter(); try { CMS170Param = GetScreenObject <CMS170_ScreenParameter>(); doInstrumentParam CMS170Input = CMS170Param.InputData; if (CMS170Input != null) { ViewBag.bExpTypeHas = CMS170Input.bExpTypeHas; ViewBag.bExpTypeNo = CMS170Input.bExpTypeNo; ViewBag.bProdTypeSale = CMS170Input.bProdTypeSale; ViewBag.bProdTypeAlarm = CMS170Input.bProdTypeAlarm; ViewBag.bInstTypeGen = CMS170Input.bInstTypeGen; ViewBag.bInstTypeMonitoring = CMS170Input.bInstTypeMonitoring; ViewBag.bInstTypeMat = CMS170Input.bInstTypeMat; if (CMS170Input.bExpTypeHas || CMS170Input.bExpTypeNo) { ViewBag.DisableExpType = "True"; CMS170Param.DisableExpType = true; } else { ViewBag.DisableExpType = "False"; CMS170Param.DisableExpType = false; } if (CMS170Input.bProdTypeSale || CMS170Input.bProdTypeAlarm) { ViewBag.DisableProdType = "True"; CMS170Param.DisableProdType = true; } else { ViewBag.DisableProdType = "False"; CMS170Param.DisableProdType = false; } if (CMS170Input.bInstTypeGen || CMS170Input.bInstTypeMonitoring || CMS170Input.bInstTypeMat) { ViewBag.DisableInstType = "True"; CMS170Param.DisableInstType = true; } else { ViewBag.DisableInstType = "False"; CMS170Param.DisableInstType = false; } } UpdateScreenObject(CMS170Param); } catch { } return(View(CMS170_Screen)); }