home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / b / b077 / 1.img / SBGL.ZIP / X1.PRG < prev    next >
Encoding:
Text File  |  1979-12-31  |  1.6 KB  |  88 lines

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. sele 1
  6. use sb 
  7. set index to sb1
  8. sele 2
  9. use bj 
  10. set index to bj1
  11. sele 3
  12. use cr
  13. a='      '
  14. u='          '
  15. @ 4,15 say "╟δ╩Σ╚δ─Ω,╘┬" get a pict '99.99'
  16. @ 5,15 say "┐Γ┤µ╣▄└φ╖╤" get u pict '#######.##'
  17. read
  18. u=val(u)
  19. q=a
  20. j1=substr(a,4,2)
  21. j2='01'    
  22. j3=substr(a,1,2)
  23. a=j1+'/'+j2+'/'+j3
  24. a=ctod(a)
  25. c=month(a)
  26. d=c/2
  27. e=int(d)
  28. if c<=7 
  29. if c=2  
  30. b=a+27
  31. endif       
  32. if d-e<>0
  33. b=a+30
  34. else
  35. b=a+29
  36. endif
  37. else  
  38. if d-e<>0
  39. b=a+29
  40. else
  41. b=a+30
  42. endif
  43. endif
  44. sele 1
  45. sum sb15 to x
  46. sele 2
  47. sum b4*b5 to y
  48. sele 3
  49. sum l3*l4 to z for l10='c' .and. l2>=a .and. l2<=b
  50. p1=y*100/x
  51. p2=y/z
  52. p3=u*100/y
  53. p4=u*100/z
  54. @ 1,25 say " "+q+"╡─╕≈╧ε┐Γ┤µ╓╕▒Ω"
  55. @ 3,1 say "▒╚┬╩=▒╕╝■┐Γ┤µ╝█╓╡ú»╣╠╢¿╫╩▓·╘¡╓╡ú╜"+str(p1,9,2)+"úÑ"
  56. @ 5,1 say "╓▄╫¬┬╩ú╜▒╕╝■┐Γ┤µ╝█╓╡ú»╘┬╧√║─┴┐ú╜"+str(p2,5,1)+"╘┬"
  57. @ 7,1 say ì
  58. "┐Γ┤µ╖╤╒╝┐Γ┤µ╝█╓╡╡─▒╚┬╩ú╜┐Γ┤µ╣▄└φ╖╤ú»┐Γ┤µ╝█╓╡ú╜"+str(p3,9,2)+"úÑ"
  59. @ 9,1 say ì
  60. "┐Γ┤µ╣▄└φ╖╤╒╝╖ó│÷▒╕╝■╝█╓╡╡─▒╚┬╩ú╜┐Γ┤µ╣▄└φ╖╤ú»╖ó│÷▒╕╝■╝█╓╡ú╜"+str(pì
  61. 4,9,2)+"úÑ"
  62. wait '┤≥╙í┬≡(Y/N)' to w
  63. if w<>'y'
  64. close database
  65. retu
  66. endif
  67. clear
  68. @ 4,20 say "╒²╘┌┤≥╙íú¼╟δ╔╘║≥úí"
  69. set cons off
  70. set device to print 
  71. set print on
  72. ? chr(27)+"IJ"
  73. set print off
  74. @ prow()+1,15 say " "+q+"╡─╕≈╧ε┐Γ┤µ╓╕▒Ω"
  75. @ prow()+2,1 say "┐Γ┤µ▒╕╝■╒╝╣╠╢¿╫╩▓·╘¡╓╡╡─▒╚┬╩ú╜"+str(p1,9,2)+"úÑ"
  76. @ prow()+2,1 say "▒╕╝■╓▄╫¬┬╩ú╜"+str(p2,6,1)+"  ╘┬"
  77. @ prow()+2,1 say "┐Γ┤µ╣▄└φ╖╤╒╝╫▄┐Γ┤µ╝┘╓╡╡─▒╚┬╩ú╜"+str(p3,9,2)+"úÑ"
  78. @ prow()+2,1 say ì
  79. "┐Γ┤µ╣▄└φ╖╤╒╝╖ó│÷▒╕╝■╝█╓╡╡─▒╚┬╩ú╜"+str(p4,9,2)+"úÑ"
  80. set print on
  81. ? chr(13)
  82. set print off
  83. set device to screen
  84. close database
  85. set cons on
  86. retu
  87.  
  88.