public void ReportViewer() { try { if (Session["UiVistaUsuario"] == null) { return; } var reporte = new Report.ReportSupervisor() { DataSource = ListToDataTableClass.ListToDataTable(((IList <Usuario>)UiVistaUsuario.DataSource).ToList()) , DataMember = "Usuarios" }; UiVisualizarReporte.Report = reporte; UiVisualizarReporte.DataBind(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
protected void Page_Load(object sender, EventArgs e) { if (!ValidarConexionYUsuarioLogueado(sender)) { return; } VistaTerminoDeCargar?.Invoke(this, null); //ReportViewer(); var reporte = new Report.ReportSecurity { DataSource = Session["DSDISEÑO"] }; UiVisualizarReporte.Report = reporte; UiVisualizarReporte.DataBind(); }
public void ReportViewer() { try { if (Session["GridPicking"] != null) { var reporte = new Report.ReportManifiestPanel(); reporte.DataSource = (ASPxGridView1.DataSource); reporte.DataMember = ((DataSet)ASPxGridView1.DataSource).Tables[0].TableName; UiVisualizarReporte.Report = reporte; UiVisualizarReporte.DataBind(); } } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
public void ReportViewer() { try { if (Session["DtPriceList"] != null) { var reporte = new Report.ReportPriceLIst(); reporte.DataSource = ((DataTable)gridPriceList.DataSource); reporte.DataMember = ((DataTable)gridPriceList.DataSource).TableName; UiVisualizarReporte.Report = reporte; UiVisualizarReporte.DataBind(); } } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
public void ReportViewer() { var session = Session["DSsecurity"]; try { if (Session["DSsecurity"] == null) { var pResult = string.Empty; var dsDiseño = new dsSecurity(); var dsEjecucion = _privilegioServicio.ObtenerPrivilegiosPorRol(HttpContext.Current.Session["connectionString"].ToString(), ref pResult); for (int i = 0; i < dsEjecucion.Tables[0].Rows.Count; i++) { var row = dsDiseño.SWIFT_SECURITY.NewRow(); row[0] = dsEjecucion.Tables[0].Rows[i]["NAME"]; row[1] = dsEjecucion.Tables[0].Rows[i]["PARENT_ID"]; row[2] = dsEjecucion.Tables[0].Rows[i]["DISPLAY_NAME"]; /* row[3] = dsEjecucion.Tables[0].Rows[i]["NAME"]; * row[4] = dsEjecucion.Tables[0].Rows[i]["PRIVILEGE_TYPE"]; * row[5] = dsEjecucion.Tables[0].Rows[i]["DISPLAY_NAME"]; * row[6] = dsEjecucion.Tables[0].Rows[i]["IMAGE_URL"]; * row[7] = dsEjecucion.Tables[0].Rows[i]["DESCRIPTION"]; */ dsDiseño.SWIFT_SECURITY.Rows.Add(row); } var reporte = new Report.ReportSecurity { DataSource = dsDiseño }; Session["DSDISEÑO"] = dsDiseño; UiVisualizarReporte.Report = reporte; UiVisualizarReporte.DataBind(); } } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
public void ReportViewer() { try { if (Session["UiVistaCombos"] != null) { var reporte = new ReportCombo { DataSource = ListToDataTableClass.ListToDataTable(((IList <Combo>)UiVistaCombos.DataSource).ToList()), DataMember = "Combo" }; UiVisualizarReporte.Report = reporte; UiVisualizarReporte.DataBind(); } } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
public void ReportViewer() { try // FALTA HACER EL REPORTE...................................... { if (Session["UiViewTransferenciaEncabezado"] != null) { var reporte = new ReportTransfer { DataSource = ListToDataTableClass.ListToDataTable(((IList <TransferenciaEncabezado>)UiViewTransferenciaEncabezado.DataSource).ToList()), DataMember = "TransferenciaEncabezado" }; UiVisualizarReporte.Report = reporte; UiVisualizarReporte.DataBind(); } } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
public void ReportView() { try { if (Session["DsErpSendStatus"] == null) { return; } var reporte = new Report.ReportErpSendStatus() { DataSource = Session["DsErpSendStatus"], DataMember = "SWIFT_ERP_SEND_STATUS" }; UiVisualizarReporte.Report = reporte; UiVisualizarReporte.DataBind(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
public void ReportViewer() { try { if (Session["UiVistaOrganizacionDeVentas"] != null) { var reporte = new ReportSalesOrganization { DataSource = ListToDataTableClass.ListToDataTable(((IList <OrganizacionDeVentas>)UiVistaOrganizacionDeVentas.DataSource).ToList()), DataMember = "OrganizacionDeVentas" }; UiVisualizarReporte.Report = reporte; UiVisualizarReporte.DataBind(); //UiVistaOrganizacionDeVentas.JSProperties.Add("cpLimpiarControles", "Enabled"); ScriptManager.RegisterStartupScript(this, GetType(), "LimpiarControles", "LimpiarControles();", true); } } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }