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

PRCPENL1.m

Go to the documentation of this file.
  1. PRCPENL1 ;WISC/RFJ,DGL-edit inventory parameters (list manager) ; 7/21/99 9:53am
  1. V ;;5.1;IFCAP;;Oct 20, 2000
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. Q
  1. ;
  1. ;
  1. DISTRPTS ; build distribution points array
  1. N %,DISTR
  1. S LINE=LINE+1,COLUMN=1,CLREND=80
  1. D SET^PRCPENLM("Distribution Points",LINE,COLUMN,CLREND,0,IORVON,IORVOFF)
  1. S DISTR=0 F LINE=LINE+1:1 S DISTR=$O(^PRCP(445,PRCPINPT,2,DISTR)) Q:'DISTR D
  1. . D SET^PRCPENLM(" : "_$$INVNAME^PRCPUX1(DISTR),LINE,COLUMN,CLREND)
  1. . S %=$P($G(^PRCP(445,DISTR,0)),"^",3),%=$S(%="W":"WAREHOUSE",%="P":"PRIMARY",%="S":"SECONDARY",1:"<<NOT DEFINED>>")
  1. . D SET^PRCPENLM(%,LINE,65,CLREND)
  1. D SET^PRCPENLM("",LINE,COLUMN,CLREND)
  1. Q
  1. ;
  1. ;
  1. STOCKED ; build stocked by array
  1. N %,DISTR
  1. S LINE=LINE+1,COLUMN=1,CLREND=80
  1. D SET^PRCPENLM("Stocked By Points",LINE,COLUMN,CLREND,0,IORVON,IORVOFF)
  1. S DISTR=0 F LINE=LINE+1:1 S DISTR=$O(^PRCP(445,"AB",PRCPINPT,DISTR)) Q:'DISTR D
  1. . D SET^PRCPENLM(" : "_$$INVNAME^PRCPUX1(DISTR),LINE,COLUMN,CLREND)
  1. . S %=$P($G(^PRCP(445,DISTR,0)),"^",3),%=$S(%="W":"WAREHOUSE",%="P":"PRIMARY",%="S":"SECONDARY",1:"<<NOT DEFINED>>")
  1. . D SET^PRCPENLM(%,LINE,65,CLREND)
  1. Q
  1. ;
  1. ;
  1. PURGE ; build purge date array
  1. S LINE=LINE+1,COLUMN=1,CLREND=80
  1. D SET^PRCPENLM("Purge Information",LINE,COLUMN,CLREND,0,IORVON,IORVOFF)
  1. D SET^PRCPENLM(" Automatic Purge",LINE,20,CLREND,7.9)
  1. D SET^PRCPENLM("Usage Last Purged ",LINE+1,COLUMN,CLREND,7.5)
  1. D SET^PRCPENLM("Receipts Last Purged ",LINE+2,COLUMN,CLREND,7.6)
  1. D SET^PRCPENLM("Transaction Register Last Purged ",LINE+3,COLUMN,CLREND,7.7)
  1. D SET^PRCPENLM("Distribution Statistics Last Purged ",LINE+4,COLUMN,CLREND,7.8)
  1. S LINE=LINE+4
  1. Q
  1. ;
  1. ;
  1. FCP ; build fund control point array
  1. N FCP,STATION
  1. S LINE=LINE+1,COLUMN=1,CLREND=80
  1. D SET^PRCPENLM("Fund Control Points",LINE,COLUMN,CLREND,0,IORVON,IORVOFF)
  1. S STATION=0 F S STATION=$O(^PRC(420,"AE",STATION)) Q:'STATION S FCP=0 F S FCP=$O(^PRC(420,"AE",STATION,PRCPINPT,FCP)) Q:'FCP D
  1. . S LINE=LINE+1
  1. . D SET^PRCPENLM(" : "_$P($G(^PRC(420,STATION,1,FCP,0)),"^"),LINE,COLUMN,CLREND)
  1. S LINE=LINE+1
  1. D SET^PRCPENLM("",LINE,COLUMN,CLREND)
  1. Q
  1. ;
  1. ;
  1. MISCOSTS ; build mis costing section array
  1. N %,SECT
  1. S LINE=LINE+1,COLUMN=1,CLREND=80
  1. D SET^PRCPENLM("MIS Costing Section",LINE,COLUMN,CLREND,0,IORVON,IORVOFF)
  1. S SECT=0 F LINE=LINE+1:1 S SECT=$O(^PRCP(445,PRCPINPT,3,SECT)) Q:'SECT D
  1. . S %=$G(^PRCP(445,PRCPINPT,3,SECT,0))
  1. . D SET^PRCPENLM(" : "_$P($G(^DIC(49,+$P(%,"^"),0)),"^"),LINE,COLUMN,CLREND)
  1. . D SET^PRCPENLM($J($P(%,"^",2),5)_" %",LINE,65,CLREND)
  1. D SET^PRCPENLM("",LINE,COLUMN,CLREND)
  1. Q