Exemple #1
0
        /// <summary>
        /// Set the input field preload population.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <param name="preloadPopulation">Input field preload population.</param>
        public virtual void SetInputFieldPreloadPopulation(string inputFieldName, DataTable preloadPopulation)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                // Get the input field value.
                List <Oid> lInputFieldValue = lInputField.Value as List <Oid>;

                // Get the preload Oids and check whether contains the input field value.
                if ((lInputFieldValue != null) && (lInputFieldValue.Count > 0) && (preloadPopulation != null))
                {
                    List <Oid> lPreloadOids = new List <Oid>();
                    foreach (DataRow lRow in preloadPopulation.Rows)
                    {
                        Oid lOid = Adaptor.ServerConnection.GetOid(preloadPopulation, lRow);
                        lPreloadOids.Add(lOid);
                    }

                    // Set the null to the input field value if the Oid is not contained into the preload.
                    if (!(lPreloadOids.Contains(lInputFieldValue[0])))
                    {
                        lInputField.Value = null;
                    }
                }

                // Set the input field preload population.
                lInputField.PreLoadPopulation = preloadPopulation;

                // Set the input field preload population initialized.
                lInputField.PreLoadPopulationInitialized = true;
            }
        }
Exemple #2
0
        /// <summary>
        /// Set the input field Mandatory.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <param name="mandatory">Boolean value.</param>
        public virtual void SetInputFieldMandatory(string inputFieldName, bool mandatory)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                lInputField.Mandatory = mandatory;
            }
        }
Exemple #3
0
        /// <summary>
        /// Set the input field enabled.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <param name="enabled">Boolean value.</param>
        public virtual void SetInputFieldEnabled(string inputFieldName, bool enabled)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                lInputField.Enabled = enabled;
            }
        }
Exemple #4
0
        /// <summary>
        /// Set the input field value.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <param name="value">Input field value.</param>
        public virtual void SetInputFieldValue(string inputFieldName, object value)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                lInputField.Value = value;
            }
        }
Exemple #5
0
        /// <summary>
        /// Set the input field Visible.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <param name="visible">Boolean value.</param>
        public virtual void SetInputFieldVisible(string inputFieldName, bool visible)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                lInputField.Visible = visible;
            }
        }
Exemple #6
0
        /// <summary>
        /// Set the input field multiselection allowed.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <param name="multiSelectionAllowed">Boolean value.</param>
        public virtual void SetInputFieldMultiSelectionAllowed(string inputFieldName, bool multiSelectionAllowed)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                lInputField.MultiSelectionAllowed = multiSelectionAllowed;
            }
        }
Exemple #7
0
        /// <summary>
        /// Set the input field supplementary information.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <param name="supplementaryInfo">String containing the input field supplementary information.</param>
        public virtual void SetInputFieldSupplementaryInfo(string inputFieldName, string supplementaryInfo)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                lInputField.SupplementaryInfo = supplementaryInfo;
            }
        }
Exemple #8
0
        /// <summary>
        /// Set the input field order criteria.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <param name="orderCriteria">Order criteria name.</param>
        public virtual void SetInputFieldOrderCriteria(string inputFieldName, string orderCriteria)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                lInputField.OrderCriteria = orderCriteria;
            }
        }
Exemple #9
0
        /// <summary>
        /// Get the input field preload population initialized.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <param name="initialized">Boolean value.</param>
        public virtual void SetInputFieldPreloadPopulationInitialized(string inputFieldName, bool initialized)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                lInputField.PreLoadPopulationInitialized = initialized;
            }
        }
Exemple #10
0
        /// <summary>
        /// Set the multiselection input field value.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <param name="value">Multiselection input field value.</param>
        public void SetMultiSelectionInputFieldValue(string inputFieldName, object value)
        {
            IUContextArgumentInfo lMultiSelectionInputField = GetMultiSelectionInputField(inputFieldName);

            if (lMultiSelectionInputField != null)
            {
                lMultiSelectionInputField.Value = value;
            }
        }
Exemple #11
0
        /// <summary>
        /// Get the multiselection input field value.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <returns>Multiselection input field value.</returns>
        public object GetMultiSelectionInputFieldValue(string inputFieldName)
        {
            IUContextArgumentInfo lMultiSelectionInputField = GetMultiSelectionInputField(inputFieldName);

            if (lMultiSelectionInputField != null)
            {
                return(lMultiSelectionInputField.Value);
            }

            return(null);
        }
Exemple #12
0
        /// <summary>
        /// Get the input field order criteria.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <returns>String containig the name of the input field order criteria.</returns>
        public virtual string GetInputFieldOrderCriteria(string inputFieldName)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                return(lInputField.OrderCriteria);
            }

            return(string.Empty);
        }
Exemple #13
0
        /// <summary>
        /// Get the input field preload population initialized.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <returns>Boolean value indicating whether the input field is initialized or not.</returns>
        public virtual bool GetInputFieldPreloadPopulationInitialized(string inputFieldName)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                return(lInputField.PreLoadPopulationInitialized);
            }

            return(false);
        }
