public CompanyDataItemCollection <T> this[CompanyUnitHierarchy CompanyUnitObj]
 {
     get
     {
         return(this.GetAllDataItemForCompanyHierarchy(
                    CompanyUnitObj.CompanyUnitRef, CompanyUnitObj.CompanyUnitParentRef,
                    CompanyUnitObj.CompanyUnitGrandParentRef, CompanyUnitObj.CompanyUnitGreatGrandParentRef));
     }
 }
Exemple #2
0
 //================================================================================
 public CompanyUnitDataTablesCollection <T> this[CompanyUnitHierarchy CompanyUnitObj]
 {
     get
     {
         return(this.GetAllIncludingCompanyHierarchy(
                    CompanyUnitObj.CompanyUnitRef, CompanyUnitObj.CompanyUnitParentRef,
                    CompanyUnitObj.CompanyUnitGrandParentRef, CompanyUnitObj.CompanyUnitGreatGrandParentRef));
     }
 }
Exemple #3
0
        public CompanyUnitHierarchy Clone()
        {
            CompanyUnitHierarchy cloneObj = new CompanyUnitHierarchy();

            cloneObj.CompanyUnitRef                 = this.CompanyUnitRef;
            cloneObj.CompanyUnitParentRef           = this.CompanyUnitParentRef;
            cloneObj.CompanyUnitGrandParentRef      = this.CompanyUnitGrandParentRef;
            cloneObj.CompanyUnitGreatGrandParentRef = this.CompanyUnitGreatGrandParentRef;
            cloneObj.DataTables = this.DataTables;
            return(cloneObj);
        }
        public CompanyDataItemCollection <T> this[
            CompanyUnitHierarchy CompanyUnitObj, params int[] dataTableRefs]
        {
            get
            {
                CompanyDataItemCollection <T> tempColl =
                    this.GetAllDataItemForCompanyHierarchy(
                        CompanyUnitObj.CompanyUnitRef, CompanyUnitObj.CompanyUnitParentRef,
                        CompanyUnitObj.CompanyUnitGrandParentRef, CompanyUnitObj.CompanyUnitGreatGrandParentRef);

                //tempColl = tempColl.Find(dataTableRefs);

                return(tempColl.Find(dataTableRefs));
            }
        }
Exemple #5
0
        public CompanyDataEnumerationCollection <T> this[
            CompanyUnitHierarchy CompanyUnitObj, int dataTableRef]
        {
            get
            {
                CompanyDataEnumerationCollection <T> tempColl =
                    this.GetAllDataEnumerationForCompanyHierarchy(
                        CompanyUnitObj.CompanyUnitRef, CompanyUnitObj.CompanyUnitParentRef,
                        CompanyUnitObj.CompanyUnitGrandParentRef, CompanyUnitObj.CompanyUnitGreatGrandParentRef);

                tempColl = tempColl.Find(dataTableRef);

                return(tempColl);
            }
        }
Exemple #6
0
        //================================================================================
        public CompanyUnitDataTablesCollection <T> this[
            CompanyUnitHierarchy CompanyUnitObj,
            DataTableUseTypeCategory dataTableUseTypeCategoryCode]
        {
            get
            {
                CompanyUnitDataTablesCollection <T> tempColl =
                    this.GetAllIncludingCompanyHierarchy(
                        CompanyUnitObj.CompanyUnitRef, CompanyUnitObj.CompanyUnitParentRef,
                        CompanyUnitObj.CompanyUnitGrandParentRef, CompanyUnitObj.CompanyUnitGreatGrandParentRef);

                //tempColl = tempColl[dataTableUseTypeCategoryCode];

                return(tempColl[dataTableUseTypeCategoryCode]);
            }
        }