SPRPZ00300_공통코드HELP.xrw 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>SPRPZ00300_공통코드HELP</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <comcd>
  11. <comcodelist/>
  12. </comcd>
  13. </main>
  14. <target/>
  15. <init>
  16. <refcond>
  17. <label>코드</label>
  18. <value>cdid</value>
  19. <label>코드명</label>
  20. <value>cdnm</value>
  21. </refcond>
  22. </init>
  23. <send>
  24. <comcdref>
  25. <cdgrupid/>
  26. <cdid/>
  27. <cdnm/>
  28. <refcond/>
  29. </comcdref>
  30. </send>
  31. </root>
  32. </instance>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. misfGridInit(grd_comcdlist);
  36. model.setValue("/root/send/comcdref/cdgrupid",model.getValue("/root/target/cdgrupid"));
  37. model.copyNode("root/main/comcd","/root/target/validation");
  38. rdo_refcond.value = "cdnm";
  39. ipt_refcond.attribute("imemode") = "hangul";
  40. // rdo_refcond.select(1);
  41. model.setFocus("ipt_refcond");
  42. btn_search.dispatch("DOMActivate");
  43. model.refresh();
  44. ]]>
  45. </script>
  46. <submission id="TRRPZ00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/comcdref" resultref="/root/main/comcd"/>
  47. </model>
  48. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  49. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  51. </xhtml:head>
  52. <xhtml:body pagewidth="620" pageheight="560" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  53. <group id="group3" scroll="auto" style="left:8px; top:0px; width:580px; height:522px; ">
  54. <group id="group2" style="left:0px; top:5px; width:580px; height:35px; ">
  55. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:580px; height:35; "/>
  56. <input id="ipt_refcond" ref="/root/send/comcdref/cdnm" class="input_s_essential" style="left:252px; top:8px; width:99px; height:19px; ">
  57. <script type="javascript" ev:event="onkeyup">
  58. <![CDATA[
  59. inputEnterKey("btn_search", "DOMActivate");
  60. ]]>
  61. </script>
  62. </input>
  63. <button id="btn_search" class="btn1_letter2" style="left:509px; top:7px; width:56px; height:22px; ">
  64. <caption>조회</caption>
  65. <script type="javascript" ev:event="DOMActivate">
  66. <![CDATA[
  67. if(rdo_refcond.value == "cdnm") {
  68. model.setValue("/root/send/comcdref/cdnm",ipt_refcond.label);
  69. }
  70. else {
  71. model.setValue("/root/send/comcdref/cdid",ipt_refcond.label);
  72. }
  73. submit("TRRPZ00301");
  74. ]]>
  75. </script>
  76. </button>
  77. <line id="line13" class="line_4" style="x1:494px; y1:4px; x2:494px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  78. <caption id="caption2" class="search_name" style="left:166px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
  79. <select1 id="rdo_refcond" ref="/root/send/comcdref/refcond" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:15; top:9; width:125px; height:20px; border-style:solid; ">
  80. <choices>
  81. <itemset nodeset="/root/init/refcond">
  82. <label ref="label"/>
  83. <value ref="value"/>
  84. </itemset>
  85. </choices>
  86. <script type="javascript" ev:event="xforms-select">
  87. <![CDATA[
  88. if(rdo_refcond.value == "cdnm") {
  89. ipt_refcond.attribute("imemode") = "hangul";
  90. }
  91. else if (rdo_refcond.value == "cdid") {
  92. ipt_refcond.attribute("imemode") = "disabled";
  93. }
  94. else {
  95. ipt_refcond.attribute("imemode") = "disabled";
  96. }
  97. model.setFocus("ipt_refcond");
  98. ]]>
  99. </script>
  100. </select1>
  101. </group>
  102. <caption id="caption1" class="tit_2" style="left:5px; top:49px; width:118px; height:13px; ">공통 코드 리스트</caption>
  103. <line id="line1" class="line_1" style="x1:0px; y1:64px; x2:580px; y2:64px; "/>
  104. <datagrid id="grd_comcdlist" nodeset="/root/main/comcd/comcodelist" caption="코드^코드명" colsep="^" colwidth="128, 409" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:69px; width:580px; height:448px; ">
  105. <col ref="cdid"/>
  106. <col ref="cdnm"/>
  107. <script type="javascript" ev:event="ondblclick">
  108. <![CDATA[
  109. if( grd_comcdlist.isCell(event.target) && grd_comcdlist.row >= grd_comcdlist.fixedRows )
  110. {
  111. btn_confirm.dispatch("DOMActivate");
  112. }
  113. ]]>
  114. </script>
  115. </datagrid>
  116. </group>
  117. <group id="group1" scroll="auto" style="left:8px; top:521px; width:580px; height:27px; ">
  118. <button id="btn_confirm" class="btn4_letter2" style="left:466px; top:5px; width:56px; height:22px; ">
  119. <caption>확인</caption>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. misfPopUpListReturn(grd_comcdlist);
  123. ]]>
  124. </script>
  125. </button>
  126. <button id="btn_cancel" class="btn4_letter2" style="left:524px; top:5px; width:56px; height:22px; ">
  127. <caption>취소</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. misfPopUpListCancel();
  131. ]]>
  132. </script>
  133. </button>
  134. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:580; y2:0px; "/>
  135. </group>
  136. </xhtml:body>
  137. </xhtml:html>