Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: LRPHEXPT

LRPHEXPT.m

Go to the documentation of this file.
  1. LRPHEXPT ;SLC/CJS/RWF-EXCEPTION LOGIN OF ACCESSIONS ;8/11/97 [ 04/14/2003 12:01 PM ]
  1. ;;5.2T9;LR;**1001,1003,1018**;Nov 17, 2004
  1. ;;5.2;LAB SERVICE;**43,121,221**;Sep 27, 1994
  1. ;----- BEGIN IHS MODIFICATIONS LR*5.2*1018
  1. S:$G(BLROPT)=""!($G(BLROPT(0))'=$P(XQY0,U)) BLROPT="RECCOL",BLROPT(0)=$P(XQY0,U) ;IHS/DIR TUC/AAB 04/17/98
  1. ;----- END IHS MODIFICATIONS
  1. S X="N",%DT="T" D ^%DT S LRODT=DT,LRNT=Y
  1. LR1 ;
  1. D ^LRPARAM QUIT:$G(LREND) ;-> 4/25/95 LJA
  1. ;
  1. D FNDLOC^LRDRAW G END:LRLLOC["^" I LRLLOC=""&'$D(^XUSEC("LRPHSUPER",DUZ)) W !,"You don't have the LRPHSUPER key to enter 'ALL'." G LRPHEXPT
  1. I LRLLOC="" W !,"You're doing the entire collection" S %=2 D YN^DICN W:%=0 !,"Maybe you'd better think about it some more." G END:%'=1
  1. K LRSN,LROR,LRCOM,LRTCOM,LRNOCOM W !,"Enter Order Numbers not collected: "
  1. LOOP S LRFIRST=1,LROR=0 D
  1. . D LP1^LRPHITEM
  1. I $O(LROR(0))>0 W !,"Let's handle the exceptions first.",! D
  1. . N LRLLOC,LRODT
  1. . S LROR=0 F S LROR=$O(LROR(LROR)) Q:LROR<1 D EXCEPT^LRPHITE3 W ! D EQUALS^LRX W !
  1. W !!,"Now enter any orders that are not canceled but you don't want ""collected"", yet.",!,"If all remaining orders are collected, skip this entry."
  1. W !,"Any order #'s entered here will remain on collection list until 12 midnight.",!,"The orders will not 'rollover' to the next days collection list."
  1. K LROR S LROR=0,LRNOCOM=1 D
  1. . D LP1^LRPHITEM
  1. S %=2 W !!,"Ready to accept the rest of the orders" D YN^DICN G END:%'=1
  1. D INV G:LRLLOC'="" E1 S LRLLOC="" F S LRLLOC=$O(^LRO(69,LRODT,1,"AC",LRLLOC)) Q:LRLLOC="" D E2
  1. G LR1
  1. Q
  1. E1 D E2 G LR1
  1. E2 S LRSN=0 F S LRSN=$O(^LRO(69,LRODT,1,"AC",LRLLOC,LRSN)) Q:LRSN="" D
  1. . I ^LRO(69,LRODT,1,"AC",LRLLOC,LRSN)=1 I $S($D(^LRO(69,LRODT,1,LRSN,.1)):'$D(LROR(^(.1))),1:1) D P15^LRPHITEM W:$P(^LRO(69,LRODT,1,LRSN,1),U,4)="C" !,LRLLOC," ",$S($D(^(.1)):^(.1),1:".")
  1. Q
  1. INV K ^TMP($J) S %X="LROR(",%Y="^TMP($J," D %XY^%RCR K LROR F I=1:1 Q:'$D(^TMP($J,I)) S LROR(^(I))=""
  1. Q
  1. % R %:DTIME Q:%=""!(%["N")!(%["Y") W !,"Answer 'Y' or 'N': " G %
  1. END K %,A,J1,K,LRFIRST,LRFORD,LRLLOC,LRNOCOM,LRNT,LRODT,LROR,LRSN,X,Y,Z,DIC,LRLLOC,LRAA,LRAD,LRAN,LRDFN,LRSS,LRIDT,LROID,T,LRSN,I,%H,%X,%Y,DIWL,DIWR,DO,DPF,LRBED,LRCS,LRCSN,LRCSS,LRDC,LRDTO,LRFLOG,LRIOZERO,LRIX,LRLWC,LRM,LRORDR,LRORDTIM
  1. K LRGCOM,LROUTINE,LRPR,LRRND,LRSSX,LRSTIK,LRTSN,LRUNQ,LRUR,LRWD,LRWPC,POP Q