private List <DriversOfChangeItem> DriversOfChange(int id)
        {
            List <DriversOfChangeItem> items   = new List <DriversOfChangeItem>();
            List <EntityDTO>           drivers = data.GetAllDriversOfChange(id);

            if (drivers.Count > 0)
            {
                foreach (EntityDTO d in drivers)
                {
                    DriversOfChangeItem dc = new DriversOfChangeItem();
                    d.ExtractProperties();
                    dc.DriversOfChange = d.Name;
                    dc.Description     = d.RenderHTML(GlobalStringResource.Description, ADB.SA.Reports.Entities.Enums.RenderOption.None);
                    items.Add(dc);
                }
            }
            return(items);
        }
Ejemplo n.º 2
0
        private string BuilddriversOfChange(int id)
        {
            string           result  = string.Empty;
            List <EntityDTO> drivers = data.GetAllDriversOfChange(id);

            if (drivers.Count > 0)
            {
                HtmlTable t = new HtmlTable(2, 1, "grid", new int[] { 50, 50 });
                t.AddHeader("Drivers of Change");
                t.AddHeader("Description");

                foreach (EntityDTO d in drivers)
                {
                    d.ExtractProperties();
                    t.AddCell(d.Name);
                    t.AddCell(d.RenderHTML(GlobalStringResource.Description, ADB.SA.Reports.Entities.Enums.RenderOption.None));
                }
                result = t.EndHtmlTable();
            }

            return(result);
        }