SPMNP03100_미불출리스트.xrw 9.1 KB

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