Exemplo n.º 1
0
 public ProjectServices(User pUser)
 {
     _user           = pUser;
     _ProjectManager = new ProjectManager(pUser, true);
     _ClientServices = new ClientServices(pUser);
     _branchService  = new BranchService(pUser);
 }
Exemplo n.º 2
0
 public ProjectServices(User pUser, string testDB)
 {
     _user           = pUser;
     _ProjectManager = new ProjectManager(testDB, pUser);
     _ClientServices = new ClientServices(pUser, testDB);
     _branchService  = new BranchService(pUser);
 }
Exemplo n.º 3
0
 public UserServices(UserManager pUserManager)
 {
     _userManager = pUserManager;
     _tellerManager = new TellerManager();
     roleServices = ServicesProvider.GetInstance().GetRoleServices();
     branchServices = ServicesProvider.GetInstance().GetBranchService();
 }
Exemplo n.º 4
0
 public UserServices(User pUser, string pTestDb)
 {
     _userManager = new UserManager(pTestDb);
     _tellerManager = new TellerManager(pTestDb);
     roleServices = ServicesProvider.GetInstance().GetRoleServices();
     branchServices = ServicesProvider.GetInstance().GetBranchService();
 }
Exemplo n.º 5
0
 public ProjectServices(User pUser,string testDB)
 {
     _user = pUser;
     _ProjectManager = new ProjectManager(testDB, pUser);
     _ClientServices = new ClientServices(pUser, testDB);
     _branchService = new BranchService(pUser);
 }
Exemplo n.º 6
0
 public ProjectServices(User pUser)
 {
     _user = pUser;
     _ProjectManager = new ProjectManager(pUser, true);
     _ClientServices = new ClientServices(pUser);
     _branchService = new BranchService(pUser);
 }
Exemplo n.º 7
0
        private void LoadUsers()
        {
            if (_users != null)
            {
                return;
            }
            LoadSubordinateRel();
            LoadBranchRel();
            _users = _userManager.SelectAll();
            RoleServices  rs = ServicesProvider.GetInstance().GetRoleServices();
            BranchService bs = ServicesProvider.GetInstance().GetBranchService();

            rs = rs ?? new RoleServices(_user);
            foreach (User user in _users)
            {
                user.UserRole = rs.Find(user);

                if (_subordinateRel.ContainsKey(user.Id))
                {
                    List <int> subIds = _subordinateRel[user.Id];
                    foreach (int id in subIds)
                    {
                        user.AddSubordinate(Find(id));
                    }
                }

                if (_branchRel.ContainsKey(user.Id))
                {
                    List <int> ids = _branchRel[user.Id];
                    foreach (int id in ids)
                    {
                        user.AddBranch(bs.FindById(id));
                    }
                }
            }
        }
Exemplo n.º 8
0
        public LoanServices(User pUser)
            : base(pUser)
        {
            _user = pUser;
            _loanManager = new LoanManager(pUser);
            _instalmentManager = new InstallmentManager(pUser);
            _clientManager = new ClientManager(pUser, true, true);
            _branchService = new BranchService(pUser);
            _econimcActivityServices = new EconomicActivityServices(pUser);
            _ePs = ServicesProvider.GetInstance().GetEventProcessorServices();
            _accountingServices = new AccountingServices(pUser);
            _fundingLineServices = new FundingLineServices(pUser);
            _savingServices = new SavingServices(pUser);
            _savingEventManager = new SavingEventManager(pUser);

            var settings = ApplicationSettings.GetInstance(string.Empty);
            var nonWorkingDate = NonWorkingDateSingleton.GetInstance(string.Empty);
            _configurationFactory = new OctopusScheduleConfigurationFactory(nonWorkingDate, settings);

            MefContainer.Current.Bind(this);
        }
Exemplo n.º 9
0
 public LoanServices(User pUser)
     : base(pUser)
 {
     _user = pUser;
     _loanManager = new LoanManager(pUser);
     _instalmentManager = new InstallmentManager(pUser);
     _clientManager = new ClientManager(pUser, true, true);
     _branchService = new BranchService(pUser);
     _econimcActivityServices = new EconomicActivityServices(pUser);
     _ePs = ServicesProvider.GetInstance().GetEventProcessorServices();
     _accountingServices = new AccountingServices(pUser);
     _fundingLineServices = new FundingLineServices(pUser);
     _savingServices = new SavingServices(pUser);
     _savingEventManager = new SavingEventManager(pUser);
 }