public virtual ActionResult Search(SearchFilterViewModel filter) { var responseMVC = new ReloadHtmlContentResponse(); var model = new StatusSearchViewModel(); model.Filter = filter; model = GetStatusSearch(model); var html = this.RenderRazorViewToString("ReadPartial/NonPagedTables", model.Tables); responseMVC.ContentToReplace.Add("[data-section=\"NonPagedTables\"]", html); return(Json(responseMVC)); }
public virtual ActionResult GetProcurementsInformation(int outputId) { var contentResponse = new ReloadHtmlContentResponse(); var response = _firmProcurementService.GetProcurementsByOutput(outputId); contentResponse.IsValid = response.IsValid; contentResponse.Message = response.ErrorMessage; SetViewBagProcurementInformation(); var html = this.RenderRazorViewToString("BasicProcurementList", response.ProcurementsByOutput); contentResponse.ContentToReplace.Add("[data-name=\"prucurements-info-modal\"]", html); return(Json(contentResponse)); }
protected ReloadHtmlContentResponse GetTechnicalFieldPartial(ICommonIndicatorService service, int templateId, string targetSelector) { var result = new ReloadHtmlContentResponse() { IsValid = true }; var response = service.GetTechnicalFieldForTemplate(templateId); result.IsValid = response.IsValid; result.Message = response.ErrorMessage; var html = this.RenderRazorViewToString("EditIndicators/EditIndTechnicalFields", response.TechnicalFields); result.ContentToReplace.Add(targetSelector, html); return(result); }
public virtual JsonResult GetDetailIndicator(int indicatorId) { var result = new ReloadHtmlContentResponse(); var response = _linkPredefinedIndicatorService.GetIndicatorDetail(indicatorId); result.IsValid = response.IsValid; result.Message = response.ErrorMessage; if (response.IsValid) { var html = this.RenderRazorViewToString("DetailIndicatorPartial", response.Indicator); result.ContentToReplace.Add("[data-name=\"detail-indicator-section\"]", html); } if (!result.ContentToReplace.Any()) { result.ContentToReplace.Add("[data-name=\"detail-indicator-section\"]", string.Empty); } return(Json(result)); }