コード例 #1
0
        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"));
        }
コード例 #2
0
        public override string ToString()
        {
            return(@$ "  Staff : {NameOfStaff}
=====================================
Hourly rate : {hourlyRate.ToString()}
Hours worked : {HoursWorked.ToString()}
Basic pay : ${BasicPay.ToString()}
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: frmEmpBasicPay.cs プロジェクト: zerojec/MMG-PIAPS
 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);
         }
     }
 }
コード例 #5
0
 public override string ToString()
 {
     return(BasicPay.ToString() + " " + TotalPay.ToString());
 }
コード例 #6
0
ファイル: Admin.cs プロジェクト: dadwonkulahjr/LinqTutorial
 public override string ToString()
 {
     return($"NameOfStaff = {NameOfStaff}\nHoursWorked = {HoursWorked}" +
            $"\nBasicPay = {BasicPay.ToString("c")}\nTotalPay = {TotalPay.ToString("c")}\nHourlyPayRate Admin = {_adminHourlyPayRate.ToString("c")}");
 }
コード例 #7
0
ファイル: Manager.cs プロジェクト: dadwonkulahjr/LinqTutorial
 public override string ToString()
 {
     return("Name = " + NameOfStaff + "Basic Pay = " + BasicPay.ToString("c") + "\n" + "Total Pay = " + TotalPay.ToString("c") + "\n" +
            "Allowence = " + Allowence.ToString("c"));
 }