Exemplo n.º 1
0
        private void Form3_Load(object sender, EventArgs e)
        {
            EntityReport report = new EntityReport();

            xr = new xRptTeam(report);
            xr.CreateDocument();//创建报表
            this.documentViewer1.PrintingSystem = xr.PrintingSystem;
        }
Exemplo n.º 2
0
 private void SetDataBind(EntityReport report)//绑定数据源
 {
     try
     {
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Exemplo n.º 3
0
        private void Form2_Load(object sender, EventArgs e)
        {
            EntityReport report = new EntityReport();

            report.image01  = ReadImageFile("pic01.png");
            report.image02  = ReadImageFile("pic02.jpg");
            report.image03  = ReadImageFile("pic03.png");
            report.image04  = ReadImageFile("pic04.png");
            report.image05  = ReadImageFile("pic05.png");
            report.imageFx  = ReadImageFile("picFx.png");
            report.imageTip = ReadImageFile("picTip.png");
            report.image07  = ReadImageFile("pic07.png");

            #region 重要指标
            report.lstMainIndicate = GetMainIndicate();
            #endregion

            #region 高血压
            report.lstGxy = GetGxy();
            #endregion

            #region 评估结果
            report.lstEvaluationResult = new List <EntityEvaluationResult>();
            EntityEvaluationResult eVo1 = new EntityEvaluationResult();
            eVo1.evaluationName = "最佳状态";
            eVo1.result         = 2.00;
            report.lstEvaluationResult.Add(eVo1);

            EntityEvaluationResult eVo2 = new EntityEvaluationResult();
            eVo2.evaluationName = "本次风险";
            eVo2.result         = 8.65;
            report.lstEvaluationResult.Add(eVo2);

            EntityEvaluationResult eVo3 = new EntityEvaluationResult();
            eVo3.evaluationName = "平均风险";
            eVo3.result         = 18.00;
            report.lstEvaluationResult.Add(eVo3);

            #endregion


            #region 评估结果
            report.lstResultTest = new List <EntityEvaluateTest>();
            EntityEvaluateTest eTVo1 = new EntityEvaluateTest();
            eTVo1.evaluateName = "最佳状态";
            eTVo1.result1      = 0.111;
            eTVo1.result2      = 0.2;
            eTVo1.result3      = 0.3;
            report.lstResultTest.Add(eTVo1);

            EntityEvaluateTest eTVo2 = new EntityEvaluateTest();
            eTVo2.evaluateName = "本次风险";
            eTVo2.result1      = 0.4;
            eTVo2.result2      = 0.5;
            eTVo2.result3      = 0.6;
            report.lstResultTest.Add(eTVo2);

            EntityEvaluateTest eTVo3 = new EntityEvaluateTest();
            eTVo3.evaluateName = "平均风险";
            eTVo3.result1      = 0.7;
            eTVo3.result2      = 0.8;
            report.lstResultTest.Add(eTVo3);

            #endregion

            xr = new XtraReport(report);
            xr.CreateDocument();//创建报表
            this.documentViewer1.PrintingSystem = xr.PrintingSystem;
        }
Exemplo n.º 4
0
 public xRptTeam(EntityReport reprot)//构造函数重载
 {
     InitializeComponent();
     SetDataBind(reprot);
 }