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

XUTMDQ1.m

Go to the documentation of this file.
  1. XUTMDQ1 ;SEA/RDS - TaskMan: Option, XUTMDQ, Part 2 (Bulk DQ) ;11/28/90 16:07 ; [ 04/02/2003 8:29 AM ]
  1. ;;8.0;KERNEL;**1002,1003,1004,1005,1007**;APR 1, 2003
  1. ;;8.0;KERNEL;;Jul 10, 1995
  1. ;
  1. COUNT ;Ask Whether To First Count The Number Of Tasks To Unschedule
  1. W !
  1. K DIR
  1. S DIR(0)="Y"
  1. S DIR("A")="Would you like to know how many tasks in that list can be unscheduled"
  1. S DIR("B")="YES"
  1. S DIR("?")=" Answer NO if you don't want a count of the tasks to be unscheduled."
  1. D ^DIR
  1. I $D(DTOUT) W $C(7)
  1. I $D(DIRUT) W !!?5,"Tasks NOT unscheduled!" Q
  1. I 'Y G SHOW
  1. S XUTMT(0)="LU" D ^XUTMT
  1. W !!?5,"There ",$S(ZTSK=1:"is ",1:"are "),ZTSK," task",$S(ZTSK=1:"",1:"s")," in that list that can be unscheduled."
  1. I ZTSK=0 Q
  1. ;
  1. SHOW ;Ask Whether To Show The Tasks To Be Unscheduled
  1. W !
  1. K DIR
  1. S DIR(0)="Y"
  1. S DIR("A")="Would you like to see the tasks that will be unscheduled"
  1. S DIR("B")="YES"
  1. S DIR("?")=" Answer NO if you don't want to see the tasks to be unscheduled."
  1. D ^DIR
  1. I $D(DTOUT) W $C(7)
  1. I $D(DIRUT) W !!?5,"Tasks NOT unscheduled!" Q
  1. I 'Y G CONFIRM
  1. W !
  1. S XUTMT(0)="PU" D ^XUTMT
  1. I 'ZTSK W !?5,"There are 0 tasks in that list." Q
  1. ;
  1. CONFIRM ;Prompt For Confirmation Of Unscheduling
  1. K DIR
  1. S DIR(0)="Y"
  1. S DIR("A")="Are you sure you want to unschedule these tasks"
  1. S DIR("B")="NO"
  1. S DIR("?")=" Answer YES if you want to unschedule the selected tasks."
  1. D ^DIR
  1. I $D(DTOUT) W $C(7)
  1. I 'Y W !!?5,"Tasks NOT unscheduled!" Q
  1. S XUTMT(0)="UL" D ^XUTMT
  1. I ZTSK W !!?5,"Tasks unscheduled!"
  1. I 'ZTSK W !!?5,"There are 0 tasks in that list."
  1. Q
  1. ;