예제 #1
0
 public ContenttypeColumn(DataRow row)
 {
     _col   = null;
     _id    = int.Parse((string)row["ows_ID"]);
     _Seqnr = (string)row["ows_Title"];
     string[] ID_TypeName = Regex.Split((string)row["ows_TypeName"], ";#");
     _TypeName_id = int.Parse((string)ID_TypeName[0]);
     string[] ID_Kolonne = Regex.Split((string)row["ows_Kolonne"], ";#");
     _Kolonne_id = int.Parse((string)ID_Kolonne[0]);
     try { _DisplayNameDK = (string)row["ows_DisplayNameDK"]; }
     catch { _DisplayNameDK = null; }
     try { _DisplayNameUK = (string)row["ows_DisplayNameUK"]; }
     catch { _DisplayNameUK = null; }
     try { _SkalUdfyldes = (Boolean)row["ows_SkalUdfyldes"]; }
     catch { _SkalUdfyldes = false; }
 }
예제 #2
0
        private void init()
        {
            DataTable tbl = pvMetadata.MetaUtilities.OpenDataSet("ProPurColumn").Tables["row"];

            _columns      = new Dictionary <int, column>();
            _columns_name = new Dictionary <string, int>();
            _columns_guid = new Dictionary <Guid, int>();
            foreach (DataRow row in tbl.Rows)
            {
                column val = new column(row);
                int    key = val.id;
                if ((!_columns_name.ContainsKey(val.SysName)) && (!_columns_guid.ContainsKey(new Guid(val.colGUID))))
                {
                    _columns.Add(key, val);
                    _columns_name.Add(val.SysName, key);
                    _columns_guid.Add(new Guid(val.colGUID), key);
                }
                else
                {
                    string dupkey = "DUP";
                }
            }
        }
예제 #3
0
        private void init()
        {
            columnCollection cols = new columnCollection();

            _col = cols.getColumn(Kolonne_id);
        }