SMMNR04600_수혈현황조회.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  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. <cond>
  11. <wardcdgrup>
  12. <wardcdgruplist>
  13. <wardnm/>
  14. <wardcd/>
  15. </wardcdgruplist>
  16. </wardcdgrup>
  17. <roomcdgrup>
  18. <roomcdgruplist>
  19. <roomnm/>
  20. <roomcd/>
  21. </roomcdgruplist>
  22. </roomcdgrup>
  23. <patientgrup>
  24. <patientgruplist>
  25. <patientnm/>
  26. <pid/>
  27. </patientgruplist>
  28. </patientgrup>
  29. <patientgrupInfo>
  30. <patientgruplistInfo>
  31. <patientnm/>
  32. <pid/>
  33. <sexage/>
  34. <abo/>
  35. <rhname/>
  36. <rh/>
  37. <btype/>
  38. <reptrslt/>
  39. </patientgruplistInfo>
  40. </patientgrupInfo>
  41. <prcpddfrom/>
  42. <prcdddto/>
  43. <dateflag>deliveselect</dateflag>
  44. <wardpatientflag>patient</wardpatientflag>
  45. <deliveflag>1</deliveflag>
  46. <execdetlgrup>
  47. <execdetlgruplist>
  48. <wardcd/>
  49. <roomcd/>
  50. <pid/>
  51. <patnm/>
  52. <grdrage/>
  53. <aborh/>
  54. <prcpstat/>
  55. <prcppreptfflag/>
  56. <prcpcd/>
  57. <prcpnm/>
  58. <blodno/>
  59. <rgstdt/>
  60. <deliveexecdt/>
  61. <tnsstrddtm/>
  62. <tnsstrnursenm/>
  63. <tnsendddtm/>
  64. <tnsendnursenm/>
  65. <testexecnm/>
  66. <orddridnm/>
  67. </execdetlgruplist>
  68. </execdetlgrup>
  69. <recdeptflag/>
  70. <recdeptcd/>
  71. </cond>
  72. </main>
  73. </root>
  74. </instance>
  75. <script type="javascript" ev:event="xforms-ready">
  76. <![CDATA[
  77. model.removeNodeset("/root/main/cond/execdetlgrup/execdetlgruplist");
  78. ipt_prcpddfrom.value = getCurrentDate() ;// 기준일에 현재날짜(디폴트)
  79. var addDy = model.getValue("/root/main/cond/prcpddfrom");
  80. addDy = addDy.toDate().getAddDate(-3,"D");
  81. addDy = addDy.getDateFormat();
  82. ipt_prcpddfrom.value = addDy;
  83. ipt_prcdddto.value = getCurrentDate();// 기준일에 현재날짜(디폴트)
  84. fInit();
  85. ]]>
  86. </script>
  87. <submission id="TRMNR07602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/wardcdgrup"/>
  88. <submission id="TRMNR07603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/roomcdgrup"/>
  89. <submission id="TRMNR07604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/patientgrup"/>
  90. <submission id="TRMNR07605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/patientgrupInfo"/>
  91. <submission id="TRMNR04601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/execdetlgrup"/>
  92. </model>
  93. <script type="javascript" src="../../../emr/carerecweb/js/SMMNR04600.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  97. </xhtml:head>
  98. <xhtml:body guideline="1,1218;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  99. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  100. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:257px; height:14px; ">수혈기록 현황조회</caption>
  101. </group>
  102. <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  103. <caption id="caption11" style="left:1090px; top:5px; width:100px; height:20px; text-align:right; ">[표]</caption>
  104. </group>
  105. <group id="group5" class="datagrid2" scroll="auto" style="left:0px; top:13px; width:1195px; height:742px; ">
  106. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:80px; vertical-align:top; ">
  107. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:80px; background-color:#fffbf2; border-color:#ffd799; "/>
  108. <button id="btn_search" class="btn1_letter2" style="left:1030px; top:27px; width:56px; height:22px; ">
  109. <caption>조회</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. fGetTnsPresCondRef();//혈액미불출 리스트 조회버튼
  113. ]]>
  114. </script>
  115. </button>
  116. <line id="line13" class="line_4" style="x1:1020px; y1:8px; x2:1020px; y2:67px; "/>
  117. <caption id="caption2" class="search_name" style="left:521px; top:7px; width:105px; height:17px; ">병동 :</caption>
  118. <select1 id="cmb_dateflag" ref="/root/main/cond/dateflag" appearance="minimal" style="left:111px; top:6px; width:83px; height:19px; ">
  119. <choices>
  120. <item>
  121. <label>처방일</label>
  122. <value>prcpddselect</value>
  123. </item>
  124. <item>
  125. <label>불출일</label>
  126. <value>deliveselect</value>
  127. </item>
  128. </choices>
  129. <script type="javascript" ev:event="xforms-value-changed">
  130. <![CDATA[
  131. // if(rdo_wardpatientflag.value == "patient") {
  132. // if (ipt_pid.value == ""){
  133. // messageBox("등록번호를 ","C001");
  134. // model.setfocus("ipt_pid");
  135. // return;
  136. // }
  137. // }
  138. //
  139. // fGetTnsPresCondRef();//혈액미불출 리스트 조회버튼
  140. ]]>
  141. </script>
  142. </select1>
  143. <caption id="caption1" style="left:298px; top:7px; width:15px; height:20px; ">~</caption>
  144. <select1 id="rdo_wardpatientflag" ref="/root/main/cond/wardpatientflag" class="radio_search" appearance="full" rows="3" overflow="visible" style="left:441px; top:6px; width:79px; height:69px; line-spacing:5; border-style:none; ">
  145. <choices>
  146. <item>
  147. <label>병동별</label>
  148. <value>ward</value>
  149. </item>
  150. <item>
  151. <label>환자별</label>
  152. <value>patient</value>
  153. </item>
  154. <item>
  155. <label>기록부서별</label>
  156. <value>dept</value>
  157. </item>
  158. </choices>
  159. <script type="javascript" ev:event="xforms-value-changed">
  160. <![CDATA[
  161. if( rdo_wardpatientflag.value == 'ward') {
  162. cmb_wardcd.disabled = false ;
  163. cmb_roomcd.disabled = true ;
  164. cmb_pid.disabled = true ;
  165. ipt_pid.disabled = true ;
  166. rdo_recdeptflag.disabled = true;
  167. cmb_recdeptcd.disabled = true;
  168. opt_patientnm.visible = false;
  169. cmb_roomcd.value = "" ;
  170. cmb_pid.value = "" ;
  171. ipt_pid.value = "" ;
  172. opt_sexage.value = "" ;
  173. opt_patientnm.value = "" ;
  174. rdo_recdeptflag.value="";
  175. cmb_recdeptcd.value="";
  176. //cmb_wardcd.selectedIndex = 0 ;
  177. model.setfocus("cmb_wardcd");
  178. } else if ( rdo_wardpatientflag.value == 'patient' ){
  179. cmb_wardcd.disabled = false ;
  180. cmb_roomcd.disabled = false ;
  181. cmb_pid.disabled = false ;
  182. ipt_pid.disabled = false ;
  183. rdo_recdeptflag.disabled = true;
  184. cmb_recdeptcd.disabled = true;
  185. opt_patientnm.visible = true;
  186. cmb_roomcd.value = "" ;
  187. cmb_pid.value = "" ;
  188. ipt_pid.value = "" ;
  189. opt_sexage.value = "" ;
  190. opt_patientnm.value = "" ;
  191. cmb_wardcd.value = "";
  192. rdo_recdeptflag.value="";
  193. cmb_recdeptcd.value="";
  194. // cmb_wardcd.selectedIndex = 0 ;
  195. model.setfocus("ipt_pid");
  196. } else {
  197. cmb_wardcd.disabled = true ;
  198. cmb_roomcd.disabled = true ;
  199. cmb_pid.disabled = true ;
  200. ipt_pid.disabled = true ;
  201. rdo_recdeptflag.disabled = false;
  202. cmb_recdeptcd.disabled = false;
  203. opt_patientnm.visible = false;
  204. cmb_roomcd.value = "" ;
  205. cmb_pid.value = "" ;
  206. ipt_pid.value = "" ;
  207. opt_sexage.value = "" ;
  208. opt_patientnm.value = "" ;
  209. cmb_wardcd.value = "";
  210. rdo_recdeptflag.value = "S";
  211. cmb_recdeptcd.value=getUserInfo("dutplcecd");
  212. model.setfocus("cmb_recdeptcd");
  213. }
  214. model.removeNodeset("/root/main/cond/execdetlgrup");
  215. model.refresh();
  216. ]]>
  217. </script>
  218. </select1>
  219. <caption id="caption4" class="search_name" style="left:715px; top:7px; width:69px; height:17px; ">병실 :</caption>
  220. <caption id="caption3" class="search_name" style="left:715px; top:29px; width:69px; height:17px; ">성명 :</caption>
  221. <caption id="caption5" class="search_name" style="left:885px; top:29px; width:71px; height:17px; ">S/A :</caption>
  222. <caption id="caption7" class="search_name" style="left:520px; top:30px; width:86px; height:17px; ">등록번호 :</caption>
  223. <input id="ipt_prcpddfrom" ref="/root/main/cond/prcpddfrom" class="input_default" inputtype="date" style="left:198px; top:6px; width:95px; height:19px; ">
  224. <script type="javascript" ev:event="xforms-value-changed">
  225. <![CDATA[
  226. // if(rdo_wardpatientflag.value == "patient") {
  227. // if (ipt_pid.value == ""){
  228. // messageBox("등록번호를 ","C001");
  229. // model.setfocus("ipt_pid");
  230. // return;
  231. // }
  232. // }
  233. //
  234. // fGetPatientInfo();// 환자 개인정보를 가져온다.
  235. // fGetTnsPresCondRef();//혈액미불출 리스트 조회버튼
  236. ]]>
  237. </script>
  238. </input>
  239. <input id="ipt_prcdddto" ref="/root/main/cond/prcdddto" class="input_default" inputtype="date" style="left:314px; top:6px; width:95px; height:19px; ">
  240. <script type="javascript" ev:event="xforms-value-changed">
  241. <![CDATA[
  242. // if(rdo_wardpatientflag.value == "patient") {
  243. // if (ipt_pid.value == ""){
  244. // messageBox("등록번호를 ","C001");
  245. // model.setfocus("ipt_pid");
  246. // return;
  247. // }
  248. // }
  249. //
  250. // fGetPatientInfo();// 환자 개인정보를 가져온다.
  251. // fGetTnsPresCondRef();//혈액미불출 리스트 조회버튼
  252. // ]]>
  253. </script>
  254. </input>
  255. <select1 id="cmb_wardcd" ref="/root/main/cond/wardcdgrup/wardcdgruplist" class="combo_s_essential" appearance="minimal" style="left:610px; top:6px; width:90px; height:19px; ">
  256. <choices>
  257. <itemset nodeset="/root/main/cond/wardcdgrup/wardcdgruplist">
  258. <label ref="wardnm"/>
  259. <value ref="wardcd"/>
  260. </itemset>
  261. </choices>
  262. <script type="javascript" ev:event="xforms-value-changed">
  263. <![CDATA[
  264. if( rdo_wardpatientflag.value == 'ward') {
  265. fGetTnsPresCondRef();//혈액미불출 리스트 조회버튼
  266. } else {
  267. ipt_pid.value = "" ;
  268. opt_patientnm.value = "" ;
  269. opt_sexage.value = "" ;
  270. opt_patientnm.visible = false;
  271. cmb_pid.value = "";
  272. fGetRoomList();// 병실정보를 가져온다.
  273. }
  274. ]]>
  275. </script>
  276. </select1>
  277. <select1 id="cmb_roomcd" ref="/root/main/cond/roomcdgrup/roomcdgruplist" class="combo_search" appearance="minimal" style="left:780px; top:6px; width:85px; height:19px; ">
  278. <choices>
  279. <itemset nodeset="/root/main/cond/roomcdgrup/roomcdgruplist">
  280. <label ref="roomnm"/>
  281. <value ref="roomcd"/>
  282. </itemset>
  283. </choices>
  284. <script type="javascript" ev:event="xforms-value-changed">
  285. <![CDATA[
  286. ipt_pid.value = "" ;
  287. opt_patientnm.value = "" ;
  288. opt_sexage.value = "" ;
  289. fGetPatientList();// 환자리스트 정보를 가져온다.
  290. ]]>
  291. </script>
  292. </select1>
  293. <output id="opt_sexage" ref="/root/main/cond/patientgrupInfo/patientgruplistInfo/sexage" class="output_search" style="left:948px; top:28px; width:50px; height:19px; "/>
  294. <input id="ipt_pid" ref="/root/main/cond/patientgrupInfo/patientgruplistInfo/pid" class="input_search" maxlength="10" style="left:610px; top:28px; width:90px; height:19px; ">
  295. <script type="javascript" ev:event="onkeyup">
  296. <![CDATA[
  297. inputEnterKey("btn_search", "DOMActivate");
  298. if(event.keyCode == "13") {
  299. fGetPatientInfo("entr");
  300. opt_patientnm.visible = true;
  301. model.removenodeSet("/root/main/cond/roomcdgrup/roomcdgruplist");
  302. }
  303. ]]>
  304. </script>
  305. </input>
  306. <caption id="caption9" class="search_name" style="left:22px; top:7px; width:92px; height:17px; ">조회기준 :</caption>
  307. <button id="btn_excel" class="btn1_letter4" style="left:1094px; top:27px; width:80px; height:22px; ">
  308. <caption>엑셀저장</caption>
  309. <script type="javascript" ev:event="DOMActivate">
  310. <![CDATA[
  311. fSaveExcel();
  312. ]]>
  313. </script>
  314. </button>
  315. <caption id="caption8" style="left:523px; top:53px; width:172px; height:20px; ">( )</caption>
  316. <select1 id="rdo_recdeptflag" ref="/root/main/cond/recdeptflag" appearance="full" cols="2" overflow="visible" style="left:535px; top:54px; width:140px; height:15px; border-style:none; ">
  317. <choices>
  318. <item>
  319. <label>시작부서</label>
  320. <value>S</value>
  321. </item>
  322. <item>
  323. <label>종료부서</label>
  324. <value>E</value>
  325. </item>
  326. </choices>
  327. <script type="javascript" ev:event="xforms-value-changed">
  328. <![CDATA[
  329. model.setfocus("cmb_recdeptcd");
  330. ]]>
  331. </script>
  332. </select1>
  333. <caption id="caption10" class="search_name" style="left:715px; top:52px; width:69px; height:17px; ">부서 :</caption>
  334. <select1 id="cmb_recdeptcd" ref="/root/main/cond/recdeptcd" class="combo_s_essential" appearance="minimal" style="left:780px; top:51px; width:165px; height:19px; ">
  335. <choices>
  336. <itemset nodeset="/root/main/cond/wardcdgrup/deptcdgruplist">
  337. <label ref="depthngnm"/>
  338. <value ref="deptcd"/>
  339. </itemset>
  340. </choices>
  341. </select1>
  342. <select1 id="cmb_pid" ref="/root/main/cond/patientgrup/patientgruplist" class="combo_search" appearance="minimal" style="left:780px; top:28px; width:85px; height:19px; ">
  343. <choices>
  344. <itemset nodeset="/root/main/cond/patientgrup/patientgruplist">
  345. <label ref="patientnm"/>
  346. <value ref="pid"/>
  347. </itemset>
  348. </choices>
  349. <script type="javascript" ev:event="xforms-value-changed">
  350. <![CDATA[
  351. ipt_pid.value = "" ;
  352. opt_patientnm.value = "" ;
  353. opt_sexage.value = "" ;
  354. fGetPatientInfo();// 환자 개인정보를 가져온다.
  355. fGetTnsPresCondRef();//혈액미불출 리스트 조회버튼
  356. ]]>
  357. </script>
  358. </select1>
  359. <output id="opt_patientnm" ref="/root/main/cond/patientgrupInfo/patientgruplistInfo/patientnm" class="output_search" visibility="hidden" style="left:780px; top:28px; width:85px; height:19px; "/>
  360. </group>
  361. <line id="line1" class="line_1" style="x1:0px; y1:117px; x2:1194px; y2:117px; "/>
  362. <caption id="caption26" class="tit_2" style="left:5px; top:98px; width:126px; height:13px; vertical-align:middle; ">수혈기록내역</caption>
  363. <datagrid id="grd_execdetlgruplist" nodeset="/root/main/cond/execdetlgrup/execdetlgruplist" class="datagrid2" caption="병실^등록번호^성명^S/A^ABO RH^상태^처방구분^처방코드^처방명^혈액번호^처방일시^불출일시^수혈시작일시^수혈시작간호사^수혈시작부서^수혈종료일시^수혈종료간호사^수혈종료부서^검사자^처방의" colsep="^" colwidth="53, 80, 60, 45, 61, 60, 60, 90, 180, 85, 115, 115, 115, 95, 100, 115, 95, 100, 95" ellipsis="true" explorerbar="sortmove" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:120px; width:1194px; height:615px; ">
  364. <col ref="roomcd" style="text-align:center; "/>
  365. <col ref="pid"/>
  366. <col ref="patnm"/>
  367. <col ref="grdrage" style="text-align:center; "/>
  368. <col ref="aborh" style="text-align:center; "/>
  369. <col ref="prcpstat" style="text-align:center; "/>
  370. <col ref="prcppreptfflag" style="text-align:center; "/>
  371. <col ref="prcpcd" style="text-align:center; "/>
  372. <col ref="prcpnm"/>
  373. <col ref="blodno" style="text-align:center; "/>
  374. <col ref="rgstdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  375. <col ref="deliveexecdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  376. <col ref="tnsstrddtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  377. <col ref="tnsstrnursenm"/>
  378. <col ref="tnsstrnursedeptnm"/>
  379. <col ref="tnsendddtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  380. <col ref="tnsendnursenm"/>
  381. <col ref="tnsendnursedeptnm"/>
  382. <col ref="testexecnm"/>
  383. <script type="javascript" ev:event="onaftersort">
  384. <![CDATA[
  385. grd_execdetlgruplist.gridToInstance();
  386. ]]>
  387. </script>
  388. <script type="javascript" ev:event="ondblclick">
  389. <![CDATA[
  390. if(grd_execdetlgruplist.row>=1) {
  391. var rgstdd = model.getValue("/root/main/cond/execdetlgrup/execdetlgruplist["+grd_execdetlgruplist.row+"]/rgstdt").substring(0,8);
  392. var param = "I▦" + model.getValue("/root/main/cond/execdetlgrup/execdetlgruplist["+grd_execdetlgruplist.row+"]/pid")
  393. + "▦" + model.getValue("/root/main/cond/execdetlgrup/execdetlgruplist["+grd_execdetlgruplist.row+"]/indd")
  394. + "▦" + model.getValue("/root/main/cond/execdetlgrup/execdetlgruplist["+grd_execdetlgruplist.row+"]/cretno")
  395. + "▦" + model.getValue("/root/main/cond/execdetlgrup/execdetlgruplist["+grd_execdetlgruplist.row+"]/instcd")
  396. + "▦" + rgstdd;
  397. setParameter("condparam", param);
  398. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  399. setParameter("SMMNR010_Param", "IPRC2");
  400. setParameter("SMMNR010_RgstddDATA",rgstdd);
  401. open("SMMNR01000","1","15","128");
  402. }
  403. ]]>
  404. </script>
  405. </datagrid>
  406. </group>
  407. </xhtml:body>
  408. </xhtml:html>