sample4.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\default_typedef.xml"/>
  4. <Form id="test1" position="absolute 0 0 1211 784" titletext="Dataset관련" style="margin: 0 8 0 8;" onload="test1_onload">
  5. <Layouts>
  6. <Layout>
  7. <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;"/>
  8. <Button id="Button_popupmenu" taborder="25" text="dsf_copyDs&#13;&#10;데이터을을 mdoe방식에 따라 copy" position="absolute 17 56 328 94" onclick="Button_popupmenu_onclick"/>
  9. <Grid id="Grid02" taborder="28" useinputpanel="false" position="absolute 360 56 707 143" binddataset="Dataset03" autofittype="col" titletext="DATASET 관련">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="80"/>
  14. <Column size="80"/>
  15. <Column size="80"/>
  16. <Column size="80"/>
  17. </Columns>
  18. <Rows>
  19. <Row size="24" band="head"/>
  20. <Row size="24"/>
  21. </Rows>
  22. <Band id="head">
  23. <Cell text="Column0"/>
  24. <Cell col="1" text="Column1"/>
  25. <Cell col="2" text="Column2"/>
  26. <Cell col="3" text="Column3"/>
  27. </Band>
  28. <Band id="body">
  29. <Cell edittype="normal" text="bind:Column0"/>
  30. <Cell col="1" edittype="normal" text="bind:Column1"/>
  31. <Cell col="2" edittype="normal" text="bind:Column2"/>
  32. <Cell col="3" edittype="normal" text="bind:Column3"/>
  33. </Band>
  34. </Format>
  35. </Formats>
  36. </Grid>
  37. <Grid id="Grid03" taborder="29" binddataset="Dataset04" useinputpanel="false" autofittype="col" position="absolute 728 56 1075 143" titletext="DATASET 관련">
  38. <Formats>
  39. <Format id="default">
  40. <Columns>
  41. <Col size="80"/>
  42. <Col size="80"/>
  43. <Col size="80"/>
  44. <Col size="80"/>
  45. </Columns>
  46. <Rows>
  47. <Row band="head" size="24"/>
  48. <Row band="body" size="24"/>
  49. </Rows>
  50. <Band id="head">
  51. <Cell col="0" disptype="normal" text="Column0"/>
  52. <Cell col="1" disptype="normal" text="Column1"/>
  53. <Cell col="2" disptype="normal" text="Column2"/>
  54. <Cell col="3" disptype="normal" text="Column3"/>
  55. </Band>
  56. <Band id="body">
  57. <Cell col="0" disptype="normal" text="bind:Column0"/>
  58. <Cell col="1" disptype="normal" text="bind:Column1"/>
  59. <Cell col="2" disptype="normal" text="bind:Column2"/>
  60. <Cell col="3" disptype="normal" text="bind:Column3"/>
  61. </Band>
  62. </Format>
  63. </Formats>
  64. </Grid>
  65. <Button id="Button_popupmenu00" taborder="30" text="dsf_copyNodesetType(삭제)&#13;&#10; 데이터셋에 소스 데데이터셋을 mdoe방식에 따라 copy" position="absolute 17 152 328 190" onclick="Button_popupmenu00_onclick"/>
  66. <Grid id="Grid04" taborder="31" binddataset="Dataset03" useinputpanel="false" autofittype="col" position="absolute 360 152 707 239" titletext="DATASET 관련">
  67. <Formats>
  68. <Format id="default">
  69. <Columns>
  70. <Column size="80"/>
  71. <Column size="80"/>
  72. <Column size="80"/>
  73. <Column size="80"/>
  74. </Columns>
  75. <Rows>
  76. <Row size="24" band="head"/>
  77. <Row size="24"/>
  78. </Rows>
  79. <Band id="head">
  80. <Cell text="Column0"/>
  81. <Cell col="1" text="Column1"/>
  82. <Cell col="2" text="Column2"/>
  83. <Cell col="3" text="Column3"/>
  84. </Band>
  85. <Band id="body">
  86. <Cell edittype="normal" text="bind:Column0"/>
  87. <Cell col="1" edittype="normal" text="bind:Column1"/>
  88. <Cell col="2" edittype="normal" text="bind:Column2"/>
  89. <Cell col="3" edittype="normal" text="bind:Column3"/>
  90. </Band>
  91. </Format>
  92. </Formats>
  93. </Grid>
  94. <Grid id="Grid05" taborder="32" binddataset="Dataset04" useinputpanel="false" autofittype="col" position="absolute 728 152 1075 239" titletext="DATASET 관련">
  95. <Formats>
  96. <Format id="default">
  97. <Columns>
  98. <Col size="80"/>
  99. <Col size="80"/>
  100. <Col size="80"/>
  101. <Col size="80"/>
  102. </Columns>
  103. <Rows>
  104. <Row band="head" size="24"/>
  105. <Row band="body" size="24"/>
  106. </Rows>
  107. <Band id="head">
  108. <Cell col="0" disptype="normal" text="Column0"/>
  109. <Cell col="1" disptype="normal" text="Column1"/>
  110. <Cell col="2" disptype="normal" text="Column2"/>
  111. <Cell col="3" disptype="normal" text="Column3"/>
  112. </Band>
  113. <Band id="body">
  114. <Cell col="0" disptype="normal" text="bind:Column0"/>
  115. <Cell col="1" disptype="normal" text="bind:Column1"/>
  116. <Cell col="2" disptype="normal" text="bind:Column2"/>
  117. <Cell col="3" disptype="normal" text="bind:Column3"/>
  118. </Band>
  119. </Format>
  120. </Formats>
  121. </Grid>
  122. <Button id="Button_popupmenu01" taborder="33" text="dsf_copyNodeWithPostfix(삭제)&#13;&#10;postfix의 노드네임을 추가 하여 copy" position="absolute 17 256 328 294" onclick="Button_popupmenu01_onclick"/>
  123. <TextArea id="TextArea02" taborder="34" position="absolute 363 273 731 383"/>
  124. <TextArea id="TextArea03" taborder="35" position="absolute 747 273 1115 383"/>
  125. <Static id="Static01" text="함수 실행전" position="absolute 366 254 721 272"/>
  126. <Static id="Static02" text="함수 실행후" position="absolute 750 254 1105 272"/>
  127. <Button id="Button_popupmenu02" taborder="36" text="선택된 행들을 모두 지우거나 deleted 상태로 마크" position="absolute 17 392 328 430" onclick="Button_popupmenu02_onclick"/>
  128. <Grid id="Grid06" taborder="37" binddataset="Dataset04" useinputpanel="false" autofittype="col" position="absolute 363 397 710 484" titletext="DATASET 관련" selecttype="multirow">
  129. <Formats>
  130. <Format id="default">
  131. <Columns>
  132. <Column size="80"/>
  133. <Column size="80"/>
  134. <Column size="80"/>
  135. <Column size="80"/>
  136. <Column size="80"/>
  137. </Columns>
  138. <Rows>
  139. <Row size="24" band="head"/>
  140. <Row size="24"/>
  141. </Rows>
  142. <Band id="head">
  143. <Cell text="상태"/>
  144. <Cell col="1" text="Column0"/>
  145. <Cell col="2" text="Column1"/>
  146. <Cell col="3" text="Column2"/>
  147. <Cell col="4" text="Column3"/>
  148. </Band>
  149. <Band id="body">
  150. <Cell displaytype="image"/>
  151. <Cell col="1" text="bind:Column0"/>
  152. <Cell col="2" text="bind:Column1"/>
  153. <Cell col="3" text="bind:Column2"/>
  154. <Cell col="4" text="bind:Column3"/>
  155. </Band>
  156. </Format>
  157. </Formats>
  158. </Grid>
  159. <Button id="Button_popupmenu03" taborder="38" text="dsf_datasetUpdateChk&#13;&#10;데이터셋 변경여부 체크" position="absolute 17 536 328 574" onclick="Button_popupmenu03_onclick"/>
  160. <Grid id="Grid00" taborder="39" useinputpanel="false" position="absolute 373 557 1019 686" binddataset="Dataset05" autofittype="col">
  161. <Formats>
  162. <Format id="default">
  163. <Columns>
  164. <Column size="40"/>
  165. <Column size="80"/>
  166. <Column size="80"/>
  167. <Column size="80"/>
  168. <Column size="80"/>
  169. </Columns>
  170. <Rows>
  171. <Row size="24" band="head"/>
  172. <Row size="24"/>
  173. </Rows>
  174. <Band id="head">
  175. <Cell text="상태"/>
  176. <Cell col="1" text="Column0"/>
  177. <Cell col="2" text="Column1"/>
  178. <Cell col="3" text="Column2"/>
  179. <Cell col="4" text="Column3"/>
  180. </Band>
  181. <Band id="body">
  182. <Cell/>
  183. <Cell col="1" edittype="normal" text="bind:Column0"/>
  184. <Cell col="2" edittype="normal" text="bind:Column1"/>
  185. <Cell col="3" edittype="normal" text="bind:Column2"/>
  186. <Cell col="4" edittype="normal" text="bind:Column3"/>
  187. </Band>
  188. </Format>
  189. </Formats>
  190. </Grid>
  191. <Button id="Button00" taborder="40" text="addRow" position="absolute 846 526 926 551" onclick="Button00_onclick"/>
  192. <Button id="Button01" taborder="41" text="deleteRow" position="absolute 934 526 1014 551" onclick="Button01_onclick"/>
  193. <Combo id="Combo00" taborder="42" text="Combo00" position="absolute 816 416 1055 436" innerdataset="@Dataset06" codecolumn="Column0" datacolumn="Column1"/>
  194. <GraphicPath id="GraphicPath00" text="GraphicPath00" position="absolute 804 420 1136 704"/>
  195. <GraphicPath id="GraphicPath01" text="GraphicPath01" position="absolute 847 488 947 528"/>
  196. </Layout>
  197. </Layouts>
  198. <Objects>
  199. <Dataset id="Dataset00" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  200. <ColumnInfo>
  201. <Column id="Column0" type="STRING" size="256"/>
  202. <Column id="Column1" type="STRING" size="256"/>
  203. </ColumnInfo>
  204. <Rows>
  205. <Row>
  206. <Col id="Column0">1</Col>
  207. <Col id="Column1">가나다라마바사아자차자</Col>
  208. </Row>
  209. <Row>
  210. <Col id="Column0">2</Col>
  211. <Col id="Column1">22</Col>
  212. </Row>
  213. <Row>
  214. <Col id="Column0">3</Col>
  215. <Col id="Column1">33</Col>
  216. </Row>
  217. <Row>
  218. <Col id="Column0">4</Col>
  219. <Col id="Column1">44</Col>
  220. </Row>
  221. </Rows>
  222. </Dataset>
  223. <Dataset id="Dataset01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  224. <Dataset id="Dataset02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  225. <ColumnInfo>
  226. <Column id="Column0" type="STRING" size="256"/>
  227. <Column id="Column1" type="STRING" size="256"/>
  228. <Column id="Column2" type="STRING" size="256"/>
  229. <Column id="Column3" type="STRING" size="256"/>
  230. </ColumnInfo>
  231. <Rows>
  232. <Row>
  233. <Col id="Column0">1</Col>
  234. <Col id="Column1">2</Col>
  235. </Row>
  236. <Row>
  237. <Col id="Column0">a</Col>
  238. </Row>
  239. <Row>
  240. <Col id="Column0">b</Col>
  241. </Row>
  242. <Row/>
  243. </Rows>
  244. </Dataset>
  245. <Dataset id="Dataset03" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  246. <ColumnInfo>
  247. <Column id="Column0" type="STRING" size="256"/>
  248. <Column id="Column1" type="STRING" size="256"/>
  249. <Column id="Column2" type="STRING" size="256"/>
  250. <Column id="Column3" type="STRING" size="256"/>
  251. </ColumnInfo>
  252. </Dataset>
  253. <Dataset id="Dataset04" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  254. <ColumnInfo>
  255. <Column id="Column0" type="STRING" size="256"/>
  256. <Column id="Column1" type="STRING" size="256"/>
  257. <Column id="Column2" type="STRING" size="256"/>
  258. <Column id="Column3" type="STRING" size="256"/>
  259. </ColumnInfo>
  260. <Rows>
  261. <Row>
  262. <Col id="Column0">1</Col>
  263. <Col id="Column1">2</Col>
  264. </Row>
  265. <Row>
  266. <Col id="Column0">a</Col>
  267. <Col id="Column1">ccccccedcgte34322가나다라바카사앋 간다라낟 단아다</Col>
  268. </Row>
  269. <Row>
  270. <Col id="Column0">b</Col>
  271. <Col id="Column1">123dfd</Col>
  272. </Row>
  273. <Row>
  274. <Col id="Column1">ddse</Col>
  275. </Row>
  276. </Rows>
  277. </Dataset>
  278. <Dataset id="Dataset05" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  279. <ColumnInfo>
  280. <Column id="Column0" type="STRING" size="256"/>
  281. <Column id="Column1" type="STRING" size="256"/>
  282. <Column id="Column2" type="STRING" size="256"/>
  283. <Column id="Column3" type="STRING" size="256"/>
  284. </ColumnInfo>
  285. <Rows>
  286. <Row>
  287. <Col id="Column0">1</Col>
  288. <Col id="Column1">2</Col>
  289. </Row>
  290. <Row>
  291. <Col id="Column0">a</Col>
  292. <Col id="Column1">ccccccedcgte34322가나다라바카사앋 간다라낟 단아다</Col>
  293. </Row>
  294. <Row>
  295. <Col id="Column0">b</Col>
  296. <Col id="Column1">123dfd</Col>
  297. </Row>
  298. <Row>
  299. <Col id="Column1">ddse</Col>
  300. </Row>
  301. <Row/>
  302. <Row/>
  303. <Row/>
  304. <Row/>
  305. <Row/>
  306. </Rows>
  307. </Dataset>
  308. <Dataset id="Dataset06" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  309. <ColumnInfo>
  310. <Column id="Column0" type="STRING" size="256"/>
  311. <Column id="Column1" type="STRING" size="256"/>
  312. </ColumnInfo>
  313. <Rows>
  314. <Row>
  315. <Col id="Column0">1</Col>
  316. <Col id="Column1">aaa</Col>
  317. </Row>
  318. <Row>
  319. <Col id="Column0">2</Col>
  320. <Col id="Column1">bbb</Col>
  321. </Row>
  322. <Row>
  323. <Col id="Column0">3</Col>
  324. <Col id="Column1">vvvv</Col>
  325. </Row>
  326. <Row>
  327. <Col id="Column0">4</Col>
  328. <Col id="Column1">sss</Col>
  329. </Row>
  330. </Rows>
  331. </Dataset>
  332. </Objects>
  333. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  334. function test1_onload(obj:Form, e:LoadEventInfo)
  335. {
  336. grdf_setRowTypeIcon1(Grid06,0);
  337. grdf_setRowTypeIcon1(Grid00,0);
  338. }
  339. //mdoe방식에 따라 copy 함
  340. function Button_popupmenu_onclick(obj:Button, e:ClickEventInfo)
  341. {
  342. dsf_copyDs(Dataset03, Dataset04);
  343. }
  344. // dataset mdoe방식에 따라 copy 함
  345. function Button_popupmenu00_onclick(obj:Button, e:ClickEventInfo)
  346. {
  347. dsf_copyNodesetType(Dataset03, Dataset04);
  348. }
  349. //postfix의 노드네임을 추가 하여 copy
  350. function Button_popupmenu01_onclick(obj:Button, e:ClickEventInfo)
  351. {
  352. TextArea02.value = Dataset03.saveXML();
  353. dsf_copyDsWithPostfix(Dataset03, Dataset04, "_OLD");
  354. TextArea03.value = Dataset03.saveXML();
  355. trace(Dataset04.saveXML());
  356. }
  357. //선택된 행들을 모두 지우거나 deleted 상태로 마크
  358. function Button_popupmenu02_onclick(obj:Button, e:ClickEventInfo)
  359. {
  360. dsf_deleteSelectedRows(Grid06 ,true);
  361. }
  362. function grdf_setRowTypeIcon1(objGrd, colIndex)
  363. {
  364. 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'))";
  365. objGrd.setCellProperty("Body", colIndex, "displaytype", "image");
  366. objGrd.setCellProperty("Body", colIndex, "edittype", "none");
  367. objGrd.setCellProperty("Body", colIndex, "expr", sExprText);
  368. }
  369. function Button_popupmenu03_onclick(obj:Button, e:ClickEventInfo)
  370. {
  371. var rtn =dsf_datasetUpdateChk(Dataset05);
  372. alert("데이타셋 변경여부="+rtn);
  373. }
  374. function Button00_onclick(obj:Button, e:ClickEventInfo)
  375. {
  376. Dataset05.insertRow(0);
  377. }
  378. function Button01_onclick(obj:Button, e:ClickEventInfo)
  379. {
  380. Dataset05.deleteRow(Dataset05.rowposition);
  381. }
  382. ]]></Script>
  383. </Form>
  384. </FDL>