/// <summary> /// /// </summary> /// <returns></returns> internal static WaterUserCollection CreateLowLevelWaterUserCollection(int currentWaterUserID) { WaterUserCollection wuc = new WaterUserCollection(); DataTable tbl = WaterUserDBI.GetLowLevelWaterUserDataTable(currentWaterUserID); foreach (DataRow row in tbl.Rows) { WaterUserClass u = CreateWaterUser(row); wuc.Add(u); } return(wuc); }
/// <summary> /// /// </summary> /// <returns></returns> public static WaterUserCollection CreateManagementWaterUserCollection() { WaterUserCollection wuc = new WaterUserCollection(); DataTable tbl = WaterUserDBI.GetManagementOrganization(); foreach (DataRow row in tbl.Rows) { WaterUserClass wu = CreateWaterUser(row); wuc.Add(wu); } return(wuc); }