SPMNP03200_응급불출리스트.xrw 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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. <init>
  10. <oproomlist>
  11. <oproomcd/>
  12. <oproomnm/>
  13. </oproomlist>
  14. <rosettelist>
  15. <rosettenm/>
  16. <rosettecd/>
  17. </rosettelist>
  18. </init>
  19. <main>
  20. <cond>
  21. <refdd/>
  22. <oproomcd/>
  23. <goodcd/>
  24. <allsizespecid/>
  25. <goodnm/>
  26. <deptflag>O</deptflag>
  27. <fromdd/>
  28. <todd/>
  29. <oprosette/>
  30. <openflag/>
  31. </cond>
  32. <reqerlist>
  33. <ccrtstatnm/>
  34. <opstatnm/>
  35. <oproomnm/>
  36. <opcnfmdt/>
  37. <perfdeptnm/>
  38. <patnm/>
  39. <pid/>
  40. <sa/>
  41. <opnm/>
  42. <perfnm/>
  43. <goodcd/>
  44. <allsizespecid/>
  45. <goodnm/>
  46. <goodspec/>
  47. <goodmodel/>
  48. <prodcmpynm/>
  49. <prcpunit/>
  50. <chkflag/>
  51. <deliveqty/>
  52. <undeliveqty/>
  53. <undeliveresn/>
  54. <oprsrvno/>
  55. <oproomcd/>
  56. </reqerlist>
  57. </main>
  58. <send>
  59. <reqdata/>
  60. <savedata/>
  61. </send>
  62. <hidden/>
  63. <temp>
  64. </temp>
  65. </root>
  66. </instance>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  70. <script type="javascript" src="../../../emr/opanstweb/js/SPMNP03000.js"/>
  71. <script type="javascript" ev:event="xforms-ready">
  72. <![CDATA[
  73. if( checkOpener() ) {
  74. fInit("E");
  75. }
  76. ]]>
  77. </script>
  78. <submission id="TRMNP03004" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/rosettelist"/>
  79. <submission id="TRMNP03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/oproomlist"/>
  80. <submission id="TRMNP03005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/reqerlist"/>
  81. </model>
  82. </xhtml:head>
  83. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  84. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  85. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:248px; height:14px; ">수술실 물품 응급불출 관리</caption>
  86. </group>
  87. <group id="grp_biz" scroll="auto" style="left:0px; top:18px; width:1195px; height:742px; ">
  88. <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:30px; vertical-align:top; ">
  89. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  90. <caption id="caption26" class="search_name" style="left:10px; top:5px; width:86px; height:17px; ">조회일자 :</caption>
  91. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:5px; width:56px; height:22px; ">
  92. <caption>조회</caption>
  93. <script type="javascript" ev:event="DOMActivate">
  94. <![CDATA[
  95. fSearch();
  96. ]]>
  97. </script>
  98. </button>
  99. <line id="line13" class="line_4" style="x1:1115px; y1:5px; x2:1115px; y2:25px; "/>
  100. <caption id="caption1" class="search_name" style="left:445px; top:5px; width:83px; height:17px; ">수 술 방 :</caption>
  101. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:97px; top:4px; width:95px; height:19px; text-align:center; "/>
  102. <select1 id="cmb_oproomlist" ref="/root/main/cond/oproomcd" class="combo_search" appearance="minimal" style="left:595px; top:5px; width:50px; height:19px; text-align:left; ">
  103. <choices>
  104. <itemset nodeset="/root/init/oproomlist">
  105. <label ref="oproomnm"/>
  106. <value ref="oproomcd"/>
  107. </itemset>
  108. </choices>
  109. </select1>
  110. <caption id="caption2" class="search_name" style="left:220px; top:5px; width:86px; height:17px; ">부서구분 :</caption>
  111. <select1 id="cmb_rosette" ref="/root/main/cond/oprosette" class="combo_search" appearance="minimal" style="left:535px; top:5px; width:50px; height:19px; ">
  112. <choices>
  113. <itemset nodeset="/root/init/rosettelist">
  114. <label ref="rosettenm"/>
  115. <value ref="rosettecd"/>
  116. </itemset>
  117. </choices>
  118. <script type="javascript" ev:event="xforms-value-changed">
  119. <![CDATA[
  120. model.removenode("/root/send");
  121. model.makeNode("/root/send");
  122. model.makeValue("/root/send/reqdata/opcnfmdd" ,model.getValue("/root/main/cond/fromdd") );
  123. model.makeValue("/root/send/reqdata/rosette" ,model.getValue("/root/main/cond/oprosette"));
  124. if(submit("TRMNP03002")){ // 수술실코드 가져오기
  125. addComboItem("cmb_oproomlist","전체","","above");
  126. }
  127. ]]>
  128. </script>
  129. </select1>
  130. <select1 id="combo1" ref="/root/main/cond/deptflag" class="combo_search" appearance="minimal" style="left:307px; top:5px; width:75px; height:19px; ">
  131. <choices>
  132. <item>
  133. <label>수술</label>
  134. <value>O</value>
  135. </item>
  136. <item>
  137. <label>마취</label>
  138. <value>A</value>
  139. </item>
  140. <item>
  141. <label>회복</label>
  142. <value>R</value>
  143. </item>
  144. <item>
  145. <label>안과</label>
  146. <value>E</value>
  147. </item>
  148. </choices>
  149. </select1>
  150. </group>
  151. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1194px; y2:65px; "/>
  152. <datagrid id="grd_erlist" nodeset="/root/main/reqerlist" class="datagrid2" caption="Cart&#xA;상태^진행&#xA;상태^^불출&#xA;수량^미불출&#xA;수량^수술&#xA;방^수술일시^집도과^환자명^등록번호^S/A^수술명^집도의^물품코드^SUB^물품명^규격^모델^제조원^단위^미불출사유^상태값^수술방코드" colsep="^" colwidth="38, 38, 38, 35, 38, 38, 120, 45, 65, 70, 45, 117, 65, 80, 38, 122, 80, 80, 80, 50, 122, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:70px; width:1194px; height:665px; ">
  153. <col ref="ccrtstatnm" style="text-align:center; "/>
  154. <col ref="opstatnm" style="text-align:center; "/>
  155. <col ref="chkflag" type="checkbox" style="text-align:right; "/>
  156. <col ref="deliveqty" type="input" style="text-align:right; "/>
  157. <col ref="undeliveqty" style="text-align:right; "/>
  158. <col ref="oproomnm" style="text-align:center; "/>
  159. <col ref="opcnfmdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  160. <col ref="perfdeptnm" style="text-align:center; "/>
  161. <col ref="patnm" style="text-align:center; "/>
  162. <col ref="pid" style="text-align:center; "/>
  163. <col ref="sa" style="text-align:center; "/>
  164. <col ref="opnm" style="text-align:left; "/>
  165. <col ref="perfnm" visibility="visible" style="text-align:center; "/>
  166. <col ref="goodcd" style="text-align:center; "/>
  167. <col ref="allsizespecid" style="text-align:center; "/>
  168. <col ref="goodnm" style="text-align:left; "/>
  169. <col ref="goodspec" style="text-align:left; "/>
  170. <col ref="goodmodel" style="text-align:left; "/>
  171. <col ref="prodcmpynm" style="text-align:left; "/>
  172. <col ref="prcpunit" style="text-align:center; "/>
  173. <col ref="undeliveresn" type="input" style="text-align:left; "/>
  174. <col ref="oprsrvno"/>
  175. <col ref="oproomcd"/>
  176. <script type="javascript" ev:event="onaftersort">
  177. <![CDATA[
  178. grd_erlist.gridToInstance();
  179. ]]>
  180. </script>
  181. <script type="javascript" ev:event="onendedit">
  182. <![CDATA[
  183. var deliveqty, undeliveqty;
  184. if( grd_erlist.col == 4 ) {//불출수량 입력하면
  185. deliveqty = model.getValue("/root/main/reqerlist[" + grd_erlist.row + "]/deliveqty");
  186. undeliveqty = model.getValue("/root/main/reqerlist[" + grd_erlist.row + "]/undeliveqty");
  187. if( deliveqty < "1" ) {
  188. model.setValue("/root/main/reqerlist[" + grd_erlist.row + "]/chkflag", "false");
  189. }else {
  190. model.setValue("/root/main/reqerlist[" + grd_erlist.row + "]/chkflag", "true");
  191. model.setValue("/root/main/reqerlist[" + grd_erlist.row + "]/undeliveqty", parseInt(undeliveqty-deliveqty));
  192. }
  193. }
  194. model.refresh();
  195. ]]>
  196. </script>
  197. </datagrid>
  198. <button id="btn_delivecnfm" class="btn5_letter6" style="left:1106px; top:45px; width:86px; height:19px; ">
  199. <caption>응급불출확정</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. fDeliveCnfm("E");
  203. ]]>
  204. </script>
  205. </button>
  206. <caption id="caption12" class="tit_2" style="left:0px; top:50px; width:188px; height:14px; ">수술실 물품 응급불출 리스트</caption>
  207. </group>
  208. </xhtml:body>
  209. </xhtml:html>