예제 #1
0
 public void SetInputs()
 {
     if (DataMappingViewModel != null)
     {
         _serviceDesignerViewModel.InputMapping = DataMappingViewModel.GetInputString(DataMappingViewModel.Inputs);
     }
 }
예제 #2
0
 void SetInputs()
 {
     if (DataMappingViewModel != null)
     {
         InputMapping = DataMappingViewModel.GetInputString(DataMappingViewModel.Inputs);
     }
 }
예제 #3
0
        public void CheckVersions(ServiceDesignerViewModel serviceDesignerViewModel)
        {
            if (serviceDesignerViewModel.ValidationMemoManager.LastValidationMemo != null && serviceDesignerViewModel.ValidationMemoManager.LastValidationMemo.Errors.Any(a => a.Message.Contains("This service will only execute when the server is online.")))
            {
                serviceDesignerViewModel.ValidationMemoManager.RemoveErrors(serviceDesignerViewModel.ValidationMemoManager.LastValidationMemo.Errors.Where(
                                                                                a => a.Message.Contains("This service will only execute when the server is online.")).ToList());
                serviceDesignerViewModel.ValidationMemoManager.UpdateWorstError();
            }
            var webAct     = ActivityFactory.CreateWebActivity(serviceDesignerViewModel.NewModel, serviceDesignerViewModel.NewModel, serviceDesignerViewModel.ServiceName);
            var newMapping = MappingFactory.CreateModel(webAct, OnMappingCollectionChanged);

            if (newMapping.GetInputString(DataMappingViewModel.Inputs) != DataMappingViewModel.GetInputString(DataMappingViewModel.Inputs) ||
                newMapping.GetOutputString(DataMappingViewModel.Outputs) != DataMappingViewModel.GetOutputString(DataMappingViewModel.Outputs))
            {
                serviceDesignerViewModel.ValidationMemoManager.UpdateLastValidationMemoWithVersionChanged();
                _resourcesUpdated = true;
                serviceDesignerViewModel.ValidationMemoManager.SetVersionsDifferent(true);
            }
        }
예제 #4
0
        private void CheckVersions()
        {
            if (LastValidationMemo != null && LastValidationMemo.Errors.Any(a => a.Message.Contains("This service will only execute when the server is online.")))
            {
                RemoveErrors(
                    LastValidationMemo.Errors.Where(
                        a => a.Message.Contains("This service will only execute when the server is online.")).ToList());
                UpdateWorstError();
            }
            var webAct     = ActivityFactory.CreateWebActivity(NewModel, NewModel, ServiceName);
            var newMapping = MappingFactory.CreateModel(webAct, OnMappingCollectionChanged);

            if (newMapping.GetInputString(DataMappingViewModel.Inputs) != DataMappingViewModel.GetInputString(DataMappingViewModel.Inputs) ||
                newMapping.GetOutputString(DataMappingViewModel.Outputs) != DataMappingViewModel.GetOutputString(DataMappingViewModel.Outputs))
            {
                UpdateLastValidationMemoWithVersionChanged();
                _resourcesUpdated  = true;
                _versionsDifferent = true;
            }
        }
예제 #5
0
        string CreateFixedData()
        {
            var serializer = new Dev2JsonSerializer();
            var result     = serializer.Serialize(DataMappingListFactory.CreateListInputMapping(DataMappingViewModel.GetInputString(DataMappingViewModel.Inputs)));

            return(string.Concat("<Input>", result, "</Input>"));
        }