예제 #1
0
        //get ค่าจาก VSMS_USER
        private SEC006P001Model GET_VSMS_USER(string USER_ID)
        {
            var da = new SEC006P001DA();

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

            da.Select(da.DTO);

            return(da.DTO.Model);
        }
예제 #2
0
        public ActionResult Info(string USER_ID)
        {
            SetDefaulButton(StandardButtonMode.View);
            var da = new SEC006P001DA();

            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));
        }
예제 #3
0
        public ActionResult CustomsExport(SEC006P001Model model)
        {
            var da = new SEC006P001DA();

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

            da.Select(da.DTO);

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

            return(Content("ExportExcel clicked"));
        }
예제 #4
0
        public ActionResult Search(SEC006P001Model model)
        {
            var da = new SEC006P001DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SEC006P001ExecuteType.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));
        }
예제 #5
0
        public ActionResult Edit(string USER_ID)
        {
            SetDefaulButton(StandardButtonMode.Modify);

            var da = new SEC006P001DA();

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

            SetDefaultData(StandardActionName.Edit);

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