SPMRT01100_과색인선택.xfdl 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMRT01100" position="absolute 0 0 536 650" titletext="과색인" onload="SPMRT01100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="trv_dgindx" taborder="0" useinputpanel="false" treeusecheckbox="false" position="absolute 0 29 535 624" autofit="col" binddataset="ds_main_deptindxlist_item" oncelldblclick="trv_dgindx_oncelldblclick">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="534"/>
  12. </Columns>
  13. <Rows>
  14. <Row size="20"/>
  15. </Rows>
  16. <Band id="body">
  17. <Cell displaytype="tree" edittype="tree" text="bind:deptindxnm" treestartlevel="1" treelevel="bind:depth"/>
  18. </Band>
  19. </Format>
  20. </Formats>
  21. </Grid>
  22. <Static id="caption19" text="색인명" class="cell_1" position="absolute 0 5 535 28" style="padding:0 0 0 0;align:center middle;"/>
  23. <Shape id="line1" class="line_10" position="absolute 0 0 535 6"/>
  24. <Button id="btn_select" taborder="1" text="선택" class="btn4" position="absolute 417 626 473 648" onclick="btn_select_onclick"/>
  25. <Button id="btn_close" taborder="2" text="닫기" class="btn4" position="absolute 476 626 532 648" onclick="btn_close_onclick"/>
  26. </Layout>
  27. </Layouts>
  28. <Objects>
  29. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  30. <ColumnInfo>
  31. <Column id="selectedindxcd" type="STRING" size="256"/>
  32. </ColumnInfo>
  33. <Rows>
  34. <Row>
  35. <Col id="selectedindxcd"/>
  36. </Row>
  37. </Rows>
  38. </Dataset>
  39. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  40. <ColumnInfo>
  41. <Column id="init" type="STRING" size="256"/>
  42. </ColumnInfo>
  43. </Dataset>
  44. <Dataset id="ds_main_deptindxlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  45. <ColumnInfo>
  46. <Column id="depth" type="STRING" size="256"/>
  47. <Column id="deptindxcd" type="STRING" size="256"/>
  48. <Column id="deptupindxcd" type="STRING" size="256"/>
  49. <Column id="deptindxnm" type="STRING" size="256"/>
  50. </ColumnInfo>
  51. <Rows>
  52. <Row>
  53. <Col id="depth"/>
  54. <Col id="deptindxcd"/>
  55. <Col id="deptupindxcd"/>
  56. <Col id="deptindxnm"/>
  57. </Row>
  58. </Rows>
  59. </Dataset>
  60. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  61. <ColumnInfo>
  62. <Column id="send" type="STRING" size="256"/>
  63. </ColumnInfo>
  64. <Rows>
  65. <Row>
  66. <Col id="send"/>
  67. </Row>
  68. </Rows>
  69. </Dataset>
  70. </Objects>
  71. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  72. * System Name :
  73. * Job Name :
  74. * Creator :
  75. * Make Date : 2017-12-04
  76. * Description :
  77. *---------------------------------------------------------------------------------------
  78. * Modify Date Modifier Modify Description
  79. *---------------------------------------------------------------------------------------
  80. * 2017-06-19 Live Converter TF->XP
  81. *
  82. *---------------------------------------------------------------------------------------
  83. ****************************************************************************************/
  84. //=======================================================================================
  85. // Lib Include
  86. //---------------------------------------------------------------------------------------
  87. include "com_commonxp::comm_main.xjs";
  88. //=======================================================================================
  89. // Global Form Variable
  90. //---------------------------------------------------------------------------------------
  91. var arErrorCode = new HashArray();
  92. //=======================================================================================
  93. // Function
  94. //---------------------------------------------------------------------------------------
  95. /*-**************************************************************************************
  96. * Argument : N/A
  97. * Description :
  98. ****************************************************************************************/
  99. //=======================================================================================
  100. // Event
  101. //---------------------------------------------------------------------------------------
  102. /****************************************************************************************
  103. * Components : Form
  104. * Description : 화면 처음 초기화시 폼초기화
  105. ****************************************************************************************/
  106. function SPMRT01100_onload(obj:Form, e:LoadEventInfo) {
  107. frmf_initForm(obj);
  108. //grdf_initGrid(grd_XXX);
  109. //grdf_setGridSort(grd_XXX);
  110. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  111. dsf_makeValue( ds_send, "indxflag", "string", opener.frmf_getParameter("indxflag"));
  112. dsf_makeValue( ds_send, "deptcd", "string", opener.frmf_getParameter("deptcd"));
  113. var oParam = {};
  114. oParam.id = "TRMRT01101";
  115. oParam.service = "termmngtapp.DeptSetMngt";
  116. oParam.method = "reqGetDeptIndxList";
  117. oParam.inds = "reqCond=ds_send";
  118. oParam.outds = "ds_main_deptindxlist_item=item";
  119. oParam.async = false;
  120. //oParam.callback = "cf_TRMRT01101";
  121. tranf_submit(oParam);
  122. }
  123. /****************************************************************************************
  124. * Components : Button
  125. * Description : 선택
  126. ****************************************************************************************/
  127. function btn_select_onclick(obj:Button, e:ClickEventInfo) {
  128. opener.frmf_setParameter("indxcd", ds_main_deptindxlist_item.getColumn(e.row, "deptindxcd"));
  129. opener.frmf_setParameter("indxnm", ds_main_deptindxlist_item.getColumn(e.row, "deptindxnm"));
  130. this.close();
  131. }
  132. /****************************************************************************************
  133. * Components : Button
  134. * Description : 닫기
  135. ****************************************************************************************/
  136. function btn_close_onclick(obj:Button, e:ClickEventInfo) {
  137. this.close();
  138. }
  139. /****************************************************************************************
  140. * Components : Grid
  141. * Description : 리스트 더블클릭으로 선택
  142. ****************************************************************************************/
  143. function trv_dgindx_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  144. opener.frmf_setParameter("indxcd", ds_main_deptindxlist_item.getColumn(e.row, "deptindxcd"));
  145. opener.frmf_setParameter("indxnm", ds_main_deptindxlist_item.getColumn(e.row, "deptindxnm"));
  146. this.close();
  147. }
  148. ]]></Script>
  149. </Form>
  150. </FDL>