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