private void PopulateTreeItems(ItemCollection items) { var listFunctions = bizDatabaseFunction.GetDatabaseFunctions(MyProjectManager.GetMyProjectManager.GetRequester(), Enum_DatabaseFunctionType.None, DatabaseID); foreach (var function in listFunctions) { AddNode(items, function); } }
public frmDatabaseFunction_Entity(int ID, int entityID) { InitializeComponent(); // DatabaseFunctionParamTypes = DatabaseFunctionParamTypes; Entity = bizEntity.GetTableDrivedEntity(MyProjectManager.GetMyProjectManager.GetRequester(), entityID, EntityColumnInfoType.WithSimpleColumns, EntityRelationshipInfoType.WithoutRelationships); SetLookups(); if (ID == 0) { DatabaseFunctionEntity = new DatabaseFunction_EntityDTO(); lokDatabaseFunction.ItemsSource = bizDatabaseFunction.GetDatabaseFunctions(MyProjectManager.GetMyProjectManager.GetRequester(), Enum_DatabaseFunctionType.None, Entity.DatabaseID); } else { lokDatabaseFunction.Visibility = Visibility.Collapsed; GetDatabaseFunctionEntity(ID); } SetDataGridColumns(); }
private void SetDatabaseFunctions() { cmbDatabaseFunction.DisplayMemberPath = "FunctionName"; cmbDatabaseFunction.SelectedValuePath = "ID"; cmbDatabaseFunction.ItemsSource = bizDatabaseFunction.GetDatabaseFunctions(Enum_DatabaseFunctionType.None); }
private void btnRefreshFunctions_Click(object sender, RoutedEventArgs e) { BizDatabaseFunction bizDatabaseFunction = new BizDatabaseFunction(); dtgFunctions.ItemsSource = bizDatabaseFunction.GetDatabaseFunctions(MyProjectManager.GetMyProjectManager.GetRequester(), Enum_DatabaseFunctionType.None, DatabaseID); }