Beispiel #1
0
 //
 public int GetLastID()
 {
     if (this.data == null)
     {
         this.data = new DaiLyBuuDienVHX_Data();
     }
     return(Convert.ToInt32(this.data.GetLastID()));
 }
Beispiel #2
0
        //bao cao
        public int LayMaMax()
        {
            DaiLyBuuDienVHX_Data Buudien = new DaiLyBuuDienVHX_Data();
            DataTable            table   = Buudien.LayMaMax();

            try
            {
                int i = Convert.ToInt32(table.Rows[0][0].ToString());
                return(++i);
            }
            catch (Exception e)
            {
                e.ToString();
                return(1);
            }
        }