123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\default_typedef.xml"/>
- <Form id="test1" position="absolute 0 0 1211 784" titletext="Dataset관련" style="margin: 0 8 0 8;" onload="test1_onload">
- <Layouts>
- <Layout>
- <Static id="Static00" text="DataSet" position="absolute 0 0 1210 34" anchor="left top right" style="background:#4fcee5ff;border:1 solid #428cb6ff ;color:black;padding:0 0 0 10;bordertype:round 3 3 ;font:Malgun Gothic,12, antialias;"/>
- <Button id="Button_popupmenu" taborder="25" text="dsf_copyDs 데이터을을 mdoe방식에 따라 copy" position="absolute 17 56 328 94" onclick="Button_popupmenu_onclick"/>
- <Grid id="Grid02" taborder="28" useinputpanel="false" position="absolute 360 56 707 143" binddataset="Dataset03" autofittype="col" titletext="DATASET 관련">
- <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="Column0"/>
- <Cell col="1" text="Column1"/>
- <Cell col="2" text="Column2"/>
- <Cell col="3" text="Column3"/>
- </Band>
- <Band id="body">
- <Cell edittype="normal" text="bind:Column0"/>
- <Cell col="1" edittype="normal" text="bind:Column1"/>
- <Cell col="2" edittype="normal" text="bind:Column2"/>
- <Cell col="3" edittype="normal" text="bind:Column3"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="Grid03" taborder="29" binddataset="Dataset04" useinputpanel="false" autofittype="col" position="absolute 728 56 1075 143" titletext="DATASET 관련">
- <Formats>
- <Format id="default">
- <Columns>
- <Col size="80"/>
- <Col size="80"/>
- <Col size="80"/>
- <Col size="80"/>
- </Columns>
- <Rows>
- <Row band="head" size="24"/>
- <Row band="body" size="24"/>
- </Rows>
- <Band id="head">
- <Cell col="0" disptype="normal" text="Column0"/>
- <Cell col="1" disptype="normal" text="Column1"/>
- <Cell col="2" disptype="normal" text="Column2"/>
- <Cell col="3" disptype="normal" text="Column3"/>
- </Band>
- <Band id="body">
- <Cell col="0" disptype="normal" text="bind:Column0"/>
- <Cell col="1" disptype="normal" text="bind:Column1"/>
- <Cell col="2" disptype="normal" text="bind:Column2"/>
- <Cell col="3" disptype="normal" text="bind:Column3"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="Button_popupmenu00" taborder="30" text="dsf_copyNodesetType(삭제) 데이터셋에 소스 데데이터셋을 mdoe방식에 따라 copy" position="absolute 17 152 328 190" onclick="Button_popupmenu00_onclick"/>
- <Grid id="Grid04" taborder="31" binddataset="Dataset03" useinputpanel="false" autofittype="col" position="absolute 360 152 707 239" titletext="DATASET 관련">
- <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="Column0"/>
- <Cell col="1" text="Column1"/>
- <Cell col="2" text="Column2"/>
- <Cell col="3" text="Column3"/>
- </Band>
- <Band id="body">
- <Cell edittype="normal" text="bind:Column0"/>
- <Cell col="1" edittype="normal" text="bind:Column1"/>
- <Cell col="2" edittype="normal" text="bind:Column2"/>
- <Cell col="3" edittype="normal" text="bind:Column3"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="Grid05" taborder="32" binddataset="Dataset04" useinputpanel="false" autofittype="col" position="absolute 728 152 1075 239" titletext="DATASET 관련">
- <Formats>
- <Format id="default">
- <Columns>
- <Col size="80"/>
- <Col size="80"/>
- <Col size="80"/>
- <Col size="80"/>
- </Columns>
- <Rows>
- <Row band="head" size="24"/>
- <Row band="body" size="24"/>
- </Rows>
- <Band id="head">
- <Cell col="0" disptype="normal" text="Column0"/>
- <Cell col="1" disptype="normal" text="Column1"/>
- <Cell col="2" disptype="normal" text="Column2"/>
- <Cell col="3" disptype="normal" text="Column3"/>
- </Band>
- <Band id="body">
- <Cell col="0" disptype="normal" text="bind:Column0"/>
- <Cell col="1" disptype="normal" text="bind:Column1"/>
- <Cell col="2" disptype="normal" text="bind:Column2"/>
- <Cell col="3" disptype="normal" text="bind:Column3"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="Button_popupmenu01" taborder="33" text="dsf_copyNodeWithPostfix(삭제) postfix의 노드네임을 추가 하여 copy" position="absolute 17 256 328 294" onclick="Button_popupmenu01_onclick"/>
- <TextArea id="TextArea02" taborder="34" position="absolute 363 273 731 383"/>
- <TextArea id="TextArea03" taborder="35" position="absolute 747 273 1115 383"/>
- <Static id="Static01" text="함수 실행전" position="absolute 366 254 721 272"/>
- <Static id="Static02" text="함수 실행후" position="absolute 750 254 1105 272"/>
- <Button id="Button_popupmenu02" taborder="36" text="선택된 행들을 모두 지우거나 deleted 상태로 마크" position="absolute 17 392 328 430" onclick="Button_popupmenu02_onclick"/>
- <Grid id="Grid06" taborder="37" binddataset="Dataset04" useinputpanel="false" autofittype="col" position="absolute 363 397 710 484" titletext="DATASET 관련" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="80"/>
- <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="상태"/>
- <Cell col="1" text="Column0"/>
- <Cell col="2" text="Column1"/>
- <Cell col="3" text="Column2"/>
- <Cell col="4" text="Column3"/>
- </Band>
- <Band id="body">
- <Cell displaytype="image"/>
- <Cell col="1" text="bind:Column0"/>
- <Cell col="2" text="bind:Column1"/>
- <Cell col="3" text="bind:Column2"/>
- <Cell col="4" text="bind:Column3"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="Button_popupmenu03" taborder="38" text="dsf_datasetUpdateChk 데이터셋 변경여부 체크" position="absolute 17 536 328 574" onclick="Button_popupmenu03_onclick"/>
- <Grid id="Grid00" taborder="39" useinputpanel="false" position="absolute 373 557 1019 686" binddataset="Dataset05" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <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="상태"/>
- <Cell col="1" text="Column0"/>
- <Cell col="2" text="Column1"/>
- <Cell col="3" text="Column2"/>
- <Cell col="4" text="Column3"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" edittype="normal" text="bind:Column0"/>
- <Cell col="2" edittype="normal" text="bind:Column1"/>
- <Cell col="3" edittype="normal" text="bind:Column2"/>
- <Cell col="4" edittype="normal" text="bind:Column3"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="Button00" taborder="40" text="addRow" position="absolute 846 526 926 551" onclick="Button00_onclick"/>
- <Button id="Button01" taborder="41" text="deleteRow" position="absolute 934 526 1014 551" onclick="Button01_onclick"/>
- <Combo id="Combo00" taborder="42" text="Combo00" position="absolute 816 416 1055 436" innerdataset="@Dataset06" codecolumn="Column0" datacolumn="Column1"/>
- <GraphicPath id="GraphicPath00" text="GraphicPath00" position="absolute 804 420 1136 704"/>
- <GraphicPath id="GraphicPath01" text="GraphicPath01" position="absolute 847 488 947 528"/>
- </Layout>
- </Layouts>
- <Objects>
- <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>
- <Col id="Column0">1</Col>
- <Col id="Column1">가나다라마바사아자차자</Col>
- </Row>
- <Row>
- <Col id="Column0">2</Col>
- <Col id="Column1">22</Col>
- </Row>
- <Row>
- <Col id="Column0">3</Col>
- <Col id="Column1">33</Col>
- </Row>
- <Row>
- <Col id="Column0">4</Col>
- <Col id="Column1">44</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="Dataset01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="Dataset02" 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"/>
- <Column id="Column2" type="STRING" size="256"/>
- <Column id="Column3" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="Column0">1</Col>
- <Col id="Column1">2</Col>
- </Row>
- <Row>
- <Col id="Column0">a</Col>
- </Row>
- <Row>
- <Col id="Column0">b</Col>
- </Row>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="Dataset03" 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"/>
- <Column id="Column2" type="STRING" size="256"/>
- <Column id="Column3" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="Dataset04" 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"/>
- <Column id="Column2" type="STRING" size="256"/>
- <Column id="Column3" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="Column0">1</Col>
- <Col id="Column1">2</Col>
- </Row>
- <Row>
- <Col id="Column0">a</Col>
- <Col id="Column1">ccccccedcgte34322가나다라바카사앋 간다라낟 단아다</Col>
- </Row>
- <Row>
- <Col id="Column0">b</Col>
- <Col id="Column1">123dfd</Col>
- </Row>
- <Row>
- <Col id="Column1">ddse</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="Dataset05" 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"/>
- <Column id="Column2" type="STRING" size="256"/>
- <Column id="Column3" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="Column0">1</Col>
- <Col id="Column1">2</Col>
- </Row>
- <Row>
- <Col id="Column0">a</Col>
- <Col id="Column1">ccccccedcgte34322가나다라바카사앋 간다라낟 단아다</Col>
- </Row>
- <Row>
- <Col id="Column0">b</Col>
- <Col id="Column1">123dfd</Col>
- </Row>
- <Row>
- <Col id="Column1">ddse</Col>
- </Row>
- <Row/>
- <Row/>
- <Row/>
- <Row/>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="Dataset06" 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>
- <Col id="Column0">1</Col>
- <Col id="Column1">aaa</Col>
- </Row>
- <Row>
- <Col id="Column0">2</Col>
- <Col id="Column1">bbb</Col>
- </Row>
- <Row>
- <Col id="Column0">3</Col>
- <Col id="Column1">vvvv</Col>
- </Row>
- <Row>
- <Col id="Column0">4</Col>
- <Col id="Column1">sss</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- function test1_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon1(Grid06,0);
- grdf_setRowTypeIcon1(Grid00,0);
- }
- //mdoe방식에 따라 copy 함
- function Button_popupmenu_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_copyDs(Dataset03, Dataset04);
- }
- // dataset mdoe방식에 따라 copy 함
- function Button_popupmenu00_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_copyNodesetType(Dataset03, Dataset04);
- }
- //postfix의 노드네임을 추가 하여 copy
- function Button_popupmenu01_onclick(obj:Button, e:ClickEventInfo)
- {
- TextArea02.value = Dataset03.saveXML();
- dsf_copyDsWithPostfix(Dataset03, Dataset04, "_OLD");
-
-
- TextArea03.value = Dataset03.saveXML();
- trace(Dataset04.saveXML());
-
- }
- //선택된 행들을 모두 지우거나 deleted 상태로 마크
- function Button_popupmenu02_onclick(obj:Button, e:ClickEventInfo)
- {
-
- dsf_deleteSelectedRows(Grid06 ,true);
- }
- function grdf_setRowTypeIcon1(objGrd, colIndex)
- {
- var sExprText = "expr:getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))";
- objGrd.setCellProperty("Body", colIndex, "displaytype", "image");
- objGrd.setCellProperty("Body", colIndex, "edittype", "none");
- objGrd.setCellProperty("Body", colIndex, "expr", sExprText);
- }
- function Button_popupmenu03_onclick(obj:Button, e:ClickEventInfo)
- {
- var rtn =dsf_datasetUpdateChk(Dataset05);
- alert("데이타셋 변경여부="+rtn);
- }
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- Dataset05.insertRow(0);
- }
- function Button01_onclick(obj:Button, e:ClickEventInfo)
- {
- Dataset05.deleteRow(Dataset05.rowposition);
- }
- ]]></Script>
- </Form>
- </FDL>
|