コード例 #1
0
 public DashBoardController()
 {
     var dbFactory = new DatabaseFactory();
      _anfVoucherService = new AnFVoucherService(new AnFVoucherRepository(dbFactory), new UnitOfWork(dbFactory));
      _cmnApprovalProcessService=new CmnApprovalProcessService(new CmnApprovalProcessRepository(dbFactory),new UnitOfWork(dbFactory));
      _cmnApprovalProcessLevelService = new CmnApprovalProcessLevelService(new CmnApprovalProcessLevelRepository(dbFactory), new UnitOfWork(dbFactory));
      _cmnProcessLevelService = new CmnProcessLevelService(new CmnProcessLevelRepository(dbFactory), new UnitOfWork(dbFactory));
      _cmnApprovalService = new CmnApprovalService(new CmnApprovalRepository(dbFactory), new UnitOfWork(dbFactory));
 }
コード例 #2
0
 public VoucherApprovalController()
 {
     var dbfactory = new DatabaseFactory();
     _IVoucherApprovalService = new VoucherApprovalService(new AnFVoucherApprovalRepository(dbfactory), new UnitOfWork(dbfactory));
     _su = new SecUserService(new SecUserRepository(dbfactory), new UnitOfWork(dbfactory));
     _ICmnApprovalCommentService = new CmnApprovalCommentService(new CmnApprovalCommentRepository(dbfactory), new UnitOfWork(dbfactory));
     _ICmnApprovalService = new CmnApprovalService(new CmnApprovalRepository(dbfactory), new UnitOfWork(dbfactory));
     _IAnFVoucherService = new AnFVoucherService(new AnFVoucherRepository(dbfactory), new UnitOfWork(dbfactory));
     _cmnApprovalProcessLevelService = new CmnApprovalProcessLevelService(new CmnApprovalProcessLevelRepository(dbfactory), new UnitOfWork(dbfactory));
     _anfVoucherDetailsService = new AnFVoucherDetailsService(new AnFVoucherDetailsRepository(dbfactory), new UnitOfWork(dbfactory));
 }
コード例 #3
0
        public VoucherController()
        {
            var dbfactory = new DatabaseFactory();
            _anfVoucherService = new AnFVoucherService(new AnFVoucherRepository(dbfactory), new UnitOfWork(dbfactory));

            _anfVoucherDetailsService = new AnFVoucherDetailsService(new AnFVoucherDetailsRepository(dbfactory), new UnitOfWork(dbfactory));

            _cmnApprovalProcessService = new CmnApprovalProcessService(new CmnApprovalProcessRepository(dbfactory), new UnitOfWork(dbfactory));

            _cmnApprovalService = new CmnApprovalService(new CmnApprovalRepository(dbfactory), new CmnProcessLevelRepository(dbfactory), new UnitOfWork(dbfactory));
            _VoucherService = new VoucherService(new VoucherRepository(dbfactory), new VoucherDetailRepository(dbfactory), new UnitOfWork(dbfactory));
            _HrmEmployeeService = new HrmEmployeeService(new HrmEmployeeRepository(dbfactory), new UnitOfWork(dbfactory));
        }