Exemple #1
0
    /// <summary>
    /// 体检报告打印
    /// </summary>
    /// <param name="RegisterNo"></param>
    private void BuildCheckReport(String RegisterNo)
    {
        WebReport1.ReportFile = Server.MapPath("CheckReport.frx");
        //WebReport1.Report.RegisterData(GetBarCodes(RegisterNo), "BarCodes");
        RegistrationViewEntity        Registration  = m_Registration.GetRegistration(RegisterNo);
        List <RegistrationViewEntity> Registrations = new List <RegistrationViewEntity>();

        Registrations.Add(Registration);
        List <GroupItemResult> GroupItemResults = m_ReportUtil.GetGroupResults(RegisterNo);
        List <ItemResult>      ItemResults      = new List <ItemResult>();

        foreach (GroupItemResult GroupResult in GroupItemResults)
        {
            ItemResults.AddRange(m_ReportUtil.GetItemResults(RegisterNo, GroupResult.GroupID));
        }
        WebReport1.Report.RegisterData(Registrations, "Registration");
        WebReport1.Report.RegisterData(GroupItemResults, "ItemGroupResult");
        WebReport1.Report.RegisterData(ItemResults, "ItemResult");
        WebReport1.Prepare();
    }