public CompanyService(ICitizenService citizenService, IConfigurationRepository configurationRepository,
                       IEquipmentRepository equipmentRepository, IProductService productService, IProductRepository productRepository,
                       ICitizenRepository citizenRepository, ITransactionsService transactionService,
                       IJobOfferService jobOfferService, ICompanyEmployeeRepository companyEmployeeRepository,
                       ICompanyRepository companyRepository, IEntityService entityService, ICompanyManagerRepository companyManagerRepository,
                       IRegionRepository regionRepository, IWarningService warningService, IJobOfferRepository jobOfferRepository,
                       IEquipmentService equipmentService, IContractService contractService, IWalletService walletService, IPopupService popupService,
                       IRegionService regionService, ICompanyFinanceSummaryService companyFinanceSummaryService)
 {
     this.companyRepository         = companyRepository;
     this.entityService             = entityService;
     this.companyManagerRepository  = companyManagerRepository;
     this.jobOfferService           = jobOfferService;
     this.companyEmployeeRepository = companyEmployeeRepository;
     this.citizenRepository         = citizenRepository;
     this.transactionService        = transactionService;
     this.equipmentRepository       = equipmentRepository;
     this.productService            = productService;
     this.productRepository         = productRepository;
     this.citizenService            = Attach(citizenService);
     this.configurationRepository   = configurationRepository;
     this.regionRepository          = regionRepository;
     this.warningService            = Attach(warningService);
     this.jobOfferRepository        = jobOfferRepository;
     this.equipmentService          = Attach(equipmentService);
     this.contractService           = Attach(contractService);
     this.walletService             = Attach(walletService);
     this.popupService  = Attach(popupService);
     this.regionService = Attach(regionService);
     this.companyFinanceSummaryService = Attach(companyFinanceSummaryService);
 }
 public JobOfferFacade(IUnitOfWorkProvider unitOfWorkProvider, IFavoriteJobService favoriteJobService,
                       IKeywordsJobOfferService keywordsJobOfferService, IJobOfferService jobOfferService) : base(
         unitOfWorkProvider)
 {
     this.jobOfferService         = jobOfferService;
     this.keywordsJobOfferService = keywordsJobOfferService;
     this.favoriteJobService      = favoriteJobService;
 }
Beispiel #3
0
 public CompanyValidator(ModelStateDictionary modelState)
     : base(modelState)
 {
     this.currencyRepository = DependencyResolver.Current.GetService <ICurrencyRepository>();
     this.entityRepository   = DependencyResolver.Current.GetService <IEntityRepository>();
     this.walletService      = DependencyResolver.Current.GetService <IWalletService>();
     this.companyRepository  = DependencyResolver.Current.GetService <ICompanyRepository>();
     this.jobOfferService    = DependencyResolver.Current.GetService <IJobOfferService>();
     this.entityService      = DependencyResolver.Current.GetService <IEntityService>();
 }
 public JobOfferFacade(IUnitOfWorkProvider unitOfWorkProvider, IMapper mapper,
                       IJobOfferService jobOfferService,
                       ISkillService skillService,
                       IJobOfferRecommendationService jobOfferRecommendationService,
                       IUserService userService) : base(unitOfWorkProvider)
 {
     this.jobOfferService = jobOfferService;
     this.skillService    = skillService;
     this.jobOfferRecommendationService = jobOfferRecommendationService;
     this.userService = userService;
 }
 public JobOfferController(
     IJobOfferService jobOfferService,
     IJobCategoryService jobCategoryService,
     IJobTypeService jobTypeService,
     IAuthService authService,
     IMapper mapper)
 {
     _jobOfferService    = jobOfferService;
     _jobCategoryService = jobCategoryService;
     _jobTypeService     = jobTypeService;
     _authService        = authService;
     _mapper             = mapper;
 }
 public JobOffersController(IJobOfferService jobOfferService, IMapper mapper, INotifier notifier) : base(notifier)
 {
     _jobOfferService = jobOfferService;
 }
Beispiel #7
0
 public JobOfferController(IJobOfferService JobofferService, IAcademicMajorService academicMajorService)
 {
     this._JobofferService = JobofferService;
     _academicMajorService = academicMajorService;
 }
 public JobApplicationService(StudentbyContext context, IJobOfferService jobOfferService)
 {
     _context         = context;
     _jobOfferService = jobOfferService;
 }
        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("Default.aspx");
              SetTitle(" - Állásajánlatra jelentkezés módosítása");
              SetDefaultControls("btnModify", "txtMotivation");
              // Check permission: anybody can use this page
              PrincipalPermission permReg = new PrincipalPermission(Context.User.Identity.Name, "Registered");
              permReg.Demand();

              string jobId = Request["jobId"];
              m_sender = Request["sender"];
              m_subscriber = Request["subscriber"];

              if (jobId == null)
            throw new ApplicationException("Hiányzó kötelező paraméter: hirdetés azonosító.");
              if (m_sender == null)
            throw new ApplicationException("Hiányzó kötelező paraméter: hirdetés azonosító.");
              if (m_subscriber == null)
            throw new ApplicationException("Hiányzó kötelező paraméter: hirdetés azonosító.");

              if (!m_subscriber.Equals(Context.User.Identity.Name))
              {
            throw new SecurityException("Ez nem az ön jelentkezése. Nincs jogosultsága módosítani.");
              }

              m_srvJob = ServiceFactory.GetJobOfferService();
              m_JobId = new Guid(jobId);
              m_Job = m_srvJob.JobOfferSelect(m_JobId);
              m_JobAnswer = m_srvJobAnswer.JobAnswerSelect(m_JobId, JobAnswerTypeEnum.OFF, Context.User.Identity.Name, m_Job.Sender);
              if (!Page.IsPostBack)
              {
            RetreiveData();

            #region Egyéb dokumentumok grid feltöltése

            ShowAttachementGrid();

            #endregion
              }
        }
