protected void Page_Load(object sender, EventArgs e) { if (!ValidarConexionYUsuarioLogueado(sender)) { return; } if (!Page.IsPostBack) { try { ASPxDateEdit1.Date = DateTime.Now; ASPxDateEdit2.Date = DateTime.Now; GetDelivery(ASPxDateEdit2.Date, ASPxDateEdit1.Date); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } } try { if (Session["DSDISEÑO_DELIVERY"] != null) { var reporte = new Report.ReportDeliveryCompliance { DataSource = Session["DATA_DELIVERY"], DataMember = "SWIFT_DELIVERY_COMPLIANCE" }; ASPxDocumentViewer1.Report = reporte; ASPxDocumentViewer1.DataBind(); } if (Session["DATA_DELIVERY"] != null) { GetDelivery(ASPxDateEdit2.Date, ASPxDateEdit1.Date); } } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
public void ReportView() { try { if (Session["DATA_DELIVERY"] != null) { var reporte = new Report.ReportDeliveryCompliance { DataSource = Session["DATA_DELIVERY"], DataMember = "SWIFT_DELIVERY_COMPLIANCE" }; Session["DSDISEÑO_DELIVERY"] = "true"; ASPxDocumentViewer1.Report = reporte; ASPxDocumentViewer1.DataBind(); } } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }