/// <summary>
        /// Initializes the 'SIU_delete_instanceIT' instance form.
        /// </summary>
        /// <param name="exchangeInfo">Exchange information</param>
        /// <returns>IUServiceController</returns>
        public IUServiceController Initialize(ExchangeInfo exchangeInfo)
        {
            Controller = ControllerFactory.NaveNodriza.Service_delete_instanceInbound(exchangeInfo, null);

            // Scenario.
            Controller.Scenario = new ScenarioPresentation(this, ScenarioType.Service);
            ArgumentOVController lArgumentObjectValued = null;

            // p_thisNaveNodriza
            lArgumentObjectValued = Controller.InputFields["p_thisNaveNodriza"] as ArgumentOVController;
            lArgumentObjectValued.Label = new LabelPresentation(this.lp_thisNaveNodriza);
            lArgumentObjectValued.Editors[0] = new MaskedTextBoxPresentation(this.maskedTextBoxp_thisNaveNodrizaid_NaveNodriza1);
            lArgumentObjectValued.Trigger = new ButtonPresentation(this.bp_thisNaveNodriza);
            if (lArgumentObjectValued.SupplementaryInfo != null)
            {
                lArgumentObjectValued.SupplementaryInfo.Viewer = new LabelDisplaySetPresentation(this.lp_thisNaveNodrizaSupInfo);
            }

            // Next-Previous triggers.
            Controller.NextTrigger = new ButtonPresentation(this.bNext);
            Controller.PreviousTrigger = new ButtonPresentation(this.bPrevious);
            Controller.ApplyTrigger = new ButtonPresentation(this.bApply);

            // Ok.
            Controller.OkTrigger = new ButtonPresentation(this.bOk);

            // Cancel.
            Controller.CancelTrigger = new ButtonPresentation(this.bCancel);

            Controller.Initialize();

            return Controller;
        }
        /// <summary>
        /// Initializes the 'Crear_NaveNodrizaIT' instance form.
        /// </summary>
        /// <param name="exchangeInfo">Exchange information</param>
        /// <returns>IUServiceController</returns>
        public IUServiceController Initialize(ExchangeInfo exchangeInfo)
        {
            Controller = ControllerFactory.NaveNodriza.Service_create_instanceInbound(exchangeInfo, null);

            // Scenario.
            Controller.Scenario = new ScenarioPresentation(this, ScenarioType.Service);
            ArgumentDVController lArgumentDataValued = null;

            // p_atrid_NaveNodriza
            lArgumentDataValued = Controller.InputFields["p_atrid_NaveNodriza"] as ArgumentDVController;
            lArgumentDataValued.Label = new LabelPresentation(this.lp_atrid_NaveNodriza);
            lArgumentDataValued.Editor = new AutonumericPresentation(this.maskedTextBoxp_atrid_NaveNodriza, this.lp_atrid_NaveNodrizaAuto, this.checkBoxp_atrid_NaveNodrizaAuto);

            // p_atrNombre_NaveNodriza
            lArgumentDataValued = Controller.InputFields["p_atrNombre_NaveNodriza"] as ArgumentDVController;
            lArgumentDataValued.Label = new LabelPresentation(this.lp_atrNombre_NaveNodriza);
            lArgumentDataValued.Editor = new TextBoxPresentation(this.textBoxp_atrNombre_NaveNodriza);

            // Ok.
            Controller.OkTrigger = new ButtonPresentation(this.bOk);

            // Cancel.
            Controller.CancelTrigger = new ButtonPresentation(this.bCancel);

            Controller.Initialize();

            return Controller;
        }
        /// <summary>
        /// Initializes the 'SIU_create_instanceIT' instance form.
        /// </summary>
        /// <param name="exchangeInfo">Exchange information</param>
        /// <returns>IUServiceController</returns>
        public IUServiceController Initialize(ExchangeInfo exchangeInfo)
        {
            Controller = ControllerFactory.PasajeroAeronave.Service_create_instanceInbound(exchangeInfo, null);

            // Scenario.
            Controller.Scenario = new ScenarioPresentation(this, ScenarioType.Service);
            ArgumentDVController lArgumentDataValued = null;
            ArgumentOVController lArgumentObjectValued = null;

            // p_atrid_PasajeroAeronave
            lArgumentDataValued = Controller.InputFields["p_atrid_PasajeroAeronave"] as ArgumentDVController;
            lArgumentDataValued.Label = new LabelPresentation(this.lp_atrid_PasajeroAeronave);
            lArgumentDataValued.Editor = new AutonumericPresentation(this.maskedTextBoxp_atrid_PasajeroAeronave, this.lp_atrid_PasajeroAeronaveAuto, this.checkBoxp_atrid_PasajeroAeronaveAuto);

            // p_agrAeronave
            lArgumentObjectValued = Controller.InputFields["p_agrAeronave"] as ArgumentOVController;
            lArgumentObjectValued.Label = new LabelPresentation(this.lp_agrAeronave);
            lArgumentObjectValued.Editors[0] = new MaskedTextBoxPresentation(this.maskedTextBoxp_agrAeronaveid_Aeronave1);
            lArgumentObjectValued.Trigger = new ButtonPresentation(this.bp_agrAeronave);
            if (lArgumentObjectValued.SupplementaryInfo != null)
            {
                lArgumentObjectValued.SupplementaryInfo.Viewer = new LabelDisplaySetPresentation(this.lp_agrAeronaveSupInfo);
            }

            // p_agrPasajero
            lArgumentObjectValued = Controller.InputFields["p_agrPasajero"] as ArgumentOVController;
            lArgumentObjectValued.Label = new LabelPresentation(this.lp_agrPasajero);
            lArgumentObjectValued.Editors[0] = new MaskedTextBoxPresentation(this.maskedTextBoxp_agrPasajeroid_Pasajero1);
            lArgumentObjectValued.Trigger = new ButtonPresentation(this.bp_agrPasajero);
            if (lArgumentObjectValued.SupplementaryInfo != null)
            {
                lArgumentObjectValued.SupplementaryInfo.Viewer = new LabelDisplaySetPresentation(this.lp_agrPasajeroSupInfo);
            }

            // p_atrNombreAeronave
            lArgumentDataValued = Controller.InputFields["p_atrNombreAeronave"] as ArgumentDVController;
            lArgumentDataValued.Label = new LabelPresentation(this.lp_atrNombreAeronave);
            lArgumentDataValued.Editor = new TextBoxPresentation(this.textBoxp_atrNombreAeronave);

            // p_atrNombrePasajero
            lArgumentDataValued = Controller.InputFields["p_atrNombrePasajero"] as ArgumentDVController;
            lArgumentDataValued.Label = new LabelPresentation(this.lp_atrNombrePasajero);
            lArgumentDataValued.Editor = new TextBoxPresentation(this.textBoxp_atrNombrePasajero);

            // Ok.
            Controller.OkTrigger = new ButtonPresentation(this.bOk);

            // Cancel.
            Controller.CancelTrigger = new ButtonPresentation(this.bCancel);

            Controller.Initialize();

            return Controller;
        }
