SPRSD00140_중분류코드HELP.xrw 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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>중분류코드 검색화면</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <mdllist/>
  11. </main>
  12. <target>
  13. <defaultvalue>
  14. <goodflag>A</goodflag>
  15. <lrgcd>A</lrgcd>
  16. <lrgnm/>
  17. </defaultvalue>
  18. </target>
  19. <init>
  20. <refcond>
  21. <label>중분류코드</label>
  22. <value>mdlcd</value>
  23. <label>중분류명</label>
  24. <value>mdlnm</value>
  25. </refcond>
  26. </init>
  27. <send>
  28. <refcond/>
  29. <mdlnm/>
  30. <mdlcd/>
  31. <lrgcd/>
  32. <goodflag/>
  33. <lrgnm/>
  34. </send>
  35. </root>
  36. </instance>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. misfComboComCdList('R0025', cmb_goodflag); //물품구분
  40. model.setValue("/root/send/goodflag", model.getValue(PURTARGET_NODE + "/goodflag"));
  41. model.setValue("/root/send/lrgcd", model.getValue(PURTARGET_NODE + "/lrgcd"));
  42. model.setValue("/root/send/lrgnm", model.getValue(PURTARGET_NODE + "/lrgnm"));
  43. rdo_refcond.select(1);
  44. btn_search.dispatch("DOMActivate");
  45. model.setFocus("ipt_refcond");
  46. ]]>
  47. </script>
  48. <submission id="TRRSD00141" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  52. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  54. </xhtml:head>
  55. <xhtml:body pagewidth="731" pageheight="545" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  56. <group id="group3" scroll="auto" style="left:8px; top:0px; width:700px; height:510px; ">
  57. <group id="group2" style="left:0px; top:5px; width:700px; height:61px; ">
  58. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:700px; height:61px; "/>
  59. <input id="ipt_refcond" ref="/root/send/mdlnm" class="input_s_essential" style="left:367px; top:34px; width:212px; height:19px; ">
  60. <script type="javascript" ev:event="onkeyup">
  61. <![CDATA[
  62. inputEnterKey("btn_search", "DOMActivate");
  63. ]]>
  64. </script>
  65. </input>
  66. <button id="btn_search" class="btn1_letter2" style="left:629px; top:19px; width:56px; height:22px; ">
  67. <caption>조회</caption>
  68. <script type="javascript" ev:event="DOMActivate">
  69. <![CDATA[
  70. if(rdo_refcond.value == "mdlnm") {
  71. model.setValue("/root/send/mdlnm",ipt_refcond.label);
  72. }
  73. else {
  74. model.setValue("/root/send/mdlcd",ipt_refcond.label);
  75. }
  76. submit("TRRSD00141");
  77. ]]>
  78. </script>
  79. </button>
  80. <line id="line13" class="line_4" style="x1:614px; y1:5px; x2:614px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  81. <caption id="caption2" class="search_name" style="left:283px; top:35; width:86px; height:17px; ">조회조건 :</caption>
  82. <select1 id="rdo_refcond" ref="/root/send/refcond" class="radio_search" overflow="visible" appearance="full" cols="2" style="left:100; top:35; width:147px; height:20px; border-style:solid; ">
  83. <choices>
  84. <itemset nodeset="/root/init/refcond">
  85. <label ref="label"/>
  86. <value ref="value"/>
  87. </itemset>
  88. </choices>
  89. <script type="javascript" ev:event="xforms-select">
  90. <![CDATA[
  91. if(rdo_refcond.value == "mdlnm") {
  92. ipt_refcond.attribute("imemode") = "hangul";
  93. }
  94. else if (rdo_refcond.value == "mdlcd") {
  95. ipt_refcond.attribute("imemode") = "disabled";
  96. }
  97. else {
  98. ipt_refcond.attribute("imemode") = "disabled";
  99. }
  100. model.setFocus("ipt_refcond");
  101. ]]>
  102. </script>
  103. </select1>
  104. <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_s_essential" navindex="1" appearance="minimal" style="left:100; top:8px; width:147px; height:19px; ">
  105. <choices>
  106. <itemset nodeset="/root/init/goodflag">
  107. <label ref="cdnm"/>
  108. <value ref="cdid"/>
  109. </itemset>
  110. </choices>
  111. <script type="javascript" ev:event="xforms-value-changed">
  112. <![CDATA[
  113. btn_search.dispatch("DOMActivate");
  114. ]]>
  115. </script>
  116. </select1>
  117. <caption id="caption3" class="search_name" style="left:15; top:35; width:86px; height:17px; ">조회구분 :</caption>
  118. <caption id="caption4" class="search_name" style="left:15; top:9; width:86px; height:17px; ">물품구분 :</caption>
  119. <caption id="caption5" class="search_name" style="left:284px; top:9; width:86px; height:17px; ">대 분 류 :</caption>
  120. <input id="ipt_lrgcd_search" ref="/root/send/lrgcd" class="input_search" style="left:367px; top:8px; width:58px; height:19px; ">
  121. <script type="javascript" ev:event="xforms-value-changed">
  122. <![CDATA[
  123. if(ipt_lrgcd_search.value != ""){
  124. rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm",
  125. "lrgcd," + cmb_goodflag.value +"," + ipt_lrgcd_search.value + ","
  126. ,"","lrgcd,lrgnm" ,ipt_lrgcd_search,"SPRSD00130","goodflag","cmb_goodflag_search");
  127. }else{
  128. ipt_lrgnm_search.value = "";
  129. }
  130. model.refresh();
  131. btn_search.dispatch("DOMActivate");
  132. ]]>
  133. </script>
  134. </input>
  135. <button id="btn_lrgcd_search" class="icon_search" style="left:427px; top:9px; width:16px; height:16px; ">
  136. <caption/>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. rszfOpenPopUpListByWndName(ipt_lrgcd_search,"","lrgcd,lrgnm","SPRSD00130","goodflag","cmb_goodflag");
  140. btn_search.dispatch("DOMActivate");
  141. ]]>
  142. </script>
  143. </button>
  144. <input id="ipt_lrgnm_search" ref="/root/send/lrgnm" class="input_search" style="left:446px; top:8px; width:133px; height:19px; ">
  145. <script type="javascript" ev:event="xforms-value-changed">
  146. <![CDATA[
  147. if(ipt_lrgnm_search.value != ""){
  148. rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm",
  149. "lrgnm," + cmb_goodflag.value +",," + ipt_lrgnm_search.value
  150. ,"","lrgcd,lrgnm" ,ipt_lrgcd_search,"SPRSD00130","goodflag","cmb_goodflag_search");
  151. }else{
  152. ipt_lrgcd_search.value = "";
  153. }
  154. model.refresh();
  155. btn_search.dispatch("DOMActivate");
  156. ]]>
  157. </script>
  158. </input>
  159. </group>
  160. <caption id="caption1" class="tit_2" style="left:5px; top:75px; width:145px; height:13px; ">중분류리스트</caption>
  161. <line id="line1" class="line_1" style="x1:0px; y1:89px; x2:700px; y2:89px; "/>
  162. <datagrid id="grd_mdlllist" nodeset="/root/main/mdllist" class="grd_mdlllist" caption="중분류코드^중분류명^물품구분^대분류코드^계정코드^비용계정" colsep="^" colwidth="120, 216,120,120, 130,110" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:94px; width:700px; height:411px; ">
  163. <col ref="mdlcd"/>
  164. <col ref="mdlnm"/>
  165. <col ref="goodflag" visibility="hidden"/>
  166. <col ref="lrgcd" visibility="hidden"/>
  167. <col ref="wInacnt"/>
  168. <col ref="amtacnt"/>
  169. <script type="javascript" ev:event="ondblclick">
  170. <![CDATA[
  171. if( grd_mdlllist.isCell( event.target ) && grd_mdlllist.row >= grd_mdlllist.fixedRows ) {
  172. btn_confirm.dispatch("DOMActivate");
  173. }
  174. ]]>
  175. </script>
  176. <script type="javascript" ev:event="onaftersort">
  177. <![CDATA[
  178. grd_mdlllist.gridToInstance();
  179. ]]>
  180. </script>
  181. </datagrid>
  182. </group>
  183. <group id="group1" scroll="auto" style="left:8px; top:509px; width:700px; height:27px; ">
  184. <button id="btn_confirm" class="btn4_letter2" style="left:587px; top:5px; width:56px; height:22px; ">
  185. <caption>확인</caption>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. misfPopUpListReturn(grd_mdlllist);
  189. ]]>
  190. </script>
  191. </button>
  192. <button id="btn_cancel" class="btn4_letter2" style="left:644px; top:5px; width:56px; height:22px; ">
  193. <caption>취소</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. window.close();
  197. ]]>
  198. </script>
  199. </button>
  200. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:700; y2:0px; "/>
  201. </group>
  202. </xhtml:body>
  203. </xhtml:html>