예제 #1
0
 public IndexModel(
     IDivisionService divisionService,
     IStringLocalizer <SharedResource> sharedLocalizer)
 {
     _divisionService = divisionService;
     PageTitle        = sharedLocalizer[SharedResource.Divisions];
 }
 public RemoveController(
     IUserService userService,
     IFeatureService featureService,
     ILocationService locationService,
     ICustomerService customerService,
     IDivisionService divisionService,
     IPropertyService propertyService,
     IItemService itemService,
     IDealService dealService,
     IPaymentService paymentService,
     IEmployeeService employeeService,
     IReminderService reminderService,
     IPictureService pictureService
     )
 {
     _userService     = userService;
     _customerService = customerService;
     _locationService = locationService;
     _featureService  = featureService;
     _propertyService = propertyService;
     _divisionService = divisionService;
     _itemService     = itemService;
     _dealService     = dealService;
     _employeeService = employeeService;
     _paymentService  = paymentService;
     _reminderService = reminderService;
     _pictureService  = pictureService;
 }
예제 #3
0
        //ended by Suranjana

        public MasterController(IDepartmentService DepartmentService, IDivisionService DivisionService,
                                ILocalizationService localizationService, IExecutive ExecutiveService, IWorkContext workContext,
                                IProductType ProductTypeService
                                //added by Saddam on 17/05/2016
                                , IAuthorService AuthorService,
                                //Added by sanjeet
                                IPublishingCompanyService publishingCompanyService,
                                IEncryptionService encryptionService,
                                ICommonListService commonList,
                                IDbContext dbContext,
                                //Added By Ankush Kumar on 11/07/2016
                                ISubsidiaryRightsService subsidiaryRightsService,
                                //Added by Suranjana on 11/07/2016
                                ITypeOfRightsService typeOfRightsService
                                )
        {
            _DepartmentService   = DepartmentService;
            _DivisionService     = DivisionService;
            _localizationService = localizationService;
            _ExecutiveService    = ExecutiveService;
            _workContext         = workContext;
            _ProductTypeService  = ProductTypeService;
            //Added by saddam on 17/05/2016
            _AuthorTypeService = AuthorService;
            //ended by saddam
            _publishingCompanyService = publishingCompanyService;
            _encryptionService        = encryptionService;
            _commonList     = commonList;
            this._dbContext = dbContext;
            //Added by Suranjana on 11/07/2016
            _typeOfRightsService = typeOfRightsService;
        }
예제 #4
0
 public CompaniasController()
 {
     this.companiaService = ServiceFactory.BuildCompaniaService();
     this.contactoCompaniaService = ServiceFactory.BuildContactoCompaniaService();
     this.contactoDivisionService = ServiceFactory.BuildContactoDivisionService();
     this.civisionService = ServiceFactory.BuildDivisionService();
 }
예제 #5
0
        public Employee FindOrCreateObject(int divisionId, int titleInfoId, int employeeEducationId, string NIK, string Name, string Address, string PhoneNumber, string Email, string NPWP,
                                           string PlaceOfBirth, DateTime BirthDate, int Sex, int MaritalStatus, int Children, int Religion,
                                           IDivisionService _divisionService, ITitleInfoService _titleInfoService)
        {
            Employee employee = GetObjectByNIK(NIK);

            if (employee != null)
            {
                employee.Errors = new Dictionary <String, String>();
                return(employee);
            }
            employee = new Employee
            {
                DivisionId          = divisionId,
                TitleInfoId         = titleInfoId,
                EmployeeEducationId = employeeEducationId,
                NIK           = NIK,
                Name          = Name,
                Address       = Address,
                PhoneNumber   = PhoneNumber,
                Email         = Email,
                NPWP          = NPWP,
                PlaceOfBirth  = PlaceOfBirth,
                BirthDate     = BirthDate,
                Sex           = Sex,
                MaritalStatus = MaritalStatus,
                Children      = Children,
                Religion      = Religion,
            };
            return(this.CreateObject(employee, _divisionService, _titleInfoService));
        }
예제 #6
0
 public DivisionController()
 {
     _divisionService     = new DivisionService(new DivisionRepository(), new DivisionValidator());
     _departmentService   = new DepartmentService(new DepartmentRepository(), new DepartmentValidator());
     _employeeService     = new EmployeeService(new EmployeeRepository(), new EmployeeValidator());
     _branchOfficeService = new BranchOfficeService(new BranchOfficeRepository(), new BranchOfficeValidator());
 }
        public TournamentController(ITournamentService tournamentService, IDivisionService divisionService)
        {
            Guard.WhenArgument(tournamentService, nameof(tournamentService)).IsNull().Throw();
            Guard.WhenArgument(divisionService, nameof(divisionService)).IsNull().Throw();

            this.tournamentService = tournamentService;
            this.divisionService   = divisionService;
        }
