public ActionResult Edit(string COM_CODE, string SYS_CODE) { SetDefaulButton(StandardButtonMode.Modify); localModel = new SEC008P001Model(); 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(SEC008P001Model model) { var da = new SEC008P001DA(); SetStandardErrorLog(da.DTO); da.DTO.Execute.ExecuteType = SEC008P001ExecuteType.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)); }