コード例 #1
0
 /**
  * @param theLoaiDTO
  */
 public void ThemTheLoai(TheLoaiDTO theLoaiDTO)
 {
     // TODO implement here
     try
     {
         theLoaiDAO.ThemTheLoai(theLoaiDTO);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
 public void ThemTheLoai(string tenTheLoai)
 {
     try
     {
         TheLoaiDAO TheLoai   = new TheLoaiDAO();
         DataTable  dsTheLoai = TheLoai.LayDanhSachTheLoai();
         string     maTheLoai = "TLS" + (int.Parse(dsTheLoai.Rows[dsTheLoai.Rows.Count - 1][0].ToString().Substring(3, 3)) + 1).ToString("000");
         TheLoai.ThemTheLoai(maTheLoai, tenTheLoai);
     }
     catch (Exception)
     {
         throw;
     }
 }