/// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
        /// <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);
        }