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

企业管理

开发平台:

VFP

  1.  qq = 1
  2.  ysk = ys
  3.  jyq = RECNO()
  4.  @ 4, 11 GET zy
  5.  READ
  6.  @ 4, 11 SAY zy
  7.  @ 18+bs, 33 SAY zy
  8.  pd = kmdm
  9.  bs1 = bs
  10.  DO km.prg
  11.  ys = ysk
  12.  bs = bs1
  13.  DO kmxs
  14.  pd = slbz
  15.  pd2 = pd
  16.  IF pd='2'
  17.       IF '13k5'=SUBSTR(TRIM(kmdm), 1, 3)
  18.            hh = 0
  19.            zj = '1'
  20.            DO slsr
  21.       ELSE
  22.            ? CHR(7)
  23.            pd1 = 'F'
  24.            SET COLOR TO RB+/B
  25.            @ 0, 0 CLEAR TO 3, 28
  26.            @ 1, 5 SAY '输入数量吗?' GET pd1
  27.            READ
  28.            DO qp
  29.            IF pd1='y' .OR. pd1='Y'
  30.                 SET COLOR TO RB+/B
  31.                 @ 0, 0 CLEAR TO 3, 28
  32.                 @ 1, 3 SAY '规格:'
  33.                 @ 2, 3 SAY '数量:'
  34.                 @ 3, 3 SAY '单价:'
  35.                 SET COLOR TO
  36.                 @ 1, 9 GET gg PICTURE 'xxxxxxxxxxxx'
  37.                 @ 2, 9 GET sl PICTURE '99999999.999'
  38.                 @ 3, 9 GET dj PICTURE '999999999.99'
  39.                 READ
  40.                 pd1 = sl
  41.                 pd = dj
  42.                 pd1 = pd1*pd
  43.                 DO WHILE .T.
  44.                      SET COLOR TO RB+/B
  45.                      @ 0, 0 CLEAR TO 3, 28
  46.                      @ 1, 3 SAY '发生额是借方或贷方?'
  47.                      @ 2, 5 SAY ' (+)=借 (-)=贷'
  48.                      pd = INKEY(0)
  49.                      DO qp
  50.                      DO CASE
  51.                           CASE pd=43
  52.                                @ 18+bs, 2 SAY gg
  53.                                @ 18+bs, 10 SAY sl
  54.                                @ 18+bs, 21 SAY dj
  55.                                REPL ssl WITH sl
  56.                                REPL sdj WITH dj
  57.                                REPL fsl WITH 0
  58.                                REPL fdj WITH 0
  59.                                EXIT
  60.                           CASE pd=45
  61.                                @ 18+bs, 2 SAY gg
  62.                                @ 18+bs, 10 SAY sl
  63.                                @ 18+bs, 21 SAY dj
  64.                                REPL fsl WITH sl
  65.                                REPL fdj WITH dj
  66.                                REPL ssl WITH 0
  67.                                REPL sdj WITH 0
  68.                                EXIT
  69.                           OTHE
  70.                                ? CHR(7)
  71.                      ENDC
  72.                 ENDD
  73.                 IF '135'=SUBSTR(ALLTRIM(kmdm), 1, 3)
  74.                      REPL yysl WITH 0
  75.                      ?? CHR(7)
  76.                      SET COLOR TO GR+/G
  77.                      @ 0, 0 CLEAR TO 3, 28
  78.                      @ 1, 2 SAY '是否作购进或销售数?'
  79.                      rx = 'Y'
  80.                      @ 2, 2 SAY 'Y=是,其他=否 '
  81.                      SET COLOR TO W+/BG
  82.                      @ 2, 16 GET rx
  83.                      READ
  84.                      IF rx<>'Y' .AND. rx<>'y'
  85.                           IF pd=43
  86.                                REPL yysl WITH sl
  87.                           ELSE
  88.                           ENDI
  89.                      ENDI
  90.                 ENDI
  91.                 DO qp
  92.            ELSE
  93.                 pd2 = ' '
  94.            ENDI
  95.       ENDI
  96.  ENDI
  97.  SET COLOR TO N/W
  98.  @ 7+bs, 42 SAY jje
  99.  SET COLOR TO
  100.  k = INKEY(0)
  101.  IF k=1
  102.       DO jsq-1
  103.       IF k=-7
  104.            REPL jje WITH js
  105.       ELSE
  106.            @ 7+bs, 55 SAY ''
  107.            k = INKEY(0)
  108.            IF k=-7
  109.                 REPL jje WITH js
  110.            ELSE
  111.                 KEYB CHR(k)
  112.                 @ 7+bs, 42 GET jje PICTURE '@bz 9999999999.99'
  113.                 READ
  114.            ENDI
  115.       ENDI
  116.  ELSE
  117.       IF k=-7
  118.            REPL jje WITH js
  119.       ENDI
  120.       IF k=46 .OR. k=45 .OR. k>47 .AND. k<58
  121.            KEYB CHR(k)
  122.            @ 7+bs, 42 GET jje PICTURE '@bz 999999999.99'
  123.            READ
  124.       ENDI
  125.  ENDI
  126.  pd = jje
  127.  IF pd<>0
  128.       REPL dje WITH 0
  129.  ENDI
  130.  IF pd<0
  131.       SET COLOR TO R+/N
  132.       @ 7+bs, 42 SAY jje
  133.       SET COLOR TO W/N
  134.  ELSE
  135.       @ 7+bs, 42 SAY jje
  136.  ENDI
  137.  IF pd=0
  138.       @ 7+bs, 42 SAY '              '
  139.       SET COLOR TO N/W
  140.       @ 7+bs, 58 SAY dje
  141.       SET COLOR TO
  142.       k = INKEY(0)
  143.       IF k=1
  144.            DO jsq-1
  145.            IF k=-7
  146.                 REPL dje WITH js
  147.            ELSE
  148.                 @ 7+bs, 71 SAY ''
  149.                 k = INKEY(0)
  150.                 IF k=-7
  151.                      REPL dje WITH js
  152.                 ELSE
  153.                      KEYB CHR(k)
  154.                      @ 7+bs, 58 GET dje PICTURE '@bz 9999999999.99'
  155.                      READ
  156.                 ENDI
  157.            ENDI
  158.       ELSE
  159.            IF k=-7
  160.                 REPL dje WITH js
  161.            ENDI
  162.            IF k=46 .OR. k=45 .OR. k>47 .AND. k<58
  163.                 KEYB CHR(k)
  164.                 @ 7+bs, 58 GET dje PICTURE '@bz 9999999999.99'
  165.                 READ
  166.            ENDI
  167.       ENDI
  168.       pd = dje
  169.       IF pd<>0
  170.            REPL jje WITH 0
  171.       ENDI
  172.       IF pd<0
  173.            SET COLOR TO R+/N
  174.            @ 7+bs, 58 SAY dje
  175.            SET COLOR TO W/N
  176.       ELSE
  177.            @ 7+bs, 58 SAY dje
  178.       ENDI
  179.  ENDI
  180.  x = RECNO()
  181.  DO hjxs
  182.  RETU
  183. *