PdcClockLine: Difference between revisions
No edit summary |
No edit summary |
||
Line 32: | Line 32: | ||
Represents the ClockLine object. | Represents the ClockLine object. | ||
With this object a script can manipulate a single clock line. | With this object a script can manipulate a single clock line. | ||
Pay attention: The sequence of | Pay attention: The sequence of populating the properties is important. | ||
See the helpfile for the properties. | See the helpfile for the properties. | ||
Revision as of 18:47, 13 June 2017
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 populating the 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).