void _ReadPhreaticWaters(
     DGObjects objs,
     string tableNameSQL,
     string conditionSQL,
     string orderSQL)
 {
     ReadRawData(objs, tableNameSQL, orderSQL, conditionSQL);
     DataTable table = objs.rawDataSet.Tables[0];
     foreach (DataRow reader in table.Rows)
     {
         if (IsDbNull(reader, "ID"))
             continue;
         PhreaticWater pw = new PhreaticWater(reader);
         pw.ID = ReadInt(reader, "ID").Value;
         pw.SiteName = ReadString(reader, "SiteName");
         pw.AvBuriedDepth = ReadDouble(reader, "AvBuriedDepth");
         pw.AvElevation = ReadDouble(reader, "AvElevation");
         objs[pw.key] = pw;
     }
 }
예제 #2
0
 public PhreaticWaterDTO(PhreaticWater pw)
 {
     SiteName      = pw.SiteName;
     AvBuriedDepth = pw.AvBuriedDepth;
     AvElevation   = pw.AvElevation;
 }
예제 #3
0
        public PhreaticWaterDTO getPhreaticWaterById(string project, int id)
        {
            PhreaticWater pw = getObjectById <PhreaticWater>(project, id);

            return(new PhreaticWaterDTO(pw));
        }