Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            SpPipeMaterial rpt = new SpPipeMaterial();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        private void SpPipeMaterialForm_Load(object sender, EventArgs e)
        {
            BCPR = new SpPipeMaterial();
            DataSet ds = GetDs();

            if (ds.Tables[0].Rows.Count != 0)
            {
                BCPR.SetDataSource(ds);
                crystalReportViewer1.ReportSource = BCPR;
            }
            //crystalReportViewer1.DisplayGroupTree = false;
        }
Пример #3
0
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            BCPR = new SpPipeMaterial();
            DataSet ds = GetDs();
            if (ds.Tables[0].Rows.Count != 0)
            {
                BCPR.SetDataSource(ds);
                crystalReportViewer1.ReportSource = BCPR;
            }

            //传递参数
            ParameterFields paramFields = crystalReportViewer1.ParameterFieldInfo;
            ParameterField paramFrame = paramFields["drawingno"];
            ParameterValues FcurValues = paramFrame.CurrentValues;
            ParameterDiscreteValue discreteValueF = new ParameterDiscreteValue();
            discreteValueF.Value = drawing;
            FcurValues.Add(discreteValueF);

            crystalReportViewer1.ParameterFieldInfo = paramFields;
            crystalReportViewer1.Refresh();
        }
Пример #4
0
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            BCPR = new SpPipeMaterial();
            DataSet ds = GetDs();

            if (ds.Tables[0].Rows.Count != 0)
            {
                BCPR.SetDataSource(ds);
                crystalReportViewer1.ReportSource = BCPR;
            }

            //传递参数
            ParameterFields        paramFields    = crystalReportViewer1.ParameterFieldInfo;
            ParameterField         paramFrame     = paramFields["drawingno"];
            ParameterValues        FcurValues     = paramFrame.CurrentValues;
            ParameterDiscreteValue discreteValueF = new ParameterDiscreteValue();

            discreteValueF.Value = drawing;
            FcurValues.Add(discreteValueF);


            crystalReportViewer1.ParameterFieldInfo = paramFields;
            crystalReportViewer1.Refresh();
        }
Пример #5
0
 private void SpPipeMaterialForm_Load(object sender, EventArgs e)
 {
     BCPR = new SpPipeMaterial();
     DataSet ds = GetDs();
     if (ds.Tables[0].Rows.Count != 0)
     {
         BCPR.SetDataSource(ds);
         crystalReportViewer1.ReportSource = BCPR;
     }
     //crystalReportViewer1.DisplayGroupTree = false;
 }
Пример #6
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     SpPipeMaterial rpt = new SpPipeMaterial();
     rpt.Site = this.Site;
     return rpt;
 }