コード例 #1
0
 public CompanyDataItemCollection <T> this[CompanyUnitHierarchy CompanyUnitObj]
 {
     get
     {
         return(this.GetAllDataItemForCompanyHierarchy(
                    CompanyUnitObj.CompanyUnitRef, CompanyUnitObj.CompanyUnitParentRef,
                    CompanyUnitObj.CompanyUnitGrandParentRef, CompanyUnitObj.CompanyUnitGreatGrandParentRef));
     }
 }
コード例 #2
0
 //================================================================================
 public CompanyUnitDataTablesCollection <T> this[CompanyUnitHierarchy CompanyUnitObj]
 {
     get
     {
         return(this.GetAllIncludingCompanyHierarchy(
                    CompanyUnitObj.CompanyUnitRef, CompanyUnitObj.CompanyUnitParentRef,
                    CompanyUnitObj.CompanyUnitGrandParentRef, CompanyUnitObj.CompanyUnitGreatGrandParentRef));
     }
 }
コード例 #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);
        }
コード例 #4
0
        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));
            }
        }
コード例 #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);
            }
        }
コード例 #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]);
            }
        }