source: WorldVistAEHR/trunk/r/AUTOMATED_LAB_INSTRUMENTS-LA/LA7ADL2.m@ 1000

Last change on this file since 1000 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 1.8 KB
Line 
1LA7ADL2 ;DALISC/JMC - Start/Stop Automatic Download of Test Orders ; 1/30/95 09:00;
2 ;;5.2;LAB MESSAGING;**23,27**;Sep 27, 1994
3 ;
4EN ; Entry point to flag auto download to start/stop.
5 N DIR,DIRUT,DTOUT,DUOUT,X,Y,Z
6 S Z=$$SHOWST^LA7ADL1
7 S Z("CNT")=$$LACHK^LA7CHKF
8 S DIR(0)="SO^1:Start/Restart Auto Download Job;2:Shutdown Auto Download Job;3:Shutdown Auto Download Job and Stop Collecting Accessions"
9 S DIR("A")="Select action"
10 S DIR("A",1)="Current Status is: "_$P(Z,"^")
11 I $L($P(Z,"^",2)) D
12 . S DIR("A",2)=" at: "_$P(Z,"^",2)
13 . S DIR("A",3)=" by: "_$P(Z,"^",3)
14 . S DIR("A",4)="There are "_$S(Z("CNT"):Z("CNT"),1:"NO")_" accessions waiting checking"
15 . S DIR("A",5)=" "
16 E S DIR("A",2)="There are "_$S(Z("CNT"):Z("CNT"),1:"NO")_" accessions waiting checking",DIR("A",3)=" "
17 K X,Y
18 S DIR("?",1)="1 - Start/Restart the auto download job after changes have been made to"
19 S DIR("?",2)=" file #62.4, AUTO INSTRUMENT, that affect auto downloading,"
20 S DIR("?",3)=" i.e. instrument auto download status changed, tests added/removed,"
21 S DIR("?",4)=" download code changed, etc. or if background job is not running."
22 S DIR("?",5)=" "
23 S DIR("?",6)="2 - Shuts down auto download background job and set flag to not start."
24 S DIR("?",7)=" Accessions are still collected in list to be downloaded when"
25 S DIR("?",8)=" auto download job is started."
26 S DIR("?",9)=" "
27 S DIR("?")="3 - Same as 2 but stops collecting accessions to download."
28 D ^DIR
29 I $D(DIRUT) Q ; No selection by user.
30 I Y>0 D
31 . D SETSTOP^LA7ADL1(+Y,$G(DUZ)) ; Set node to flag auto download job.
32 . S Z=$$SHOWST^LA7ADL1
33 . W !,"Auto Download flag set to ",$P(Z,"^"),!
34 I +Y=1 D ; Task auto down to run in case it is not running.
35 . D ZTSK^LA7ADL
36 . W "Auto Download "
37 . I $D(ZTSK) W "- Queued to run as task #",ZTSK,! Q
38 . W $C(7),"- not tasked",!
39 Q
Note: See TracBrowser for help on using the repository browser.