Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!ValidarConexionYUsuarioLogueado(sender))
     {
         return;
     }
     if (Session["DSDISEÑO_TAG"] != null)
     {
         var reporte = new Report.ReportTag
         {
             DataSource = Session["DATA_TAG"],
             DataMember = "SWIFT_TAGS"
         };
         ASPxDocumentViewer1.Report = reporte;
         ASPxDocumentViewer1.DataBind();
     }
     if (Session["DATA_TAG"] != null)
     {
         ASPxGridView1.DataSource = Session["DATA_TAG"];
         ASPxGridView1.DataBind();
     }
     else
     {
         GetTags();
     }
 }
Beispiel #2
0
 public void ReportView()
 {
     try
     {
         if (Session["DATA_TAG"] != null)
         {
             var reporte = new Report.ReportTag
             {
                 DataSource = Session["DATA_TAG"],
                 DataMember = "SWIFT_TAGS"
             };
             Session["DSDISEÑO_TAG"]    = "true";
             ASPxDocumentViewer1.Report = reporte;
             ASPxDocumentViewer1.DataBind();
         }
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
     }
 }