public ActionResult EditMySelf(string USER_ID)
        {
            SetDefaulButton(StandardButtonMode.Modify);

            var da = new SECS02P002DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SECS02P002ExecuteType.GetUser;
            TempModel.USER_ID          = da.DTO.Model.USER_ID = USER_ID;
            da.Select(da.DTO);
            if (da.DTO.Model != null)
            {
                localModel            = da.DTO.Model;
                localModel.APP_CODE   = da.DTO.Model.COM_CODE;
                TempModel.COM_CODE    = da.DTO.Model.COM_CODE;
                TempModel.IS_DISABLED = "N";
            }

            SetDefaultData(StandardActionName.Edit);
            string view = "EditMySelf";

            AddButton(StandButtonType.ButtonAjax, "RePassword", "RePassword", iconCssClass: FaIcons.FaRefresh);

            return(View(view, localModel));
        }
Example #2
0
        private SECS02P002Model GET_VSMS_USER(string USER_ID)
        {
            var da = new SECS02P002DA();

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

            da.Select(da.DTO);

            return(da.DTO.Model);
        }
        public ActionResult Info(string USER_ID)
        {
            SetDefaulButton(StandardButtonMode.View);
            var da = new SECS02P002DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = DTOExecuteType.GetByID;
            TempModel.USER_ID          = da.DTO.Model.USER_ID = USER_ID;
            da.Select(da.DTO);
            if (da.DTO.Model != null)
            {
                localModel = da.DTO.Model;
            }
            return(View(StandardActionName.Info, localModel));
        }
        public ActionResult CustomsExport(SECS02P002Model model)
        {
            var da = new SECS02P002DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SECS02P002ExecuteType.GetQuerySearchAll;

            da.Select(da.DTO);

            if (da.DTO.Models != null)
            {
                ExportHelper.ExportExcel(Response, da.DTO.Models);
            }

            return(Content("ExportExcel clicked"));
        }
        public ActionResult Search(SECS02P002Model model)
        {
            var da = new SECS02P002DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SECS02P002ExecuteType.GetQuerySearchAll;
            if (Request.GetRequest("page").IsNullOrEmpty())
            {
                model.IsDefaultSearch = true;
                TempSearch            = model;
            }
            da.DTO.Model = TempSearch;

            da.DTO.Model.COM_CODE = SessionHelper.SYS_COM_CODE;

            da.Select(da.DTO);
            return(JsonAllowGet(da.DTO.Models, da.DTO.Result));
        }
Example #6
0
        public ActionResult Edit(string USER_ID)
        {
            SetDefaulButton(StandardButtonMode.Modify);

            var da = new SECS02P002DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SECS02P002ExecuteType.GetByID;
            TempModel.USER_ID          = da.DTO.Model.USER_ID = USER_ID;
            da.Select(da.DTO);
            if (da.DTO.Model != null)
            {
                localModel          = da.DTO.Model;
                localModel.APP_CODE = da.DTO.Model.COM_CODE;
                TempModel.COM_CODE  = da.DTO.Model.COM_CODE;
            }

            SetDefaultData(StandardActionName.Edit);

            return(View(StandardActionName.Edit, localModel));
        }