new public void Load(bool isNewAction, string actionName, Schema schema, Query existingQuery, bool isEditable) { applicationService = MetaManagerServices.GetApplicationService(); modelService = MetaManagerServices.GetModelService(); Query = existingQuery; this.isNewAction = isNewAction; this.schema = modelService.GetInitializedDomainObject <DataAccess.Domain.Schema>(schema.Id); this.actionName = actionName; this.IsEditable = isEditable; if (isNewAction) { queryNameTb.Text = actionName + "Qry"; tbConnectionString.Text = schema.ConnectionString; } else { queryNameTb.Text = Query.Name; rtSQL.Text = Query.SqlStatement; tbConnectionString.Text = Query.Schema.ConnectionString; btnFindDatatypes_Click(null, null); } rtSQL.Focus(); EnableDisableOptions(); }
public EditInterfaceMap() { InitializeComponent(); dialogService = MetaManagerServices.GetDialogService(); modelService = MetaManagerServices.GetModelService(); }
private void searchBtn_Click(object sender, EventArgs e) { Config.Backend.LastSelectedServiceInFindServiceMethod = serviceTbx.Text; Config.Save(); try { this.Cursor = Cursors.WaitCursor; using (new SessionScope(MetaManagerServices.GetSessionFactory(), MetaManagerServices.GetDomainInterceptor(), true, FlushMode.Never, true)) { IServiceMethodDao serviceMethodDao = ctx["ServiceMethodDao"] as IServiceMethodDao; IList <Cdc.MetaManager.DataAccess.Domain.ServiceMethod> serviceMethods = serviceMethodDao.FindByApplicationIdNameAndService(BackendApplication.Id, string.IsNullOrEmpty(nameTbx.Text) ? "%" : nameTbx.Text, string.IsNullOrEmpty(serviceTbx.Text) ? "%" : serviceTbx.Text); entityListView.BeginUpdate(); entityListView.Items.Clear(); foreach (Cdc.MetaManager.DataAccess.Domain.ServiceMethod serviceMethod in serviceMethods) { ListViewItem item = entityListView.Items.Add(serviceMethod.Id.ToString()); item.SubItems.Add(serviceMethod.Name); item.SubItems.Add(serviceMethod.Service.Name); item.Tag = serviceMethod; } entityListView.EndUpdate(); } } finally { this.Cursor = Cursors.Default; } }
private void CheckOutInObject(DataAccess.IVersionControlled checkOutObject, bool trueCheckOut_falseCheckIn) { DataAccess.IVersionControlled domainObject = null; domainObject = checkOutObject; if (typeof(DataAccess.IVersionControlled).IsAssignableFrom(domainObject.GetType())) { if (trueCheckOut_falseCheckIn) { try { MetaManagerServices.GetConfigurationManagementService().CheckOutDomainObject(domainObject.Id, domainObject.GetType()); } catch (ConfigurationManagementException ex) { MessageBox.Show(ex.Message); } } else { try { Cursor.Current = Cursors.WaitCursor; MetaManagerServices.GetConfigurationManagementService().CheckInDomainObject(domainObject.Id, domainObject.GetType(), FrontendApplication); Cursor.Current = Cursors.Default; } catch (ConfigurationManagementException ex) { MessageBox.Show(ex.Message); } } } }
public Analyze() { InitializeComponent(); analyzeService = MetaManagerServices.GetAnalyzeService(); appService = MetaManagerServices.GetApplicationService(); }
public GenerateReports() { InitializeComponent(); configurationManagementService = MetaManagerServices.GetConfigurationManagementService(); modelService = MetaManagerServices.GetModelService(); }
public FindWorkflowForm() { InitializeComponent(); dialogService = MetaManagerServices.GetDialogService(); modelService = MetaManagerServices.GetModelService(); }
private void addServiceMethodBtn_Click(object sender, EventArgs e) { FindServiceMethodForm form = new FindServiceMethodForm(); form.FrontendApplication = FrontendApplication; form.BackendApplication = BackendApplication; if (form.ShowDialog() == DialogResult.OK) { ServiceMethod serviceMethod = MetaManagerServices.GetApplicationService().GetServiceMethodMapsById(form.ServiceMethod.Id); foreach (WorkflowServiceMethod wfServiceMethod in Workflow.ServiceMethods) { if (wfServiceMethod.ServiceMethod.Id == serviceMethod.Id) { MessageBox.Show("The selected Service Method is already present in the Workflow.", "MetaManager"); return; } } WorkflowServiceMethod workflowServiceMethod = new WorkflowServiceMethod(); workflowServiceMethod.ServiceMethod = serviceMethod; workflowServiceMethod.Workflow = Workflow; Workflow.ServiceMethods.Add(workflowServiceMethod); Type activityType = WorkflowTypeFactory.CreateActivities(Workflow, this.BackendApplication, new Dialog[0], new ServiceMethod[] { serviceMethod }, new DataAccess.Domain.Workflow[0]).Last(); TypeProvider typeProvider = workflowControl.GetService(typeof(ITypeProvider)) as TypeProvider; typeProvider.AddAssembly(activityType.Assembly); workflowControl.ToolBox.AddToolBoxItem(new SelfHostToolboxItem(activityType)); } }
public ImportChange() { InitializeComponent(); modelService = MetaManagerServices.GetModelService(); configurationManagementService = MetaManagerServices.GetConfigurationManagementService(); importChangeHelper = MetaManagerServices.Helpers.ImportChangeHelper; }
public StatusAddToSourceControl(DeploymentGroup deployGrp) { InitializeComponent(); deploymentGroup = deployGrp; configurationManagementService = MetaManagerServices.GetConfigurationManagementService(); configurationManagementService.StatusChanged += new StatusChangedDelegate(confMgnService_StatusChanged); }
public ConfigureHyperDialogForm() { InitializeComponent(); applicationService = MetaManagerServices.GetApplicationService(); dialogService = MetaManagerServices.GetDialogService(); }
private void BuildGraph(object state) { try { using (new SessionScope(MetaManagerServices.GetSessionFactory(), MetaManagerServices.GetDomainInterceptor(), true, FlushMode.Never, true)) { IDomainObject currentObject = modelService.GetDomainObject(ContaindDomainObjectIdAndType.Key, ContaindDomainObjectIdAndType.Value); FindDependencies(currentObject, null); } if (!abort) { Invoke(new System.Action(() => { RenderGraph(); })); } } finally { waitEvent.Set(); if (!abort) { Invoke(new System.Action(() => { this.Cursor = Cursors.Default; })); } } }
public SelectServiceMethod() { InitializeComponent(); ServiceMethods = null; appService = MetaManagerServices.GetApplicationService(); }
public SelectDialog() { InitializeComponent(); dialogService = MetaManagerServices.GetDialogService(); modelService = MetaManagerServices.GetModelService(); }
public AddMenu() { InitializeComponent(); // Get application service context menuService = MetaManagerServices.GetMenuService(); }
private void PropertyMapForm2_Load(object sender, EventArgs e) { using (new SessionScope(MetaManagerServices.GetSessionFactory(), MetaManagerServices.GetDomainInterceptor(), true, FlushMode.Never, true)) { viewActionDao = ctx["ViewActionDao"] as IViewActionDao; ViewAction = viewActionDao.FindById(ViewAction.Id); List <IMappableProperty> targetProperties = new List <IMappableProperty>(ViewAction.ViewNode.View.ResponseMap.MappedProperties.Cast <IMappableProperty>()); IUXSessionDao sessionDao = ctx["UXSessionDao"] as IUXSessionDao; foreach (UXSessionProperty property in sessionDao.FindByApplicationId(FrontendApplication.Id).Properties) { targetProperties.Add(property); } if (ViewAction.ViewToActionMap != null) { IPropertyMapDao propertyMapDao = ctx["PropertyMapDao"] as IPropertyMapDao; propertyMapControl.PropertyMap = propertyMapDao.FindById(ViewAction.ViewToActionMap.Id); } propertyMapControl.SourceProperties = ViewAction.Action.RequestMap.MappedProperties.Cast <IMappableProperty>(); propertyMapControl.TargetProperties = targetProperties; propertyMapControl.Map(); } }
public EditView() { InitializeComponent(); dialogService = MetaManagerServices.GetDialogService(); modelService = MetaManagerServices.GetModelService(); }
public CreateCustomView() { InitializeComponent(); dialogService = MetaManagerServices.GetDialogService(); modelService = MetaManagerServices.GetModelService(); }
public CreateIssueForm() { InitializeComponent(); dialogService = MetaManagerServices.GetDialogService(); analyzeService = MetaManagerServices.GetAnalyzeService(); }
public ConfigureComponentForm() { InitializeComponent(); serviceMethod = null; componentMap = null; modelService = MetaManagerServices.GetModelService(); }
public NewEditService() { InitializeComponent(); // Get service contexts appService = MetaManagerServices.GetApplicationService(); modelService = MetaManagerServices.GetModelService(); }
public CreatePropertyForm(BusinessEntity businessEntity) { InitializeComponent(); modelService = MetaManagerServices.GetModelService(); DbProperty = null; _businessEntity = businessEntity; }
public SelectCustomDialog() { InitializeComponent(); // Get services context dialogService = MetaManagerServices.GetDialogService(); modelService = MetaManagerServices.GetModelService(); }
public FindViewForm() { InitializeComponent(); dialogService = MetaManagerServices.GetDialogService(); Cursor.Current = Cursors.Default; }
public ShowIssueList(AnalyzeIssueTree issueTree) { InitializeComponent(); AnalyzeIssueTree = issueTree; analyzeService = MetaManagerServices.GetAnalyzeService(); }
public ConfigureTwoWayListBoxForm() { InitializeComponent(); applicationService = MetaManagerServices.GetApplicationService(); dialogService = MetaManagerServices.GetDialogService(); modelService = MetaManagerServices.GetModelService(); }
public SelectCustomDialogUXAction() { InitializeComponent(); // Get services context dialogService = MetaManagerServices.GetDialogService(); actionService = MetaManagerServices.GetUXActionService(); }
public FindPropertyForm() { InitializeComponent(); AutoSelectTableForFoundColumn = string.Empty; modelService = MetaManagerServices.GetModelService(); configurationManagementService = MetaManagerServices.GetConfigurationManagementService(); }
public SelectCreateUXAction() { InitializeComponent(); SelectedAction = null; modelService = MetaManagerServices.GetModelService(); }
public DataModelImportForm() { InitializeComponent(); appService = MetaManagerServices.GetApplicationService(); dialogService = MetaManagerServices.GetDialogService(); modelService = MetaManagerServices.GetModelService(); }