private async Task LoadMoreVacancies() { IsBusy = true; LoadMoreIsVisible = false; FilterParameters.CurrentPage += 1; Dictionary <string, object> obj = await _candidateExploreService.GetCandidateJobsSearch(FilterParameters); if (obj["Jobs"] != null) { List <ContactJobs> listMore = JsonConvert.DeserializeObject <List <ContactJobs> >(obj["Jobs"].ToString()); foreach (var item in listMore) { Vacancies.Add(item); } if (listMore.Count < PageSize) { LoadMoreIsVisible = false; } else { LoadMoreIsVisible = true; } } else { FilterParameters.CurrentPage--; LoadMoreIsVisible = true; } IsBusy = false; }
public Employee(string name, Vacancies vacancy, int salary, int[] dateGet) { Name = name; Vacancy = vacancy; Salary = salary; DateGet = dateGet; }
public Employee(Vacancies vacancy, string name, int salary, DateTime date) { Vacancy = vacancy; Name = name; Salary = salary; EmploymentDate = date; }
public void Report1(Vacancies vac) { double summSal = 0; int ClerkCount = 0; foreach (Employees item in emp) { if (item.Position == Vacancies.Clerk) { summSal += item.Salary; ClerkCount++; } } summSal = summSal / ClerkCount; List <Employees> list = new List <Employees>(); foreach (Employees item in emp) { if (item.Position == vac && item.Salary > summSal) { list.Add(item); } } Console.WriteLine("{0}, зарплата которых больше средней зарплаты {1} всех ({2}) клерков", vac.ToString(), summSal, ClerkCount); list = list.OrderBy(o => o.FullName).ToList(); PrintInfo(list); }
private async Task LoadMoreVacancies() { IsBusy = true; _currentPageVacancies += 1; AccountJobs AJ = new AccountJobs { AccountID = _accountID, CurrentPage = _currentPageVacancies, PageSize = PageSize }; dynamic obj = await _employerJobService.GetRelatedJobs(AJ); if (obj["Jobs"] != null) { List <AccountJobs> listMore = JsonConvert.DeserializeObject <List <AccountJobs> >(obj["records"].ToString()); if (listMore.Count > 0) { foreach (var item in listMore) { Vacancies.Add(item); } if (obj["hasMore"] == false) { VacancisLoadMoreIsVisible = false; } } else { VacancisLoadMoreIsVisible = false; } } IsBusy = false; }
public Employee(string name, int payment, Vacancies vacancie, DateTime _dateOfGettingTheJob) { Name = name; Payment = payment; Vacancie = vacancie; dateOfGettingTheJob = _dateOfGettingTheJob; }
public Employee(string name, Vacancies vacancy, int salary, int[] dateOfEngagement) { Name = name; Vacancy = vacancy; Salary = salary; DateOfEngagement = dateOfEngagement; }
public async Task <ActionResult <Vacancies> > Put( [FromServices] DataContext context, [FromBody] Vacancies model, int id) { var vacancies = await context.Vacancies.FindAsync(id); // model.Id = vacancies.Id; vacancies.NameVacancies = model.NameVacancies; vacancies.Requirements = model.Requirements; vacancies.Stack = model.Stack; vacancies.Differentials = model.Differentials; if (vacancies.Id == id && ModelState.IsValid) { context.Vacancies.Update(vacancies); // Console.WriteLine(context.Vacancies.Update(vacancies)); // Console.WriteLine("model.Id/n"); // Console.WriteLine(model.Id); context.Entry(vacancies).State = EntityState.Modified; await context.SaveChangesAsync(); return(vacancies); } else { return(BadRequest(ModelState)); } }
public async Task <IActionResult> Edit(int id, [Bind("Id,Name")] Vacancies vacancies) { if (id != vacancies.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(vacancies); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!VacanciesExists(vacancies.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(vacancies)); }
private async Task ApplyJob() { if (SwipedJobItem.VacancyID.HasValue) { var pop = await _dialogService.OpenLoadingPopup(); Dictionary <string, object> obj = await _candidateJobService.ApplyVacancy(SwipedJobItem.VacancyID); try { if (obj["Success"].ToString() == "true") //success { CandidateMainViewModel.Current.IsJobPageRendered = false; await _dialogService.PopupMessage("Apply Job Successefully", "#52CD9F", "#FFFFFF"); Vacancies.FirstOrDefault(x => x.VacancyID == SwipedJobItem.VacancyID).Status = "Applied"; } else if (obj["Success"].ToString() == "false") { await _dialogService.PopupMessage("An error has occurred, please try again!!", "#CF6069", "#FFFFFF"); } } catch { await _dialogService.PopupMessage("An error has occurred, please try again!!", "#CF6069", "#FFFFFF"); await _dialogService.CloseLoadingPopup(pop); } await _dialogService.CloseLoadingPopup(pop); } }
public Employee(string name, Vacancies vacancy, int salary, DateTime dataEnter) { _name = name; _vacancy = vacancy; _salary = salary; _dataEnter = dataEnter; }
public void VacanciesPropertyAddress() { var test = "Test"; var vacancies = new Vacancies(); vacancies.Address = test; Assert.AreEqual(test, vacancies.Address); }
public void FirmToString() { var firm = new Vacancies(); string expected = "BusinessLogicLayer.Vacancies"; var str = firm.ToString(); Assert.AreEqual(expected, str); }
public void FirmPropertyPerson() { var test = new Firm("na", "str", 2, 2); var resume = new Vacancies(); resume.Firm = test; Assert.AreEqual(test.Name, resume.Firm.Name); }
public void VacanciesPropertySphere() { var test = "IT"; var vacancies = new Vacancies(); vacancies.Sphere = test; Assert.AreEqual(test, vacancies.Sphere); }
public ActionResult DeleteConfirmed(int id) { Vacancies vacancies = db.Vacancies.Find(id); db.Vacancies.Remove(vacancies); db.SaveChanges(); return(RedirectToAction("Index")); }
public void VacanciesPropertyExp() { var test = 12; var vacancies = new Vacancies(); vacancies.Experience = test; Assert.AreEqual(test, vacancies.Experience); }
public void VacanciesPropertyEducationFalse() { var test = false; var vacancies = new Vacancies(); vacancies.Higher_education = test; Assert.AreEqual(test, vacancies.Higher_education); }
public void VacanciesPropertySallary() { var test = 3; var resume = new Vacancies(); resume.Sallary = test; Assert.AreEqual(test, resume.Sallary); }
public void VacanciesPropertyEngKnowTrue() { var test = true; var vacancies = new Vacancies(); vacancies.Eng_knowledge = test; Assert.AreEqual(test, vacancies.Eng_knowledge); }
public Employee(string fullName, Vacancies vacancy, int salary, DateTime dateOfEmployee) { Id++; this.FullName = fullName; this.Vacancy = vacancy; this.Salary = salary; this.DateOfEmployee = dateOfEmployee; }
public Employee(string name, int age, Vacancies vacancy, int salary, int employmentDate) { this.name = name; this.age = age; this.vacancy = vacancy; this.salary = salary; this.employmentDate = employmentDate; }
public ActionResult Edit([Bind(Include = "Id,BuildingName,Unit,PhoneNumber")] Vacancies vacancies) { if (ModelState.IsValid) { db.Entry(vacancies).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vacancies)); }
public ActionResult Edit([Bind(Include = "Id,Position,NumberOfPersons,Team,Head,TypeOfPayment,Amount,CurrencyType,PaymentComments,EmploymentType,CauseOfOccurrence,Duties,GoalsAndObjectives,Gender,YearsOld,FamilyStatus,Location,Education,WorkExperience,ProfessionalKnowledge,PersonalQualities,AdditionalRequirements,TechnicalInterviewsAreConducted,TheFinalDecision,ExpectedDateOfEmployment")] Vacancies vacancies) { if (ModelState.IsValid) { db.Entry(vacancies).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vacancies)); }
public Employee(string _name, Vacancies _vacancy, int _salary, int[] date) { name = _name; vacancy = _vacancy; salary = _salary; for (int i = 0; i < date.Length; i++) { empyomentDate[i] = date[i]; } }
public Employee(string name, Vacancies vacancy, int salary, int recepitDateYear, Month recepitDateMonth, int recepitDateDay) { Name = name; Vacancy = vacancy; Salary = salary; RecepitDate = new int[Constants.DATE_COUNT]; RecepitDate[Constants.DATE_YEAR] = recepitDateYear; RecepitDate[Constants.DATE_MONTH] = (int)recepitDateMonth; RecepitDate[Constants.DATE_DAY] = recepitDateDay; }
public async Task <IActionResult> Create([Bind("Id,Name")] Vacancies vacancies) { if (ModelState.IsValid) { _context.Add(vacancies); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(vacancies)); }
public ActionResult Create([Bind(Include = "Id,BuildingName,Unit,PhoneNumber")] Vacancies vacancies) { if (ModelState.IsValid) { db.Vacancies.Add(vacancies); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vacancies)); }
public IActionResult AddVacancy(string title, DateTime date) { if (title != null && date != null) { Vacancies vacancy = new Vacancies() { Title = title, Date = date }; dao.Add(vacancy); } return(View("Index")); }
public static int NumberEmployee(Employee[] employees, Vacancies vacancy) { int numberEmployee = new int(); foreach (Employee employee in employees) { if (employee.Vacancy == vacancy) { numberEmployee++; } } return(numberEmployee); }