Ejemplo n.º 1
0
        void ROImpactCheck_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            //this.DataSource = manager.PFCSelect(PCFirstOnlineCheckDetailId);   //一般对应一张冲击测试单据

            Model.PCImpactCheck _pcic = manager.PFCGetFirst(PCFirstOnlineCheckDetailId);
            if (_pcic != null)
            {
                _pcic           = manager.GetDetail(_pcic.PCImpactCheckId);
                this.DataSource = _pcic.Details.OrderBy(d => d.attrDate).ToList();
            }
            else
            {
                _pcic           = new Book.Model.PCImpactCheck();
                this.DataSource = new List <Model.PCImpactCheckDetail>();
            }
        }
Ejemplo n.º 2
0
        void ROImpactCheck_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            //this.DataSource = manager.PFCSelect(PCFirstOnlineCheckDetailId);   //一般对应一张冲击测试单据

            //ROImpactCheckSub sub = this.ImpackCheckBub.ReportSource as ROImpactCheckSub;
            //sub.PCFirstOnlineCheckDetailId = PCFirstOnlineCheckDetailId;

            //Model.PCImpactCheck _pcic = manager.PFCGetFirst(PCFirstOnlineCheckDetailId);
            if (PCImpactCheck != null)
            {
                PCImpactCheck   = manager.GetDetail(PCImpactCheck.PCImpactCheckId);
                this.DataSource = PCImpactCheck.Details.OrderBy(d => d.attrDate).ToList();
            }
            else
            {
                PCImpactCheck   = new Book.Model.PCImpactCheck();
                this.DataSource = this.DataSource = new List <Model.PCImpactCheckDetail>();
            }
        }