/// <summary>
        /// Initializes a new instance of the 'ArgumentOVController' class.
        /// </summary>
        /// <param name="name">Name of the object-valued Argument.</param>
        /// <param name="alias">Alias of the object-valued Argument.</param>
        /// <param name="idxml">IdXML of the object-valued Argument.</param>
        /// <param name="domain">Domain or class name of the object-valued Argument.</param>
        /// <param name="nullAllowed">Indicates whether the object-valued Argument allows null values.</param>
        /// <param name="multipleSelectionAllowed">Indicates whether the object-valued Argument allows multiple values.</param>
        /// <param name="isNavigationalFilter">Indicates whether the object-valued Argument has navigational filtering.</param>
        /// <param name="selectionScenario">Target selection scenario.</param>
        /// <param name="supplementaryInfo">Supplementary information.</param>
        /// <param name="alternateKeyName">AlternateKey's name of the object-valued Argument.</param>
        /// <param name="parent">Parent controller.</param>
        public ArgumentOVController(
            string name,
            string alias,
            string idxml,
            string domain,
            bool nullAllowed,
            bool multiSelectionAllowed,
            bool isNavigationalFilter,
            string selectionScenario,
            DisplaySetController supplementaryInfo,
            string alternateKeyName,
            IUController parent)
            : base(name, alias, idxml, domain, nullAllowed, multiSelectionAllowed, parent)
        {
            mSelectionScenario     = selectionScenario;
            mNavigationalFiltering = isNavigationalFilter;
            if (supplementaryInfo == null)
            {
                // Message that shows the number of selected elements (only in multiselelection).
                DisplaySetController lDisplaySetController = new DisplaySetController();
                SupplementaryInfo = lDisplaySetController;
            }
            else
            {
                // DisplaySet supplementary information.
                SupplementaryInfo = supplementaryInfo;
            }

            this.AlternateKeyName = alternateKeyName;

            mEditors = new EditorList(this);
        }
 public ArgumentOVController(
     string name,
     string alias,
     string idxml,
     string domain,
     bool nullAllowed,
     bool multiSelectionAllowed,
     bool isNavigationalFilter,
     string selectionScenario,
     DisplaySetController supplementaryInfo,
     IUController parent)
     : this(name, alias, idxml, domain, nullAllowed, multiSelectionAllowed, isNavigationalFilter, selectionScenario, supplementaryInfo, string.Empty, parent)
 {
 }
        /// <summary>
        /// Creates the specific DisplaySetController of the '_Auto_' DisplaySet pattern.
        /// </summary>
        /// <param name="parentController">Parent controller.</param>
        /// <returns>Specific DisplaySetController of the '_Auto_' DisplaySet pattern.</returns>
        public static DisplaySetController DisplaySet__Auto_(SIGEM.Client.Controllers.Controller parentController)
        {
            DisplaySetController lDisplaySetController = new DisplaySetController(parentController);
            DisplaySetInformation lDisplaySetInfo = new DisplaySetInformation("_Auto_");
            string[] lAgentsDSItem0 = { Agents.Administrador };
            lDisplaySetInfo.Add("id_NaveNodriza", "id_NaveNodriza", "Clas_1347649273856884CjtoVis_AutoICtjoVis_1_Alias", ModelType.Autonumeric, lAgentsDSItem0, DefaultFormats.ColWidthAutonumeric);
            string[] lAgentsDSItem1 = { Agents.Administrador };
            lDisplaySetInfo.Add("Nombre_NaveNodriza", "Nombre_NaveNodriza", "Clas_1347649273856884CjtoVis_AutoICtjoVis_2_Alias", ModelType.String, lAgentsDSItem1, DefaultFormats.ColWidthString20);

            lDisplaySetController.CurrentDisplaySet = lDisplaySetInfo;
            return lDisplaySetController;
        }
