Esempio n. 1
0
        public void ThemLSP(string MLSP, string TLSP)
        {
            QLKhachSanEntities chung = new QLKhachSanEntities();
            LOAIDICHVU         nv    = new LOAIDICHVU();

            nv.MALOAIDV  = MLSP;
            nv.TENLOAIDV = TLSP;
            chung.LOAIDICHVU.Add(nv);
            chung.SaveChanges();
        }
Esempio n. 2
0
        public void ThemCTPhieu(string MAHD, string MADV, int SL)
        {
            QLKhachSanEntities env = new QLKhachSanEntities();
            CHITIETHOADON      nv  = new CHITIETHOADON();

            nv.MAHD    = MAHD;
            nv.MADV    = MADV;
            nv.SOLUONG = SL;
            env.CHITIETHOADON.Add(nv);
            env.SaveChanges();
        }
Esempio n. 3
0
        //========================================== CT__QUYEN ===================================================
        public void ThemQTK(string TDN, string MQ, string CT)
        {
            QLKhachSanEntities chung = new QLKhachSanEntities();
            CTQUYEN            td    = new CTQUYEN();

            td.TENDN    = TDN;
            td.MAQUYEN  = MQ;
            td.CHUTHICH = CT;
            chung.CTQUYEN.Add(td);
            chung.SaveChanges();
        }
Esempio n. 4
0
        public void ThemChamCong(string MaNV, string NgayLam, string Ca)
        {
            QLKhachSanEntities chung = new QLKhachSanEntities();
            CHAMCONG           cc    = new CHAMCONG();

            cc.MANV    = MaNV;
            cc.NGAYLAM = DateTime.Parse(NgayLam);
            cc.CA      = Ca;
            chung.CHAMCONG.Add(cc);
            chung.SaveChanges();
        }
Esempio n. 5
0
        public void ThemTK(string MNV, string TDN, string MK, string TT)
        {
            QLKhachSanEntities chung = new QLKhachSanEntities();
            TAIKHOAN           td    = new TAIKHOAN();

            td.MANV      = MNV;
            td.TENDN     = TDN;
            td.MATKHAU   = MK;
            td.TRANGTHAI = TT;
            chung.TAIKHOAN.Add(td);
            chung.SaveChanges();
        }
Esempio n. 6
0
        public void ThemKH(string MKH, string HT, string GT, string DC, string SDT)
        {
            QLKhachSanEntities chung = new QLKhachSanEntities();
            KHACHHANG          nv    = new KHACHHANG();

            nv.MAKH     = MKH;
            nv.TENKH    = HT;
            nv.GIOITINH = GT;
            nv.DIACHI   = DC;
            nv.SDT      = SDT;
            chung.KHACHHANG.Add(nv);
            chung.SaveChanges();
        }
Esempio n. 7
0
        public void ThemPhieu(string MaHD, string NgayTao, string MaNV, string MaP)
        {
            QLKhachSanEntities nh = new QLKhachSanEntities();
            HOADON             p  = new HOADON();

            p.MAHD      = MaHD;
            p.NGAYTAO   = DateTime.Parse(NgayTao);
            p.MANV      = MaNV;
            p.MAPHONG   = MaP;
            p.THANHTIEN = 0;
            nh.HOADON.Add(p);
            nh.SaveChanges();
        }
Esempio n. 8
0
        public void ThemPD(string MPD, string MKH, string MNV, string MP, string NgayLap, string NgayBD)
        {
            QLKhachSanEntities chung = new QLKhachSanEntities();
            PHIEUDATPHONG      td    = new PHIEUDATPHONG();

            td.MAPHIEUDAT = MPD;
            td.MAKH       = MKH;
            td.MANV       = MNV;
            td.MAPHONG    = MP;
            td.NGAYLAP    = DateTime.Parse(NgayLap);
            td.NGAYBD     = DateTime.Parse(NgayBD);
            chung.PHIEUDATPHONG.Add(td);
            chung.SaveChanges();
        }
Esempio n. 9
0
        public void ThemSP(string MSP, string TSP, string DVT, string DGN, string MLSP, string HA)
        {
            QLKhachSanEntities chung = new QLKhachSanEntities();
            DICHVU             td    = new DICHVU();

            td.MADV     = MSP;
            td.TENDV    = TSP;
            td.DVT      = DVT;
            td.DONGIA   = int.Parse(DGN);
            td.MALOAIDV = MLSP;
            td.HINHANH  = HA;
            chung.DICHVU.Add(td);
            chung.SaveChanges();
        }
Esempio n. 10
0
        public void ThemNV(string MNV, string HT, string GT, string NS, string DC, string SDT, string LCB)
        {
            QLKhachSanEntities chung = new QLKhachSanEntities();
            NHANVIEN           nv    = new NHANVIEN();

            nv.MANV     = MNV;
            nv.HOTEN    = HT;
            nv.GIOITINH = GT;
            nv.NGAYSINH = DateTime.Parse(NS);
            nv.DIACHI   = DC;
            nv.SDT      = SDT;
            nv.LUONGCB  = int.Parse(LCB);
            chung.NHANVIEN.Add(nv);
            chung.SaveChanges();
        }
Esempio n. 11
0
        public void ThemP(string MP, string TP, string DT, string DG, string MT, string TT, string HA)
        {
            QLKhachSanEntities chung = new QLKhachSanEntities();
            PHONG td = new PHONG();

            td.MAPHONG   = MP;
            td.TENPHONG  = TP;
            td.DIENTICH  = DT;
            td.DONGIA    = int.Parse(DG);
            td.MAKV      = MT;
            td.TRANGTHAI = TT;
            td.HINHANH   = HA;
            chung.PHONG.Add(td);
            chung.SaveChanges();
        }