SPRSD00150_소분류코드HELP.xrw 11 KB

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