public ActionResult Search(SECS01P004Model model) { var da = new SECS01P004DA(); SetStandardErrorLog(da.DTO); da.DTO.Execute.ExecuteType = SECS01P004ExecuteType.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 Add() { SetDefaulButton(StandardButtonMode.Create); var da = new SECS01P004DA(); SetStandardErrorLog(da.DTO); da.DTO.Execute.ExecuteType = SECS01P004ExecuteType.GetSeqMax; da.DTO.Model.COM_CODE = SessionHelper.SYS_COM_CODE; da.Select(da.DTO); if (da.DTO.Model != null) { localModel = da.DTO.Model; } SetDefaultData(); return(View(StandardActionName.Add, localModel)); }
public ActionResult Edit(string SYS_CODE) { SetDefaulButton(StandardButtonMode.Modify); var da = new SECS01P004DA(); SetStandardErrorLog(da.DTO); da.DTO.Execute.ExecuteType = SECS01P004ExecuteType.GetByID; TempModel.SYS_CODE = da.DTO.Model.SYS_CODE = SYS_CODE; da.DTO.Model.COM_CODE = SessionHelper.SYS_COM_CODE; da.Select(da.DTO); if (da.DTO.Model != null) { localModel = da.DTO.Model; } SetDefaultData(); return(View(StandardActionName.Edit, localModel)); }