Exemple #4
0
        /// <summary>
        /// Creates the specific DisplaySetController of the '_Auto_' DisplaySet pattern.
        /// </summary>
        /// <param name="parentController">Parent controller.</param>
        /// <returns>Specific DisplaySetController of the '_Auto_' DisplaySet pattern.</returns>
        public static DisplaySetController DisplaySet__Auto_(SIGEM.Client.Controllers.Controller parentController)
        {
            DisplaySetController lDisplaySetController = new DisplaySetController(parentController);
            DisplaySetInformation lDisplaySetInfo = new DisplaySetInformation("_Auto_");
            string[] lAgentsDSItem0 = { Agents.Administrador };
            lDisplaySetInfo.Add("id_Pasajero", "id_Pasajero", "Clas_1348178542592658CjtoVis_AutoICtjoVis_1_Alias", ModelType.Autonumeric, lAgentsDSItem0, DefaultFormats.ColWidthAutonumeric);
            string[] lAgentsDSItem1 = { Agents.Administrador };
            lDisplaySetInfo.Add("Nombre", "Nombre", "Clas_1348178542592658CjtoVis_AutoICtjoVis_2_Alias", ModelType.Text, lAgentsDSItem1, DefaultFormats.ColWidthText);

            lDisplaySetController.CurrentDisplaySet = lDisplaySetInfo;
            return lDisplaySetController;
        }
 /// <summary>
 /// Configure null data table from display set items metada.
 /// </summary>
 /// <param name="dataTable">dataTable to check if is null.</param>
 /// <param name="displaySet">Display set controller</param>
 /// <returns></returns>
 protected virtual DataTable ConfigureDataTableByDisplaySet(DataTable dataTable, DisplaySetController displaySet)
 {
     if (dataTable == null)
     {
         // Create columns, only for visible elements
         dataTable = new DataTable();
         List<string> lDSElements = new List<string>();
         foreach (DisplaySetItem litem in displaySet.CurrentDisplaySet.DisplaySetItems)
         {
             if (litem.Visible)
             {
                 if (!lDSElements.Contains(litem.Name))
                 {
                     lDSElements.Add(litem.Name);
                     dataTable.Columns.Add(litem.Name);
                 }
             }
         }
     }
     return dataTable;
 }
 /// <summary>
 /// Initializes a new instance of the 'DisplaySetByBlocksController' class.
 /// </summary>
 /// <param name="displaySet">DisplaySet controller</param>
 public DisplaySetByBlocksController(DisplaySetController displaySet)
     : base(displaySet.Parent)
 {
     DisplaySetList    = displaySet.DisplaySetList;
     CurrentDisplaySet = displaySet.CurrentDisplaySet;
 }
Exemple #7
0
 /// <summary>
 /// Configure null data table from display set items metada.
 /// </summary>
 /// <param name="dataTable">dataTable to check if is null.</param>
 /// <param name="displaySet">Display set controller</param>
 /// <returns></returns>
 protected virtual DataTable ConfigureDataTableByDisplaySet(DataTable dataTable, DisplaySetController displaySet)
 {
     if (dataTable == null)
     {
         // Create columns, only for visible elements
         dataTable = new DataTable();
         List <string> lDSElements = new List <string>();
         foreach (DisplaySetItem litem in displaySet.CurrentDisplaySet.DisplaySetItems)
         {
             if (litem.Visible)
             {
                 if (!lDSElements.Contains(litem.Name))
                 {
                     lDSElements.Add(litem.Name);
                     dataTable.Columns.Add(litem.Name);
                 }
             }
         }
     }
     return(dataTable);
 }
 /// <summary>
 /// Initializes a new instance of the 'ArgumentOVPreloadController' class.
 /// </summary>
 /// <param name="name">Name of the object-valued Argument.</param>
 /// <param name="alias">Alias of the object-valued Argument.</param>
 /// <param name="idxml">IdXML of the object-valued Argument.</param>
 /// <param name="domain">Domain or class name of the object-valued Argument.</param>
 /// <param name="nullAllowed">Indicates whether the object-valued Argument allows null values.</param>
 /// <param name="multipleSelectionAllowed">Indicates whether the object-valued Argument allows multiple values.</param>
 /// <param name="editor">DisplaySet.</param>
 /// <param name="orderCriteria">Order criteria.</param>
 /// <param name="parent">Parent controller.</param>
 public ArgumentOVPreloadController(string name, string alias, string idxml, string domain, bool nullAllowed, bool multipleSelectionAllowed, DisplaySetController editor, OrderCriteriaController orderCriteria, IUController parent)
     : base(name, alias, idxml, domain, nullAllowed, multipleSelectionAllowed, parent)
 {
     Editor = editor;
     mOrderCriteria = orderCriteria;
 }
 /// <summary>
 /// Initializes a new instance of the 'ArgumentOVPreloadController' class.
 /// </summary>
 /// <param name="name">Name of the object-valued Argument.</param>
 /// <param name="alias">Alias of the object-valued Argument.</param>
 /// <param name="idxml">IdXML of the object-valued Argument.</param>
 /// <param name="domain">Domain or class name of the object-valued Argument.</param>
 /// <param name="nullAllowed">Indicates whether the object-valued Argument allows null values.</param>
 /// <param name="multipleSelectionAllowed">Indicates whether the object-valued Argument allows multiple values.</param>
 /// <param name="editor">DisplaySet.</param>
 /// <param name="orderCriteria">Order criteria.</param>
 /// <param name="parent">Parent controller.</param>
 public ArgumentOVPreloadController(string name, string alias, string idxml, string domain, bool nullAllowed, bool multipleSelectionAllowed, DisplaySetController editor, OrderCriteriaController orderCriteria, IUController parent)
     : base(name, alias, idxml, domain, nullAllowed, multipleSelectionAllowed, parent)
 {
     Editor         = editor;
     mOrderCriteria = orderCriteria;
 }
