/// <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>
        /// Constructor from controller factory
        /// </summary>
        /// <param name="serviceController">Associated Service controller</param>
        /// <param name="argumentDisplaySetPairs">Pairs Argument name - Attribute in DIsplaySet name</param>
        public DisplaySetServiceInfo(IUServiceController serviceController, Dictionary<string, string> argumentDisplaySetPairs)
        {
            mServiceName = serviceController.Context.ServiceName;
            mClassServiceName = serviceController.Context.ClassName;
            mAgents = serviceController.Agents;
            mServiceAlias = CultureManager.TranslateString(serviceController.IdXML, serviceController.Alias);
            foreach (ArgumentController argument in serviceController.InputFields)
            {
                ArgumentDVController argumentDV = argument as ArgumentDVController;

                if (argumentDV != null)
                {
                    // Multilanguage for the Alias argument
                    string alias = CultureManager.TranslateString(argument.IdXML, argument.Alias);
                    string dsElementName = argumentDisplaySetPairs[argumentDV.Name];
                    // Add the new pair to the list
                    DisplaySetServiceArgumentInfo argumentInfo = new DisplaySetServiceArgumentInfo(argumentDV.Name, dsElementName, argumentDV.ModelType, alias, argumentDV.NullAllowed);
                    this.ArgumentDisplaySetPairs.Add(argumentDV.Name, argumentInfo);
                }
                else
                {
                    ArgumentOVController lOVArgument = argument as ArgumentOVController;
                    if (lOVArgument != null && lOVArgument.AlternateKeyName != string.Empty)
                    {
                        SelectedInstanceArgumentAlternateKeyName = lOVArgument.AlternateKeyName;
                    }

                    SelectedInstanceArgumentName = argument.Name;
                    // Multilanguage for the Alias argument
                    SelectedInstanceArgumentAlias = CultureManager.TranslateString(argument.IdXML, argument.Alias);
                }
            }
        }
        /// <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;
        }
        /// <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;
        }
Пример #6
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;
        }
Пример #7
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;
        }
Пример #8
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;
        }
Пример #9
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;
        }
Пример #10
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;
        }