XUTMTES ;SEA/RDS - TaskMan: Toolkit, Edit Start Time ; ;
;;8.0;KERNEL;;Jul 10, 1995
;
EDIT ;Edit start time of task
N DIR
S DIR(0)="DO^::AERSX"
S DIR("A")="START TIME"
I $P(ZTSK(0),U,6)]"" S DIR("B")=$$HTE^XLFDT($P(ZTSK(0),U,6))
S DIR("?")="^D HELP^XUTMTES"
S DIR("??")="^D HELP2^XUTMTES"
D ^DIR K DIR
I $D(DTOUT) W $C(7)
I $D(DIRUT) Q
S $P(ZTSK(0),U,6)=$$FMTH^XLFDT(Y)
Q
;
HELP ;?-help for start time prompt
W !!?5,"Answer must be a valid date and time."
Q
;
HELP2 ;??-help for start time prompt
W !!?5,"Answer when the task should start running.",!
D HELP^%DTC
Q
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HXUTMTES 613 printed Dec 13, 2024@02:13:48 Page 2
XUTMTES ;SEA/RDS - TaskMan: Toolkit, Edit Start Time ; ;
+1 ;;8.0;KERNEL;;Jul 10, 1995
+2 ;
EDIT ;Edit start time of task
+1 NEW DIR
+2 SET DIR(0)="DO^::AERSX"
+3 SET DIR("A")="START TIME"
+4 IF $PIECE(ZTSK(0),U,6)]""
SET DIR("B")=$$HTE^XLFDT($PIECE(ZTSK(0),U,6))
+5 SET DIR("?")="^D HELP^XUTMTES"
+6 SET DIR("??")="^D HELP2^XUTMTES"
+7 DO ^DIR
KILL DIR
+8 IF $DATA(DTOUT)
WRITE $CHAR(7)
+9 IF $DATA(DIRUT)
QUIT
+10 SET $PIECE(ZTSK(0),U,6)=$$FMTH^XLFDT(Y)
+11 QUIT
+12 ;
HELP ;?-help for start time prompt
+1 WRITE !!?5,"Answer must be a valid date and time."
+2 QUIT
+3 ;
HELP2 ;??-help for start time prompt
+1 WRITE !!?5,"Answer when the task should start running.",!
+2 DO HELP^%DTC
+3 QUIT
+4 ;