示例#1
0
 public IList<Command> SelectAll(String hostCode, List<Int32> signalTags)
 {
     var returns = new List<Command>();
     var dt = SqlDbAccess.GetInstance().GetTable(" select * from " + hostCode + "_TPointAO where TagID in (" + String.Join(",", signalTags) + ")");
     foreach (DataRow dr in dt.Rows)
     {
         var g = new Command();
         g.FromDataRow(dr, hostCode);
         returns.Add(g);
     }
     return returns;
 }
示例#2
0
 public IList<Command> SelectAll(String hostCode)
 {
     var returns = new List<Command>();
     var dt = SqlDbAccess.GetInstance().GetTable(" select * from " + hostCode + "_TPointAO ");
     foreach (DataRow dr in dt.Rows)
     {
         var g = new Command();
         g.FromDataRow(dr, hostCode);
         returns.Add(g);
     }
     return returns;
 }