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();
        }
示例#2
0
        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;
            }
        }
示例#4
0
        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);
                    }
                }
            }
        }
示例#5
0
        public Analyze()
        {
            InitializeComponent();

            analyzeService = MetaManagerServices.GetAnalyzeService();
            appService     = MetaManagerServices.GetApplicationService();
        }
        public GenerateReports()
        {
            InitializeComponent();

            configurationManagementService = MetaManagerServices.GetConfigurationManagementService();
            modelService = MetaManagerServices.GetModelService();
        }
示例#7
0
        public FindWorkflowForm()
        {
            InitializeComponent();

            dialogService = MetaManagerServices.GetDialogService();
            modelService  = MetaManagerServices.GetModelService();
        }
示例#8
0
        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));
            }
        }
示例#9
0
 public ImportChange()
 {
     InitializeComponent();
     modelService = MetaManagerServices.GetModelService();
     configurationManagementService = MetaManagerServices.GetConfigurationManagementService();
     importChangeHelper             = MetaManagerServices.Helpers.ImportChangeHelper;
 }
示例#10
0
 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();
        }
示例#14
0
        public SelectDialog()
        {
            InitializeComponent();

            dialogService = MetaManagerServices.GetDialogService();
            modelService  = MetaManagerServices.GetModelService();
        }
示例#15
0
        public AddMenu()
        {
            InitializeComponent();

            // Get application service context
            menuService = MetaManagerServices.GetMenuService();
        }
示例#16
0
        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();
            }
        }
示例#17
0
        public EditView()
        {
            InitializeComponent();

            dialogService = MetaManagerServices.GetDialogService();
            modelService  = MetaManagerServices.GetModelService();
        }
示例#18
0
        public CreateCustomView()
        {
            InitializeComponent();

            dialogService = MetaManagerServices.GetDialogService();
            modelService  = MetaManagerServices.GetModelService();
        }
示例#19
0
        public CreateIssueForm()
        {
            InitializeComponent();

            dialogService  = MetaManagerServices.GetDialogService();
            analyzeService = MetaManagerServices.GetAnalyzeService();
        }
 public ConfigureComponentForm()
 {
     InitializeComponent();
     serviceMethod = null;
     componentMap  = null;
     modelService  = MetaManagerServices.GetModelService();
 }
示例#21
0
        public NewEditService()
        {
            InitializeComponent();

            // Get service contexts
            appService   = MetaManagerServices.GetApplicationService();
            modelService = MetaManagerServices.GetModelService();
        }
        public CreatePropertyForm(BusinessEntity businessEntity)
        {
            InitializeComponent();

            modelService    = MetaManagerServices.GetModelService();
            DbProperty      = null;
            _businessEntity = businessEntity;
        }
示例#23
0
        public SelectCustomDialog()
        {
            InitializeComponent();

            // Get services context
            dialogService = MetaManagerServices.GetDialogService();
            modelService  = MetaManagerServices.GetModelService();
        }
示例#24
0
        public FindViewForm()
        {
            InitializeComponent();

            dialogService = MetaManagerServices.GetDialogService();

            Cursor.Current = Cursors.Default;
        }
示例#25
0
        public ShowIssueList(AnalyzeIssueTree issueTree)
        {
            InitializeComponent();

            AnalyzeIssueTree = issueTree;

            analyzeService = MetaManagerServices.GetAnalyzeService();
        }
示例#26
0
        public ConfigureTwoWayListBoxForm()
        {
            InitializeComponent();

            applicationService = MetaManagerServices.GetApplicationService();
            dialogService      = MetaManagerServices.GetDialogService();
            modelService       = MetaManagerServices.GetModelService();
        }
示例#27
0
        public SelectCustomDialogUXAction()
        {
            InitializeComponent();

            // Get services context
            dialogService = MetaManagerServices.GetDialogService();
            actionService = MetaManagerServices.GetUXActionService();
        }
        public FindPropertyForm()
        {
            InitializeComponent();

            AutoSelectTableForFoundColumn = string.Empty;
            modelService = MetaManagerServices.GetModelService();
            configurationManagementService = MetaManagerServices.GetConfigurationManagementService();
        }
示例#29
0
        public SelectCreateUXAction()
        {
            InitializeComponent();

            SelectedAction = null;

            modelService = MetaManagerServices.GetModelService();
        }
        public DataModelImportForm()
        {
            InitializeComponent();

            appService    = MetaManagerServices.GetApplicationService();
            dialogService = MetaManagerServices.GetDialogService();
            modelService  = MetaManagerServices.GetModelService();
        }