Beispiel #1
0
        public string LayMaTuDong()
        {
            ChiTietBanPhanCong_DAO dao = new ChiTietBanPhanCong_DAO();
            int    number = int.Parse(dao.LayMaTuDong()) + 1;
            string ma     = "CTBPC" + number;

            while (ma.Length < 10)
            {
                ma = ma.Insert(5, "0");
            }
            return(ma);
        }
Beispiel #2
0
        public List <clsChiTietBanPhanCong_DTO> LayLichLamViec(string maNV, DateTime dtFrom, DateTime dtTo)
        {
            ChiTietBanPhanCong_DAO dao = new ChiTietBanPhanCong_DAO();

            return(dao.LayLichLamViec(maNV, dtFrom, dtTo));
        }
Beispiel #3
0
        public bool Update(string maBanGhi, int trangThai)
        {
            ChiTietBanPhanCong_DAO dao = new ChiTietBanPhanCong_DAO();

            return(dao.Update(maBanGhi, trangThai));
        }
Beispiel #4
0
        public List <clsChiTietBanPhanCong_DTO> LayDSPCTheoNgayVaCa(DateTime ngay, string ca, string loaiNgay)
        {
            ChiTietBanPhanCong_DAO dao = new ChiTietBanPhanCong_DAO();

            return(dao.LayDSPCTheoNgayVaCa(ngay, ca, loaiNgay));
        }
Beispiel #5
0
        public bool ThemChiTietPhanCong(clsChiTietBanPhanCong_DTO chiTietBanPhanCong)
        {
            ChiTietBanPhanCong_DAO dao = new ChiTietBanPhanCong_DAO();

            return(dao.ThemChiTietPhanCong(chiTietBanPhanCong));
        }