SPRPZ00240_기관부서코드HELP.xrw 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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>부서코드 HELP</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <deptcodelist>
  11. <deptcd/>
  12. <depthngnm/>
  13. </deptcodelist>
  14. </main>
  15. <target/>
  16. <init>
  17. <refcond>
  18. <label>부서코드</label>
  19. <value>deptcd</value>
  20. <label>부서명</label>
  21. <value>deptnm</value>
  22. </refcond>
  23. </init>
  24. <send>
  25. <deptref>
  26. <refcond/>
  27. <deptnm/>
  28. <deptcd/>
  29. <instcd/>
  30. <basedd/>
  31. </deptref>
  32. <comcdref>
  33. <cdgrupid/>
  34. <cdid/>
  35. <cdnm/>
  36. </comcdref>
  37. </send>
  38. </root>
  39. </instance>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. misfGridInit(grd_deptlist);
  43. model.copyNode("root/main","/root/target/validation");
  44. //alert(model.getValue("/root/target/defaultvalue/instcd"));
  45. //alert(model.getValue("/root/target/defaultvalue/basedd"));
  46. model.setValue("/root/send/deptref/instcd",model.getValue("/root/target/defaultvalue/instcd"));
  47. model.setValue("/root/send/deptref/basedd",model.getValue("/root/target/defaultvalue/basedd"));
  48. model.setValue("/root/send/deptref/refcond","deptnm");
  49. model.refresh();
  50. // rdo_refcond.value == "deptnm" ;
  51. ipt_refcond.attribute("imemode") = "hangul";
  52. // rdo_refcond.select(1);
  53. model.setFocus("ipt_refcond");
  54. if(instance1.selectNodes("/root/target/validation/deptcodelist").length == 0)
  55. {
  56. btn_search.dispatch("DOMActivate");
  57. }
  58. model.refresh();
  59. ]]>
  60. </script>
  61. <submission id="TRRPZ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptref" resultref="/root/main"/>
  62. </model>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  66. </xhtml:head>
  67. <xhtml:body pagewidth="600" pageheight="550" guideline="1,534; 2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  68. <group id="group3" scroll="auto" style="left:0px; top:0px; width:580px; height:520px; ">
  69. <group id="group2" style="left:0px; top:0px; width:580px; height:30px; ">
  70. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:580px; height:29px; "/>
  71. <input id="ipt_refcond" ref="/root/send/deptref/deptnm" class="input_s_essential" style="left:412px; top:6px; width:99px; height:19px; ">
  72. <script type="javascript" ev:event="onkeyup">
  73. <![CDATA[
  74. inputEnterKey("btn_search", "DOMActivate");
  75. ]]>
  76. </script>
  77. </input>
  78. <button id="btn_search" class="btn1_letter2" style="left:519px; top:4px; width:56px; height:22px; ">
  79. <caption>조회</caption>
  80. <script type="javascript" ev:event="DOMActivate">
  81. <![CDATA[
  82. if(rdo_refcond.value == "deptnm") {
  83. model.setValue("/root/send/deptref/deptnm",ipt_refcond.label);
  84. }
  85. else {
  86. model.setValue("/root/send/deptref/deptcd",ipt_refcond.label);
  87. }
  88. submit("TRRPZ00201");
  89. ]]>
  90. </script>
  91. </button>
  92. <line id="line13" class="line_4" style="x1:515px; y1:0px; x2:515px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  93. <caption id="caption2" class="search_name" style="left:197px; top:6px; width:86px; height:17px; ">조회조건:</caption>
  94. <select1 id="rdo_refcond" ref="/root/send/deptref/refcond" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:285px; top:6px; width:125px; height:20px; border-style:solid; ">
  95. <choices>
  96. <itemset nodeset="/root/init/refcond">
  97. <label ref="label"/>
  98. <value ref="value"/>
  99. </itemset>
  100. </choices>
  101. <script type="javascript" ev:event="xforms-select">
  102. <![CDATA[
  103. if(rdo_refcond.value == "deptnm") {
  104. ipt_refcond.attribute("imemode") = "hangul";
  105. }
  106. else if (rdo_refcond.value == "deptcd") {
  107. ipt_refcond.attribute("imemode") = "disabled";
  108. }
  109. else {
  110. ipt_refcond.attribute("imemode") = "disabled";
  111. }
  112. model.setFocus("ipt_refcond");
  113. ]]>
  114. </script>
  115. </select1>
  116. <caption id="caption3" class="search_name" style="left:10px; top:6px; width:86px; height:17px; ">기관:</caption>
  117. <select1 id="combo1" ref="/root/send/deptref/instcd" class="input_s_essential" appearance="minimal" style="left:70px; top:6px; width:100px; height:19px; ">
  118. <choices>
  119. <item>
  120. <label>본원</label>
  121. <value>031</value>
  122. </item>
  123. <item>
  124. <label>칠곡</label>
  125. <value>032</value>
  126. </item>
  127. </choices>
  128. </select1>
  129. </group>
  130. <caption id="caption1" class="tit_2" style="left:5px; top:35px; width:95px; height:14px; ">부서 리스트</caption>
  131. <line id="line1" class="line_1" style="x1:0px; y1:50px; x2:580px; y2:50px; "/>
  132. <datagrid id="grd_deptlist" nodeset="/root/main/deptcodelist" caption="instcd^기관명^부서코드^부서명" colsep="^" colwidth="26, 55, 137, 423" dataheight="23" defaultrows="0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:55px; width:580px; height:465px; ">
  133. <col ref="instcd" visibility="hidden"/>
  134. <col ref="instsnm" style="text-align:center; "/>
  135. <col ref="deptcd" style="text-align:center; "/>
  136. <col ref="depthngnm"/>
  137. <script type="javascript" ev:event="ondblclick">
  138. <![CDATA[
  139. if( grd_deptlist.isCell(event.target) && grd_deptlist.row >= grd_deptlist.fixedRows )
  140. {
  141. btn_confirm.dispatch("DOMActivate");
  142. }
  143. ]]>
  144. </script>
  145. <script type="javascript" ev:event="onaftersort">
  146. <![CDATA[
  147. grd_deptlist.gridToInstance();
  148. ]]>
  149. </script>
  150. </datagrid>
  151. </group>
  152. <group id="group1" scroll="auto" style="left:0px; top:521px; width:580px; height:27px; ">
  153. <button id="btn_confirm" class="btn4_letter2" style="left:461px; top:2px; width:56px; height:22px; ">
  154. <caption>확인</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. misfPopUpListReturn(grd_deptlist);
  158. ]]>
  159. </script>
  160. </button>
  161. <button id="btn_cancel" class="btn4_letter2" style="left:520px; top:2px; width:56px; height:22px; ">
  162. <caption>취소</caption>
  163. <script type="javascript" ev:event="DOMActivate">
  164. <![CDATA[
  165. misfPopUpListCancel();
  166. ]]>
  167. </script>
  168. </button>
  169. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
  170. </group>
  171. </xhtml:body>
  172. </xhtml:html>