Exemplo n.º 1
0
        static void Main()
        {
            #region Implement Services

            IUnitOfWork              unitOfWork              = new UnitOfWork();
            IBienCheServices         bienCheServices         = new BienCheServices(unitOfWork);
            ICapBacServices          capBacServices          = new CapBacServices(unitOfWork);
            IChucVuServices          chucVuServices          = new ChucVuServices(unitOfWork);
            IHopDongServices         hopDongServices         = new HopDongServices(unitOfWork);
            IKhenThuongServices      khenThuongServices      = new KhenThuongServices(unitOfWork);
            IKyLuatServices          kyLuatServices          = new KyLuatServices(unitOfWork);
            ILoaiHopDongServices     loaiHopDongServices     = new LoaiHopDongServices(unitOfWork);
            INhanVienServices        nhanVienServices        = new NhanVienServices(unitOfWork);
            IPhongBanServices        phongBanServices        = new PhongBanServices(unitOfWork);
            IThanhPhoServices        thanhPhoServices        = new ThanhPhoServices(unitOfWork);
            IThongTinGiaDinhServices thongTinGiaDinhServices = new ThongTinGiaDinhServices(unitOfWork);
            IThongTinServices        thongTinServices        = new ThongTinServices(unitOfWork);
            IThongTinTrinhDoServices thongTinTrinhDoServices = new ThongTinTrinhDoServices(unitOfWork);
            ITrinhDoServices         trinhDoServices         = new TrinhDoServices(unitOfWork);

            #endregion

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Dang_nhap(bienCheServices, capBacServices, chucVuServices, hopDongServices, khenThuongServices,
                                          kyLuatServices, loaiHopDongServices, nhanVienServices, phongBanServices, thanhPhoServices, thongTinGiaDinhServices,
                                          thongTinServices, thongTinTrinhDoServices, trinhDoServices));
        }
Exemplo n.º 2
0
 public IList <ChucVu> GetAllChucVu()
 {
     return(ChucVuServices.GetAllChucVu());
 }