示例#4
0
 /// <summary>
 /// Initializes a new instance of 'IUQueryContext'.
 /// </summary>
 /// <param name="info">Info.</param>
 /// <param name="iuType">IU type.</param>
 /// <param name="className">Class name.</param>
 /// <param name="iuName">IU name.</param>
 public IUQueryContext(ExchangeInfo info, ContextType iuType, string className, string iuName)
     : base(info, iuType, className, iuName)
 {
     // Copy the selected Oids from the origin scenario. In this scenario they are the related Oids
     if (info.SelectedOids != null && info.SelectedOids.Count > 0)
     {
         RelatedOids = new List<Oid>();
         foreach (Oid lOid in info.SelectedOids)
         {
             RelatedOids.Add(Oid.Create(lOid.ClassName, lOid.GetFields()));
         }
     }
 }
        /// <summary>
        /// Initializes the 'PIU_PasajeroAeronaveIT' instance form
        /// </summary>
        /// <param name="exchangeInfo">Exchange information.</param>
        /// <returns>IUPopulationController</returns>
        public IUPopulationController Initialize(ExchangeInfo exchangeInfo)
        {
            // Controller factory.
            Controller = ControllerFactory.PasajeroAeronave.Population_PIU_PasajeroAeronave(exchangeInfo);
            Controller.Scenario = new ScenarioPresentation(this, ScenarioType.Population);

            #region Population PIU_PasajeroAeronave Links

            // Displayset
            Controller.DisplaySet.Population = new DataGridViewPresentation(this.gPopulation, this.toolStripExportExcel, this.toolStripExportWord, this.toolStripRetrieveAll, this.toolStripRefresh, this.toolStripHelp, this.optionsToolStripMenuItem, this.mnuNavigations, exchangeInfo);
            Controller.DisplaySet.NumberOfInstances = new ToolStripStatusLabelNumberInstancesPresentation(this.toolStripStatusLabelCount);
            Controller.DisplaySet.First = null;
            Controller.DisplaySet.Previous = null;
            Controller.DisplaySet.Refresh = null;
            Controller.DisplaySet.Next = null;
            Controller.DisplaySet.ExecuteServiceTrigger = new ToolStripDropDownButtonPresentation(this.toolStripDropDownButtonSave);
            Controller.DisplaySet.PreferencesTrigger = new ToolStripMenuItemPresentation(this.toolStripPreferences);
            Controller.DisplaySet.SaveColumnsWidthTrigger = new ToolStripMenuItemPresentation(this.toolStripSaveColumnWidth);
            // Order Criteria

            // Actions
            Controller.Action.ActionItems[0].Trigger = new ToolStripButtonPresentation(this.toolstripActions_0,this.mnuActions_0);
            Controller.Action.ActionItems[1].Trigger = new ToolStripButtonPresentation(this.toolstripActions_1,this.mnuActions_1);
            Controller.Action.ActionItems[2].Trigger = new ToolStripButtonPresentation(this.toolstripActions_2,this.mnuActions_2);
            Controller.Action.ActionItems[3].Trigger = new ToolStripButtonPresentation(this.toolstripActions_3,this.mnuActions_3);
            Controller.Action.ActionItems[4].Trigger = new ToolStripButtonPresentation(this.toolstripActions_4,this.mnuActions_4);
            Controller.Action.ActionItems[5].Trigger = new ToolStripButtonPresentation(this.toolStripPrint,this.mnuPrint);

            // Navigations
            Controller.Navigation.NavigationItems[0].Trigger = new ToolStripButtonPresentation(this.toolstripNavigations_0, this.mnuNavigations_0);
            Controller.Navigation.NavigationItems[1].Trigger = new ToolStripButtonPresentation(this.toolstripNavigations_1, this.mnuNavigations_1);
            Controller.Navigation.NavigationItems[2].Trigger = new ToolStripButtonPresentation(this.toolstripNavigations_2, this.mnuNavigations_2);

            // Contextual Menu
            this.gPopulation.ContextMenuStrip = this.contextMenuStrip;
            #endregion Population PIU_PasajeroAeronave Links

            // Save position trigger
            Controller.SavePositionTrigger = new ToolStripMenuItemPresentation(this.toolStripSavePositions);

            // Ok.
            Controller.OkTrigger = new ButtonPresentation(this.bOk);
            // Cancel.
            Controller.CancelTrigger = new ButtonPresentation(this.bCancel);

            // Initialize controller.
            Controller.Initialize();

            return Controller;
        }
        /// <summary>
        /// Initializes the 'SIU_create_instanceIT' instance form.
        /// </summary>
        /// <param name="exchangeInfo">Exchange information</param>
        /// <returns>IUServiceController</returns>
        public IUServiceController Initialize(ExchangeInfo exchangeInfo)
        {
            Controller = ControllerFactory.Revision.Service_create_instanceInbound(exchangeInfo, null);

            // Scenario.
            Controller.Scenario = new ScenarioPresentation(this, ScenarioType.Service);
            ArgumentDVController lArgumentDataValued = null;

            // p_atrid_RevisarAeronave
            lArgumentDataValued = Controller.InputFields["p_atrid_RevisarAeronave"] as ArgumentDVController;
            lArgumentDataValued.Label = new LabelPresentation(this.lp_atrid_RevisarAeronave);
            lArgumentDataValued.Editor = new AutonumericPresentation(this.maskedTextBoxp_atrid_RevisarAeronave, this.lp_atrid_RevisarAeronaveAuto, this.checkBoxp_atrid_RevisarAeronaveAuto);

            // p_atrFechaRevision
            lArgumentDataValued = Controller.InputFields["p_atrFechaRevision"] as ArgumentDVController;
            lArgumentDataValued.Label = new LabelPresentation(this.lp_atrFechaRevision);
            lArgumentDataValued.Editor = new DateTimePickerPresentation(this.maskedTextBoxp_atrFechaRevision, this.dtpp_atrFechaRevision);

            // p_atrNombreRevisor
            lArgumentDataValued = Controller.InputFields["p_atrNombreRevisor"] as ArgumentDVController;
            lArgumentDataValued.Label = new LabelPresentation(this.lp_atrNombreRevisor);
            lArgumentDataValued.Editor = new TextBoxPresentation(this.textBoxp_atrNombreRevisor);

            // p_atrId_Aeronave
            lArgumentDataValued = Controller.InputFields["p_atrId_Aeronave"] as ArgumentDVController;
            lArgumentDataValued.Label = new LabelPresentation(this.lp_atrId_Aeronave);
            lArgumentDataValued.Editor = new TextBoxPresentation(this.textBoxp_atrId_Aeronave);

            // Ok.
            Controller.OkTrigger = new ButtonPresentation(this.bOk);

            // Cancel.
            Controller.CancelTrigger = new ButtonPresentation(this.bCancel);

            Controller.Initialize();

            return Controller;
        }
