Exemplo n.º 1
0
        public ActionResult GetFullAppName(SECS02P002Model model)
        {
            var da = new SECS02P002DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SECS02P002ExecuteType.GetFullAppName;
            da.DTO.Model.COM_CODE      = model.APP_CODE;

            da.SelectNoEF(da.DTO);
            return(JsonAllowGet(da.DTO.Model.Details[0]));
        }
Exemplo n.º 2
0
        public ActionResult BindDetail()
        {
            var da = new SECS02P002DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SECS02P002ExecuteType.GetDetailByID;
            da.DTO.Model.USER_ID       = TempModel.USER_ID;


            da.SelectNoEF(da.DTO);
            return(JsonAllowGet(da.DTO.Model.Details));
        }
Exemplo n.º 3
0
        public ActionResult GetOldPwd(string OLD_PWD, string USER_ID)
        {
            var da = new SECS02P002DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SECS02P002ExecuteType.GetOldPwd;
            da.DTO.Model.USER_PWD      = OLD_PWD;
            da.DTO.Model.USER_ID       = USER_ID;

            da.SelectNoEF(da.DTO);

            return(JsonAllowGet(da.DTO.Model));
        }
Exemplo n.º 4
0
        private SECS02P002Model GET_VSMS_USER(string USER_ID, string USER_PWD)
        {
            var da = new SECS02P002DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SECS02P002ExecuteType.GetByID;
            da.DTO.Model.USER_ID       = USER_ID;
            da.DTO.Model.USER_PWD      = USER_PWD;

            da.SelectNoEF(da.DTO);

            return(da.DTO.Model);
        }
Exemplo n.º 5
0
        public ActionResult CheckAdmin(SECS02P002Model model)
        {
            var jsonResult = new JsonResult();

            var da = new SECS02P002DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SECS02P002ExecuteType.CheckAdmin;
            da.DTO.Model.USG_ID        = model.USG_ID;
            da.SelectNoEF(da.DTO);

            jsonResult = Success(da.DTO.Result, StandardActionName.Add);

            return(JsonAllowGet(da.DTO.Model));
            //return jsonResult;
        }