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

ESPORP3.m

Go to the documentation of this file.
ESPORP3 ;DALISC/CKA - PRINT OFFENSE REPORT CONT. ;10/92
 ;;1.0;POLICE & SECURITY;**6,10,17**;Mar 31, 1994
EN ;CONTINUED FROM ESPORP2
WIT ;PRINT WITNESSES
 G:'$D(^ESP(912,ESPID,50)) VEH
 F ESPN=0:0 S ESPN=$O(^ESP(912,ESPID,50,ESPN)) Q:ESPN'>0!(END)  D
 .  S DIC="^ESP(912,"_ESPID_",50,",DA=ESPN,DR=".02;1.01:1.06;2.01:2.06",DIQ(0)="E" D EN^DIQ1 Q:'$D(^UTILITY("DIQ1",$J,912.06,DA))
 .  D MIN^ESPORP(10) Q:END
 .  D LINES^ESPORP(2) Q:END  F I=1:1:16 W "* "
 .  W "WITNESS  DATA" F I=1:1:17 W " *"
 .  D LINES^ESPORP(2) Q:END  W "WITNESS NAME: ",$G(^UTILITY("DIQ1",$J,912.06,DA,.02,"E"))
 .  D LINES^ESPORP() Q:END  W "HOME ADDRESS: ",$G(^UTILITY("DIQ1",$J,912.06,DA,1.01,"E"))
 .  I $G(^UTILITY("DIQ1",$J,912.06,DA,1.02,"E"))]"" D LINES^ESPORP() Q:END  W ?14,$G(^UTILITY("DIQ1",$J,912.06,DA,1.02,"E"))
 .  I $G(^UTILITY("DIQ1",$J,912.06,DA,1.03,"E"))]"" D LINES^ESPORP() Q:END  W ?14,$G(^UTILITY("DIQ1",$J,912.06,DA,1.03,"E")),","
 .  W $G(^UTILITY("DIQ1",$J,912.06,DA,1.04,"E"))," ",$G(^UTILITY("DIQ1",$J,912.06,DA,1.05,"E"))
 .  D LINES^ESPORP() Q:END  W "HOME PHONE: ",$G(^UTILITY("DIQ1",$J,912.06,DA,1.06,"E"))
 .  D LINES^ESPORP() Q:END  W "WORK ADDRESS: ",$G(^UTILITY("DIQ1",$J,912.06,DA,2.01,"E"))
 .  I $G(^UTILITY("DIQ1",$J,912.06,DA,2.02,"E"))]"" D LINES^ESPORP() Q:END  W ?14,$G(^UTILITY("DIQ1",$J,912.06,DA,2.02,"E"))
 .  I $G(^UTILITY("DIQ1",$J,912.06,DA,2.03,"E"))]"" D LINES^ESPORP() Q:END  W ?14,$G(^UTILITY("DIQ1",$J,912.06,DA,2.03,"E")),","
 .  W $G(^UTILITY("DIQ1",$J,912.06,DA,2.04,"E"))," ",$G(^UTILITY("DIQ1",$J,912.06,DA,2.05,"E"))
 .  D LINES^ESPORP() Q:END  W "WORK PHONE: ",$G(^UTILITY("DIQ1",$J,912.06,DA,2.06,"E"))
 ;
VEH ;PRINT VEHICLE(S)
 G:'$D(^ESP(912,ESPID,80)) LOST
 F ESPN=0:0 S ESPN=$O(^ESP(912,ESPID,80,ESPN)) Q:ESPN'>0!(END)  D
 .  S DIC="^ESP(912,"_ESPID_",80,",DA=ESPN,DR=".02:.11",DIQ(0)="E" D EN^DIQ1 Q:'$D(^UTILITY("DIQ1",$J,912.09,DA))
 .  D MIN^ESPORP(10) Q:END
 .  D LINES^ESPORP(2) Q:END  F I=1:1:15 W "* "
 .  W "VEHICLE INFORMATION" F I=1:1:15 W " *"
 .  D LINES^ESPORP(2) Q:END  W "LICENSE TAG # & STATE: ",$G(^UTILITY("DIQ1",$J,912.09,DA,.02,"E"))," ",$G(^UTILITY("DIQ1",$J,912.09,DA,.03,"E"))
 .  D LINES^ESPORP() Q:END  W "MAKE: ",$G(^UTILITY("DIQ1",$J,912.09,DA,.04,"E"))
 .  W ?35,"MODEL: ",$G(^UTILITY("DIQ1",$J,912.09,DA,.05,"E"))
 .  D LINES^ESPORP() Q:END  W "STYLE: ",$G(^UTILITY("DIQ1",$J,912.09,DA,.06,"E"))
 .  D LINES^ESPORP() Q:END  W "COLOR: ",$G(^UTILITY("DIQ1",$J,912.09,DA,.07,"E"))
 .  D LINES^ESPORP() Q:END  W "DECAL # & COLOR: ",$G(^UTILITY("DIQ1",$J,912.09,DA,.08,"E"))," " W:$G(^UTILITY("DIQ1",$J,912.09,DA,.09,"E"))'=0 ^("E")
 .  D LINES^ESPORP() Q:END  W "YEAR OF MANUFACTURE: ",$G(^UTILITY("DIQ1",$J,912.09,DA,.1,"E"))
 .  D LINES^ESPORP() Q:END  W "OWNER NAME: ",$G(^UTILITY("DIQ1",$J,912.09,DA,.11,"E"))
LOST ;PRINT LOST PROPERTY
 G:END EXIT
 G:'$D(^ESP(912,ESPID,90)) CONT
 F ESPN=0:0 S ESPN=$O(^ESP(912,ESPID,90,ESPN)) Q:ESPN'>0!(END)  D
 .  S DIC="^ESP(912,"_ESPID_",90,",DA=ESPN,DR=".01:.04",DIQ(0)="E" D EN^DIQ1 Q:'$D(^UTILITY("DIQ1",$J,912.1,DA))
 .  D MIN^ESPORP(10) Q:END
 .  D LINES^ESPORP(2) Q:END  F I=1:1:15 W "* "
 .  W "LOST/STOLEN  PROPERTY" F I=1:1:14 W " *"
 .  D LINES^ESPORP(2) Q:END  W "ITEM NAME: ",$G(^UTILITY("DIQ1",$J,912.1,DA,.01,"E"))
 .  D LINES^ESPORP() Q:END  W "DESCRIPTION: ",$G(^UTILITY("DIQ1",$J,912.1,DA,.02,"E"))
 .  D LINES^ESPORP() Q:END  W "DOLLAR LOSS: ",$G(^UTILITY("DIQ1",$J,912.1,DA,.03,"E"))
 .  D LINES^ESPORP() Q:END  W "DOLLAR RECOVERED: ",$G(^UTILITY("DIQ1",$J,912.1,DA,.04,"E"))
CONT G ^ESPORP4
EXIT K CL,DA,DIC,DIQ,DIR,DIRUT,DIWF,DIWL,DIWR,ESPDOB,ESPDOBP,DR,DTOUT,DUOUT,END,ESPDTR,ESPID,ESPFN,ESPN,ESPN1,IEN,PAGE,SSN,X,Y
 K ^UTILITY("DIQ1",$J)
 QUIT