SYBDY.PRG
资源名称:jq_caiwu.ARJ [点击查看]
上传用户:hbmaozhan
上传日期:2013-01-31
资源大小:1007k
文件大小:4k
源码类别:
企业管理
开发平台:
VFP
- SET COLOR TO GR+/N
- h = '19 年 月 日 ( ) '
- @ 3, 9 SAY '请输入报表日期'
- SET COLOR TO W/N
- DO WHILE .T.
- @ 6, 1 CLEAR TO 9, 35
- @ 7, 3 GET h PICTURE 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
- READ
- pd = 'N'
- SET COLOR TO RB+/N
- @ 8, 4 SAY '确认了吗? Y=是,其他=否' GET pd
- READ
- IF pd='Y' .OR. pd='y'
- EXIT
- ENDI
- ?? CHR(7)
- @ 8, 4 SAY ' '
- ENDD
- SET COLOR TO N/W
- @ 3, 0 CLEAR TO 9, 35
- SET COLOR TO W/N
- @ 5, 8 CLEAR TO 10, 35
- SET COLOR TO W+/B
- @ 4, 5 CLEAR TO 9, 33
- x1 = 4
- x2 = 9
- y1 = 5
- y2 = 31
- DO box-1
- @ 6, 9 SAY '正在打印损 益 表!'
- @ 7, 13 SAY '请稍候......'
- DO WHILE .T.
- IF SYS(13)<>'READY'
- ?? CHR(7)
- SET COLOR TO W/N
- @ 5, 8 CLEAR TO 10, 35
- SET COLOR TO W+/B
- @ 4, 5 CLEAR TO 9, 33
- x1 = 4
- x2 = 9
- y1 = 5
- y2 = 31
- DO box-1
- @ 6, 9 SAY '打印机尚未准备好!'
- @ 7, 9 SAY '准备好后按任意键......'
- i = INKEY(0)
- IF i=27
- SET COLOR TO W+/N
- @ 1, 1, 22, 78 BOX '鞍鞍鞍鞍鞍'
- RETU
- ENDI
- ELSE
- SET COLOR TO W+/B
- @ 6, 8 CLEAR TO 8, 30
- @ 6, 9 SAY '正在打印损 益 表!'
- @ 7, 13 SAY '请稍候......'
- EXIT
- ENDI
- ENDD
- SET PRINTER ON
- SET CONSOLE OFF
- SET DEVICE TO PRINTER
- rsele = SELECT()
- SELE 0
- USE set
- kh = printer
- USE
- SELE (rsele)
- jsq = 1
- DO WHILE jsq<=kh
- ? ' '
- jsq = jsq+1
- ENDD
- ?? '`@D`'
- ? ' 损 益 表 '
- ? ' '
- ?? '`@A`'
- ? ' '
- ? ' '
- @ PROW()+1, 1 SAY '编制单位:'+rdwmc
- @ PROW(), 50 SAY h
- @ PROW(), 100 SAY '会商02表 单位:元'
- ?? '`&0`'
- ? '┏━━━━━━━━━━━━━━━━━┯━┯━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━┓'
- ? '┃ 项 目 │行│ 本年计划数 │ 上年实际数 │ 本 月 数 │ 累 计 数 │按销量平均┃'
- ? '┠─────────────────┼─┼─────────┼──────────┼─────────┼─────────┼─────┨'
- USE syb
- GOTO 1
- DO WHILE .T.
- @ PROW()+1, 0 SAY '┃'
- @ PROW(), 2 SAY sm
- @ PROW(), 36 SAY '│'
- @ PROW(), 38 SAY h
- @ PROW(), 40 SAY '│'
- IF jhs<>0
- @ PROW(), 42 SAY jhs PICTURE '9,999,999,999.99'
- ENDI
- @ PROW(), 60 SAY '│'
- IF sns<>0
- @ PROW(), 62 SAY sns PICTURE '9,999,999,999.99'
- ENDI
- @ PROW(), 82 SAY '│'
- IF bys<>0
- @ PROW(), 84 SAY bys PICTURE '9,999,999,999.99'
- ENDI
- @ PROW(), 102 SAY '│'
- IF ljs<>0
- @ PROW(), 104 SAY ljs PICTURE '9,999,999,999.99'
- ENDI
- @ PROW(), 122 SAY '│'
- IF pjs<>0
- @ PROW(), 124 SAY pjs PICTURE '999999.99'
- ENDI
- @ PROW(), 134 SAY '┃'
- pd1 = RECNO()
- IF pd1<=42
- ? '┠─────────────────┼─┼─────────┼──────────┼─────────┼─────────┼─────┨'
- ENDI
- SKIP
- IF EOF()
- EXIT
- ENDI
- ENDD
- ? '┗━━━━━━━━━━━━━━━━━┷━┷━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━┷━━━━━┛'
- ? ' 企业主管 财务主管 复 核 制 表: '+czy
- ? ''
- CLOS DATABASES
- SET CONSOLE OFF
- SET DEVICE TO SCREEN
- SET PRINTER OFF
- SET COLOR TO W+/N
- @ 1, 1, 22, 78 BOX '鞍鞍鞍鞍鞍'
- RETU
- *