示例#7
0
 /// <summary>
 /// Returns the Role name of the last navigation done.
 /// </summary>
 /// <param name="info">Exchange info.</param>
 /// <returns>string.</returns>
 private string GetLastNavigationRole(ExchangeInfo info)
 {
     if (info == null)
     {
         return string.Empty;
     }
     // Stop condition: If the ExchangeType is diferent than Navigation
     if (info.ExchangeType == ExchangeType.Navigation)
     {
         return ((ExchangeInfoNavigation)info).RolePath;
     }
     else
     {
         return string.Empty;
     }
 }
示例#8
0
 public static bool HasSelectedOids(ExchangeInfo exchangeInfo)
 {
     return (exchangeInfo.SelectedOids != null && exchangeInfo.SelectedOids.Count > 0);
 }
示例#9
0
 public static bool IsNavigation(ExchangeInfo exchangeInfo)
 {
     return (exchangeInfo.ExchangeType == ExchangeType.Navigation);
 }
示例#10
0
 /// <summary>
 /// Initalizes a new instance of the 'IUServiceContext' class.
 /// </summary>
 /// <param name="exchangeInfo">Exchange information.</param>
 /// <param name="className">Class name.</param>
 /// <param name="serviceName">Sevice name.</param>
 /// <param name="iuName">Interaction unit name.</param>
 /// <param name="isOutputFieldsScenario">Boolean value indicating whether the scenario is an output fields scenario.</param>
 public IUServiceContext(ExchangeInfo exchangeInfo, string className, string serviceName, string iuName, bool isOutputFieldsScenario)
     : this(exchangeInfo, className, serviceName, iuName)
 {
     IsOutputFieldsScenario = isOutputFieldsScenario;
 }
