コード例 #1
0
 public EntryType(int EntryTypeID)
     : base()
 {
     _entryType = new Fpp.Data.EntryType(ModuleSettings);
     DataSet ds = _entryType.getEntryType(EntryTypeID);
     if (ds.Tables[0].Rows.Count > 0)
     {
         LoadFromRow(ds.Tables[0].Rows[0]);
     }
 }
コード例 #2
0
        public static List<EntryType> getAllEntryTypes()
        {
            String moduleSettings = ModuleConfig.GetSettings();
            Fpp.Data.EntryType et = new Fpp.Data.EntryType(moduleSettings);
            List<EntryType> list = new List<EntryType>();
            DataSet ds = et.getAllEntryTypes();
            foreach (DataRow row in  ds.Tables[0].Rows )
            {
                list.Add(new EntryType(row));
            }

            return list;
        }
コード例 #3
0
 public EntryType(DataRow row)
     : base()
 {
     _entryType = new Fpp.Data.EntryType(ModuleSettings);
     LoadFromRow(row);
 }
コード例 #4
0
 public EntryType()
     : base()
 {
     _entryType = new Fpp.Data.EntryType(ModuleSettings);
 }