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

企业管理

开发平台:

VFP

  1.  HIDE POPUP pop4
  2.  HIDE POPUP pop4_2
  3.  HIDE MENU mainmenu
  4.  SET CLOCK TO 0, 69
  5.  DEAC WINDOW win
  6.  ON KEY
  7.  SET SYSMENU OFF
  8.  SET COLOR TO W/B
  9.  CLEA
  10.  p = 1
  11.  USE yjkb
  12.  SET COLOR TO GR/B
  13.  @ 1, 0 SAY 'JQ软件工作室'
  14.  @ 1, 67 SAY 'JQ财务系统'
  15.  SET COLOR TO G/B
  16.  @ 0, 25 SAY '应  交  款  项  表'
  17.  @ 2, 0 SAY '┏━━━━━━━━━━━━━━━━┯━┯━━━━━━━━━━┯━━━━━━━━┓'
  18.  @ 3, 0 SAY '┃'
  19.  @ 3, 5 SAY '        项         目 '
  20.  @ 3, 34 SAY '│'
  21.  @ 3, 36 SAY '行'
  22.  @ 3, 38 SAY '│'
  23.  @ 3, 44 SAY '年初未交数'
  24.  @ 3, 60 SAY '│'
  25.  @ 3, 63 SAY ' 本年应交数'
  26.  @ 3, 78 SAY '┃'
  27.  @ 4, 0 SAY '┠────────────────┼─┼──────────┼────────┨'
  28.  pd = 4
  29.  DO WHILE pd<23
  30.       i = pd+1
  31.       @ i, 0 SAY '┃'
  32.       @ i, 34 SAY '│'
  33.       @ i, 38 SAY '│'
  34.       @ i, 60 SAY '│'
  35.       @ i, 78 SAY '┃'
  36.       pd = pd+1
  37.  ENDD
  38.  @ 23, 0 SAY '┗━━━━━━━━━━━━━━━━┷━┷━━━━━━━━━━┷━━━━━━━━┛'
  39.  SET COLOR TO B/GR
  40.  @ 24, 0 SAY ' ← 左页 : → 右页: ↑ 上一笔 : ↓ 下一笔 : PgUp 上一页 : PgDn 下一页 : Esc 退出            '
  41.  SET COLOR TO W/B
  42.  GOTO BOTTOM
  43.  pd = RECNO()
  44.  pd = pd/16
  45.  pd1 = INT(pd)
  46.  ys = pd-pd1
  47.  IF ys=0
  48.       ys = pd1
  49.  ELSE
  50.       ys = pd1+1
  51.  ENDI
  52.  GOTO TOP
  53.  pd = 1
  54.  ys1 = 1
  55.  DO WHILE .T.
  56.       @ 4+pd, 2 SAY xm
  57.       @ 4+pd, 36 SAY h
  58.       IF ncs<>0
  59.            @ 4+pd, 43 SAY ncs PICTURE '999,999,999.99'
  60.       ENDI
  61.       IF bns<>0
  62.            @ 4+pd, 63 SAY bns PICTURE '999,999,999.99'
  63.       ENDI
  64.       IF  .NOT. EOF()
  65.            SKIP
  66.            pd = pd+1
  67.       ELSE
  68.            EXIT
  69.       ENDI
  70.       IF pd=19
  71.            EXIT
  72.       ENDI
  73.  ENDD
  74.  GOTO 1
  75.  SET COLOR TO G+/B
  76.  @ 5, 2 SAY xm
  77.  @ 5, 36 SAY h
  78.  IF ncs<>0
  79.       @ 5, 43 SAY ncs PICTURE '999,999,999.99'
  80.  ELSE
  81.       @ 5, 43 SAY '              '
  82.  ENDI
  83.  IF bns<>0
  84.       @ 5, 63 SAY bns PICTURE '999,999,999.99'
  85.  ELSE
  86.       @ 5, 63 SAY '              '
  87.  ENDI
  88.  pd = 1
  89.  zc1 = 'XM'
  90.  h = 'h'
  91.  ncs = 'ncs'
  92.  nms = 'bns'
  93.  DO WHILE .T.
  94.       x = INKEY(0)
  95.       DO CASE
  96.            CASE x=5
  97.                 IF pd=1 .OR. RECNO()=1
  98.                      ?? CHR(7)
  99.                 ELSE
  100.                      SET COLOR TO W/B
  101.                      @ 4+pd,2 say &zc1
  102.                      @ 4+pd,36 say &h
  103.                      if &ncs<>0
  104.                           @ 4+pd,43 say &ncs pict'999,999,999.99'
  105.                      ELSE
  106.                           @ 4+pd, 43 SAY '              '
  107.                      ENDI
  108.                      if &nms<>0
  109.                           @ 4+pd,63 say &nms pict'999,999,999.99'
  110.                      ELSE
  111.                           @ 4+pd, 63 SAY '              '
  112.                      ENDI
  113.                      SET COLOR TO G+/B
  114.                      SKIP -1
  115.                      pd = pd-1
  116.                      @ 4+pd,2 say &zc1
  117.                      @ 4+pd,36 say &h
  118.                      if &ncs<>0
  119.                           @ 4+pd,43 say &ncs pict'999,999,999.99'
  120.                      ELSE
  121.                           @ 4+pd, 43 SAY '              '
  122.                      ENDI
  123.                      if &nms<>0
  124.                           @ 4+pd,63 say &nms pict'999,999,999.99'
  125.                      ELSE
  126.                           @ 4+pd, 63 SAY '              '
  127.                      ENDI
  128.                 ENDI
  129.            CASE x=24
  130.                 IF pd=18 .OR. EOF()
  131.                      ?? CHR(7)
  132.                 ELSE
  133.                      SET COLOR TO W/B
  134.                      @ 4+pd,2 say &zc1
  135.                      @ 4+pd,36 say &h
  136.                      if &ncs<>0
  137.                           @ 4+pd,43 say &ncs pict'999,999,999.99'
  138.                      ELSE
  139.                           @ 4+pd, 43 SAY '              '
  140.                      ENDI
  141.                      if &nms<>0
  142.                           @ 4+pd,63 say &nms pict'999,999,999.99'
  143.                      ELSE
  144.                           @ 4+pd, 63 SAY '              '
  145.                      ENDI
  146.                      SET COLOR TO G+/B
  147.                      SKIP
  148.                      pd = pd+1
  149.                      @ 4+pd,2 say &zc1
  150.                      @ 4+pd,36 say &h
  151.                      if &ncs<>0
  152.                           @ 4+pd,43 say &ncs pict'999,999,999.99'
  153.                      ELSE
  154.                           @ 4+pd, 43 SAY '              '
  155.                      ENDI
  156.                      if &nms<>0
  157.                           @ 4+pd,63 say &nms pict'999,999,999.99'
  158.                      ELSE
  159.                           @ 4+pd, 63 SAY '              '
  160.                      ENDI
  161.                 ENDI
  162.            CASE x=18
  163.                 IF ys1>1
  164.                      ys1 = ys1-1
  165.                      GOTO ys1*18
  166.                      SKIP -17
  167.                      pd = 1
  168.                      SET COLOR TO W/B
  169.                      @ 5, 2 CLEAR TO 22, 33
  170.                      @ 5, 36 CLEAR TO 22, 37
  171.                      @ 5, 40 CLEAR TO 22, 58
  172.                      @ 5, 62 CLEAR TO 22, 77
  173.                      DO WHILE .T.
  174.                           @ 4+pd,2 say &zc1
  175.                           @ 4+pd,36 say &h
  176.                           if &ncs<>0
  177.                                @ 4+pd,43 say &ncs pict'999,999,999.99'
  178.                           ELSE
  179.                                @ 4+pd, 43 SAY '              '
  180.                           ENDI
  181.                           if &nms<>0
  182.                                @ 4+pd,63 say &nms pict'999,999,999.99'
  183.                           ELSE
  184.                                @ 4+pd, 63 SAY '              '
  185.                           ENDI
  186.                           IF  .NOT. EOF()
  187.                                SKIP
  188.                                pd = pd+1
  189.                           ELSE
  190.                                EXIT
  191.                           ENDI
  192.                           IF pd=19
  193.                                EXIT
  194.                           ENDI
  195.                      ENDD
  196.                      SKIP -18
  197.                      SET COLOR TO G+/B
  198.                      @ 5,2 say &zc1
  199.                      @ 5,36 say &h
  200.                      if &ncs<>0
  201.                           @ 5,43 say &ncs pict'999,999,999.99'
  202.                      ELSE
  203.                           @ 5, 43 SAY '              '
  204.                      ENDI
  205.                      if &nms<>0
  206.                           @ 5,63 say &nms pict'999,999,999.99'
  207.                      ELSE
  208.                           @ 5, 63 SAY '              '
  209.                      ENDI
  210.                      pd = 1
  211.                 ELSE
  212.                      ?? CHR(7)
  213.                 ENDI
  214.            CASE x=3
  215.                 SET COLOR TO W/B
  216.                 IF ys1<ys
  217.                      ys1 = ys1+1
  218.                      GOTO (ys1-1)*18+1
  219.                      x = RECNO()
  220.                      pd = 1
  221.                      SET COLOR TO W/B
  222.                      @ 5, 2 CLEAR TO 22, 33
  223.                      @ 5, 36 CLEAR TO 22, 37
  224.                      @ 5, 40 CLEAR TO 22, 58
  225.                      @ 5, 62 CLEAR TO 22, 77
  226.                      DO WHILE .T.
  227.                           @ 4+pd,2 say &zc1
  228.                           @ 4+pd,36 say &h
  229.                           if &ncs<>0
  230.                                @ 4+pd,43 say &ncs pict'999,999,999.99'
  231.                           ENDI
  232.                           if &nms<>0
  233.                                @ 4+pd,63 say &nms pict'999,999,999.99'
  234.                           ENDI
  235.                           IF  .NOT. EOF()
  236.                                SKIP
  237.                                pd = pd+1
  238.                           ELSE
  239.                                EXIT
  240.                           ENDI
  241.                           IF pd=19
  242.                                EXIT
  243.                           ENDI
  244.                      ENDD
  245.                      GOTO x
  246.                      SET COLOR TO G+/B
  247.                      @ 5,2 say &zc1
  248.                      @ 5,36 say &h
  249.                      if &ncs<>0
  250.                           @ 5,43 say &ncs pict'999,999,999.99'
  251.                      ELSE
  252.                           @ 5, 43 SAY '              '
  253.                      ENDI
  254.                      if &nms<>0
  255.                           @ 5,63 say &nms pict'999,999,999.99'
  256.                      ELSE
  257.                           @ 5, 63 SAY '              '
  258.                      ENDI
  259.                      pd = 1
  260.                 ELSE
  261.                      ?? CHR(7)
  262.                 ENDI
  263.            CASE x=19
  264.                 IF p=2
  265.                      ncs = 'ncs'
  266.                      nms = 'bns'
  267.                      SET COLOR TO W/B
  268.                      GOTO (ys1-1)*18+1
  269.                      x = RECNO()
  270.                      pd = 1
  271.                      SET COLOR TO G/B
  272.                      @ 3, 44 SAY '年初未交数 '
  273.                      @ 3, 63 SAY ' 本年应交数'
  274.                      SET COLOR TO W/B
  275.                      @ 5, 2 CLEAR TO 22, 33
  276.                      @ 5, 36 CLEAR TO 22, 37
  277.                      @ 5, 40 CLEAR TO 22, 58
  278.                      @ 5, 62 CLEAR TO 22, 77
  279.                      DO WHILE .T.
  280.                           @ 4+pd,2 say &zc1
  281.                           @ 4+pd,36 say &h
  282.                           if &ncs<>0
  283.                                @ 4+pd,43 say &ncs pict'999,999,999.99'
  284.                           ENDI
  285.                           if &nms<>0
  286.                                @ 4+pd,63 say &nms pict'999,999,999.99'
  287.                           ENDI
  288.                           IF  .NOT. EOF()
  289.                                SKIP
  290.                                pd = pd+1
  291.                           ELSE
  292.                                EXIT
  293.                           ENDI
  294.                           IF pd=19
  295.                                EXIT
  296.                           ENDI
  297.                      ENDD
  298.                      GOTO x
  299.                      SET COLOR TO G+/B
  300.                      @ 5,2 say &zc1
  301.                      @ 5,36 say &h
  302.                      if &ncs<>0
  303.                           @ 5,43 say &ncs pict'999,999,999.99'
  304.                      ELSE
  305.                           @ 5, 43 SAY '              '
  306.                      ENDI
  307.                      if &nms<>0
  308.                           @ 5,63 say &nms pict'999,999,999.99'
  309.                      ELSE
  310.                           @ 5, 63 SAY '              '
  311.                      ENDI
  312.                      pd = 1
  313.                      p = 1
  314.                 ELSE
  315.                      ?? CHR(7)
  316.                 ENDI
  317.            CASE x=4
  318.                 IF p=1
  319.                      SET COLOR TO W/B
  320.                      GOTO (ys1-1)*18+1
  321.                      x = RECNO()
  322.                      pd = 1
  323.                      ncs = 'bnyj'
  324.                      nms = 'nms'
  325.                      SET COLOR TO G/B
  326.                      @ 3, 44 SAY '本年已交数'
  327.                      @ 3, 63 SAY ' 年末未交数 '
  328.                      SET COLOR TO W/B
  329.                      @ 5, 2 CLEAR TO 22, 33
  330.                      @ 5, 36 CLEAR TO 22, 37
  331.                      @ 5, 40 CLEAR TO 22, 58
  332.                      @ 5, 62 CLEAR TO 22, 77
  333.                      DO WHILE .T.
  334.                           @ 4+pd,2 say &zc1
  335.                           @ 4+pd,36 say &h
  336.                           if &ncs<>0
  337.                                @ 4+pd,43 say &ncs pict'999,999,999.99'
  338.                           ENDI
  339.                           if &nms<>0
  340.                                @ 4+pd,63 say &nms pict'999,999,999.99'
  341.                           ENDI
  342.                           IF  .NOT. EOF()
  343.                                SKIP
  344.                                pd = pd+1
  345.                           ELSE
  346.                                EXIT
  347.                           ENDI
  348.                           IF pd=19
  349.                                EXIT
  350.                           ENDI
  351.                      ENDD
  352.                      GOTO x
  353.                      SET COLOR TO G+/B
  354.                      @ 5,2 say &zc1
  355.                      @ 5,36 say &h
  356.                      if &ncs<>0
  357.                           @ 5,43 say &ncs pict'999,999,999.99'
  358.                      ELSE
  359.                           @ 5, 43 SAY '              '
  360.                      ENDI
  361.                      if &nms<>0
  362.                           @ 5,63 say &nms pict'999,999,999.99'
  363.                      ELSE
  364.                           @ 5, 63 SAY '              '
  365.                      ENDI
  366.                      pd = 1
  367.                      p = 2
  368.                 ELSE
  369.                      ?? CHR(7)
  370.                 ENDI
  371.            CASE x=27
  372.                 EXIT
  373.            OTHE
  374.                 ?? CHR(7)
  375.       ENDC
  376.  ENDD
  377.  CLOS DATABASES
  378.  SET COLOR TO W+/B
  379.  @ 0, 0, 23, 79 BOX '北北北北'
  380.  SET COLOR TO W+/N
  381.  @ 1, 1, 22, 78 BOX '鞍鞍鞍鞍鞍'
  382.  @ 23, 28 SAY '当前数据的月份:'+STR(ryear, 4, 0)+'年'+STR(ryf, 2, 0)+'月' COLOR B+/BG 
  383.  @ 24, 0 SAY ' JQ001财务管理系统(Ver2.5)  黄朝生研制  版权所有  南宁市建政路51号  邮编:530023 ' COLOR R/W 
  384.  SET CLOCK TO 23, 69
  385.  ON KEY LABEL Escape do Rquit
  386.  RETU
  387. *