Пример #1
0
 public IList<Equipment> SelectAll(String hostCode, int dACIdx)
 {
     var returns = new List<Equipment>();
     var dt = SqlDbAccess.GetInstance().GetTable("select * from " + hostCode + "_TUnitIOM WHERE DACIdx = " + dACIdx);
     foreach (DataRow dr in dt.Rows)
     {
         Equipment g = new Equipment();
         g.FromDataRow(dr, hostCode);
         returns.Add(g);
     }
     return returns;
 }
Пример #2
0
 public IList<Equipment> SelectAll()
 {
     var returns = new List<Equipment>();
     var dt = SqlDbAccess.GetInstance().GetTable("select * from SZ01_TUnitIOM");
     foreach (DataRow dr in dt.Rows)
     {
         Equipment g = new Equipment();
         g.FromDataRow(dr, "SZ01");
         returns.Add(g);
     }
     return returns;
 }