コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Cobros    cob      = new Cobros();
                DataTable dt       = cob.ReporteListado();
                string    idCobros = dt.Columns["IdCobros"].ToString();

                CobroDetalle cobDet = new CobroDetalle();


                ReportDataSource r = new ReportDataSource("dtVsCobrosDetalle", dt);
                ReportViewer1.LocalReport.DataSources.Add(r);
                ReportDataSource rdet = new ReportDataSource("dtCobrosDetalles", cobDet.ReporteListado("IdCobros = " + idCobros));
                ReportViewer1.LocalReport.DataSources.Add(rdet);
                ReportViewer1.LocalReport.Refresh();
            }
        }
コード例 #2
0
ファイル: rCobroCxC.aspx.cs プロジェクト: joaf/FinanzasJoaf
 public void Buscar(int ID)
 {
     VistaGridView.DataSource = CobroDetalle.Lista("*", "CobroDetalle where IdCobro =" + ID);
     VistaGridView.DataBind();
 }