PdcClockLine

From External Bemet Wiki
Revision as of 12:11, 21 May 2012 by Mike (talk | contribs)
Jump to navigation Jump to search

Methods

PdcClockLine.Read
PdcClockLine.Save

Properties

PdcClockLine.CalculationNo
PdcClockLine.ClockAccount
PdcClockLine.ClockCode
PdcClockLine.DateChanged
PdcClockLine.EndClocking
PdcClockLine.History
PdcClockLine.HourSurcharge
PdcClockLine.ID
PdcClockLine.OperationLineNo
PdcClockLine.OperationNo
PdcClockLine.PersonelName
PdcClockLine.PersonelNo
PdcClockLine.ProjectNo
PdcClockLine.Registered
PdcClockLine.ScheduleID
PdcClockLine.StartClocking
PdcClockLine.Text
PdcClockLine.TimeKind
PdcClockLine.TimeType
PdcClockLine.Userfieldslist
PdcClockLine.WorkedTime

Description

Interface object for a clockline

Notes

Represents the ClockLine object. With this object a script can manipulate a single clock line. Pay attention: The sequence of filling properties is important. See the helpfile for the properties.

Code example

The following example code creates a new clock line:

Dim objClockLine

  Set objClockLine = Pdc.ProductRegistration.ClockLines.New
  objClockLine.PersonelNo    = "1000"
  objClockLine.ClockAccount  = "LUNCH"
  objClockLine.StartClocking = Cdate(Date)
  objClockLine.EndClocking   = Cdate(Date)
  objClockLine.WorkedTime    = 2.5
  objClockLine.Save
  Set objClockLine = nothing

The following example code modifies an existing clock line:

Dim aClockLine

  Set aClockLine = Pdc.ProductRegistration.ClockLines.Open(567)
  aClockLine.(parameter)=(value)
  aClockLine.Save
  Set aClockLine = nothing

Availability

Available since july 2008 (from version 3.8).