private SEC007P001Model GET_VSMS_USRGROUP(string COM_CODE, decimal?USG_ID) { var da = new SEC007P001DA(); SetStandardErrorLog(da.DTO); da.DTO.Execute.ExecuteType = SEC007P001ExecuteType.GetByID; da.DTO.Model.COM_CODE = COM_CODE; da.DTO.Model.USG_ID = USG_ID; da.Select(da.DTO); return(da.DTO.Model); }
public ActionResult Search(SEC007P001Model model) { var da = new SEC007P001DA(); SetStandardErrorLog(da.DTO); da.DTO.Execute.ExecuteType = SEC007P001ExecuteType.GetAll; if (Request.GetRequest("page").IsNullOrEmpty()) { model.IsDefaultSearch = true; TempSearch = model; } da.DTO.Model = TempSearch; da.Select(da.DTO); return JsonAllowGet(da.DTO.Models); }
public ActionResult ConfPrg(string COM_CODE, decimal? USG_ID) { SetDefaulButton(StandardButtonMode.Other); AddStandardButton(StandardButtonName.SaveModify, url: Url.Action("SaveConfPrg")); var da = new SEC007P001DA(); SetStandardErrorLog(da.DTO); da.DTO.Execute.ExecuteType = SEC007P001ExecuteType.GetByID; TempModel = null; TempModel.COM_CODE = da.DTO.Model.COM_CODE = COM_CODE; TempModel.USG_ID = da.DTO.Model.USG_ID = USG_ID; da.Select(da.DTO); if (da.DTO.Model != null) { localModel = da.DTO.Model; } COM_CODE = COM_CODE.Trim(); localModel.SYS_CODE_MODEL = GetDDLCenter(DDLCenterKey.DD_VSMS_SYSTEM_001, new VSMParameter(COM_CODE)); return View("ConfPrg", localModel); }
public ActionResult Edit(string COM_CODE, decimal? USG_ID) { SetDefaulButton(StandardButtonMode.Modify); var da = new SEC007P001DA(); SetStandardErrorLog(da.DTO); da.DTO.Execute.ExecuteType = SEC007P001ExecuteType.GetByID; TempModel = null; TempModel.COM_CODE = da.DTO.Model.COM_CODE = COM_CODE; TempModel.USG_ID = da.DTO.Model.USG_ID = USG_ID; da.Select(da.DTO); if (da.DTO.Model != null) { localModel = da.DTO.Model; } localModel.USG_STATUS_MODEL = GetUsgStatus(); localModel.USG_LEVEL_MODEL = GetUsgLevel(); return View(StandardActionName.Edit, localModel); }