示例#1
0
 public DataTable LayDanhSachLyDoThanhLy()
 {
     try
     {
         QuanLyThanhLySachDAO quanLyThanhLySachDAO = new QuanLyThanhLySachDAO();
         return(quanLyThanhLySachDAO.LayDanhSachLyDoThanhLy());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
 public DataTable LayThongTinSach(string MaSach)
 {
     try
     {
         QuanLyThanhLySachDAO quanLyThanhLySachDAO = new QuanLyThanhLySachDAO();
         return(quanLyThanhLySachDAO.LayThongTinSach(MaSach));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#3
0
 public void XoaQuanLyThanhLySach(string maQuanLyThanhLySach)
 {
     try
     {
         QuanLyThanhLySachDAO QuanLyThanhLySach = new QuanLyThanhLySachDAO();
         QuanLyThanhLySach.XoaQuanLyThanhLySach(maQuanLyThanhLySach);
     }
     catch (Exception)
     {
         throw;
     }
 }
示例#4
0
 public void SuaQuanLyThanhLySach(string tenQuanLyThanhLySach, string maQuanLyThanhLySach)
 {
     try
     {
         QuanLyThanhLySachDAO QuanLyThanhLySach = new QuanLyThanhLySachDAO();
         QuanLyThanhLySach.SuaQuanLyThanhLySach(tenQuanLyThanhLySach, maQuanLyThanhLySach);
     }
     catch (Exception)
     {
         throw;
     }
 }
示例#5
0
        public int XoaSach(string MaSach)
        {
            try
            {
                QuanLyThanhLySachDAO quanLyThanhLySachDAO = new QuanLyThanhLySachDAO();
                int Row = quanLyThanhLySachDAO.XoaSach(MaSach);

                return(Row);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#6
0
        public int ThemChiTietPhieuThanhLySach(ChiTietPhieuThanhLySachDTO phieuChiTietThanhLySach)
        {
            try
            {
                QuanLyThanhLySachDAO quanLyThanhLySachDAO = new QuanLyThanhLySachDAO();
                int Row = quanLyThanhLySachDAO.ThemChiTietPhieuThanhLySach(phieuChiTietThanhLySach);

                return(Row);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#7
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;
     }
 }
示例#8
0
        public string LayMaPhieuLonNhat()
        {
            try
            {
                QuanLyThanhLySachDAO quanLyThanhLySachDAO = new QuanLyThanhLySachDAO();
                DataTable            dtMaPhieuThanhLy     = quanLyThanhLySachDAO.LayMaPhieuLonNhat();

                string MaPhieuLonNhat = dtMaPhieuThanhLy.Rows[dtMaPhieuThanhLy.DefaultView.Count - 1]["MaPhieuThanhLy"].ToString();
                int    num            = int.Parse(MaPhieuLonNhat.Substring(4)) + 1;
                string MaMoi          = "PTLS" + num.ToString("000");
                return(MaMoi);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }