SPAVB00200_묶음선택.xrw 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPAV00100.xrw
  4. * 설 명 : 처리&물품 관리
  5. * 설 계 자 : 손승현
  6. * 작 성 자 : 손승현
  7. * 작 성 일 : 2010.07.28
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>처리/물품 선택</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <bdcdlstmst>
  20. <item>
  21. <bdlcd/>
  22. <bdlnm/>
  23. <useyn/>
  24. </item>
  25. </bdcdlstmst>
  26. <bdcdlstdtl>
  27. <item>
  28. <sel/>
  29. <bandmcd/>
  30. <banddcd/>
  31. <banddnm/>
  32. <gbdcd/>
  33. <qty/>
  34. <useyn/>
  35. </item>
  36. </bdcdlstdtl>
  37. </main>
  38. <send>
  39. <srchbdlcd/>
  40. <srchbdlnm/>
  41. <bdlcd/>
  42. <bandcd/>
  43. <useyn/>
  44. </send>
  45. <init>
  46. <combobscdlst>
  47. </combobscdlst>
  48. </init>
  49. <temp>
  50. <list/>
  51. </temp>
  52. </root>
  53. </instance>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript" src="../../../ast/tissuebankbaseweb/js/tissuebankcombolist.js"/>
  57. <script type="javascript" ev:event="xforms-ready">
  58. <![CDATA[
  59. fGetComboInit();
  60. fGetBdCdListMst();
  61. // 그리드 체크박스
  62. grd_choices.fixedcellcheckbox(0 , 1) = true;
  63. model.refresh();
  64. ]]>
  65. </script>
  66. <submission id="TRAVB00001"/>
  67. <submission id="TRAVB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" replace="instance" resultref="root/main/bdcdlstmst"/>
  68. <submission id="TRAVB00402" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" replace="instance" resultref="root/main/bdcdlstdtl"/>
  69. </model>
  70. <script type="javascript">
  71. <![CDATA[
  72. /**
  73. * 콤보 초기화
  74. */
  75. function fGetComboInit(){
  76. // 콤보내용 불러오기
  77. tbGetBscdList( new Array("C04","C06"), new Array("/root/init/combobscdlst", "/root/init/combobscdlst") );
  78. // 코드없는값 첫번째 내용 삭제
  79. model.removeNodeset("/root/init/combobscdlst/C04[" + 1 + "]");
  80. model.refresh();
  81. }
  82. /**
  83. * 묶음코드 리스트 조회
  84. */
  85. function fGetBdCdListMst(){
  86. // 조회 Node Clear
  87. model.removeNodeset("/root/main/bdcdlstmst/item");
  88. model.removeNodeset("/root/main/bdcdlstdtl/item");
  89. model.refresh();
  90. // 조회값 setting
  91. model.setValue("root/send/bandcd", "-");
  92. model.setValue("/root/send/useyn", "Y");
  93. // 조회 Call
  94. submit("TRAVB00401");
  95. }
  96. /**
  97. * 상세코드 리스트 조회
  98. */
  99. function fGetBdCdListDtl(){
  100. var idx = grd_bdllst.row;
  101. if( idx < 1) return ;
  102. // 조회 Node Clear
  103. model.removeNodeset("/root/main/bdcdlstdtl/item");
  104. model.refresh();
  105. // 조회값 setting
  106. model.setValue("root/send/bdlcd", model.getValue(grd_bdllst.nodeset + "[" + idx + "]/bdlcd" ) );
  107. model.setValue("root/send/bandcd", "" );
  108. model.setValue("/root/send/useyn", "Y");
  109. // 조회 Call
  110. submit("TRAVB00402");
  111. }
  112. /**
  113. * Open 화면에 값 넘기기
  114. */
  115. function fSetData(){
  116. if( checkOpener() ){
  117. opener.model.makeNode("/root/temp/okflag");
  118. opener.model.setValue("/root/temp/okflag", "");
  119. var vRet = 0;
  120. model.removeNodeset("/root/temp/list" );
  121. vRet = fSetTestCd();
  122. // Open 화면에 Check 값설정
  123. if( vRet == 1) {
  124. opener.model.setValue("/root/temp/okflag", "ok");
  125. } else {
  126. opener.model.setValue("/root/temp/okflag", "");
  127. }
  128. }
  129. }
  130. /**
  131. * 추가검사 및 검사코드선택 시 데이터 setting
  132. */
  133. function fSetTestCd(){
  134. var nodeList = instance1.selectNodes(grd_choices.nodeset + "[sel='Y']");
  135. if( nodeList.length > 0) {
  136. var rCSV = getNodeListCSV(nodeList);
  137. setCSVToNode("/root/temp", rCSV);
  138. // Opener Node에 복사
  139. copyNodeListType("/root/temp/templst", "/root/temp/list", "replace", opener.model, model );
  140. }
  141. else return 0;
  142. return 1;
  143. }
  144. ]]>
  145. </script>
  146. </xhtml:head>
  147. <xhtml:body pagewidth="590" pageheight="780" guideline="1,1194;1,560;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  148. <group id="group4" scroll="auto" style="left:0px; top:741px; width:555px; height:28px; ">
  149. <button id="button9" class="btn4_letter2" style="left:492px; top:3px; width:56px; height:22px; ">
  150. <caption>취소</caption>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. if( checkOpener() ) {
  154. opener.model.makeNode("/root/temp/okflag");
  155. opener.model.setValue("/root/temp/okflag", "");
  156. }
  157. window.close();
  158. ]]>
  159. </script>
  160. </button>
  161. <button id="btn_cfm" class="btn4_letter2" style="left:433px; top:3px; width:56px; height:22px; ">
  162. <caption>확인</caption>
  163. <script type="javascript" ev:event="DOMActivate">
  164. <![CDATA[
  165. fSetData();
  166. window.close();
  167. ]]>
  168. </script>
  169. </button>
  170. </group>
  171. <group id="grp_tle" style="left:0px; top:0px; width:555px; height:13px; ">
  172. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:14px; ">묶음 관리</caption>
  173. </group>
  174. <group id="group1" scroll="auto" style="left:0px; top:13px; width:555px; height:727px; ">
  175. <group id="group5" style="left:0px; top:10px; width:555px; height:38px; vertical-align:top; ">
  176. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:554px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  177. <button id="btn_sel" class="btn1_letter2" style="left:490px; top:7px; width:56px; height:22px; ">
  178. <caption>조회</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. fGetBdCdListMst();
  182. ]]>
  183. </script>
  184. </button>
  185. <caption id="caption4" class="search_name" style="left:8px; top:9px; width:87px; height:17px; ">조회코드 :</caption>
  186. <caption id="caption7" class="search_name" style="left:209px; top:9px; width:87px; height:17px; ">조회내용 :</caption>
  187. <input id="ipt_partcd" ref="/root/send/srchbdlcd" class="input_search" style="left:95px; top:8px; width:107px; height:19px; "/>
  188. <input id="ipt_partnm" ref="/root/send/srchbdlnm" class="input_search" style="left:300px; top:8px; width:161px; height:19px; "/>
  189. </group>
  190. <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:555px; y2:71px; "/>
  191. <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:100px; height:13px; ">묶음코드 List</caption>
  192. <datagrid id="grd_bdllst" nodeset="/root/main/bdcdlstmst/item" caption="묶음코드^묶음명" colsep="^" colwidth="100, 404" dataheight="25" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:74px; width:555px; height:216px; ">
  193. <col ref="bdlcd"/>
  194. <col ref="bdlnm"/>
  195. <script type="javascript" ev:event="onclick">
  196. <![CDATA[
  197. fGetBdCdListDtl();
  198. ]]>
  199. </script>
  200. </datagrid>
  201. <datagrid id="grd_choices" nodeset="/root/main/bdcdlstdtl/item" caption="선택^밴드^상세코드^상세코드명^구분^수량" colsep="^" colwidth="55, 70, 60, 190, 90, 50" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:314px; width:555px; height:413px; ">
  202. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  203. <col disabled="true" ref="bandmcd" type="combo">
  204. <choices>
  205. <itemset nodeset="/root/init/combobscdlst/C04">
  206. <label ref="cdnm"/>
  207. <value ref="cdid"/>
  208. </itemset>
  209. </choices>
  210. </col>
  211. <col disabled="true" ref="banddcd" type="output"/>
  212. <col ref="banddnm" style="text-align:left; "/>
  213. <col disabled="true" ref="gbdcd" type="combo">
  214. <choices>
  215. <itemset nodeset="/root/init/combobscdlst/C06">
  216. <label ref="cdnm"/>
  217. <value ref="cdid"/>
  218. </itemset>
  219. </choices>
  220. </col>
  221. <col ref="qty" style="text-align:right; "/>
  222. </datagrid>
  223. <caption id="caption2" class="tit_2" style="left:5px; top:294px; width:100px; height:13px; ">상세코드 List</caption>
  224. <line id="line1" class="line_1" style="x1:0px; y1:310px; x2:555px; y2:311px; "/>
  225. </group>
  226. </xhtml:body>
  227. </xhtml:html>