public SelectServiceMethod()
        {
            InitializeComponent();

            ServiceMethods = null;
            appService     = MetaManagerServices.GetApplicationService();
        }
Пример #2
0
        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();
        }
Пример #3
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));
            }
        }
Пример #4
0
        public Analyze()
        {
            InitializeComponent();

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

            applicationService = MetaManagerServices.GetApplicationService();
            dialogService      = MetaManagerServices.GetDialogService();
        }
Пример #6
0
        public ConfigureTwoWayListBoxForm()
        {
            InitializeComponent();

            applicationService = MetaManagerServices.GetApplicationService();
            dialogService      = MetaManagerServices.GetDialogService();
            modelService       = MetaManagerServices.GetModelService();
        }
Пример #7
0
        public NewEditService()
        {
            InitializeComponent();

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

            appService    = MetaManagerServices.GetApplicationService();
            dialogService = MetaManagerServices.GetDialogService();
            modelService  = MetaManagerServices.GetModelService();
        }
Пример #9
0
        private void LoadWorkflow()
        {
            var dialogs        = new List <Dialog>();
            var serviceMethods = new List <ServiceMethod>();
            var subworkflows   = new List <DataAccess.Domain.Workflow>();

            foreach (WorkflowDialog workflowDialog in Workflow.Dialogs)
            {
                Dialog dialog = MetaManagerServices.GetDialogService().GetDialogWithViewTree(workflowDialog.Dialog.Id);
                dialogs.Add(dialog);
            }

            foreach (WorkflowServiceMethod workflowServiceMethod in Workflow.ServiceMethods)
            {
                ServiceMethod serviceMethod = MetaManagerServices.GetApplicationService().GetServiceMethodMapsById(workflowServiceMethod.ServiceMethod.Id);
                serviceMethods.Add(serviceMethod);
            }

            foreach (WorkflowSubworkflow workflowSubworkflow in Workflow.Subworkflows)
            {
                DataAccess.Domain.Workflow subworkflow = MetaManagerServices.GetDialogService().GetWorkflowById(workflowSubworkflow.SubWorkflow.Id);
                subworkflows.Add(subworkflow);
            }

            IList <Type> activityTypes = new List <Type>();

            activityTypes = WorkflowTypeFactory.CreateActivities(Workflow, this.BackendApplication, dialogs, serviceMethods, subworkflows);

            if ((activityTypes.Count > 0) && (!string.IsNullOrEmpty(Workflow.WorkflowXoml)))
            {
                Workflow.WorkflowXoml = ReplaceAssemblyReferences(Workflow.WorkflowXoml, activityTypes[0].Assembly.GetName().Name);
            }

            workflowControl.LoadWorkflow(Workflow.WorkflowXoml, Workflow.RuleSetXml);
            workflowControl.RootActivity.Description = Workflow.Description;

            TypeProvider typeProvider = workflowControl.GetService(typeof(ITypeProvider)) as TypeProvider;

            if (activityTypes.Count > 0)
            {
                foreach (Type activityType in activityTypes)
                {
                    workflowControl.ToolBox.AddToolBoxItem(new SelfHostToolboxItem(activityType));
                }

                typeProvider.AddAssembly(activityTypes[0].Assembly);
            }

            sessionType = RuleContextFactory.LoadUserSessionType(Workflow.Module.Application);
            typeProvider.AddAssembly(sessionType.Assembly);
            requestType = WorkflowTypeFactory.CreateRequestType(Workflow);
            typeProvider.AddAssembly(requestType.Assembly);

            GenerateMembers();

            tbxName.Text = Workflow.Name;
        }
        public CreateEditServiceMethod()
        {
            InitializeComponent();

            appService = MetaManagerServices.GetApplicationService();

            modelService = MetaManagerServices.GetModelService();
            configurationManagementService = MetaManagerServices.GetConfigurationManagementService();
        }
Пример #11
0
        public AddDataSource()
        {
            InitializeComponent();

            DataSource = null;

            // Get the Services
            appService    = MetaManagerServices.GetApplicationService();
            dialogService = MetaManagerServices.GetDialogService();
            modelService  = MetaManagerServices.GetModelService();
        }
Пример #12
0
 public CreateEditReportSQL()
 {
     InitializeComponent();
     ctx = ContextRegistry.GetContext();
     applicationService = MetaManagerServices.GetApplicationService();
     dialogService      = MetaManagerServices.GetDialogService();
     queryHelper        = MetaManagerServices.Helpers.QueryHelper;
     modelService       = MetaManagerServices.GetModelService();
     outParameterNames  = new Dictionary <int, string>();
     MaxQueryNameLength = 0;
 }
        public SelectUXActionType()
        {
            InitializeComponent();

            SelectedMappableUXObject = null;
            SelectedAction           = null;
            NoDrilldowns             = false;

            dialogService = MetaManagerServices.GetDialogService();
            appService    = MetaManagerServices.GetApplicationService();
            modelService  = MetaManagerServices.GetModelService();
            actionService = MetaManagerServices.GetUXActionService();
        }
        public CreateEditActionWizard()
        {
            InitializeComponent();

            applicationService = MetaManagerServices.GetApplicationService();
            dialogService      = MetaManagerServices.GetDialogService();
            modelService       = MetaManagerServices.GetModelService();


            storedProcedureControl.ChangedSP += new EventHandler(NewSpSelected);



            targetProcedureBtn.Checked = true;
            targetProcedureBtn_Click(this, null);
        }
 public FindServiceMethodForm()
 {
     InitializeComponent();
     ctx = ContextRegistry.GetContext();
     applicationService = MetaManagerServices.GetApplicationService();
 }
Пример #16
0
        public SelectDisplayFormats()
        {
            InitializeComponent();

            appService = MetaManagerServices.GetApplicationService();
        }
        public ConfigureServiceForm()
        {
            InitializeComponent();

            applicationService = MetaManagerServices.GetApplicationService();
        }