Exemple #10
0
        /// <summary>
        /// Creates the specific DisplaySetController of the '_Auto_' DisplaySet pattern.
        /// </summary>
        /// <param name="parentController">Parent controller.</param>
        /// <returns>Specific DisplaySetController of the '_Auto_' DisplaySet pattern.</returns>
        public static DisplaySetController DisplaySet__Auto_(SIGEM.Client.Controllers.Controller parentController)
        {
            DisplaySetController lDisplaySetController = new DisplaySetController(parentController);
            DisplaySetInformation lDisplaySetInfo = new DisplaySetInformation("_Auto_");
            string[] lAgentsDSItem0 = { Agents.Administrador };
            lDisplaySetInfo.Add("id_RevisarAeronave", "id_RevisarAeronave", "Clas_1348178542592347CjtoVis_AutoICtjoVis_1_Alias", ModelType.Autonumeric, lAgentsDSItem0, DefaultFormats.ColWidthAutonumeric);
            string[] lAgentsDSItem1 = { Agents.Administrador };
            lDisplaySetInfo.Add("FechaRevision", "FechaRevision", "Clas_1348178542592347CjtoVis_AutoICtjoVis_2_Alias", ModelType.Date, lAgentsDSItem1, DefaultFormats.ColWidthDate);
            string[] lAgentsDSItem2 = { Agents.Administrador };
            lDisplaySetInfo.Add("NombreRevisor", "NombreRevisor", "Clas_1348178542592347CjtoVis_AutoICtjoVis_3_Alias", ModelType.String, lAgentsDSItem2, DefaultFormats.ColWidthString20);
            string[] lAgentsDSItem3 = { Agents.Administrador };
            lDisplaySetInfo.Add("Id_Aeronave", "Id_Aeronave", "Clas_1348178542592347CjtoVis_AutoICtjoVis_4_Alias", ModelType.String, lAgentsDSItem3, DefaultFormats.ColWidthString20);

            lDisplaySetController.CurrentDisplaySet = lDisplaySetInfo;
            return lDisplaySetController;
        }
