Ejemplo n.º 1
0
        public static string[] GetDetailsViewColumns(int systemEntityTypeId, int auditId)
        {
            var obj = new FieldConfigurationDataModel();

            obj.SystemEntityTypeId = systemEntityTypeId;

            var odt = FieldConfigurationDataManager.GetDetailsViewColumns(obj, SessionVariables.RequestProfile);

            var validColumns = new string[odt.Rows.Count];

            for (var i = 0; i < odt.Rows.Count; i++)
            {
                validColumns[i] = odt.Rows[i][FieldConfigurationDataModel.DataColumns.Name].ToString();
            }

            return(validColumns);
        }
Ejemplo n.º 2
0
        public static Dictionary <string, string> GetLabelDictonaryObject(int systemEntityTypeId, int auditId)
        {
            var validColumns = new Dictionary <string, string>();

            var obj = new FieldConfigurationDataModel();

            obj.SystemEntityTypeId = systemEntityTypeId;

            var odt = FieldConfigurationDataManager.GetDetailsViewColumns(obj, SessionVariables.RequestProfile);

            for (var i = 0; i < odt.Rows.Count; i++)
            {
                var key   = Convert.ToString(odt.Rows[i][FieldConfigurationDataModel.DataColumns.Name]);
                var value = Convert.ToString(odt.Rows[i][FieldConfigurationDataModel.DataColumns.Value]);

                if (!validColumns.ContainsKey(key))
                {
                    validColumns.Add(key, value);
                }
            }

            return(validColumns);
        }