首页 新闻 会员 周边 捐助

DevExpress.XtraReports数据绑定只有一个值(List有多个值)

0
悬赏园豆:100 [已关闭问题]

 XtraRptInit rptInit = new XtraRptInit();
            XRLabel xrLblConHk = rptInit.FindControl("xrLblConHk", true) as XRLabel;
            XRLabel xrLblCargoHK = rptInit.FindControl("xrLblCargoHK", true) as XRLabel;
            XRLabel xrLblCargoTs = rptInit.FindControl("xrLblCargoTs", true) as XRLabel;
            XRLabel xrLblPkgHk = rptInit.FindControl("xrLblPkgHk", true) as XRLabel;
            XRLabel xrLblConTS = rptInit.FindControl("xrLblConTS", true) as XRLabel;
            XRLabel xrLblPkgTs = rptInit.FindControl("xrLblPkgTs", true) as XRLabel;

            barCd.Text = hashTtl.Substring(0, 16);
            xrBarCode1.Text = hashTtl.Substring(16);

            lblFlight.Text = flightNo;
            InitDAO dao = new InitDAO();
            IList<InitDetailVO> tsLst = dao.GetRptTs(airline, flightNo, arrivalDate);
            IList<InitDetailVO> hkLst = dao.GetRptHk(airline, flightNo, arrivalDate);

            this.viewer.Report = rptInit;

            lblHash.Text = hashTtl;

            xrLblCargoHK.DataBindings.Add("Text", hkLst, "AwbNo");
            xrLblCargoTs.DataBindings.Add("Text", tsLst, "AwbNo");
            xrLblPkgHk.DataBindings.Add("Text", hkLst, "ManPiece");
            xrLblPkgTs.DataBindings.Add("Text", tsLst, "ManPiece");
            xrLblConHk.Text = GetConHk(airline, flightNo, arrivalDate);
            xrLblConTS.Text = GetConTS(airline, flightNo, arrivalDate);

问题补充: xrlLbl始终只有一个值,但是list有多少个值。xtlLbl在detail中。这是为什么?折磨了我好久,谁帮帮我吧!
庹林的主页 庹林 | 初学一级 | 园豆:0
提问于:2010-07-27 15:36
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册