PdcClockLine.PersonelNo: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == PersonelNo as String == Description == Returns or changes the personel number == Notes == This property returns or changes the Personel number of the cloc..."
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 7: Line 7:
== Notes ==
== Notes ==
This property returns or changes the Personel number of the clock line.
This property returns or changes the Personel number of the clock line.
The following properties are adjusted:
The following properties are adjusted:<br />
Personelname  : Becomes the name which belongs to the personel number.
Personelname  : Becomes the name which belongs to the personel number. If the personel is a machine, it becomes "unattended".<br />
                If the personel is a machine, it becomes "unattended".
ScheduleID    : Becomes the ID of the active time schedule of the given person an date.
ScheduleID    : Becomes the ID of the active time schedule of the given person an date.


== Code example ==
== Code example ==
This code example returns the personel number of clockline with ID "456".


<source lang="vb">
<source lang="vb">
Sub sGetClockLinePersonelNo
dim objClockLine
dim intID


  intID = "456"
  set objClockLine = pdc.ProductRegistration.ClockLines.Open(intID)
  if IsValid(objClockLine) then
    msgbox objClockLine.PersonelNo
  end if
  set objClockLine = nothing
End Sub
</source>
</source>


== Availability ==
== Availability ==
Available since july 2008 (from version 3.8).
Available since july 2008 (from version 3.8).

Latest revision as of 12:15, 31 July 2013

Declaration

PersonelNo as String

Description

Returns or changes the personel number

Notes

This property returns or changes the Personel number of the clock line. The following properties are adjusted:
Personelname  : Becomes the name which belongs to the personel number. If the personel is a machine, it becomes "unattended".
ScheduleID  : Becomes the ID of the active time schedule of the given person an date.

Code example

This code example returns the personel number of clockline with ID "456".

Sub sGetClockLinePersonelNo
dim objClockLine
dim intID

  intID = "456"
  set objClockLine = pdc.ProductRegistration.ClockLines.Open(intID)

  if IsValid(objClockLine) then
    msgbox objClockLine.PersonelNo
  end if

  set objClockLine = nothing
End Sub

Availability

Available since july 2008 (from version 3.8).