public ActionResult Search(SEC003P001Model model)
        {
            var da = new SEC003P001DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SEC003P001ExecuteType.GetAll;
            if (Request.GetRequest("page").IsNullOrEmpty())
            {
                model.IsDefaultSearch = true;
                TempSearch            = model;
            }
            da.DTO.Model = TempSearch;
            da.Select(da.DTO);
            return(JsonAllowGet(da.DTO.Models, da.DTO.Result));
        }
        public ActionResult Info(decimal?DEPT_ID)
        {
            SetDefaulButton(StandardButtonMode.View);
            var da = new SEC003P001DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = DTOExecuteType.GetByID;
            TempModel.DEPT_ID          = da.DTO.Model.DEPT_ID = DEPT_ID;
            da.Select(da.DTO);
            if (da.DTO.Model != null)
            {
                localModel = da.DTO.Model;
            }
            return(View(StandardActionName.Info, localModel));
        }
        public ActionResult SaveCreate(SEC003P001Model model)
        {
            var jsonResult = new JsonResult();

            if (ModelState.IsValid)
            {
                var result = SaveData(StandardActionName.SaveCreate, model);
                jsonResult = Success(result, StandardActionName.SaveCreate, Url.Action(StandardActionName.Index, new { page = 1 }));
            }
            else
            {
                jsonResult = ValidateError(ModelState, StandardActionName.SaveCreate);
            }
            return(jsonResult);
        }
        public ActionResult Index()
        {
            SetDefaulButton(StandardButtonMode.Index);
            if (TempSearch.IsDefaultSearch && !Request.GetRequest("page").IsNullOrEmpty())
            {
                localModel = TempSearch.CloneObject();
            }
            var ddl = new DataAccess.DDLCenterDA();

            ddl.DTO.Execute.ExecuteType = "GetAll";
            ddl.Select(ddl.DTO);
            //SessionHelper.FileModel = new FileModel
            //{
            //    Name = "FileAttached",
            //};

            //GetDDLCenter(DDLCenterKey.COMPANY);
            //GetDDLFixoption(DDLCenterKey.DD_VSMS_FIX_OPTIONDETAIL_001, FIXOptionID.FixOpt_10001));

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