|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216: 217: 218: 219: 220: 221: 222: 223: 224: 225: 226: 227: 228: 229: 230: 231: 232: 233: 234: 235: 236: 237: 238: 239: 240: 241: 242: 243: 244: 245: 246: 247: 248: 249: 250: 251: 252: 253: 254: 255: 256: 257: 258: 259: 260: 261: 262: 263: 264: 265: 266: 267: 268: 269: 270: 271: 272: 273: 274: 275: 276: 277: 278: 279: 280: 281: 282: 283: 284: 285: 286: 287: 288: 289: 290: 291: 292: 293: 294: 295: 296: 297: 298: 299: 300: 301: 302: 303: 304: 305: 306: 307: 308: 309: 310: 311: 312: 313: 314: 315: 316: 317: 318: 319: 320: 321: 322: 323: 324: 325: 326: 327: 328: 329: 330: 331: 332: 333: 334: 335: 336: 337: 338: 339: 340: 341: 342: 343: 344: 345: 346: 347: 348: 349: 350: 351: 352: 353: 354: 355: 356: 357: 358: 359: 360: 361: 362: 363: 364: 365: 366: 367: 368: 369: 370: 371: 372: 373: 374: 375: 376: 377: 378: 379: 380: 381: 382: 383: 384: 385: 386: 387: 388: 389: 390: 391: 392: 393: 394: 395: 396: |
: # DoubleVision Pro's digiboard call during login... [ -x /usr/lib/dv/digi_trigger ] && /usr/lib/dv/digi_trigger # The following script completes this objective: # Create pre-printed invoices for manual use with either cash or account sales # Limit invoice # to 6 digits and qty per batch print to 250. # Also, make it easy to cancel # Prevent collision of temporary files # v970730 # Co-Written by W. Travis Peters on 97/07/29 # Co-Written by Scott A. Johnston on 97/07/30 PATH=/tools.aix/nullout:/opt/K/SCO/Unix/5.0.6Ga/tcb/bin:/bin:/pm/bin:/bin:/etc:/usr/bin:/tcb/bin export PATH newfile=`date | cut -c12-13,16-16,18-19` # The following loop asks for a location number and verifies it. If the # location number is wrong, it loops and asks for it again. "q" will abort # the whole script and exit the program while : do clear echo echo echo " This program will print 1 to 250 manual forms for Received on Accounts" echo " and Manual Sales Orders. You may enter \"q\" at any time to quit.\n" echo " This program will keep track of your invoice numbers for you.\n" echo " Please answer the following questions:\n\n" echo "\tPlease Enter Location # (1-6): \c" read locat if [ $locat ] then if [ $locat -lt 1 ] then case $locat in [QqCcXx]) echo "\n\tPRINT JOB CANCELLED, press RETURN to EXIT...\c" read junk exit;; *) echo "\n\tLocation $locat is invalid, press RETURN to continue...\c" read junk;; esac else if [ $locat -gt 6 ] then echo "\n\tLocation $locat is invalid, press RETURN to continue...\c" read junk else if [ $locat -lt 10 ] then case $locat in 00*) echo "\n\tLocation $locat is invalid, press RETURN to continue...\c" read junk continue;; 1) locat="01";; 2) locat="02";; 3) locat="03";; 4) locat="04";; 5) locat="05";; 6) locat="06";; esac fi break fi fi fi done # The following asks for and verifies the quantity between 1 and 250. If the # user presses return without a quantity, we simply ask for a quantity again # until the user presses "q" or puts in a valid quantity. while : do clear echo echo echo " Please enter the quantity to print. The quantity allowed is 1 to 250" echo " forms per batch. This will keep print times to a minimum and will " echo " not tie up the printer for any great length of time. Figure about 1" echo " second print time per form. The maximum print time would then be about" echo " 4 minutes to complete.\n\n" echo "\tPlease enter the quantity to print (1-250): \c" read qty if [ $qty ] then if [ $qty -lt 1 ] then case $qty in [QqXxCc]) echo "\n\tPRINT JOB CANCELLED, press RETURN to EXIT...\c" read junk exit;; *) echo "\n\tYou have entered an invalid quantity, press RETURN to continue...\c" read junk;; esac continue else if [ $qty -gt 250 ] then echo "\n\tYou have entered to many, press RETURN to continue...\c" read junk continue else break fi fi else echo "\n\tYou must enter a quantity, press RETURN to continue...\c" read junk fi done while : do clear echo echo echo " Now you must select a form type to print.\n" echo " Manual Sales Orders are for power failures etc.." echo " Received on Account forms are for receiving payments at the till.\n\n" echo "\tForm Type:\n" echo "\t 1) Manual Sales Order form\n" echo "\t 2) Received on Account form\n\n" echo "\t Please enter form type: \c" read type case $type in [1]) type="***SALES MANUALS***" formtype="1" break;; [2]) type="***RECEIVED ON ACCOUNT***" formtype="2" break;; [QqXxCc]) echo "\n\tPRINT JOB CANCELLED, press RETURN to EXIT...\c" read junk exit;; *) echo echo echo "Incorrect selection, press RETURN to continue...\c" read junk continue;; esac done case $locat in 01) printer="/dev/ttya03" if [ $formtype -eq "1" ] then starting=`cat dtsales` startfile="dtsales" else starting=`cat dtroa` startfile="dtroa" fi break;; 02) printer="/dev/ttyd22" if [ $formtype -eq "1" ] then starting=`cat lasales` startfile="lasales" else starting=`cat laroa` startfile="laroa" fi break;; 03) printer="/dev/ttyd16" if [ $formtype -eq "1" ] then starting=`cat forestsales` startfile="forestsales" else starting=`cat forestroa` startfile="forestroa" fi break;; 04) printer="/dev/ttyb11" if [ $formtype -eq "1" ] then starting=`cat hpsales` startfile="hpsales" else starting=`cat hproa` startfile="hproa" fi break;; 05) printer="/dev/ttyc03" if [ $formtype -eq "1" ] then starting=`cat lesales` startfile="lesales" else starting=`cat leroa` startfile="leroa" fi break;; 06) printer="/dev/ttya04" if [ $formtype -eq "1" ] then starting=`cat fcsales` startfile="fcsales" else starting=`cat fcroa` startfile="fcroa" fi break;; esac while : do clear echo echo " You have selected the following options:\n" echo "\tLocation: $locat" echo "\tQuantity: $qty" echo "\tStarting at: $starting" ending=`expr $starting + $qty - 1` echo "\tEnding at: $ending" echo "\tForm Type: $type" echo "\tPrinter: $printer" echo echo " ***IMPORTANT***" echo " Make sure no one prints an invoice or order to this printer as the two" echo " print jobs will collide and both will be ruined and will need to be " echo " reprinted. It is recommended that you complete this job at a time when" echo " there is no risk of anyone printing an invoice or order!" echo echo "\tOptions:\n" echo "\t1) Cancel Print Job" echo "\t2) Change Printer" echo "\t3) Accept and Print" echo "\n\tEnter Choice: \c" read okay case $okay in [1CcQqXx]) echo "\n\tPRINT JOB CANCELLED, press RETURN to EXIT...\c" read junk exit;; 2) while : do clear echo echo echo " You must enter the printer device name correctly. " echo " The printer you choose must be a printer with the" echo " invoice forms loaded and aligned in the usual manner.\n" echo " Examples are:\n" echo "\tttya03\tttyb16\n" echo " Please enter printer device to print to: \c" read newprinter case $newprinter in [CcQqXx]) echo "\n\tPRINT JOB CANCELLED, press RETURN to EXIT...\c" read junk exit;; lp00) printer="/dev/$newprinter";break;; ttya15) printer="/dev/$newprinter";break;; ttya23) printer="/dev/$newprinter";break;; ttya24) printer="/dev/$newprinter";break;; ttya25) printer="/dev/$newprinter";break;; ttyb16) printer="/dev/$newprinter";break;; ttya29) printer="/dev/$newprinter";break;; ttyd20) printer="/dev/$newprinter";break;; ttyd16) printer="/dev/$newprinter";break;; ttyd23) printer="/dev/$newprinter";break;; ttyd24) printer="/dev/$newprinter";break;; ttyb08) printer="/dev/$newprinter";break;; ttyb12) printer="/dev/$newprinter";break;; ttyb13) printer="/dev/$newprinter";break;; ttyb14) printer="/dev/$newprinter";break;; ttyb15) printer="/dev/$newprinter";break;; ttya03) printer="/dev/$newprinter";break;; ttyb11) printer="/dev/$newprinter";break;; ttyb09) printer="/dev/$newprinter";break;; ttyc02) printer="/dev/$newprinter";break;; ttyc03) printer="/dev/$newprinter";break;; ttyb01) printer="/dev/$newprinter";break;; ttyc15) printer="/dev/$newprinter";break;; ttyd28) printer="/dev/$newprinter";break;; laofficeinv) printer="/dev/$newprinter";break;; prc11) printer="/dev/$newprinter";break;; prc09) printer="/dev/$newprinter";break;; prc06) printer="/dev/$newprinter";break;; prc07) printer="/dev/$newprinter";break;; *) echo echo " Invalid printer device, PRINTER NOT CHANGED!\n" echo " Press Return to continue...\c" read junk break;; esac done continue;; 3) clear echo echo echo "\n\tSpooling Initiated, Please Wait..." total=`expr $starting + $qty` echo "\030\022\033\0103\00\07" > form$newfile while : do echo "\t\t\t\t\t\t\t $locat $starting" >> form$newfile if [ $locat -eq "06" ] then echo " Forest Commodities\n\n\n\n" >> form$newfile type=" Packing Slip" else echo "\n\n\n" >> form$newfile fi echo "\033\016$type" >> form$newfile starting=`expr $starting + 1` if [ $starting -lt $total ] then echo "\014" >> form$newfile fi if [ $starting -eq $total ] then echo -n "\014" >> form$newfile echo "\tSending forms to printer..." cat form$newfile >> $printer rm form$newfile echo "$starting" > $startfile echo "\n\n\n" echo "\tForms have been sent." echo echo "\tYou will now be logged out of this session.\n" echo "\tPress RETURN to continue...\c" read junk exit fi done exit;; esac done # DoubleVision Pro's terminal type collector ... [ -x /bin/termtype ] && /bin/termtype |
Advertisement
| Hall of Fame |