SPMNP00301_수술장비목록.xrw 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. <opeqmtlist>
  11. <check/>
  12. <goodflagengnm/>
  13. <goodmodel/>
  14. <prodcmpynm/>
  15. <mngtno/>
  16. <possndd/>
  17. <installplcecd/>
  18. <fixasetcd/>
  19. <goodspec/>
  20. <prodcmpy/>
  21. </opeqmtlist>
  22. </main>
  23. <send>
  24. <sendflag/>
  25. <installplcecd/>
  26. </send>
  27. <init>
  28. <installplcelist>
  29. <installplceinfo>
  30. <installplcecd/>
  31. <installplcenm/>
  32. </installplceinfo>
  33. </installplcelist>
  34. <cond>
  35. <installplcecd/>
  36. <sendflag/>
  37. </cond>
  38. </init>
  39. <hidden/>
  40. </root>
  41. </instance>
  42. <submission id="TRMNP00306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. model.removeNodeset("/root/main/opeqmtlist");
  46. grd_opeqmtlist.refresh();
  47. model.removeNodeset("/root/init/installplcelist/installplceinfo");
  48. var sParam = opener.javascript.getParameter("SPMNP00300_searchFlag");
  49. var oproomdept = opener.javascript.getParameter("SPMNP00300_oproomdept");
  50. model.setValue("/root/init/cond/installplcecd", oproomdept);
  51. opener.javascript.setParameter("SPMNP00300_searchFlag", "");
  52. if(sParam != "" && sParam != null && sParam != "undefined"){
  53. model.setValue("/root/init/cond/sendflag",sParam);
  54. //model.setValue("/root/send/sendflag",sParam);
  55. }else{
  56. model.setValue("/root/init/cond/sendflag", "OP");
  57. //model.setValue("/root/send/sendflag", "OP");
  58. }
  59. model.setValue("/root/send/sendflag", model.getValue("/root/init/cond/sendflag"));
  60. //2010.04.08 taebum 마취간호기록에서 장비 팝업 호출시 마취수술방이 조회되도록 sqlmap 에서 ANSTGIROK 용도 쿼리 추가
  61. submit("TRMNP00307");
  62. addComboItem("cmb_installplcecd", "전 체", "", "above" );
  63. model.setValue("/root/send/installplcecd", model.getValue("/root/init/cond/installplcecd"));
  64. submit("TRMNP00306");
  65. ]]>
  66. </script>
  67. <submission id="TRMNP00307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/oproomlist"/>
  68. </model>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  72. </xhtml:head>
  73. <xhtml:body pagewidth="760" pageheight="500" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  74. <group id="grp_biz" scroll="auto" style="left:0px; top:1px; width:740px; height:483px; ">
  75. <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:158px; height:13px; ">장비 목록</caption>
  76. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:740px; y2:70px; "/>
  77. <datagrid id="grd_opeqmtlist" nodeset="/root/main/opeqmtlist" allowselection="false" caption="선택^장비명^모델^제조원^Serial No.^취득일^설치장소" colsep="^" colwidth="30, 237, 105, 80, 85, 75, 110, 0, 0, 0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:75px; width:740px; height:408px; ">
  78. <col ref="check" type="checkbox"/>
  79. <col ref="goodflagengnm"/>
  80. <col ref="goodmodel"/>
  81. <col ref="prodcmpynm"/>
  82. <col ref="mngtno"/>
  83. <col ref="possndd" format="yyyy-mm-dd"/>
  84. <col disabled="true" ref="installplcecd" type="combo">
  85. <choices>
  86. <itemset nodeset="/root/init/installplcelist/installplceinfo">
  87. <label ref="installplcenm"/>
  88. <value ref="installplcecd"/>
  89. </itemset>
  90. </choices>
  91. </col>
  92. <col ref="fixasetcd" visibility="hidden"/>
  93. <col ref="goodspec" visibility="hidden"/>
  94. <col ref="prodcmpy" visibility="hidden"/>
  95. <script type="javascript" ev:event="onclick">
  96. <![CDATA[
  97. var iRow = grd_opeqmtlist.row;
  98. var sCheck = "false";
  99. if(grd_opeqmtlist.col != 0 && grd_opeqmtlist.isCell(event.target)){
  100. if(iRow < 1) return;
  101. sCheck = model.getValue("/root/main/opeqmtlist["+iRow+"]/check");
  102. if(sCheck == "false"){
  103. model.setValue("/root/main/opeqmtlist["+iRow+"]/check", "true");
  104. }else{
  105. model.setValue("/root/main/opeqmtlist["+iRow+"]/check", "false");
  106. }
  107. grd_opeqmtlist.rebuild();
  108. }
  109. ]]>
  110. </script>
  111. <script type="javascript" ev:event="onaftersort">
  112. <![CDATA[
  113. grd_opeqmtlist.gridToInstance();
  114. ]]>
  115. </script>
  116. </datagrid>
  117. <group id="group2" style="left:0px; top:0px; width:740px; height:35px; ">
  118. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:740px; height:35px; "/>
  119. <!-- 2009-02-26 삭제 처리
  120. <button id="btn_search" class="btn1_letter2" navindex="6" visibility="hidden" style="left:590px; top:7px; width:56px; height:22px; ">
  121. <caption>조회</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. model.setValue("/root/send/installplcecd", model.getValue("/root/init/cond/installplcecd"));
  125. submit("TRMNP00306");
  126. ]]>
  127. </script>
  128. </button>
  129. -->
  130. <caption id="caption3" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">수술방 :</caption>
  131. <select1 id="cmb_installplcecd" ref="/root/init/cond/installplcecd" appearance="minimal" style="left:101px; top:8px; width:139px; height:19px; ">
  132. <choices>
  133. <itemset nodeset="/root/init/installplcelist/installplceinfo">
  134. <label ref="installplcenm"/>
  135. <value ref="installplcecd"/>
  136. </itemset>
  137. </choices>
  138. <script type="javascript" ev:event="xforms-value-changed">
  139. <![CDATA[
  140. model.removenode("/root/send");
  141. model.makeValue("/root/send/installplcecd", model.getValue("/root/init/cond/installplcecd"));
  142. //마취간호기록에서 전체 선택시 마취방 장비만 조회되도록 수정_20100518_SMY
  143. var sendflag = model.getValue("/root/init/cond/sendflag");
  144. if(sendflag == "ANSTGIROK"){
  145. model.makeValue("/root/send/sendflag", sendflag);
  146. }
  147. submit("TRMNP00306");
  148. ]]>
  149. </script>
  150. </select1>
  151. </group>
  152. <button id="btn_select" class="btn1_letter2" style="left:684px; top:47px; width:56px; height:22px; ">
  153. <caption>선택</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. var sMsg = "opeqmtcd▦opeqmtnm▩";
  157. for(var iRow = grd_opeqmtlist.fixedrows; iRow <= grd_opeqmtlist.rows; iRow++){
  158. if(model.getValue("/root/main/opeqmtlist["+iRow+"]/check") == "true"){
  159. sMsg += model.getValue("/root/main/opeqmtlist["+iRow+"]/fixasetcd" ) + "▦"
  160. + model.getValue("/root/main/opeqmtlist["+iRow+"]/goodflagengnm") + "▩";
  161. }
  162. }
  163. opener.javascript.setParameter("SPMNP00300_Return", sMsg);
  164. model.close();
  165. ]]>
  166. </script>
  167. </button>
  168. </group>
  169. </xhtml:body>
  170. </xhtml:html>