Esempio n. 1
0
        public ActionResult Edit(string COM_CODE, decimal?USG_ID)
        {
            SetDefaulButton(StandardButtonMode.Modify);
            var da = new SECS02P001DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SECS02P001ExecuteType.GetByID;

            TempModel          = null;
            TempModel.COM_CODE = da.DTO.Model.COM_CODE = COM_CODE;
            TempModel.USG_ID   = da.DTO.Model.USG_ID = USG_ID;

            da.Select(da.DTO);

            if (da.DTO.Model != null)
            {
                localModel = da.DTO.Model;
            }

            localModel.USG_STATUS_MODEL = GetUsgStatus();
            localModel.USG_LEVEL_MODEL  = GetUsgLevel();
            Set(localModel, "USG_LEVEL_MODEL");
            Set(localModel, "USG_STATUS_MODEL");

            return(View(StandardActionName.Edit, localModel));
        }
Esempio n. 2
0
        private SECS02P001Model GET_VSMS_USRGROUP(string COM_CODE, decimal?USG_ID)
        {
            var da = new SECS02P001DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SECS02P001ExecuteType.GetByID;
            da.DTO.Model.COM_CODE      = COM_CODE;
            da.DTO.Model.USG_ID        = USG_ID;

            da.Select(da.DTO);

            return(da.DTO.Model);
        }
Esempio n. 3
0
        public ActionResult Search(SECS02P001Model model)
        {
            var da = new SECS02P001DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SECS02P001ExecuteType.GetAll;

            if (Request.GetRequest("page").IsNullOrEmpty())
            {
                model.IsDefaultSearch = true;
                TempSearch            = model;
            }

            da.DTO.Model = TempSearch;

            da.Select(da.DTO);
            return(JsonAllowGet(da.DTO.Models));
        }
Esempio n. 4
0
        public ActionResult ConfSysSeq(string COM_CODE, string USG_LEVEL, decimal?USG_ID)
        {
            SetDefaulButton(StandardButtonMode.Other);
            AddStandardButton(StandardButtonName.SaveModify, url: Url.Action("SaveConfSysSeq"));
            var da = new SECS02P001DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SECS02P001ExecuteType.GetByID;

            TempModel           = null;
            TempModel.COM_CODE  = da.DTO.Model.COM_CODE = COM_CODE;
            TempModel.USG_ID    = da.DTO.Model.USG_ID = USG_ID;
            TempModel.USG_LEVEL = da.DTO.Model.USG_LEVEL = USG_LEVEL;

            da.Select(da.DTO);

            if (da.DTO.Model != null)
            {
                localModel = da.DTO.Model;
            }
            localModel.SYS_GROUP_NAME_MODEL = GetDDLCenter(DDLCenterKey.DD_VSMS_USRGROUP_003, new VSMParameter(COM_CODE.Trim()), new VSMParameter(USG_LEVEL));
            return(View("ConfSysSeq", localModel));
        }
Esempio n. 5
0
        public ActionResult ConfPrg(string COM_CODE, decimal?USG_ID)
        {
            SetDefaulButton(StandardButtonMode.Other);
            AddStandardButton(StandardButtonName.SaveModify, url: Url.Action("SaveConfPrg"));
            var da = new SECS02P001DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SECS02P001ExecuteType.GetByID;

            TempModel          = null;
            TempModel.COM_CODE = da.DTO.Model.COM_CODE = COM_CODE;
            TempModel.USG_ID   = da.DTO.Model.USG_ID = USG_ID;

            da.Select(da.DTO);

            if (da.DTO.Model != null)
            {
                localModel          = da.DTO.Model;
                TempModel.USG_LEVEL = da.DTO.Model.USG_LEVEL;
            }

            localModel.SYS_CODE_MODEL = GetDDLCenter(DDLCenterKey.DD_VSMS_SYSTEM_002);
            return(View("ConfPrg", localModel));
        }