예제 #8
0
 public AddModel(
     IDivisionService divisionService,
     IStringLocalizer <SharedResource> sharedLocalizer
     )
 {
     _divisionService = divisionService;
     _localizer       = sharedLocalizer;
 }
예제 #9
0
        // GET: SubCategory

        public SupplierController(ICustomerService CustomerService, IUserService UserService, IRoleService RoleService, IUserRoleService UserRoleService, IFormService FormService, IRoleDetailService RoleDetailService, ISubCategoryService SubCategoryService, ICategoryService CategoryService, ISupplierService SupplierService, IDivisionService DivisionService)
            : base(CustomerService, UserService, RoleService, FormService, RoleDetailService, UserRoleService)
        {
            this._SubCategoryService = SubCategoryService;
            this._CategoryService    = CategoryService;
            this._SupplierService    = SupplierService; //
            this._DivisionService    = DivisionService; //
        }
예제 #10
0
        public DivisionOrchestra(ISetupLocalService setupLocalService, IDivisionService divisionService)
        {
            var setting = setupLocalService.Find("ServerCode");

            _serverCode = setting != null ? setting.SetupValueNvarchar : "L";

            _divisionService = divisionService;
        }
예제 #11
0
 public ThanaController(IThanaService thanaService, IDivisionService divisionService
                        , IDistrictService districtService, ISPService spService)
 {
     this.thanaService    = thanaService;
     this.divisionService = divisionService;
     this.districtService = districtService;
     this.spService       = spService;
 }
예제 #12
0
 public TitleInfoController()
 {
     _titleInfoService = new TitleInfoService(new TitleInfoRepository(), new TitleInfoValidator());
     _divisionService  = new DivisionService(new DivisionRepository(), new DivisionValidator());
     //  _departmentService = new DepartmentService(new DepartmentRepository(), new DepartmentValidator());
     // _employeeService = new EmployeeService();
     _branchOfficeService = new BranchOfficeService(new BranchOfficeRepository(), new BranchOfficeValidator());
 }
예제 #13
0
 public ComboHelpListController(ISiteService siteServ, IDivisionService divserv,
                                IGodownService godownServ, IComboHelpListService comboHelpListServ)
 {
     _siteService          = siteServ;
     _divisionService      = divserv;
     _godownService        = godownServ;
     _comboHelpListService = comboHelpListServ;
 }
 public UserPermissionController(IUserPermissionService userPermissionService, IDivisionService divisionService, IDistrictService districtService, IUpazilaService upazilaService, ISchoolService schoolService, IRoleSubModuleItemService roleSubModuleItemService)
 {
     this.userPermissionService    = userPermissionService;
     this.divisionService          = divisionService;
     this.districtService          = districtService;
     this.upazilaService           = upazilaService;
     this.schoolService            = schoolService;
     this.roleSubModuleItemService = roleSubModuleItemService;
 }
예제 #15
0
 public Employee VHasDivision(Employee employee, IDivisionService _divisionService)
 {
     //Division division = _divisionService.GetObjectById(employee.DivisionId);
     //if (division == null)
     //{
     //    employee.Errors.Add("Division", "Tidak valid");
     //}
     return(employee);
 }
예제 #16
0
        public Department VDontHaveDivisions(Department department, IDivisionService _divisionService)
        {
            IList <Division> divisions = _divisionService.GetObjectsByDepartmentId(department.Id);

            if (divisions.Any())
            {
                department.Errors.Add("Generic", "Tidak boleh masih memiliki Divisions");
            }
            return(department);
        }
 public ApplicationUserOrchestra(IApplicationUserService AspNetUserService, IApplicationUserRoleService applicationUserRoleService, ICompanyService companyService,
                                 IDivisionService divisionService, IDepartmentService departmentService, IvwPermissionDetailService vwPermissionDetailService)
 {
     _applicationUserService     = AspNetUserService;
     _applicationUserRoleService = applicationUserRoleService;
     _companyService             = companyService;
     _departmentService          = departmentService;
     _divisonService             = divisionService;
     _vwPermissionDetailService  = vwPermissionDetailService;
 }
