FZBCX.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/N
  9.  CLEA
  10.  p = 1
  11.  USE fzb
  12.  SET COLOR TO GR/N
  13.  @ 1, 0 SAY 'JQ软件工作室'
  14.  @ 1, 67 SAY 'JQ财务系统'
  15.  SET COLOR TO G/N
  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/N
  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 zc
  57.       @ 4+pd, 36 SAY h1
  58.       IF ncs1<>0
  59.            @ 4+pd, 43 SAY ncs1 PICTURE '999,999,999.99'
  60.       ENDI
  61.       IF nms1<>0
  62.            @ 4+pd, 63 SAY nms1 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 zc
  77.  @ 5, 36 SAY h1
  78.  IF ncs1<>0
  79.       @ 5, 43 SAY ncs1 PICTURE '999,999,999.99'
  80.  ELSE
  81.       @ 5, 43 SAY '              '
  82.  ENDI
  83.  IF nms1<>0
  84.       @ 5, 63 SAY nms1 PICTURE '999,999,999.99'
  85.  ELSE
  86.       @ 5, 63 SAY '              '
  87.  ENDI
  88.  pd = 1
  89.  zc1 = 'zc'
  90.  h = 'h1'
  91.  ncs = 'ncs1'
  92.  nms = 'nms1'
  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/N
  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/N
  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 G/N
  169.                      @ 3, 44 SAY ' 上  年  数 '
  170.                      @ 3, 63 SAY ' 本  年  数 '
  171.                      SET COLOR TO W/N
  172.                      @ 5, 2 CLEAR TO 22, 33
  173.                      @ 5, 36 CLEAR TO 22, 37
  174.                      @ 5, 40 CLEAR TO 22, 58
  175.                      @ 5, 62 CLEAR TO 22, 77
  176.                      DO WHILE .T.
  177.                           @ 4+pd,2 say &zc1
  178.                           @ 4+pd,36 say &h
  179.                           if &ncs<>0
  180.                                @ 4+pd,43 say &ncs pict'999,999,999.99'
  181.                           ELSE
  182.                                @ 4+pd, 43 SAY '              '
  183.                           ENDI
  184.                           if &nms<>0
  185.                                @ 4+pd,63 say &nms pict'999,999,999.99'
  186.                           ELSE
  187.                                @ 4+pd, 63 SAY '              '
  188.                           ENDI
  189.                           IF  .NOT. EOF()
  190.                                SKIP
  191.                                pd = pd+1
  192.                           ELSE
  193.                                EXIT
  194.                           ENDI
  195.                           IF pd=19
  196.                                EXIT
  197.                           ENDI
  198.                      ENDD
  199.                      SKIP -18
  200.                      SET COLOR TO G+/B
  201.                      @ 5,2 say &zc1
  202.                      @ 5,36 say &h
  203.                      if &ncs<>0
  204.                           @ 5,43 say &ncs pict'999,999,999.99'
  205.                      ELSE
  206.                           @ 5, 43 SAY '              '
  207.                      ENDI
  208.                      if &nms<>0
  209.                           @ 5,63 say &nms pict'999,999,999.99'
  210.                      ELSE
  211.                           @ 5, 63 SAY '              '
  212.                      ENDI
  213.                      pd = 1
  214.                 ELSE
  215.                      ?? CHR(7)
  216.                 ENDI
  217.            CASE x=3
  218.                 IF ys1=ys-1
  219.                      SET COLOR TO G/N
  220.                      @ 3, 44 SAY '   数    量  '
  221.                      @ 3, 63 SAY '   金    额  '
  222.                 ENDI
  223.                 SET COLOR TO W/N
  224.                 IF ys1<ys
  225.                      ys1 = ys1+1
  226.                      GOTO (ys1-1)*18+1
  227.                      x = RECNO()
  228.                      pd = 1
  229.                      SET COLOR TO W/N
  230.                      @ 5, 2 CLEAR TO 22, 33
  231.                      @ 5, 36 CLEAR TO 22, 37
  232.                      @ 5, 40 CLEAR TO 22, 58
  233.                      @ 5, 62 CLEAR TO 22, 77
  234.                      DO WHILE .T.
  235.                           @ 4+pd,2 say &zc1
  236.                           @ 4+pd,36 say &h
  237.                           if &ncs<>0
  238.                                @ 4+pd,43 say &ncs pict'999,999,999.99'
  239.                           ENDI
  240.                           if &nms<>0
  241.                                @ 4+pd,63 say &nms pict'999,999,999.99'
  242.                           ENDI
  243.                           IF  .NOT. EOF()
  244.                                SKIP
  245.                                pd = pd+1
  246.                           ELSE
  247.                                EXIT
  248.                           ENDI
  249.                           IF pd=19
  250.                                EXIT
  251.                           ENDI
  252.                      ENDD
  253.                      GOTO x
  254.                      SET COLOR TO G+/B
  255.                      @ 5,2 say &zc1
  256.                      @ 5,36 say &h
  257.                      if &ncs<>0
  258.                           @ 5,43 say &ncs pict'999,999,999.99'
  259.                      ELSE
  260.                           @ 5, 43 SAY '              '
  261.                      ENDI
  262.                      if &nms<>0
  263.                           @ 5,63 say &nms pict'999,999,999.99'
  264.                      ELSE
  265.                           @ 5, 63 SAY '              '
  266.                      ENDI
  267.                      pd = 1
  268.                 ELSE
  269.                      ?? CHR(7)
  270.                 ENDI
  271.            CASE x=19
  272.                 IF p=2
  273.                      zc1 = 'zc'
  274.                      h = 'h1'
  275.                      ncs = 'ncs1'
  276.                      nms = 'nms1'
  277.                      SET COLOR TO W/N
  278.                      GOTO (ys1-1)*18+1
  279.                      x = RECNO()
  280.                      pd = 1
  281.                      SET COLOR TO G/N
  282.                      @ 3, 5 SAY '       资       产        '
  283.                      SET COLOR TO W/N
  284.                      @ 5, 2 CLEAR TO 22, 33
  285.                      @ 5, 36 CLEAR TO 22, 37
  286.                      @ 5, 40 CLEAR TO 22, 58
  287.                      @ 5, 62 CLEAR TO 22, 77
  288.                      DO WHILE .T.
  289.                           @ 4+pd,2 say &zc1
  290.                           @ 4+pd,36 say &h
  291.                           if &ncs<>0
  292.                                @ 4+pd,43 say &ncs pict'999,999,999.99'
  293.                           ENDI
  294.                           if &nms<>0
  295.                                @ 4+pd,63 say &nms pict'999,999,999.99'
  296.                           ENDI
  297.                           IF  .NOT. EOF()
  298.                                SKIP
  299.                                pd = pd+1
  300.                           ELSE
  301.                                EXIT
  302.                           ENDI
  303.                           IF pd=19
  304.                                EXIT
  305.                           ENDI
  306.                      ENDD
  307.                      GOTO x
  308.                      SET COLOR TO G+/B
  309.                      @ 5,2 say &zc1
  310.                      @ 5,36 say &h
  311.                      if &ncs<>0
  312.                           @ 5,43 say &ncs pict'999,999,999.99'
  313.                      ELSE
  314.                           @ 5, 43 SAY '              '
  315.                      ENDI
  316.                      if &nms<>0
  317.                           @ 5,63 say &nms pict'999,999,999.99'
  318.                      ELSE
  319.                           @ 5, 63 SAY '              '
  320.                      ENDI
  321.                      pd = 1
  322.                      p = 1
  323.                 ELSE
  324.                      ?? CHR(7)
  325.                 ENDI
  326.            CASE x=4
  327.                 IF p=1
  328.                      SET COLOR TO W/N
  329.                      GOTO (ys1-1)*18+1
  330.                      x = RECNO()
  331.                      pd = 1
  332.                      zc1 = 'fz'
  333.                      h = 'h2'
  334.                      ncs = 'ncs2'
  335.                      nms = 'nms2'
  336.                      SET COLOR TO G/N
  337.                      @ 3, 5 SAY '  负债及所有者权益   '
  338.                      SET COLOR TO W/N
  339.                      @ 5, 2 CLEAR TO 22, 33
  340.                      @ 5, 36 CLEAR TO 22, 37
  341.                      @ 5, 40 CLEAR TO 22, 58
  342.                      @ 5, 62 CLEAR TO 22, 77
  343.                      DO WHILE .T.
  344.                           @ 4+pd,2 say &zc1
  345.                           @ 4+pd,36 say &h
  346.                           if &ncs<>0
  347.                                @ 4+pd,43 say &ncs pict'999,999,999.99'
  348.                           ENDI
  349.                           if &nms<>0
  350.                                @ 4+pd,63 say &nms pict'999,999,999.99'
  351.                           ENDI
  352.                           IF  .NOT. EOF()
  353.                                SKIP
  354.                                pd = pd+1
  355.                           ELSE
  356.                                EXIT
  357.                           ENDI
  358.                           IF pd=19
  359.                                EXIT
  360.                           ENDI
  361.                      ENDD
  362.                      GOTO x
  363.                      SET COLOR TO G+/B
  364.                      @ 5,2 say &zc1
  365.                      @ 5,36 say &h
  366.                      if &ncs<>0
  367.                           @ 5,43 say &ncs pict'999,999,999.99'
  368.                      ELSE
  369.                           @ 5, 43 SAY '              '
  370.                      ENDI
  371.                      if &nms<>0
  372.                           @ 5,63 say &nms pict'999,999,999.99'
  373.                      ELSE
  374.                           @ 5, 63 SAY '              '
  375.                      ENDI
  376.                      pd = 1
  377.                      p = 2
  378.                 ELSE
  379.                      ?? CHR(7)
  380.                 ENDI
  381.            CASE x=27
  382.                 EXIT
  383.            OTHE
  384.                 ?? CHR(7)
  385.       ENDC
  386.  ENDD
  387.  CLOS DATABASES
  388.  SET COLOR TO W+/B
  389.  @ 0, 0, 23, 79 BOX '北北北北'
  390.  SET COLOR TO W+/N
  391.  @ 1, 1, 22, 78 BOX '鞍鞍鞍鞍鞍'
  392.  @ 23, 28 SAY '当前数据的月份:'+STR(ryear, 4, 0)+'年'+STR(ryf, 2, 0)+'月' COLOR B+/BG 
  393.  @ 24, 0 SAY ' JQ001财务管理系统(Ver2.5)  黄朝生研制  版权所有  南宁市建政路51号  邮编:530023 ' COLOR R/W 
  394.  SET CLOCK TO 23, 69
  395.  ON KEY LABEL Escape do Rquit
  396.  RETU
  397. *