home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / b / b034 / gz.img / CBHS-9.PRG < prev    next >
Encoding:
Text File  |  1989-12-20  |  3.1 KB  |  155 lines

  1. *│╔▒╛║╦╦π╫╙│╠╨≥╓«╛┼:CBHS-9.PRG
  2. set talk off
  3. set safety off
  4. clear
  5. dimension a(3,10)
  6. t=0
  7. do while t<=29
  8. t=t+1
  9. store 0 to a(t)
  10. enddo
  11. sjklf=0
  12. bhklf=0
  13. qtly=0
  14. rs=0
  15. if w3='╙═╞ß'
  16.    yyezc=21004
  17.    jse=92657
  18. endif
  19. if w3='│σ╤╣'
  20.    yyezc=9683.2
  21.    jse=43973
  22. endif
  23. if w3='╟░▓µ'
  24.    yyezc=5838.4
  25.    jse=25755
  26. endif
  27. select 1
  28. use &qbl6 alias z1
  29. select 2
  30. use &qbl51 alias z2
  31. select 3
  32. use &qbl52 alias z3
  33. go top
  34. clear
  35. @ 6,25 say '╟δ╩Σ╚δ╧┬├µ╕≈▓·╞╖╡─╧·╩█╝█╕±'
  36. @ 7,25 say '=========================='
  37. do while .not.eof()
  38. jg3=.T.
  39. @ 8,0 clear
  40. @ 9,18 say '╧ε─┐:  '
  41. @ 9,35 say ╧ε─┐
  42. @ 11,18 say '╔╧╘┬╡─╧·╩█╝█╕±:  '
  43. @ 11,45 say XSJG
  44. do while jg3
  45. jg1=0
  46. jg2='      '
  47. @ 13,18 say '▒╛╘┬╡─╧·╩█╝█╕±:  ' get jg1 picture '99.9999'
  48.      read
  49. @ 15,15 say '╩Σ╚δ╡─╧·╩█╝█╕±╢╘┬≡(Y/N)?  ' get jg2
  50.      read
  51. if jg2='Y'.or.jg2='y'
  52.    replace next 1 XSJG with jg1
  53.    jg3=.F.
  54. endif
  55. enddo
  56. skip
  57. enddo
  58. jg4=.T.
  59. do while jg4
  60. jg5='     '
  61. clear
  62. @ 6,30 say '╟δ╩Σ╚δ╧┬├µ╩²╢ε'
  63. @ 7,30 say '=============='
  64. @ 9,25 say '╔╧╜╔╣▄└φ╖╤:  ' get sjklf picture '9999999.99'
  65. @ 11,25 say '▓╣╗╪╣▄└φ╖╤:  ' get bhklf picture '9999999.99'
  66. *@ 13,25 say '╞Σ╦√└√╚≤:    ' get qtly picture '9999999.99'
  67. @ 13,25 say '╓░╣ñ╚╦╩²:    ' get rs picture '99999'
  68.      read
  69. @ 15,20 say '╩Σ╚δ╡─╩²╢ε╢╘┬≡(Y/N)?  ' get jg5
  70.      read
  71. if jg5='Y'.or.jg5='y'
  72.    jg4=.f.
  73. endif
  74. enddo
  75. replace all CLBYS with 0,DWCB with 0,XSSRBYS with 0,XSCBBYS with 0
  76. delete all for ╧ε─┐='╔╧╜╔╣▄└φ╖╤'.or.╧ε─┐='▓╣╗╪╣▄└φ╖╤'.or.╧ε─┐='║╧╝╞'.or.╧ε─┐='└√╚≤╫▄╢ε╨í╝╞'
  77. pack
  78. n=0
  79. do while n<114-qbl2
  80. n=n+1
  81. select 1
  82. go n
  83. select 3
  84. append blank
  85. go bottom
  86. replace next 1 ╧ε─┐ with z1->▓·╞╖├√│╞,CLBYS with z1->▓·┴┐,DWCB with z1->ZJ╞╜╛∙│╔▒╛
  87. enddo
  88. select 1
  89. use
  90. select 3
  91. index on ╧ε─┐ to &qbl53
  92. set index to &qbl53
  93. total to &qbl54 on ╧ε─┐
  94. use &qbl54
  95. replace all XSSRBYS with CLBYS*XSJG,XSCBBYS with CLBYS*DWCB
  96. replace all CLLJS with CLLJS+CLBYS,XSSRLJS with XSSRLJS+XSSRBYS,XSCBLJS with XSCBLJS+XSCBBYS
  97. append blank
  98. go bottom
  99. replace next 1 ╧ε─┐ with '╔╧╜╔╣▄└φ╖╤',XSCBBYS with sjklf
  100. append blank
  101. go bottom
  102. replace next 1 ╧ε─┐ with '▓╣╗╪╣▄└φ╖╤',XSCBBYS with bhklf
  103. sum all XSSRBYS,XSCBBYS,XSSRLJS,XSCBLJS to hj1,hj2,hj3,hj4
  104. append blank
  105. go bottom
  106. replace next 1 ╧ε─┐ with '║╧╝╞',XSSRBYS with hj1,XSCBBYS with hj2,XSSRLJS with hj3,XSCBLJS with hj4
  107. append blank
  108. go bottom
  109. replace next 1 ╧ε─┐ with '└√╚≤╫▄╢ε╨í╝╞',XSCBBYS with hj1-hj2
  110. copy to &qbl52
  111. use
  112. select 2
  113. a(1)=hj1
  114. a(2)=a(1)*0.08
  115. a(3)=a(2)*0.07
  116. a(4)=hj2
  117. a(5)=a(1)*0.001
  118. a(6)=a(2)*0.02
  119. a(7)=a(1)-a(2)-a(3)-a(4)-a(5)-a(6)
  120. *a(8)=qtly
  121. a(8)=a(2)+a(3)+a(5)+a(6)+yyezc+sjklf+bhklf
  122. a(9)=yyezc
  123. a(10)=a(7)+a(8)-a(9)
  124. a(11)=0
  125. a(12)=a(10)
  126. a(13)=a(10)*0.63
  127. a(14)=a(10)-a(13)
  128. a(16)=(a(10)-jse)*0.201529
  129. a(17)=(a(10)-jse)*0.798471
  130. a(15)=a(16)+a(17)
  131. a(18)=0
  132. a(19)=0
  133. a(21)=(a(14)-a(16)-a(17))*0.4467+a(17)
  134. a(22)=(a(14)-a(16)-a(17))*0.2703
  135. a(23)=(a(14)-a(16)-a(17))*0.2711+a(16)
  136. a(24)=(a(14)-a(16)-a(17))*0.0119
  137. a(20)=a(21)+a(22)+a(23)+a(24)
  138. a(25)=0
  139. a(26)=0
  140. a(27)=a(23)
  141. a(28)=rs
  142. a(29)=a(27)/a(28)
  143. tt=0
  144. do while tt<=28
  145. tt=tt+1
  146. go tt
  147. replace next 1 ▒╛╘┬╩² with a(tt)
  148. enddo
  149. replace all └█╝╞╩² with └█╝╞╩²+▒╛╘┬╩²
  150. use
  151. release all
  152. set safety on
  153. return
  154.  
  155.