Beispiel #1
0
        }       //	loginComplete

        /// <summary>
        /// Update Info Window Columns.
        /// - add new Columns
        /// - remove columns
        /// - change dispay sequence
        /// </summary>
        /// <param name="AD_Client_ID">AD_Client_ID</param>
        /// <param name="columns">columns</param>
        /// <param name="sqlFrom">sqlFrom</param>
        /// <param name="sqlOrder">sqlOrder</param>
        /// <returns>true if you updated columns, sequence or sql From clause</returns>
        public bool UpdateInfoColumns(int AD_Client_ID, List <Info_Column> columns,
                                      StringBuilder sqlFrom, StringBuilder sqlOrder)
        {
            bool retValue = true;

            for (int i = 0; i < _validators.Count; i++)
            {
                ModelValidator validator = (ModelValidator)_validators[i];
                if (validator.GetAD_Client_ID() == 0 || validator.GetAD_Client_ID() == AD_Client_ID)
                {
                    try
                    {
                        bool bb = validator.UpdateInfoColumns(columns, sqlFrom, sqlOrder);
                        if (bb)
                        {
                            retValue = true;
                        }
                    }
                    catch (Exception e)
                    {
                        s_log.Warning(validator.ToString() + ": " + e);
                    }
                }
            }
            return(retValue);
        }       //	updateInfoColumns