示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ApprovedPO rpt = new ApprovedPO();

            rpt.Site = this.Site;
            return(rpt);
        }
        public void GetPOID(string parameter1)
        {
            txtPOID.Text = parameter1;
            SqlConnection  con = new SqlConnection(conStr);
            SqlDataAdapter sda = new SqlDataAdapter("Report_ApprovedPO  " + txtPOID.Text.ToString(), con);
            DataSet        ds  = new DataSet();

            sda.Fill(ds);
            ds.Tables[0].TableName = "Supplier";
            ds.Tables[1].TableName = "PoDetails";
            ApprovedPO bill = new ApprovedPO();

            bill.SetDataSource(ds);
            bill.VerifyDatabase();
            crystalReportViewer1.ReportSource = bill;
            crystalReportViewer1.RefreshReport();
        }