Exemple #11
0
        /// <summary>
        /// Creates the specific DisplaySetController of the '_Auto_' DisplaySet pattern.
        /// </summary>
        /// <param name="parentController">Parent controller.</param>
        /// <returns>Specific DisplaySetController of the '_Auto_' DisplaySet pattern.</returns>
        public static DisplaySetController DisplaySet__Auto_(SIGEM.Client.Controllers.Controller parentController)
        {
            DisplaySetController lDisplaySetController = new DisplaySetController(parentController);
            DisplaySetInformation lDisplaySetInfo = new DisplaySetInformation("_Auto_");
            string[] lAgentsDSItem0 = { Agents.Administrador };
            lDisplaySetInfo.Add("id_Aeronave", "id_Aeronave", "Clas_1348178411520734CjtoVis_AutoICtjoVis_1_Alias", ModelType.Autonumeric, lAgentsDSItem0, DefaultFormats.ColWidthAutonumeric);
            string[] lAgentsDSItem1 = { Agents.Administrador };
            lDisplaySetInfo.Add("Nombre", "Nombre", "Clas_1348178411520734CjtoVis_AutoICtjoVis_2_Alias", ModelType.Text, lAgentsDSItem1, DefaultFormats.ColWidthText);
            string[] lAgentsDSItem2 = { Agents.Administrador };
            lDisplaySetInfo.Add("MaximoPasajeros", "MaximoPasajeros", "Clas_1348178411520734CjtoVis_AutoICtjoVis_3_Alias", ModelType.Int, lAgentsDSItem2, DefaultFormats.ColWidthInt);
            string[] lAgentsDSItem3 = { Agents.Administrador };
            lDisplaySetInfo.Add("Origen", "Origen", "Clas_1348178411520734CjtoVis_AutoICtjoVis_4_Alias", ModelType.Text, lAgentsDSItem3, DefaultFormats.ColWidthText);
            string[] lAgentsDSItem4 = { Agents.Administrador };
            lDisplaySetInfo.Add("Destino", "Destino", "Clas_1348178411520734CjtoVis_AutoICtjoVis_5_Alias", ModelType.Text, lAgentsDSItem4, DefaultFormats.ColWidthText);

            lDisplaySetController.CurrentDisplaySet = lDisplaySetInfo;
            return lDisplaySetController;
        }
        /// <summary>
        /// Creates the specific DisplaySetController of the 'DS_PasajeroAeronave' DisplaySet pattern.
        /// </summary>
        /// <param name="parentController">Parent controller.</param>
        /// <returns>Specific DisplaySetController of the 'DS_PasajeroAeronave' DisplaySet pattern.</returns>
        public static DisplaySetController DisplaySet_DS_PasajeroAeronave(SIGEM.Client.Controllers.Controller parentController)
        {
            DisplaySetController lDisplaySetController = new DisplaySetController(parentController);
            DisplaySetInformation lDisplaySetInfo = new DisplaySetInformation("DS_PasajeroAeronave");
            string[] lAgentsDSItem0 = { Agents.Administrador };
            lDisplaySetInfo.Add("Aeronave.id_Aeronave", "id_Aeronave", "Clas_1348178542592177CjtoVis_1ICtjoVis_1_Alias", ModelType.Autonumeric, lAgentsDSItem0, DefaultFormats.ColWidthAutonumeric);

            lDisplaySetController.CurrentDisplaySet = lDisplaySetInfo;
            return lDisplaySetController;
        }
        /// <summary>
        /// Creates the specific DisplaySetController of the 'DS_RevisionPasajero' DisplaySet pattern.
        /// </summary>
        /// <param name="parentController">Parent controller.</param>
        /// <returns>Specific DisplaySetController of the 'DS_RevisionPasajero' DisplaySet pattern.</returns>
        public static DisplaySetController DisplaySet_DS_RevisionPasajero(SIGEM.Client.Controllers.Controller parentController)
        {
            DisplaySetController lDisplaySetController = new DisplaySetController(parentController);
            DisplaySetInformation lDisplaySetInfo = new DisplaySetInformation("DS_RevisionPasajero");
            string[] lAgentsDSItem0 = { Agents.Administrador };
            lDisplaySetInfo.Add("PasajeroAeronave.Aeronave.id_Aeronave", "id_Aeronave", "Clas_1348178673664478CjtoVis_1ICtjoVis_1_Alias", ModelType.Autonumeric, lAgentsDSItem0, DefaultFormats.ColWidthAutonumeric);
            string[] lAgentsDSItem1 = { Agents.Administrador };
            lDisplaySetInfo.Add("PasajeroAeronave.Pasajero.id_Pasajero", "id_Pasajero", "Clas_1348178673664478CjtoVis_1ICtjoVis_2_Alias", ModelType.Autonumeric, lAgentsDSItem1, DefaultFormats.ColWidthAutonumeric);
            string[] lAgentsDSItem2 = { Agents.Administrador };
            lDisplaySetInfo.Add("PasajeroAeronave.Pasajero.Nombre", "Nombre", "Clas_1348178673664478CjtoVis_1ICtjoVis_3_Alias", ModelType.Text, lAgentsDSItem2, DefaultFormats.ColWidthText);

            lDisplaySetController.CurrentDisplaySet = lDisplaySetInfo;
            return lDisplaySetController;
        }
 /// <summary>
 /// Initializes a new instance of the 'DisplaySetByBlocksController' class.
 /// </summary>
 /// <param name="displaySet">DisplaySet controller</param>
 public DisplaySetByBlocksController(DisplaySetController displaySet)
     : base(displaySet.Parent)
 {
     DisplaySetList = displaySet.DisplaySetList;
     CurrentDisplaySet = displaySet.CurrentDisplaySet;
 }