SMMNP02100_미불출조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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. </init>
  12. <main>
  13. <cond>
  14. <opfromdd/>
  15. <optodd/>
  16. <oprosette/>
  17. <refdeptflag/>
  18. <cureflag/>
  19. <oproomcd/>
  20. <goodcd/>
  21. <allsizespecid/>
  22. <goodnm/>
  23. <subflag>U</subflag>
  24. </cond>
  25. <undelivelist>
  26. <chkflag/>
  27. <oproomnn/>
  28. <goodcd/>
  29. <allsizespecid/>
  30. <goodnm/>
  31. <goodspec/>
  32. <goodmodel/>
  33. <prodcmpynm/>
  34. <prcpunit/>
  35. <prcpqty/>
  36. <deliveqty/>
  37. <undeliveqty/>
  38. <opcnfmdd/>
  39. <oproomcd/>
  40. </undelivelist>
  41. </main>
  42. <send/>
  43. <hidden/>
  44. <temp/>
  45. <viewctrl>
  46. <viewctrllist/>
  47. </viewctrl>
  48. </root>
  49. </instance>
  50. <submission id="TRMNP00323" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/viewctrl/viewctrllist"/>
  51. <submission id="TRMNP03004" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/rosettelist"/>
  52. <submission id="TRMNP03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/oproomlist"/>
  53. <submission id="TRMNP05001" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/oproomlist"/>
  54. <submission id="TRMNP02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/undelivelist"/>
  55. <submission id="TXMNP02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  56. </model>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  61. <script type="javascript" src="../../../emr/opanstweb/js/SMMNP02100.js"/>
  62. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. fInit();
  66. ]]>
  67. </script>
  68. </xhtml:head>
  69. <xhtml:body guideline="1,1195;1,5;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  70. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  71. <group id="grp_sea" style="left:0px; top:2px; width:1194px; height:35px; vertical-align:top; ">
  72. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  73. <button id="btn_search" class="btn1_letter2" style="left:1133px; top:7px; width:56px; height:22px; ">
  74. <caption>조회</caption>
  75. <script type="javascript" ev:event="DOMActivate">
  76. <![CDATA[
  77. fSearch();
  78. ]]>
  79. </script>
  80. </button>
  81. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  82. <select1 id="cmb_oproomcd" ref="/root/main/cond/oproomcd" appearance="minimal" style="left:405px; top:8px; width:50px; height:19px; ">
  83. <choices>
  84. <itemset nodeset="/root/init/oproomlist">
  85. <label ref="oproomnm"/>
  86. <value ref="oproomcd"/>
  87. </itemset>
  88. </choices>
  89. </select1>
  90. <button id="button2" class="btn2_letter3" style="left:1065px; top:8px; width:53px; height:19px; ">
  91. <caption>초기화</caption>
  92. <script type="javascript" ev:event="DOMActivate">
  93. <![CDATA[
  94. model.setValue("/root/main/cond/goodcd", "");
  95. model.setValue("/root/main/cond/goodnm", "");
  96. model.setValue("/root/main/cond/allsizespecid", "");
  97. //----(20101114) 경북대
  98. //model.setValue("/root/main/cond/variable", "");
  99. //----(20101114) 경북대
  100. model.refresh();
  101. ]]>
  102. </script>
  103. </button>
  104. <input id="ipt_goodnm" ref="/root/main/cond/goodnm" class="input_search" style="left:910px; top:8px; width:150px; height:19px; ">
  105. <script type="javascript" ev:event="onkeyup">
  106. <![CDATA[
  107. inputEnterKey("btn_search", "DOMActivate");
  108. ]]>
  109. </script>
  110. </input>
  111. <input id="ipt_reqtodd" ref="/root/main/cond/optodd" class="input_s_essential" navindex="2" inputtype="date" style="left:188px; top:8px; width:90px; height:19px; "/>
  112. <input id="ipt_reqfromdd" ref="/root/main/cond/opfromdd" class="input_s_essential" navindex="1" inputtype="date" style="left:82px; top:8px; width:90px; height:19px; "/>
  113. <input id="ipt_goodcd" ref="/root/main/cond/goodcd" class="input_search" style="left:810px; top:8px; width:75px; height:19px; ">
  114. <script type="javascript" ev:event="onkeyup">
  115. <![CDATA[
  116. inputEnterKey("btn_search", "DOMActivate");
  117. ]]>
  118. </script>
  119. </input>
  120. <button id="btn_goodsearch" class="icon_search" style="left:890px; top:9px; width:16px; height:16px; ">
  121. <caption/>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. var refflag = model.getValue("/root/temp/refflag");
  125. if( refflag == "1" ) { /*물품명으로 검색*/
  126. setParameter("refnm", model.getValue("/root/main/cond/goodnm"));
  127. setParameter("refflag", "1");
  128. }else if( refflag == "2" ) { /*물품코드으로 검색*/
  129. setParameter("refnm", model.getValue("/root/main/cond/goodcd"));
  130. setParameter("refflag", "2");
  131. }
  132. setParameter("tabflag", "CCR");
  133. setParameter("goodflag", model.getValue("/root/main/cond/goodflag"));
  134. setParameter("menuparam", "S");
  135. setParameter("cartgubn", model.getValue("/root/main/cond/deptflag"));
  136. modal("SMMNP04460" ,"", "100", "100", "SMMNP04460", "", "");
  137. var getData = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
  138. if( getData == "") {
  139. return;
  140. }else {
  141. var getDataTemp1 = getData.split("▩");
  142. var getDataTemp2 = getDataTemp1[0].split("|");
  143. model.setValue("/root/main/cond/goodcd", getDataTemp2[0]);
  144. model.setValue("/root/main/cond/goodnm", getDataTemp2[1]);
  145. model.setValue("/root/main/cond/allsizespecid", getDataTemp2[2]);
  146. //model.setValue("/root/main/cond/goodflag", getDataTemp2[3]);
  147. model.refresh();
  148. }
  149. ]]>
  150. </script>
  151. </button>
  152. <select1 id="combo1" ref="/root/main/cond/cureflag" appearance="minimal" style="left:662px; top:8px; width:60px; height:19px; ">
  153. <choices>
  154. <item>
  155. <label>전체</label>
  156. <value/>
  157. </item>
  158. <item>
  159. <label>Suture</label>
  160. <value>1</value>
  161. </item>
  162. <item>
  163. <label>Supplies</label>
  164. <value>2</value>
  165. </item>
  166. <item>
  167. <label>Drug</label>
  168. <value>3</value>
  169. </item>
  170. <item>
  171. <label>Instrument</label>
  172. <value>4</value>
  173. </item>
  174. <item>
  175. <label>처치,행위</label>
  176. <value>5</value>
  177. </item>
  178. <item>
  179. <label>린넨/소모품</label>
  180. <value>6</value>
  181. </item>
  182. <item>
  183. <label>Sheet</label>
  184. <value>7</value>
  185. </item>
  186. <item>
  187. <label>Glove</label>
  188. <value>8</value>
  189. </item>
  190. <item>
  191. <label>일반물품</label>
  192. <value>9</value>
  193. </item>
  194. <item>
  195. <label>린넨</label>
  196. <value>10</value>
  197. </item>
  198. <item>
  199. <label>공용</label>
  200. <value>11</value>
  201. </item>
  202. </choices>
  203. </select1>
  204. <caption id="caption11" class="search_n_b" style="left:175px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  205. <caption id="caption2" class="search_name" style="left:0px; top:8px; width:81px; height:17px; ">수술일자:</caption>
  206. <select1 id="combo2" ref="/root/main/cond/refdeptflag" appearance="minimal" style="left:519px; top:8px; width:55px; height:19px; ">
  207. <choices>
  208. <item>
  209. <label>수술</label>
  210. <value>O</value>
  211. </item>
  212. <item>
  213. <label>마취</label>
  214. <value>A</value>
  215. </item>
  216. <item>
  217. <label>회복</label>
  218. <value>R</value>
  219. </item>
  220. <item>
  221. <label>안과</label>
  222. <value>E</value>
  223. </item>
  224. </choices>
  225. </select1>
  226. <caption id="caption4" class="search_name" style="left:280px; top:8px; width:68px; height:17px; ">수술방:</caption>
  227. <caption id="caption5" class="search_name" style="left:459px; top:8px; width:85px; height:17px; ">부서:</caption>
  228. <select1 id="cmb_rosette" ref="/root/main/cond/oprosette" class="combo_default" appearance="minimal" style="left:350px; top:8px; width:50px; height:19px; ">
  229. <choices>
  230. <itemset nodeset="/root/init/rosettelist">
  231. <label ref="rosettenm"/>
  232. <value ref="rosettecd"/>
  233. </itemset>
  234. </choices>
  235. <script type="javascript" ev:event="xforms-value-changed">
  236. <![CDATA[
  237. model.removenode("/root/send");
  238. model.makeNode("/root/send");
  239. model.makeValue("/root/send/opcnfmdd" ,getCurrentDate().substr(0, 8) );
  240. model.makeValue("/root/send/rosette" ,model.getValue("/root/main/cond/oprosette"));
  241. if(submit("TRMNP03002")){ // 수술실코드 가져오기
  242. addComboItem("cmb_oproomcd","전체","","above");
  243. }
  244. ]]>
  245. </script>
  246. </select1>
  247. <caption id="caption29" class="search_name" style="left:725px; top:8px; width:85px; height:17px; ">물품코드:</caption>
  248. <caption id="caption9" class="search_name" style="left:577px; top:8px; width:90px; height:17px; ">처방구분:</caption>
  249. </group>
  250. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:1194px; y2:60px; "/>
  251. <datagrid id="grd_undelivelist" nodeset="/root/main/undelivelist" caption="^수술방^물품코드^SUB^물품명^규격^모델^제조원^단위^수량^불출수량^미불출^수술일자" colsep="^" colwidth="30, 45, 90, 45, 280, 140, 110, 115, 55, 50, 55, 50, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:65px; width:1194px; height:670px; ">
  252. <col ref="chkflag" type="checkbox" style="text-align:center; "/>
  253. <col ref="oproomnm" style="text-align:center; "/>
  254. <col ref="goodcd" style="text-align:center; "/>
  255. <col ref="allsizespecid" style="text-align:center; "/>
  256. <col ref="goodnm" style="text-align:left; "/>
  257. <col ref="goodspec" style="text-align:left; "/>
  258. <col ref="goodmodel" style="text-align:left; "/>
  259. <col ref="prodcmpynm" style="text-align:left; "/>
  260. <col ref="prcpunit" style="text-align:center; "/>
  261. <col ref="prcpqty" style="text-align:right; "/>
  262. <col ref="deliveqty" type="input" style="text-align:right; "/>
  263. <col ref="undeliveqty" style="text-align:right; "/>
  264. <col ref="opcnfmdd" format="yyyy-mm-dd" style="text-align:center; "/>
  265. <script type="javascript" ev:event="onendedit">
  266. <![CDATA[
  267. var iRow = -1;
  268. var iCol = -1;
  269. iRow = grd_undelivelist.row;
  270. iCol = grd_undelivelist.col;
  271. if (grd_undelivelist.rows <= 1 || iCol != 11){
  272. return;
  273. }
  274. var prcpqty = model.getValue("/root/main/undelivelist[" + iRow + "]/prcpqty");
  275. var deliveqty = model.getValue("/root/main/undelivelist[" + iRow + "]/deliveqty");
  276. if( model.getValue("/root/main/undelivelist[" + iRow + "]/deliveqty") > "0"||model.getValue("/root/main/undelivelist[" + iRow + "]/deliveqty") > "0.0" ) {
  277. model.setValue("/root/main/undelivelist[" + iRow + "]/chkflag", "true");
  278. model.setValue("/root/main/undelivelist[" + iRow + "]/undeliveqty", parseInt(prcpqty)-parseInt(deliveqty));
  279. }
  280. if( event.keyCode == 13 ) {
  281. grd_undelivelist.row = iRow + 1;
  282. grd_undelivelist.editCell();
  283. }
  284. model.refresh();
  285. ]]>
  286. </script>
  287. <script type="javascript" ev:event="onaftersort">
  288. <![CDATA[
  289. grd_undelivelist.gridToInstance();
  290. ]]>
  291. </script>
  292. </datagrid>
  293. <button id="btn_cnfm" class="btn5_letter4" style="left:1130px; top:40px; width:64px; height:19px; ">
  294. <caption>불출확정</caption>
  295. <script type="javascript" ev:event="DOMActivate">
  296. <![CDATA[
  297. fCnfmSave();
  298. ]]>
  299. </script>
  300. </button>
  301. </group>
  302. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">부분 미불출 조회</caption>
  303. </xhtml:body>
  304. </xhtml:html>