123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\default_typedef.xml"/>
- <Form id="biz_testSample01" classname="biz_testSample01" inheritanceid="" position="absolute 0 0 1024 768" titletext="New Form">
- <Layouts>
- <Layout>
- <Shape id="Shape00" text="Shape00" position="absolute 28 629 992 638"/>
- <GroupBox id="GroupBox00" text="ReadOnly" position="absolute 21 13 1001 192" onlbuttondown="GroupBox00_onlbuttondown"/>
- <Grid id="gd_AndOr" taborder="1" useinputpanel="false" position="absolute 40 75 363 184" binddataset="ds1">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="inclprcpno"/>
- <Cell col="1" text="status"/>
- <Cell col="2" text="ansttm"/>
- </Band>
- <Band id="body">
- <Cell text="bind:inclprcpno"/>
- <Cell col="1" text="bind:status"/>
- <Cell col="2" edittype="expr:(inclprcpno>0||status=='D')?'normal':'none'" text="bind:ansttm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="Static00" text="1. And/Or <bind id="bind40" ref="/root/main/prcp/prcplist/ansttm" readonly="( ../inclprcpno &gt; 0 ) or (../status = &quot;D&quot;)"/>" position="absolute 44 27 1000 74"/>
- <GroupBox id="grp_Calculate" text="Calculate" position="absolute 7 211 984 621"/>
- <Static id="Static01" text="1. 사칙연산 (일반) <bind id="bind_totamt" ref="/root/hidden/totamt" calculate="(/root/main/orch_one/paytotamt) - (/root/main/orch_one/incmtax) -(/root/main/orch_one/resdntax)"/>" position="absolute 58 256 976 286" onclick="Static01_onclick"/>
- <Edit id="ed_cal1" taborder="2" position="absolute 66 302 189 332"/>
- <Static id="st_cal1" text="Static02" position="absolute 223 305 358 331" style="border:1 solid #808080ff ;" onclick="Static02_onclick" expr="expr:ds2.getColumn(ds2.rowposition,"paytotamt")-ds2.getColumn(ds2.rowposition,"incmtax")-ds2.getColumn(ds2.rowposition,"resdntax")"/>
- <Button id="Button00" taborder="3" text="Button00" position="absolute 384 302 527 338" onclick="Button00_onclick"/>
- <Grid id="Grid00" taborder="4" useinputpanel="false" position="absolute 607 310 915 381" binddataset="ds2">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="paytotamt"/>
- <Cell col="1" text="incmtax"/>
- <Cell col="2" text="resdntax"/>
- <Cell col="3" text="totamt"/>
- </Band>
- <Band id="body">
- <Cell edittype="normal" text="bind:paytotamt"/>
- <Cell col="1" text="bind:incmtax"/>
- <Cell col="2" text="bind:resdntax"/>
- <Cell col="3" text="bind:totamt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="Button01" taborder="5" text="Button01" position="absolute 225 355 358 380" onclick="Button01_onclick"/>
- <Edit id="ed_cal2" taborder="6" position="absolute 65 355 199 383"/>
- <Static id="Static02" text="Static02" position="absolute 66 395 199 424"/>
- <Button id="Button02" taborder="7" text="Button02" position="absolute 221 404 358 429" onclick="Button02_onclick"/>
- <Button id="Button03" taborder="8" text="Button03" position="absolute 648 415 725 431" onclick="Button03_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="inclprcpno" type="INT" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="ansttm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="inclprcpno">1</Col>
- <Col id="status">D</Col>
- <Col id="ansttm">true</Col>
- </Row>
- <Row>
- <Col id="inclprcpno">2</Col>
- <Col id="status">E</Col>
- <Col id="ansttm">true</Col>
- </Row>
- <Row>
- <Col id="inclprcpno">0</Col>
- <Col id="status">E</Col>
- <Col id="ansttm">false</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="paytotamt" type="INT" size="256"/>
- <Column id="incmtax" type="INT" size="256"/>
- <Column id="resdntax" type="INT" size="256"/>
- <Column id="totamt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="paytotamt">10</Col>
- <Col id="incmtax">20</Col>
- <Col id="resdntax">30</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="Dataset00" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="Column0" type="STRING" size="256"/>
- <Column id="Column1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ed_cal1" propid="value" datasetid="ds2" columnid="totamt"/>
- <BindItem id="item1" compid="st_cal1" propid="text" datasetid="ds2" columnid="totamt"/>
- <BindItem id="item2" compid="ed_cal2" propid="value" datasetid="Dataset00" columnid="Column0"/>
- <BindItem id="item3" compid="Static02" propid="text" datasetid="Dataset00" columnid="Column0"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- var v = ds2.getColumn(ds2.rowposition,"paytotamt")-ds2.getColumn(ds2.rowposition,"incmtax")-ds2.getColumn(ds2.rowposition,"resdntax");
- alert(v);
- ds2.setColumn(ds2.rowposition,"totamt", v);
-
-
- }
- function fn_TFBind(refID, oper, scrpt ){
- trace(refID);
- var ref = this.all[refID];
- var vText = "";
- trace(ref);
- if(oper == "readonly"){
- trace("readonly");
- if(scrpt){
- ref.readonly = true;
- }else{
- ref.readonly = false;
- }
-
- }else if("calculate"){
- trace("calculate");
- vText = scrpt;
- switch(ref){
- case "[object Edit]" : ref.value=vText;
- break;
- case "[object Static]" : ref.text=vText;
- break;
- }
- }
- }
- function fn_TFBind_Grid(ref,cellid, oper, scrpt){
-
- }
- function Button01_onclick(obj:Button, e:ClickEventInfo)
- {
- // fn_TFBind("ed_cal2", "readonly", "ds2.getColumn(ds2.rowposition,'paytotamt')-ds2.getColumn(ds2.rowposition,'incmtax')-ds2.getColumn(ds2.rowposition,'resdntax')");
- fn_TFBind("ed_cal2", "readonly", true);
- fn_TFBind("ed_cal2", "calculate", ds2.getColumn(ds2.rowposition,'paytotamt')-ds2.getColumn(ds2.rowposition,'incmtax')-ds2.getColumn(ds2.rowposition,'resdntax'));
- fn_TFBind_Grid("ed_cal2", "readonly", true);
- }
- function Button02_onclick(obj:Button, e:ClickEventInfo)
- {
- Static02.text = "aaaa";
- }
- function Button03_onclick(obj:Button, e:ClickEventInfo)
- {
- var boolean1 = new Boolean(true);
- var objBoolean = obj;
- alert(objBoolean);
- }
- ]]></Script>
- </Form>
- </FDL>
|