public void jtGetPlansDocs(List<object> planIds) { Session["PlanHandling"] = "dokument"; Documents planDocs = new Documents(planIds); JTPlanDocuments planDocuments = new JTPlanDocuments(planDocs.SearchedPlansDocuments); planDocuments.Result = "OK"; JavaScriptSerializer jsonSerializer = new JavaScriptSerializer(); HttpContext.Current.Response.Clear(); HttpContext.Current.Response.ContentType = "application/json; charset=utf-8"; HttpContext.Current.Response.StatusCode = 200; HttpContext.Current.Response.Write(jsonSerializer.Serialize(planDocuments)); HttpContext.Current.Response.Flush(); HttpContext.Current.Response.End(); }
public string getPlansDocs(List<object> planIds) { Documents planDocs = new Documents(planIds); return getDatatableAsJson(getTableSorted(planDocs.SearchedPlansDocuments, "EXTENTION", "ASC", "DOCUMENTTYPE", "ASC")); }