SMLLP00400_결과대장.xrw 14 KB

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