/// <summary> /// /// </summary> /// <returns></returns> static public DuringWaterCollection CreateDuringWaterCollection() { DuringWaterCollection d = new DuringWaterCollection(); DataTable t = DuringWaterDBI.GetDuringDataTable(); foreach (DataRow row in t.Rows) { DuringWaterClass item = CreateDuringWater(row); d.Add(item); } return(d); }
/// <summary> /// /// </summary> /// <param name="id"></param> /// <returns></returns> static public DuringWaterClass CreateDuringWater(int id) { DataTable tbl = DuringWaterDBI.GetDuringDataTable(id); if (tbl.Rows.Count > 0) { return(CreateDuringWater(tbl.Rows[0])); } else { return(null); } }