SPRPZ00210_평가부서코드HELP.xrw 6.9 KB

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