SPRSD00310_멸균물품상세내역HELP.xrw 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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. <rscmdiltlist/>
  11. <dinfgoodlist/>
  12. </main>
  13. <send>
  14. <instcd/>
  15. <dinfkind/>
  16. <dinfdeptgubn/>
  17. </send>
  18. <init>
  19. <dinfkind>
  20. <label>고압증기</label>
  21. <value>1</value>
  22. <label>건열</label>
  23. <value>2</value>
  24. <label>EO gas</label>
  25. <value>3</value>
  26. <label>STERRAD</label>
  27. <value>4</value>
  28. </dinfkind>
  29. <dinfdeptgubn>
  30. <label>외래</label>
  31. <value>1</value>
  32. <label>CSR</label>
  33. <value>2</value>
  34. <label>전체</label>
  35. <value/>
  36. </dinfdeptgubn>
  37. </init>
  38. <target>
  39. <defaultvalue>
  40. <instcd/>
  41. <dinfkind/>
  42. </defaultvalue>
  43. </target>
  44. <temp/>
  45. </root>
  46. </instance>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. misfMsterDetailSet(grd_rscmdiltlist, null,"TRRSD00311","N"); //마스터 설정
  50. misfComboComCdList('Z0007', cmb_instcd); //기관코드
  51. misfGridInit(grd_rscmdiltlist);
  52. grd_rscmdiltlist.fixedcellcheckbox(0, grd_rscmdiltlist.colRef("chk")) = true;
  53. grd_rscmdiltlist.mergecol(grd_rscmdiltlist.colRef("chk")) = false;
  54. if(model.getValue("/root/target/defaultvalue/instcd") != "")
  55. {
  56. cmb_instcd.disabled = true;
  57. model.setValue("/root/send/instcd", model.getValue("/root/target/defaultvalue/instcd"));
  58. }
  59. if(model.getValue("/root/target/defaultvalue/dinfkind") != "")
  60. {
  61. rdo_dinfkind.disabled = true;
  62. model.setValue("/root/send/dinfkind", model.getValue("/root/target/defaultvalue/dinfkind"));
  63. }
  64. model.refresh();
  65. btn_search.dispatch("DOMActivate");
  66. ]]>
  67. </script>
  68. <submission id="TRRSD00311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rscmdiltlist"/>
  69. </model>
  70. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  72. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript">
  75. <![CDATA[
  76. // 부모 윈도우에 데이터 넘기기 및 데이터 컨트롤.
  77. // 2008.01.03. 송광호.
  78. function fSetDataControl()
  79. {
  80. var result = '';
  81. for(var i = grd_rscmdiltlist.rows; i > (grd_rscmdiltlist.fixedRows-1); i--)
  82. {
  83. if(grd_rscmdiltlist.valueMatrix(i, grd_rscmdiltlist.colRef("chk")) == 'Y' )
  84. {
  85. if(result != "")
  86. {
  87. result = "\n" + result;
  88. }
  89. result = grd_rscmdiltlist.valueMatrix(i, grd_rscmdiltlist.colRef("dinfgood")) + result ;
  90. }
  91. }
  92. if(result == '')
  93. {
  94. result = grd_rscmdiltlist.valueMatrix( grd_rscmdiltlist.row, grd_rscmdiltlist.colRef("dinfgood"));
  95. }
  96. ipt_dinfgoodlist.value = result;
  97. // 부모 윈도우에게 데이터 설정.
  98. var node = instance1.selectNodes("/root/target/recvitem/*");
  99. for (var j = 0; j < node.length; j++) {
  100. opener.model.setValue(model.getValue("/root/target/recvref") + "/" + node.item(j).nodeName, ipt_dinfgoodlist.value);
  101. }
  102. var objID = opener.event.currentTarget;
  103. var obj = opener.document.controls(objID);
  104. if (obj.elementName == "xforms:datagrid") {
  105. if (obj.rowstatus(obj.row) == 0) {
  106. obj.rowstatus(obj.row) = 2;
  107. }
  108. }
  109. }
  110. ]]>
  111. </script>
  112. </xhtml:head>
  113. <xhtml:body pagewidth="750" pageheight="532" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  114. <group id="group3" scroll="auto" style="left:8px; top:0px; width:722px; height:490px; ">
  115. <group id="group2" style="left:0px; top:5px; width:720px; height:65px; ">
  116. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:720px; height:60px; "/>
  117. <button id="btn_search" class="btn1_letter2" style="left:640px; top:17px; width:56px; height:22px; ">
  118. <caption>조회</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. submit("TRRSD00311");
  122. ]]>
  123. </script>
  124. </button>
  125. <line id="line13" class="line_4" style="x1:625px; y1:7px; x2:625px; y2:50px; border-color:#ffe4bb; border-left-style:solid; "/>
  126. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:107px; top:8px; width:218px; height:19px; text-align:center; ">
  127. <choices>
  128. <itemset>
  129. <label/>
  130. <value/>
  131. </itemset>
  132. </choices>
  133. </select1>
  134. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  135. <select1 id="rdo_dinfkind" ref="/root/send/dinfkind" overflow="visible" appearance="full" cellspacing="5" cols="5" style="left:107px; top:34px; width:219px; height:15px; background-color:transparent; border-style:none; ">
  136. <choices>
  137. <itemset nodeset="/root/init/dinfkind">
  138. <label ref="label"/>
  139. <value ref="value"/>
  140. </itemset>
  141. </choices>
  142. <script type="javascript" ev:event="xforms-value-changed">
  143. <![CDATA[
  144. btn_search.dispatch("DOMActivate");
  145. ]]>
  146. </script>
  147. </select1>
  148. <caption id="cap_dinfkind" class="search_name" style="left:15px; top:35px; width:90px; height:17px; ">멸균종류 :</caption>
  149. <caption id="cap_dinfdeptgubn" class="search_name" style="left:353px; top:9px; width:90px; height:17px; ">부서구분 :</caption>
  150. <select1 id="rdo_dinfdeptgubn" ref="/root/send/dinfdeptgubn" overflow="visible" appearance="full" cellspacing="5" cols="3" style="left:445px; top:8px; width:165px; height:15px; background-color:transparent; border-style:none; ">
  151. <choices>
  152. <itemset nodeset="/root/init/dinfdeptgubn">
  153. <label ref="label"/>
  154. <value ref="value"/>
  155. </itemset>
  156. </choices>
  157. <script type="javascript" ev:event="xforms-value-changed">
  158. <![CDATA[
  159. btn_search.dispatch("DOMActivate");
  160. ]]>
  161. </script>
  162. </select1>
  163. <input id="ipt_dinfgoodlist" ref="/root/main/dinfgoodlist" visibility="hidden" style="left:505px; top:35px; width:95px; height:19px; "/>
  164. </group>
  165. <caption id="caption1" class="tit_2" style="left:5px; top:77px; width:145px; height:13px; ">멸균물품 List</caption>
  166. <line id="line1" class="line_1" style="x1:0px; y1:91px; x2:720px; y2:91px; "/>
  167. <datagrid id="grd_rscmdiltlist" nodeset="/root/main/rscmdiltlist" autoresize="true" caption="멸균부서구분^멸균물품구분^멸균물품^^기관명^멸균종류" colsep="^" colwidth="136, 209, 297, 31, 224, 32" ellipsis="true" extendlastcol="scroll" mergecells="bycol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:96px; width:722px; height:394px; ">
  168. <col disabled="true" ref="dinfdeptgubn" type="combo" style="text-align:center; vertical-align:top; ">
  169. <choices>
  170. <itemset nodeset="/root/init/dinfdeptgubn">
  171. <label ref="label"/>
  172. <value ref="value"/>
  173. </itemset>
  174. </choices>
  175. </col>
  176. <col disabled="true" ref="dinfgoodgubn" style="vertical-align:top; "/>
  177. <col ref="dinfgood"/>
  178. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  179. <col disabled="true" ref="instnm" visibility="hidden" style="text-align:center; vertical-align:top; "/>
  180. <col disabled="true" ref="dinfkind" type="combo" visibility="hidden" style="text-align:center; vertical-align:top; ">
  181. <choices>
  182. <itemset nodeset="/root/init/dinfkind">
  183. <label ref="label"/>
  184. <value ref="value"/>
  185. </itemset>
  186. </choices>
  187. </col>
  188. <script type="javascript" ev:event="ondblclick">
  189. <![CDATA[
  190. if( grd_rscmdiltlist.isCell( event.target ) && grd_rscmdiltlist.row >= grd_rscmdiltlist.fixedRows ) {
  191. btn_confirm.dispatch("DOMActivate");
  192. }
  193. ]]>
  194. </script>
  195. </datagrid>
  196. </group>
  197. <group id="group1" scroll="auto" style="left:8px; top:490px; width:722px; height:37px; ">
  198. <button id="btn_confirm" class="btn4_letter2" style="left:603px; top:10px; width:56px; height:22px; ">
  199. <caption>확인</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. fSetDataControl();
  203. window.close();
  204. //misfPopUpListReturn(ipt_dinfgoodlist);
  205. ]]>
  206. </script>
  207. </button>
  208. <button id="btn_cancel" class="btn4_letter2" style="left:660px; top:10px; width:56px; height:22px; ">
  209. <caption>취소</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. window.close();
  213. ]]>
  214. </script>
  215. </button>
  216. <line id="line32" class="line_6" style="x1:0px; y1:5px; x2:722px; y2:5px; "/>
  217. </group>
  218. </xhtml:body>
  219. </xhtml:html>