SMASI00800_제한항생제사용환자조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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. <limantibiouspatrefinfo>
  11. </limantibiouspatrefinfo>
  12. <cond>
  13. <termflag>P</termflag>
  14. <fromdd/>
  15. <todd/>
  16. <prcsstat/>
  17. <orddeptcd/>
  18. <pid/>
  19. <patnm/>
  20. <limantibio/>
  21. </cond>
  22. <patinfo>
  23. <patinfolist/>
  24. </patinfo>
  25. </main>
  26. <send>
  27. <reqdata/>
  28. </send>
  29. <hidden/>
  30. <init>
  31. <initdate>
  32. <today/>
  33. </initdate>
  34. <warddeptlist>
  35. </warddeptlist>
  36. <deptlist>
  37. </deptlist>
  38. <list/>
  39. </init>
  40. </root>
  41. </instance>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. fInitialize();
  45. model.removeNodeset("/root/main/limantibiouspatrefinfo");
  46. model.refresh();
  47. fSetParameter() ;
  48. ]]>
  49. </script>
  50. <submission id="TRASI00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/limantibiouspatrefinfo"/>
  51. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  52. <submission id="TRASI00802" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/list"/>
  53. </model>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  57. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  58. <script type="javascript">
  59. <![CDATA[
  60. function fInitialize(){
  61. // 로그인한 사용자의 과로 기본 setting
  62. // model.setValue("/root/main/cond/orddeptcd", getUserInfo("posdeptcd"));
  63. // 진료과
  64. var instcd = getUserInfo("dutplceinstcd");
  65. var standard_yn = "orduseyn";
  66. var ord_deptflag = "D";
  67. var rslt_ref = "/root/init/deptlist";
  68. var sort_field = "depthngnm";
  69. var sort_method = "asc";
  70. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  71. addComboItem("cmb_orddeptcd","","","above");
  72. //제한항생제종류
  73. var rslt_ref = "/root/init/limantibio";
  74. var sort_field = "hngnm";
  75. var sort_method = "asc";
  76. submit('TRASI00802');
  77. addComboItem("cmb_limantibio","","","above");
  78. }
  79. function fSetParameter(){
  80. var today = getCurrentDate();
  81. var idate = new Date();
  82. var peveDate = idate.getAddDate(-1, "M");
  83. model.setValue("/root/init/initdate/today", today);
  84. model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  85. model.makeValue("/root/send/cond/todd", today);
  86. model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
  87. model.setValue("/root/main/cond/todd", today);
  88. model.refresh();
  89. }
  90. //상단정보설정
  91. function fUpInfo(){
  92. var sessionPID = getPatientId();
  93. if(sessionPID != model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/pid")){
  94. fReqOpPatPamInfo();
  95. }
  96. }
  97. function fReqOpPatPamInfo(){
  98. var tioflag=model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/ioflag");
  99. if(tioflag == "I") {
  100. var ioflag="I";
  101. var pid= model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/pid");
  102. var indd=model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/indd");
  103. var cretno=model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/cretno") ;
  104. var seqno=model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/seqno");
  105. var instcd=getUserInfo("dutplceinstcd");
  106. var srchdd=getCurrentDate();
  107. var param= ioflag + "▦" //입원환자
  108. + pid + "▦"
  109. + indd + "▦"
  110. + cretno + "▦"
  111. + instcd+ "▦"
  112. + srchdd;
  113. setParameter("condparam", param);
  114. }
  115. else if(tioflag == "O") {
  116. var ioflag="O";
  117. var pid= model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/pid");
  118. var orddd=model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/indd");
  119. var cretno=model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/cretno") ;
  120. var instcd=getUserInfo("dutplceinstcd");
  121. var srchdd=getCurrentDate();
  122. var param= ioflag + "▦" //외래환자
  123. + pid + "▦"
  124. + orddd + "▦"
  125. + cretno + "▦"
  126. + instcd;
  127. setParameter("condparam", param);
  128. }
  129. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  130. }
  131. ]]>
  132. </script>
  133. </xhtml:head>
  134. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  135. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  136. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:168px; height:14px; ">제한항생제 사용환자조회</caption>
  137. </group>
  138. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  139. <group id="grp_sea" style="left:0px; top:11px; width:1194px; height:60px; vertical-align:top; ">
  140. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  141. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:52px; "/>
  142. <caption id="caption3" class="search_name" style="left:700px; top:5px; width:73px; height:17px; ">진료과 :</caption>
  143. <caption id="caption5" class="search_no_b" style="left:307px; top:9px; width:13px; height:17px; ">~</caption>
  144. <caption id="caption9" class="search_name" style="left:449px; top:34px; width:94px; height:17px; ">등록번호 :</caption>
  145. <caption id="caption1" class="search_name" style="left:448px; top:8px; width:86px; height:17px; ">진행상태 :</caption>
  146. <caption id="caption7" class="search_name" style="left:15px; top:34px; width:94px; height:17px; ">환자명 :</caption>
  147. <select1 id="cmb_termflag" ref="/root/main/cond/termflag" class="combo_s_essential" appearance="minimal" style="left:95px; top:9px; width:100px; height:19px; ">
  148. <choices>
  149. <item>
  150. <label>처방일</label>
  151. <value>P</value>
  152. </item>
  153. <item>
  154. <label>승인일</label>
  155. <value>A</value>
  156. </item>
  157. </choices>
  158. </select1>
  159. <caption id="cap_termflag" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">기 간 :</caption>
  160. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:203px; top:9px; width:100px; height:19px; "/>
  161. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:325px; top:9px; width:100px; height:19px; "/>
  162. <select1 id="cmb_orddeptcd" ref="/root/main/cond/orddeptcd" class="combo_search" appearance="minimal" style="left:805px; top:4px; width:120px; height:19px; ">
  163. <choices>
  164. <itemset nodeset="/root/init/deptlist/dept">
  165. <label ref="depthngnm"/>
  166. <value ref="deptcd"/>
  167. </itemset>
  168. </choices>
  169. </select1>
  170. <select1 id="cmb_prcsstat" ref="/root/main/cond/prcsstat" class="combo_search" appearance="minimal" style="left:544px; top:8px; width:100px; height:19px; ">
  171. <choices>
  172. <item>
  173. <label>- 전 체 -</label>
  174. <value/>
  175. </item>
  176. <item>
  177. <label>미확인</label>
  178. <value>0</value>
  179. </item>
  180. <item>
  181. <label>승인</label>
  182. <value>1</value>
  183. </item>
  184. <item>
  185. <label>비승인</label>
  186. <value>2</value>
  187. </item>
  188. </choices>
  189. </select1>
  190. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" style="left:544px; top:34px; width:100px; height:19px; ">
  191. <script type="javascript" ev:event="DOMFocusOut">
  192. <![CDATA[
  193. var pidlength = model.getValue("/root/main/cond/pid");
  194. //등록번호 8자리 이하인 환자도 존재하여 변경, 2009-07-04,CHC
  195. /*
  196. if( pidlength.length > 0 && pidlength.length < 8) {
  197. model.alert("등록번호는 8자리 이상입니다.");
  198. model.setFocus("ipt_pid");
  199. return;
  200. }
  201. */
  202. ]]>
  203. </script>
  204. <script type="javascript" ev:event="onkeypress">
  205. <![CDATA[
  206. inputEnterKey("btn_search", "DOMActivate");
  207. ]]>
  208. </script>
  209. </input>
  210. <input id="ipt_patnm" ref="/root/main/cond/patnm" class="input_search" disabled="true" style="left:95px; top:34px; width:100px; height:19px; "/>
  211. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  212. <caption>조회</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. if( !isRequiredControls("cmb_termflag","ipt_fromdd","ipt_todd") ){
  216. return;
  217. }
  218. model.makeNode("/root/send/reqdata");
  219. model.copyNode("/root/send/reqdata", "/root/main/cond");
  220. submit("TRASI00801");
  221. ]]>
  222. </script>
  223. </button>
  224. <button id="btn_prcpclsnm" class="icon_search" style="left:203px; top:35px; width:16px; height:16px; ">
  225. <caption/>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. modal("SPPMC02500");
  229. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  230. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  231. model.setValue("/root/main/cond/pid", sPid);
  232. model.setValue("/root/main/cond/patnm", sHngnm);
  233. model.refresh();
  234. ]]>
  235. </script>
  236. </button>
  237. <caption id="caption2" class="search_name" style="left:700px; top:30px; width:99px; height:17px; ">제한항생제 :</caption>
  238. <select1 id="cmb_limantibio" ref="/root/main/cond/limantibio" appearance="minimal" style="left:805px; top:30px; width:275px; height:19px; ">
  239. <choices>
  240. <itemset nodeset="/root/init/list/limantibio">
  241. <label ref="hngnm"/>
  242. <value ref="prcpcd"/>
  243. </itemset>
  244. </choices>
  245. </select1>
  246. </group>
  247. <line id="line2" class="line_1" style="x1:0px; y1:96px; x2:1195px; y2:96px; "/>
  248. <datagrid id="grd_limantibiouspatref" nodeset="/root/main/limantibiouspatrefinfo/limantibiouspatreflist" caption="진행상태^의뢰일시^의뢰의사^등록번호^환자명^나이^성별^진료과^상병명^처방명^항생제코드^항생제명^시작일자^종료일자^승인상태^승인/거부 Comment^cretno^instcd^seqno^orddd^indd^ioflag" colsep="^" colwidth="50, 70, 70, 70, 70, 50, 50, 100, 200, 100, 96, 200, 80, 80, 60, 200, 0, 0, 0, 0, 0, 0" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:101px; width:1194px; height:641px; ">
  249. <col ref="stat" visibility="hidden"/>
  250. <col ref="agndt" format="yyyy-mm-dd"/>
  251. <col ref="agndr"/>
  252. <col ref="pid"/>
  253. <col ref="patnm"/>
  254. <col ref="age"/>
  255. <col ref="sex"/>
  256. <col ref="orddeptcd"/>
  257. <col ref="snwnm"/>
  258. <col ref="prcpnm"/>
  259. <col ref="antibiocd" visibility="hidden"/>
  260. <col ref="antibionm"/>
  261. <col ref="fromdd" format="yyyy-mm-dd"/>
  262. <col ref="todd" format="yyyy-mm-dd"/>
  263. <col ref="aprvstat"/>
  264. <col ref="aprvrejtcmt"/>
  265. <col ref="cretno" visibility="hidden"/>
  266. <col ref="instcd" visibility="hidden"/>
  267. <col ref="seqno" visibility="hidden"/>
  268. <col ref="orddd" visibility="hidden"/>
  269. <col ref="indd" visibility="hidden"/>
  270. <col ref="ioflag" visibility="hidden"/>
  271. <script type="javascript" ev:event="onaftersort">
  272. <![CDATA[
  273. grd_limantibiouspatref.gridToInstance();
  274. ]]>
  275. </script>
  276. <script type="javascript" ev:event="ondblclick">
  277. <![CDATA[
  278. if((grd_limantibiouspatref.mouseRow > 0) && (grd_limantibiouspatref.mouseRow <= grd_limantibiouspatref.rows )) {
  279. fReqOpPatPamInfo();
  280. }
  281. ]]>
  282. </script>
  283. </datagrid>
  284. <caption id="caption25" class="tit_2" style="left:0px; top:81px; width:178px; height:14px; ">제한항생제 사용환자</caption>
  285. <button id="btn_excel" class="btn2_letter2" style="left:1151px; top:75px; width:42px; height:19px; ">
  286. <caption>엑셀</caption>
  287. <script type="javascript" ev:event="DOMActivate">
  288. <![CDATA[
  289. // var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  290. // if (fileName != ""){
  291. // grd_limantibiouspatref.saveExcel(fileName, "SheetName", true, true, "", "", false);
  292. // }
  293. var fileName = window.fileDialog("save", ",", false, "제한항생제사용자조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  294. if (fileName != ""){
  295. grd_limantibiouspatref.saveExcel(fileName, "제한항생제 사용자", true, true, "", "", false);
  296. var s = fileName.lastIndexOf("\\");
  297. var fileName=fileName.substring(s+1);
  298. var rmsg = messageBox("저장된 Excel을", "Q004");
  299. if( rmsg == 6 ){
  300. window.exec("excel.exe", fileName);
  301. }
  302. }
  303. ]]>
  304. </script>
  305. </button>
  306. </group>
  307. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  308. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  309. <caption>출력</caption>
  310. </button>
  311. <button id="btn_init" class="btn4_letter3" style="left:1120px; top:3px; width:68px; height:22px; ">
  312. <caption>초기화</caption>
  313. <script type="javascript" ev:event="DOMActivate">
  314. <![CDATA[
  315. model.removeNodeset("/root/main/limantibiouspatrefinfo");
  316. model.refresh();
  317. ]]>
  318. </script>
  319. </button>
  320. <button id="btn_sytsrecref" class="btn3_letter6" style="left:57px; top:3px; width:104px; height:22px; ">
  321. <caption>통합기록조회</caption>
  322. <script type="javascript" ev:event="DOMActivate">
  323. <![CDATA[
  324. var sessionPID = getPatientId();
  325. var iRow=grd_limantibiouspatref.row;
  326. if(model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist/ioflag") == "I"){
  327. if(sessionPID != model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+iRow+"]/pid")){
  328. fReqInPatPamInfo();
  329. }
  330. }else if(model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist/ioflag") == "O"){
  331. if(sessionPID != model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+iRow+"]/pid")){
  332. fReqOutPatPamInfo();
  333. }
  334. }
  335. modal("SMMRI00400",1,10,10,"SMMRI00400", "", "/root/hidden/oprecinfo/info");
  336. ]]>
  337. </script>
  338. </button>
  339. </group>
  340. </xhtml:body>
  341. </xhtml:html>