예제 #1
0
        public static DataTable getAll()
        {
            string sql = "select t.MaTaiKhoan, t.HoTen, t.SoCMND, t.NgayVaoLam, t.NgaySinh, t.email, t.SoDienThoai, t.Username, t.PassWord," +
                         "(CASE t.GioiTinh WHEN 1 THEN N'Nam' WHEN 0 THEN N'Nữ' END) AS GioiTinh, (CASE t.Deleted WHEN 0 THEN N'Đang hoạt động' WHEN 1 THEN N'Đã xóa' END) AS Deleted,"
                         + " nv.TenLoaiNhanVien, t.Active"
                         + " from TaiKhoan t, LOAINHANVIEN nv where t.LoaiTaiKhoan = nv.MaLoaiNV";

            return(DTObject.exec(sql));
        }
예제 #2
0
 public static bool create(string[] value)
 {
     string[] col = { "NgayLap", "TongGia", "NhanVien", "Phong", "MaPhieuThue" };
     return(DTObject.insert("HOADON", col, value));
 }
예제 #3
0
 public static bool create(string[] value)
 {
     string[] col = { "TenPhieuThue", "TinhTrangPhieuThue", "MaPhong", "NgayLap", "NgayBatDau", "NgayKetThuc", "MaKH" };
     return(DTObject.insert("PHIEUTHUE", col, value));
 }
예제 #4
0
 public static DataTable getAll()
 {
     return(DTObject.getAll("PHIEUTHUE"));
 }
예제 #5
0
 public static bool create(string[] value)
 {
     string[] col = { "TenDichVu", "Gia" };
     return(DTObject.insert("DICHVU", col, value));
 }
예제 #6
0
 public static DataTable getAll()
 {
     return(DTObject.getAll("DICHVU"));
 }
예제 #7
0
 public static DataTable getHoaDon()
 {
     return(DTObject.getAll("HOADON"));
 }
예제 #8
0
 public static bool create(string[] value)
 {
     string[] col = { "MaHD", "MaDichVu", "NgaySuDung", "Phong" };
     return(DTObject.insert("CHITIETHOADON", col, value));
 }
예제 #9
0
 public static bool create(string[] value)
 {
     string[] col = { "HoTen", "SoCMND", "NgayVaoLam", "NgaySinh", "email", "SoDienThoai", "Username", "PassWord", "LoaiTaiKhoan", "GioiTinh", "Deleted", "Active" };
     return(DTObject.insert("TAIKHOAN", col, value));
 }
예제 #10
0
 public static DataTable get_loainhanvien()
 {
     return(DTObject.getAll("LOAINHANVIEN"));
 }