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; } }
public PhreaticWaterDTO(PhreaticWater pw) { SiteName = pw.SiteName; AvBuriedDepth = pw.AvBuriedDepth; AvElevation = pw.AvElevation; }
public PhreaticWaterDTO getPhreaticWaterById(string project, int id) { PhreaticWater pw = getObjectById <PhreaticWater>(project, id); return(new PhreaticWaterDTO(pw)); }