SPRPE01002_부서코드HELP.xrw 6.6 KB

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