예제 #1
0
        public JsonResult Bind_ComForUser()
        {
            var da = new SEC006P001DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SEC006P001ExecuteType.GetUserCOM;

            da.DTO.Model.USER_ID = TempModel.USER_ID;

            da.SelectNoEF(da.DTO);

            return(JsonAllowGet(da.DTO.Model.ComUserModel));
        }
예제 #2
0
        private List <DDLCenterModel> BindUSG_ID_MODEL_ADD()
        {
            var da = new SEC006P001DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SEC006P001ExecuteType.GetQueryCheckUserAdmin;
            da.DTO.Model.USER_ID       = SessionHelper.SYS_USER_ID;
            da.DTO.Model.COM_CODE      = SessionHelper.SYS_COM_CODE;
            da.SelectNoEF(da.DTO);

            if (da.DTO.Models[0].USG_LEVEL.AsString() == "S")
            {
                return(GetDDLCenter(DDLCenterKey.DD_VSMS_USRGROUP_001));
            }
            else
            {//
                return(GetDDLCenter(DDLCenterKey.DD_VSMS_USRGROUP_002));
            }
        }