SPASI04600_병원체검사결과 신고.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>병원체검사결과 신고</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <getrsltregst>
  11. <no/>
  12. <bcno/>
  13. <pid/>
  14. <patnm/>
  15. <sexage/>
  16. <spcnm/>
  17. <orddeptnm/>
  18. <wardroom/>
  19. <tclsnm/>
  20. <inptrslt/>
  21. <testdt/>
  22. <testnm/>
  23. <testcmt/>
  24. <tclskind/>
  25. <baccd/>
  26. <spcacptdt/>
  27. <baccdnm/>
  28. <examnm/>
  29. <disease/>
  30. <csltinstcd/>
  31. <csltinstcdnm/>
  32. <rrgstno1/>
  33. <currentdt/>
  34. <orddridnm/>
  35. <csltinstexecd/>
  36. </getrsltregst>
  37. <testgrupdetl>
  38. <chk/>
  39. <tclsnm/>
  40. <tclscd/>
  41. </testgrupdetl>
  42. </main>
  43. <send>
  44. <codeflag/>
  45. <tclsnmlist/>
  46. <usdd/>
  47. <ustm/>
  48. <uedd/>
  49. <uetm/>
  50. <deptL/>
  51. <deptM/>
  52. <tclscdlist/>
  53. <userdeptflagcd/>
  54. <deptgbn/>
  55. <seamthdcd/>
  56. <page/>
  57. <itemlimit/>
  58. </send>
  59. <init>
  60. </init>
  61. <hidden>
  62. <ref>
  63. <usdd/>
  64. <ustm/>
  65. <uedd/>
  66. <uetm/>
  67. <tclscdlist>
  68. <tclscdlist/>
  69. <tclsnmlist/>
  70. <tclscdlist2/>
  71. <testgrup/>
  72. </tclscdlist>
  73. <testgrupseqno/>
  74. <deptgbn>1</deptgbn>
  75. <deptL>00</deptL>
  76. <deptM>00</deptM>
  77. </ref>
  78. <hosp/>
  79. </hidden>
  80. </root>
  81. </instance>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  85. <script type="javascript" ev:event="xforms-ready">
  86. <![CDATA[
  87. fSetInit();
  88. ]]>
  89. </script>
  90. <submission id="TRASB04620" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0102"/>
  91. <submission id="TRASB04610" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/getrsltregst"/>
  92. <submission id="TRASB04600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
  93. </model>
  94. <script type="javascript">
  95. <![CDATA[
  96. //검사분류 초기화
  97. //초기화
  98. function fSetInit(ref) {
  99. if(ref != 2) {
  100. var toDay = getCurrentDate();
  101. model.setValue("/root/hidden/ref/usdd", toDay);
  102. model.setValue("/root/hidden/ref/ustm", "0000");
  103. model.setValue("/root/hidden/ref/uedd", toDay);
  104. model.setValue("/root/hidden/ref/uetm", "2359");
  105. //model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
  106. //model.setValue("/root/hidden/ref/tclscdlist/testgrup", "");
  107. //model.setValue("/root/hidden/ref/deptgbn", "1");
  108. //model.setValue("/root/hidden/ref/deptL", "00");
  109. //model.setValue("/root/hidden/ref/deptM", "00");
  110. model.removeNodeset("/root/main/getrsltregst");
  111. }
  112. model.removeNodeset("/root/init");
  113. //model.setValue("/root/send/codeflag", "0104|0102|0103|");
  114. //submit("TRASB04620");
  115. model.refresh();
  116. }
  117. //조회
  118. function fGetRsltRegst() {
  119. model.removeNodeset("/root/main/getrsltregst");
  120. model.setValue("/root/send/usdd", model.getValue("/root/hidden/ref/usdd"));
  121. //model.setValue("/root/send/ustm", model.getValue("/root/hidden/ref/ustm"));
  122. model.setValue("/root/send/uedd", model.getValue("/root/hidden/ref/uedd"));
  123. //model.setValue("/root/send/uetm", model.getValue("/root/hidden/ref/uetm"));
  124. //model.setValue("/root/send/deptL", model.getValue("/root/hidden/ref/deptL"));
  125. //model.setValue("/root/send/deptM", model.getValue("/root/hidden/ref/deptM"));
  126. //model.setValue("/root/send/deptgbn", model.getValue("/root/hidden/ref/deptgbn"));
  127. //model.setValue("/root/send/userdeptflagcd", model.getValue("root/init/LB0000/nm"));
  128. //model.setValue("/root/send/seamthdcd", "0");
  129. //model.setValue("/root/send/page", 1);
  130. //model.setValue("/root/send/itemlimit", "10000");
  131. /*
  132. if(model.getValue("/root/hidden/ref/tclscdlist/tclsnmlist") == "") {
  133. model.setValue("/root/send/tclscdlist", "");
  134. } else {
  135. model.setValue("/root/send/tclscdlist", model.getValue("/root/hidden/ref/tclscdlist/tclscdlist"));
  136. }
  137. */
  138. submit("TRASB04610");
  139. var lastpage = model.getValue("/root/main/lastPage/lastPage");
  140. for(page = 2 ; page <= lastpage ; page++){
  141. model.setValue("/root/send/page", page);
  142. submit("TRASB04610");
  143. }
  144. /*
  145. var count = 0;
  146. var bcno = model.getValue("/root/main/getrsltregst[1]/bcno");
  147. for(i = 1; i < grd_rsltregst.rows; i++) {
  148. if(i == 1 || model.getValue("/root/main/getrsltregst["+ i +"]/bcno") != bcno) {
  149. ++count;
  150. model.setValue("/root/main/getrsltregst["+ i +"]/no", count);
  151. bcno = model.getValue("/root/main/getrsltregst["+ i +"]/bcno");
  152. } else if(model.getValue("/root/main/getrsltregst["+ i +"]/bcno") == bcno) {
  153. model.setValue("/root/main/getrsltregst["+ i +"]/bcno", "");
  154. model.setValue("/root/main/getrsltregst["+ i +"]/pid", "");
  155. model.setValue("/root/main/getrsltregst["+ i +"]/patnm", "");
  156. model.setValue("/root/main/getrsltregst["+ i +"]/sexage", "");
  157. model.setValue("/root/main/getrsltregst["+ i +"]/spcnm", "");
  158. model.setValue("/root/main/getrsltregst["+ i +"]/orddeptnm", "");
  159. model.setValue("/root/main/getrsltregst["+ i +"]/wardroom", "");
  160. }
  161. }
  162. */
  163. }
  164. //검사그룹조회
  165. function fSelectTestGrup(){
  166. model.makeValue("/root/send/testgrupnm", cmb_testitem.label);
  167. submit("TRASB04600" ,false);
  168. fSetPopUpTclscdList();
  169. }
  170. function fSetPopUpTclscdList(){
  171. var count = getNodesetCount("/root/main/testgrupdetl");
  172. if(count > 0){
  173. var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
  174. var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  175. var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  176. // 검사그룹 상세 목록 없을때
  177. if(sendtclsnm == ""){
  178. model.setValue("/root/hidden/tclscdlist/tclscdlist", "");
  179. model.setValue("/root/hidden/tclscdlist/tclsnmlist", "");
  180. }else{ // 검사그룹 상세 목록 있을때
  181. for(i=2; i<= count; i++){
  182. sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
  183. //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  184. sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  185. sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  186. }
  187. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
  188. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
  189. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
  190. }
  191. model.refresh();
  192. }
  193. }
  194. //엑셀저장
  195. function fExeExcel(pGridId) {
  196. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  197. if (fileName != "")
  198. {
  199. pGridId.saveExcel(fileName);
  200. }
  201. }
  202. function fComboAalue(){
  203. if(model.getValue("/root/hidden/ref/deptgbn") == "1"){
  204. cmb_dept.visible = true;
  205. combo2.visible = false;
  206. }
  207. else{
  208. cmb_dept.visible = false;
  209. combo2.visible = true;
  210. }
  211. }
  212. ]]>
  213. </script>
  214. </xhtml:head>
  215. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  216. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  217. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
  218. <caption id="caption1" class="tit_2" style="left:5px; top:59px; width:145px; height:14px; ">병원체검사결과 신고</caption>
  219. <group id="group1" style="left:0px; top:10px; width:1195px; height:40px; ">
  220. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:40px; "/>
  221. <button id="btn_ref" class="btn1_letter2" style="left:1064px; top:9px; width:56px; height:22px; ">
  222. <caption>조회</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. fGetRsltRegst();
  226. ]]>
  227. </script>
  228. </button>
  229. <line id="line3" class="line_4" style="x1:1054px; y1:8px; x2:1054px; y2:34px; "/>
  230. <caption id="caption5" class="search_name" style="left:15px; top:9px; width:87px; height:17px; ">결과일시 :</caption>
  231. <caption id="caption8" style="left:196px; top:9px; width:15px; height:20px; vertical-align:middle; ">~</caption>
  232. <caption id="caption3" class="search_name" visibility="hidden" style="left:500px; top:16px; width:94px; height:17px; ">검사항목 :</caption>
  233. <button id="button6" class="icon_search" visibility="hidden" style="left:995px; top:13px; width:16px; height:16px; ">
  234. <caption/>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. modal("SMLLF90400", "", "", "", "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
  238. ]]>
  239. </script>
  240. </button>
  241. <input id="ipt_tclscdlist" ref="/root/hidden/ref/tclscdlist/tclsnmlist" visibility="hidden" style="left:730px; top:15px; width:265px; height:19px; "/>
  242. <input id="ipt_usdd" ref="/root/hidden/ref/usdd" class="input_search" inputtype="date" style="left:106px; top:8px; width:85px; height:19px; "/>
  243. <input id="ipt_ustm" ref="/root/hidden/ref/ustm" class="input_search" visibility="hidden" format="hh:nn" style="left:313px; top:8px; width:35px; height:19px; "/>
  244. <input id="ipt_uedd" ref="/root/hidden/ref/uedd" class="input_search" inputtype="date" style="left:211px; top:8px; width:85px; height:19px; "/>
  245. <input id="ipt_uetm" ref="/root/hidden/ref/uetm" class="input_search" visibility="hidden" format="hh:nn" style="left:355px; top:8px; width:35px; height:19px; "/>
  246. <select1 id="cmb_testitem" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" visibility="hidden" appearance="minimal" style="left:591px; top:15px; width:136px; height:19px; ">
  247. <choices>
  248. <itemset nodeset="/root/init/LB0103">
  249. <label ref="nm"/>
  250. <value ref="cd"/>
  251. </itemset>
  252. </choices>
  253. <script type="javascript" ev:event="xforms-value-changed">
  254. <![CDATA[
  255. fSelectTestGrup();
  256. ]]>
  257. </script>
  258. </select1>
  259. <caption id="caption2" class="search_name" visibility="hidden" style="left:400px; top:9px; width:86px; height:17px; ">시행부서 :</caption>
  260. <select1 id="combo1" ref="/root/hidden/ref/deptgbn" visibility="hidden" appearance="minimal" style="left:490px; top:8px; width:85px; height:19px; font-weight:normal; ">
  261. <choices>
  262. <item>
  263. <label>대분류</label>
  264. <value>1</value>
  265. </item>
  266. <item>
  267. <label>중분류</label>
  268. <value>2</value>
  269. </item>
  270. </choices>
  271. <script type="javascript" ev:event="xforms-value-changed">
  272. <![CDATA[
  273. fComboAalue();
  274. ]]>
  275. </script>
  276. </select1>
  277. <select1 id="combo2" ref="/root/hidden/ref/deptM" visibility="hidden" appearance="minimal" style="left:585px; top:8px; width:125px; height:19px; font-weight:normal; ">
  278. <choices>
  279. <itemset nodeset="/root/init/LB0102">
  280. <label ref="nm"/>
  281. <value ref="cd"/>
  282. </itemset>
  283. </choices>
  284. </select1>
  285. <select1 id="cmb_dept" ref="/root/hidden/ref/deptL" visibility="hidden" appearance="minimal" style="left:585px; top:8px; width:125px; height:19px; font-weight:normal; ">
  286. <choices>
  287. <itemset nodeset="/root/init/LB0104">
  288. <label ref="nm"/>
  289. <value ref="cd"/>
  290. </itemset>
  291. </choices>
  292. </select1>
  293. <button id="btn_excel" class="btn1_letter2" navindex="8" style="left:1130px; top:10px; width:56px; height:22px; ">
  294. <caption>엑셀</caption>
  295. <script type="javascript" ev:event="DOMActivate">
  296. <![CDATA[
  297. var fileName = window.fileDialog("save", ",", false, "병원체검사결과 신고_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  298. if (fileName != ""){
  299. grd_rsltregst.saveExcel(fileName, "SheetName", true, true, "", "", "false");
  300. }
  301. ]]>
  302. </script>
  303. </button>
  304. </group>
  305. <datagrid id="grd_rsltregst" nodeset="/root/main/getrsltregst" caption="의뢰기관^의뢰기관^의뢰기관^검체정보^검체정보^검체정보^검체정보^검체정보^검체정보^검체정보^검체정보^검체정보^검체정보^검체정보^검체정보^병원체^발생정보^발생정보^발생정보^검사기관^검사기관^접수일시^시행부서^프린트명^tclskind|의뢰기관코드^의뢰기관명^담당자^성명^성별^생년월일^등록번호^과명/병동^검체종류^검체종류(기타)^검사방법^검사방법(기타)^결과^감염질환^검사항목명^병원체코드^의뢰일^진단일^신고일^기관번호^진단의^접수일시^시행부서^프린트명^tclskind" colsep="^" colwidth="85, 100, 70, 69, 44, 70, 70, 120, 60, 151, 80, 100, 150, 150, 220, 70, 80, 80, 80, 80, 80, 0, 0, 0, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:80px; width:1194px; height:650px; ">
  306. <col ref="csltinstcd" style="text-align:center; "/>
  307. <col ref="csltinstcdnm" style="text-align:center; "/>
  308. <col ref="orddridnm" style="text-align:center; "/>
  309. <col ref="patnm" style="text-align:center; "/>
  310. <col ref="sexage" style="text-align:center; "/>
  311. <col ref="rrgstno1" style="text-align:center; "/>
  312. <col ref="pid" style="text-align:center; "/>
  313. <col ref="wardroom"/>
  314. <col/>
  315. <col ref="spcnm"/>
  316. <col style="text-align:center; "/>
  317. <col ref="examnm"/>
  318. <col ref="inptrslt"/>
  319. <col ref="disease"/>
  320. <col ref="tclsnm"/>
  321. <col ref="baccdnm" style="text-align:center; "/>
  322. <col ref="spcacptdt" style="text-align:center; "/>
  323. <col ref="testdt" style="text-align:center; "/>
  324. <col ref="currentdt" style="text-align:center; "/>
  325. <col ref="csltinstexecd" style="text-align:center; "/>
  326. <col ref="testnm" style="text-align:center; "/>
  327. <col ref="spcacptdt"/>
  328. <col ref="execdeptcd"/>
  329. <col ref="tclspnm"/>
  330. <col ref="tclskind"/>
  331. <script type="javascript" ev:event="onaftersort">
  332. <![CDATA[
  333. grd_rsltregst.gridToInstance();
  334. ]]>
  335. </script>
  336. </datagrid>
  337. </group>
  338. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  339. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  340. <caption>초기화</caption>
  341. <script type="javascript" ev:event="onclick">
  342. <![CDATA[
  343. fSetInit();
  344. ]]>
  345. </script>
  346. </button>
  347. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  348. </group>
  349. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  350. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:13px; ">병원체검사결과 신고</caption>
  351. </group>
  352. </xhtml:body>
  353. </xhtml:html>