public ActionResult Edit(string COM_CODE, string SYS_CODE) { SetDefaulButton(StandardButtonMode.Modify); localModel = new SECS01P005Model(); TempModel.COM_CODE = localModel.COM_CODE = COM_CODE; TempModel.SYS_CODE = localModel.SYS_CODE = SYS_CODE; localModel.COM_CODE_MODEL = GetDDLCenter(DDLCenterKey.DD_VSMS_COMPANY_001); localModel.SYS_CODE_MODEL = GetDDLCenter(DDLCenterKey.DD_VSMS_SYSTEM_001, new VSMParameter(COM_CODE)); return(View(StandardActionName.Edit, localModel)); }
public ActionResult Search(SECS01P005Model model) { var da = new SECS01P005DA(); SetStandardErrorLog(da.DTO); da.DTO.Execute.ExecuteType = SECS01P005ExecuteType.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 Index() { SetDefaulButton(StandardButtonMode.Index); RemoveStandardButton(StandardButtonName.Add); RemoveStandardButton(StandardButtonName.DeleteSearch); if (TempSearch.IsDefaultSearch && !Request.GetRequest("page").IsNullOrEmpty()) { localModel = TempSearch; } localModel.COM_CODE_MODEL = GetDDLCenter(DDLCenterKey.DD_VSMS_COMPANY_001); localModel.SYS_CODE_MODEL = GetDDLCenter(DDLCenterKey.DD_VSMS_SYSTEM_001); return(View(StandardActionName.Index, localModel)); }