예제 #18
0
 public Employee CreateObject(Employee employee, IDivisionService _divisionService, ITitleInfoService _titleInfoService)
 {
     employee.Errors = new Dictionary <String, String>();
     if (_validator.ValidCreateObject(employee, this, _divisionService, _titleInfoService))
     {
         employee.PTKPCode = GetPTKPCode(employee.MaritalStatus != (int)Constant.MaritalStatus.Married, employee.Children);
         _repository.CreateObject(employee);
     }
     return(employee);
 }
 public EmployeeAttendanceController()
 {
     _employeeAttendanceService  = new EmployeeAttendanceService(new EmployeeAttendanceRepository(), new EmployeeAttendanceValidator());
     _employeeService            = new EmployeeService(new EmployeeRepository(), new EmployeeValidator());
     _titleInfoService           = new TitleInfoService(new TitleInfoRepository(), new TitleInfoValidator());
     _divisionService            = new DivisionService(new DivisionRepository(), new DivisionValidator());
     _departmentService          = new DepartmentService(new DepartmentRepository(), new DepartmentValidator());
     _employeeAttendanceService  = new EmployeeAttendanceService(new EmployeeAttendanceRepository(), new EmployeeAttendanceValidator());
     _branchOfficeService        = new BranchOfficeService(new BranchOfficeRepository(), new BranchOfficeValidator());
     _employeeWorkingTimeService = new EmployeeWorkingTimeService(new EmployeeWorkingTimeRepository(), new EmployeeWorkingTimeValidator());
 }
예제 #20
0
 public BranchController(
     IBranchService branchService,
     ICountryService countryService,
     IDivisionService divisionService,
     IDistrictService districtService
     )
 {
     _branchService   = branchService;
     _countryService  = countryService;
     _divisionService = divisionService;
     _districtService = districtService;
 }
예제 #21
0
 public Division VHasUniqueName(Division division, IDivisionService _divisionService)
 {
     //if (String.IsNullOrEmpty(division.Name) || division.Name.Trim() == "")
     //{
     //    division.Errors.Add("Name", "Tidak boleh kosong");
     //}
     //else if (_divisionService.IsNameDuplicated(division))
     //{
     //    division.Errors.Add("Name", "Tidak boleh ada duplikasi");
     //}
     return(division);
 }
예제 #22
0
 public Division VHasUniqueCode(Division division, IDivisionService _divisionService)
 {
     if (String.IsNullOrEmpty(division.Code) || division.Code.Trim() == "")
     {
         division.Errors.Add("Code", "Tidak boleh kosong");
     }
     else if (_divisionService.IsCodeDuplicated(division))
     {
         division.Errors.Add("Code", "Tidak boleh ada duplikasi");
     }
     return(division);
 }
예제 #23
0
        public DivisionController(IDivisionService DivisionService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _DivisionService = DivisionService;
            _unitOfWork      = unitOfWork;
            _exception       = exec;

            //Log Initialization
            LogVm.SessionId      = 0;
            LogVm.ControllerName = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("controller");
            LogVm.ActionName     = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("action");
            LogVm.User           = System.Web.HttpContext.Current.Request.RequestContext.HttpContext.User.Identity.Name;
        }
예제 #24
0
 public DivisionMasterController(IDivisionService DivisionService,
                                 ILocalizationService localizationService,
                                 ILogger loggerService,
                                 ISeriesService mobjSeriesService,
                                 IProductMasterService ProductMasterService
                                 )
 {
     _DivisionService      = DivisionService;
     _localizationService  = localizationService;
     _loggerService        = loggerService;
     _mobjSeriesService    = mobjSeriesService;
     _ProductMasterService = ProductMasterService;
 }
예제 #25
0
 public SessionController(ISessionService sessionService,
                          IDivisionService divisionService,
                          HallService hallService, CinemaService cinemaService, IActivityService activityService,
                          ISelectSeatTaskService selectSeatTaskService, ISeatService seatService)
 {
     this._sessionService        = sessionService;
     this._divisionService       = divisionService;
     this._hallService           = hallService;
     this._cinemaService         = cinemaService;
     this._activityService       = activityService;
     this._selectSeatTaskService = selectSeatTaskService;
     this._seatService           = seatService;
 }
