Beispiel #1
0
        private void btnAbandonJob_Click(object sender, EventArgs e)
        {
            prompt.ShowDialog(message: "Are you sure you want to abandon this job?", caption: "Abondon Job?", method: () => jobLogic.updateJob(new Job(id: assignedJob.Id, contractID: assignedJob.ContractID, employeeID: assignedJob.EmployeeID, jobStatus: "Unassigned", jobDescription: assignedJob.JobDescription, clientSatisfaction: assignedJob.ClientSatisfaction, jobCategory: assignedJob.JobCategory, jobType: assignedJob.JobType, pay: assignedJob.Pay)));
            AvailableJobsScreen availableJobsScreen = new AvailableJobsScreen(loggedEmployee);

            this.Hide();
            availableJobsScreen.Show();
            this.Close();
        }
Beispiel #2
0
        private void rdOneStar_CheckedChanged(object sender, EventArgs e)
        {
            if (rdOneStar.Checked)
            {
                JobBusinessLogic jobBusiness = new JobBusinessLogic();

                selectedJob.ClientSatisfaction = "1";

                jobBusiness.updateJob(selectedJob);
            }
        }
 private void btnUpdateJob_Click(object sender, EventArgs e)
 {
     if (lstJobs.SelectedItems.Count < 0)
     {
         MessageBox.Show("No job is currently selected");
     }
     else
     {
         jobLogic.updateJob(new Job(id: selectedJob.Id, contractID: selectedContract.Id, employeeID: selectedJob.EmployeeID == "" ? "kamoTechnicianID" : selectedJob.EmployeeID, jobStatus: selectedJob.JobStatus, jobDescription: txtDescription.Text, clientSatisfaction: 0.ToString(), jobCategory: cmbJobCategory.Text, jobType: cmbJobType.Text, pay: new Pay("", 600)));
     }
 }