Esempio n. 1
0
        }         // Generate

        public void AddEvent(UiEvent oEvent)
        {
            foreach (UiItemGroups nItemType in UiItemGroupsSequence.Get())
            {
                m_oData[nItemType].AddEvent(oEvent);
            }
        }         // AddEvent
Esempio n. 2
0
 public void Generate()
 {
     foreach (UiItemGroups nItemType in UiItemGroupsSequence.Get())
     {
         m_oData[nItemType].Generate();
     }
 }         // Generate
Esempio n. 3
0
        }         // CreateTable

        public UiReportItem(CustomerInfo oInfo, SortedDictionary <UiItemGroups, SortedDictionary <int, string> > oRelevantControlGroups)
        {
            CustomerInfo = oInfo;
            m_oData      = new SortedDictionary <UiItemGroups, UiReportItemGroupData>();

            foreach (UiItemGroups nItemType in UiItemGroupsSequence.Get())
            {
                m_oData[nItemType] = new UiReportItemGroupData(CustomerInfo, nItemType, oRelevantControlGroups[nItemType]);
            }
        }         // constructor
Esempio n. 4
0
        }         // ToRow

        public override string ToString()
        {
            var os = new StringBuilder();

            foreach (UiItemGroups nItemType in UiItemGroupsSequence.Get())
            {
                os.AppendFormat("{0} ", m_oData[nItemType].ToString());
            }

            os.AppendFormat("{0}", CustomerInfo);

            return(os.ToString());
        }         // ToString
Esempio n. 5
0
        }         // AddEvent

        public void ToRow(DataTable tbl)
        {
            var oRow = new List <object> {
                CustomerInfo.Origin,
                CustomerInfo.ID, CustomerInfo.FirstName, CustomerInfo.Surname,
                CustomerInfo.WizardStepName, CustomerInfo.TypeOfBusiness,
                CustomerInfo.IsOffline ? "offline" : "online"
            };

            foreach (UiItemGroups nItemType in UiItemGroupsSequence.Get())
            {
                m_oData[nItemType].ToRow(oRow);
            }

            tbl.Rows.Add(oRow.ToArray());
        }         // ToRow
Esempio n. 6
0
        public static DataTable CreateTable()
        {
            var oOutput = new DataTable();

            oOutput.Columns.Add("Origin", typeof(string));
            oOutput.Columns.Add("UserID", typeof(int));
            oOutput.Columns.Add("FirstName", typeof(string));
            oOutput.Columns.Add("LastName", typeof(string));
            oOutput.Columns.Add("WizardStepName", typeof(string));
            oOutput.Columns.Add("TypeOfBusiness", typeof(string));
            oOutput.Columns.Add("Offline", typeof(string));

            foreach (UiItemGroups nItemType in UiItemGroupsSequence.Get())
            {
                oOutput.Columns.Add(nItemType.ToString(), typeof(string));
            }

            return(oOutput);
        }         // CreateTable
Esempio n. 7
0
        public UiReport(AConnection oDB, DateTime oDateStart, DateTime oDateEnd, ASafeLog log) : base(log)
        {
            VerboseLogging = false;

            m_oDB        = oDB;
            m_oDateStart = oDateStart;
            m_oDateEnd   = oDateEnd;

            m_oUiActions = new SortedDictionary <int, string>();
            m_oAddresses = new SortedDictionary <int, AddressInfo>();
            m_oDirectors = new SortedDictionary <int, int>();
            m_oAccounts  = new SortedDictionary <int, int>();
            m_oResult    = new SortedDictionary <int, UiReportItem>();

            m_oCurHandler = null;

            m_oControlGroups = new SortedDictionary <UiItemGroups, SortedDictionary <int, string> >();
            foreach (UiItemGroups nItemType in UiItemGroupsSequence.Get())
            {
                m_oControlGroups[nItemType] = new SortedDictionary <int, string>();
            }
        }         // constructor