예제 #26
0
 public AdminsController(IAdminService adminService, ILogger logger, IDivisionService divisionService, IPlayoffService playoffService, ISeasonInfoService seasonInfoService,
                         IUserService userService, ISummonerInfoRepository summonerInfoRepository, IRosterService rosterService, UserManager <UserEntity> userManager)
 {
     _adminService           = adminService ?? throw new ArgumentNullException(nameof(adminService));
     _logger                 = logger ?? throw new ArgumentNullException(nameof(logger));
     _divisionService        = divisionService ?? throw new ArgumentNullException(nameof(divisionService));
     _playoffService         = playoffService ?? throw new ArgumentNullException(nameof(playoffService));
     _seasonInfoService      = seasonInfoService ?? throw new ArgumentNullException(nameof(seasonInfoService));
     _userService            = userService ?? throw new ArgumentNullException(nameof(userService));
     _summonerInfoRepository = summonerInfoRepository ?? throw new ArgumentNullException(nameof(summonerInfoRepository));
     _rosterService          = rosterService ?? throw new ArgumentNullException(nameof(rosterService));
     _userManager            = userManager ?? throw new ArgumentNullException(nameof(userManager));
 }
예제 #27
0
 public bool ValidCreateObject(Division division, IDivisionService _divisionService, IDepartmentService _departmentService)
 {
     VHasDepartment(division, _departmentService);
     if (!isValid(division))
     {
         return(false);
     }
     VHasUniqueCode(division, _divisionService);
     if (!isValid(division))
     {
         return(false);
     }
     VHasUniqueName(division, _divisionService);
     return(isValid(division));
 }
예제 #28
0
 public SeasonService(ICyclistService cyclistService, ITrackService trackService, IRaceService raceService, ITeamService teamService, IDivisionService divisionService, IDataService dataService, IAIManagerService aIManagerService)
 {
     _cyclistService   = cyclistService;
     _trackService     = trackService;
     _raceService      = raceService;
     _teamService      = teamService;
     _divisionService  = divisionService;
     _dataService      = dataService;
     _aiManagerService = aIManagerService;
     _cyclistRanking   = new List <CyclistInRanking>();
     _teamRanking      = new List <TeamInRanking>();
     _saveGame         = new SaveGame()
     {
         Id = 0
     };
     _cyclistsToDelete = new List <Cyclist>();
 }
예제 #29
0
 public OfficeExecutiveController(IOfficeExecutiveService officeExecutiveService, IOrganizationService organizationService
                                  , IDesignationService designationService, IDepartmentService departmentService
                                  , IGenderService genderService, IDivisionService divisionService, IDistrictService districtService
                                  , IThanaService thanaService, ICountryService countryService, ITeamService teamService
                                  , IProfessionService professionService, ISPService spService)
 {
     this.officeExecutiveService = officeExecutiveService;
     this.organizationService    = organizationService;
     this.designationService     = designationService;
     this.departmentService      = departmentService;
     this.genderService          = genderService;
     this.divisionService        = divisionService;
     this.districtService        = districtService;
     this.thanaService           = thanaService;
     this.countryService         = countryService;
     this.teamService            = teamService;
     this.professionService      = professionService;
     this.spService = spService;
 }
예제 #30
0
 public LookupOrchestra(ICountryService countryService, ICurrencyService currencyService, ICustomerTypeService customerTypeService, IDespatchService despatchService,
                        IPorterageService porterageService, IPortService portService, IPackWtUnitService packWtUnitService, IPurchaseChargeTypeService purchaseChargeTypeService,
                        IPurchaseTypeService purchaseTypeService, ITransactionTaxLocationService transactionTaxLocationService, IvwPermissionDetailService permissionDetailService,
                        ICompanyService companyService, IDivisionService divisionService, IDepartmentService departmentService, ISetupGlobalService setupGlobalService, ISetupLocalService setupLocalService)
 {
     _countryService                = countryService;
     _currencyService               = currencyService;
     _customerTypeService           = customerTypeService;
     _despatchService               = despatchService;
     _packWtUnitService             = packWtUnitService;
     _portService                   = portService;
     _porterageService              = porterageService;
     _purchaseChargeTypeService     = purchaseChargeTypeService;
     _purchaseTypeService           = purchaseTypeService;
     _setupGlobalService            = setupGlobalService;
     _setupLocalService             = setupLocalService;
     _transactionTaxLocationService = transactionTaxLocationService;
     _permissionDetailService       = permissionDetailService;
     _companyService                = companyService;
     _divisionService               = divisionService;
     _departmentService             = departmentService;
 }
예제 #31
0
 public DivisionController(ILogger <DivisionController> logger, IDivisionService divisionSvc)
 {
     _logger      = logger;
     _divisionSvc = divisionSvc;
 }
예제 #32
0
 public DivisionesController()
 {
     this.divisionService = ServiceFactory.BuildDivisionService();
 }