SPRPZ00300_공통코드HELP.xfdl 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRPZ00300" classname="SPRPZ00300_공통코드HELP" inheritanceid="" position="absolute 0 0 580 560" titletext="SPRPZ00300_공통코드HELP" oninit="SPRPZ00300_oninit" onload="SPRPZ00300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="div_search" taborder="0" position="absolute 0 0 580 35" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Radio id="rdo_refcond" taborder="0" position="absolute 15 8 125 28" innerdataset="@ds_init_refcond" codecolumn="value" datacolumn="label" style="itempadding:0 3 0 0;border:1 solid black ;" rowcount="-1" columncount="-1" onitemchanged="div_search_rdo_refcond_onitemchanged"/>
  11. <Static id="Static00" text="조회조건 :" position="absolute 207 8 283 28" class="search_name"/>
  12. <Edit id="edt_refcond" taborder="1" position="absolute 287 8 386 28" imemode="hangul" onkeydown="div_search_edt_refcond_onkeydown"/>
  13. <Shape id="Shape00" position="absolute 491 8 495 28" linetype="vertical"/>
  14. <Button id="btn_search" taborder="2" text="조회" position="absolute 512 8 568 28" class="btn1" onclick="div_search_btn_search_onclick"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Static id="Static00" text="공통 코드 리스트" position="absolute 0 44 132 64" class="tit_2"/>
  19. <Shape id="Shape00" position="absolute 0 58 580 70" class="line_10"/>
  20. <Grid id="grd_comcdlist" taborder="1" useinputpanel="false" position="absolute 0 66 580 533" autofittype="col" binddataset="ds_main_comcodelist" oncelldblclick="grd_comcdlist_oncelldblclick">
  21. <Formats>
  22. <Format id="default">
  23. <Columns>
  24. <Column size="24"/>
  25. <Column size="128"/>
  26. <Column size="411"/>
  27. </Columns>
  28. <Rows>
  29. <Row size="24" band="head"/>
  30. <Row size="24"/>
  31. </Rows>
  32. <Band id="head">
  33. <Cell/>
  34. <Cell col="1" text="코드"/>
  35. <Cell col="2" text="코드명"/>
  36. </Band>
  37. <Band id="body">
  38. <Cell celltype="head" text="expr:currow + 1"/>
  39. <Cell col="1" displaytype="text" text="bind:cdid"/>
  40. <Cell col="2" displaytype="text" text="bind:cdnm"/>
  41. </Band>
  42. </Format>
  43. </Formats>
  44. </Grid>
  45. <Button id="btn_confirm" taborder="2" text="확인" position="absolute 465 540 521 560" class="btn4" onclick="btn_confirm_onclick"/>
  46. <Button id="btn_cancel" taborder="3" text="취소" class="btn3" position="absolute 524 540 580 560" onclick="btn_cancel_onclick"/>
  47. </Layout>
  48. </Layouts>
  49. <Objects>
  50. <Dataset id="ds_init_refcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  51. <ColumnInfo>
  52. <Column id="label" type="STRING" size="256"/>
  53. <Column id="value" type="STRING" size="256"/>
  54. </ColumnInfo>
  55. <Rows>
  56. <Row>
  57. <Col id="label">코드</Col>
  58. <Col id="value">cdid</Col>
  59. </Row>
  60. <Row>
  61. <Col id="label">코드명</Col>
  62. <Col id="value">cdnm</Col>
  63. </Row>
  64. </Rows>
  65. </Dataset>
  66. <Dataset id="ds_send_comcdref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  67. <ColumnInfo>
  68. <Column id="cdgrupid" type="STRING" size="256"/>
  69. <Column id="cdid" type="STRING" size="256"/>
  70. <Column id="cdnm" type="STRING" size="256"/>
  71. <Column id="refcond" type="STRING" size="256"/>
  72. </ColumnInfo>
  73. <Rows>
  74. <Row>
  75. <Col id="cdgrupid"/>
  76. <Col id="cdid"/>
  77. <Col id="cdnm"/>
  78. <Col id="refcond"/>
  79. </Row>
  80. </Rows>
  81. </Dataset>
  82. <Dataset id="ds_main_comcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  83. <ColumnInfo>
  84. <Column id="cdid" type="STRING" size="256" sumtext="코드"/>
  85. <Column id="cdnm" type="STRING" size="256" sumtext="코드명"/>
  86. <Column id="detldesc" type="STRING" size="256" sumtext=""/>
  87. </ColumnInfo>
  88. </Dataset>
  89. </Objects>
  90. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  91. include "mis_miscommonxp::MIS.xjs";
  92. function SPRPZ00300_oninit(obj:Form, e:InitEventInfo)
  93. {
  94. frmf_initForm(obj);
  95. }
  96. function SPRPZ00300_onload(obj:Form, e:LoadEventInfo)
  97. {
  98. misfGridInit(grd_comcdlist);
  99. ds_send_comcdref.setColumn(0, "cdgrupid", arg_ds_target.getColumn(0, "cdgrupid"));
  100. //
  101. // model.copyNode("root/main/comcd","/root/target/validation");
  102. //
  103. div_search.rdo_refcond.value = "cdnm";
  104. div_search.edt_refcond.setFocus();
  105. div_search.btn_search.click();
  106. }
  107. function div_search_rdo_refcond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  108. {
  109. if(e.postvalue == "cdnm") {
  110. div_search.edt_refcond.imemode = "hangul";
  111. } else {
  112. div_search.edt_refcond.imemode = "none";
  113. }
  114. div_search.edt_refcond.setFocus();
  115. }
  116. function div_search_edt_refcond_onkeydown(obj:Edit, e:KeyEventInfo)
  117. {
  118. if(e.keycode == 13) {
  119. obj.updateToDataset();
  120. div_search.btn_search.click();
  121. }
  122. }
  123. function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  124. {
  125. if(div_search.rdo_refcond.value == "cdnm") {
  126. ds_send_comcdref.setColumn(0, "cdnm", div_search.edt_refcond.text);
  127. ds_send_comcdref.setColumn(0, "cdid", "");
  128. }
  129. else {
  130. ds_send_comcdref.setColumn(0, "cdid", div_search.edt_refcond.text);
  131. ds_send_comcdref.setColumn(0, "cdnm", "");
  132. }
  133. var oParam = {};
  134. oParam.id = "TRRPZ00301";
  135. oParam.service = "miscommoncdrefapp.CommonCdRef";
  136. oParam.method = "reqGetComCdList";
  137. oParam.inds = "req=ds_send_comcdref";
  138. oParam.outds = "ds_main_comcodelist=comcodelist";
  139. oParam.async = true;
  140. tranf_submit(oParam);
  141. }
  142. function grd_comcdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  143. {
  144. if(e.row < 0 || e.col < 0) return;
  145. btn_confirm.click();
  146. }
  147. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  148. {
  149. misfPopUpListReturn(grd_comcdlist);
  150. }
  151. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  152. {
  153. misfPopUpListCancel();
  154. }
  155. ]]></Script>
  156. </Form>
  157. </FDL>