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

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

            // p_thisPasajero
            lArgumentObjectValued            = Controller.InputFields["p_thisPasajero"] as ArgumentOVController;
            lArgumentObjectValued.Label      = new LabelPresentation(this.lp_thisPasajero);
            lArgumentObjectValued.Editors[0] = new MaskedTextBoxPresentation(this.maskedTextBoxp_thisPasajeroid_Pasajero1);
            lArgumentObjectValued.Trigger    = new ButtonPresentation(this.bp_thisPasajero);
            if (lArgumentObjectValued.SupplementaryInfo != null)
            {
                lArgumentObjectValued.SupplementaryInfo.Viewer = new LabelDisplaySetPresentation(this.lp_thisPasajeroSupInfo);
            }

            // 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);
        }
Esempio n. 2
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, "PasajeroAeronave", "edit_instance", "SIU_edit_instance");
            IUServiceController lController    = new IUServiceController("edit_instance", "Edit", "Clas_1348178542592177Ser_3_Alias", lAgentsService, "PasajeroAeronave", "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_thisPasajeroAeronave.
            lArgument = new ArgumentOVController("p_thisPasajeroAeronave", "PasajeroAeronave", "Clas_1348178542592177Ser_3UIServ_1ElemAgrup_1_Alias", "PasajeroAeronave", false, true, false, typeof(InteractionToolkit.PasajeroAeronave.IUPopulations.PIU_PasajeroAeronaveIT).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);
        }
Esempio n. 3
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, "NaveNodriza", "delete_instance", "SIU_delete_instance");
            IUServiceController lController    = new IUServiceController("delete_instance", "Destroy", "Clas_1347649273856884Ser_2_Alias", lAgentsService, "NaveNodriza", "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_thisNaveNodriza.
            lArgument = new ArgumentOVController("p_thisNaveNodriza", "NaveNodriza", "Clas_1347649273856884Ser_2UIServ_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);
        }
Esempio n. 4
0
        /// <summary>
        /// Initializes the 'Crear_AeronaveIT' instance form.
        /// </summary>
        /// <param name="exchangeInfo">Exchange information</param>
        /// <returns>IUServiceController</returns>
        public IUServiceController Initialize(ExchangeInfo exchangeInfo)
        {
            Controller = ControllerFactory.Aeronave.Service_create_instanceInbound(exchangeInfo, null);

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

            // p_atrid_Aeronave
            lArgumentDataValued        = Controller.InputFields["p_atrid_Aeronave"] as ArgumentDVController;
            lArgumentDataValued.Label  = new LabelPresentation(this.lp_atrid_Aeronave);
            lArgumentDataValued.Editor = new AutonumericPresentation(this.maskedTextBoxp_atrid_Aeronave, this.lp_atrid_AeronaveAuto, this.checkBoxp_atrid_AeronaveAuto);

            // p_atrNombre
            lArgumentDataValued        = Controller.InputFields["p_atrNombre"] as ArgumentDVController;
            lArgumentDataValued.Label  = new LabelPresentation(this.lp_atrNombre);
            lArgumentDataValued.Editor = new TextBoxPresentation(this.textBoxp_atrNombre, this.bp_atrNombreEnlarge);

            // p_atrMaximoPasajeros
            lArgumentDataValued        = Controller.InputFields["p_atrMaximoPasajeros"] as ArgumentDVController;
            lArgumentDataValued.Label  = new LabelPresentation(this.lp_atrMaximoPasajeros);
            lArgumentDataValued.Editor = new MaskedTextBoxPresentation(this.maskedTextBoxp_atrMaximoPasajeros);

            // p_atrOrigen
            lArgumentDataValued        = Controller.InputFields["p_atrOrigen"] as ArgumentDVController;
            lArgumentDataValued.Label  = new LabelPresentation(this.lp_atrOrigen);
            lArgumentDataValued.Editor = new TextBoxPresentation(this.textBoxp_atrOrigen, this.bp_atrOrigenEnlarge);

            // p_atrDestino
            lArgumentDataValued        = Controller.InputFields["p_atrDestino"] as ArgumentDVController;
            lArgumentDataValued.Label  = new LabelPresentation(this.lp_atrDestino);
            lArgumentDataValued.Editor = new TextBoxPresentation(this.textBoxp_atrDestino, this.bp_atrDestinoEnlarge);

            // p_agrPasajeroAeronave
            lArgumentObjectValued            = Controller.InputFields["p_agrPasajeroAeronave"] as ArgumentOVController;
            lArgumentObjectValued.Label      = new LabelPresentation(this.lp_agrPasajeroAeronave);
            lArgumentObjectValued.Editors[0] = new MaskedTextBoxPresentation(this.maskedTextBoxp_agrPasajeroAeronaveid_PasajeroAeronave1);
            lArgumentObjectValued.Trigger    = new ButtonPresentation(this.bp_agrPasajeroAeronave);
            if (lArgumentObjectValued.SupplementaryInfo != null)
            {
                lArgumentObjectValued.SupplementaryInfo.Viewer = new LabelDisplaySetPresentation(this.lp_agrPasajeroAeronaveSupInfo);
            }

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

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

            Controller.Initialize();

            return(Controller);
        }
Esempio n. 5
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;
        }
Esempio n. 6
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;
        }