Esempio n. 1
0
        public override DataSet Clone()
        {
            dsAdjustment cln = ((dsAdjustment)(base.Clone()));

            cln.InitVars();
            return(cln);
        }
Esempio n. 2
0
        protected void setAdjustments()
        {
            dsAdjustment dsReport = new dsAdjustment();

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

            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();

            pdvBookNumber.Value = "Book Number: " + sBookNO;
            pvCollection.Add(pdvBookNumber);
            rptViewer.DataDefinition.ParameterFields["BookNO"].ApplyCurrentValues(pvCollection);
            pvCollection.Clear();

            pdvBookTitle.Value = "Book Title: " + sBookTitle;
            pvCollection.Add(pdvBookTitle);
            rptViewer.DataDefinition.ParameterFields["BookTitle"].ApplyCurrentValues(pvCollection);
            pvCollection.Clear();

            pdvISBN.Value = "ISBN: " + sISBN;
            pvCollection.Add(pdvISBN);
            rptViewer.DataDefinition.ParameterFields["ISBN"].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;
        }