SMLPP00500_결과조회.xrw 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPP00500_결과조회.xrw
  4. * 설 명 : 검사결과조회 - Ver.①
  5. * 설 계 자 : (주)에이씨케이 - 황상미
  6. * 작 성 자 : (주)에이씨케이 - 황상미
  7. * 작 성 일 : 2006.12.13
  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. <testrslt>
  20. <testrsltlist>
  21. <instcd/>
  22. <ptno/>
  23. <dispptno/>
  24. <prcpdd/>
  25. <acptdd/>
  26. <testcd/>
  27. <testnm/>
  28. <tgrupcd/>
  29. <acptstatcd/>
  30. <pid/>
  31. <patnm/>
  32. <reqfrmno/>
  33. <reqfrmflagcd/>
  34. <sexage/>
  35. <readdd/>
  36. <orddeptnm/>
  37. <orddrnm/>
  38. <readdrnm/>
  39. <grosdrnm/>
  40. <prcpgenrflag/>
  41. <ptnoworkflagcd/>
  42. <diagcnts/>
  43. <execprcpuniqno/>
  44. </testrsltlist>
  45. <testrsltinfo>
  46. <reptrslt/>
  47. <level/>
  48. <judgmark/>
  49. <tkdt/>
  50. <rsltdd/>
  51. <suppdept/>
  52. <pacsno/>
  53. <spcno/>
  54. </testrsltinfo>
  55. </testrslt>
  56. <patinfo>
  57. <pattestrslt>
  58. <pid/>
  59. <patnm/>
  60. <dispptno/>
  61. <sexage/>
  62. <orddeptnm/>
  63. <orddrnm/>
  64. <prcpdd/>
  65. <acptdd/>
  66. <readdd/>
  67. <readdrnm/>
  68. </pattestrslt>
  69. </patinfo>
  70. </main>
  71. <send/>
  72. <init>
  73. <refcrite/>
  74. <refval/>
  75. <acptfromdd/>
  76. <acpttodd/>
  77. <refdr/>
  78. <ptnocode/>
  79. <fromyear/>
  80. <fromptno/>
  81. <toptno/>
  82. <sysdt>
  83. <sysdtinfo>
  84. <sysdd/>
  85. <systm/>
  86. </sysdtinfo>
  87. </sysdt>
  88. <hospenv>
  89. <hospenvinfo>
  90. <instcd/>
  91. <lendrtnterm/>
  92. <recvqualmthdcd/>
  93. <plgydeptcd/>
  94. <plgyteamcd/>
  95. <doctjobgradcd/>
  96. <teamjobgradcd/>
  97. </hospenvinfo>
  98. </hospenv>
  99. <ptnocd>
  100. <ptnocdlist>
  101. <instcd/>
  102. <ptnocd/>
  103. <ptnonm/>
  104. </ptnocdlist>
  105. </ptnocd>
  106. <srchmthd>1</srchmthd>
  107. <popupmenu>
  108. <item>
  109. <name>▶ 병리 이미지 보기</name>
  110. <func>fExeImgView2</func>
  111. </item>
  112. <item>
  113. <name>▶ 복사하기</name>
  114. <func>astgrid_liscopy</func>
  115. </item>
  116. </popupmenu>
  117. <popupmenu2>
  118. <item>
  119. <name>▶ 복사하기</name>
  120. <func>astgrid_liscopy</func>
  121. </item>
  122. </popupmenu2>
  123. </init>
  124. <hidden>
  125. <detlrefcrite>
  126. <extrpart/>
  127. <diag/>
  128. <extrmthd/>
  129. </detlrefcrite>
  130. <userdeptcd/>
  131. <tmp>
  132. <row/>
  133. <value/>
  134. </tmp>
  135. </hidden>
  136. </root>
  137. </instance>
  138. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  139. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  140. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  141. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  142. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  143. <script type="javascript" ev:event="xforms-ready">
  144. <![CDATA[
  145. fExeInitialize();
  146. ]]>
  147. </script>
  148. <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
  149. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  150. <submission id="TRLPZ00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testrslt/testrsltinfo"/>
  151. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  152. <submission id="TRLPP00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testrslt/testrsltlist"/>
  153. </model>
  154. <script type="javascript">
  155. <![CDATA[
  156. /* @group : 병리결과조회(외래/병동)
  157. * @ver : 2006.12.04 (CMCDEV-0001)
  158. * @by : 황상미(ACK)
  159. * @-----------------------------------
  160. * @type : function
  161. * @access : public
  162. * @desc : 화면초기화 함수
  163. */
  164. function fExeInitialize(){
  165. //----------------
  166. // 시스템일시 조회
  167. model.removeNodeset("/root/send");
  168. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  169. submit("TRLPZ00101", false);
  170. submit("TRLPZ00102", false);
  171. submit("TRLPZ00109");
  172. //---------------------------------------------------------
  173. // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
  174. lpzfUserDeptCd("/root/init/hospenv/hospenvinfo", "/root/hidden");
  175. //--------------------------------------------
  176. model.makeValue("/root/init/refcrite", "-");
  177. model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  178. model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  179. model.makeValue("/root/init/refdr", "");
  180. btn_tpm.selected = true;
  181. model.toggle("case1");
  182. model.makeValue("/root/init/refcrite", "2"); // 등록번호
  183. model.makeValue("/root/init/refval", ""); // 검색값
  184. //-----------------------------------------------------------------
  185. var sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  186. model.makeValue("/root/init/ptnocode", "");
  187. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
  188. model.makeValue("/root/init/fromptno", "");
  189. model.makeValue("/root/init/toptno", "");
  190. //---------------------------
  191. if (window.parent == null) {
  192. // Continue
  193. } else {
  194. if (opener.javascript.getParameter("SMLPP00500_scrno") != "") {
  195. model.makeValue("/root/init/ptnocode", opener.javascript.getParameter("SMLPP00500_ptnocd"));
  196. model.makeValue("/root/init/fromyear", opener.javascript.getParameter("SMLPP00500_year"));
  197. model.makeValue("/root/init/fromptno", opener.javascript.getParameter("SMLPP00500_no"));
  198. model.makeValue("/root/init/acptfromdd", opener.javascript.getParameter("SMLPP00500_acptdd"));
  199. model.makeValue("/root/init/acpttodd", opener.javascript.getParameter("SMLPP00500_acptdd"));
  200. model.makeValue("/root/init/refcrite", "0");
  201. model.makeValue("/root/init/refval", "");
  202. //--------------------
  203. fGetTestRsltList("1");
  204. }
  205. if (opener.javascript.getParameter("SMLPP00500_pid") != "") {
  206. model.makeValue("/root/init/refval", opener.javascript.getParameter("SMLPP00500_pid"));
  207. if(opener.javascript.getParameter("SMLPP00500_ptnocd") != "") {
  208. model.makeValue("/root/init/ptnocode", opener.javascript.getParameter("SMLPP00500_ptnocd"));
  209. model.makeValue("/root/init/fromyear", opener.javascript.getParameter("SMLPP00500_year"));
  210. model.makeValue("/root/init/fromptno", opener.javascript.getParameter("SMLPP00500_no"));
  211. }
  212. //--------------------
  213. fGetTestRsltList("1");
  214. }
  215. }
  216. //--------------
  217. model.refresh();
  218. }
  219. /* @group : 병리결과조회(외래/병동)
  220. * @ver : 2007.05.21 (CMCDEV-0001)
  221. * @by : 유동철(ACK)
  222. * @-----------------------------------
  223. * @type : function
  224. * @access : public
  225. * @desc : 검사결과 목록 조회 함수
  226. */
  227. function fGetTestRsltList(pFlagCd)
  228. {
  229. var sTemp = "";
  230. var sFromDD = model.getValue("/root/init/acptfromdd");
  231. var sRefVal = model.getValue("/root/init/refval");
  232. //--------------------------------------------------------
  233. // 등록번호 조회 시 최소 4자리 이상 입력하도록 메세지 표시
  234. if (model.getValue("/root/init/refcrite") == "2")
  235. {
  236. if (sRefVal != "")
  237. {
  238. if (sRefVal.length < 3)
  239. {
  240. messageBox("등록번호를 4자리 이상 ", "C001");
  241. return false;
  242. }
  243. }
  244. }
  245. //------------------------------------------------
  246. if (model.getValue("/root/init/ptnocode") != "")
  247. {
  248. //------------------------------------------------
  249. if (model.getValue("/root/init/fromyear") == "")
  250. {
  251. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  252. }
  253. else
  254. {
  255. sTemp = model.getValue("/root/init/fromyear");
  256. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  257. }
  258. //------------------------------------------------
  259. if (model.getValue("/root/init/fromptno") == "")
  260. {
  261. //model.makeValue("/root/init/fromptno", "000000");
  262. model.makeValue("/root/init/toptno", "zzzzzz");
  263. }
  264. else
  265. {
  266. sTemp = model.getValue("/root/init/fromptno");
  267. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  268. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  269. }
  270. }
  271. //--------------------------------------------
  272. sTemp = model.getValue("/root/init/ptnocode");
  273. //--------------------------------
  274. model.removeNodeset("/root/send");
  275. model.removeNodeset("/root/main/testrslt/testrsltlist");
  276. //---------------------------------------------------------------------
  277. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  278. model.makeValue("/root/send/refcrite", model.getValue("/root/init/refcrite"));
  279. model.makeValue("/root/send/refval", model.getValue("/root/init/refval"));
  280. model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/acptfromdd"));
  281. model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd"));
  282. model.makeValue("/root/send/userdeptcd", model.getValue("/root/hidden/userdeptcd"));
  283. model.makeValue("/root/send/refflagcd", pFlagCd);
  284. model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  285. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  286. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  287. model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  288. model.makeValue("/root/send/srchmthd", model.getValue("/root/init/srchmthd"));
  289. //-----------------------------------------------
  290. // 일반조회(1), 상세(TPM)조회(2), 결과상세조회(3)
  291. if (pFlagCd == "1")
  292. {
  293. model.makeValue("/root/send/extrpart", "");
  294. model.makeValue("/root/send/diag", "");
  295. model.makeValue("/root/send/extrmthd", "");
  296. }
  297. else
  298. {
  299. model.makeValue("/root/send/extrpart", model.getValue("/root/hidden/detlrefcrite/extrpart"));
  300. model.makeValue("/root/send/diag", model.getValue("/root/hidden/detlrefcrite/diag"));
  301. model.makeValue("/root/send/extrmthd", model.getValue("/root/hidden/detlrefcrite/extrmthd"));
  302. }
  303. //-------------------
  304. submit("TRLPP00501");
  305. //-------------------------------------------------------------
  306. if (getNodesetCount("/root/main/testrslt/testrsltlist") == 1)
  307. {
  308. grd_testrsltlist.row = 1;
  309. fGetTestRslt();
  310. }
  311. }
  312. /* @group : 병리결과조회(외래/병동)
  313. * @ver : 2006.12.04 (CMCDEV-0001)
  314. * @by : 황상미(ACK)
  315. * @-----------------------------------
  316. * @type : function
  317. * @access : public
  318. * @desc : 검사결과 조회 함수
  319. */
  320. function fGetTestRslt() {
  321. var iRowNo = -1;
  322. var sScrNode = "/root/main/testrslt/testrsltlist";
  323. var sDescNode = "/root/main/patinfo/pattestrslt";
  324. //------------------------------------------
  325. if (grd_testrsltlist.row <= 0) return false;
  326. //----------------------------
  327. iRowNo = grd_testrsltlist.row;
  328. model.makeValue(sDescNode + "/pid", model.getValue(sScrNode + "[" + iRowNo + "]/pid"));
  329. model.makeValue(sDescNode + "/patnm", model.getValue(sScrNode + "[" + iRowNo + "]/patnm"));
  330. model.makeValue(sDescNode + "/dispptno", model.getValue(sScrNode + "[" + iRowNo + "]/dispptno"));
  331. model.makeValue(sDescNode + "/sexage", model.getValue(sScrNode + "[" + iRowNo + "]/sexage"));
  332. model.makeValue(sDescNode + "/orddeptnm", model.getValue(sScrNode + "[" + iRowNo + "]/orddeptnm"));
  333. model.makeValue(sDescNode + "/orddrnm", model.getValue(sScrNode + "[" + iRowNo + "]/orddrnm"));
  334. model.makeValue(sDescNode + "/prcpdd", model.getValue(sScrNode + "[" + iRowNo + "]/prcpdd"));
  335. model.makeValue(sDescNode + "/acptdd", model.getValue(sScrNode + "[" + iRowNo + "]/acptdd"));
  336. model.makeValue(sDescNode + "/readdd", model.getValue(sScrNode + "[" + iRowNo + "]/readdd"));
  337. model.makeValue(sDescNode + "/readdrnm", model.getValue(sScrNode + "[" + iRowNo + "]/readdrnm"));
  338. //----------------------------------
  339. lpzfTopInfo(); // 상단정보 호출
  340. //---------------------------------------------------------------------------------------------
  341. if (model.getValue("/root/paminfo/pid") != model.getValue(sScrNode + "[" + iRowNo + "]/pid")) {
  342. //--------------
  343. // 상단정보 표시
  344. lpzfExeTopInfoDisp(model.getValue(sScrNode+"["+iRowNo+"]/prcpdd"),
  345. model.getValue(sScrNode+"["+iRowNo+"]/execprcpuniqno"),
  346. model.getValue(sScrNode+"["+iRowNo+"]/instcd"));
  347. }
  348. //---------------
  349. // 검사결과 조회
  350. model.removeNodeset("/root/send");
  351. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  352. model.makeValue("/root/send/ptno", model.getValue(sScrNode + "[" + iRowNo + "]/ptno"));
  353. model.makeValue("/root/send/pid", model.getValue(sScrNode + "[" + iRowNo + "]/pid"));
  354. model.makeValue("/root/send/workflagcd", model.getValue(sScrNode + "[" + iRowNo + "]/ptnoworkflagcd"));
  355. model.makeValue("/root/send/prcpgenrflag", model.getValue(sScrNode + "[" + iRowNo + "]/prcpgenrflag"));
  356. model.makeValue("/root/send/scrno", "10");
  357. model.resetInstanceNode("/root/main/testrslt/testrsltinfo");
  358. //-------------------
  359. submit("TRLPZ00107");
  360. //--------------
  361. model.refresh();
  362. }
  363. /* @group : 병리결과조회(외래/병동)
  364. * @ver : 2007.07.16 (CMCDEV-0001)
  365. * @by : 유동철(ACK)
  366. * @-----------------------------------
  367. * @type : function
  368. * @access : public
  369. * @desc : 통합결과조회 화면호출
  370. */
  371. function fExePopupCallSytsRslt() {
  372. if (model.getValue("/root/main/patinfo/pattestrslt/pid") == "") {
  373. modal("SMAER00800");
  374. } else {
  375. modal("SMAER00800", "", "", "", "SMAER00800", "/root/main/patinfo/pattestrslt/pid", "/root/send/data/singdata/srchpid");
  376. }
  377. }
  378. function fExePtNoClick() {
  379. if(grd_testrsltlist.row > 0 && grd_testrsltlist.isCell(event.target) && grd_testrsltlist.row >= grd_testrsltlist.fixedRows) {
  380. fGetTestRslt();
  381. }
  382. }
  383. /* @group : 병리결과조회(외래/병동)
  384. * @ver : 2007.12.19 (CMCDEV-0001)
  385. * @by : 유동철(ACK)
  386. * @-----------------------------------
  387. * @type : function
  388. * @access : public
  389. * @desc : 등록번호 조회값 입력 처리
  390. */
  391. function fExeRefValKeyPress() {
  392. if(event.keyCode == 13) {
  393. model.setValue("/root/init/refval", ipt_refval.currentText);
  394. ipt_refval.refresh();
  395. //--------------------
  396. fGetTestRsltList("1");
  397. }
  398. }
  399. /* @group : 병리결과조회(외래/병동)
  400. * @ver : 2007.12.19 (CMCDEV-0001)
  401. * @by : 유동철(ACK)
  402. * @-----------------------------------
  403. * @type : function
  404. * @access : public
  405. * @desc : 병리번호 입력값 처리
  406. */
  407. function fExePtNoInput() {
  408. if(event.keyCode == 13) {
  409. model.setValue("/root/init/fromptno", ipt_fromptno.currentText);
  410. ipt_fromptno.refresh();
  411. //--------------------
  412. fGetTestRsltList("1");
  413. }
  414. }
  415. /* @group : 병리결과조회(외래/병동)
  416. * @ver : 2008.02.21 (CMCDEV-0001)
  417. * @by : 유동철(ACK)
  418. * @-----------------------------------
  419. * @type : function
  420. * @access : public
  421. * @desc : 이미지 표시 처리
  422. */
  423. function fExeImgView() {
  424. var sPtNo = "";
  425. var aPtNo = "";
  426. var sNode = "/root/main/testrslt/testrsltlist";
  427. var iRowNo = grd_testrsltlist.row;
  428. //----------------
  429. if (iRowNo >= 0) {
  430. sPtNo = model.getValue(sNode+"["+iRowNo+"]/dispptno");
  431. aPtNo = sPtNo.split("-");
  432. //----------------------------------------------
  433. setParameter("SMLPP02000_scrno", "SMLPP00500");
  434. setParameter("SMLPP02000_pid", model.getValue(sNode+"["+iRowNo+"]/pid"));
  435. setParameter("SMLPP02000_rgstdd", getCurrentDate());
  436. // setParameter("SMLPP02000_no", aPtNo[1]);
  437. // setParameter("SMLPP02000_ptnocd", aPtNo[0].substr(0, (aPtNo[0].length-2)));
  438. // setParameter("SMLPP02000_year", aPtNo[0].substr(aPtNo[0].length-2, 2));
  439. setParameter("SMLPP02000_no", "");
  440. setParameter("SMLPP02000_ptnocd", "");
  441. setParameter("SMLPP02000_year", "");
  442. //------------------
  443. modal("SMLPP02000");
  444. }
  445. }
  446. /* @group : 병리결과조회(외래/병동)
  447. * @ver : 2008.02.21 (CMCDEV-0001)
  448. * @by : 유동철(ACK)
  449. * @-----------------------------------
  450. * @type : function
  451. * @access : public
  452. * @desc : 환자정보 그리드에 추가 처리
  453. */
  454. function fExeMakePatInfo() {
  455. var sNode = "/root/main/testrslt/testrsltinfo";
  456. var sPatInfo = "";
  457. //-------------------------------------
  458. grd_testrsltref.insertRow(1, "before");
  459. grd_testrsltref.rowHidden(1) = true;
  460. //---------------------------------------------------------------------------------------
  461. sPatInfo = "등록번호:" + model.getValue("/root/main/patinfo/pattestrslt/pid") + " ";
  462. sPatInfo += "환자명:" + model.getValue("/root/main/patinfo/pattestrslt/patnm") + " ";
  463. sPatInfo += "성별/나이:" + model.getValue("/root/main/patinfo/pattestrslt/sexage");
  464. //----------------------------------------------------
  465. model.makeValue(sNode+"[1]/reptrslt", sPatInfo, true);
  466. model.makeValue(sNode+"[1]/level", model.getValue(sNode+"[2]/level"));
  467. model.makeValue(sNode+"[1]/judgmark", model.getValue(sNode+"[2]/judgmark"));
  468. model.makeValue(sNode+"[1]/tkdt", model.getValue(sNode+"[2]/tkdt"));
  469. model.makeValue(sNode+"[1]/rsltdd", model.getValue(sNode+"[2]/rsltdd"));
  470. model.makeValue(sNode+"[1]/suppdept", model.getValue(sNode+"[2]/suppdept"));
  471. model.makeValue(sNode+"[1]/pacsno", model.getValue(sNode+"[2]/pacsno"));
  472. model.makeValue(sNode+"[1]/spcno", model.getValue(sNode+"[2]/spcno"));
  473. }
  474. /* @group : 병리결과조회(외래/병동)
  475. * @ver : 2008.11. 04 (CMCDEV-0001)
  476. * @by : 하만석(ACK)
  477. * @-----------------------------------
  478. * @type : function
  479. * @access : public
  480. * @desc : 환자정보 그리드에 추가 처리
  481. */
  482. function fExeMakePatInfo2()
  483. {
  484. grd_testrsltlist.colWidth(10) = 50; // pid
  485. grd_testrsltlist.colWidth(11) = 80; // 환자명
  486. grd_testrsltlist.colWidth(14) = 90; // 성별/나이
  487. }
  488. /* @group : 병리결과조회(외래/병동)
  489. * @ver : 2008.11. 04 (CMCDEV-0001)
  490. * @by : 하만석(ACK)
  491. * @-----------------------------------
  492. * @type : function
  493. * @access : public
  494. * @desc : 환자정보 엑셀 저장 후 삭제 처리
  495. */
  496. function fExeDelPatInfo2()
  497. {
  498. grd_testrsltlist.colWidth(10) = 0; // pid
  499. grd_testrsltlist.colWidth(11) = 0; // 환자명
  500. grd_testrsltlist.colWidth(14) = 0; // 성별/나이
  501. }
  502. /* @group : 병리결과조회(외래/병동)
  503. * @ver : 2008.07.02 (CMCDEV-0001)
  504. * @by : 유동철(ACK)
  505. * @-----------------------------------
  506. * @type : function
  507. * @access : public
  508. * @desc : 보고서 출력
  509. */
  510. function fExeReptPrnt() {
  511. //-------------------------------
  512. if (grd_testrsltlist.row <= 0) {
  513. messageBox("처방을 선택하여 주십시오!", "I007");
  514. return false;
  515. }
  516. //------------------------------------
  517. model.makeNode("/root/init/prntinfo");
  518. model.makeValue("/root/init/prntinfo/reptflagcd", "1"); // 의뢰지(0), 보고서(1)
  519. model.makeValue("/root/init/prntinfo/prntflagcd", "0"); // 출력(0), 미리보기(1)
  520. model.makeValue("/root/init/prntinfo/copyflagcd", "1"); // 의뢰지/보고서(0), 복사본(1)
  521. model.makeValue("/root/init/prntinfo/acptdd", model.getValue("/root/main/testrslt/testrsltlist["+grd_testrsltlist.row+"]/acptdd"));
  522. model.makeValue("/root/init/prntinfo/ptno", model.getValue("/root/main/testrslt/testrsltlist["+grd_testrsltlist.row+"]/ptno"));
  523. model.makeValue("/root/init/prntinfo/pid", model.getValue("/root/main/testrslt/testrsltlist["+grd_testrsltlist.row+"]/pid"));
  524. lpzfExeFrmPrnt("/root/init/prntinfo");
  525. }
  526. /* @group : 임상정보조회
  527. * @ver : 2009.01.12 (CMCDEV-0001)
  528. * @by :
  529. * @-----------------------------------
  530. * @type : function
  531. * @access : public
  532. * @desc :
  533. */
  534. function fGetIMSInfo(){
  535. var iRowNo = -1;
  536. var sScrNode = "/root/main/testrslt/testrsltlist";
  537. if (grd_testrsltlist.row <= 0) return false;
  538. iRowNo = grd_testrsltlist.row;
  539. var instcd = getUserInfo("dutplceinstcd");
  540. var ptno = model.getValue(sScrNode + "[" + iRowNo + "]/ptno");
  541. var pid = model.getValue(sScrNode + "[" + iRowNo + "]/pid");
  542. var workflagcd = model.getValue(sScrNode + "[" + iRowNo + "]/ptnoworkflagcd");
  543. var prcpgenrflag = model.getValue(sScrNode + "[" + iRowNo + "]/prcpgenrflag");
  544. var scrno = "SPLPP02500";
  545. var sflag = instcd + "▦" + ptno + "▦" + pid + "▦" + workflagcd + "▦" + prcpgenrflag + "▦" + scrno;
  546. setParameter("opener_parameter_id", sflag);
  547. modal("SPLPP02500", "", "", "", "", "", "");
  548. }
  549. /* @group : 이미지조회
  550. * @ver : 2009.01.12 (CMCDEV-0001)
  551. * @by :
  552. * @-----------------------------------
  553. * @type : function
  554. * @access : public
  555. * @desc :
  556. */
  557. function fExeImgView2() {
  558. var sPtNo = "";
  559. var aPtNo = "";
  560. var sNode = "/root/main/testrslt/testrsltinfo";
  561. if(grd_testrsltref.row <= 0) return;
  562. //----------------------------------------
  563. sPtNo = model.getValue(sNode+ "["+ grd_testrsltref.row +"]/spcno");
  564. sPtNo = sPtNo.substr(0, sPtNo.length -6) + "-" + sPtNo.substr(sPtNo.length -6, 6);
  565. aPtNo = sPtNo.split("-");
  566. //----------------------------------------------
  567. setParameter("SMLPP02000_scrno", "SMLPR00100");
  568. //setParameter("SMLPP02000_pid", model.getValue(sNode+"/pid"));
  569. setParameter("SMLPP02000_pid", "");
  570. setParameter("SMLPP02000_rgstdd", getCurrentDate());
  571. setParameter("SMLPP02000_no", aPtNo[1]);
  572. setParameter("SMLPP02000_ptnocd", aPtNo[0].substr(0, (aPtNo[0].length-2)));
  573. setParameter("SMLPP02000_year", aPtNo[0].substr(aPtNo[0].length-2, 2));
  574. //------------------
  575. modal("SMLPP02000");
  576. }
  577. // function fSetPopup(){
  578. // if ( (grd_testrsltref.mouseRow >= grd_testrsltref.fixedRows) && (grd_testrsltref.isCell(event.target))) {
  579. // var cnt = 1;
  580. // grd_testrsltref.row = grd_testrsltref.mouseRow;
  581. // model.removenode("/root/init/popupmenu");
  582. //
  583. // if(model.getValue("/root/main/testrslt/testrsltinfo["+ grd_testrsltref.row +"]/judgmark") == "IMP") {
  584. // model.makeValue("/root/init/popupmenu/item/name", "▶ 병리 이미지 보기");
  585. // model.makeValue("/root/init/popupmenu/item/func", "fExeImgView2");
  586. // cnt ++;
  587. // }
  588. //
  589. // model.makeValue("/root/init/popupmenu/item[" + cnt + "]/name", "▶ 복사하기");
  590. // model.makeValue("/root/init/popupmenu/item[" + cnt + "]/func", "astgrid_liscopy");
  591. //
  592. // setPopupMenu("grd_testrsltref", false, "/root/init/popupmenu/item", "name", "func");
  593. // }
  594. // }
  595. /* @group : 결과조회
  596. * @ver : 2007.06.14
  597. * @by : 장준원
  598. * @-----------------------------------
  599. * @type : function
  600. * @access : public
  601. * @desc : 그리드의 내용을 엑셀로 Copy하기 위한 Function
  602. */
  603. function astgrid_oncopy() {
  604. var trgObj = document.all.item(event.target);
  605. if( trgObj.elementName == "xforms:datagrid" ) { // event.target이 datagrid > input일 경우 return
  606. gridObj = trgObj;
  607. } else {
  608. return;
  609. }
  610. var cellValue = "";
  611. var rClipBoardValue = "";
  612. //선택된 셀의 스타일을 바꾼다
  613. var cells = gridObj.selectedCells;
  614. var row = -1;
  615. var col = 0;
  616. var selrow = 0;
  617. var cnt =1;
  618. for (var i=0;i<cells.length;i++) {
  619. row = cells.item(i).row;
  620. col = cells.item(i).col;
  621. cellValue = gridObj.valueMatrix(row, col);
  622. model.makeNode("/root/hidden/tmp");
  623. model.makeValue("/root/hidden/tmp[" + cnt + "]/row", row);
  624. model.makeValue("/root/hidden/tmp[" + cnt + "]/col", col);
  625. model.makeValue("/root/hidden/tmp[" + cnt + "]/value", cellValue);
  626. cnt++;
  627. }
  628. datagrid5.rebuild();
  629. var setcol = datagrid5.colRef("row");
  630. datagrid5.colSort(datagrid5.colRef("row")) = "asc";
  631. datagrid5.colSort(datagrid5.colRef("col")) = "asc";
  632. datagrid5.sort(1, setcol, datagrid5.rows-1, datagrid5.cols-1) = "usersort";
  633. datagrid5.gridToInstance();
  634. row = -1;
  635. for (var i=1;i<datagrid5.rows;i++) {
  636. selrow = datagrid5.valueMatrix(i, datagrid5.colRef("row"));
  637. cellValue = datagrid5.valueMatrix(i, datagrid5.colRef("value"));
  638. if (row != selrow) {
  639. rClipBoardValue += "\r\n";
  640. rClipBoardValue += cellValue;
  641. row = selrow;
  642. } else {
  643. rClipBoardValue += "\t";
  644. rClipBoardValue += cellValue;
  645. }
  646. }
  647. if( rClipBoardValue != "" ) {
  648. window.clipBoardData = rClipBoardValue;
  649. }
  650. model.removeNodeset("/root/hidden/tmp");
  651. }
  652. function astgrid_liscopy() {
  653. var gridObj = document.all.item("grd_testrsltref");
  654. var cellValue;
  655. var rClipBoardValue = "";
  656. //선택된 셀의 스타일을 바꾼다
  657. var cells = grd_testrsltref.selectedCells;
  658. var row = -1;
  659. var col = 0;
  660. var selrow = 0;
  661. var cnt =1;
  662. // alert("cells.length");
  663. model.removeNodeset("/root/hidden/tmp");
  664. for (var i=0;i<cells.length;i++) {
  665. row = cells.item(i).row;
  666. col = cells.item(i).col;
  667. cellValue = gridObj.valueMatrix(row, col);
  668. model.makeNode("/root/hidden/tmp");
  669. model.makeValue("/root/hidden/tmp[" + cnt + "]/row", row);
  670. model.makeValue("/root/hidden/tmp[" + cnt + "]/col", col);
  671. model.makeValue("/root/hidden/tmp[" + cnt + "]/value", cellValue);
  672. cnt++;
  673. }
  674. datagrid5.rebuild();
  675. var setcol = datagrid5.colRef("row");
  676. datagrid5.colSort(datagrid5.colRef("row")) = "asc";
  677. datagrid5.colSort(datagrid5.colRef("col")) = "asc";
  678. datagrid5.sort(1, setcol, datagrid5.rows-1, datagrid5.cols-1) = "usersort";
  679. datagrid5.gridToInstance();
  680. row = -1;
  681. for (var i=1;i<datagrid5.rows;i++) {
  682. selrow = datagrid5.valueMatrix(i, datagrid5.colRef("row"));
  683. cellValue = datagrid5.valueMatrix(i, datagrid5.colRef("value"));
  684. if (row != selrow) {
  685. rClipBoardValue += "\r\n";
  686. rClipBoardValue += cellValue;
  687. row = selrow;
  688. } else {
  689. rClipBoardValue += "\t";
  690. rClipBoardValue += cellValue;
  691. }
  692. }
  693. if( rClipBoardValue != "" ) {
  694. window.clipBoardData = rClipBoardValue;
  695. }
  696. model.removeNodeset("/root/hidden/tmp");
  697. }
  698. ]]>
  699. </script>
  700. </xhtml:head>
  701. <xhtml:body guideline="2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  702. <datagrid id="datagrid5" nodeset="/root/hidden/tmp" visibility="hidden" caption="caption1^caption3^caption2" colsep="^" colwidth="100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:510px; top:480px; width:350px; height:150px; ">
  703. <col ref="row"/>
  704. <col ref="col"/>
  705. <col ref="value"/>
  706. </datagrid>
  707. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  708. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">결과조회</caption>
  709. </group>
  710. <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  711. <group id="group2" style="left:0px; top:10px; width:448px; height:62; vertical-align:top; ">
  712. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:448px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
  713. <caption id="caption1" class="search_name" style="left:15px; top:10px; width:90px; height:17px; ">등록번호 :</caption>
  714. <line id="line1" class="line_4" style="x1:362px; y1:33px; x2:362px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  715. <caption id="caption11" class="search_n_b" style="left:211px; top:35px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  716. <input id="ipt_refval" ref="/root/init/refval" class="input_search" navindex="1" style="left:108px; top:9px; width:100px; height:19px; ">
  717. <script type="javascript" ev:event="onkeypress">
  718. <![CDATA[
  719. fExeRefValKeyPress();
  720. ]]>
  721. </script>
  722. </input>
  723. <input id="ipt_acptfromdd" ref="/root/init/acptfromdd" class="input_s_essential" navindex="5" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:108px; top:33px; width:100px; height:19px; ">
  724. <script type="javascript" ev:event="xforms-value-changed">
  725. <![CDATA[
  726. lpzfExeDateChange(ipt_fromyear, "/root/init/acptfromdd", "/root/init/fromyear");
  727. ]]>
  728. </script>
  729. </input>
  730. <input id="ipt_acpttodd" ref="/root/init/acpttodd" class="input_s_essential" navindex="6" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:225px; top:33px; width:100px; height:19px; "/>
  731. <button id="btn_sea" class="btn1_letter2" navindex="7" style="left:377px; top:33px; width:56px; height:22px; ">
  732. <caption>조회</caption>
  733. <script type="javascript" ev:event="DOMActivate">
  734. <![CDATA[
  735. fGetTestRsltList("1");
  736. ]]>
  737. </script>
  738. </button>
  739. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="2" appearance="minimal" editmode="search" style="left:225px; top:9px; width:124; height:19px; ">
  740. <choices>
  741. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  742. <label ref="ptnonm"/>
  743. <value ref="ptnocd"/>
  744. </itemset>
  745. </choices>
  746. </select1>
  747. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="4" maxlength="6" style="left:382px; top:9px; width:50px; height:19px; ">
  748. <script type="javascript" ev:event="onkeypress">
  749. <![CDATA[
  750. fExePtNoInput();
  751. ]]>
  752. </script>
  753. </input>
  754. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="3" maxlength="2" style="left:352px; top:9px; width:27px; height:19px; "/>
  755. <select1 id="cmb_srchmthd" ref="/root/init/srchmthd" class="combo_search" appearance="minimal" style="left:15px; top:33px; width:85px; height:19px; ">
  756. <choices>
  757. <item>
  758. <label>접수일자</label>
  759. <value>1</value>
  760. </item>
  761. <item>
  762. <label>보고일자</label>
  763. <value>2</value>
  764. </item>
  765. </choices>
  766. </select1>
  767. </group>
  768. <caption id="caption3" class="tit_2" style="left:457px; top:10px; width:111px; height:13px; ">검사결과</caption>
  769. <line id="line2" class="line_1" style="x1:452px; y1:24px; x2:1193px; y2:24px; "/>
  770. <datagrid id="grd_testrsltlist" nodeset="/root/main/testrslt/testrsltlist" class="datagrid2" caption="기관코드^ptno^병리번호^처방일자^접수일자^검사코드^처방명^검사그룹코드^상태^pid^환자명^의뢰서&#xA;번호^의뢰지구분코드^성별/나이^판독일자^진료과^진료의사^판독의사^육안검사의^처방발생구분^작업구분코드^진 단^execprcpuniqno" colsep="^" colwidth="0, 0, 80, 70, 0, 0, 120, 0, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 200, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:334px; width:448px; height:408; ">
  771. <col ref="instcd"/>
  772. <col ref="ptno"/>
  773. <col ref="dispptno"/>
  774. <col ref="prcpdd" type="output" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  775. <col ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  776. <col ref="testcd"/>
  777. <col ref="testnm" type="output"/>
  778. <col ref="tgrupcd" type="output"/>
  779. <col ref="acptstatcd" type="output"/>
  780. <col ref="pid"/>
  781. <col ref="patnm"/>
  782. <col ref="reqfrmno" type="output"/>
  783. <col ref="reqfrmflagcd"/>
  784. <col ref="sexage"/>
  785. <col ref="readdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  786. <col ref="orddeptnm"/>
  787. <col ref="orddrnm"/>
  788. <col ref="readdrnm"/>
  789. <col ref="grosdrnm" style="text-align:center; "/>
  790. <col ref="prcpgenrflag"/>
  791. <col ref="ptnoworkflagcd"/>
  792. <col ref="diagcnts"/>
  793. <script type="javascript" ev:event="onclick">
  794. <![CDATA[
  795. fExePtNoClick();
  796. ]]>
  797. </script>
  798. <script type="javascript" ev:event="onaftersort">
  799. <![CDATA[
  800. grd_testrsltlist.gridToInstance();
  801. ]]>
  802. </script>
  803. </datagrid>
  804. <caption id="caption2" class="tit_2" style="left:10px; top:314px; width:140px; height:13px; ">검사결과 목록</caption>
  805. <line id="line3" class="line_1" style="x1:0px; y1:329px; x2:448px; y2:329px; "/>
  806. <datagrid id="grd_testrsltref" nodeset="/root/main/testrslt/testrsltinfo" autoresize="true" caption="검 사 결 과 내 용^caption2^caption3^caption4^caption5^caption6^caption7^caption8" colsep="^" colwidth="719, 10, 10, 10, 10, 10, 10, 10" rowsep="|" selectionmode="free" style="left:452px; top:29px; width:741px; height:713px; font-family:굴림체; font-size:9pt; ">
  807. <col ref="reptrslt" style="font-family:굴림체; font-size:9pt; "/>
  808. <col ref="level" visibility="hidden"/>
  809. <col ref="judgmark" visibility="hidden"/>
  810. <col ref="tkdt" visibility="hidden"/>
  811. <col ref="rsltdd" visibility="hidden"/>
  812. <col ref="suppdept" visibility="hidden"/>
  813. <col ref="pacsno" visibility="hidden"/>
  814. <col ref="spcno" visibility="hidden"/>
  815. <script type="javascript" ev:event="DOMFocusOut">
  816. <![CDATA[
  817. initPopupMenu();
  818. ]]>
  819. </script>
  820. <script type="javascript" ev:event="onmousedown">
  821. <![CDATA[
  822. if ( (grd_testrsltref.row >= grd_testrsltref.fixedRows) && (grd_testrsltref.isCell(event.target)) && (event.ctrlKey != true) ) {
  823. if(model.getValue("/root/main/testrslt/testrsltinfo["+ grd_testrsltref.row +"]/judgmark") == "IMP") {
  824. setPopupMenu("grd_testrsltref", false, "/root/init/popupmenu/item", "name", "func");
  825. }else{
  826. setPopupMenu("grd_testrsltref", false, "/root/init/popupmenu2/item", "name", "func");
  827. }
  828. }
  829. // fSetPopup();
  830. ]]>
  831. </script>
  832. <script type="javascript" ev:event="oncopy">
  833. <![CDATA[
  834. astgrid_oncopy();
  835. ]]>
  836. </script>
  837. </datagrid>
  838. <switch id="switch1" style="left:0px; top:224px; width:450px; height:84px; ">
  839. <case id="case1">
  840. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:448px; height:82px; background-color:#fffbf2; border-color:#ffd799; "/>
  841. <caption id="caption12" class="search_name" style="left:15px; top:33px; width:115px; height:17px; ">채취방법(P) :</caption>
  842. <caption id="caption4" class="search_name" style="left:15px; top:10px; width:115px; height:17px; ">채취부위(T) :</caption>
  843. <input id="input2" ref="/root/hidden/detlrefcrite/extrpart" class="input_search" navindex="9" style="left:130px; top:9px; width:192px; height:19px; "/>
  844. <input id="input3" ref="/root/hidden/detlrefcrite/diag" class="input_search" navindex="10" style="left:130px; top:55; width:192px; height:19px; "/>
  845. <caption id="caption9" class="search_name" style="left:15px; top:56; width:115px; height:17px; ">진 단(M) :</caption>
  846. <input id="input4" ref="/root/hidden/detlrefcrite/extrmthd" class="input_search" navindex="11" style="left:130px; top:32px; width:192px; height:19px; "/>
  847. <line id="line7" class="line_4" style="x1:337px; y1:8px; x2:337px; y2:75px; border-color:#ffe4bb; border-left-style:solid; "/>
  848. <button id="btn_detlsea" class="btn1_letter4" style="left:353px; top:30px; width:80px; height:22px; ">
  849. <caption>상세조회</caption>
  850. <script type="javascript" ev:event="DOMActivate">
  851. <![CDATA[
  852. fGetTestRsltList("2");
  853. ]]>
  854. </script>
  855. </button>
  856. </case>
  857. <case id="case2" selected="true">
  858. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:448px; height:82px; background-color:#fffbf2; border-color:#ffd799; "/>
  859. <button id="button3" class="btn1_letter4" style="left:353px; top:30px; width:80px; height:22px; ">
  860. <caption>상세조회</caption>
  861. <script type="javascript" ev:event="DOMActivate">
  862. <![CDATA[
  863. fGetTestRsltList("3");
  864. ]]>
  865. </script>
  866. </button>
  867. <caption id="caption5" class="search_name" style="left:15px; top:56px; width:115px; height:17px; ">Microscopic :</caption>
  868. <caption id="caption8" class="search_name" style="left:15px; top:10px; width:115px; height:17px; ">Gross :</caption>
  869. <input id="input1" ref="/root/hidden/detlrefcrite/extrpart" class="input_search" navindex="8" style="left:130px; top:9px; width:192px; height:19px; "/>
  870. <input id="input5" ref="/root/hidden/detlrefcrite/diag" class="input_search" navindex="12" style="left:130px; top:32px; width:192px; height:19px; "/>
  871. <input id="input6" ref="/root/hidden/detlrefcrite/extrmthd" class="input_search" navindex="13" style="left:130px; top:55px; width:192px; height:19px; "/>
  872. <caption id="caption15" class="search_name" style="left:15px; top:33px; width:115px; height:17px; ">Diagnosis :</caption>
  873. <line id="line4" class="line_4" style="x1:337px; y1:8px; x2:337px; y2:75px; border-color:#ffe4bb; border-left-style:solid; "/>
  874. </case>
  875. </switch>
  876. <button id="btn_tpm" class="btn_sw" group="tab" selected="true" style="left:0px; top:202px; width:52px; height:22px; ">
  877. <caption>T/P/M</caption>
  878. <toggle case="case1" ev:event="DOMActivate"/>
  879. </button>
  880. <button id="btn_rsltref" class="btn_sw" group="tab" selected="true" style="left:53px; top:202px; width:62px; height:22px; ">
  881. <caption>결과조회</caption>
  882. <toggle case="case2" ev:event="DOMActivate"/>
  883. </button>
  884. <group id="grp_patinfo" style="left:0px; top:80px; width:448px; height:116px; ">
  885. <caption id="caption7" class="tit_2" style="left:5px; top:0px; width:140px; height:13px; ">인적사항</caption>
  886. <line id="line9" class="line_1" style="x1:0px; y1:15px; x2:448px; y2:15px; "/>
  887. <line id="line11" class="line_2" style="x1:0px; y1:66px; x2:448px; y2:66px; "/>
  888. <line id="line12" class="line_2" style="x1:0px; y1:90px; x2:448px; y2:90px; "/>
  889. <output id="opt_pid" ref="/root/main/patinfo/pattestrslt/pid" class="output_fix" visibility="hidden" style="left:185px; top:45px; width:82px; height:19px; border-color:#c0c0c0; "/>
  890. <output id="output1" ref="/root/main/patinfo/pattestrslt/dispptno" class="output_fix" style="left:63px; top:45px; width:82px; height:19px; border-color:#c0c0c0; "/>
  891. <output id="output2" ref="/root/main/patinfo/pattestrslt/orddeptnm" class="output_fix" style="left:63px; top:69px; width:82px; height:19px; border-color:#c0c0c0; "/>
  892. <output id="output3" ref="/root/main/patinfo/pattestrslt/prcpdd" class="output_fix" format="yyyy-mm-dd" style="left:63px; top:93px; width:82px; height:19px; border-color:#c0c0c0; "/>
  893. <output id="output4" ref="/root/main/patinfo/pattestrslt/readdd" class="output_fix" format="yyyy-mm-dd" style="left:368px; top:93px; width:78px; height:19px; border-color:#c0c0c0; "/>
  894. <output id="output5" ref="/root/main/patinfo/pattestrslt/patnm" class="output_fix" style="left:220px; top:21px; width:82px; height:19px; border-color:#c0c0c0; "/>
  895. <output id="output6" ref="/root/main/patinfo/pattestrslt/sexage" class="output_fix" style="left:368px; top:21px; width:78px; height:19px; border-color:#c0c0c0; "/>
  896. <output id="output7" ref="/root/main/patinfo/pattestrslt/orddrnm" class="output_fix" style="left:220px; top:69px; width:82px; height:19px; border-color:#c0c0c0; "/>
  897. <output id="output8" ref="/root/main/patinfo/pattestrslt/acptdd" class="output_fix" format="yyyy-mm-dd" style="left:220px; top:93px; width:82px; height:19px; border-color:#c0c0c0; "/>
  898. <output id="output9" ref="/root/main/patinfo/pattestrslt/readdrnm" class="output_fix" style="left:368px; top:69px; width:78px; height:19px; border-color:#c0c0c0; "/>
  899. <caption id="caption20" class="cell_1" style="left:305px; top:20px; width:60px; height:23px; vertical-align:middle; ">성별나이</caption>
  900. <caption id="caption21" class="cell_1" style="left:148px; top:68px; width:69px; height:23px; vertical-align:middle; ">진료의사</caption>
  901. <caption id="caption22" class="cell_1" style="left:148px; top:92px; width:69px; height:23px; vertical-align:middle; ">접 수 일</caption>
  902. <caption id="caption23" class="cell_1" style="left:305px; top:68px; width:60px; height:23px; vertical-align:middle; ">판독의사</caption>
  903. <caption id="caption13" class="cell_1" style="left:0px; top:20px; width:60px; height:23px; vertical-align:middle; ">등록번호</caption>
  904. <caption id="caption14" class="cell_1" style="left:0px; top:44px; width:60px; height:23px; vertical-align:middle; ">병리번호</caption>
  905. <caption id="caption16" class="cell_1" style="left:0px; top:68px; width:60px; height:23px; vertical-align:middle; ">진 료 과</caption>
  906. <caption id="caption17" class="cell_1" style="left:0px; top:92px; width:60px; height:23px; vertical-align:middle; ">처 방 일</caption>
  907. <caption id="caption18" class="cell_1" style="left:305px; top:92px; width:60px; height:23px; vertical-align:middle; ">보 고 일</caption>
  908. <caption id="caption19" class="cell_1" style="left:148px; top:20px; width:69px; height:23px; vertical-align:middle; ">환 자 명</caption>
  909. <line id="line14" class="line_3" style="x1:0px; y1:114px; x2:448px; y2:114px; "/>
  910. <line id="line10" class="line_2" style="x1:0px; y1:42px; x2:448px; y2:42px; "/>
  911. <input id="input7" ref="/root/main/patinfo/pattestrslt/pid" editable="false" style="left:63px; top:21px; width:82px; height:19px; "/>
  912. </group>
  913. <button id="btn_rsltexcel" class="btn2_letter5" style="left:1118px; top:4px; width:75px; height:19px; ">
  914. <caption>EXCEL저장</caption>
  915. <script type="javascript" ev:event="DOMActivate">
  916. <![CDATA[
  917. fExeMakePatInfo();
  918. lpzfExeSaveToExcel(grd_testrsltref, "검사결과내용");
  919. grd_testrsltref.deleteRow(1);
  920. ]]>
  921. </script>
  922. </button>
  923. <button id="btn_imgview" class="btn2_letter5" style="left:1040px; top:4px; width:75px; height:19px; ">
  924. <caption>이미지보기</caption>
  925. <script type="javascript" ev:event="DOMActivate">
  926. <![CDATA[
  927. fExeImgView();
  928. ]]>
  929. </script>
  930. </button>
  931. <button id="button1" class="btn2_letter6" visibility="visible" style="left:951px; top:4px; width:86px; height:19px; ">
  932. <caption>임상정보조회</caption>
  933. <script type="javascript" ev:event="DOMActivate">
  934. <![CDATA[
  935. // 임상정보 조회
  936. fGetIMSInfo();
  937. ]]>
  938. </script>
  939. </button>
  940. </group>
  941. <group id="grp_btn" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  942. <button id="button13" class="btn6_letter5" style="left:5px; top:3px; width:92px; height:22px; ">
  943. <caption>EXCEL저장</caption>
  944. <script type="javascript" ev:event="DOMActivate">
  945. <![CDATA[
  946. fExeMakePatInfo2();
  947. lpzfExeSaveToExcel(grd_testrsltlist, "결과조회");
  948. fExeDelPatInfo2();
  949. ]]>
  950. </script>
  951. </button>
  952. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  953. <button id="btn_sytsrsltref" class="btn3_letter6" style="left:100; top:3px; width:92px; height:22px; ">
  954. <caption>통합결과조회</caption>
  955. <script type="javascript" ev:event="DOMActivate">
  956. <![CDATA[
  957. fExePopupCallSytsRslt();
  958. ]]>
  959. </script>
  960. </button>
  961. <button id="btn_prt" class="btn6_letter2" navindex="14" style="left:207px; top:3px; width:56px; height:22px; ">
  962. <caption>출력</caption>
  963. <script type="javascript" ev:event="DOMActivate">
  964. <![CDATA[
  965. fExeReptPrnt();
  966. ]]>
  967. </script>
  968. </button>
  969. </group>
  970. </xhtml:body>
  971. </xhtml:html>