Exemplo n.º 1
0
 private void ClockOut()
 {
     _clockIn.SetEndTime(_clockOutTime);
     _clockIn.SetDeclaredTipAmount(_tipsDeclared);
     _clockIn.Update();
     Window.GetWindow(this).Close();
 }
Exemplo n.º 2
0
        private void UpdateModel(TimesheetMaintenanceDataModel model)
        {
            EmployeeTimesheet entry = EmployeeTimesheet.Get(model.Id);

            LogChange(model, entry);
            entry.SetDeclaredTipAmount(model.DeclaredTipAmount);
            entry.SetDriverCompensationAmount(model.DriverCompensation);
            entry.SetStartTime(model.StartTime);
            entry.SetEndTime(model.EndTime);
            entry.SetJobId(model.GetJobId());
            entry.Update();
            dataGrid.Items.Refresh();
        }