public OffersAll() { InitializeComponent(); foreach (var item in JobOfferService.GetOffersByBusinessName(LoggedData.LoggedBusiness.Name)) { flowLayoutPanel1.Controls.Add(new offerComponent(item)); } flowLayoutPanel1.Refresh(); }
private void lblBusinessName_Click(object sender, EventArgs e) { //profile viwer added ViewerService.AddProfileViewer(new Entities.ProfileViewer(offerGlobal.Business, LoggedData.LoggedJobSeeker)); var business = BusinessService.SearchByBusinessName(offerGlobal.Business.Name); int offersNum = JobOfferService.GetOffersByBusinessName(offerGlobal.Business.Name).Count; // MessageBox.Show(business.Name); BusinessProfile b1 = new BusinessProfile(business, offersNum); b1.Show(); }
public YourJobOffers() { InitializeComponent(); // //var offer = new JobOffer("title", "Helo world",new Business("Interex",null,new Category("Category"),null) // , new Address("Prishtina", "hello", 1000),new Category("Category name")); // MessageBox.Show(LoggedData.LoggedBusiness.Name); foreach (var item in JobOfferService.GetOffersByBusinessName(LoggedData.LoggedBusiness.Name)) { flowLayoutPanel1.Controls.Add(new OfferComponent(item)); } flowLayoutPanel1.Refresh(); }
public ApplicationStatistic() { InitializeComponent(); lblMyOffersShared.Text = JobOfferService.GetOffersByBusinessName(LoggedData.LoggedBusiness.Name).Count.ToString(); lblTechnologyOffersJob.Text = JobOfferService.GetJobBsyCategoryAndBusinessName("Technology", LoggedData.LoggedBusiness.Name).ToString(); lblPristinaOffers.Text = JobOfferService.GetJobBsyCity("Prishtinë").ToString(); //// //Applications statistic lblApplicationsNum.Text = ApplicationService.GetApplicationByBusinessName(LoggedData.LoggedBusiness.Name).Count.ToString(); lblMaleApplications.Text = ApplicationService.GetApplicationsByMale().ToString(); lblRefusedApplications.Text = ApplicationService.ApplicationRefused(LoggedData.LoggedBusiness.Name).ToString(); //female find int femaleCount = ApplicationService.GetApplicationByBusinessName(LoggedData.LoggedBusiness.Name).Count - ApplicationService.GetApplicationsByMale(); lblFemalApplicants.Text = femaleCount.ToString(); }