예제 #1
0
 public OffersAll()
 {
     InitializeComponent();
     foreach (var item in JobOfferService.GetOffersByBusinessName(LoggedData.LoggedBusiness.Name))
     {
         flowLayoutPanel1.Controls.Add(new offerComponent(item));
     }
     flowLayoutPanel1.Refresh();
 }
예제 #2
0
        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();
        }
예제 #3
0
        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();
        }
예제 #4
0
        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();
        }