//================================================================================ /// <summary> /// Returns DataTable Name for given Table Description else Null.String /// </summary> /// <param name="tableRef">DataTable Ref - Primary key</param> /// <returns>Table Name - Description</returns> public string GetDataTableDesc(int tableRef) { CompanyUnitDataTables selectedDataTable = new CompanyUnitDataTables(); selectedDataTable = this.FindForDataTableRef(tableRef); if (selectedDataTable == null) { return(Null.String); } return(selectedDataTable.DataTableDesc); }
//================================================================================ protected override void OnCancelEdit() { //base.OnCancelEdit(); // CompanyUnitDataTables clone = base.EditClone as CompanyUnitDataTables; if (clone == null) { return; } }
//================================================================================ /// <summary> /// Returns DataTableRef for given Table Description else Null.Integer /// </summary> /// <param name="tableDesc">DataTable Name - Description</param> /// <returns>DataTableRef</returns> public int GetDataTableRef(string tableDesc) { CompanyUnitDataTables selectedDataTable = new CompanyUnitDataTables(); selectedDataTable = this.Find(tableDesc); if (selectedDataTable == null) { return(Null.Integer); } return(selectedDataTable.DataTableRef); }