SPRPZ00500_선택형부서코드HELP.xrw 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <deptcodelist>
  11. <check/>
  12. <deptcd/>
  13. <depthngnm/>
  14. </deptcodelist>
  15. </main>
  16. <target/>
  17. <init>
  18. <refcond>
  19. <label>부서코드</label>
  20. <value>deptcd</value>
  21. <label>부서명</label>
  22. <value>deptnm</value>
  23. </refcond>
  24. </init>
  25. <send>
  26. <deptref>
  27. <refcond/>
  28. <deptnm/>
  29. <instcd/>
  30. <deptcd/>
  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. model.copyNode("root/main","/root/target/validation");
  43. model.setValue("/root/send/deptref/instcd",model.getValue("/root/target/defaultvalue/instcd"));
  44. rdo_refcond.value = "deptnm";
  45. model.setFocus("ipt_refcond");
  46. ]]>
  47. </script>
  48. <submission id="TRRPZ00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptref" resultref="/root/main"/>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  53. </xhtml:head>
  54. <xhtml:body pagewidth="620" pageheight="560" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  55. <group id="group3" scroll="auto" style="left:8px; top:0px; width:580px; height:522px; ">
  56. <group id="group2" style="left:0px; top:5px; width:580px; height:35px; ">
  57. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:580px; height:35px; "/>
  58. <input id="ipt_refcond" ref="/root/send/deptref/deptnm" class="input_s_essential" style="left:252px; top:8px; width:99px; height:19px; ">
  59. <script type="javascript" ev:event="onkeyup">
  60. <![CDATA[
  61. inputEnterKey("btn_search", "DOMActivate");
  62. ]]>
  63. </script>
  64. </input>
  65. <button id="btn_search" class="btn1_letter2" style="left:509px; top:7px; width:56px; height:22px; ">
  66. <caption>조회</caption>
  67. <script type="javascript" ev:event="DOMActivate">
  68. <![CDATA[
  69. if(rdo_refcond.value == "deptnm") {
  70. model.setValue("/root/send/deptref/deptnm",ipt_refcond.label);
  71. }
  72. else {
  73. model.setValue("/root/send/deptref/deptcd",ipt_refcond.label);
  74. }
  75. submit("TRRPZ00501");
  76. ]]>
  77. </script>
  78. </button>
  79. <line id="line13" class="line_4" style="x1:494px; y1:3px; x2:494px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  80. <caption id="caption2" class="search_name" style="left:166px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
  81. <select1 id="rdo_refcond" ref="/root/send/deptref/refcond" class="radio_search" overflow="visible" appearance="full" cols="2" style="left:15; top:9; width:125px; height:20px; border-style:solid; ">
  82. <choices>
  83. <itemset nodeset="/root/init/refcond">
  84. <label ref="label"/>
  85. <value ref="value"/>
  86. </itemset>
  87. </choices>
  88. <script type="javascript" ev:event="xforms-select">
  89. <![CDATA[
  90. if(rdo_refcond.value == "deptnm") {
  91. ipt_refcond.attribute("imemode") = "hangul";
  92. }
  93. else if (rdo_refcond.value == "deptcd") {
  94. ipt_refcond.attribute("imemode") = "disabled";
  95. }
  96. else {
  97. ipt_refcond.attribute("imemode") = "disabled";
  98. }
  99. model.setFocus("ipt_refcond");
  100. ]]>
  101. </script>
  102. </select1>
  103. </group>
  104. <caption id="caption1" class="tit_2" style="left:5px; top:49px; width:95px; height:13px; ">부서 리스트</caption>
  105. <line id="line1" class="line_1" style="x1:0px; y1:64px; x2:580px; y2:64px; "/>
  106. <datagrid id="grd_deptlist" nodeset="/root/main/deptcodelist" caption="선택^부서코드^부서명" colsep="^" colwidth="50, 148, 324" dataheight="23" defaultrows="0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:69px; width:580px; height:448px; ">
  107. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  108. <col ref="deptcd"/>
  109. <col ref="depthngnm"/>
  110. <script type="javascript" ev:event="ondblclick">
  111. <![CDATA[
  112. if( grd_deptlist.isCell(event.target) && grd_deptlist.row >= grd_deptlist.fixedRows )
  113. {
  114. grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("check")) = "Y";
  115. btn_confirm.dispatch("DOMActivate");
  116. }
  117. ]]>
  118. </script>
  119. <script type="javascript" ev:event="onaftersort">
  120. <![CDATA[
  121. grd_deptlist.gridToInstance();
  122. ]]>
  123. </script>
  124. </datagrid>
  125. </group>
  126. <group id="group1" scroll="auto" style="left:8px; top:521px; width:580px; height:27px; ">
  127. <button id="btn_confirm" class="btn4_letter2" style="left:466px; top:5px; width:56px; height:22px; ">
  128. <caption>확인</caption>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. misfPopUpCheckedListReturn(grd_deptlist, grd_deptlist.colRef("check"));
  132. ]]>
  133. </script>
  134. </button>
  135. <button id="btn_cancel" class="btn4_letter2" style="left:524px; top:5px; width:56px; height:22px; ">
  136. <caption>취소</caption>
  137. <close ev:event="DOMActivate"/>
  138. </button>
  139. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:580; y2:0px; "/>
  140. </group>
  141. </xhtml:body>
  142. </xhtml:html>