Esempio n. 1
0
        public bool HasAllData(UiItemGroups nItemGroup)
        {
            switch (nItemGroup)
            {
            case UiItemGroups.PersonalInfo:
                return(!string.IsNullOrWhiteSpace(FirstName));

            case UiItemGroups.HomeAddress:
                return(HasHomeAddress());

            case UiItemGroups.ContactDetails:
                return(!string.IsNullOrWhiteSpace(MobilePhone));

            case UiItemGroups.CompanyInfo:
                return(!string.IsNullOrWhiteSpace(TypeOfBusiness));

            case UiItemGroups.CompanyDetails:
                return(HasCompanyDetails());

            case UiItemGroups.AdditionalDirectors:
                return(DirectorCount > 0);

            case UiItemGroups.LinkAccounts:
                return(AccountCount > 0);
            }             // switch

            throw new ArgumentOutOfRangeException("nItemGroup");
        }         // HasAllData
Esempio n. 2
0
 public UiReportItemGroupData(CustomerInfo oCustomerInfo, UiItemGroups nItemGroup, SortedDictionary <int, string> oRelevantControls)
 {
     m_oCustomerInfo     = oCustomerInfo;
     m_nItemGroup        = nItemGroup;
     m_oRelevantControls = oRelevantControls;
     m_nCount            = 0;
 }         // constructor