Arbeitszeit: Unterschied zwischen den Versionen
Aus Asprova Hilfe
GK (Diskussion | Beiträge) K (→GetWorkingDays ( start, end, resource, minTime )) |
GK (Diskussion | Beiträge) (→GetWorkingDays ( start, end, resource, minTime )) |
||
| Zeile 76: | Zeile 76: | ||
|} | |} | ||
| − | + | == GetWorkingTime( start, end, resource ) == | |
| − | + | {| class="wikitable" | |
| − | + | |- | |
| − | + | !rowspan="3"|Parameter | |
| − | + | |''start''||Beginn | |
| − | + | |- | |
| − | Parameter | + | |''end''||Ende |
| − | + | |- | |
| − | + | |''resource''||Ressource | |
| − | |||
|- | |- | ||
| − | | | + | !Rückgabewert |
| + | |colspan="2"|Gibt die Arbeitszeit von ''resource'' zwischen ''start'' und ''end'' zurück. | ||
|- | |- | ||
| − | || | + | !rowspan="2"|Beispiele |
| + | |<code>GetWorkingTime(#2008/06/09 00:00:00#,#2008/06/11 00:00:00#,ME)</code>||2d | ||
|- | |- | ||
| − | || | + | |colspan="2"|[[Image:incodefunc-kadoujikan04.png]]<br><code>ME</code> ist hier "Mischer 1". |
|- | |- | ||
| − | || | + | !Hinweis| |
| + | |colspan="2"|Anders als bei [[#GetResourceQtyTime( resource, start, end )|GetResourceQtyTime()]] wird die Ressourcenanzahl ''nicht'' berücksichtigt. | ||
|- | |- | ||
|} | |} | ||
| − | Rückgabewert | + | == GetCalendar( res, time ) == |
| − | + | {| class="wikitable" | |
| − | + | |- | |
| − | {| | + | !rowspan="2"|Parameter |
| + | |''res''||Ressource | ||
| + | |- | ||
| + | |''time''||Zeit | ||
| + | |- | ||
| + | !Rückgabewert | ||
| + | |colspan="2"|Gibt das Kalenderobjekt zurück, das auf ''resource'' für den Zeitpunkt ''time'' angewendet wird. | ||
| + | |- | ||
| + | !rowspan="2"|Beispiele | ||
| + | |colspan="2"|<code>GetCalendar(ME.Resource,ME.StartTime)</code> | ||
| + | |- | ||
| + | |colspan="2"| | ||
| + | [[Image:getcalendar_01.png]] | ||
| + | {| class="wikitable | ||
| + | |- | ||
| + | |+ Kalendertabelle | ||
| + | |- | ||
| + | !style="background: #3C78AE; color:white;"|Ressource | ||
| + | !style="background: #3C78AE; color:white;"|Darum oder<br>Wochentag | ||
| + | !style="background: #3C78AE; color:white;"|Schicht-<br>code | ||
| + | !style="background: #3C78AE; color:white;"|Reihen-<br>folge | ||
| + | !style="background: #3C78AE; color:white;"|Ressourcen<br>anzahl | ||
| + | !Vorgänge | ||
| + | |- style="background: white" | ||
| + | |*||Mo-Fr||Tagesschicht||align="right"|10||align="right" style="color: #4B8050;"|1||style="background:#EBEBEB"|02:10 | ||
| + | |- style="background: #DFEBF4;" | ||
| + | |Mischer 1||02/06/2020||Tagesschicht 2||align="right"|30||align="right" style="color: #4B8050;"|1||style="background:#EBEBEB"|03:10 | ||
| + | |- style="background: white" | ||
| + | |Mischer 1||03/06/2020||Nacht 1;Nacht 2||align="right"|30||align="right"|2||style="background:#EBEBEB"|04:10, 05:10 | ||
|- | |- | ||
| − | | | + | |} |
| + | <code>ME</code> ist hier "Mischer 1". | ||
|- | |- | ||
|} | |} | ||
| − | |||
| − | + | == GetShiftList( res, time, includeStart, includeEnd ) == | |
| − | {| | + | {| class="wikitable" |
|- | |- | ||
| − | | | + | !rowspan="4"|Parameter |
| + | |''res''||Ressource | ||
|- | |- | ||
| − | | | + | |''time''||Zeit |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|- | |- | ||
| − | | | + | |''includeStart''||Definiert ob |
|- | |- | ||
| − | | | + | |''includeEnd''||Zeit |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|- | |- | ||
| − | | | + | !Rückgabewert |
| + | |colspan="2"|Gibt das Kalenderobjekt zurück, das auf ''resource'' für den Zeitpunkt ''time'' angewendet wird. | ||
|- | |- | ||
| − | || | + | !rowspan="2"|Beispiele |
| + | |colspan="2"|<code>GetCalendar(ME.Resource,ME.StartTime)</code> | ||
|- | |- | ||
| − | || | + | |colspan="2"| |
| + | [[Image:getcalendar_01.png]] | ||
| + | {| class="wikitable | ||
|- | |- | ||
| − | | | + | |+ Kalendertabelle |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|- | |- | ||
| − | | | + | !style="background: #3C78AE; color:white;"|Ressource |
| + | !style="background: #3C78AE; color:white;"|Darum oder<br>Wochentag | ||
| + | !style="background: #3C78AE; color:white;"|Schicht-<br>code | ||
| + | !style="background: #3C78AE; color:white;"|Reihen-<br>folge | ||
| + | !style="background: #3C78AE; color:white;"|Ressourcen<br>anzahl | ||
| + | !Vorgänge | ||
| + | |- style="background: white" | ||
| + | |*||Mo-Fr||Tagesschicht||align="right"|10||align="right" style="color: #4B8050;"|1||style="background:#EBEBEB"|02:10 | ||
| + | |- style="background: #DFEBF4;" | ||
| + | |Mischer 1||02/06/2020||Tagesschicht 2||align="right"|30||align="right" style="color: #4B8050;"|1||style="background:#EBEBEB"|03:10 | ||
| + | |- style="background: white" | ||
| + | |Mischer 1||03/06/2020||Nacht 1;Nacht 2||align="right"|30||align="right"|2||style="background:#EBEBEB"|04:10, 05:10 | ||
|- | |- | ||
|} | |} | ||
| − | + | <code>ME</code> ist hier "Mischer 1". | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|- | |- | ||
|} | |} | ||
| − | |||
| − | |||
| − | |||
<hr> | <hr> | ||
<div align="right">Hilfe Nummer: 741540</div> | <div align="right">Hilfe Nummer: 741540</div> | ||
Version vom 14. Januar 2019, 21:58 Uhr
Hilfe Nummer: 741540
Asprova stellt Ihnen die folgenden Funktionen rund um Arbeitszeiten zur Verfügung.
Inhaltsverzeichnis
AdvanceAlongResourceWorkingTime( resouce, time, timeSpan )
GetResourceQtyTime( resource, start, end )
GetWorkingDays ( start, end, resource, minTime )
GetWorkingTime( start, end, resource )
| Parameter | start | Beginn |
|---|---|---|
| end | Ende | |
| resource | Ressource | |
| Rückgabewert | Gibt die Arbeitszeit von resource zwischen start und end zurück. | |
| Beispiele | GetWorkingTime(#2008/06/09 00:00:00#,#2008/06/11 00:00:00#,ME) |
2d |
![]() ME ist hier "Mischer 1".
| ||
| Anders als bei GetResourceQtyTime() wird die Ressourcenanzahl nicht berücksichtigt. | ||
GetCalendar( res, time )
| Parameter | res | Ressource | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| time | Zeit | ||||||||||||||||||||||||
| Rückgabewert | Gibt das Kalenderobjekt zurück, das auf resource für den Zeitpunkt time angewendet wird. | ||||||||||||||||||||||||
| Beispiele | GetCalendar(ME.Resource,ME.StartTime)
| ||||||||||||||||||||||||
| |||||||||||||||||||||||||
GetShiftList( res, time, includeStart, includeEnd )
| Parameter | res | Ressource | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| time | Zeit | ||||||||||||||||||||||||
| includeStart | Definiert ob | ||||||||||||||||||||||||
| includeEnd | Zeit | ||||||||||||||||||||||||
| Rückgabewert | Gibt das Kalenderobjekt zurück, das auf resource für den Zeitpunkt time angewendet wird. | ||||||||||||||||||||||||
| Beispiele | GetCalendar(ME.Resource,ME.StartTime)
| ||||||||||||||||||||||||
| |||||||||||||||||||||||||
Hilfe Nummer: 741540





