SPMNG00300_CSR청구부서코드HELP.xrw 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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>CSR청구부서코드 HELP</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <deptcodelist>
  11. <deptcd/>
  12. <depthngnm/>
  13. <csrreqdeptcd2/>
  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. <deptcd/>
  30. <instcd/>
  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.removeNodeset(grd_deptlist.nodeset);
  43. var flag = model.property("flag"); //한글 영문 구분을 가져온다.
  44. if(flag == "1") {
  45. model.setValue(rdo_refcond.attribute("ref"), "deptcd");
  46. model.setValue("/root/send/deptref/refcond", "deptnm");
  47. } else {
  48. model.setValue(rdo_refcond.attribute("ref"), "deptnm");
  49. }
  50. model.setValue("/root/send/deptref/instcd", model.property("instcd"));
  51. model.refresh();
  52. // rdo_refcond.value == "deptnm" ;
  53. ipt_refcond.attribute("imemode") = "hangul";
  54. // rdo_refcond.select(1);
  55. model.setFocus("ipt_refcond");
  56. if(instance1.selectNodes("/root/target/validation/deptcodelist").length == 0)
  57. {
  58. btn_search.dispatch("DOMActivate");
  59. }
  60. model.refresh();
  61. ]]>
  62. </script>
  63. <submission id="TRMNG00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptref" resultref="/root/main/deptcodelist"/>
  64. </model>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  68. </xhtml:head>
  69. <xhtml:body pagewidth="600" pageheight="550" guideline="1,534; 2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  70. <group id="group3" scroll="auto" style="left:0px; top:0px; width:580px; height:520px; ">
  71. <group id="group2" style="left:0px; top:0px; width:580px; height:30px; ">
  72. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:580px; height:29px; "/>
  73. <input id="ipt_refcond" ref="/root/send/deptref/deptnm" class="input_s_essential" style="left:219px; top:6px; width:99px; height:19px; ">
  74. <script type="javascript" ev:event="onkeyup">
  75. <![CDATA[
  76. inputEnterKey("btn_search", "DOMActivate");
  77. ]]>
  78. </script>
  79. </input>
  80. <button id="btn_search" class="btn1_letter2" style="left:519px; top:4px; width:56px; height:22px; ">
  81. <caption>조회</caption>
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. if(rdo_refcond.value == "deptnm") {
  85. model.setValue("/root/send/deptref/deptnm",ipt_refcond.label);
  86. }
  87. else {
  88. model.setValue("/root/send/deptref/deptcd",ipt_refcond.label);
  89. }
  90. submit("TRMNG00303");
  91. ]]>
  92. </script>
  93. </button>
  94. <line id="line13" class="line_4" style="x1:515px; y1:0px; x2:515px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  95. <caption id="caption2" class="search_name" style="left:135px; top:6px; width:86px; height:17px; ">조회조건:</caption>
  96. <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; ">
  97. <choices>
  98. <itemset nodeset="/root/init/refcond">
  99. <label ref="label"/>
  100. <value ref="value"/>
  101. </itemset>
  102. </choices>
  103. <script type="javascript" ev:event="xforms-select">
  104. <![CDATA[
  105. if(rdo_refcond.value == "deptnm") {
  106. ipt_refcond.attribute("imemode") = "hangul";
  107. }
  108. else if (rdo_refcond.value == "deptcd") {
  109. ipt_refcond.attribute("imemode") = "disabled";
  110. }
  111. else {
  112. ipt_refcond.attribute("imemode") = "disabled";
  113. }
  114. model.setFocus("ipt_refcond");
  115. ]]>
  116. </script>
  117. </select1>
  118. </group>
  119. <caption id="caption1" class="tit_2" style="left:5px; top:35px; width:95px; height:14px; ">부서 리스트</caption>
  120. <line id="line1" class="line_1" style="x1:0px; y1:50px; x2:580px; y2:50px; "/>
  121. <datagrid id="grd_deptlist" nodeset="/root/main/deptcodelist" caption="부서코드^부서명^청구부서구분" colsep="^" colwidth="128, 409, 100" dataheight="23" defaultrows="0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:55px; width:580px; height:465px; ">
  122. <col ref="deptcd"/>
  123. <col ref="depthngnm"/>
  124. <col ref="csrreqdeptcd2"/>
  125. <script type="javascript" ev:event="ondblclick">
  126. <![CDATA[
  127. if( grd_deptlist.isCell(event.target) && grd_deptlist.row >= grd_deptlist.fixedRows )
  128. {
  129. btn_confirm.dispatch("DOMActivate");
  130. }
  131. ]]>
  132. </script>
  133. <script type="javascript" ev:event="onaftersort">
  134. <![CDATA[
  135. grd_deptlist.gridToInstance();
  136. ]]>
  137. </script>
  138. </datagrid>
  139. </group>
  140. <group id="group1" scroll="auto" style="left:0px; top:521px; width:580px; height:27px; ">
  141. <button id="btn_confirm" class="btn4_letter2" style="left:461px; top:2px; width:56px; height:22px; ">
  142. <caption>확인</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. var deptcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));
  146. var deptnm = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("depthngnm"));
  147. var csrreqdeptcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("csrreqdeptcd2"));
  148. model.property("deptcd") = deptcd;
  149. model.property("deptnm") = deptnm;
  150. model.property("csrreqdeptcd") = csrreqdeptcd;
  151. window.close();
  152. ]]>
  153. </script>
  154. </button>
  155. <button id="btn_cancel" class="btn4_letter2" style="left:520px; top:2px; width:56px; height:22px; ">
  156. <caption>취소</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. misfPopUpListCancel();
  160. ]]>
  161. </script>
  162. </button>
  163. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
  164. </group>
  165. </xhtml:body>
  166. </xhtml:html>