SPASI00300_미생물배양결과정보조회.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  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. <main>
  10. <microculturersltinfo>
  11. </microculturersltinfo>
  12. <cond>
  13. <pid/>
  14. <refcond>O</refcond>
  15. <fromdd/>
  16. <todd/>
  17. </cond>
  18. </main>
  19. <send>
  20. <reqdata/>
  21. </send>
  22. <hidden>
  23. <microculturersltinfo>
  24. <microculturersltlist/>
  25. </microculturersltinfo>
  26. </hidden>
  27. <init>
  28. <initdate>
  29. <today/>
  30. </initdate>
  31. <warddeptlist>
  32. <dept>
  33. <depthngnm/>
  34. <deptcd/>
  35. </dept>
  36. </warddeptlist>
  37. <deptlist>
  38. <dept>
  39. <depthngnm/>
  40. <deptcd/>
  41. </dept>
  42. </deptlist>
  43. </init>
  44. </root>
  45. </instance>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. fInitialize();
  49. model.removeNodeset("/root/main/microculturersltinfo");
  50. grd_microculturersltlist.mergecol(1) = true;
  51. grd_microculturersltlist.mergecol(12) = false;
  52. model.setValue("/root/main/cond/refcond", "O");
  53. model.refresh();
  54. ]]>
  55. </script>
  56. <submission id="TRASI00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/microculturersltinfo"/>
  57. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  58. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  59. </model>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  64. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  65. <script type="javascript">
  66. <![CDATA[
  67. function fInitialize() {
  68. // 공통코드를 조회한다.
  69. // 진료과
  70. var instcd = getUserInfo("dutplceinstcd");
  71. var standard_yn = "orduseyn";
  72. var ord_deptflag = 'D';
  73. var rslt_ref = "/root/init/deptlist";
  74. var sort_field = "depthngnm";
  75. var sort_method = "asc";
  76. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  77. //병동
  78. standard_yn = "orduseyn";
  79. ord_deptflag = "W";
  80. rslt_ref = "/root/init/warddeptlist";
  81. sort_field = "deptcd";
  82. sort_method = "asc";
  83. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  84. var today = getCurrentDate();
  85. var idate = new Date();
  86. var peveDate = idate.getAddDate(-1, "M");
  87. model.setValue("/root/init/initdate/today", today);
  88. model.makeValue("/root/send/cond/trgtmancnt", "I");
  89. model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  90. model.makeValue("/root/send/cond/todd", today);
  91. model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
  92. model.setValue("/root/main/cond/todd", today);
  93. model.refresh();
  94. }
  95. ]]>
  96. </script>
  97. </xhtml:head>
  98. <xhtml:body pagewidth="1116" pageheight="617" guideline="2,-3;" style="margin-left:8; margin-right:8; ">
  99. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1100px; height:592px; ">
  100. <datagrid id="grd_microculturersltlist" nodeset="/root/main/microculturersltinfo/microculturersltlist" class="datagrid2" autoresize="true" caption="선택^접수일^보고일^채취일시^검체코드^검체^균코드^균^처방병동^처방병실^현병동^현병실^진료과^진료의^ 내성균코드^항생제 내성균 구분^bcno^tclscd^testcd^prcpdd^균" colsep="^" colwidth="39, 90, 90, 90, 100, 120, 120, 200, 70, 70, 70, 70, 100, 100, 100, 113, 100, 100, 100, 100" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:52px; width:1100px; height:538px; ">
  101. <col checkvalue="true,false" ref="check" type="checkbox"/>
  102. <col ref="spcacptdt" format="yyyy-mm-dd"/>
  103. <col ref="lastreptdt" format="yyyy-mm-dd hh:nn" style="text-align:center; vertical-align:middle; "/>
  104. <col ref="bcoldt" format="yyyy-mm-dd hh:nn" style="text-align:center; vertical-align:middle; "/>
  105. <col ref="spccd" visibility="hidden"/>
  106. <col ref="spcnm"/>
  107. <col ref="baccd" visibility="hidden"/>
  108. <col ref="bacnm"/>
  109. <col ref="prcpwardcd">
  110. <!--
  111. choices>
  112. <itemset nodeset="/root/init/warddeptlist/dept">
  113. <label ref="depthngnm"/>
  114. <value ref="deptcd"/>
  115. </itemset>
  116. </choices>
  117. -->
  118. </col>
  119. <col ref="prcproomcd"/>
  120. <col ref="wardcd">
  121. <!--
  122. <choices>
  123. <itemset nodeset="/root/init/warddeptlist/dept">
  124. <label ref="depthngnm"/>
  125. <value ref="deptcd"/>
  126. </itemset>
  127. </choices>
  128. -->
  129. </col>
  130. <col ref="roomcd"/>
  131. <col ref="orddeptcd">
  132. <!--
  133. <choices>
  134. <itemset nodeset="/root/init/deptlist/dept">
  135. <label ref="depthngnm"/>
  136. <value ref="deptcd"/>
  137. </itemset>
  138. </choices>
  139. -->
  140. </col>
  141. <col ref="atdoct"/>
  142. <col ref="antibtrstbtrflag" visibility="hidden"/>
  143. <col ref="antibtrstbtrflagnm"/>
  144. <col ref="bcno" visibility="hidden"/>
  145. <col ref="tclscd" visibility="hidden"/>
  146. <col ref="testcd" visibility="hidden"/>
  147. <col ref="prcpdd" visibility="hidden"/>
  148. <script type="javascript" ev:event="xforms-value-changed">
  149. <![CDATA[
  150. // if(grd_microculturersltlist.col == 1)
  151. // {
  152. // var check_row = grd_microculturersltlist.row;
  153. //
  154. // var check = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/check");
  155. // var barcheck = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/baccheck");
  156. // var bcolldt = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/bcoldt");
  157. // var lastreptdt = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/lastreptdt");
  158. // var prcpwardcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/prcpwardcd");
  159. // var prcproomcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/prcproomcd");
  160. // var wardcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/wardcd");
  161. // var roomcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/roomcd");
  162. // var orddeptcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/orddeptcd");
  163. // var atdoct = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/atdoct");
  164. // var spcnm = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + check_row + "]/spcnm");
  165. // var ibcolldt = "";
  166. // var ilastreptdt = "";
  167. // var iprcpwardcd = "";
  168. // var iprcproomcd = "";
  169. // var iwardcd = "";
  170. // var iroomcd = "";
  171. // var iorddeptcd = "";
  172. // var iatdoct = "";
  173. // var ispcnm = "";
  174. // for(var iRow=grd_microculturersltlist.fixedrows; iRow <= grd_microculturersltlist.rows-grd_microculturersltlist.fixedrows;iRow++){
  175. // ibcolldt = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/bcoldt");
  176. // ilastreptdt = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/lastreptdt");
  177. // iprcpwardcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/prcpwardcd");
  178. // iprcproomcd = model.getValue ("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/prcproomcd");
  179. // iwardcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/wardcd");
  180. // iroomcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/roomcd");
  181. // iorddeptcd = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/orddeptcd");
  182. // iatdoct = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/atdoct");
  183. // ispcnm = model.getValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/spcnm");
  184. // if(bcolldt == ibcolldt && lastreptdt == ilastreptdt && prcpwardcd == iprcpwardcd && prcproomcd == iprcproomcd &&
  185. // wardcd == iwardcd && roomcd == iroomcd && orddeptcd == iorddeptcd && atdoct == iatdoct && spcnm == ispcnm){
  186. // if(check == "true"){
  187. // model.makeValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/check", "true");
  188. // model.makeValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/baccheck", "true");
  189. // } else {
  190. // model.makeValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/check", "false");
  191. // model.makeValue("/root/main/microculturersltinfo/microculturersltlist[" + iRow + "]/baccheck", "false");
  192. // }
  193. // }
  194. // }
  195. // model.refresh();
  196. // grd_microculturersltlist.mergecol(1) = true;
  197. // grd_microculturersltlist.mergecol(11) = false;
  198. // }
  199. ]]>
  200. </script>
  201. <script type="javascript" ev:event="onaftersort">
  202. <![CDATA[
  203. grd_microculturersltlist.gridToInstance();
  204. ]]>
  205. </script>
  206. <script type="javascript" ev:event="ondblclick">
  207. <![CDATA[
  208. if((grd_microculturersltlist.mouseRow > 0) && ( grd_microculturersltlist.mouseRow <= grd_microculturersltlist.rows )) {
  209. var iRow=grd_microculturersltlist.row;
  210. var rtnmsg_header = "lastreptdt▦spccd▦spcnm▦baccd▦bacnm▦antibtrstbtrflag▦bcno▦tclscd▦testcd▦prcpdd▦bcoldt▦antibtrstbtrflagnm▩";
  211. var rtnmsg_data = "";
  212. rtnmsg_data+= model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/lastreptdt")+"▦"
  213. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/spccd")+"▦"
  214. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/spcnm")+"▦"
  215. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/baccd")+"▦"
  216. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/bacnm")+"▦"
  217. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/antibtrstbtrflag")+"▦"
  218. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/bcno")+"▦"
  219. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/tclscd")+"▦"
  220. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/testcd")+"▦"
  221. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/prcpdd")+"▦"
  222. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/bcoldt")+"▦"
  223. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/antibtrstbtrflagnm")+"▩";
  224. opener.javascript.setParameter("setVal", rtnmsg_header+rtnmsg_data);
  225. window.close();
  226. }
  227. ]]>
  228. </script>
  229. </datagrid>
  230. <line id="line56" class="line_3" style="x1:0px; y1:50px; x2:1100px; y2:50px; "/>
  231. <caption id="caption1" class="tit_2" style="left:5px; top:7px; width:175px; height:14px; ">미생물배양 결과정보조회</caption>
  232. <line id="line7" class="line_1" style="x1:0px; y1:22px; x2:1100px; y2:22px; "/>
  233. <caption id="caption3" style="left:500px; top:30px; width:20px; height:20px; ">~</caption>
  234. <button id="btn_allchoi" class="btn2_letter4" style="left:882px; top:2px; width:64px; height:19px; ">
  235. <caption>전체선택</caption>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. for(var i=1; i < grd_microculturersltlist.rows; i++){
  239. model.setValue("/root/main/microculturersltinfo/microculturersltlist[" + i + "]/check", "true");
  240. }
  241. model.refresh();
  242. ]]>
  243. </script>
  244. </button>
  245. <button id="btn_allcncl" class="btn2_letter4" style="left:947px; top:2px; width:64px; height:19px; ">
  246. <caption>전체취소</caption>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. for(var i=1; i < grd_microculturersltlist.rows; i++){
  250. model.setValue("/root/main/microculturersltinfo/microculturersltlist[" + i + "]/check", "false");
  251. }
  252. model.refresh();
  253. ]]>
  254. </script>
  255. </button>
  256. <button id="btn_search" class="btn1_letter2" style="left:1042px; top:27px; width:56px; height:22px; ">
  257. <caption>조회</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. if( !isRequiredControls("ipt_pid","cmb_refcond","ipt_fromdd","ipt_todd") ){
  261. return;
  262. }
  263. model.makeNode("/root/send/reqdata");
  264. model.copyNode("/root/send/reqdata", "/root/main/cond");
  265. submit("TRASI00301");
  266. ]]>
  267. </script>
  268. </button>
  269. <button id="btn_excel" class="btn2_letter2" style="left:1012px; top:2px; width:42px; height:19px; ">
  270. <caption>엑셀</caption>
  271. <script type="javascript" ev:event="DOMActivate">
  272. <![CDATA[
  273. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  274. if (fileName != ""){
  275. grd_microculturersltlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  276. }
  277. ]]>
  278. </script>
  279. </button>
  280. <button id="btn_cnfm" class="btn2_letter2" style="left:1055px; top:2px; width:42px; height:19px; ">
  281. <caption>확인</caption>
  282. <script type="javascript" ev:event="DOMActivate">
  283. <![CDATA[
  284. var iRow=grd_microculturersltlist.row;
  285. var rtnmsg_header = "lastreptdt▦spccd▦spcnm▦baccd▦bacnm▦antibtrstbtrflag▦bcno▦tclscd▦testcd▦prcpdd▦bcoldt▦antibtrstbtrflagnm▩";
  286. var rtnmsg_data = "";
  287. for(var iRow=grd_microculturersltlist.fixedrows; iRow <= grd_microculturersltlist.rows-grd_microculturersltlist.fixedrows;iRow++){
  288. if(model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/check") == "true"){
  289. rtnmsg_data+= model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/lastreptdt")+"▦"
  290. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/spccd")+"▦"
  291. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/spcnm")+"▦"
  292. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/baccd")+"▦"
  293. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/bacnm")+"▦"
  294. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/antibtrstbtrflag")+"▦"
  295. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/bcno")+"▦"
  296. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/tclscd")+"▦"
  297. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/testcd")+"▦"
  298. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/prcpdd")+"▦"
  299. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/bcoldt")+"▦"
  300. +model.getValue("/root/main/microculturersltinfo/microculturersltlist["+iRow+"]/antibtrstbtrflagnm")+"▩";
  301. }
  302. }
  303. opener.javascript.setParameter("setVal", rtnmsg_header+rtnmsg_data);
  304. window.close();
  305. ]]>
  306. </script>
  307. </button>
  308. <select1 id="cmb_refcond" ref="/root/main/cond/refcond" class="combo_s_essential" navindex="10" appearance="minimal" style="left:228px; top:29px; width:87px; height:19px; ">
  309. <choices>
  310. <item>
  311. <label>처방일</label>
  312. <value>O</value>
  313. </item>
  314. <item>
  315. <label>접수일</label>
  316. <value>A</value>
  317. </item>
  318. <item>
  319. <label>결과보고일</label>
  320. <value>R</value>
  321. </item>
  322. </choices>
  323. </select1>
  324. <caption id="cap_pid" class="cell_1" style="left:0px; top:27px; width:55px; height:23px; vertical-align:middle; ">등록번호</caption>
  325. <caption id="cap_fromdd" class="cell_1" style="left:325px; top:27px; width:55px; height:23px; vertical-align:middle; ">조회기간</caption>
  326. <caption id="cap_todd" class="cell_1" visibility="hidden" style="left:325px; top:27px; width:55px; height:23px; vertical-align:middle; ">조회기간</caption>
  327. <caption id="cap_refcond" class="cell_1" style="left:170px; top:27px; width:55px; height:23px; vertical-align:middle; ">구분</caption>
  328. </group>
  329. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:382px; top:28px; width:113px; height:19px; "/>
  330. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:515px; top:28px; width:113px; height:19px; "/>
  331. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_s_essential" disabled="true" style="left:58px; top:28px; width:103px; height:19px; ">
  332. <script type="javascript" ev:event="DOMFocusOut">
  333. <![CDATA[
  334. var pidlength = model.getValue("/root/main/cond/pid");
  335. if(pidlength.length < 8) {
  336. model.alert("등록번호는 8자리 이상입니다.");
  337. model.setFocus("ipt_pid");
  338. }
  339. ]]>
  340. </script>
  341. </input>
  342. <group id="grp_btn" style="left:0px; top:590px; width:1100px; height:27px; ">
  343. <button id="btn_init" class="btn4_letter3" style="left:1028px; top:3px; width:68px; height:22px; ">
  344. <caption>초기화</caption>
  345. <script type="javascript" ev:event="DOMActivate">
  346. <![CDATA[
  347. model.removeNodeset("/root/main/microculturersltinfo");
  348. model.refresh();
  349. ]]>
  350. </script>
  351. </button>
  352. <button id="btn_print" class="btn6_letter2" style="left:3px; top:3px; width:56px; height:22px; ">
  353. <caption>출력</caption>
  354. </button>
  355. </group>
  356. </xhtml:body>
  357. </xhtml:html>