示例#11
0
 /// <summary>
 /// Initializes a new instance of the 'IUClassContext' class.
 /// </summary>
 /// <param name="exchangeInfo">Exchange information.</param>
 /// <param name="contextType">Context type.</param>
 /// <param name="className">Class name.</param>
 /// <param name="iuName">Interaction unit name.</param>
 public IUClassContext(ExchangeInfo exchangeInfo, ContextType contextType, string className, string iuName)
     : base(exchangeInfo, contextType, iuName)
 {
     ClassName = className;
 }
示例#12
0
 /// <summary>
 /// Initializes a new instance of the 'IUInputFieldsContext' class.
 /// </summary>
 /// <param name="exchangeInfo">Exchange information.</param>
 /// <param name="className">Class name.</param>
 /// <param name="containerName">Container name.</param>
 /// <param name="iuPatternName">Interaction unit name.</param>
 public IUInputFieldsContext(ExchangeInfo exchangeInfo, string className, string containerName, string iuPatternName)
     : base(exchangeInfo, ContextType.InputFields, className, iuPatternName)
 {
     ContainerName = containerName;
 }
示例#13
0
        /// <summary>
        /// Creates the specific IUPopulationController of the '_Auto_' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">IUPopulationContext reference.</param>
        /// <returns>Specific IUPopulationController of the '_Auto_' IU pattern.</returns>
        public static IUPopulationController Population__Auto_(ExchangeInfo exchangeInfo)
        {
            IUPopulationContext lContext = new IUPopulationContext(exchangeInfo,"Revision", "_Auto_");
            // Block size.
            lContext.BlockSize = 40;
            IUPopulationController lController = new IUPopulationController("_Auto_", "Revision", "Clas_1348178542592347UIPobCl_Auto_Alias", lContext, null);

            // Action _Auto_.
            lController.Action = Revision.Action__Auto_(lController);
            // Navigation _Auto_.
            lController.Navigation = Revision.Navigation__Auto_(lController);
            // DisplaySet '_Auto_'.
            DisplaySetByBlocksController lDisplaySetByBlocksController = new DisplaySetByBlocksController(Revision.DisplaySet__Auto_(lController));
            lDisplaySetByBlocksController.DisplaySetList.Add(Revision.DisplaySet__Auto_(lController).CurrentDisplaySet);
            lController.DisplaySet = lDisplaySetByBlocksController;
            // Get user preferences for this scenario.
            lController.SetPreferences(Logic.UserPreferences.GetScenarioPrefs("Revision:_Auto_") as PopulationPrefs);

            return lController;
        }
示例#14
0
        /// <summary>
        /// Creates the specific IUInstanceController of the '_Auto_' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">IUInstanceContext reference.</param>
        /// <returns>Specific IUInstanceController of the '_Auto_' IU pattern.</returns>
        public static IUInstanceController Instance__Auto_(ExchangeInfo exchangeInfo)
        {
            IUInstanceContext lContext = new IUInstanceContext(exchangeInfo,"Pasajero", "_Auto_");
            IUInstanceController lController = new IUInstanceController("_Auto_", "Pasajero", "Clas_1348178542592658UIInst_1_Alias" ,lContext,null);

            // Action _Auto_.
            lController.Action = Pasajero.Action__Auto_(lController);
            // Navigation _Auto_.
            lController.Navigation = Pasajero.Navigation__Auto_(lController);
            // DisplaySet '_Auto_'.
            DisplaySetController lDisplaySetController = Pasajero.DisplaySet__Auto_(lController);
            lController.DisplaySet = lDisplaySetController;

            // Oid selector.
            lController.OidSelector = new ArgumentOVController("oidSelector", "Pasajero", "Clas_1348178542592658_Alias", "Pasajero", false, false, false, typeof(InteractionToolkit.Pasajero.IUPopulations.PIU_PasajeroIT).FullName, null, "", null);

            // Get User preferences.
            lController.SetPreferences(Logic.UserPreferences.GetScenarioPrefs("Pasajero:_Auto_") as InstancePrefs);

            return lController;
        }
示例#15
0
        /// <summary>
        /// Creates the specific IUMasterDetailController of the 'MDIU_PasajeroAeronave' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">Exchange information received.</param>
        /// <returns>Specific IUMasterDetailController of the 'MDIU_PasajeroAeronave' IU pattern.</returns>
        public static IUMasterDetailController MasterDetail_MDIU_PasajeroAeronave(ExchangeInfo exchangeInfo)
        {
            IUMasterDetailContext lContext = new IUMasterDetailContext("PasajeroAeronave", "MDIU_PasajeroAeronave");
            IUMasterDetailController lController = new IUMasterDetailController("MDIU_PasajeroAeronave", "PasajeroAeronave", "Clas_1348178542592177UIMaDet_1_Alias", lContext, null);

            // Master interaction unit.
            lController.Master = Instance_IIU_PasajeroAeronave(exchangeInfo);

            // Detail interaction units.
            ExchangeInfoNavigation infoDetail0 = new ExchangeInfoNavigation("Pasajero", "", "PasajeroAeronave","", null, null, "");
            lController.AddDetail(Pasajero.Population_PIU_Pasajero(infoDetail0), "Pasajero", "Clas_1348178542592177UIMaDet_1Det_2_Alias");

            return lController;
        }
