Difference between revisions of "Shift getUserNextShift"

From Catglobe Wiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Shift_getUserNextShift]]
+
{{HelpFiles}}

 
  
====Shift_getUserNextShift====
+
==== Shift_getUserNextShift ====
  
Return the next shift of a user
+
Return the next shift of a user  
  
'''Syntax'''
+
'''Syntax'''  
  
Shift_getUserNextShift(userResourceId)
+
Shift_getUserNextShift(userResourceId)  
  
'''Arguments'''
+
'''Arguments'''  
  
* userResourceId: is a ''number ''expression
+
*userResourceId: is a ''number ''expression
  
'''Return value'''
+
'''Return value'''  
  
array which is Shift Object:
+
array which is Shift Object:  
  
 
{| class="tableintopic" style="border-collapse: collapse; border: 1px solid #010101" width="1067" border="1" cellpadding="2"
 
{| class="tableintopic" style="border-collapse: collapse; border: 1px solid #010101" width="1067" border="1" cellpadding="2"
 
|- align="left" valign="top"
 
|- align="left" valign="top"
| style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" |
+
| style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" |  
'''Index'''
+
'''Index'''  
| style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" |
+
 
'''Data type'''
+
| style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" |  
| style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" |
+
'''Data type'''  
'''Value'''
+
 
 +
| style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" |  
 +
'''Value'''  
 +
 
 
|- align="left" valign="top"
 
|- align="left" valign="top"
| style="border: 1px solid #010101" width="356" |
+
| style="border: 1px solid #010101" width="356" |  
OBJECT_TYPE
+
OBJECT_TYPE  
| style="border: 1px solid #010101" width="356" |
+
 
number
+
| style="border: 1px solid #010101" width="356" |  
| style="border: 1px solid #010101" width="356" |
+
number  
25
+
 
 +
| style="border: 1px solid #010101" width="356" |  
 +
25  
 +
 
 
|- align="left" valign="top"
 
|- align="left" valign="top"
| style="border: 1px solid #010101" width="356" |
+
| style="border: 1px solid #010101" width="356" |  
SHIFT_ID
+
SHIFT_ID  
| style="border: 1px solid #010101" width="356" |
+
 
number
+
| style="border: 1px solid #010101" width="356" |  
| style="border: 1px solid #010101" width="356" |
+
number  
Id of next shift
+
 
 +
| style="border: 1px solid #010101" width="356" |  
 +
Id of next shift  
 +
 
 
|- align="left" valign="top"
 
|- align="left" valign="top"
| style="border: 1px solid #010101" width="356" |
+
| style="border: 1px solid #010101" width="356" |  
SHIFT_USER_RESOURCE_ID
+
SHIFT_USER_RESOURCE_ID  
| style="border: 1px solid #010101" width="356" |
+
 
number
+
| style="border: 1px solid #010101" width="356" |  
| style="border: 1px solid #010101" width="356" |
+
number  
User resource id of this shift
+
 
 +
| style="border: 1px solid #010101" width="356" |  
 +
User resource id of this shift  
 +
 
 
|- align="left" valign="top"
 
|- align="left" valign="top"
| style="border: 1px solid #010101" width="356" |
+
| style="border: 1px solid #010101" width="356" |  
SHIFT_TEAM_ID
+
SHIFT_TEAM_ID  
| style="border: 1px solid #010101" width="356" |
+
 
number
+
| style="border: 1px solid #010101" width="356" |  
| style="border: 1px solid #010101" width="356" |
+
number  
Shift team id of this shift
+
 
 +
| style="border: 1px solid #010101" width="356" |  
 +
Shift team id of this shift  
 +
 
 
|- align="left" valign="top"
 
|- align="left" valign="top"
| style="border: 1px solid #010101" width="356" |
+
| style="border: 1px solid #010101" width="356" |  
SHIFT_FACILITY_RESOURCE_ID
+
SHIFT_FACILITY_RESOURCE_ID  
| style="border: 1px solid #010101" width="356" |
+
 
number
+
| style="border: 1px solid #010101" width="356" |  
| style="border: 1px solid #010101" width="356" |
+
number  
Group resource id of this shift
+
 
 +
| style="border: 1px solid #010101" width="356" |  
 +
Group resource id of this shift  
 +
 
 
|- align="left" valign="top"
 
|- align="left" valign="top"
| style="border: 1px solid #010101" width="356" |
+
| style="border: 1px solid #010101" width="356" |  
SHIFT_DAYS_UNTIL_DEMANDS_ARE_DECREASED
+
SHIFT_DAYS_UNTIL_DEMANDS_ARE_DECREASED  
| style="border: 1px solid #010101" width="356" |
+
 
number
+
| style="border: 1px solid #010101" width="356" |  
| style="border: 1px solid #010101" width="356" |
+
number  
DUDAD of this shift
+
 
 +
| style="border: 1px solid #010101" width="356" |  
 +
DUDAD of this shift  
 +
 
 
|- align="left" valign="top"
 
|- align="left" valign="top"
| style="border: 1px solid #010101" width="356" |
+
| style="border: 1px solid #010101" width="356" |  
SHIFT_DISAPPROVE_DAYS
+
SHIFT_DISAPPROVE_DAYS  
| style="border: 1px solid #010101" width="356" |
+
 
number
+
| style="border: 1px solid #010101" width="356" |  
| style="border: 1px solid #010101" width="356" |
+
number  
Disapprove days of this shift
+
 
 +
| style="border: 1px solid #010101" width="356" |  
 +
Disapprove days of this shift  
 +
 
 
|- align="left" valign="top"
 
|- align="left" valign="top"
| style="border: 1px solid #010101" width="356" |
+
| style="border: 1px solid #010101" width="356" |  
SHIFT_START_DATE
+
SHIFT_START_DATE  
| style="border: 1px solid #010101" width="356" |
+
 
array
+
| style="border: 1px solid #010101" width="356" |  
| style="border: 1px solid #010101" width="356" |
+
array  
Start date datetime object array of this shift (with timezone of specfied user)
+
 
 +
| style="border: 1px solid #010101" width="356" |  
 +
Start date datetime object array of this shift (with timezone of specfied user)  
 +
 
 
|- align="left" valign="top"
 
|- align="left" valign="top"
| style="border: 1px solid #010101" width="356" |
+
| style="border: 1px solid #010101" width="356" |  
SHIFT_END_DATE
+
SHIFT_END_DATE  
| style="border: 1px solid #010101" width="356" |
+
 
array
+
| style="border: 1px solid #010101" width="356" |  
| style="border: 1px solid #010101" width="356" |
+
array  
End date datetime object array of this shift (with timezone of specfied user)
+
 
 +
| style="border: 1px solid #010101" width="356" |  
 +
End date datetime object array of this shift (with timezone of specfied user)'''<br>'''
 +
 
 +
|}
  
 
'''Example'''
 
'''Example'''
Line 96: Line 126:
 
print(nextShift);
 
print(nextShift);
  
'''Availability'''
+
Availability
  
 
Version 5.8
 
Version 5.8
__NOTOC__
+
 
<!-- imported from file: 7531.htm-->
+
[[Category:General_Functions]]

Latest revision as of 08:13, 5 January 2012



Shift_getUserNextShift

Return the next shift of a user

Syntax

Shift_getUserNextShift(userResourceId)

Arguments

  • userResourceId: is a number expression

Return value

array which is Shift Object:

Index

Data type

Value

OBJECT_TYPE

number

25

SHIFT_ID

number

Id of next shift

SHIFT_USER_RESOURCE_ID

number

User resource id of this shift

SHIFT_TEAM_ID

number

Shift team id of this shift

SHIFT_FACILITY_RESOURCE_ID

number

Group resource id of this shift

SHIFT_DAYS_UNTIL_DEMANDS_ARE_DECREASED

number

DUDAD of this shift

SHIFT_DISAPPROVE_DAYS

number

Disapprove days of this shift

SHIFT_START_DATE

array

Start date datetime object array of this shift (with timezone of specfied user)

SHIFT_END_DATE

array

End date datetime object array of this shift (with timezone of specfied user)

Example

array nextShift = Shift_getUserNextShift(789456);

print(nextShift);

Availability

Version 5.8