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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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>CSR청구부서코드 HELP</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <deptcodelist>
  11. <chkyn/>
  12. <deptcd/>
  13. <depthngnm/>
  14. <csrreqdeptcd2/>
  15. </deptcodelist>
  16. </main>
  17. <target/>
  18. <init>
  19. <refcond>
  20. <label>부서코드</label>
  21. <value>deptcd</value>
  22. <label>부서명</label>
  23. <value>deptnm</value>
  24. </refcond>
  25. </init>
  26. <send>
  27. <deptref>
  28. <refcond/>
  29. <deptnm/>
  30. <deptcd/>
  31. <instcd/>
  32. </deptref>
  33. <comcdref>
  34. <cdgrupid/>
  35. <cdid/>
  36. <cdnm/>
  37. </comcdref>
  38. </send>
  39. </root>
  40. </instance>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. misfGridInit(grd_deptlist);
  44. model.copyNode("root/main","/root/target/validation");
  45. //alert(model.getValue("/root/target/defaultvalue/instcd"));
  46. model.setValue("/root/send/deptref/instcd",model.getValue("/root/target/defaultvalue/instcd"));
  47. model.setValue("/root/send/deptref/refcond","deptnm");
  48. model.refresh();
  49. // rdo_refcond.value == "deptnm" ;
  50. ipt_refcond.attribute("imemode") = "hangul";
  51. // rdo_refcond.select(1);
  52. model.setFocus("ipt_refcond");
  53. if(instance1.selectNodes("/root/target/validation/deptcodelist").length == 0)
  54. {
  55. btn_search.dispatch("DOMActivate");
  56. }
  57. model.refresh();
  58. ]]>
  59. </script>
  60. <submission id="TRRPZ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptref" resultref="/root/main"/>
  61. </model>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  65. </xhtml:head>
  66. <xhtml:body pagewidth="600" pageheight="550" guideline="1,534; 2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  67. <group id="group3" scroll="auto" style="left:0px; top:0px; width:580px; height:520px; ">
  68. <group id="group2" style="left:0px; top:0px; width:580px; height:30px; ">
  69. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:580px; height:29px; "/>
  70. <input id="ipt_refcond" ref="/root/send/deptref/deptnm" class="input_s_essential" style="left:219px; top:6px; width:99px; height:19px; ">
  71. <script type="javascript" ev:event="onkeyup">
  72. <![CDATA[
  73. inputEnterKey("btn_search", "DOMActivate");
  74. ]]>
  75. </script>
  76. </input>
  77. <button id="btn_search" class="btn1_letter2" style="left:519px; top:4px; width:56px; height:22px; ">
  78. <caption>조회</caption>
  79. <script type="javascript" ev:event="DOMActivate">
  80. <![CDATA[
  81. if(rdo_refcond.value == "deptnm") {
  82. model.setValue("/root/send/deptref/deptnm",ipt_refcond.label);
  83. }
  84. else {
  85. model.setValue("/root/send/deptref/deptcd",ipt_refcond.label);
  86. }
  87. submit("TRRPZ00201");
  88. ]]>
  89. </script>
  90. </button>
  91. <line id="line13" class="line_4" style="x1:515px; y1:0px; x2:515px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  92. <caption id="caption2" class="search_name" style="left:135px; top:6px; width:86px; height:17px; ">조회조건:</caption>
  93. <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; ">
  94. <choices>
  95. <itemset nodeset="/root/init/refcond">
  96. <label ref="label"/>
  97. <value ref="value"/>
  98. </itemset>
  99. </choices>
  100. <script type="javascript" ev:event="xforms-select">
  101. <![CDATA[
  102. if(rdo_refcond.value == "deptnm") {
  103. ipt_refcond.attribute("imemode") = "hangul";
  104. }
  105. else if (rdo_refcond.value == "deptcd") {
  106. ipt_refcond.attribute("imemode") = "disabled";
  107. }
  108. else {
  109. ipt_refcond.attribute("imemode") = "disabled";
  110. }
  111. model.setFocus("ipt_refcond");
  112. ]]>
  113. </script>
  114. </select1>
  115. </group>
  116. <caption id="caption1" class="tit_2" style="left:5px; top:35px; width:95px; height:14px; ">부서 리스트</caption>
  117. <line id="line1" class="line_1" style="x1:0px; y1:50px; x2:580px; y2:50px; "/>
  118. <datagrid id="grd_deptlist" nodeset="/root/main/deptcodelist" caption="^부서코드^부서명" colsep="^" colwidth="23, 128, 391" dataheight="23" defaultrows="0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:55px; width:580px; height:465px; ">
  119. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  120. <col ref="deptcd"/>
  121. <col ref="depthngnm"/>
  122. <script type="javascript" ev:event="ondblclick">
  123. <![CDATA[
  124. if( grd_deptlist.isCell(event.target) && grd_deptlist.row >= grd_deptlist.fixedRows )
  125. {
  126. btn_confirm.dispatch("DOMActivate");
  127. }
  128. ]]>
  129. </script>
  130. <script type="javascript" ev:event="onaftersort">
  131. <![CDATA[
  132. grd_deptlist.gridToInstance();
  133. ]]>
  134. </script>
  135. </datagrid>
  136. </group>
  137. <group id="group1" scroll="auto" style="left:0px; top:521px; width:580px; height:27px; ">
  138. <button id="btn_confirm" class="btn4_letter2" style="left:461px; top:2px; width:56px; height:22px; ">
  139. <caption>확인</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. if(grd_deptlist.rows - grd_deptlist.fixedRows == 0)
  143. {
  144. messageBox("적용할 내역이","I004");
  145. window.close();
  146. return;
  147. }
  148. var iParam = model.getValue(grd_deptlist.nodeset);
  149. var nodelist = instance1.selectNodes(grd_deptlist.nodeset + "[chkyn='Y']");
  150. var rCVS = getNodeListCSV(nodelist);
  151. if ( checkOpener() ) {
  152. opener.javascript.setParameter("SPRPZ00230_", rCVS);
  153. } else {
  154. var rtn = messageBox("상위화면을 찾을 수", "E001");
  155. }
  156. window.close();
  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>