CSHXG.PRG
上传用户:hbmaozhan
上传日期:2013-01-31
资源大小:1007k
文件大小:24k
源码类别:

企业管理

开发平台:

VFP

  1.  SET COLOR TO W/N
  2.  CLOS DATABASES
  3.  CLEA
  4.  SELE 1
  5.  USE kmk
  6.  SELE 2
  7.  USE pzk
  8.  xg = 0
  9.  SET COLOR TO GR/N
  10.  @ 0, 0 SAY 'JQ软件工作室'
  11.  @ 0, 67 SAY 'JQ财务系统'
  12.  SET COLOR TO G/N
  13.  @ 0, 25 SAY '初 始 化 录 入 接 口'
  14.  @ 1, 0 SAY '================================================================================'
  15.  @ 2, 0 SAY '     借 方 累 计         贷 方 累 计          年 初 借 方         年 初 贷 方'
  16.  @ 4, 0 SAY '================================================================================'
  17.  @ 5, 0 SAY '科目代码'
  18.  @ 5, 10 SAY ' 总  帐  科  目'
  19.  @ 5, 31 SAY ' 明  细  科  目'
  20.  @ 5, 51 SAY '   借方余额'
  21.  @ 5, 65 SAY '     贷方余额'
  22.  ? '================================================================================'
  23.  pd = 0
  24.  SET COLOR TO G/N
  25.  @ 23, 0 SAY '=================================================================================='
  26.  SET COLOR TO B/GR
  27.  @ 24, 0 SAY '↑上笔:↓下笔: PgUp上页: PgDn下页: Home整理: F6增加: F5修改: Delete删除: Esc退出'
  28.  SET COLOR TO W/N
  29.  GOTO BOTTOM
  30.  pd = RECNO()
  31.  pd = pd/16
  32.  pd1 = INT(pd)
  33.  ys = pd-pd1
  34.  IF ys=0
  35.       ys = pd1
  36.  ELSE
  37.       ys = pd1+1
  38.  ENDI
  39.  GOTO TOP
  40.  pd = 1
  41.  ys1 = 1
  42.  DO WHILE .T.
  43.       @ 6+pd, 0 SAY kmdm
  44.       @ 6+pd, 10 SAY zzkm
  45.       @ 6+pd, 31 SAY mxkm
  46.       IF jhd='+'
  47.            IF ye>=0
  48.                 @ 6+pd, 52 SAY ye
  49.            ELSE
  50.                 @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  51.            ENDI
  52.       ELSE
  53.            IF ye>=0
  54.                 @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  55.            ELSE
  56.                 @ 6+pd, 52 SAY -ye
  57.            ENDI
  58.       ENDI
  59.       IF  .NOT. EOF()
  60.            SKIP
  61.            pd = pd+1
  62.       ELSE
  63.            EXIT
  64.       ENDI
  65.       IF pd=17
  66.            EXIT
  67.       ENDI
  68.  ENDD
  69.  GOTO TOP
  70.  pd = 1
  71.  SET COLOR TO G+/B
  72.  @ 6+pd, 0 SAY kmdm
  73.  @ 6+pd, 10 SAY zzkm
  74.  @ 6+pd, 31 SAY mxkm
  75.  IF jhd='+'
  76.       IF ye>=0
  77.            @ 6+pd, 52 SAY ye
  78.       ELSE
  79.            @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  80.       ENDI
  81.  ELSE
  82.       IF ye>=0
  83.            @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  84.       ELSE
  85.            @ 6+pd, 52 SAY -ye
  86.       ENDI
  87.  ENDI
  88.  SET COLOR TO W/N
  89.  @ 3, 1 SAY jje
  90.  @ 3, 22 SAY dje
  91.  @ 3, 45 SAY njye
  92.  @ 3, 64 SAY ndye
  93.  DO WHILE .T.
  94.       x = INKEY(0)
  95.       DO CASE
  96.            CASE x=1
  97.                 SAVE SCREEN TO crt
  98.                 IF EOF()
  99.                      x = RECNO()-1
  100.                      pd = pd-1
  101.                 ELSE
  102.                 ENDI
  103.                 SET COLOR TO W+/B
  104.                 @ 7, 20 CLEAR TO 10, 50
  105.                 x1 = 7
  106.                 x2 = 10
  107.                 y1 = 22
  108.                 y2 = 48
  109.                 DO box-1
  110.                 @ 8, 26 SAY '  正在进行数据整理,'
  111.                 @ 9, 26 SAY '  请 稍 候 ......'
  112.                 DO cshzl
  113.                 GOTO x
  114.                 REST SCREEN FROM crt
  115.                 SET COLOR TO G+/B
  116.                 @ 6+pd, 0 SAY kmdm
  117.                 @ 6+pd, 10 SAY zzkm
  118.                 @ 6+pd, 31 SAY mxkm
  119.                 IF jhd='+'
  120.                      IF ye>=0
  121.                           @ 6+pd, 52 SAY ye
  122.                      ELSE
  123.                           @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  124.                      ENDI
  125.                 ELSE
  126.                      IF ye>=0
  127.                           @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  128.                      ELSE
  129.                           @ 6+pd, 52 SAY -ye
  130.                      ENDI
  131.                 ENDI
  132.                 SET COLOR TO W/N
  133.                 @ 3, 1 SAY jje
  134.                 @ 3, 22 SAY dje
  135.                 @ 3, 45 SAY njye
  136.                 @ 3, 64 SAY ndye
  137.            CASE x=-4
  138.                 DO cshxg-1
  139.            CASE x=-5
  140.                 IF pd<16
  141.                      xg = 1
  142.                      IF EOF() .AND.  .NOT. BOF()
  143.                           x1 = RECNO()-1
  144.                           pd = pd-1
  145.                      ELSE
  146.                           x1 = RECNO()
  147.                      ENDI
  148.                      a1 = pd
  149.                      IF EOF()
  150.                           a1 = a1+1
  151.                      ENDI
  152.                      SET COLOR TO W/N
  153.                      @ 6+pd, 0 CLEAR TO 22, 79
  154.                      @ 6+pd, 0 SAY kmdm
  155.                      @ 6+pd, 10 SAY zzkm
  156.                      @ 6+pd, 31 SAY mxkm
  157.                      IF jhd='+'
  158.                           IF ye>=0
  159.                                @ 6+pd, 52 SAY ye
  160.                           ELSE
  161.                                @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  162.                           ENDI
  163.                      ELSE
  164.                           IF ye>=0
  165.                                @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  166.                           ELSE
  167.                                @ 6+pd, 52 SAY -ye
  168.                           ENDI
  169.                      ENDI
  170.                      pd = pd+1
  171.                      DO WHILE .T.
  172.                           @ 6+pd, 0 SAY kmdm
  173.                           @ 6+pd, 10 SAY zzkm
  174.                           @ 6+pd, 31 SAY mxkm
  175.                           IF jhd='+'
  176.                                IF ye>=0
  177.                                     @ 6+pd, 52 SAY ye
  178.                                ELSE
  179.                                     @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  180.                                ENDI
  181.                           ELSE
  182.                                IF ye>=0
  183.                                     @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  184.                                ELSE
  185.                                     @ 6+pd, 52 SAY -ye
  186.                                ENDI
  187.                           ENDI
  188.                           IF  .NOT. EOF()
  189.                                SKIP
  190.                                pd = pd+1
  191.                           ELSE
  192.                                EXIT
  193.                           ENDI
  194.                           IF pd=17
  195.                                EXIT
  196.                           ENDI
  197.                      ENDD
  198.                      pd = a1
  199.                      @ 6+pd, 0 SAY '                                                    '
  200.                      IF EOF() .AND. BOF()
  201.                           GOTO TOP
  202.                      ELSE
  203.                           GOTO x1
  204.                      ENDI
  205.                      DO cshsr-1
  206.                      SELE 2
  207.                      GOTO BOTTOM
  208.                      pd1 = RECNO()
  209.                      pd1 = pd1/16
  210.                      pd2 = INT(pd1)
  211.                      ys = pd1-pd2
  212.                      IF ys=0
  213.                           ys = pd2
  214.                      ELSE
  215.                           ys = pd2+1
  216.                      ENDI
  217.                      IF BOF()
  218.                           GOTO TOP
  219.                      ELSE
  220.                           IF x1<=0
  221.                                x1 = 1
  222.                           ENDI
  223.                           IF pd<=0
  224.                                pd = 1
  225.                           ENDI
  226.                           IF  .NOT. RECNO()=1
  227.                                GOTO x1+1
  228.                           ELSE
  229.                                GOTO BOTTOM
  230.                           ENDI
  231.                      ENDI
  232.                      SET COLOR TO W/N
  233.                      @ 6+pd, 0 SAY SPACE(80)
  234.                      @ 3, 0 SAY SPACE(80)
  235.                      SET COLOR TO G+/B
  236.                      @ 6+pd, 0 SAY kmdm
  237.                      @ 6+pd, 10 SAY zzkm
  238.                      @ 6+pd, 31 SAY mxkm
  239.                      IF jhd='+'
  240.                           IF ye>=0
  241.                                @ 6+pd, 52 SAY ye
  242.                                @ 6+pd, 66 SAY '            '
  243.                           ELSE
  244.                                @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  245.                                @ 6+pd, 52 SAY '            '
  246.                           ENDI
  247.                      ELSE
  248.                           IF ye>=0
  249.                                @ 6+pd, 52 SAY '              '
  250.                                @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  251.                           ELSE
  252.                                @ 6+pd, 66 SAY '            '
  253.                                @ 6+pd, 52 SAY -ye
  254.                           ENDI
  255.                      ENDI
  256.                      SET COLOR TO W/N
  257.                      @ 3, 1 SAY jje
  258.                      @ 3, 22 SAY dje
  259.                      @ 3, 43 SAY '             '
  260.                      @ 3, 45 SAY njye
  261.                      @ 3, 62 SAY '             '
  262.                      @ 3, 65 SAY ndye
  263.                 ELSE
  264.                      ?? CHR(7)
  265.                 ENDI
  266.            CASE x=5
  267.                 IF pd=1 .OR. RECNO()=1
  268.                      ?? CHR(7)
  269.                 ELSE
  270.                      SET COLOR TO W/N
  271.                      @ 6+pd, 0 SAY kmdm
  272.                      @ 6+pd, 10 SAY zzkm
  273.                      @ 6+pd, 31 SAY mxkm
  274.                      IF jhd='+'
  275.                           IF ye>=0
  276.                                @ 6+pd, 52 SAY ye
  277.                                @ 6+pd, 66 SAY '              '
  278.                           ELSE
  279.                                @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  280.                                @ 6+pd, 52 SAY '              '
  281.                           ENDI
  282.                      ELSE
  283.                           IF ye>=0
  284.                                @ 6+pd, 52 SAY '              '
  285.                                @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  286.                           ELSE
  287.                                @ 6+pd, 52 SAY -ye
  288.                                @ 6+pd, 66 SAY '              '
  289.                           ENDI
  290.                      ENDI
  291.                      SET COLOR TO W/N
  292.                      @ 3, 1 SAY jje
  293.                      @ 3, 22 SAY dje
  294.                      @ 3, 45 SAY njye
  295.                      @ 3, 65 SAY ndye
  296.                      SET COLOR TO G+/B
  297.                      IF  .NOT. BOF()
  298.                           SKIP -1
  299.                           pd = pd-1
  300.                           @ 6+pd, 0 SAY kmdm
  301.                           @ 6+pd, 10 SAY zzkm
  302.                           @ 6+pd, 31 SAY mxkm
  303.                           IF jhd='+'
  304.                                IF ye>=0
  305.                                     @ 6+pd, 52 SAY ye
  306.                                     @ 6+pd, 66 SAY '             '
  307.                                ELSE
  308.                                     @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  309.                                     @ 6+pd, 52 SAY '             '
  310.                                ENDI
  311.                           ELSE
  312.                                IF ye>=0
  313.                                     @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  314.                                     @ 6+pd, 52 SAY '             '
  315.                                ELSE
  316.                                     @ 6+pd, 52 SAY -ye
  317.                                     @ 6+pd, 66 SAY '             '
  318.                                ENDI
  319.                           ENDI
  320.                           SET COLOR TO W/N
  321.                           @ 3, 1 SAY jje
  322.                           @ 3, 22 SAY dje
  323.                           @ 3, 45 SAY njye
  324.                           @ 3, 65 SAY ndye
  325.                      ENDI
  326.                 ENDI
  327.            CASE x=7
  328.                 xg = 1
  329.                 IF EOF() .AND.  .NOT. BOF()
  330.                      ?? CHR(7)
  331.                 ELSE
  332.                      x1 = RECNO()
  333.                      x2 = x1
  334.                      GOTO BOTTOM
  335.                      IF x1=RECNO()
  336.                           x2 = x1-1
  337.                           IF pd>1
  338.                                pd = pd-1
  339.                           ENDI
  340.                      ENDI
  341.                      IF BOF()
  342.                           GOTO TOP
  343.                      ELSE
  344.                           GOTO x1
  345.                      ENDI
  346.                      a1 = LTRIM(TRIM(kmdm))
  347.                      DELE
  348.                      PACK
  349.                      SELE 1
  350.                      LOCA ALL FOR a1$kmdm .AND. LEN(LTRIM(TRIM(kmdm)))=LEN(LTRIM(TRIM(a1)))
  351.                      DELE
  352.                      PACK
  353.                      SELE 2
  354.                      IF BOF()
  355.                           GOTO TOP
  356.                      ELSE
  357.                           GOTO x2
  358.                      ENDI
  359.                      pd1 = pd
  360.                      SET COLOR TO W/N
  361.                      @ 6+pd, 0 CLEAR TO 22, 79
  362.                      DO WHILE .T.
  363.                           @ 6+pd, 0 SAY kmdm
  364.                           @ 6+pd, 10 SAY zzkm
  365.                           @ 6+pd, 31 SAY mxkm
  366.                           IF jhd='+'
  367.                                IF ye>=0
  368.                                     @ 6+pd, 52 SAY ye
  369.                                ELSE
  370.                                     @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  371.                                ENDI
  372.                           ELSE
  373.                                IF ye>=0
  374.                                     @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  375.                                ELSE
  376.                                     @ 6+pd, 52 SAY -ye
  377.                                ENDI
  378.                           ENDI
  379.                           IF  .NOT. EOF()
  380.                                SKIP
  381.                                pd = pd+1
  382.                           ELSE
  383.                                EXIT
  384.                           ENDI
  385.                           IF pd=17
  386.                                EXIT
  387.                           ENDI
  388.                      ENDD
  389.                      GOTO BOTTOM
  390.                      pd = RECNO()
  391.                      pd = pd/16
  392.                      pd2 = INT(pd)
  393.                      ys = pd-pd2
  394.                      IF ys=0
  395.                           ys = pd2
  396.                      ELSE
  397.                           ys = pd2+1
  398.                      ENDI
  399.                      IF ys1>ys
  400.                           ys1 = ys
  401.                           GOTO (ys1-1)*16+1
  402.                           x2 = RECNO()
  403.                           pd = 1
  404.                           SET COLOR TO W/N
  405.                           @ 7, 0 CLEAR TO 22, 79
  406.                           DO WHILE .T.
  407.                                @ 6+pd, 0 SAY kmdm
  408.                                @ 6+pd, 10 SAY zzkm
  409.                                @ 6+pd, 31 SAY mxkm
  410.                                IF jhd='+'
  411.                                     IF ye>=0
  412.                                          @ 6+pd, 52 SAY ye
  413.                                     ELSE
  414.                                          @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  415.                                     ENDI
  416.                                ELSE
  417.                                     IF ye>=0
  418.                                          @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  419.                                     ELSE
  420.                                          @ 6+pd, 52 SAY -ye
  421.                                     ENDI
  422.                                ENDI
  423.                                SKIP
  424.                                pd = pd+1
  425.                                IF pd=17
  426.                                     EXIT
  427.                                ENDI
  428.                           ENDD
  429.                           GOTO x2
  430.                      ELSE
  431.                           IF BOF()
  432.                                GOTO TOP
  433.                           ELSE
  434.                                GOTO x2
  435.                           ENDI
  436.                      ENDI
  437.                      pd = pd1
  438.                      SET COLOR TO G+/B
  439.                      @ 6+pd, 0 SAY kmdm
  440.                      @ 6+pd, 10 SAY zzkm
  441.                      @ 6+pd, 31 SAY mxkm
  442.                      IF jhd='+'
  443.                           IF ye>=0
  444.                                @ 6+pd, 52 SAY ye
  445.                           ELSE
  446.                                @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  447.                           ENDI
  448.                      ELSE
  449.                           IF ye>=0
  450.                                @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  451.                           ELSE
  452.                                @ 6+pd, 52 SAY -ye
  453.                           ENDI
  454.                      ENDI
  455.                      SET COLOR TO W/N
  456.                      @ 3, 1 SAY jje
  457.                      @ 3, 22 SAY dje
  458.                      @ 3, 45 SAY njye
  459.                      @ 3, 65 SAY ndye
  460.                 ENDI
  461.            CASE x=24
  462.                 IF pd=16 .OR. EOF()
  463.                      ?? CHR(7)
  464.                 ELSE
  465.                      SET COLOR TO W/N
  466.                      @ 6+pd, 0 SAY kmdm
  467.                      @ 6+pd, 10 SAY zzkm
  468.                      @ 6+pd, 31 SAY mxkm
  469.                      IF jhd='+'
  470.                           IF ye>=0
  471.                                @ 6+pd, 52 SAY ye
  472.                                @ 6+pd, 66 SAY '             '
  473.                           ELSE
  474.                                @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  475.                                @ 6+pd, 52 SAY '             '
  476.                           ENDI
  477.                      ELSE
  478.                           IF ye>=0
  479.                                @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  480.                                @ 6+pd, 52 SAY '             '
  481.                           ELSE
  482.                                @ 6+pd, 52 SAY -ye
  483.                                @ 6+pd, 66 SAY '             '
  484.                           ENDI
  485.                      ENDI
  486.                      SET COLOR TO W/N
  487.                      @ 3, 1 SAY jje
  488.                      @ 3, 22 SAY dje
  489.                      @ 3, 45 SAY njye
  490.                      @ 3, 65 SAY ndye
  491.                      SET COLOR TO G+/B
  492.                      SKIP
  493.                      pd = pd+1
  494.                      @ 6+pd, 0 SAY kmdm
  495.                      @ 6+pd, 10 SAY zzkm
  496.                      @ 6+pd, 31 SAY mxkm
  497.                      IF jhd='+'
  498.                           IF ye>=0
  499.                                @ 6+pd, 52 SAY ye
  500.                                @ 6+pd, 66 SAY '             '
  501.                           ELSE
  502.                                @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  503.                                @ 6+pd, 52 SAY '             '
  504.                           ENDI
  505.                      ELSE
  506.                           IF ye>=0
  507.                                @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  508.                                @ 6+pd, 52 SAY '             '
  509.                           ELSE
  510.                                @ 6+pd, 52 SAY -ye
  511.                                @ 6+pd, 66 SAY '             '
  512.                           ENDI
  513.                      ENDI
  514.                      SET COLOR TO W/N
  515.                      @ 3, 1 SAY jje
  516.                      @ 3, 22 SAY dje
  517.                      @ 3, 45 SAY njye
  518.                      @ 3, 65 SAY ndye
  519.                 ENDI
  520.            CASE x=18
  521.                 IF ys1>1
  522.                      ys1 = ys1-1
  523.                      GOTO ys1*16
  524.                      SKIP -15
  525.                      pd = 1
  526.                      SET COLOR TO W/N
  527.                      @ 7, 0 CLEAR TO 22, 79
  528.                      DO WHILE .T.
  529.                           @ 6+pd, 0 SAY kmdm
  530.                           @ 6+pd, 10 SAY zzkm
  531.                           @ 6+pd, 31 SAY mxkm
  532.                           IF jhd='+'
  533.                                IF ye>=0
  534.                                     @ 6+pd, 52 SAY ye
  535.                                ELSE
  536.                                     @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  537.                                ENDI
  538.                           ELSE
  539.                                IF ye>=0
  540.                                     @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  541.                                ELSE
  542.                                     @ 6+pd, 52 SAY -ye
  543.                                ENDI
  544.                           ENDI
  545.                           IF  .NOT. EOF()
  546.                                SKIP
  547.                                pd = pd+1
  548.                           ELSE
  549.                                EXIT
  550.                           ENDI
  551.                           IF pd=17
  552.                                EXIT
  553.                           ENDI
  554.                      ENDD
  555.                      SKIP -16
  556.                      SET COLOR TO G+/B
  557.                      pd = 1
  558.                      @ 6+pd, 0 SAY kmdm
  559.                      @ 6+pd, 10 SAY zzkm
  560.                      @ 6+pd, 31 SAY mxkm
  561.                      IF jhd='+'
  562.                           IF ye>=0
  563.                                @ 6+pd, 52 SAY ye
  564.                           ELSE
  565.                                @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  566.                           ENDI
  567.                      ELSE
  568.                           IF ye>=0
  569.                                @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  570.                           ELSE
  571.                                @ 6+pd, 52 SAY -ye
  572.                           ENDI
  573.                      ENDI
  574.                      SET COLOR TO W/N
  575.                      @ 3, 1 SAY jje
  576.                      @ 3, 22 SAY dje
  577.                      @ 3, 45 SAY njye
  578.                      @ 3, 65 SAY ndye
  579.                      pd = 1
  580.                 ELSE
  581.                      ?? CHR(7)
  582.                 ENDI
  583.            CASE x=3
  584.                 SET COLOR TO W/N
  585.                 IF ys1<ys
  586.                      ys1 = ys1+1
  587.                      GOTO (ys1-1)*16+1
  588.                      x = RECNO()
  589.                      pd = 1
  590.                      SET COLOR TO W/N
  591.                      @ 7, 0 CLEAR TO 22, 79
  592.                      DO WHILE .T.
  593.                           @ 6+pd, 0 SAY kmdm
  594.                           @ 6+pd, 10 SAY zzkm
  595.                           @ 6+pd, 31 SAY mxkm
  596.                           IF jhd='+'
  597.                                IF ye>=0
  598.                                     @ 6+pd, 52 SAY ye
  599.                                ELSE
  600.                                     @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  601.                                ENDI
  602.                           ELSE
  603.                                IF ye>=0
  604.                                     @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  605.                                ELSE
  606.                                     @ 6+pd, 52 SAY -ye
  607.                                ENDI
  608.                           ENDI
  609.                           IF  .NOT. EOF()
  610.                                SKIP
  611.                                pd = pd+1
  612.                           ELSE
  613.                                EXIT
  614.                           ENDI
  615.                           IF pd=17
  616.                                EXIT
  617.                           ENDI
  618.                      ENDD
  619.                      GOTO x
  620.                      SET COLOR TO G+/B
  621.                      pd = 1
  622.                      @ 6+pd, 0 SAY kmdm
  623.                      @ 6+pd, 10 SAY zzkm
  624.                      @ 6+pd, 31 SAY mxkm
  625.                      IF jhd='+'
  626.                           IF ye>=0
  627.                                @ 6+pd, 52 SAY ye
  628.                           ELSE
  629.                                @ 6+pd, 66 SAY -ye PICTURE '99999999999.99'
  630.                           ENDI
  631.                      ELSE
  632.                           IF ye>=0
  633.                                @ 6+pd, 66 SAY ye PICTURE '99999999999.99'
  634.                           ELSE
  635.                                @ 6+pd, 52 SAY -ye
  636.                           ENDI
  637.                      ENDI
  638.                      SET COLOR TO W/N
  639.                      @ 3, 1 SAY jje
  640.                      @ 3, 22 SAY dje
  641.                      @ 3, 45 SAY njye
  642.                      @ 3, 65 SAY ndye
  643.                      pd = 1
  644.                 ELSE
  645.                      ?? CHR(7)
  646.                 ENDI
  647.            CASE x=27
  648.                 EXIT
  649.            OTHE
  650.                 ?? CHR(7)
  651.       ENDC
  652.  ENDD
  653.  IF xg=1
  654.       SET COLOR TO W+/B
  655.       @ 7, 20 CLEAR TO 10, 50
  656.       x1 = 7
  657.       x2 = 10
  658.       y1 = 22
  659.       y2 = 48
  660.       DO box-1
  661.       @ 8, 28 SAY '正在进行科目整理,'
  662.       @ 9, 28 SAY '请 稍 候 ......'
  663.       DO kmkzl
  664.  ENDI
  665.  CLOS DATABASES
  666.  SET COLOR TO W/N
  667.  RETU
  668. *