Ejemplo n.º 1
0
        protected void setDueBooks()
        {
            dsDueBooks dsReport = new dsDueBooks();

            DataSet     ds        = execRpt.GetReport(dsReport, sSQL, sTable);
            rptDueBooks rptViewer = new rptDueBooks();

            pdvInstName.Value = clsVariables.sINSTITUTION;
            pvCollection.Add(pdvInstName);
            rptViewer.DataDefinition.ParameterFields["InsitutionName"].ApplyCurrentValues(pvCollection);
            pvCollection.Clear();

            pdvInstAddress.Value = clsVariables.sADDRESSS;
            pvCollection.Add(pdvInstAddress);
            rptViewer.DataDefinition.ParameterFields["InstitutionAddress"].ApplyCurrentValues(pvCollection);
            pvCollection.Clear();

            pdvInstContacts.Value = "Phone Number: " + clsVariables.sPHONENUMBER + "  and  " + "Fax Number: " + clsVariables.sFAXNUMBER;
            pvCollection.Add(pdvInstContacts);
            rptViewer.DataDefinition.ParameterFields["ContactNumber"].ApplyCurrentValues(pvCollection);
            pvCollection.Clear();

            pdvSchoolYear.Value = "School Year: " + sSchoolYear;
            pvCollection.Add(pdvSchoolYear);
            rptViewer.DataDefinition.ParameterFields["SchoolYear"].ApplyCurrentValues(pvCollection);
            pvCollection.Clear();

            pdvPrepared.Value = clsVariables.sLibrarianName;
            pvCollection.Add(pdvPrepared);
            rptViewer.DataDefinition.ParameterFields["Prepared"].ApplyCurrentValues(pvCollection);
            pvCollection.Clear();

            rptViewer.SetDataSource(ds);
            crviewer.ReportSource = rptViewer;
        }
Ejemplo n.º 2
0
        public override DataSet Clone()
        {
            dsDueBooks cln = ((dsDueBooks)(base.Clone()));

            cln.InitVars();
            return(cln);
        }