SPMNP00360_수술기록지 장비목록.xrw 7.9 KB

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