コード例 #1
0
        List <ResumeChecker_AlacartReport> dispalyReport()
        {
            List <ResumeChecker_AlacartReport> alacartReports = new List <ResumeChecker_AlacartReport>();

            string[]      alacartReportList = { "eKnowID Criminal MultiState Check", "Employment Verification", "Education Verification", "IDentify" };
            List <Report> reportLst         = PlanHelper.GetAlacartReportList();
            ResumeChecker_AlacartReport alacartReport;

            foreach (string reportName in alacartReportList)
            {
                foreach (Report report in reportLst)
                {
                    if (report.Name == reportName)
                    {
                        alacartReport                            = new ResumeChecker_AlacartReport();
                        alacartReport.report                     = new Report();
                        alacartReport.report.Name                = report.Name;
                        alacartReport.report.Description         = report.Description;
                        alacartReport.report.Price               = report.Price;
                        alacartReport.report.ReportId            = report.ReportId;
                        alacartReport.report.TurnaroundTime      = report.TurnaroundTime;
                        alacartReport.report.reportShortDesrript = report.reportShortDesrript;
                        alacartReports.Add(alacartReport);
                        break;
                    }
                }
            }

            return(alacartReports);
        }
コード例 #2
0
 protected void RCAlacartReportList_ItemDataBound(object sender, RepeaterItemEventArgs e)
 {
     if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
     {
         ResumeChecker_AlacartReport alacartReportDisplay = e.Item.DataItem as ResumeChecker_AlacartReport;
         UserControl control = e.Item.FindControl("ucRCAlarte") as UserControl;
         ManipulateReportDisplay(alacartReportDisplay.report, control);
     }
 }