PdcClockLine
Contents |
Methods
PdcClockLine.CopyID
PdcClockLine.Read
PdcClockLine.Save
Properties
PdcClockLine.CalculationNo
PdcClockLine.ClockAccount
PdcClockLine.ClockCode
PdcClockLine.ClockDate
PdcClockLine.CombiTime
PdcClockLine.DateChanged
PdcClockLine.DateCreated
PdcClockLine.DirectLine
PdcClockLine.EndClocking
PdcClockLine.EndTime
PdcClockLine.History
PdcClockLine.HourSurcharge
PdcClockLine.ID
PdcClockLine.IsInterMediate
PdcClockLine.IsNesting
PdcClockLine.NameChanged
PdcClockLine.NameCreated
PdcClockLine.NestingBlock
PdcClockLine.NestingLineID
PdcClockLine.NestingNumber
PdcClockLine.NestingRatio
PdcClockLine.OperationLineNo
PdcClockLine.OperationNo
PdcClockLine.PersonelName
PdcClockLine.PersonelNo
PdcClockLine.PlanPlace
PdcClockLine.PlanPlaceID
PdcClockLine.PlanSeqID
PdcClockLine.ProjectNo
PdcClockLine.Registered
PdcClockLine.ScheduleID
PdcClockLine.StartClocking
PdcClockLine.StartTime
PdcClockLine.Text
PdcClockLine.TimeKind
PdcClockLine.TimeType
PdcClockLine.Userfieldslist
PdcClockLine.WorkedTime
PdcClockLine.YearWeek
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 according to the PdC default standard:
Dim ClockLine As PDCEXT.IClockLine ClockLine = PDC.App.ProductRegistration.ClockLines.New ClockLine.PersonelNo = "1000" ClockLine.ClockAccount = "LUNCH" ClockLine.ClockDate = DateTime.Now ClockLine.StartTime = 9 ClockLine.EndTime = 10 If Not ClockLine.Save Then MsgBox(PDC.App.LastError) End If
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).