SMLLP00410_결과대장.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLP00400_결과대장.xrw
  4. * 설 명 : 결과대장
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 윤재한
  7. * 작 성 일 : 2007.08.01
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>결과대장</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <getrsltregst>
  20. <no/>
  21. <bcno/>
  22. <pid/>
  23. <patnm/>
  24. <sexage/>
  25. <spcnm/>
  26. <orddeptnm/>
  27. <wardroom/>
  28. <tclsnm/>
  29. <inptrslt/>
  30. <testdt/>
  31. <testnm/>
  32. <testcmt/>
  33. <tclskind/>
  34. <ordernm/>
  35. <prcpdd/>
  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. <pid/>
  59. <ordnm/>
  60. </send>
  61. <init>
  62. </init>
  63. <hidden>
  64. <ref>
  65. <usdd/>
  66. <ustm/>
  67. <uedd/>
  68. <uetm/>
  69. <tclscdlist>
  70. <tclscdlist/>
  71. <tclsnmlist/>
  72. <tclscdlist2/>
  73. <testgrup/>
  74. </tclscdlist>
  75. <testgrupseqno/>
  76. <deptgbn>1</deptgbn>
  77. <deptL>00</deptL>
  78. <deptM>00</deptM>
  79. <pid/>
  80. <ordnm/>
  81. </ref>
  82. <hosp/>
  83. </hidden>
  84. </root>
  85. </instance>
  86. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  89. <script type="javascript" ev:event="xforms-ready">
  90. <![CDATA[
  91. fSetInit();
  92. ]]>
  93. </script>
  94. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0102"/>
  95. <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
  96. <submission id="TRLLP00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/getrsltregst"/>
  97. <submission id="TRLLF90404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
  98. </model>
  99. <script type="javascript">
  100. <![CDATA[
  101. //검사분류 초기화
  102. //초기화
  103. function fSetInit(ref) {
  104. if(ref != 2) {
  105. var toDay = getCurrentDate();
  106. model.setValue("/root/hidden/ref/usdd", toDay);
  107. model.setValue("/root/hidden/ref/ustm", "0000");
  108. model.setValue("/root/hidden/ref/uedd", toDay);
  109. model.setValue("/root/hidden/ref/uetm", "2359");
  110. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
  111. model.setValue("/root/hidden/ref/tclscdlist/testgrup", "");
  112. model.setValue("/root/hidden/ref/deptgbn", "1");
  113. model.setValue("/root/hidden/ref/deptL", "00");
  114. model.setValue("/root/hidden/ref/deptM", "00");
  115. model.removeNodeset("/root/main/getrsltregst");
  116. }
  117. model.removeNodeset("/root/init");
  118. model.setValue("/root/send/codeflag", "0104|0102|0103|0000|");
  119. submit("TRLZZ00101");
  120. model.refresh();
  121. }
  122. //조회
  123. function fGetRsltRegst() {
  124. if (iptpid.label == "" )
  125. {
  126. alert("차트번호를 입력하지 않았습니다");
  127. return ;
  128. }
  129. model.removeNodeset("/root/main/getrsltregst");
  130. model.setValue("/root/send/usdd", model.getValue("/root/hidden/ref/usdd"));
  131. model.setValue("/root/send/ustm", model.getValue("/root/hidden/ref/ustm"));
  132. model.setValue("/root/send/uedd", model.getValue("/root/hidden/ref/uedd"));
  133. model.setValue("/root/send/uetm", model.getValue("/root/hidden/ref/uetm"));
  134. model.setValue("/root/send/deptL", model.getValue("/root/hidden/ref/deptL"));
  135. model.setValue("/root/send/deptM", model.getValue("/root/hidden/ref/deptM"));
  136. model.setValue("/root/send/deptgbn", model.getValue("/root/hidden/ref/deptgbn"));
  137. model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid"));
  138. model.setValue("/root/send/ordnm", model.getValue("/root/hidden/ref/ordnm"));
  139. model.setValue("/root/send/userdeptflagcd", model.getValue("root/init/LB0000/nm"));
  140. model.setValue("/root/send/seamthdcd", "0");
  141. model.setValue("/root/send/page", 1);
  142. model.setValue("/root/send/itemlimit", "100000");
  143. model.setValue("/root/send/ordnm","");
  144. //model.removeNode
  145. //alert(model.getValue("/root/hidden/ref/ordnm"));
  146. //alert(model.getValue("/root/send/ordnm"));
  147. // 이재오 20120328일 이재오 추가 //
  148. // dim var ip1 = ( model.getValue("/root/hidden/ref/ordnm")).trim;
  149. //var ip2 = trim(ip1);.
  150. //alert(ip2);
  151. var ordnm = model.getValue("/root/hidden/ref/ordnm")
  152. //if (trim(ipt_ordnm.label) != "" )
  153. if ( ordnm != "" && ordnm != null && ordnm != " ")
  154. {
  155. //alert("ordnm = " + ordnm );
  156. model.makeValue("/root/send/testgrupnm", ipt_ordnm.label);
  157. submit("TRLLF90404" ,false);
  158. var count = getNodesetCount("/root/main/testgrupdetl");
  159. if(count > 0){
  160. var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
  161. var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  162. var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  163. // 검사그룹 상세 목록 없을때
  164. if(sendtclsnm == ""){
  165. model.setValue("/root/hidden/tclscdlist/tclscdlist", "");
  166. model.setValue("/root/hidden/tclscdlist/tclsnmlist", "");
  167. }else{ // 검사그룹 상세 목록 있을때
  168. for(i=2; i<= count; i++){
  169. sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
  170. sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  171. sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  172. }
  173. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
  174. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
  175. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
  176. }
  177. model.refresh();
  178. }
  179. }
  180. else
  181. {
  182. model.setvalue("/root/hidden/ref/tclscdlist/tclscdlist","");
  183. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
  184. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", "");
  185. // model.removenode("/root/hidden/ref/tclscdlist/tclscdlist");
  186. // model.makeNode(String xpath)
  187. // alert(model.getValue("/root/hidden/ref/tclscdlist/tclsnmlist"));
  188. }
  189. if(model.getValue("/root/hidden/ref/tclscdlist/tclsnmlist") == "") {
  190. model.setValue("/root/send/tclscdlist", "");
  191. } else {
  192. model.setValue("/root/send/tclscdlist", model.getValue("/root/hidden/ref/tclscdlist/tclscdlist"));
  193. }
  194. submit("TRLLP00402");
  195. model.refresh();
  196. // 이재오 20120328일 막다
  197. // var lastpage = model.getValue("/root/main/lastPage/lastPage");
  198. //
  199. // for(page = 2 ; page <= lastpage ; page++){
  200. // model.setValue("/root/send/page", page);
  201. // submit("TRLLP00402");
  202. // 이재오 20120328일 막다
  203. // }
  204. /*
  205. var count = 0;
  206. var bcno = model.getValue("/root/main/getrsltregst[1]/bcno");
  207. for(i = 1; i < grd_rsltregst.rows; i++) {
  208. if(i == 1 || model.getValue("/root/main/getrsltregst["+ i +"]/bcno") != bcno) {
  209. ++count;
  210. model.setValue("/root/main/getrsltregst["+ i +"]/no", count);
  211. bcno = model.getValue("/root/main/getrsltregst["+ i +"]/bcno");
  212. } else if(model.getValue("/root/main/getrsltregst["+ i +"]/bcno") == bcno) {
  213. model.setValue("/root/main/getrsltregst["+ i +"]/bcno", "");
  214. model.setValue("/root/main/getrsltregst["+ i +"]/pid", "");
  215. model.setValue("/root/main/getrsltregst["+ i +"]/patnm", "");
  216. model.setValue("/root/main/getrsltregst["+ i +"]/sexage", "");
  217. model.setValue("/root/main/getrsltregst["+ i +"]/spcnm", "");
  218. model.setValue("/root/main/getrsltregst["+ i +"]/orddeptnm", "");
  219. model.setValue("/root/main/getrsltregst["+ i +"]/wardroom", "");
  220. }
  221. }
  222. */
  223. }
  224. //검사그룹조회
  225. function fSelectTestGrup(){
  226. model.makeValue("/root/send/testgrupnm", cmb_testitem.label);
  227. submit("TRLLF90401" ,false);
  228. fSetPopUpTclscdList();
  229. }
  230. function fSetPopUpTclscdList(){
  231. var count = getNodesetCount("/root/main/testgrupdetl");
  232. if(count > 0){
  233. var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
  234. var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  235. var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  236. // 검사그룹 상세 목록 없을때
  237. if(sendtclsnm == ""){
  238. model.setValue("/root/hidden/tclscdlist/tclscdlist", "");
  239. model.setValue("/root/hidden/tclscdlist/tclsnmlist", "");
  240. }else{ // 검사그룹 상세 목록 있을때
  241. for(i=2; i<= count; i++){
  242. sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
  243. //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  244. sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  245. sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  246. }
  247. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
  248. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
  249. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
  250. }
  251. model.refresh();
  252. }
  253. }
  254. //엑셀저장
  255. function fExeExcel(pGridId) {
  256. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  257. if (fileName != "")
  258. {
  259. pGridId.saveExcel(fileName);
  260. }
  261. }
  262. function fComboAalue(){
  263. if(model.getValue("/root/hidden/ref/deptgbn") == "1"){
  264. cmb_dept.visible = true;
  265. combo2.visible = false;
  266. }
  267. else{
  268. cmb_dept.visible = false;
  269. combo2.visible = true;
  270. }
  271. }
  272. ]]>
  273. </script>
  274. </xhtml:head>
  275. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  276. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  277. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1194px; y2:95px; "/>
  278. <caption id="caption1" class="tit_2" style="left:5px; top:80px; width:75px; height:13px; ">결과대장</caption>
  279. <group id="group1" style="left:0px; top:10px; width:1195px; height:60px; ">
  280. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; "/>
  281. <button id="btn_ref" class="btn1_letter2" style="left:725px; top:15px; width:68px; height:22px; ">
  282. <caption>조회</caption>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. fGetRsltRegst();
  286. ]]>
  287. </script>
  288. </button>
  289. <line id="line3" class="line_4" style="x1:695px; y1:0px; x2:695px; y2:58px; "/>
  290. <caption id="caption5" class="search_name" style="left:315px; top:5px; width:87px; height:17px; ">결과일시 :</caption>
  291. <caption id="caption8" style="left:525px; top:5px; width:15px; height:20px; vertical-align:middle; ">~</caption>
  292. <caption id="caption3" class="search_name" visibility="hidden" style="left:315px; top:30px; width:94px; height:17px; ">검사항목 :</caption>
  293. <button id="button6" class="icon_search" visibility="hidden" style="left:1018px; top:33px; width:16px; height:16px; ">
  294. <caption/>
  295. <script type="javascript" ev:event="DOMActivate">
  296. <![CDATA[
  297. modal("SMLLF90400", "", "", "", "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
  298. ]]>
  299. </script>
  300. </button>
  301. <input id="ipt_tclscdlist" ref="/root/hidden/ref/tclscdlist/tclsnmlist" style="left:305px; top:30px; width:310px; height:19px; "/>
  302. <input id="ipt_usdd" ref="/root/hidden/ref/usdd" class="input_search" inputtype="date" style="left:406px; top:4px; width:85px; height:19px; "/>
  303. <input id="ipt_ustm" ref="/root/hidden/ref/ustm" class="input_search" format="hh:nn" style="left:489px; top:4px; width:35px; height:19px; "/>
  304. <input id="ipt_uedd" ref="/root/hidden/ref/uedd" class="input_search" inputtype="date" style="left:541px; top:4px; width:85px; height:19px; "/>
  305. <input id="ipt_uetm" ref="/root/hidden/ref/uetm" class="input_search" format="hh:nn" style="left:625px; top:4px; width:35px; height:19px; "/>
  306. <select1 id="cmb_testitem" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" visibility="hidden" appearance="minimal" style="left:406px; top:30px; width:136px; height:19px; ">
  307. <choices>
  308. <itemset nodeset="/root/init/LB0103">
  309. <label ref="nm"/>
  310. <value ref="cd"/>
  311. </itemset>
  312. </choices>
  313. <script type="javascript" ev:event="xforms-value-changed">
  314. <![CDATA[
  315. fSelectTestGrup();
  316. ]]>
  317. </script>
  318. </select1>
  319. <caption id="caption2" class="search_name" visibility="hidden" style="left:875px; top:6px; width:86px; height:17px; ">시행부서 :</caption>
  320. <select1 id="combo1" ref="/root/hidden/ref/deptgbn" visibility="hidden" appearance="minimal" style="left:965px; top:5px; width:85px; height:19px; font-weight:normal; ">
  321. <choices>
  322. <item>
  323. <label>대분류</label>
  324. <value>1</value>
  325. </item>
  326. <item>
  327. <label>중분류</label>
  328. <value>2</value>
  329. </item>
  330. </choices>
  331. <script type="javascript" ev:event="xforms-value-changed">
  332. <![CDATA[
  333. fComboAalue();
  334. ]]>
  335. </script>
  336. </select1>
  337. <select1 id="combo2" ref="/root/hidden/ref/deptM" visibility="hidden" appearance="minimal" style="left:965px; top:31px; width:125px; height:19px; font-weight:normal; ">
  338. <choices>
  339. <itemset nodeset="/root/init/LB0102">
  340. <label ref="nm"/>
  341. <value ref="cd"/>
  342. </itemset>
  343. </choices>
  344. </select1>
  345. <select1 id="cmb_dept" ref="/root/hidden/ref/deptL" visibility="hidden" appearance="minimal" style="left:1055px; top:6px; width:125px; height:19px; font-weight:normal; ">
  346. <choices>
  347. <itemset nodeset="/root/init/LB0104">
  348. <label ref="nm"/>
  349. <value ref="cd"/>
  350. </itemset>
  351. </choices>
  352. </select1>
  353. <caption id="caption4" class="search_name" style="left:15px; top:5px; width:102px; height:17px; ">차트번호 :</caption>
  354. <caption id="caption7" class="search_name" style="left:15px; top:30px; width:94px; height:17px; ">검사항목명 :</caption>
  355. <input id="iptpid" ref="/root/hidden/ref/pid" class="input_s_button" navindex="1" style="left:110px; top:5px; width:140px; height:19px; "/>
  356. <input id="ipt_ordnm" ref="/root/hidden/ref/ordnm" class="input_s_button" navindex="1" style="left:110px; top:30px; width:185px; height:19px; "/>
  357. </group>
  358. <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:74px; width:42px; height:19px; ">
  359. <caption>엑셀</caption>
  360. <script type="javascript" ev:event="DOMActivate">
  361. <![CDATA[
  362. fExeExcel(grd_rsltregst);
  363. ]]>
  364. </script>
  365. </button>
  366. <datagrid id="grd_rsltregst" nodeset="/root/main/getrsltregst" caption="검체번호^등록번호^성명^성별/나이^검체^진료과^처방의^처방일^병동/병실^검사항목명^결과^검사완료일시^검사자^접수일시^시행부서^프린트명^comment^tclskind" colsep="^" colwidth="0, 60, 50, 60, 130, 50,50,60, 110, 260, 90, 121, 60, 0, 0, 0, 100, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:100px; width:1194px; height:644px; ">
  367. <col disabled="true" ref="bcno" style="text-align:center; "/>
  368. <col ref="pid"/>
  369. <col ref="patnm"/>
  370. <col ref="sexage" style="text-align:center; "/>
  371. <col ref="spcnm"/>
  372. <col ref="orddeptnm"/>
  373. <col ref="ordernm"/>
  374. <col ref="prcpdd"/>
  375. <col ref="wardroom"/>
  376. <col ref="tclsnm"/>
  377. <col ref="inptrslt"/>
  378. <col ref="testdt" format="yyyy-mm-dd hh:mm:ss"/>
  379. <col ref="testnm"/>
  380. <col ref="spcacptdt"/>
  381. <col ref="execdeptcd"/>
  382. <col ref="tclspnm"/>
  383. <col ref="testcmt"/>
  384. <col ref="tclskind"/>
  385. <script type="javascript" ev:event="onaftersort">
  386. <![CDATA[
  387. grd_rsltregst.gridToInstance();
  388. ]]>
  389. </script>
  390. </datagrid>
  391. </group>
  392. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  393. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  394. <caption>초기화</caption>
  395. <script type="javascript" ev:event="onclick">
  396. <![CDATA[
  397. fSetInit();
  398. ]]>
  399. </script>
  400. </button>
  401. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  402. <caption>출력</caption>
  403. <script type="javascript" ev:event="DOMActivate">
  404. <![CDATA[
  405. exeReportPreview("RPLLP00200", "XMLSTR", "/root/main/getrsltregst");
  406. ]]>
  407. </script>
  408. </button>
  409. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  410. </group>
  411. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  412. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:75px; height:13px; ">결과대장</caption>
  413. </group>
  414. </xhtml:body>
  415. </xhtml:html>