SPLPJ02300_수탁검사접수.xrw 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLPJ02300_수탁검사접수
  4. * 설 명 : 수탁검사접수
  5. * 설 계 자 : 설계자가 별도로 존재시 작성
  6. * 작 성 자 : 유동철(ACK)
  7. * 작 성 일 : 2007.09.20
  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. <trusttest>
  20. <trusttestlist>
  21. <choi/>
  22. <instcd/>
  23. <reqinstcd/>
  24. <reqinstnm/>
  25. <reqdd/>
  26. <reqtm/>
  27. <bcno/>
  28. <workno/>
  29. <reqpid/>
  30. <patnm/>
  31. <sexage/>
  32. <rrgstno/>
  33. <rrgstno1/>
  34. <rrgstno2/>
  35. <psptno/>
  36. <testcd/>
  37. <testnm/>
  38. <spccd/>
  39. <spcnm/>
  40. <reqfrmno/>
  41. <reqfrmflagcd/>
  42. <reqcnts/>
  43. <reqnm/>
  44. <cnfmdd/>
  45. <cnfmtm/>
  46. <cnfmnm/>
  47. <acptstatcd/>
  48. <bizflagcd/>
  49. <orddrid/>
  50. <orddeptcd/>
  51. <grostestplgyid/>
  52. <newreqcnts/>
  53. </trusttestlist>
  54. </trusttest>
  55. <patinfo>
  56. <patinfocnts>
  57. <exlabcd/>
  58. <pid/>
  59. <patnm/>
  60. <rrgstno1/>
  61. <rrgstno2/>
  62. <rrgstno/>
  63. <psptno/>
  64. <age/>
  65. <sex/>
  66. <bigo/>
  67. <suppkind/>
  68. <uncocd/>
  69. <trusthosppid/>
  70. </patinfocnts>
  71. </patinfo>
  72. <choiprcp>
  73. <choiprcplist>
  74. <instcd/>
  75. <testcd/>
  76. <testhngnm/>
  77. <testengnm/>
  78. <spccd/>
  79. <spcnm/>
  80. <acptdept/>
  81. </choiprcplist>
  82. </choiprcp>
  83. <acptinfo>
  84. <acptlist>
  85. <instcd/>
  86. <pid/>
  87. <sexage/>
  88. <rrgstno/>
  89. <addr/>
  90. <testcd/>
  91. <testnm/>
  92. <prcpdd/>
  93. <orddd/>
  94. <spccd/>
  95. <spcnm/>
  96. <suppkind/>
  97. <uncocd/>
  98. </acptlist>
  99. </acptinfo>
  100. <acptpat>
  101. <acptpatlist>
  102. <instcd/>
  103. <exlabcd/>
  104. <exlabnm/>
  105. <pid/>
  106. <patnm/>
  107. <sex/>
  108. <age/>
  109. <sexage/>
  110. <rrgstno1/>
  111. <rrgstno2/>
  112. <rrgstno/>
  113. <psptno/>
  114. <trusthosppid/>
  115. <bigo/>
  116. <bizflagcd/>
  117. <orddrid/>
  118. <orddeptcd/>
  119. <grostestplgyid/>
  120. </acptpatlist>
  121. </acptpat>
  122. <trustpat>
  123. <trustpatlist>
  124. <exlabcd/>
  125. <patnm/>
  126. <sex/>
  127. <age/>
  128. <rrgstno1/>
  129. <rrgstno2/>
  130. <psptno/>
  131. <bigo/>
  132. <suppkind/>
  133. <trusthosppid/>
  134. </trustpatlist>
  135. </trustpat>
  136. </main>
  137. <send/>
  138. <init>
  139. <prcpdrid/>
  140. <reqfromdd/>
  141. <reqtodd/>
  142. <reqpid/>
  143. <reqinstcd/>
  144. <popupmenu>
  145. <item>
  146. <nm>지우기</nm>
  147. <func>fExePrcpDel</func>
  148. </item>
  149. </popupmenu>
  150. <popupmenu2>
  151. <item>
  152. <nm>지우기</nm>
  153. <func>fExePatDel</func>
  154. </item>
  155. </popupmenu2>
  156. <sysdt>
  157. <sysdtinfo>
  158. <sysdd/>
  159. <systm/>
  160. </sysdtinfo>
  161. </sysdt>
  162. <hospenv>
  163. <hospenvinfo>
  164. <instcd/>
  165. <lendrtnterm/>
  166. <recvqualmthdcd/>
  167. <plgydeptcd/>
  168. <plgyteamcd/>
  169. <doctjobgradcd/>
  170. <teamjobgradcd/>
  171. </hospenvinfo>
  172. </hospenv>
  173. <userinfo>
  174. <userinfolist>
  175. <userid/>
  176. <usernm/>
  177. <jobkindcd/>
  178. </userinfolist>
  179. </userinfo>
  180. <instcdlist>
  181. <Z0007>
  182. <cdid/>
  183. <cdnm/>
  184. </Z0007>
  185. </instcdlist>
  186. <prcpcd>
  187. <prcpcdlist>
  188. <instcd/>
  189. <testcd/>
  190. <testengnm/>
  191. <testengabbr/>
  192. <testhngnm/>
  193. <testhngabbr/>
  194. <acptdept/>
  195. <ptnocd/>
  196. <stdyptnocd/>
  197. <trustptnocd/>
  198. <workflagcd/>
  199. <slidflagcd/>
  200. <slidisscnt/>
  201. <blocflagcd/>
  202. <initblocno/>
  203. <autokeepflagcd/>
  204. <stdy_workflagcd/>
  205. <stdy_slidflagcd/>
  206. <stdy_slidisscnt/>
  207. <stdy_blocflagcd/>
  208. <stdy_initblocno/>
  209. <stdy_autokeepflagcd/>
  210. <grupsnglflag/>
  211. </prcpcdlist>
  212. </prcpcd>
  213. <prcpkind>
  214. <prcpkindlist>
  215. <instcd/>
  216. <lvl/>
  217. <earnclsnm/>
  218. <earncls1/>
  219. <earncls2/>
  220. <earncls3/>
  221. <earnclskey/>
  222. </prcpkindlist>
  223. </prcpkind>
  224. <testinfo>
  225. <testinfolist>
  226. <instcd/>
  227. <testcd/>
  228. <testhngnm/>
  229. <spccd/>
  230. <spcnm/>
  231. </testinfolist>
  232. </testinfo>
  233. <init>
  234. <LB0110>
  235. <cd/>
  236. <nm/>
  237. </LB0110>
  238. </init>
  239. <coophosp>
  240. <coophosplist>
  241. <instcd/>
  242. <coophospcd/>
  243. <coophospnm/>
  244. <uncocd/>
  245. </coophosplist>
  246. </coophosp>
  247. </init>
  248. <hidden>
  249. </hidden>
  250. </root>
  251. </instance>
  252. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  253. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  254. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  255. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  256. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  257. <script type="javascript" ev:event="xforms-ready">
  258. <![CDATA[
  259. makeReportPreview(0, 0, 0, 0, "grp_prnt");
  260. fExeInitialize();
  261. ]]>
  262. </script>
  263. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/LB0110"/>
  264. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  265. <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
  266. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  267. <submission id="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
  268. <submission id="TRLPJ01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/prcpkind/prcpkindlist"/>
  269. <submission id="TRLPJ01003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/prcpcd/prcpcdlist"/>
  270. <submission id="TRLPC00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/testinfo/testinfolist"/>
  271. <submission id="TRLPJ02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/trusttest/trusttestlist"/>
  272. <submission id="TRLPJ02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/coophosp/coophosplist"/>
  273. <submission id="TXLPJ02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptinfo/acptlist"/>
  274. </model>
  275. <script type="javascript">
  276. <![CDATA[
  277. /* @group : 의뢰지 검체정보
  278. * @ver : 2007.07.03 (CMCDEV-0001)
  279. * @by : 유동철(ACK)
  280. * @-----------------------------------
  281. * @type : function
  282. * @access : public
  283. * @desc : 화면종료 처리 Function
  284. */
  285. function fExeInitialize() {
  286. //------------------------
  287. model.toggle("case_list");
  288. btn_trustlist.selected = true;
  289. model.removeNodeset("/root/main/trusttest/trusttestlist");
  290. model.removeNodeset("/root/init/prcpcd/prcpcdlist");
  291. model.removeNodeset("/root/init/testinfo/testinfolist");
  292. model.removeNodeset("/root/main/choiprcp/choiprcplist");
  293. model.removeNodeset("/root/main/acptpat/acptpatlist");
  294. //----------------
  295. // 시스템일자 조회
  296. model.removeNodeset("/root/send");
  297. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  298. model.makeValue("/root/send/deptflagcd", "1"); // 0:진단검사, 1:병리과
  299. submit("TRLPZ00101", false);
  300. submit("TRLPZ00102", false);
  301. submit("TRLPJ01001", false);
  302. submit("TRLPJ02302", false);
  303. lpzfUserDeptCd("/root/init/hospenv/hospenvinfo", "/root/init/userinfo");
  304. model.makeValue("/root/send/userdeptcd", model.getValue("/root/init/userinfo/userdeptcd"));
  305. model.makeValue("/root/send/doctjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/doctjobgradcd"));
  306. model.makeValue("/root/send/teamjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/teamjobgradcd"));
  307. submit("TRLPZ00105", false);
  308. //model.makeValue("/root/send/codeflag", "0110|"); // 0110 외부기관
  309. //submit("TRLZZ00101");
  310. //-----------------------------------------------------------------------------------------------
  311. //zbcfGetCodeList(new Array("Z0007"), new Array("/root/init/instcdlist", "/root/init/instcdlist"));
  312. //------------
  313. // 초기값 설정
  314. model.makeValue("/root/init/reqfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 요청일자(From)
  315. model.makeValue("/root/init/reqtodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 요청일자(To)
  316. model.makeValue("/root/init/reqpid", ""); // 요청등록번호
  317. model.makeValue("/root/init/reqinstcd", ""); // 요청기관
  318. model.makeValue("/root/init/prcpdrid", ""); // 병리과 처방의사
  319. model.makeValue("/root/main/patinfo/patinfocnts/suppkind", "13"); // 30% 가산안함
  320. model.makeValue("/root/main/patinfo/patinfocnts/uncocd", ""); // 미수코드
  321. //------------------------------------------
  322. grd_trustlist.fixedcellcheckbox(0,0) = true;
  323. //--------------------
  324. cmb_exlabcd.refresh();
  325. model.refresh();
  326. }
  327. /* @group : 의뢰지 검체정보
  328. * @ver : 2007.07.03 (CMCDEV-0001)
  329. * @by : 유동철(ACK)
  330. * @-----------------------------------
  331. * @type : function
  332. * @access : public
  333. * @desc : 화면종료 처리 Function
  334. */
  335. function fExeWindowClose() {
  336. window.close();
  337. }
  338. /* @group : 의뢰지 검체정보
  339. * @ver : 2007.07.03 (CMCDEV-0001)
  340. * @by : 유동철(ACK)
  341. * @-----------------------------------
  342. * @type : function
  343. * @access : public
  344. * @desc : 위탁검사 목록 조회 처리 Function
  345. */
  346. function fGetTrustTestList() {
  347. //--------------------------------
  348. model.removeNodeset("/root/send");
  349. model.removeNodeset("/root/main/trusttest/trusttestlist");
  350. //-----------------------------------------------------------------
  351. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  352. model.makeValue("/root/send/deptflagcd", "P");
  353. model.makeValue("/root/send/reqfromdd", model.getValue("/root/init/reqfromdd")); // 요청일자(From)
  354. model.makeValue("/root/send/reqtodd", model.getValue("/root/init/reqtodd")); // 요청일자(To)
  355. model.makeValue("/root/send/reqpid", model.getValue("/root/init/reqpid")); // 요청등록번호
  356. model.makeValue("/root/send/reqinstcd", model.getValue("/root/init/reqinstcd")); // 요청기관
  357. //-------------------
  358. submit("TRLPJ02301");
  359. }
  360. /* @group : 수탁검사접수
  361. * @ver : 2007.07.18 (CMCDEV-0001)
  362. * @by : 유동철(ACK)
  363. * @-----------------------------------
  364. * @type : function
  365. * @access : public
  366. * @desc : 처방분류 TreeView 클릭 처리 Function
  367. */
  368. function fExePrcpKindClick() {
  369. var sEarnCls1 = "";
  370. var sEarnCls2 = "";
  371. var sEarnCls3 = "";
  372. var item = trv_prcpkind.item(trv_prcpkind.selectedIndex);
  373. //-------------------------------
  374. // 최하위 노드를 선택할 경우 처리
  375. if (item.depth == 2) {
  376. sEarnCls1 = trv_prcpkind.item(trv_prcpkind.selectedIndex).value;
  377. //--------------
  378. // 처방분류 분리
  379. sEarnCls3 = sEarnCls1.substr(5,2);
  380. sEarnCls2 = sEarnCls1.substr(3,2);
  381. sEarnCls1 = sEarnCls1.substr(1,2);
  382. //--------------------------------
  383. model.removeNodeset("/root/send");
  384. model.removeNodeset("/root/init/prcpcd/prcpcdlist");
  385. model.removeNodeset("/root/init/testinfo/testinfolist");
  386. //----------------------------------------------------------------------
  387. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  388. model.makeValue("/root/send/earncls1", sEarnCls1);
  389. model.makeValue("/root/send/earncls2", sEarnCls2);
  390. model.makeValue("/root/send/earncls3", sEarnCls3);
  391. model.makeValue("/root/send/trustflagcd", "N");
  392. //-------------------
  393. submit("TRLPJ01003");
  394. }
  395. }
  396. /* @group : 수탁검사접수
  397. * @ver : 2007.09.20 (CMCDEV-0001)
  398. * @by : 유동철(ACK)
  399. * @-----------------------------------
  400. * @type : function
  401. * @access : public
  402. * @desc : 검체 표시 및 처방 등록 처리 Function
  403. */
  404. function fExePrcpChoi() {
  405. var iFindRow = 0;
  406. var sSpcCd = "";
  407. var sPrcpNode = "/root/init/prcpcd/prcpcdlist";
  408. var sSpcNode = "/root/init/testinfo/testinfolist";
  409. //------------------------------------------------------------------------------------------
  410. if (grd_testcdlist.isCell(event.target) && grd_testcdlist.row >= grd_testcdlist.fixedRows) {
  411. //---------------------
  412. // 선택된 검체코드 저장
  413. if (getNodesetCount(sSpcNode) > 0) {
  414. if (grd_spclist.row > 0) {
  415. sSpcCd = model.getValue(sSpcNode+"["+grd_spclist.row+"]/spccd");
  416. }
  417. }
  418. //--------------------------------
  419. model.removeNodeset("/root/send");
  420. model.resetInstanceNode("/root/init/testinfo/testinfolist");
  421. //-------------------------------------------
  422. model.makeValue("/root/send/delflagcd", "0"); // 조회조건 사용여부구분
  423. model.makeValue("/root/send/refflagcd", "1"); // 조회구분
  424. model.makeValue("/root/send/refval", model.getValue(sPrcpNode+"["+grd_testcdlist.row+"]/testcd")); // 조회값
  425. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  426. model.makeValue("/root/send/itemlimit", "5000"); // 최대건수
  427. model.makeValue("/root/send/page", "1"); // 페이지번호
  428. //-------------------
  429. submit("TRLPC00701");
  430. //--------------------------------------------
  431. // 저장된 검체와 같은 검체를 검색하여 자동선택
  432. if (getNodesetCount(sSpcNode) > 0) {
  433. //-----------------
  434. if (sSpcCd != "") {
  435. //---------------------------------------------------------
  436. iFindRow = grd_spclist.findRow(sSpcCd, 1, 3, false, false);
  437. //-----------------
  438. if (iFindRow > 0) {
  439. grd_spclist.select(iFindRow, 0) = true;
  440. grd_spclist.row = iFindRow;
  441. //------------
  442. fExePrcpAdd();
  443. }
  444. }
  445. }
  446. }
  447. }
  448. /* @group : 수탁검사접수
  449. * @ver : 2007.09.20 (CMCDEV-0001)
  450. * @by : 유동철(ACK)
  451. * @-----------------------------------
  452. * @type : function
  453. * @access : public
  454. * @desc : 선택된 처방 삭제 처리 Function
  455. */
  456. function fExePrcpDel() {
  457. //--------------------------
  458. if (grd_choiprcp.row <= 0) {
  459. messageBox("삭제 처방을 ", "C002");
  460. return false;
  461. }
  462. //---------------------------------------
  463. grd_choiprcp.deleteRow(grd_choiprcp.row);
  464. }
  465. /* @group : 수탁검사접수
  466. * @ver : 2007.09.20 (CMCDEV-0001)
  467. * @by : 유동철(ACK)
  468. * @-----------------------------------
  469. * @type : function
  470. * @access : public
  471. * @desc : 선택된 처방 추가 처리 Function
  472. */
  473. function fExePrcpAdd() {
  474. var iMaxRowNo = 0;
  475. var sSrcNode = "/root/main/choiprcp/choiprcplist";
  476. //--------------------
  477. grd_choiprcp.addRow();
  478. iMaxRowNo = getNodesetCount(sSrcNode);
  479. //----------------------------------------------------------------------------------
  480. model.makeValue(sSrcNode+"["+iMaxRowNo+"]/instcd", getUserInfo("dutplceinstcd"));
  481. model.makeValue(sSrcNode+"["+iMaxRowNo+"]/testcd", model.getValue("/root/init/prcpcd/prcpcdlist["+grd_testcdlist.row+"]/testcd"));
  482. model.makeValue(sSrcNode+"["+iMaxRowNo+"]/testhngnm", model.getValue("/root/init/prcpcd/prcpcdlist["+grd_testcdlist.row+"]/testhngnm"));
  483. model.makeValue(sSrcNode+"["+iMaxRowNo+"]/testengnm", model.getValue("/root/init/prcpcd/prcpcdlist["+grd_testcdlist.row+"]/testengnm"));
  484. model.makeValue(sSrcNode+"["+iMaxRowNo+"]/spccd", model.getValue("/root/init/testinfo/testinfolist["+grd_spclist.row+"]/spccd"));
  485. model.makeValue(sSrcNode+"["+iMaxRowNo+"]/spcnm", model.getValue("/root/init/testinfo/testinfolist["+grd_spclist.row+"]/spcnm"));
  486. }
  487. /* @group : 수탁검사접수
  488. * @ver : 2007.09.20 (CMCDEV-0001)
  489. * @by : 유동철(ACK)
  490. * @-----------------------------------
  491. * @type : function
  492. * @access : public
  493. * @desc : 수탁검사 선택 처리 Function
  494. */
  495. function fExeTrustChange(pBizFlagCd) {
  496. if (pBizFlagCd == "1") {
  497. btn_acpt.visible = true;
  498. btn_prcp.visible = false;
  499. btn_patlistread.visible = false;
  500. } else {
  501. btn_acpt.visible = false;
  502. btn_prcp.visible = true;
  503. btn_patlistread.visible = true;
  504. }
  505. }
  506. /* @group : 수탁검사접수
  507. * @ver : 2007.09.20 (CMCDEV-0001)
  508. * @by : 유동철(ACK)
  509. * @-----------------------------------
  510. * @type : function
  511. * @access : public
  512. * @desc : 대표검체 선택 처리 Function
  513. */
  514. function fExeSpcChoi() {
  515. //---------------------------------------------------------------------------------
  516. if (grd_spclist.isCell(event.target) && grd_spclist.row >= grd_spclist.fixedRows) {
  517. fExePrcpAdd();
  518. }
  519. }
  520. /* @group : 수탁검사접수
  521. * @ver : 2007.09.20 (CMCDEV-0001)
  522. * @by : 유동철(ACK)
  523. * @-----------------------------------
  524. * @type : function
  525. * @access : public
  526. * @desc : 개별 수탁검사 저장 처리 Function
  527. */
  528. function fExePrcpSave(pBizFlagCd) {
  529. var sTemp = "";
  530. var bState = false;
  531. var sPtNo = "";
  532. var sSrcNode1 = "/root/main/trusttest/trusttestlist";
  533. //--------------------------------
  534. // 수탁검사목록을 접수할 경우 처리
  535. if (pBizFlagCd == "1") {
  536. //---------------------------------------
  537. if (!isRequiredControls("cmb_orddrid")) {
  538. return false;
  539. }
  540. //--------------------------
  541. grd_trustlist.clearStatus();
  542. model.resetInstanceNode("/root/main/patinfo/patinfocnts");
  543. model.removeNodeset("/root/main/choiprcp/choiprcplist");
  544. //---------------------------------------------------------
  545. for (var iNo=1; iNo <= getNodesetCount(sSrcNode1); iNo++) {
  546. if (model.getValue(sSrcNode1+"["+iNo+"]/choi") == "true") {
  547. //-------------------------------------------------------------------------------
  548. var sNode = instance1.selectSingleNode(sSrcNode1+"["+iNo+"]/reqcnts/reqfrminfo");
  549. //---------------------------------------------------------
  550. model.makeValue(sSrcNode1+"["+iNo+"]/bizflagcd", "1");
  551. model.makeValue(sSrcNode1+"["+iNo+"]/orddrid", model.getValue("/root/init/prcpdrid"));
  552. model.makeValue(sSrcNode1+"["+iNo+"]/orddeptcd", model.getValue("/root/init/hospenv/hospenvinfo/plgydeptcd"));
  553. model.makeValue(sSrcNode1+"["+iNo+"]/grotestsplgyid", getUserInfo("userid"));
  554. model.makeValue(sSrcNode1+"["+iNo+"]/newreqcnts", sNode.xml);
  555. grd_trustlist.addStatus(iNo, "insert");
  556. bState = true;
  557. }
  558. //-------------
  559. if (!bState) {
  560. messageBox("접수할 수탁검사를 ", "C002");
  561. return false;
  562. }
  563. }
  564. } else {
  565. //--------------------------------------
  566. if (!isRequiredControls("cmb_orddrid")) {
  567. return false;
  568. }
  569. if (getNodesetCount("/root/main/acptpat/acptpatlist") <= 0) {
  570. messageBox("접수할 환자를 ", "C001");
  571. return false;
  572. }
  573. //--------------------------
  574. grd_trustlist.clearStatus();
  575. //-------------------------------------------------------------
  576. if (getNodesetCount("/root/main/choiprcp/choiprcplist") <= 0) {
  577. messageBox("처방등록할 수탁검사를 ", "C002");
  578. return false;
  579. }
  580. }
  581. //--------------------------------------------------------------------------------------
  582. model.makeValue("/root/main/patinfo/patinfocnts/instcd", getUserInfo("dutplceinstcd"));
  583. model.makeValue("/root/main/patinfo/patinfocnts/pid", "");
  584. //--------------------------------
  585. model.removeNodeset("/root/send");
  586. model.makeNode("/root/send/patinfo");
  587. copyNodesetType("/root/send/patinfo", "/root/main/patinfo/patinfocnts");
  588. model.makeValue("/root/send/choiprcplist", grd_choiprcp.getUpdateDataAll("i"));
  589. model.makeValue("/root/send/patlist", grd_acptpatlist.getUpdateDataAll("i"));
  590. model.makeValue("/root/send/trusttestlist", grd_trustlist.getUpdateData());
  591. model.makeValue("/root/send/bizflagcd", pBizFlagCd);
  592. model.makeValue("/root/send/orddrid", model.getValue("/root/init/prcpdrid"));
  593. model.makeValue("/root/send/orddeptcd", model.getValue("/root/init/hospenv/hospenvinfo/plgydeptcd"));
  594. model.makeValue("/root/send/grotestsplgyid", getUserInfo("userid"));
  595. //----------
  596. setAlertOn();
  597. if (submit("TXLPJ02301")) {
  598. //----------------------------------------------------
  599. model.removeNodeset("/root/main/acptpat/acptpatlist");
  600. model.removeNodeset("/root/main/choiprcp/choiprcplist");
  601. model.resetInstanceNode("/root/main/patinfo/patinfocnts");
  602. //-----------------------
  603. if (pBizFlagCd == "2") {
  604. //makeReportPreview(0, 50, 1179, 678);
  605. exeReportPreview("RPLPJ02300", "XMLSTR", "", "", "true", "", "", "", "", "false", "", "grp_prnt");
  606. }
  607. //----------------------
  608. if (pBizFlagCd == "1") {
  609. //-------------
  610. // 의뢰지 출력
  611. model.makeNode("/root/init/prntinfo");
  612. model.makeValue("/root/init/prntinfo/reptflagcd", "0"); // 의뢰지(0), 보고서(1)
  613. model.makeValue("/root/init/prntinfo/prntflagcd", "0"); // 출력(0), 미리보기(1)
  614. //-------------------------------------------------------------------------------------------
  615. for (var iRowNo=1; iRowNo <= getNodesetCount("/root/main/acptinfo/acptrsltlist"); iRowNo++) {
  616. if (sPtNo != model.getValue("/root/main/acptinfo/acptrsltlist["+iRowNo+"]/ptno")) {
  617. lpzfExeFrmPrnt("/root/main/acptinfo/acptrsltlist["+iRowNo+"]");
  618. sPtNo = model.getValue("/root/main/acptinfo/acptrsltlist["+iRowNo+"]/ptno");
  619. }
  620. }
  621. //------------------------------------------------------------------------------------
  622. for (var iNo=getNodesetCount("/root/main/trusttest/trusttestlist"); iNo >= 1; iNo--) {
  623. if (model.getValue(sSrcNode1+"["+iNo+"]/choi") == "true") {
  624. grd_trustlist.deleteRow(iNo);
  625. }
  626. }
  627. }
  628. }
  629. //--------------
  630. model.refresh();
  631. }
  632. /* @group : 수탁검사접수
  633. * @ver : 2007.09.20 (CMCDEV-0001)
  634. * @by : 유동철(ACK)
  635. * @-----------------------------------
  636. * @type : function
  637. * @access : public
  638. * @desc : 환자정보 검색 팝업창 호출 Function
  639. */
  640. function fExePatPopupCall(pBizFlagCd) {
  641. model.makeNode("/root/source");
  642. model.makeValue("/root/source/srchcond", pBizFlagCd);
  643. if (pBizFlagCd == "1") {
  644. model.makeValue("/root/source/pid", model.getValue("/root/main/patinfo/patinfocnts/pid"));
  645. model.makeValue("/root/source/hngnm", "");
  646. model.makeValue("/root/source/rrgstno1", "");
  647. model.makeValue("/root/source/rrgstno2", "");
  648. } else if (pBizFlagCd == "2") {
  649. model.makeValue("/root/source/pid", "");
  650. model.makeValue("/root/source/hngnm", model.getValue("/root/main/patinfo/patinfocnts/patnm"));
  651. model.makeValue("/root/source/rrgstno1", "");
  652. model.makeValue("/root/source/rrgstno2", "");
  653. } else {
  654. model.makeValue("/root/source/pid", "");
  655. model.makeValue("/root/source/hngnm", "");
  656. model.makeValue("/root/source/rrgstno1", model.getValue("/root/main/patinfo/patinfocnts/rrgstno1"));
  657. model.makeValue("/root/source/rrgstno2", model.getValue("/root/main/patinfo/patinfocnts/rrgstno2"));
  658. }
  659. //--------------------------------------------------------------------------------
  660. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  661. //----------------------------------------------------------
  662. if (getNodesetCount("/root/main/patinfo/patinfolist") > 0) {
  663. model.makeValue("/root/init/refval", model.getValue("/root/main/patinfo/patinfolist/pid"));
  664. }
  665. //--------------
  666. model.refresh();
  667. }
  668. /* @group : 수탁검사접수
  669. * @ver : 2007.09.24 (CMCDEV-0001)
  670. * @by : 유동철(ACK)
  671. * @-----------------------------------
  672. * @type : function
  673. * @access : public
  674. * @desc : 환자정보 삭제처리 Function
  675. */
  676. function fExePatDel() {
  677. grd_acptpatlist.deleteRow(grd_acptpatlist.row);
  678. }
  679. /* @group : 수탁검사접수
  680. * @ver : 2007.09.24 (CMCDEV-0001)
  681. * @by : 유동철(ACK)
  682. * @-----------------------------------
  683. * @type : function
  684. * @access : public
  685. * @desc : 환자정보 임시저장 처리 Function
  686. */
  687. function fExePatTempSave() {
  688. var sSrcNode = "/root/main/patinfo/patinfocnts";
  689. var sDescNode = "/root/main/acptpat/acptpatlist";
  690. var iRowNo = 0;
  691. //------------------------------------------------------------
  692. if (!isRequiredControls("cmb_orddrid", "ipt_trusthosppid")) {
  693. return false;
  694. }
  695. //-----------------------
  696. grd_acptpatlist.addRow();
  697. iRowNo = Number(getNodesetCount(sDescNode));
  698. //-------------------------------------------------------------------------------------
  699. model.makeValue(sDescNode+"["+iRowNo+"]/instcd", getUserInfo("dutplceinstcd"));
  700. model.makeValue(sDescNode+"["+iRowNo+"]/exlabcd", model.getValue(sSrcNode+"/exlabcd"));
  701. model.makeValue(sDescNode+"["+iRowNo+"]/exlabnm", model.getValue("/root/init/coophosp/coophosplist[coophospcd='"+model.getValue(sSrcNode+"/exlabcd")+"']/coophospnm"));
  702. model.makeValue(sDescNode+"["+iRowNo+"]/pid", model.getValue(sSrcNode+"/pid"));
  703. model.makeValue(sDescNode+"["+iRowNo+"]/patnm", model.getValue(sSrcNode+"/patnm"));
  704. model.makeValue(sDescNode+"["+iRowNo+"]/sex", model.getValue(sSrcNode+"/sex"));
  705. model.makeValue(sDescNode+"["+iRowNo+"]/age", model.getValue(sSrcNode+"/age"));
  706. model.makeValue(sDescNode+"["+iRowNo+"]/sexage", model.getValue(sSrcNode+"/sex")+"/"+model.getValue(sSrcNode+"/age"));
  707. model.makeValue(sDescNode+"["+iRowNo+"]/rrgstno1", model.getValue(sSrcNode+"/rrgstno1"));
  708. model.makeValue(sDescNode+"["+iRowNo+"]/rrgstno2", model.getValue(sSrcNode+"/rrgstno2"));
  709. model.makeValue(sDescNode+"["+iRowNo+"]/rrgstno", model.getValue(sSrcNode+"/rrgstno1")+"-"+model.getValue(sSrcNode+"/rrgstno2"));
  710. model.makeValue(sDescNode+"["+iRowNo+"]/psptno", model.getValue(sSrcNode+"/psptno"));
  711. model.makeValue(sDescNode+"["+iRowNo+"]/bigo", model.getValue(sSrcNode+"/bigo"));
  712. model.makeValue(sDescNode+"["+iRowNo+"]/bizflagcd", "2");
  713. model.makeValue(sDescNode+"["+iRowNo+"]/orddrid", model.getValue("/root/init/prcpdrid"));
  714. model.makeValue(sDescNode+"["+iRowNo+"]/orddeptcd", model.getValue("/root/init/hospenv/hospenvinfo/plgydeptcd"));
  715. model.makeValue(sDescNode+"["+iRowNo+"]/grotestsplgyid", getUserInfo("userid"));
  716. model.makeValue(sDescNode+"["+iRowNo+"]/suppkind", model.getValue(sSrcNode+"/suppkind"));
  717. model.makeValue(sDescNode+"["+iRowNo+"]/uncocd", model.getValue(sSrcNode+"/uncocd"));
  718. model.makeValue(sDescNode+"["+iRowNo+"]/trusthosppid", model.getValue(sSrcNode+"/trusthosppid"));
  719. //--------------
  720. model.refresh();
  721. }
  722. /* @group : 수탁검사접수
  723. * @ver : 2007.11.03 (CMCDEV-0001)
  724. * @by : 유동철(ACK)
  725. * @-----------------------------------
  726. * @type : function
  727. * @access : public
  728. * @desc : 수탁환자목록 Excel파일 읽기 처리 Function
  729. */
  730. function fExeReadTrustPatList() {
  731. var iRowNo = 1;
  732. var sExLabNm = "";
  733. var sSexAge = "";
  734. var sRRgstNo = "";
  735. var sSrcNode = "/root/main/trustpat/trustpatlist";
  736. var sDescNode = "/root/main/acptpat/acptpatlist";
  737. var sOrgNode = "/root/main/patinfo/patinfocnts";
  738. //------------------------------------------------------------------------------------------------
  739. if (model.getValue("/root/init/prcpdrid") == "" || model.getValue("/root/init/prcpdrid") == "-") {
  740. messageBox("처방의사를 ", "C002");
  741. return false;
  742. }
  743. //----------------------------
  744. model.removeNodeset(sSrcNode);
  745. model.removeNodeset(sDescNode);
  746. //---------------------------------------------------------------------------------------------------------------
  747. var sFileName = window.fileDialog("open", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  748. //-----------------------------------------
  749. if (sFileName == "" || sFileName == null) {
  750. messageBox("입고할 파일을 선택하세요", "E", "");
  751. return;
  752. }
  753. //------------------------
  754. // 파일의 확장자 종류 검사
  755. var sStr = sFileName.substring(sFileName.length - 3);
  756. //-------------------------------
  757. if(sStr.toLowerCase() == "xls") {
  758. grd_trustpatlist.loadExcel(sFileName);
  759. } else {
  760. messageBox("Excel파일을 선택하세요", "E", "");
  761. return;
  762. }
  763. //--------------------------------------------------------
  764. for (var iNo=2; iNo <= getNodesetCount(sSrcNode); iNo++) {
  765. //--------------------------------------------
  766. // 위탁기관, 환자명, 주민번호, 여권번호는 필수
  767. if (model.getValue(sSrcNode+"["+iNo+"]/exlabcd") == "") {
  768. messageBox("위탁기관은 ", "I003");
  769. return false;
  770. }
  771. if (model.getValue(sSrcNode+"["+iNo+"]/patnm") == "") {
  772. messageBox("환자명은 ", "I003");
  773. return false;
  774. }
  775. if (model.getValue(sSrcNode+"["+iNo+"]/trusthosppid") == "") {
  776. messageBox("위탁병원 환자번호는 ", "I003");
  777. return false;
  778. }
  779. if (model.getValue(sSrcNode+"["+iNo+"]/psptno") == "") {
  780. if (model.getValue(sSrcNode+"["+iNo+"]/rrgstno1") == "" && model.getValue(sSrcNode+"["+iNo+"]/rrgstno2") == "") {
  781. messageBox("주민번호 또는 여권번호(외국인)은 ", "I003");
  782. return false;
  783. }
  784. }
  785. //-------------------------------------------------------------------------------------------------------------
  786. sExLabNm = model.getValue("/root/init/coophosp/coophosplist[coophospcd='"+model.getValue(sSrcNode+"["+iNo+"]/exlabcd")+"']/coophospnm");
  787. sUnCoCd = model.getValue("/root/init/coophosp/coophosplist[coophospcd='"+model.getValue(sSrcNode+"["+iNo+"]/exlabcd")+"']/uncocd");
  788. sSexAge = model.getValue(sSrcNode+"["+iNo+"]/sex")+"/"+model.getValue(sSrcNode+"["+iNo+"]/age");
  789. sRRgstNo = model.getValue(sSrcNode+"["+iNo+"]/rrgstno1")+"-"+model.getValue(sSrcNode+"["+iNo+"]/rrgstno2");
  790. //--------------------------------------
  791. model.makeNode(sDescNode+"["+iRowNo+"]");
  792. model.makeValue(sDescNode+"["+iRowNo+"]/instcd", getUserInfo("dutplceinstcd"));
  793. model.makeValue(sDescNode+"["+iRowNo+"]/exlabcd", model.getValue(sSrcNode+"["+iNo+"]/exlabcd"));
  794. model.makeValue(sDescNode+"["+iRowNo+"]/exlabnm", sExLabNm);
  795. model.makeValue(sDescNode+"["+iRowNo+"]/pid", "");
  796. model.makeValue(sDescNode+"["+iRowNo+"]/patnm", model.getValue(sSrcNode+"["+iNo+"]/patnm"));
  797. model.makeValue(sDescNode+"["+iRowNo+"]/sex", model.getValue(sSrcNode+"["+iNo+"]/sex"));
  798. model.makeValue(sDescNode+"["+iRowNo+"]/age", model.getValue(sSrcNode+"["+iNo+"]/age"));
  799. model.makeValue(sDescNode+"["+iRowNo+"]/sexage", sSexAge);
  800. model.makeValue(sDescNode+"["+iRowNo+"]/rrgstno1", model.getValue(sSrcNode+"["+iNo+"]/rrgstno1"));
  801. model.makeValue(sDescNode+"["+iRowNo+"]/rrgstno2", model.getValue(sSrcNode+"["+iNo+"]/rrgstno2"));
  802. model.makeValue(sDescNode+"["+iRowNo+"]/rrgstno", sRRgstNo);
  803. model.makeValue(sDescNode+"["+iRowNo+"]/psptno", model.getValue(sSrcNode+"["+iNo+"]/psptno"));
  804. model.makeValue(sDescNode+"["+iRowNo+"]/bigo", model.getValue(sSrcNode+"["+iNo+"]/bigo"));
  805. model.makeValue(sDescNode+"["+iRowNo+"]/bizflagcd", "2");
  806. model.makeValue(sDescNode+"["+iRowNo+"]/orddrid", model.getValue("/root/init/prcpdrid"));
  807. model.makeValue(sDescNode+"["+iRowNo+"]/orddeptcd", model.getValue("/root/init/hospenv/hospenvinfo/plgydeptcd"));
  808. model.makeValue(sDescNode+"["+iRowNo+"]/grotestsplgyid", getUserInfo("userid"));
  809. model.makeValue(sDescNode+"["+iRowNo+"]/suppkind", model.getValue(sSrcNode+"["+iNo+"]/suppkind"));
  810. model.makeValue(sDescNode+"["+iRowNo+"]/uncocd", sUnCoCd);
  811. model.makeValue(sDescNode+"["+iRowNo+"]/trusthosppid", model.getValue(sSrcNode+"["+iNo+"]/trusthosppid"));
  812. //-------
  813. iRowNo++;
  814. }
  815. //------------------------
  816. grd_acptpatlist.refresh();
  817. }
  818. function fExeTrustChoi() {
  819. var sNode = "/root/init/coophosp/coophosplist";
  820. var sTrustCd = model.getValue("/root/main/patinfo/patinfocnts/exlabcd");
  821. model.makeValue("/root/main/patinfo/patinfocnts/uncocd", model.getValue(sNode+"[coophospcd='"+sTrustCd+"']/uncocd"));
  822. }
  823. ]]>
  824. </script>
  825. </xhtml:head>
  826. <xhtml:body pagewidth="1000" pageheight="716" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  827. <group id="grp_btn" scroll="auto" style="left:0px; top:673; width:984px; height:27px; ">
  828. <button id="btn_cls" class="btn4_letter2" navindex="31" style="left:928; top:5px; width:56px; height:22px; ">
  829. <caption>닫기</caption>
  830. <script type="javascript" ev:event="DOMActivate">
  831. <![CDATA[
  832. fExeWindowClose();
  833. ]]>
  834. </script>
  835. </button>
  836. <line id="line17" class="line_6" style="x1:0px; y1:0px; x2:984; y2:0px; "/>
  837. <button id="btn_prcp" class="btn4_letter4" navindex="30" visibility="hidden" style="left:845; top:5px; width:80px; height:22px; ">
  838. <caption>처방등록</caption>
  839. <script type="javascript" ev:event="DOMActivate">
  840. <![CDATA[
  841. fExePrcpSave("2");
  842. ]]>
  843. </script>
  844. </button>
  845. <button id="btn_acpt" class="btn4_letter2" navindex="29" style="left:786; top:5px; width:56px; height:22px; ">
  846. <caption>접수</caption>
  847. <script type="javascript" ev:event="DOMActivate">
  848. <![CDATA[
  849. fExePrcpSave("1");
  850. ]]>
  851. </script>
  852. </button>
  853. <button id="btn_patlistread" class="btn3_letter9" navindex="28" visibility="hidden" style="left:0; top:5px; width:136px; height:22px; ">
  854. <caption>수탁환자 Excel읽기</caption>
  855. <script type="javascript" ev:event="DOMActivate">
  856. <![CDATA[
  857. fExeReadTrustPatList();
  858. ]]>
  859. </script>
  860. </button>
  861. </group>
  862. <group id="grp_biz" style="left:0px; top:0px; width:984; height:673; ">
  863. <button id="btn_trustlist" class="btn_sw" navindex="26" group="tab" selected="true" style="left:0px; top:0px; width:90px; height:22px; ">
  864. <caption>수탁검사목록</caption>
  865. <toggle case="case_list" ev:event="DOMActivate"/>
  866. <script type="javascript" ev:event="DOMActivate">
  867. <![CDATA[
  868. fExeTrustChange("1");
  869. ]]>
  870. </script>
  871. </button>
  872. <button id="btn_trustsingle" class="btn_sw" navindex="27" group="tab" selected="true" style="left:92px; top:0px; width:90px; height:22px; ">
  873. <caption>개별수탁검사</caption>
  874. <toggle case="case_single" ev:event="DOMActivate"/>
  875. <script type="javascript" ev:event="DOMActivate">
  876. <![CDATA[
  877. fExeTrustChange("2");
  878. ]]>
  879. </script>
  880. </button>
  881. <switch id="swt_trust" style="left:0px; top:23px; width:984px; height:647px; ">
  882. <case id="case_single" selected="true">
  883. <caption id="caption6" class="tit_2" autoresize="true" style="left:10px; top:5px; width:161px; height:14px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">환자정보</caption>
  884. <line id="line2" class="line_1" style="x1:5px; y1:20px; x2:979px; y2:20px; "/>
  885. <select1 id="cmb_exlabcd" ref="/root/main/patinfo/patinfocnts/exlabcd" class="combo_default" navindex="7" appearance="minimal" style="left:74px; top:26px; width:116px; height:19px; ">
  886. <choices>
  887. <itemset nodeset="/root/init/coophosp/coophosplist">
  888. <label ref="coophospnm"/>
  889. <value ref="coophospcd"/>
  890. </itemset>
  891. </choices>
  892. <script type="javascript" ev:event="xforms-value-changed">
  893. <![CDATA[
  894. fExeTrustChoi();
  895. ]]>
  896. </script>
  897. </select1>
  898. <caption id="caption11" class="text_center" style="left:626px; top:26px; width:20px; height:20px; ">-</caption>
  899. <caption id="caption13" class="cell_1" style="left:514px; top:49px; width:60px; height:23px; font-family:돋움; vertical-align:middle; ">비 고</caption>
  900. <line id="line4" class="line_1" style="x1:5px; y1:96px; x2:210px; y2:96px; "/>
  901. <caption id="caption14" class="tit_2" autoresize="true" style="left:10px; top:81px; width:161px; height:14px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">처방분류</caption>
  902. <treeview id="trv_prcpkind" navindex="21" itemsettype="depth" style="left:5px; top:101px; width:205px; height:368px; ">
  903. <itemset nodeset="/root/init/prcpkind/prcpkindlist">
  904. <label ref="earnclsnm"/>
  905. <value ref="earnclskey"/>
  906. <depth ref="lvl"/>
  907. </itemset>
  908. <script type="javascript" ev:event="xforms-select">
  909. <![CDATA[
  910. fExePrcpKindClick();
  911. ]]>
  912. </script>
  913. </treeview>
  914. <caption id="caption15" class="tit_2" autoresize="true" style="left:218px; top:81px; width:161px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">처방명 목록</caption>
  915. <line id="line5" class="line_1" style="x1:213px; y1:96px; x2:433px; y2:96px; "/>
  916. <datagrid id="grd_testcdlist" nodeset="/root/init/prcpcd/prcpcdlist" caption="기관코드^처방코드^처방명^처방명^처방명^처방명^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16" colsep="^" colwidth="0, 0, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="22" style="left:213px; top:101px; width:220px; height:368px; ">
  917. <col ref="instcd"/>
  918. <col ref="testcd"/>
  919. <col ref="testengnm"/>
  920. <col ref="testengabbr"/>
  921. <col ref="testhngnm"/>
  922. <col ref="testhngabbr"/>
  923. <col ref="acptdept"/>
  924. <col ref="ptnocd"/>
  925. <col ref="stdyptnocd"/>
  926. <col ref="trustptnocd"/>
  927. <col ref="workflagcd"/>
  928. <col ref="slidflagcd"/>
  929. <col ref="slidisscnt"/>
  930. <col ref="blocflagcd"/>
  931. <col ref="initblocno"/>
  932. <col ref="autokeepflagcd"/>
  933. <col ref="stdy_workflagcd"/>
  934. <col ref="stdy_slidflagcd"/>
  935. <col ref="stdy_slidisscnt"/>
  936. <col ref="stdy_blocflagcd"/>
  937. <col ref="stdy_initblocno"/>
  938. <col ref="stdy_autokeepflagcd"/>
  939. <script type="javascript" ev:event="ondblclick">
  940. <![CDATA[
  941. fExePrcpChoi();
  942. ]]>
  943. </script>
  944. </datagrid>
  945. <caption id="caption16" class="tit_2" autoresize="true" style="left:441px; top:81px; width:161px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">대표검체 목록</caption>
  946. <line id="line7" class="line_1" style="x1:436px; y1:96px; x2:656px; y2:96px; "/>
  947. <datagrid id="grd_spclist" nodeset="/root/init/testinfo/testinfolist" caption="기관코드^처방코드^처방명^검체코드^검체명" colsep="^" colwidth="0, 0, 0, 0, 200" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="23" style="left:436px; top:101px; width:220px; height:368; ">
  948. <col ref="instcd"/>
  949. <col ref="testcd"/>
  950. <col ref="testhngnm"/>
  951. <col ref="spccd"/>
  952. <col ref="spcnm"/>
  953. <script type="javascript" ev:event="ondblclick">
  954. <![CDATA[
  955. fExeSpcChoi();
  956. ]]>
  957. </script>
  958. </datagrid>
  959. <datagrid id="grd_choiprcp" nodeset="/root/main/choiprcp/choiprcplist" caption="기관코드^처방코드^처방명^처방명^검체코드^검체명" colsep="^" colwidth="0, 0, 0, 156, 0, 140" dataheight="23" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="24" style="left:659px; top:101px; width:320px; height:368px; ">
  960. <col ref="instcd"/>
  961. <col ref="testcd"/>
  962. <col ref="testhngnm"/>
  963. <col ref="testengnm"/>
  964. <col ref="spccd"/>
  965. <col ref="spcnm"/>
  966. <script type="javascript" ev:event="ondblclick">
  967. <![CDATA[
  968. ]]>
  969. </script>
  970. <script type="javascript" ev:event="onmousedown">
  971. <![CDATA[
  972. setPopupMenu("grd_choiprcp", false, "/root/init/popupmenu/item", "nm", "func");
  973. ]]>
  974. </script>
  975. <script type="javascript" ev:event="DOMFocusOut">
  976. <![CDATA[
  977. initPopupMenu();
  978. ]]>
  979. </script>
  980. </datagrid>
  981. <caption id="caption17" class="tit_2" autoresize="true" style="left:664px; top:81px; width:161px; height:14px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">선택 처방 및 검체</caption>
  982. <line id="line8" class="line_1" style="x1:659px; y1:96px; x2:979px; y2:96px; "/>
  983. <caption id="cap_exlabcd" class="cell_1" style="left:5px; top:25px; width:66px; height:23px; font-family:돋움; vertical-align:middle; ">위탁기관</caption>
  984. <input id="ipt_patnm" ref="/root/main/patinfo/patinfocnts/patnm" navindex="10" imemode="hangul" maxlength="30" style="left:411px; top:26px; width:79px; height:19px; "/>
  985. <caption id="cap_patnm" class="cell_1" style="left:348px; top:25px; width:60px; height:23px; font-family:돋움; vertical-align:middle; ">환자명</caption>
  986. <input id="ipt_rrgstno1" ref="/root/main/patinfo/patinfocnts/rrgstno1" navindex="12" maxlength="6" format="999999" mask="exclude" showmask="false" style="left:577px; top:26px; width:45px; height:19px; "/>
  987. <input id="ipt_rrgstno2" ref="/root/main/patinfo/patinfocnts/rrgstno2" navindex="13" maxlength="7" format="9999999" mask="exclude" showmask="false" style="left:639px; top:26px; width:50px; height:19px; "/>
  988. <input id="ipt_psptno" ref="/root/main/patinfo/patinfocnts/psptno" navindex="15" maxlength="20" style="left:778px; top:26px; width:200; height:19px; "/>
  989. <caption id="cap_psptno" class="cell_1" style="left:711px; top:24px; width:64px; height:23px; font-family:돋움; vertical-align:middle; ">여권번호</caption>
  990. <input id="ipt_age" ref="/root/main/patinfo/patinfocnts/age" navindex="16" maxlength="3" format="####" mask="exclude" showmask="false" style="left:74px; top:50px; width:33px; height:19px; "/>
  991. <caption id="cap_sexage" class="cell_1" style="left:5px; top:49px; width:66px; height:23px; font-family:돋움; vertical-align:middle; ">나이/성별</caption>
  992. <select1 id="cmb_sex" ref="/root/main/patinfo/patinfocnts/sex" navindex="17" appearance="minimal" style="left:110px; top:50px; width:60px; height:19px; ">
  993. <choices>
  994. <item>
  995. <label>남성</label>
  996. <value>M</value>
  997. </item>
  998. <item>
  999. <label>여성</label>
  1000. <value>F</value>
  1001. </item>
  1002. </choices>
  1003. </select1>
  1004. <caption id="cap_rrgstno1" class="cell_1" style="left:514px; top:25px; width:60px; height:23px; font-family:돋움; vertical-align:middle; ">주민번호</caption>
  1005. <caption id="caption7" class="cell_1" style="left:193px; top:25px; width:60px; height:23px; font-family:돋움; vertical-align:middle; ">등록번호</caption>
  1006. <button id="btn_pidsea" class="icon_search" navindex="9" style="left:329; top:26px; width:16px; height:16px; ">
  1007. <caption/>
  1008. <script type="javascript" ev:event="DOMActivate">
  1009. <![CDATA[
  1010. fExePatPopupCall("1");
  1011. ]]>
  1012. </script>
  1013. </button>
  1014. <button id="btn_patnmsea" class="icon_search" navindex="11" style="left:493; top:26px; width:16px; height:16px; ">
  1015. <caption/>
  1016. <script type="javascript" ev:event="DOMActivate">
  1017. <![CDATA[
  1018. fExePatPopupCall("2");
  1019. ]]>
  1020. </script>
  1021. </button>
  1022. <button id="btn_rrgstnosea" class="icon_search" navindex="14" style="left:692; top:26px; width:16px; height:16px; ">
  1023. <caption/>
  1024. <script type="javascript" ev:event="DOMActivate">
  1025. <![CDATA[
  1026. fExePatPopupCall("3");
  1027. ]]>
  1028. </script>
  1029. </button>
  1030. <caption id="caption8" class="tit_2" autoresize="true" style="left:10px; top:476px; width:161px; height:14px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">접수대상 환자목록</caption>
  1031. <line id="line9" class="line_1" style="x1:5px; y1:491px; x2:979px; y2:491px; "/>
  1032. <datagrid id="grd_acptpatlist" nodeset="/root/main/acptpat/acptpatlist" caption="기관코드^요청기관코드^요청기관^등록번호^환자명^sex^age^성별/나이^적용율^rrgstno1^rrgstno2^주민번호^여권번호^위탁환자번호^비 고^caption1^caption2^caption3^caption4^미수코드" colsep="^" colwidth="0, 0, 144, 80, 80, 0, 0, 70, 110, 0, 0, 121, 130, 100, 200, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="25" style="left:5px; top:496px; width:974px; height:147px; ">
  1033. <col ref="instcd"/>
  1034. <col ref="exlabcd"/>
  1035. <col ref="exlabnm"/>
  1036. <col ref="pid"/>
  1037. <col ref="patnm"/>
  1038. <col ref="sex"/>
  1039. <col ref="age"/>
  1040. <col ref="sexage"/>
  1041. <col ref="suppkind" type="combo">
  1042. <choices>
  1043. <item>
  1044. <label>수탁</label>
  1045. <value>12</value>
  1046. </item>
  1047. <item>
  1048. <label>30%가산안함</label>
  1049. <value>13</value>
  1050. </item>
  1051. </choices>
  1052. </col>
  1053. <col ref="rrgstno1"/>
  1054. <col ref="rrgstno2"/>
  1055. <col ref="rrgstno"/>
  1056. <col ref="psptno"/>
  1057. <col ref="trusthosppid"/>
  1058. <col ref="bigo"/>
  1059. <col ref="bizflagcd"/>
  1060. <col ref="orddrid"/>
  1061. <col ref="orddeptcd"/>
  1062. <col ref="grostestplgyid"/>
  1063. <col ref="uncocd"/>
  1064. <script type="javascript" ev:event="onmousedown">
  1065. <![CDATA[
  1066. setPopupMenu("grd_acptpatlist", false, "/root/init/popupmenu2/item", "nm", "func");
  1067. ]]>
  1068. </script>
  1069. <script type="javascript" ev:event="DOMFocusOut">
  1070. <![CDATA[
  1071. initPopupMenu();
  1072. ]]>
  1073. </script>
  1074. </datagrid>
  1075. <button id="btn_cffm" class="btn2_letter4" navindex="20" style="left:915px; top:0px; width:64px; height:19px; ">
  1076. <caption>임시저장</caption>
  1077. <script type="javascript" ev:event="DOMActivate">
  1078. <![CDATA[
  1079. fExePatTempSave();
  1080. ]]>
  1081. </script>
  1082. </button>
  1083. <datagrid id="grd_trustpatlist" nodeset="/root/main/trustpat/trustpatlist" visibility="hidden" caption="exlabcd^patnm^sex^age^rrgstno1^rrgstno2^psptno^bigo^suppkind^trusthosppid" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:670px; top:435px; width:295px; height:65px; ">
  1084. <col ref="exlabcd" style="left:0px; top:23px; width:100px; height:23px; "/>
  1085. <col ref="patnm"/>
  1086. <col ref="sex"/>
  1087. <col ref="age"/>
  1088. <col ref="rrgstno1"/>
  1089. <col ref="rrgstno2"/>
  1090. <col ref="psptno"/>
  1091. <col ref="bigo"/>
  1092. <col ref="suppkind"/>
  1093. <col ref="trusthosppid"/>
  1094. </datagrid>
  1095. <input id="ipt_bigo" ref="/root/main/patinfo/patinfocnts/bigo" navindex="20" style="left:577px; top:50px; width:402px; height:19px; "/>
  1096. <caption id="caption9" class="cell_1" style="left:173px; top:49px; width:60px; height:23px; font-family:돋움; vertical-align:middle; ">적용율</caption>
  1097. <line id="line6" class="line_3" style="x1:5px; y1:71px; x2:979px; y2:71px; "/>
  1098. <select1 id="cmb_suppkind" ref="/root/main/patinfo/patinfocnts/suppkind" navindex="18" appearance="minimal" style="left:236px; top:50px; width:109px; height:19px; ">
  1099. <choices>
  1100. <item>
  1101. <label>수탁</label>
  1102. <value>12</value>
  1103. </item>
  1104. <item>
  1105. <label>30%가산안함</label>
  1106. <value>13</value>
  1107. </item>
  1108. </choices>
  1109. </select1>
  1110. <input id="ipt_pid" ref="/root/main/patinfo/patinfocnts/pid" disabled="true" navindex="8" style="left:256px; top:26px; width:70px; height:19px; "/>
  1111. <line id="line3" class="line_2" style="x1:5px; y1:47px; x2:979px; y2:47px; "/>
  1112. <caption id="caption10" class="cell_1" style="left:348px; top:49px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">위탁환자번호</caption>
  1113. <input id="ipt_trusthosppid" ref="/root/main/patinfo/patinfocnts/trusthosppid" navindex="19" imemode="hangul" maxlength="10" style="left:430px; top:51px; width:79px; height:19px; "/>
  1114. </case>
  1115. <case id="case_list">
  1116. <datagrid id="grd_trustlist" nodeset="/root/main/trusttest/trusttestlist" class="datagrid2" autoresize="true" caption="선택^instcd^요청기관코드^요청기관^요청일자^요청시간^바코드번호^작업번호^요청&#xA;등록번호^환자명^성별/&#xA;나이^주민번호^rrgstno1^rrgstno2^여권번호^검사코드^검사명^검체코드^검체명^의뢰지번호^의뢰지구분코드^의뢰지내용^요청자명^확인일자^확인시간^확인자명^acptstatcd^bizflagcd^orddrid^orddeptcd^grostestplgyid^newreqcnts" colsep="^" colwidth="50, 0, 0, 80, 70, 0, 100, 0, 80, 70, 45, 90, 0, 0, 90, 0, 123, 0, 90, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="6" style="left:5px; top:70px; width:974px; height:573px; border-color:#c0c0c0; border-style:solid; ">
  1117. <col ref="choi" type="checkbox"/>
  1118. <col ref="instcd"/>
  1119. <col ref="reqinstcd"/>
  1120. <col ref="reqinstnm"/>
  1121. <col ref="reqdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  1122. <col class="text_center" ref="reqtm"/>
  1123. <col class="text_center" ref="bcno"/>
  1124. <col class="text_center" ref="workno"/>
  1125. <col class="text_center" ref="reqpid"/>
  1126. <col ref="patnm" format="hh:nn:ss" mask="exclude" showmask="true"/>
  1127. <col ref="sexage"/>
  1128. <col ref="rrgstno"/>
  1129. <col ref="rrgstno1"/>
  1130. <col ref="rrgstno2"/>
  1131. <col ref="psptno"/>
  1132. <col ref="testcd"/>
  1133. <col ref="testnm"/>
  1134. <col ref="spccd"/>
  1135. <col ref="spcnm"/>
  1136. <col ref="reqfrmno"/>
  1137. <col ref="reqfrmflagcd"/>
  1138. <col ref="reqcnts"/>
  1139. <col ref="reqnm"/>
  1140. <col ref="cnfmdd"/>
  1141. <col ref="cnfmtm"/>
  1142. <col ref="cnfmnm"/>
  1143. <col ref="acptstatcd"/>
  1144. <col ref="bizflagcd"/>
  1145. <col ref="orddrid"/>
  1146. <col ref="orddeptcd"/>
  1147. <col ref="grostestplgyid"/>
  1148. <col ref="newreqcnts"/>
  1149. </datagrid>
  1150. <group id="grp_sea" style="left:5px; top:5px; width:974px; height:35px; vertical-align:top; ">
  1151. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:974; height:35px; "/>
  1152. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">요청일자 :</caption>
  1153. <button id="btn_search" class="btn1_letter2" navindex="5" style="left:904px; top:7px; width:56px; height:22px; ">
  1154. <caption>조회</caption>
  1155. <script type="javascript" ev:event="DOMActivate">
  1156. <![CDATA[
  1157. fGetTrustTestList();
  1158. ]]>
  1159. </script>
  1160. </button>
  1161. <line id="line13" class="line_4" style="x1:888px; y1:7px; x2:888px; y2:29px; "/>
  1162. <caption id="caption3" class="search_no_b" style="left:197; top:8px; width:12px; height:17px; text-align:center; vertical-align:middle; ">~</caption>
  1163. <input id="ipt_prcptodd" ref="/root/init/reqtodd" class="input_search" navindex="2" inputtype="date" style="left:212; top:8px; width:90px; height:19px; "/>
  1164. <input id="ipt_prcpfromdd" ref="/root/init/reqfromdd" class="input_search" navindex="1" inputtype="date" style="left:104; top:8px; width:90; height:19px; "/>
  1165. <caption id="caption4" class="search_name" style="left:681px; top:8px; width:86px; height:17px; ">등록번호 :</caption>
  1166. <caption id="caption5" class="search_name" style="left:374px; top:8px; width:86px; height:17px; ">요청기관 :</caption>
  1167. <select1 id="combo1" ref="/root/init/reqinstcd" navindex="3" appearance="minimal" itemcount="20" style="left:464px; top:8px; width:155px; height:19px; ">
  1168. <choices>
  1169. <itemset nodeset="/root/init/instcdlist/Z0007">
  1170. <label ref="cdnm"/>
  1171. <value ref="cdid"/>
  1172. </itemset>
  1173. </choices>
  1174. </select1>
  1175. <input id="input1" ref="/root/init/reqpid" navindex="4" style="left:773px; top:8px; width:100px; height:19px; "/>
  1176. </group>
  1177. <caption id="caption1" class="tit_2" autoresize="true" style="left:10px; top:50px; width:161px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">수탁검사목록</caption>
  1178. <line id="line1" class="line_1" style="x1:5px; y1:65px; x2:979px; y2:65px; "/>
  1179. </case>
  1180. </switch>
  1181. <select1 id="cmb_orddrid" ref="/root/init/prcpdrid" appearance="minimal" style="left:892px; top:2px; width:90px; height:19px; ">
  1182. <choices>
  1183. <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
  1184. <label ref="usernm"/>
  1185. <value ref="userid"/>
  1186. </itemset>
  1187. </choices>
  1188. </select1>
  1189. <caption id="cap_orddrid" class="cell_1" style="left:825px; top:0px; width:64px; height:23px; font-family:돋움; vertical-align:middle; ">처방의사</caption>
  1190. <group id="grp_prnt" visibility="hidden" style="left:205px; top:5px; width:285px; height:260px; "/>
  1191. </group>
  1192. </xhtml:body>
  1193. </xhtml:html>