示例#16
0
 /// <summary>
 /// Initalizes a new instance of the 'IUFilterContext' class.
 /// </summary>
 /// <param name="exchangeInfo">Exchange information.</param>
 /// <param name="className">Class name.</param>
 /// <param name="filterName">Filter name.</param>
 public IUFilterContext(ExchangeInfo exchangeInfo, string className, string filterName)
     : base(exchangeInfo, className, filterName, string.Empty)
 {
     ContextType = ContextType.Filter;
 }
示例#17
0
 /// <summary>
 /// Initalizes a new instance of the 'IUFilterContext' class.
 /// </summary>
 /// <param name="exchangeInfo">Exchange information.</param>
 /// <param name="className">Class name.</param>
 /// <param name="filterName">Filter name.</param>
 public IUFilterContext(ExchangeInfo exchangeInfo, string className, string filterName)
     : base(exchangeInfo, className, filterName, string.Empty)
 {
     ContextType = ContextType.Filter;
 }
 /// <summary>
 /// Initializes a new instance of the 'IUInputFieldsContext' class.
 /// </summary>
 /// <param name="exchangeInfo">Exchange information.</param>
 /// <param name="className">Class name.</param>
 /// <param name="containerName">Container name.</param>
 /// <param name="iuPatternName">Interaction unit name.</param>
 public IUInputFieldsContext(ExchangeInfo exchangeInfo, string className, string containerName, string iuPatternName)
     : base(exchangeInfo, ContextType.InputFields, className, iuPatternName)
 {
     ContainerName = containerName;
 }
示例#19
0
 /// <summary>
 /// Initializes a new instance of the 'IUContext' class.
 /// </summary>
 /// <param name="exchangeInfo">Exchange information.</param>
 /// <param name="contextType">Context type.</param>
 /// <param name="iuName">Interaction unit name.</param>
 public IUContext(ExchangeInfo exchangeInfo, ContextType contextType, string iuName)
 {
     ExchangeInformation = exchangeInfo;
     ContextType = contextType;
     mIuName = iuName;
 }
示例#20
0
        /// <summary>
        /// Creates the specific IUServiceController of the 'create_instance' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">IUServiceController reference.</param>
        /// <returns>Specific IUServiceController of the 'create_instance' IU pattern.</returns>
        public static IUServiceController Service_create_instanceInbound(ExchangeInfo exchangeInfo, IUController parentController)
        {
            string[] lAgentsService = { Agents.Administrador };
            IUServiceContext lContext = new IUServiceContext(exchangeInfo, "Revision", "create_instance", "SIU_create_instance");
            IUServiceController lController = new IUServiceController("create_instance", "New", "Clas_1348178542592347Ser_1_Alias", lAgentsService, "Revision", "create_instance", lContext, null);

            // This controller is an InboundArgument controller.
            lController.IsOutboundArgumentController = false;

            #region Inbound arguments
            IArguments InboundArguments = lController.InputFields;
            // Argument p_atrid_RevisarAeronave.
            InboundArguments.Add(new ArgumentDVController("p_atrid_RevisarAeronave", "id_RevisarAeronave", "Clas_1348178542592347Ser_1UIServ_1ElemAgrup_1_Alias", ModelType.Autonumeric, 0, false, null, lController));
             			// Argument p_atrFechaRevision.
            InboundArguments.Add(new ArgumentDVController("p_atrFechaRevision", "FechaRevision", "Clas_1348178542592347Ser_1UIServ_1ElemAgrup_3_Alias", ModelType.Date, 0, false, null, lController));
             			// Argument p_atrNombreRevisor.
            InboundArguments.Add(new ArgumentDVController("p_atrNombreRevisor", "NombreRevisor", "Clas_1348178542592347Ser_1UIServ_1ElemAgrup_4_Alias", ModelType.String, 100, false, null, lController));
             			// Argument p_atrId_Aeronave.
            InboundArguments.Add(new ArgumentDVController("p_atrId_Aeronave", "Id_Aeronave", "Clas_1348178542592347Ser_1UIServ_1ElemAgrup_5_Alias", ModelType.String, 100, false, null, lController));
             			#endregion Inbound arguments

            #region Outbound arguments
            // If the service has outbound arguments, the outbound arguments scenario is set here; otherwise, null.
            lController.OutboundArgumentsScenario = null;
            #endregion Outbound arguments

            return lController;
        }
示例#21
0
 /// <summary>
 /// Returns the Oids of the last navigation done.
 /// </summary>
 /// <param name="info">Exchange info.</param>
 /// <returns>List<Oid>.</returns>
 private List<Oid> GetLastNavigationRoleOids(ExchangeInfo info)
 {
     if (info == null)
     {
         return null;
     }
     // Stop condition: If the ExchangeType is diferent than Navigation
     if (info.ExchangeType == ExchangeType.Navigation)
     {
         return ((ExchangeInfoNavigation)info).SelectedOids;
     }
     else
     {
         return null;
     }
 }
