public ActionResult Info(decimal ID) { SetDefaulButton(StandardButtonMode.View); var da = new SECS01P002DA(); SetStandardErrorLog(da.DTO); da.DTO.Execute.ExecuteType = DTOExecuteType.GetByID; TempModel.ID = da.DTO.Model.ID = ID; da.Select(da.DTO); if (da.DTO.Model != null) { localModel = da.DTO.Model; } return(View(StandardActionName.Info, localModel)); }
public ActionResult Search(SECS01P002Model model) { var da = new SECS01P002DA(); SetStandardErrorLog(da.DTO); da.DTO.Execute.ExecuteType = SECS01P002ExecuteType.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 Edit(string NAME) { SetDefaulButton(StandardButtonMode.Modify); var da = new SECS01P002DA(); SetStandardErrorLog(da.DTO); da.DTO.Execute.ExecuteType = SECS01P002ExecuteType.GetByID; TempModel.NAME = da.DTO.Model.NAME = NAME; da.Select(da.DTO); if (da.DTO.Model != null) { localModel = da.DTO.Model; } return(View(StandardActionName.Edit, localModel)); }