再放高分请大家参与,关于数据窗口界面设计
http://www.pdriver.com/bbs3/cgi-bin/topic.cgi?forum=6&topic=15281
此图是要用grid风格的窗口做成,各列的宽度可以自行拉动。
请大家收表高见,怎么样实现?
问题点数:200、回复次数:19Top
1 楼xiaozg118(肖)回复于 2002-12-13 09:11:26 得分 5
先UP一下 呵呵Top
2 楼ldy(罗大佑)回复于 2002-12-13 16:48:42 得分 5
同上!Top
3 楼xlhl(顽皮兔子)回复于 2002-12-13 17:11:08 得分 5
看看去Top
4 楼balloonman2002()回复于 2002-12-13 17:13:01 得分 5
继续UP,,,Top
5 楼wu_07(一只狗不孤单,想一只狗才孤单)回复于 2002-12-13 17:15:19 得分 35
在借方的x中写表达式
让借方的x等于金额的x加上金额的widthTop
6 楼yzx978(修仔)回复于 2002-12-13 17:18:27 得分 5
不错,但是这种效果怎么做呢?Top
7 楼flyhot(阳光清晨)回复于 2002-12-14 16:19:48 得分 5
gzTop
8 楼rex_wang(王)回复于 2002-12-14 16:22:02 得分 5
gzTop
9 楼rex_wang(王)回复于 2002-12-14 16:23:55 得分 35
可以用x,y的表达式来定位.Top
10 楼msf(飞黄腾达)回复于 2002-12-14 17:05:52 得分 5
upTop
11 楼flymeng(lj)回复于 2002-12-14 19:35:10 得分 0
我不相信csdn上面没有完整的解决方案.Top
12 楼ice2water(冰冻三尺)回复于 2002-12-14 22:09:44 得分 5
gzTop
13 楼wu_07(一只狗不孤单,想一只狗才孤单)回复于 2002-12-16 09:24:33 得分 30
看看这个怎么样
$PBExportHeader$d_ttt.srd
release 7;
datawindow(units=0 timer_interval=0 color=16777215 processing=1 HTMLDW=no print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 grid.columnmove=no selected.mouse=no )
header(height=200 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=92 color="536870912" )
table(column=(type=long update=yes updatewhereclause=yes key=yes name=id dbname="AC_RAWVALUERAISE.ID" )
column=(type=number update=yes updatewhereclause=yes name=changerawvalue dbname="AC_RAWVALUERAISE.CHANGERAWVALUE" )
column=(type=number update=yes updatewhereclause=yes name=bchangerawvalue dbname="AC_RAWVALUERAISE.BCHANGERAWVALUE" )
column=(type=number update=yes updatewhereclause=yes name=achangerawvalue dbname="AC_RAWVALUERAISE.ACHANGERAWVALUE" )
column=(type=number update=yes updatewhereclause=yes name=astremainrate dbname="AC_RAWVALUERAISE.ASTREMAINRATE" )
column=(type=number update=yes updatewhereclause=yes name=bchangeremainvalue dbname="AC_RAWVALUERAISE.BCHANGEREMAINVALUE" )
column=(type=number update=yes updatewhereclause=yes name=achangeremainvalue dbname="AC_RAWVALUERAISE.ACHANGEREMAINVALUE" )
retrieve="PBSELECT(TABLE(NAME=~"AC_RAWVALUERAISE~") COLUMN(NAME=~"AC_RAWVALUERAISE.ID~")COLUMN(NAME=~"AC_RAWVALUERAISE.CHANGERAWVALUE~")COLUMN(NAME=~"AC_RAWVALUERAISE.BCHANGERAWVALUE~")COLUMN(NAME=~"AC_RAWVALUERAISE.ACHANGERAWVALUE~")COLUMN(NAME=~"AC_RAWVALUERAISE.ASTREMAINRATE~")COLUMN(NAME=~"AC_RAWVALUERAISE.BCHANGEREMAINVALUE~")COLUMN(NAME=~"AC_RAWVALUERAISE.ACHANGEREMAINVALUE~"))" update="AC_RAWVALUERAISE" updatewhere=1 updatekeyinplace=no )
text(band=background alignment="1" text="" border="6" color="0" x="0" y="4" height="188" width="2021~tlong(describe( 'bchangerawvalue_t.x')) +long(describe('bchangerawvalue_t.width'))" name=t_1 slideup=directlyabove font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="80269524" )
text(band=header alignment="2" text="
单价" border="6" color="0" x="1925" y="4" height="188" width="361" name=astremainrate_t font.face="宋体" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="0" background.mode="2" background.color="80269524" )
text(band=header alignment="2" text="金额" border="6" color="0" x="1349" y="116" height="76" width="567" name=bchangerawvalue_t font.face="宋体" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="80269524" )
text(band=header alignment="2" text="数量" border="6" color="0" x="873" y="116" height="76" width="466" name=achangerawvalue_t font.face="宋体" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="80269524" )
text(band=header alignment="2" text="
凭证字号" border="6" color="0" x="539" y="8" height="184" width="325" name=changerawvalue_t font.face="宋体" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="0" background.mode="2" background.color="80269524" )
text(band=header alignment="2" text="
日期" border="6" color="0" x="9" y="8" height="184" width="521" name=id_t font.face="宋体" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="0" background.mode="2" background.color="80269524" )
text(band=header alignment="0" text="方" border="0" color="0" x="1349" y="32" height="60" width="567" name=t_3 font.face="宋体" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="0" background.mode="2" background.color="80269524" )
text(band=header alignment="1" text="借" border="0" color="0" x="873" y="32" height="60" width="466" name=t_2 font.face="宋体" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="0" background.mode="2" background.color="80269524" )
line(band=header x1="850" y1="164~tlong(describe( 'bchangerawvalue_t.y')) -8" x2="1915" y2="164~tlong(describe( 'bchangerawvalue_t.y')) - 8" name=l_1 pen.style="0" pen.width="5" pen.color="8421504" background.mode="2" background.color="16777215" )
column(band=detail id=1 alignment="1" tabsequence=10 border="0" color="0" x="9" y="8" height="76" width="521" format="[general]" name=id edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="1" tabsequence=20 border="0" color="0" x="539" y="8" height="76" width="325" format="[general]" name=changerawvalue edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="1" tabsequence=40 border="0" color="0" x="1349" y="8" height="76" width="567" format="[general]" name=bchangerawvalue edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=4 alignment="1" tabsequence=30 border="0" color="0" x="873" y="8" height="76" width="466" format="[general]" name=achangerawvalue edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=5 alignment="1" tabsequence=50 border="0" color="0" x="1925" y="8" height="76" width="361" format="[general]" name=astremainrate edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
line(band=foreground x1="1943~tlong(describe( 'bchangerawvalue_t.x')) +long(describe('bchangerawvalue_t.width')) +2" y1="4" x2="1929~tlong(describe( 'bchangerawvalue_t.x')) +long(describe('bchangerawvalue_t.width')) +2" y2="188" name=l_2 pen.style="0" pen.width="5" pen.color="33554432" background.mode="2" background.color="16777215" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" )
Top
14 楼shennongjia(神农架小兔)回复于 2002-12-16 14:19:42 得分 5
5820200Top
15 楼topson_fj(liang)回复于 2002-12-16 15:13:32 得分 30
该界面需要通过修改数据窗口脚本来实现,现将脚本贴出:
$PBExportHeader$d_prope.srd
release 8;
datawindow(units=0 timer_interval=0 color=16777215 processing=1 HTMLDW=no print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 )
header(height=168 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=104 color="536870912" )
table(column=(type=char(50) updatewhereclause=no name=myname dbname="myname" )
column=(type=char(50) updatewhereclause=no name=mypicture dbname="mypicture" )
column=(type=number updatewhereclause=no name=mx dbname="mx" )
column=(type=number updatewhereclause=no name=my dbname="my" )
)
text(band=header alignment="2" text="Mypicture" border="0" color="0" x="9" y="8" height="76" width="1586" html.valueishtml="0" name=mypicture_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=header alignment="0" text="Myname" border="0" color="0" x="2130" y="8" height="76" width="1376" html.valueishtml="0" name=t_1 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=2 alignment="0" tabsequence=10 border="0" color="0" x="9" y="8" height="88" width="1586" format="[general]" html.valueishtml="0" name=mypicture visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=3 alignment="1" tabsequence=20 border="0" color="0" x="1605" y="8" height="88" width="251" format="[general]" html.valueishtml="0" name=mx visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=4 alignment="1" tabsequence=30 border="0" color="0" x="1865" y="8" height="88" width="256" format="[general]" html.valueishtml="0" name=my visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=1 alignment="0" tabsequence=40 border="0" color="0" x="2130" y="8" height="88" width="1376" format="[general]" html.valueishtml="0" name=myname visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=background alignment="2" text="text" border="6" color="0" x="1605~tInteger(describe(~"mx.x~"))" y="8" height="68" width="521~tInteger(describe(~"mx.Width~") )+ Integer(describe(~"my.Width~") ) + 9" html.valueishtml="0" name=t_2 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Mx" border="6" color="0" x="1605" y="88" height="76" width="251" html.valueishtml="0" name=mx_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="My" border="6" color="0" x="1865" y="88" height="76" width="256" html.valueishtml="0" name=my_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" netscapelayers="0" )
上述代码中
text(band=background alignment="2" text="text" border="6" color="0" x="1605~tInteger(describe(~"mx.x~"))" y="8" height="68" width="521~tInteger(describe(~"mx.Width~") )+ Integer(describe(~"my.Width~") ) + 9" html.valueishtml="0" name=t_2 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
即是实现该功能的相应代码。好好看吧,Top
16 楼leepoy(编程浪子)回复于 2002-12-16 16:11:21 得分 5
upTop
17 楼oceanaut(海阔天空)回复于 2002-12-16 16:39:48 得分 5
就参考楼上的吧Top
18 楼888888888888(888888888888)回复于 2002-12-16 17:03:27 得分 5
哦!!Top
19 楼wgy2008(北极光)回复于 2002-12-16 17:36:05 得分 5
upTop