示例#22
0
        /// <summary>
        /// Creates the specific IUInstanceController of the '_Auto_' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">IUInstanceContext reference.</param>
        /// <returns>Specific IUInstanceController of the '_Auto_' IU pattern.</returns>
        public static IUInstanceController Instance__Auto_(ExchangeInfo exchangeInfo)
        {
            IUInstanceContext lContext = new IUInstanceContext(exchangeInfo,"NaveNodriza", "_Auto_");
            IUInstanceController lController = new IUInstanceController("_Auto_", "NaveNodriza", "Clas_1347649273856884UIInst_1_Alias" ,lContext,null);

            // Action _Auto_.
            lController.Action = NaveNodriza.Action__Auto_(lController);
            // DisplaySet '_Auto_'.
            DisplaySetController lDisplaySetController = NaveNodriza.DisplaySet__Auto_(lController);
            lController.DisplaySet = lDisplaySetController;

            // Oid selector.
            lController.OidSelector = new ArgumentOVController("oidSelector", "NaveNodriza", "Clas_1347649273856884_Alias", "NaveNodriza", false, false, false, typeof(InteractionToolkit.NaveNodriza.IUPopulations.PIU_NaveNodrizaIT).FullName, null, "", null);

            // Get User preferences.
            lController.SetPreferences(Logic.UserPreferences.GetScenarioPrefs("NaveNodriza:_Auto_") as InstancePrefs);

            return lController;
        }
 /// <summary>
 /// Initializes a new instance of the 'IUInstanceContext' class.
 /// </summary>
 /// <param name="info">Info.</param>
 /// <param name="className">Class name.</param>
 /// <param name="iuName">IU name.</param>
 public IUInstanceContext(ExchangeInfo info, string className, string iuName)
     : base(info, ContextType.Instance, className, iuName)
 {
 }
示例#24
0
        /// <summary>
        /// Creates the specific IUServiceController of the 'create_instance' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">IUServiceController reference.</param>
        /// <returns>Specific IUServiceController of the 'create_instance' IU pattern.</returns>
        public static IUServiceController Service_create_instanceInbound(ExchangeInfo exchangeInfo, IUController parentController)
        {
            string[] lAgentsService = { Agents.Administrador };
            IUServiceContext lContext = new IUServiceContext(exchangeInfo, "NaveNodriza", "create_instance", "Crear_NaveNodriza");
            IUServiceController lController = new IUServiceController("create_instance", "New", "Clas_1347649273856884Ser_1_Alias", lAgentsService, "NaveNodriza", "create_instance", lContext, null);

            // This controller is an InboundArgument controller.
            lController.IsOutboundArgumentController = false;

            #region Inbound arguments
            IArguments InboundArguments = lController.InputFields;
            // Argument p_atrid_NaveNodriza.
            InboundArguments.Add(new ArgumentDVController("p_atrid_NaveNodriza", "id_NaveNodriza", "Clas_1347649273856884Ser_1UIServ_1ElemAgrup_1_Alias", ModelType.Autonumeric, 0, false, null, lController));
             			// Argument p_atrNombre_NaveNodriza.
            InboundArguments.Add(new ArgumentDVController("p_atrNombre_NaveNodriza", "Nombre_NaveNodriza", "Clas_1347649273856884Ser_1UIServ_1ElemAgrup_2_Alias", ModelType.String, 100, false, null, lController));
             			#endregion Inbound arguments

            #region Outbound arguments
            // If the service has outbound arguments, the outbound arguments scenario is set here; otherwise, null.
            lController.OutboundArgumentsScenario = null;
            #endregion Outbound arguments

            return lController;
        }
示例#25
0
        /// <summary>
        /// Creates the specific IUServiceController of the 'create_instance' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">IUServiceController reference.</param>
        /// <returns>Specific IUServiceController of the 'create_instance' IU pattern.</returns>
        public static IUServiceController Service_create_instanceInbound(ExchangeInfo exchangeInfo, IUController parentController)
        {
            string[] lAgentsService = { Agents.Administrador };
            IUServiceContext lContext = new IUServiceContext(exchangeInfo, "Pasajero", "create_instance", "SIU_create_instance");
            IUServiceController lController = new IUServiceController("create_instance", "New", "Clas_1348178542592658Ser_1_Alias", lAgentsService, "Pasajero", "create_instance", lContext, null);

            // This controller is an InboundArgument controller.
            lController.IsOutboundArgumentController = false;

            #region Inbound arguments
            IArguments InboundArguments = lController.InputFields;
            // Argument p_atrid_Pasajero.
            InboundArguments.Add(new ArgumentDVController("p_atrid_Pasajero", "id_Pasajero", "Clas_1348178542592658Ser_1UIServ_1ElemAgrup_1_Alias", ModelType.Autonumeric, 0, false, null, lController));
             			// Argument p_atrNombre.
            InboundArguments.Add(new ArgumentDVController("p_atrNombre", "Nombre", "Clas_1348178542592658Ser_1UIServ_1ElemAgrup_2_Alias", ModelType.Text, 0, false, null, lController));
             			// Argument p_agrPasajeroAeronave.
            InboundArguments.Add(new ArgumentOVController("p_agrPasajeroAeronave", "PasajeroAeronave", "Clas_1348178542592658Ser_1UIServ_1ElemAgrup_4_Alias", "PasajeroAeronave", false, false, false , typeof(InteractionToolkit.PasajeroAeronave.IUPopulations.PIU_PasajeroAeronaveIT).FullName, null, "", lController));
            #endregion Inbound arguments

            #region Outbound arguments
            // If the service has outbound arguments, the outbound arguments scenario is set here; otherwise, null.
            lController.OutboundArgumentsScenario = null;
            #endregion Outbound arguments

            return lController;
        }