Exemple #14
0
        /// <summary>
        /// Get the input field Mandatory.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <returns>Boolean value indicating whether the input field is Mandatory or not.</returns>
        public virtual bool GetInputFieldMandatory(string inputFieldName)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                return(lInputField.Mandatory);
            }

            return(true);
        }
Exemple #15
0
        /// <summary>
        /// Get the input field preload population.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <returns>Datatable containig the preload population.</returns>
        public virtual DataTable GetInputFieldPreloadPopulation(string inputFieldName)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                return(lInputField.PreLoadPopulation);
            }

            return(null);
        }
Exemple #16
0
        /// <summary>
        /// Get the input field value.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <returns>Input field value.</returns>
        public virtual object GetInputFieldValue(string inputFieldName)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                return(lInputField.Value);
            }

            return(null);
        }
Exemple #17
0
        /// <summary>
        /// Get the input field supplementary information.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <returns>String containig the input field supplementary information.</returns>
        public virtual string GetInputFieldSupplementaryInfo(string inputFieldName)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                return(lInputField.SupplementaryInfo);
            }

            return(string.Empty);
        }
Exemple #18
0
        /// <summary>
        /// Get the input field multiselection allowed.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <returns>Boolean value indicating whether the input field allows multilsection or not.</returns>
        public virtual bool GetInputFieldMultiSelectionAllowed(string inputFieldName)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                return(lInputField.MultiSelectionAllowed);
            }

            return(false);
        }
Exemple #19
0
        /// <summary>
        /// Set the input field Focused.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <param name="focused">Boolean value.</param>
        public virtual void SetInputFieldFocused(string inputFieldName)
        {
            ClearInputFieldsFocus();

            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                lInputField.Focused = true;
            }
        }
Exemple #20
0
        /// <summary>
        /// Get the input field Focused.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <returns>Boolean value indicating whether the input field has the focus or not.</returns>
        public virtual bool GetInputFieldFocused(string inputFieldName)
        {
            IUContextArgumentInfo lInputField = GetInputField(inputFieldName);

            if (lInputField != null)
            {
                return(lInputField.Focused);
            }

            return(true);
        }
Exemple #21
0
        /// <summary>
        /// Get the multiselection input field.
        /// </summary>
        /// <param name="inputFieldName">Multiselection input field name.</param>
        /// <returns>Multiselection input field.</returns>
        public virtual IUContextArgumentInfo GetMultiSelectionInputField(string inputFieldName)
        {
            IUContextArgumentInfo lMultiSelectionInputField = null;

            if (MultiSelectionInputFields.ContainsKey(inputFieldName))
            {
                return(MultiSelectionInputFields[inputFieldName]);
            }
            else
            {
                lMultiSelectionInputField = new IUContextArgumentInfo(inputFieldName);
                MultiSelectionInputFields[inputFieldName] = lMultiSelectionInputField;
            }

            return(lMultiSelectionInputField);
        }
Exemple #22
0
        /// <summary>
        /// Get the input field.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <returns>Input field.</returns>
        public virtual IUContextArgumentInfo GetInputField(string inputFieldName)
        {
            IUContextArgumentInfo lInputField = null;

            if (InputFields.ContainsKey(inputFieldName))
            {
                return(InputFields[inputFieldName]);
            }
            else
            {
                lInputField = new IUContextArgumentInfo(inputFieldName);
                InputFields[inputFieldName] = lInputField;
            }

            return(lInputField);
        }
        /// <summary>
        /// Get the multiselection input field.
        /// </summary>
        /// <param name="inputFieldName">Multiselection input field name.</param>
        /// <returns>Multiselection input field.</returns>
        public virtual IUContextArgumentInfo GetMultiSelectionInputField(string inputFieldName)
        {
            IUContextArgumentInfo lMultiSelectionInputField = null;

            if (MultiSelectionInputFields.ContainsKey(inputFieldName))
            {
                return MultiSelectionInputFields[inputFieldName];
            }
            else
            {
                lMultiSelectionInputField = new IUContextArgumentInfo(inputFieldName);
                MultiSelectionInputFields[inputFieldName] = lMultiSelectionInputField;
            }

            return lMultiSelectionInputField;
        }
        /// <summary>
        /// Get the input field.
        /// </summary>
        /// <param name="inputFieldName">Input field name.</param>
        /// <returns>Input field.</returns>
        public virtual IUContextArgumentInfo GetInputField(string inputFieldName)
        {
            IUContextArgumentInfo lInputField = null;

            if (InputFields.ContainsKey(inputFieldName))
            {
                return InputFields[inputFieldName];
            }
            else
            {
                lInputField = new IUContextArgumentInfo(inputFieldName);
                InputFields[inputFieldName] = lInputField;
            }

            return lInputField;
        }