BCMXBCX.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 bcmxb
  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 xm1
  57.       @ 4+pd, 36 SAY h1
  58.       IF bys1<>0
  59.            @ 4+pd, 43 SAY bys1 PICTURE '999,999,999.99'
  60.       ENDI
  61.       IF ljs1<>0
  62.            @ 4+pd, 63 SAY ljs1 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 xm1
  77.  @ 5, 36 SAY h1
  78.  IF bys1<>0
  79.       @ 5, 43 SAY bys1 PICTURE '999,999,999.99'
  80.  ELSE
  81.       @ 5, 43 SAY '              '
  82.  ENDI
  83.  IF ljs1<>0
  84.       @ 5, 63 SAY ljs1 PICTURE '999,999,999.99'
  85.  ELSE
  86.       @ 5, 63 SAY '              '
  87.  ENDI
  88.  pd = 1
  89.  xm = 'xm1'
  90.  h = 'h1'
  91.  bys = 'bys1'
  92.  ljs = 'ljs1'
  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 &xm
  102.                      @ 4+pd,36 say &h
  103.                      if &bys<>0
  104.                           @ 4+pd,43 say &bys pict'999,999,999.99'
  105.                      ELSE
  106.                           @ 4+pd, 43 SAY '              '
  107.                      ENDI
  108.                      if &ljs<>0
  109.                           @ 4+pd,63 say &ljs 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 &xm
  117.                      @ 4+pd,36 say &h
  118.                      if &bys<>0
  119.                           @ 4+pd,43 say &bys pict'999,999,999.99'
  120.                      ELSE
  121.                           @ 4+pd, 43 SAY '              '
  122.                      ENDI
  123.                      if &ljs<>0
  124.                           @ 4+pd,63 say &ljs 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 &xm
  135.                      @ 4+pd,36 say &h
  136.                      if &bys<>0
  137.                           @ 4+pd,43 say &bys pict'999,999,999.99'
  138.                      ELSE
  139.                           @ 4+pd, 43 SAY '              '
  140.                      ENDI
  141.                      if &ljs<>0
  142.                           @ 4+pd,63 say &ljs 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 &xm
  150.                      @ 4+pd,36 say &h
  151.                      if &bys<>0
  152.                           @ 4+pd,43 say &bys pict'999,999,999.99'
  153.                      ELSE
  154.                           @ 4+pd, 43 SAY '              '
  155.                      ENDI
  156.                      if &ljs<>0
  157.                           @ 4+pd,63 say &ljs 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 &xm
  175.                           @ 4+pd,36 say &h
  176.                           if &bys<>0
  177.                                @ 4+pd,43 say &bys pict'999,999,999.99'
  178.                           ELSE
  179.                                @ 4+pd, 43 SAY '              '
  180.                           ENDI
  181.                           if &ljs<>0
  182.                                @ 4+pd,63 say &ljs 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 &xm
  199.                      @ 5,36 say &h
  200.                      if &bys<>0
  201.                           @ 5,43 say &bys pict'999,999,999.99'
  202.                      ELSE
  203.                           @ 5, 43 SAY '              '
  204.                      ENDI
  205.                      if &ljs<>0
  206.                           @ 5,63 say &ljs 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.                 IF ys1<ys
  216.                      ys1 = ys1+1
  217.                      GOTO (ys1-1)*18+1
  218.                      x = RECNO()
  219.                      pd = 1
  220.                      SET COLOR TO W/B
  221.                      @ 5, 2 CLEAR TO 22, 33
  222.                      @ 5, 36 CLEAR TO 22, 37
  223.                      @ 5, 40 CLEAR TO 22, 58
  224.                      @ 5, 62 CLEAR TO 22, 77
  225.                      DO WHILE .T.
  226.                           @ 4+pd,2 say &xm
  227.                           @ 4+pd,36 say &h
  228.                           if &bys<>0
  229.                                @ 4+pd,43 say &bys pict'999,999,999.99'
  230.                           ENDI
  231.                           if &ljs<>0
  232.                                @ 4+pd,63 say &ljs pict'999,999,999.99'
  233.                           ENDI
  234.                           IF  .NOT. EOF()
  235.                                SKIP
  236.                                pd = pd+1
  237.                           ELSE
  238.                                EXIT
  239.                           ENDI
  240.                           IF pd=19
  241.                                EXIT
  242.                           ENDI
  243.                      ENDD
  244.                      GOTO x
  245.                      SET COLOR TO G+/B
  246.                      @ 5,2 say &xm
  247.                      @ 5,36 say &h
  248.                      if &bys<>0
  249.                           @ 5,43 say &bys pict'999,999,999.99'
  250.                      ELSE
  251.                           @ 5, 43 SAY '              '
  252.                      ENDI
  253.                      if &ljs<>0
  254.                           @ 5,63 say &ljs pict'999,999,999.99'
  255.                      ELSE
  256.                           @ 5, 63 SAY '              '
  257.                      ENDI
  258.                      pd = 1
  259.                 ELSE
  260.                      ?? CHR(7)
  261.                 ENDI
  262.            CASE x=19
  263.                 IF p=2
  264.                      xm = 'xm1'
  265.                      h = 'h1'
  266.                      bys = 'bys1'
  267.                      ljs = 'ljs1'
  268.                      SET COLOR TO W/B
  269.                      GOTO (ys1-1)*18+1
  270.                      x = RECNO()
  271.                      pd = 1
  272.                      SET COLOR TO G/B
  273.                      SET COLOR TO W/B
  274.                      @ 5, 2 CLEAR TO 22, 33
  275.                      @ 5, 36 CLEAR TO 22, 37
  276.                      @ 5, 40 CLEAR TO 22, 58
  277.                      @ 5, 62 CLEAR TO 22, 77
  278.                      DO WHILE .T.
  279.                           @ 4+pd,2 say &xm
  280.                           @ 4+pd,36 say &h
  281.                           if &bys<>0
  282.                                @ 4+pd,43 say &bys pict'999,999,999.99'
  283.                           ENDI
  284.                           if &ljs<>0
  285.                                @ 4+pd,63 say &ljs pict'999,999,999.99'
  286.                           ENDI
  287.                           IF  .NOT. EOF()
  288.                                SKIP
  289.                                pd = pd+1
  290.                           ELSE
  291.                                EXIT
  292.                           ENDI
  293.                           IF pd=19
  294.                                EXIT
  295.                           ENDI
  296.                      ENDD
  297.                      GOTO x
  298.                      SET COLOR TO G+/B
  299.                      @ 5,2 say &xm
  300.                      @ 5,36 say &h
  301.                      if &bys<>0
  302.                           @ 5,43 say &bys pict'999,999,999.99'
  303.                      ELSE
  304.                           @ 5, 43 SAY '              '
  305.                      ENDI
  306.                      if &ljs<>0
  307.                           @ 5,63 say &ljs pict'999,999,999.99'
  308.                      ELSE
  309.                           @ 5, 63 SAY '              '
  310.                      ENDI
  311.                      pd = 1
  312.                      p = 1
  313.                 ELSE
  314.                      ?? CHR(7)
  315.                 ENDI
  316.            CASE x=4
  317.                 IF p=1
  318.                      SET COLOR TO W/B
  319.                      GOTO (ys1-1)*18+1
  320.                      x = RECNO()
  321.                      pd = 1
  322.                      xm = 'xm2'
  323.                      h = 'h2'
  324.                      bys = 'bys2'
  325.                      ljs = 'ljs2'
  326.                      SET COLOR TO W/B
  327.                      @ 5, 2 CLEAR TO 22, 33
  328.                      @ 5, 36 CLEAR TO 22, 37
  329.                      @ 5, 40 CLEAR TO 22, 58
  330.                      @ 5, 62 CLEAR TO 22, 77
  331.                      DO WHILE .T.
  332.                           @ 4+pd,2 say &xm
  333.                           @ 4+pd,36 say &h
  334.                           if &bys<>0
  335.                                @ 4+pd,43 say &bys pict'999,999,999.99'
  336.                           ENDI
  337.                           if &ljs<>0
  338.                                @ 4+pd,63 say &ljs pict'999,999,999.99'
  339.                           ENDI
  340.                           IF  .NOT. EOF()
  341.                                SKIP
  342.                                pd = pd+1
  343.                           ELSE
  344.                                EXIT
  345.                           ENDI
  346.                           IF pd=19
  347.                                EXIT
  348.                           ENDI
  349.                      ENDD
  350.                      GOTO x
  351.                      SET COLOR TO G+/B
  352.                      @ 5,2 say &xm 
  353.                      @ 5,36 say &h
  354.                      if &bys<>0
  355.                           @ 5,43 say &bys pict'999,999,999.99'
  356.                      ELSE
  357.                           @ 5, 43 SAY '              '
  358.                      ENDI
  359.                      if &ljs<>0
  360.                           @ 5,63 say &ljs pict'999,999,999.99'
  361.                      ELSE
  362.                           @ 5, 63 SAY '              '
  363.                      ENDI
  364.                      pd = 1
  365.                      p = 2
  366.                 ELSE
  367.                      ?? CHR(7)
  368.                 ENDI
  369.            CASE x=27
  370.                 EXIT
  371.            OTHE
  372.                 ?? CHR(7)
  373.       ENDC
  374.  ENDD
  375.  CLOS DATABASES
  376.  SET COLOR TO W+/B
  377.  @ 0, 0, 23, 79 BOX '北北北北'
  378.  SET COLOR TO W+/N
  379.  @ 1, 1, 22, 78 BOX '鞍鞍鞍鞍鞍'
  380.  @ 23, 28 SAY '当前数据的月份:'+STR(ryear, 4, 0)+'年'+STR(ryf, 2, 0)+'月' COLOR B+/BG 
  381.  @ 24, 0 SAY ' JQ001财务管理系统(Ver2.5)  黄朝生研制  版权所有  南宁市建政路51号  邮编:530023 ' COLOR R/W 
  382.  SET CLOCK TO 23, 69
  383.  ON KEY LABEL Escape do Rquit
  384.  RETU
  385. *