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

企业管理

开发平台:

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 syb
  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, 28 SAY '│'
  21.  @ 3, 30 SAY '行'
  22.  @ 3, 32 SAY '│'
  23.  @ 3, 34 SAY ' 本  月   数'
  24.  @ 3, 48 SAY '│'
  25.  @ 3, 52 SAY ' 累  计   数'
  26.  @ 3, 66 SAY '│'
  27.  @ 3, 68 SAY '按销量平均'
  28.  @ 3, 78 SAY '┃'
  29.  @ 4, 0 SAY '┠─────────────┼─┼───────┼────────┼─────┨'
  30.  pd = 4
  31.  DO WHILE pd<23
  32.       i = pd+1
  33.       @ i, 0 SAY '┃'
  34.       @ i, 28 SAY '│'
  35.       @ i, 32 SAY '│'
  36.       @ i, 48 SAY '│'
  37.       @ i, 66 SAY '│'
  38.       @ i, 78 SAY '┃'
  39.       pd = pd+1
  40.  ENDD
  41.  @ 23, 0 SAY '┗━━━━━━━━━━━━━┷━┷━━━━━━━┷━━━━━━━━┷━━━━━┛'
  42.  SET COLOR TO B/GR
  43.  @ 24, 0 SAY '       ↑ 上一笔 : ↓ 下一笔 : PgUp 上一页 : PgDn 下一页 : Esc 退出            '
  44.  SET COLOR TO W/B
  45.  GOTO BOTTOM
  46.  pd = RECNO()
  47.  pd = pd/16
  48.  pd1 = INT(pd)
  49.  ys = pd-pd1
  50.  IF ys=0
  51.       ys = pd1
  52.  ELSE
  53.       ys = pd1+1
  54.  ENDI
  55.  GOTO TOP
  56.  pd = 1
  57.  ys1 = 1
  58.  DO WHILE .T.
  59.       @ 4+pd, 2 SAY sm
  60.       @ 4+pd, 30 SAY h
  61.       IF bys<>0
  62.            @ 4+pd, 34 SAY bys PICTURE '999,999,999.99'
  63.       ENDI
  64.       IF ljs<>0
  65.            @ 4+pd, 52 SAY ljs PICTURE '999,999,999.99'
  66.       ENDI
  67.       IF pjs<>0
  68.            @ 4+pd, 69 SAY pjs PICTURE '9999.99'
  69.       ENDI
  70.       IF  .NOT. EOF()
  71.            SKIP
  72.            pd = pd+1
  73.       ELSE
  74.            EXIT
  75.       ENDI
  76.       IF pd=19
  77.            EXIT
  78.       ENDI
  79.  ENDD
  80.  GOTO 1
  81.  SET COLOR TO G+/B
  82.  @ 5, 2 SAY sm
  83.  @ 5, 30 SAY h
  84.  IF bys<>0
  85.       @ 5, 34 SAY bys PICTURE '999,999,999.99'
  86.  ELSE
  87.       @ 5, 34 SAY '              '
  88.  ENDI
  89.  IF ljs<>0
  90.       @ 5, 52 SAY ljs PICTURE '999,999,999.99'
  91.  ELSE
  92.       @ 5, 52 SAY '              '
  93.  ENDI
  94.  IF pjs<>0
  95.       @ 5, 69 SAY pjs PICTURE '9999.99'
  96.  ELSE
  97.       @ 5, 70 SAY '       '
  98.  ENDI
  99.  pd = 1
  100.  DO WHILE .T.
  101.       x = INKEY(0)
  102.       DO CASE
  103.            CASE x=5
  104.                 IF pd=1 .OR. RECNO()=1
  105.                      ?? CHR(7)
  106.                 ELSE
  107.                      SET COLOR TO W/B
  108.                      @ 4+pd, 2 SAY sm
  109.                      @ 4+pd, 30 SAY h
  110.                      IF bys<>0
  111.                           @ 4+pd, 34 SAY bys PICTURE '999,999,999.99'
  112.                      ELSE
  113.                           @ 4+pd, 34 SAY '              '
  114.                      ENDI
  115.                      IF ljs<>0
  116.                           @ 4+pd, 52 SAY ljs PICTURE '999,999,999.99'
  117.                      ELSE
  118.                           @ 4+pd, 52 SAY '              '
  119.                      ENDI
  120.                      IF pjs<>0
  121.                           @ 4+pd, 69 SAY pjs PICTURE '9999.99'
  122.                      ELSE
  123.                           @ 4+pd, 70 SAY '        '
  124.                      ENDI
  125.                      SET COLOR TO G+/B
  126.                      SKIP -1
  127.                      pd = pd-1
  128.                      @ 4+pd, 2 SAY sm
  129.                      @ 4+pd, 30 SAY h
  130.                      IF bys<>0
  131.                           @ 4+pd, 34 SAY bys PICTURE '999,999,999.99'
  132.                      ELSE
  133.                           @ 4+pd, 34 SAY '              '
  134.                      ENDI
  135.                      IF ljs<>0
  136.                           @ 4+pd, 52 SAY ljs PICTURE '999,999,999.99'
  137.                      ELSE
  138.                           @ 4+pd, 52 SAY '              '
  139.                      ENDI
  140.                      IF pjs<>0
  141.                           @ 4+pd, 69 SAY pjs PICTURE '9999.99'
  142.                      ELSE
  143.                           @ 4+pd, 70 SAY '        '
  144.                      ENDI
  145.                 ENDI
  146.            CASE x=24
  147.                 IF pd=18 .OR. EOF()
  148.                      ?? CHR(7)
  149.                 ELSE
  150.                      SET COLOR TO W/B
  151.                      @ 4+pd, 2 SAY sm
  152.                      @ 4+pd, 30 SAY h
  153.                      IF bys<>0
  154.                           @ 4+pd, 34 SAY bys PICTURE '999,999,999.99'
  155.                      ELSE
  156.                           @ 4+pd, 34 SAY '              '
  157.                      ENDI
  158.                      IF ljs<>0
  159.                           @ 4+pd, 52 SAY ljs PICTURE '999,999,999.99'
  160.                      ELSE
  161.                           @ 4+pd, 52 SAY '              '
  162.                      ENDI
  163.                      IF pjs<>0
  164.                           @ 4+pd, 69 SAY pjs PICTURE '9999.99'
  165.                      ELSE
  166.                           @ 4+pd, 70 SAY '        '
  167.                      ENDI
  168.                      SET COLOR TO G+/B
  169.                      SKIP
  170.                      pd = pd+1
  171.                      @ 4+pd, 2 SAY sm
  172.                      @ 4+pd, 30 SAY h
  173.                      IF bys<>0
  174.                           @ 4+pd, 34 SAY bys PICTURE '999,999,999.99'
  175.                      ELSE
  176.                           @ 4+pd, 34 SAY '              '
  177.                      ENDI
  178.                      IF ljs<>0
  179.                           @ 4+pd, 52 SAY ljs PICTURE '999,999,999.99'
  180.                      ELSE
  181.                           @ 4+pd, 52 SAY '              '
  182.                      ENDI
  183.                      IF pjs<>0
  184.                           @ 4+pd, 69 SAY pjs PICTURE '9999.99'
  185.                      ELSE
  186.                           @ 4+pd, 70 SAY '        '
  187.                      ENDI
  188.                 ENDI
  189.            CASE x=18
  190.                 IF ys1>1
  191.                      ys1 = ys1-1
  192.                      GOTO ys1*18
  193.                      SKIP -17
  194.                      pd = 1
  195.                      SET COLOR TO W/B
  196.                      @ 5, 2 CLEAR TO 22, 27
  197.                      @ 5, 30 CLEAR TO 22, 31
  198.                      @ 5, 34 CLEAR TO 22, 47
  199.                      @ 5, 52 CLEAR TO 22, 65
  200.                      @ 5, 69 CLEAR TO 22, 76
  201.                      DO WHILE .T.
  202.                           @ 4+pd, 2 SAY sm
  203.                           @ 4+pd, 30 SAY h
  204.                           IF bys<>0
  205.                                @ 4+pd, 34 SAY bys PICTURE '999,999,999.99'
  206.                           ELSE
  207.                                @ 4+pd, 34 SAY '              '
  208.                           ENDI
  209.                           IF ljs<>0
  210.                                @ 4+pd, 52 SAY ljs PICTURE '999,999,999.99'
  211.                           ELSE
  212.                                @ 4+pd, 52 SAY '              '
  213.                           ENDI
  214.                           IF pjs<>0
  215.                                @ 4+pd, 69 SAY pjs PICTURE '9999.99'
  216.                           ELSE
  217.                                @ 4+pd, 70 SAY '        '
  218.                           ENDI
  219.                           IF  .NOT. EOF()
  220.                                SKIP
  221.                                pd = pd+1
  222.                           ELSE
  223.                                EXIT
  224.                           ENDI
  225.                           IF pd=19
  226.                                EXIT
  227.                           ENDI
  228.                      ENDD
  229.                      SKIP -18
  230.                      SET COLOR TO G+/B
  231.                      @ 5, 2 SAY sm
  232.                      @ 5, 30 SAY h
  233.                      IF bys<>0
  234.                           @ 5, 34 SAY bys PICTURE '999,999,999.99'
  235.                      ELSE
  236.                           @ 5, 34 SAY '              '
  237.                      ENDI
  238.                      IF ljs<>0
  239.                           @ 5, 52 SAY ljs PICTURE '999,999,999.99'
  240.                      ELSE
  241.                           @ 5, 52 SAY '              '
  242.                      ENDI
  243.                      IF pjs<>0
  244.                           @ 5, 69 SAY pjs PICTURE '9999.99'
  245.                      ELSE
  246.                           @ 5, 70 SAY '        '
  247.                      ENDI
  248.                      pd = 1
  249.                 ELSE
  250.                      ?? CHR(7)
  251.                 ENDI
  252.            CASE x=3
  253.                 IF ys1<ys
  254.                      ys1 = ys1+1
  255.                      GOTO (ys1-1)*18+1
  256.                      x = RECNO()
  257.                      pd = 1
  258.                      SET COLOR TO W/B
  259.                      @ 5, 2 CLEAR TO 22, 27
  260.                      @ 5, 30 CLEAR TO 22, 31
  261.                      @ 5, 34 CLEAR TO 22, 47
  262.                      @ 5, 52 CLEAR TO 22, 65
  263.                      @ 5, 69 CLEAR TO 22, 77
  264.                      DO WHILE .T.
  265.                           @ 4+pd, 2 SAY sm
  266.                           @ 4+pd, 30 SAY h
  267.                           IF bys<>0
  268.                                @ 4+pd, 34 SAY bys PICTURE '999,999,999.99'
  269.                           ENDI
  270.                           IF ljs<>0
  271.                                @ 4+pd, 52 SAY ljs PICTURE '999,999,999.99'
  272.                           ENDI
  273.                           IF pjs<>0
  274.                                @ 4+pd, 69 SAY pjs PICTURE '9999.99'
  275.                           ENDI
  276.                           IF  .NOT. EOF()
  277.                                SKIP
  278.                                pd = pd+1
  279.                           ELSE
  280.                                EXIT
  281.                           ENDI
  282.                           IF pd=19
  283.                                EXIT
  284.                           ENDI
  285.                      ENDD
  286.                      GOTO x
  287.                      SET COLOR TO G+/B
  288.                      @ 5, 2 SAY sm
  289.                      @ 5, 30 SAY h
  290.                      IF bys<>0
  291.                           @ 5, 34 SAY bys PICTURE '999,999,999.99'
  292.                      ELSE
  293.                           @ 5, 34 SAY '              '
  294.                      ENDI
  295.                      IF ljs<>0
  296.                           @ 5, 52 SAY ljs PICTURE '999,999,999.99'
  297.                      ELSE
  298.                           @ 5, 52 SAY '              '
  299.                      ENDI
  300.                      IF pjs<>0
  301.                           @ 5, 69 SAY pjs PICTURE '9999.99'
  302.                      ELSE
  303.                           @ 5, 70 SAY '        '
  304.                      ENDI
  305.                      pd = 1
  306.                 ELSE
  307.                      ?? CHR(7)
  308.                 ENDI
  309.            CASE x=27
  310.                 EXIT
  311.            OTHE
  312.                 ?? CHR(7)
  313.       ENDC
  314.  ENDD
  315.  CLOS DATABASES
  316.  SET COLOR TO W+/B
  317.  @ 0, 0, 23, 79 BOX '北北北北'
  318.  SET COLOR TO W+/N
  319.  @ 1, 1, 22, 78 BOX '鞍鞍鞍鞍鞍'
  320.  @ 23, 28 SAY '当前数据的月份:'+STR(ryear, 4, 0)+'年'+STR(ryf, 2, 0)+'月' COLOR B+/BG 
  321.  @ 24, 0 SAY ' JQ001财务管理系统(Ver2.5)  黄朝生研制  版权所有  南宁市建政路51号  邮编:530023 ' COLOR R/W 
  322.  SET CLOCK TO 23, 69
  323.  ON KEY LABEL Escape do Rquit
  324.  RETU
  325. *