示例#1
0
        /// <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);
        }
示例#2
0
        /// <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);
        }