示例#26
0
        /// <summary>
        /// Creates the specific IUInstanceController of the 'IIU_Revision' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">IUInstanceContext reference.</param>
        /// <returns>Specific IUInstanceController of the 'IIU_Revision' IU pattern.</returns>
        public static IUInstanceController Instance_IIU_Revision(ExchangeInfo exchangeInfo)
        {
            IUInstanceContext lContext = new IUInstanceContext(exchangeInfo,"Revision", "IIU_Revision");
            IUInstanceController lController = new IUInstanceController("IIU_Revision", "Revision", "Clas_1348178542592347UIInst_1_Alias" ,lContext,null);

            // Action _Auto_.
            lController.Action = Revision.Action__Auto_(lController);
            // Navigation _Auto_.
            lController.Navigation = Revision.Navigation__Auto_(lController);
            // DisplaySet '_Auto_'.
            DisplaySetController lDisplaySetController = Revision.DisplaySet__Auto_(lController);
            lController.DisplaySet = lDisplaySetController;

            // Oid selector.
            lController.OidSelector = new ArgumentOVController("oidSelector", "Revision", "Clas_1348178542592347_Alias", "Revision", false, false, false, typeof(InteractionToolkit.Revision.IUPopulations._Auto_IT).FullName, null, "", null);

            // Get User preferences.
            lController.SetPreferences(Logic.UserPreferences.GetScenarioPrefs("Revision:IIU_Revision") as InstancePrefs);

            return lController;
        }
示例#27
0
        /// <summary>
        /// Creates the specific IUPopulationController of the 'PIU_Pasajero' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">IUPopulationContext reference.</param>
        /// <returns>Specific IUPopulationController of the 'PIU_Pasajero' IU pattern.</returns>
        public static IUPopulationController Population_PIU_Pasajero(ExchangeInfo exchangeInfo)
        {
            IUPopulationContext lContext = new IUPopulationContext(exchangeInfo,"Pasajero", "PIU_Pasajero");
            // Block size.
            lContext.BlockSize = 40;
            IUPopulationController lController = new IUPopulationController("PIU_Pasajero", "Pasajero", "Clas_1348178542592658UIPobCl_1_Alias", lContext, null);

            // Action _Auto_.
            lController.Action = Pasajero.Action__Auto_(lController);
            // Navigation _Auto_.
            lController.Navigation = Pasajero.Navigation__Auto_(lController);
            // DisplaySet '_Auto_'.
            DisplaySetByBlocksController lDisplaySetByBlocksController = new DisplaySetByBlocksController(Pasajero.DisplaySet__Auto_(lController));
            lController.DisplaySet = lDisplaySetByBlocksController;
            // Get user preferences for this scenario.
            lController.SetPreferences(Logic.UserPreferences.GetScenarioPrefs("Pasajero:PIU_Pasajero") as PopulationPrefs);

            return lController;
        }
示例#28
0
 /// <summary>
 /// Initializes a new instance of the 'DestinationInfo' class.
 /// </summary>
 /// <param name="exchangeInfo">Exchange information.</param>
 /// <param name="associatedText">Associated text.</param>
 public DestinationInfo(ExchangeInfo exchangeInfo, string associatedText)
 {
     ExchangeInfo = exchangeInfo;
     AssociatedText = associatedText;
 }
示例#29
0
        /// <summary>
        /// Creates the specific IUServiceController of the 'delete_instance' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">IUServiceController reference.</param>
        /// <returns>Specific IUServiceController of the 'delete_instance' IU pattern.</returns>
        public static IUServiceController Service_delete_instanceInbound(ExchangeInfo exchangeInfo, IUController parentController)
        {
            string[] lAgentsService = { Agents.Administrador };
            IUServiceContext lContext = new IUServiceContext(exchangeInfo, "Pasajero", "delete_instance", "SIU_delete_instance");
            IUServiceController lController = new IUServiceController("delete_instance", "Destroy", "Clas_1348178542592658Ser_2_Alias", lAgentsService, "Pasajero", "delete_instance", lContext, null, false);

            // This controller is an InboundArgument controller.
            lController.IsOutboundArgumentController = false;

            #region Inbound arguments
            IArguments InboundArguments = lController.InputFields;
            ArgumentOVController lArgument = null;
            // Argument p_thisPasajero.
            lArgument = new ArgumentOVController("p_thisPasajero", "Pasajero", "Clas_1348178542592658Ser_2UIServ_1ElemAgrup_1_Alias", "Pasajero", false, true, false, typeof(InteractionToolkit.Pasajero.IUPopulations.PIU_PasajeroIT).FullName, null, "", lController);
            lController.ArgumentThis = lArgument;
            InboundArguments.Add(lArgument);
            #endregion Inbound arguments

            #region Outbound arguments
            // If the service has outbound arguments, the outbound arguments scenario is set here; otherwise, null.
            lController.OutboundArgumentsScenario = null;
            #endregion Outbound arguments

            return lController;
        }
