public CompanyDataItemCollection <T> this[CompanyUnitHierarchy CompanyUnitObj] { get { return(this.GetAllDataItemForCompanyHierarchy( CompanyUnitObj.CompanyUnitRef, CompanyUnitObj.CompanyUnitParentRef, CompanyUnitObj.CompanyUnitGrandParentRef, CompanyUnitObj.CompanyUnitGreatGrandParentRef)); } }
//================================================================================ public CompanyUnitDataTablesCollection <T> this[CompanyUnitHierarchy CompanyUnitObj] { get { return(this.GetAllIncludingCompanyHierarchy( CompanyUnitObj.CompanyUnitRef, CompanyUnitObj.CompanyUnitParentRef, CompanyUnitObj.CompanyUnitGrandParentRef, CompanyUnitObj.CompanyUnitGreatGrandParentRef)); } }
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)); } }
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); } }
//================================================================================ 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]); } }