示例#1
0
 public DataTable LayDanhSachLyDoThanhLy()
 {
     try
     {
         QuanLyThanhLySachDAO quanLyThanhLySachDAO = new QuanLyThanhLySachDAO();
         return(quanLyThanhLySachDAO.LayDanhSachLyDoThanhLy());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
 public void ThemQuanLyThanhLySach(string tenQuanLyThanhLySach)
 {
     try
     {
         QuanLyThanhLySachDAO QuanLyThanhLySach   = new QuanLyThanhLySachDAO();
         DataTable            dsQuanLyThanhLySach = QuanLyThanhLySach.LayDanhSachLyDoThanhLy();
         string maQuanLyThanhLySach = "LDTL" + (int.Parse(dsQuanLyThanhLySach.Rows[dsQuanLyThanhLySach.Rows.Count - 1][0].ToString().Substring(4, 3)) + 1).ToString("000");
         QuanLyThanhLySach.ThemQuanLyThanhLySach(tenQuanLyThanhLySach, maQuanLyThanhLySach);
     }
     catch (Exception)
     {
         throw;
     }
 }