示例#30
0
 /// <summary>
 /// Initializes a new instance of the 'IUContext' class.
 /// </summary>
 /// <param name="exchangeInfo">Exchange information.</param>
 /// <param name="contextType">Context type.</param>
 /// <param name="iuName">Interaction unit name.</param>
 public IUContext(ExchangeInfo exchangeInfo, ContextType contextType, string iuName)
 {
     ExchangeInformation = exchangeInfo;
     ContextType         = contextType;
     mIuName             = iuName;
 }
示例#31
0
        /// <summary>
        /// Creates the specific IUPopulationController of the 'PIU_NaveNodriza' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">IUPopulationContext reference.</param>
        /// <returns>Specific IUPopulationController of the 'PIU_NaveNodriza' IU pattern.</returns>
        public static IUPopulationController Population_PIU_NaveNodriza(ExchangeInfo exchangeInfo)
        {
            IUPopulationContext lContext = new IUPopulationContext(exchangeInfo,"NaveNodriza", "PIU_NaveNodriza");
            // Block size.
            lContext.BlockSize = 40;
            IUPopulationController lController = new IUPopulationController("PIU_NaveNodriza", "PIU_NaveNodriza", "Clas_1347649273856884UIPobCl_1_Alias", lContext, null);

            // Action _Auto_.
            lController.Action = NaveNodriza.Action__Auto_(lController);
            // DisplaySet '_Auto_'.
            DisplaySetByBlocksController lDisplaySetByBlocksController = new DisplaySetByBlocksController(NaveNodriza.DisplaySet__Auto_(lController));
            lController.DisplaySet = lDisplaySetByBlocksController;
            // Get user preferences for this scenario.
            lController.SetPreferences(Logic.UserPreferences.GetScenarioPrefs("NaveNodriza:PIU_NaveNodriza") as PopulationPrefs);

            return lController;
        }
示例#32
0
 /// <summary>
 /// Initializes a new instance of the 'IUInstanceContext' class.
 /// </summary>
 /// <param name="info">Info.</param>
 /// <param name="className">Class name.</param>
 /// <param name="iuName">IU name.</param>
 public IUInstanceContext(ExchangeInfo info, string className, string iuName)
     : base(info, ContextType.Instance, className, iuName)
 {
 }
示例#33
0
        /// <summary>
        /// Creates the specific IUServiceController of the 'edit_instance' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">IUServiceController reference.</param>
        /// <returns>Specific IUServiceController of the 'edit_instance' IU pattern.</returns>
        public static IUServiceController Service_edit_instanceInbound(ExchangeInfo exchangeInfo, IUController parentController)
        {
            string[] lAgentsService = { Agents.Administrador };
            IUServiceContext lContext = new IUServiceContext(exchangeInfo, "NaveNodriza", "edit_instance", "SIU_edit_instance");
            IUServiceController lController = new IUServiceController("edit_instance", "Edit", "Clas_1347649273856884Ser_3_Alias", lAgentsService, "NaveNodriza", "edit_instance", lContext, null, false);

            // This controller is an InboundArgument controller.
            lController.IsOutboundArgumentController = false;

            #region Inbound arguments
            IArguments InboundArguments = lController.InputFields;
            ArgumentOVController lArgument = null;
            // Argument p_thisNaveNodriza.
            lArgument = new ArgumentOVController("p_thisNaveNodriza", "NaveNodriza", "Clas_1347649273856884Ser_3UIServ_1ElemAgrup_1_Alias", "NaveNodriza", false, true, false, typeof(InteractionToolkit.NaveNodriza.IUPopulations.PIU_NaveNodrizaIT).FullName, null, "", lController);
            lController.ArgumentThis = lArgument;
            InboundArguments.Add(lArgument);
            #endregion Inbound arguments

            #region Outbound arguments
            // If the service has outbound arguments, the outbound arguments scenario is set here; otherwise, null.
            lController.OutboundArgumentsScenario = null;
            #endregion Outbound arguments

            return lController;
        }
示例#34
0
 /// <summary>
 /// Initalizes a new instance of the 'IUServiceContext' class.
 /// </summary>
 /// <param name="exchangeInfo">Exchange information.</param>
 /// <param name="className">Class name.</param>
 /// <param name="serviceName">Sevice name.</param>
 /// <param name="iuName">IU name.</param>
 public IUServiceContext(ExchangeInfo exchangeInfo, string className, string serviceName, string iuName)
     : base(exchangeInfo, className, serviceName, iuName)
 {
     ContextType = ContextType.Service;
 }