/// <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); }