public ListtemplateContenttype(DataRow row)
 {
     _contenttype = null;
     _id          = int.Parse((string)row["ows_ID"]);
     _Seqnr       = (string)row["ows_Title"];
     string[] ID_ListNavn = Regex.Split((string)row["ows_ListName"], ";#");
     _ListNavn_id = int.Parse((string)ID_ListNavn[0]);
     string[] ID_TypeName = Regex.Split((string)row["ows_TypeNavn"], ";#");
     _TypeNavn_id = int.Parse((string)ID_TypeName[0]);
 }
示例#2
0
        private void init()
        {
            DataTable tbl = pvMetadata.MetaUtilities.OpenDataSet("ProPurType").Tables["row"];

            _contenttypes      = new Dictionary <int, contenttype>();
            _contenttypes_name = new Dictionary <string, int>();
            foreach (DataRow row in tbl.Rows)
            {
                contenttype val = new contenttype(row);
                int         key = val.id;
                if (!_contenttypes_name.ContainsKey(val.SysName))
                {
                    _contenttypes.Add(key, val);
                    _contenttypes_name.Add(val.SysName, key);
                }
            }
        }
示例#3
0
        private void init()
        {
            _ListtemplateColumns = new List <ListtemplateColumn>();
            listtemplateCollection            wlisttemplates           = new listtemplateCollection();
            ListtemplateContenttypeCollection ListtemplateContenttypes = new ListtemplateContenttypeCollection();

            foreach (listtemplate wlisttemplate in wlisttemplates.getAllListtemplates.Values)
            {
                foreach (ListtemplateContenttype wListtemplateContenttype in ListtemplateContenttypes.getAllListtemplateContenttypes.Values)
                {
                    if (wListtemplateContenttype.ListNavn_id == wlisttemplate.id)
                    {
                        contenttypeCollection wcontenttypes = new contenttypeCollection();
                        contenttype           wcontenttype  = wcontenttypes.getContenttype(wListtemplateContenttype.TypeNavn_id);
                        foreach (ContenttypeColumn wContenttypeColumn in wcontenttype.ContenttypeColumns.Values)
                        {
                            ListtemplateColumn wListtemplateColumn = new ListtemplateColumn(wlisttemplate.id, wContenttypeColumn);
                            _ListtemplateColumns.Add(wListtemplateColumn);
                        }
                    }
                }
            }
        }
        private void init_contenttype()
        {
            contenttypeCollection wcontenttypeCollection = new contenttypeCollection();

            _contenttype = wcontenttypeCollection.getContenttype(_TypeNavn_id);
        }