Beispiel #1
0
 public RequestControl(int personId, int createdById, int departmentId, string description, string firstName, string lastName, string username, ApproveManagerRequests form = null)
 {
     InitializeComponent();
     lblRequest.Text            = $"{firstName} {lastName} firing!";
     lblRequestDescription.Text = description;
     this.personId     = personId;
     this.createdById  = createdById;
     this.departmentId = departmentId;
     this.username     = username;
     this.description  = description;
     this.firstName    = firstName;
     this.lastName     = lastName;
     this.form         = form;
 }
Beispiel #2
0
 public RequestControl(int personId, int createdById, string username, string firstName, string lastName, decimal hourlyWage, int departmentId, ApproveManagerRequests form = null)
 {
     InitializeComponent();
     lblRequest.Text            = $"Promotion!";
     lblRequestDescription.Text = $"Promoting {firstName} {lastName}!";
     this.personId           = personId;
     this.createdById        = createdById;
     this.departmentId       = departmentId;
     this.username           = username;
     this.firstName          = firstName;
     this.lastName           = lastName;
     this.hourlyWage         = hourlyWage;
     this.form               = form;
     this.previousHourlyWage = Worker.GetworkerCurrentWage(personId);
 }
Beispiel #3
0
 public RequestControl(int personId, int createdById, string username, string firstName, string lastName, decimal hourlyWage, int departmentId, DateTime contractStartDate, long phoneNumber, string email, ApproveManagerRequests form = null)
 {
     InitializeComponent();
     lblRequest.Text            = $"Hiring!";
     lblRequestDescription.Text = $"Hiring of {firstName} {lastName}!";
     this.personId          = personId;
     this.createdById       = createdById;
     this.departmentId      = departmentId;
     this.username          = username;
     this.firstName         = firstName;
     this.lastName          = lastName;
     this.hourlyWage        = hourlyWage;
     this.contractStartDate = contractStartDate;
     this.phoneNumber       = phoneNumber;
     this.email             = email;
     this.form = form;
 }