Beispiel #10
0
 public CompanyJobOfferController(IJobOfferService jobOfferService)
 {
     this.jobOfferService = jobOfferService;
 }
Beispiel #11
0
 public JobOfferController(IMapper mapper, IJobOfferService jobOfferService)
 {
     this._mapper          = mapper;
     this._jobOfferService = jobOfferService;
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("Default.aspx");
              SetTitle(" - Állásajánlatra jelentkezés rögzítése");
              SetDefaultControls("btnCreate", "txtMotivation");
              // Check permission: anybody can use this page
              PrincipalPermission permReg = new PrincipalPermission(Context.User.Identity.Name, "Registered");
              permReg.Demand();

              string jobId = Request["jobId"];
              m_sender = Request["sender"];
              if (jobId == null)
            throw new ApplicationException("Hiányzó kötelező paraméter: hirdetés azonosító.");

              m_srvJob = ServiceFactory.GetJobOfferService();
              m_JobId = new Guid(jobId);
              m_Job = m_srvJob.JobOfferSelect(m_JobId);

              if (!Page.IsPostBack)
              {
            RetreiveData();

            #region Attachement grid feltöltése

            ShowAttachementGrid();

            #endregion
              }
        }
        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("Default.aspx");
              SetTitle(" - Keresés hirdetés adatai");
              SetDefaultControls("btnModify", "");
              string jobId = Request["jobId"];
              m_sender = Request["sender"];

              // Check permission: anybody can use this page
              PrincipalPermission permReg = new PrincipalPermission(Context.User.Identity.Name, "Registered");
              permReg.Demand();

              if (jobId == null)
            throw new ApplicationException("Hiányzó kötelező paraméter: hirdetés azonosító.");

              m_srvJob = ServiceFactory.GetJobOfferService();
              m_JobId = new Guid(jobId);
              m_Job = m_srvJob.JobOfferSelect(m_JobId);

              if (!Page.IsPostBack)
              {
            RetreiveData();

            #region Egyéb dokumentumok grid feltöltése

            ShowAttachementGrid();

            #endregion

            ShowUserGrid(gridUser, 0, "Name", "Ascending");
              }

              if (!m_Job.Sender.Equals(Context.User.Identity.Name))
              {
            btnModify.Visible = false;
            btnInactivate.Visible = false;
            IJobAnswerService srvAnswer = ServiceFactory.GetJobAnswerService();
            JobAnswer answer = srvAnswer.JobAnswerSelect(m_JobId, JobAnswerTypeEnum.OFF, Context.User.Identity.Name, m_Job.Sender);
            if (answer == null)
            {
              btnSusbscribe.Text = "Jelentkezés";
              btnSusbscribe.CommandName = "subscribe";
            }
            else
            {
              btnSusbscribe.Text = "Lejelentkezés";
              btnSusbscribe.CommandName = "unsubscribe";
              const string script = "return confirm('Biztosan lejelentkezik a hirdetésről?');";
              btnSusbscribe.Attributes.Add("OnClick", script);
            }
              }
              else
              {
            btnSusbscribe.Visible = false;
            if (m_Job.Status.Equals(JobStatusEnum.ACT))
            {
              btnInactivate.Text = "Inaktiválás";
            }
            else
            {
              if (m_Job.Status.Equals(JobStatusEnum.INA))
              {
            btnInactivate.Text = "Aktiválás";
              }
              else
              {
            btnInactivate.Visible = false;
              }
            }
              }
        }
Beispiel #14
0
 public JobOffersController(IJobOfferService jobService)
 {
     _jobService = jobService;
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("Default.aspx");
              SetTitle(" -Állásajánlatra jelentkezés adatai");
              SetDefaultControls("btnModify","");
              // Check permission: anybody can use this page
              PrincipalPermission permReg = new PrincipalPermission(Context.User.Identity.Name, "Registered");
              permReg.Demand();
              string jobId = Request["jobId"];
              m_sender = Request["sender"];
              m_subscriber = Request["subscriber"];

              if (jobId == null)
            throw new ApplicationException("Hiányzó kötelező paraméter: hirdetés azonosító.");
              if (m_sender == null)
            throw new ApplicationException("Hiányzó kötelező paraméter: hirdetés azonosító.");
              if (m_subscriber == null)
            throw new ApplicationException("Hiányzó kötelező paraméter: hirdetés azonosító.");

              if (m_subscriber != Context.User.Identity.Name && m_sender != Context.User.Identity.Name)
              {
            if (m_subscriber != Context.User.Identity.Name)
            {
              throw new SecurityException("Nem az ön jelentkezése, nem tekintheti meg az adatokat.");
            }
            if (m_sender != Context.User.Identity.Name)
            {
              throw new SecurityException("Nem az ön hirdetése, nem tekintheti meg az adatokat.");
            }
              }
              m_srvJob = ServiceFactory.GetJobOfferService();
              m_JobId = new Guid(jobId);
              m_Job = m_srvJob.JobOfferSelect(m_JobId);
              m_JobAnswer = m_srvJobAnswer.JobAnswerSelect(m_JobId, JobAnswerTypeEnum.OFF, m_subscriber,m_sender);
              if (!Page.IsPostBack)
              {
            RetreiveData();

            #region Egyéb dokumentumok grid feltöltése

            ShowAttachementGrid();

            #endregion
              }
              if (m_JobAnswer.SenderNameRef == Context.User.Identity.Name)
              {
            btnModify.Visible = false;

              }
              else
              {
            btnModify.Visible = true;

              }
        }