public override string ToString() { Manager manager = new Manager(null); return("Name = " + NameOfStaff + " Basic Pay = " + BasicPay.ToString("c") + "\n" + "Total Pay = " + TotalPay.ToString("c") + "\n" + "Overtime = " + OverTime.ToString("c")); }
public override string ToString() { return(@$ " Staff : {NameOfStaff} ===================================== Hourly rate : {hourlyRate.ToString()} Hours worked : {HoursWorked.ToString()} Basic pay : ${BasicPay.ToString()}
public override StagingBasicPayBO Run(StagingBasicPayBO key, ImportBasicPayCmd request) { bool hasError = false; if (errorsPerRow.ContainsKey(key.RowIndex)) { hasError = true; key.ValidationFailures = errorsPerRow[key.RowIndex]; } if (!hasError) { var newBasicPay = new BasicPay { Amount = key.Amount, ClientID = AppSession.ClientID, EmployeeID = EmployeeIDs[key.EmployeeSysID], AmountBasis = GetAmountBasis(key.Basis), Effectivity = CommonUtility.DateTimeUtility.ParseDateTime(key.Effectivity), PeriodStartID = GetPeriodID(key.PeriodStart).GetValueOrDefault(), PeriodEndID = GetPeriodID(key.PeriodEnd) }; DbContext.BasicPays.Add(newBasicPay); } return(key); }
private void btnUpdate_Click(object sender, EventArgs e) { newbasicpay = Convert.ToDecimal(txtBasicPay.Text); if (emp.basic_pay != newbasicpay) { BasicPay bp = new BasicPay(); bp.empid = emp.empid; bp.basic_pay = newbasicpay; if (bp.save()) { this.Dispose(); } else { MessageBox.Show("There was a problem updating employee's basic pay : \n" + db.err.Message); } } }
public override string ToString() { return(BasicPay.ToString() + " " + TotalPay.ToString()); }
public override string ToString() { return($"NameOfStaff = {NameOfStaff}\nHoursWorked = {HoursWorked}" + $"\nBasicPay = {BasicPay.ToString("c")}\nTotalPay = {TotalPay.ToString("c")}\nHourlyPayRate Admin = {_adminHourlyPayRate.ToString("c")}"); }
public override string ToString() { return("Name = " + NameOfStaff + "Basic Pay = " + BasicPay.ToString("c") + "\n" + "Total Pay = " + TotalPay.ToString("c") + "\n" + "Allowence = " + Allowence.ToString("c")); }