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

企业管理

开发平台:

VFP

  1.  HIDE POPUP pop2
  2.  HIDE MENU mainmenu
  3.  DEAC WINDOW win
  4.  SET SYSMENU OFF
  5.  SET CLOCK TO 0, 69
  6.  ON KEY
  7.  SET COLOR TO W/N
  8.  CLOS DATABASES
  9.  CLEA
  10.  USE pzk
  11.  SET INDEX TO pz
  12.  REIN
  13.  SELE 2
  14.  USE kmk
  15.  SELE 1
  16.  SET COLOR TO W/N
  17.  CLEA
  18.  DO pzgx
  19.  IF EOF()
  20.       SET COLOR TO G+/GR
  21.       @ 10, 20 CLEAR TO 14, 60
  22.       @ 11, 30 SAY '凭证库里没有凭证,'
  23.       @ 13, 30 SAY '按任意键返回 !'
  24.       x = INKEY(0)
  25.       CLOS DATABASES
  26.       SET COLOR TO W+/B
  27.       @ 0, 0, 23, 79 BOX '北北北北'
  28.       SET COLOR TO W+/N
  29.       @ 1, 1, 22, 78 BOX '鞍鞍鞍鞍鞍'
  30.       @ 23, 28 SAY '当前数据的月份:'+STR(ryear, 4, 0)+'年'+STR(ryf, 2, 0)+'月' COLOR B+/BG 
  31.       @ 24, 0 SAY ' JQ001财务管理系统(Ver2.5)  黄朝生研制  版权所有  南宁市建政路51号  邮编:530023 ' COLOR R/W 
  32.       ON KEY LABEL Escape do Rquit
  33.       SET CLOCK TO 23, 69
  34.       RETU
  35.  ENDI
  36.  pz = 1
  37.  GOTO 1
  38.  pz = pzh
  39.  LOCA ALL FOR '      '$shy
  40.  IF EOF()
  41.       ?? CHR(7)
  42.       SET COLOR TO BG+/RB
  43.       @ 0, 0 CLEAR TO 3, 28
  44.       @ 1, 4 SAY '凭证已全部审核完毕!'
  45.       @ 2, 4 SAY '有  0 张凭证未通过.'
  46.       pd = INKEY(0)
  47.       DO qp
  48.       DO pzgx
  49.       @ 18, 0 CLEAR TO 24, 80
  50.  ELSE
  51.       pz = pzh
  52.       DO WHILE .T.
  53.            DO WHILE .T.
  54.                 SEEK pz
  55.                 pd = shy
  56.                 IF pd<>'       '
  57.                      pz = pz+1
  58.                 ELSE
  59.                      EXIT
  60.                 ENDI
  61.            ENDD
  62.            DO pzgx
  63.            LOCA ALL FOR pzh=pz .AND. shy='       '
  64.            IF EOF()
  65.                 PACK
  66.                 GOTO 1
  67.                 pd1 = 1
  68.                 jyq = -1
  69.                 DO WHILE  .NOT. EOF()
  70.                      SEEK pd1
  71.                      pd = shy
  72.                      IF pd='        '
  73.                           jyq = jyq+1
  74.                      ENDI
  75.                      pd1 = pd1+1
  76.                 ENDD
  77.                 ?? CHR(7)
  78.                 SET COLOR TO BG+/RB
  79.                 @ 0, 0 CLEAR TO 3, 28
  80.                 @ 1, 4 SAY '凭证已全部审核完毕!'
  81.                 @ 2, 4 SAY '有'
  82.                 @ 2, 6 SAY jyq PICTURE '999999'
  83.                 @ 2, 12 SAY '张凭证未通过.'
  84.                 pd = INKEY(0)
  85.                 DO qp
  86.                 DO pzgx
  87.                 @ 18, 0 CLEAR TO 24, 80
  88.                 EXIT
  89.            ENDI
  90.            @ 2, 50 SAY '                    '
  91.            @ 2, 50 SAY '总字第'
  92.            @ 2, 56 SAY pzh
  93.            @ 2, 66 SAY '号'
  94.            sl1 = RECNO()
  95.            pz = pz+1
  96.            SEEK pz
  97.            IF  .NOT. EOF()
  98.                 SKIP -1
  99.                 ml = RECNO()
  100.            ELSE
  101.                 GOTO BOTTOM
  102.                 ml = RECNO()
  103.            ENDI
  104.            pz = pz-1
  105.            GOTO BOTTOM
  106.            jyq = pzh
  107.            GOTO sl1
  108.            @ 10, 74 SAY pds
  109.            @ 17, 66 SAY lry
  110.            @ 2, 30 SAY rq
  111.            SET COLOR TO B/GR
  112.            @ 18, 0 SAY '                                                 '
  113.            @ 18, 0 SAY '    ↑上笔:↓下笔: PgUp上页: PgDn下页: F9不签字: F10签字: Esc退出审核        '
  114.            SET COLOR TO W/N
  115.            GOTO BOTTOM
  116.            @ 19, 0 CLEAR TO 24, 80
  117.            pd = INT((ml+1-sl1)/6)
  118.            IF INT((ml+1-sl1)/6)=(ml+1-sl1)/6
  119.                 ys = pd
  120.            ELSE
  121.                 ys = pd+1
  122.            ENDI
  123.            DO hjxs
  124.            GOTO sl1
  125.            IF 5<=ml-sl1
  126.                 bs = 1
  127.                 DO WHILE bs<=6
  128.                      @ 18+bs, 33 SAY zy
  129.                      DO slxs
  130.                      DO kmxs
  131.                      DO fsxs
  132.                      pd1 = RECNO()
  133.                      SKIP
  134.                      bs = bs+1
  135.                 ENDD
  136.                 bs = 1
  137.                 SKIP -6
  138.                 SET COLOR TO G/B
  139.                 @ 4, 11 SAY zy
  140.                 SET COLOR TO W/N
  141.                 DO kmxs-1
  142.                 DO fsxs-1
  143.                 DO slxs-1
  144.                 yc = 1
  145.            ELSE
  146.                 pd = 1
  147.                 pd1 = 0
  148.                 bs = 1
  149.                 DO WHILE pd1<=ml-sl1
  150.                      @ 19+pd1, 33 SAY zy
  151.                      DO kmxs
  152.                      DO fsxs
  153.                      DO slxs
  154.                      SKIP
  155.                      pd1 = pd1+1
  156.                      bs = bs+1
  157.                 ENDD
  158.                 SKIP -pd1
  159.                 SET COLOR TO G/B
  160.                 @ 4, 11 SAY zy
  161.                 SET COLOR TO W/N
  162.                 bs = 1
  163.                 DO kmxs-1
  164.                 DO fsxs-1
  165.                 DO slxs-1
  166.                 yc = 1
  167.            ENDI
  168.            DO WHILE .T.
  169.                 pd = INKEY(0)
  170.                 DO CASE
  171.                      CASE pd=5
  172.                           pd = RECNO()
  173.                           IF pd=sl1 .OR. bs=1 .OR. bs=0
  174.                                SET COLOR TO BG+/RB
  175.                                @ 0, 0 CLEAR TO 3, 28
  176.                                @ 1, 5 SAY '这是本页第一笔,'
  177.                                @ 2, 5 SAY '按任意键继续......'
  178.                                ?? CHR(7)
  179.                                pd = INKEY(0)
  180.                                DO qp
  181.                           ELSE
  182.                                @ 18+bs, 33 SAY zy
  183.                                DO fsxs
  184.                                DO kmxs
  185.                                DO slxs
  186.                                bs = bs-1
  187.                                SKIP -1
  188.                                @ 4, 11 SAY zy
  189.                                SET COLOR TO G/B
  190.                                @ 18+bs, 33 SAY zy
  191.                                SET COLOR TO W/N
  192.                                DO slxs-1
  193.                                DO kmxs-1
  194.                                DO fsxs-1
  195.                           ENDI
  196.                      CASE pd=24
  197.                           pd = RECNO()
  198.                           IF pd=ys*6 .OR. pd=ml .OR. bs=6
  199.                                SET COLOR TO BG+/RB
  200.                                @ 0, 0 CLEAR TO 3, 28
  201.                                @ 1, 5 SAY '这是本页最后一笔,'
  202.                                @ 2, 5 SAY '按任意键继续......'
  203.                                ?? CHR(7)
  204.                                pd = INKEY(0)
  205.                                DO qp
  206.                           ELSE
  207.                                SET COLOR TO W/N
  208.                                @ 18+bs, 33 SAY zy
  209.                                DO kmxs
  210.                                DO slxs
  211.                                SET COLOR TO W/N
  212.                                DO fsxs
  213.                                bs = bs+1
  214.                                pd1 = RECNO()
  215.                                IF pd1<ml
  216.                                     SKIP 1
  217.                                ENDI
  218.                                @ 4, 11 SAY zy
  219.                                SET COLOR TO G/B
  220.                                @ 18+bs, 33 SAY zy
  221.                                SET COLOR TO W/N
  222.                                DO slxs-1
  223.                                DO kmxs-1
  224.                                DO fsxs-1
  225.                           ENDI
  226.                      CASE pd=3
  227.                           IF yc=ys
  228.                                SET COLOR TO BG+/RB
  229.                                @ 0, 0 CLEAR TO 3, 28
  230.                                @ 1, 4 SAY '这是本凭证最后一页,'
  231.                                @ 2, 4 SAY '按任意键继续......'
  232.                                ?? CHR(7)
  233.                                pd = INKEY(0)
  234.                                DO qp
  235.                           ELSE
  236.                                DO pzgx
  237.                                DO hjxs
  238.                                @ 19, 0 CLEAR TO 25, 81
  239.                                GOTO sl1+yc*6
  240.                                pd = RECNO()
  241.                                IF ml-pd>=6
  242.                                     pd1 = 6
  243.                                ELSE
  244.                                     pd1 = ml-pd+1
  245.                                ENDI
  246.                                bs = 1
  247.                                DO WHILE bs<=pd1
  248.                                     @ 18+bs, 33 SAY zy
  249.                                     DO kmxs
  250.                                     DO fsxs
  251.                                     DO slxs
  252.                                     pd = RECNO()
  253.                                     IF pd<>ml
  254.                                          SKIP
  255.                                          bs = bs+1
  256.                                     ELSE
  257.                                          EXIT
  258.                                     ENDI
  259.                                ENDD
  260.                                yc = yc+1
  261.                                SKIP -bs+1
  262.                                bs = 1
  263.                                @ 4, 11 SAY zy
  264.                                SET COLOR TO G/B
  265.                                @ 18+bs, 33 SAY zy
  266.                                SET COLOR TO W/N
  267.                                DO kmxs-1
  268.                                DO fsxs-1
  269.                                DO slxs-1
  270.                           ENDI
  271.                      CASE pd=18
  272.                           IF yc=1
  273.                                SET COLOR TO BG+/RB
  274.                                @ 0, 0 CLEAR TO 3, 28
  275.                                @ 1, 4 SAY '这是本凭证第一页,'
  276.                                @ 2, 4 SAY '按任意键继续......'
  277.                                ?? CHR(7)
  278.                                pd = INKEY(0)
  279.                                DO qp
  280.                           ELSE
  281.                                DO pzgx
  282.                                DO hjxs
  283.                                @ 19, 0 CLEAR TO 25, 81
  284.                                yc = yc-1
  285.                                GOTO sl1+yc*6-6
  286.                                bs = 1
  287.                                DO WHILE bs<=6
  288.                                     @ 18+bs, 33 SAY zy
  289.                                     DO kmxs
  290.                                     DO fsxs
  291.                                     DO slxs
  292.                                     SKIP
  293.                                     bs = bs+1
  294.                                ENDD
  295.                                SKIP -6
  296.                                @ 4, 11 SAY zy
  297.                                bs = 1
  298.                                SET COLOR TO G/B
  299.                                @ 18+bs, 33 SAY zy
  300.                                SET COLOR TO W/N
  301.                                DO kmxs-1
  302.                                DO fsxs-1
  303.                                DO slxs-1
  304.                                bs = 1
  305.                           ENDI
  306.                      CASE pd=27
  307.                           pd = -1234567
  308.                           EXIT
  309.                      CASE pd=-8
  310.                           ?? CHR(7)
  311.                           pz = pz+1
  312.                           EXIT
  313.                      CASE pd=-9
  314.                           REPL shy WITH czy FOR pzh=pz
  315.                           pz = pz+1
  316.                           EXIT
  317.                      OTHE
  318.                           ?? CHR(7)
  319.                 ENDC
  320.            ENDD
  321.            IF pd=-1234567
  322.                 EXIT
  323.            ENDI
  324.       ENDD
  325.  ENDI
  326.  CLOS DATABASES
  327.  SET COLOR TO W+/B
  328.  @ 0, 0, 23, 79 BOX '北北北北'
  329.  SET COLOR TO W+/N
  330.  @ 1, 1, 22, 78 BOX '鞍鞍鞍鞍鞍'
  331.  @ 23, 28 SAY '当前数据的月份:'+STR(ryear, 4, 0)+'年'+STR(ryf, 2, 0)+'月' COLOR B+/BG 
  332.  @ 24, 0 SAY ' JQ001财务管理系统(Ver2.5)  黄朝生研制  版权所有  南宁市建政路51号  邮编:530023 ' COLOR R/W 
  333.  ON KEY LABEL Escape do Rquit
  334.  SET CLOCK TO 23, 69
  335.  RETU
  336. *