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

ACGSSPR.m

Go to the documentation of this file.
  1. ACGSSPR ;IHS/OIRM/DSD/THL,AEF - SOCIOECONOMIC PROCUREMENT REPORT; [ 03/27/2000 2:22 PM ]
  1. ;;2.0t1;CONTRACT INFORMATION SYSTEM;;FEB 16, 2000
  1. ;;PRINT SOCIOECONOMIC PROCUREMENT REPORT
  1. EN D EN1
  1. EXIT K ACGQUIT,ACG,ACG13,ACG26,ACGBEGIN,ACGEND,ACG1,ACG2,ACG3,ACG5,ACGI,ACGJ,ACGION,ACG19,ACG27,ACG30,ACGBEG,ACGFY,ACGQT,ACGX
  1. Q
  1. EN1 K ACGQUIT
  1. S:'$D(ACGPARA) ACGPARA=^ACGPARA(ACGPODA,0),ACG4=$P(ACGPARA,U,3)
  1. D QT^ACGSCPAR
  1. I $D(ACGQUIT) K ACGQUIT Q
  1. S:'$D(ACG4) ACG4=$P(ACGPARA,U,3)
  1. I ACG4=236 D CO^ACGSCPAR Q:$D(ACGQUIT) I 1
  1. E S (ACG4,ACG4X)=ACG4
  1. ZIS S ZTRTN="EN2^ACGSSPR",ZTDESC="CIS QT SOCIOECONOMIC PROCUREMENT REPORT",ZTSAVE("ACG*")=""
  1. D ^ACGSZIS
  1. Q:$D(ACGQUIT)
  1. EN2 I '$D(ZTQUEUED) S (ACGIOP,IOP)=ION D ^%ZIS I POP S ACGQUIT="" Q
  1. U IO
  1. I ACG4X=88 F ACG4=102,121,161,235,239,241:1:249,284,285 K ACGQUIT D R1
  1. G:ACG4X=88 DONE
  1. R1 G:$D(ACGQUIT) DONE
  1. D ENX
  1. W:$D(IOF) @IOF
  1. D:ACG4X'=88 DONE
  1. Q
  1. DONE D DONE^ACGSZIS
  1. Q
  1. ENX U IO
  1. S ACGBEG=ACGBEGIN,ACG(1)="0^0^TOTAL PROCUREMENTS (EXCLUDING 8(A))",ACG(2)="0^0^SMALL BUSINESS DIRECT AWARDS OTHER THAN DISADV (ITEM 13 = A2 OR A3)",ACG(3)="0^0^DISADVANTAGED SMALL BUSINESS DIRECT AWARDS (ITEM 13 = A1)"
  1. S ACG(4)="0^0^LARGE MINORITY BUSINESS DIRECT AWARDS (ITEM 13 = B1)",ACG(5)="0^0^WOMEN OWNED (ITEM 30 = YES)",ACG(6)="0^0^LABOR SURPLUS AREA SET ASIDES (ITEM 19 = 51 OR 54)",ACG(7)="0^0^8(A) AWARDS (ITEM 19 = 59 OR 60)"
  1. S ACG(8)="0^0^MINORITY NON-PROFIT",ACGXREF="T"
  1. F ACGI=1:1:8 F ACGJ=1:1:4 S ACG(ACGI,ACGJ)="0^0^"
  1. F S ACGBEG=$O(^ACGS(ACGXREF,ACGBEG)) Q:'ACGBEG!(ACGBEG>ACGEND) S ACG=0 F S ACG=$O(^ACGS(ACGXREF,ACGBEG,ACG)) Q:'ACG D
  1. .F X="DT","DT1","IHS" I '$D(^ACGS(ACG,X)) S ACGQUIT="" Q
  1. .I $D(ACGQUIT) K ACGQUIT Q
  1. .S ACGVDA=+^ACGS(ACG,10),ACGDT=^("DT"),ACGDT1=^("DT1"),ACGIHS=^("IHS")
  1. .S ACG13=$P(ACGDT,U,13),ACG1=+ACGDT,ACG2=$P(ACGDT,U,2),ACG19=$P(ACGDT,U,19),ACG23=$P(ACGDT1,U,2),ACG26=$P(ACGDT1,U,5),ACG27=$P(ACGDT1,U,6),ACG30=$P(ACGDT1,U,9),ACG111=$S('ACGVDA:"",$D(^AUTTVNDR(ACGVDA,11)):$P(^(11),U,21),1:"")
  1. .Q:"^15^17^"[(U_ACG1_U)
  1. .I ACG4X=88,ACG4'=$E(ACG2,1,3) Q
  1. .I ACG4'=99,ACG4'=236,ACG4'=$E(ACG2,1,3) Q
  1. .Q:'ACG13!'ACG19!'ACG27
  1. .Q:'$D(^AUTTTOB(ACG13,0))
  1. .Q:'$D(^ACGEOC(ACG19,0))
  1. .Q:'$D(^ACGPPC(ACG27,0)) S ACG27=^(0)
  1. .I $P(ACG27,U,4)="I" S ACG27=1
  1. .E S ACG27=$E(ACG27)
  1. .I ACG27'=1 S ACG27=$S(ACG27="A":3,ACG27="Y":2,1:4)
  1. .S ACG13=$P(^AUTTTOB(ACG13,0),U)
  1. .S $P(ACG(1),U)=$P(ACG(1),U)+1,$P(ACG(1),U,2)=$P(ACG(1),U,2)+ACG26,$P(ACG(1,ACG27),U)=$P(ACG(1,ACG27),U)+1,$P(ACG(1,ACG27),U,2)=$P(ACG(1,ACG27),U,2)+ACG26
  1. .I ACG111=1 S $P(ACG(8),U)=$P(ACG(8),U)+1,$P(ACG(8),U,2)=$P(ACG(8),U,2)+ACG26,$P(ACG(8,ACG27),U)=$P(ACG(8,ACG27),U)+1,$P(ACG(8,ACG27),U,2)=$P(ACG(8,ACG27),U,2)+ACG26 S ^TMP("ACG",$J,ACG)=ACG(8) Q
  1. .I $E(ACG30)="Y" S $P(ACG(5),U)=$P(ACG(5),U)+1,$P(ACG(5),U,2)=$P(ACG(5),U,2)+ACG26,$P(ACG(5,ACG27),U)=$P(ACG(5,ACG27),U)+1,$P(ACG(5,ACG27),U,2)=$P(ACG(5,ACG27),U,2)+ACG26 Q
  1. .I ACG19=51 S $P(ACG(6),U)=$P(ACG(6),U)+1,$P(ACG(6),U,2)=$P(ACG(6),U,2)+ACG26,$P(ACG(6,ACG27),U)=$P(ACG(6,ACG27),U)+1,$P(ACG(6,ACG27),U,2)=$P(ACG(6,ACG27),U,2)+ACG26 Q
  1. .I "5960"[ACG19 S $P(ACG(7),U)=$P(ACG(7),U)+1,$P(ACG(7),U,2)=$P(ACG(7),U,2)+ACG26,$P(ACG(7,ACG27),U)=$P(ACG(7,ACG27),U)+1,$P(ACG(7,ACG27),U,2)=$P(ACG(7,ACG27),U,2)+ACG26 Q
  1. .I "A2A3"[ACG13 S $P(ACG(2),U)=$P(ACG(2),U)+1,$P(ACG(2),U,2)=$P(ACG(2),U,2)+ACG26,$P(ACG(2,ACG27),U)=$P(ACG(2,ACG27),U)+1,$P(ACG(2,ACG27),U,2)=$P(ACG(2,ACG27),U,2)+ACG26 Q
  1. .I "A1"[ACG13 S $P(ACG(3),U)=$P(ACG(3),U)+1,$P(ACG(3),U,2)=$P(ACG(3),U,2)+ACG26,$P(ACG(3,ACG27),U)=$P(ACG(3,ACG27),U)+1,$P(ACG(3,ACG27),U,2)=$P(ACG(3,ACG27),U,2)+ACG26 Q
  1. .I "B1B2"[ACG13 S $P(ACG(4),U)=$P(ACG(4),U)+1,$P(ACG(4),U,2)=$P(ACG(4),U,2)+ACG26,$P(ACG(4,ACG27),U)=$P(ACG(4,ACG27),U)+1,$P(ACG(4,ACG27),U,2)=$P(ACG(4,ACG27),U,2)+ACG26 Q
  1. .S ACG(8,ACG13)=""
  1. D EN3
  1. I $D(IOST),$E(IOST,1,2)="C-" D HOLD^ACGSMENU
  1. Q
  1. EN3 S ACGX="QUARTERLY SOCIOECONOMIC PROCUREMENT REPORT"
  1. D RDATE^ACGSICR
  1. W !!,"TOTAL CONTRACTS ADVIS SERVICES CONSTRUCTION RES AND DEV OTHER",!,"------------------ -------------- ------------- ------------- --------------"
  1. F ACGI=1:1:8 D
  1. .W !?10,$P(ACG(ACGI),U,3),!,$J($P(ACG(ACGI),U),4)
  1. .F ACGJ=1:1:4 S ACGX=$S(ACGJ=1:20,ACGJ=2:35,ACGJ=3:50,1:65) W ?ACGX,"|",$J($P(ACG(ACGI,ACGJ),U),5)
  1. .W !,$J($FN($P(ACG(ACGI),U,2),"P,",0),16)
  1. .F ACGJ=1:1:4 S ACGX=$S(ACGJ=1:20,ACGJ=2:35,ACGJ=3:50,1:65) W ?ACGX,"|",$J($FN($P(ACG(ACGI,ACGJ),U,2),"P,",0),14)
  1. .W !,"--------------------------------------------------------------------------------",!
  1. .I $D(IOST),$E(IOST,1,2)="C-" D HOLD^ACGSMENU
  1. Q