示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!ValidarConexionYUsuarioLogueado(sender))
     {
         return;
     }
     if (!Page.IsPostBack)
     {
         try
         {
             ASPxDateEdit1.Date = DateTime.Now;
             ASPxDateEdit2.Date = DateTime.Now;
             GetCount(ASPxDateEdit1.Date, ASPxDateEdit2.Date);
             GetGraph(ASPxComboBox1.Value.ToString(), 1024, 780);
         }
         catch (Exception ex)
         {
             ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
         }
     }
     try
     {
         if (Session["DSDISEÑOCOUNT"] != null)
         {
             var reporte = new Report.ReportCountPanel
             {
                 DataSource = Session["DATA_COUNT"],
                 DataMember = "SWIFT_CYCLE_COUNT_HEADER"
             };
             ASPxDocumentViewer1.Report = reporte;
             ASPxDocumentViewer1.DataBind();
             //Session["DSDISEÑOCOUNT"] = null;
         }
         if (Session["DATA_COUNT"] != null)
         {
             ASPxGridView1.DataSource = Session["DATA_COUNT"];
             ASPxGridView1.DataBind();
         }
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
     }
 }
示例#2
0
 public void ReportView()
 {
     try
     {
         if (Session["DATA_COUNT"] != null)
         {
             var reporte = new Report.ReportCountPanel
             {
                 DataSource = Session["DATA_COUNT"],
                 DataMember = "SWIFT_CYCLE_COUNT_HEADER"
             };
             Session["DSDISEÑOCOUNT"]   = "true";
             ASPxDocumentViewer1.Report = reporte;
             ASPxDocumentViewer1.DataBind();
         }
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
     }
 }