SMLPD00700_슬라이드대출처방등록.xrw 97 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPD00700_슬라이드대출처방등록.xrw
  4. * 설 명 : 대출처방 목록 저장
  5. * 설 계 자 : 평화IS - 한음미
  6. * 작 성 자 : 평화IS - 한음미
  7. * 작 성 일 : 2008.06.19
  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. <prcpinfo>
  20. <prcpinfolist>
  21. <choi/>
  22. <prcpcd/>
  23. <prcpnm/>
  24. <prcpcnt/>
  25. </prcpinfolist>
  26. </prcpinfo>
  27. <acptinfo>
  28. <acptinfolist>
  29. <choi/>
  30. <patnm/>
  31. <ptno/>
  32. <orddeptnm/>
  33. <indd/>
  34. <wardroom/>
  35. <prcpdd/>
  36. <acptdd/>
  37. <rsltdd/>
  38. <testnm/>
  39. <spcnm/>
  40. <testcd/>
  41. <spccd/>
  42. <wardcd/>
  43. <roomcd/>
  44. <orddrid/>
  45. <spcacptdd/>
  46. <spcacptno/>
  47. <orddeptcd/>
  48. <acptno/>
  49. <orddrnm/>
  50. <ptnocd/>
  51. <grosdrid/>
  52. <grosplgyid/>
  53. <acpttm/>
  54. <reqfrmno/>
  55. <relaptno/>
  56. <lendflagcd/>
  57. <trandd/>
  58. <tranno/>
  59. <transeqno/>
  60. <execprcpuniqno/>
  61. <spcbarcdno/>
  62. <blocno/>
  63. <prcpno/>
  64. <orddd/>
  65. <pid/>
  66. <orddrnm/>
  67. <spctrandd/>
  68. <spctranno/>
  69. <grostestdd/>
  70. <grostesttm/>
  71. <stdyptnocd/>
  72. <trustptnocd/>
  73. <workflagcd/>
  74. <slidflagcd/>
  75. <blocflagcd/>
  76. <initblocno/>
  77. <autokeepflagcd/>
  78. <stdy_workflagcd/>
  79. <stdy_slidflagcd/>
  80. <stdy_slidisscnt/>
  81. <stdy_blocflagcd/>
  82. <stdy_initblocno/>
  83. <stdy_autokeepflagcd/>
  84. <prcpgenrflag/>
  85. <orddd/>
  86. <cretno/>
  87. <prcphistno/>
  88. <dispptno/>
  89. <rrgstno1/>
  90. <rrgstno2/>
  91. <brthdd/>
  92. <sex/>
  93. </acptinfolist>
  94. </acptinfo>
  95. <choiinfo>
  96. <choiinfolist>
  97. <choi/>
  98. <instcd/>
  99. <prcpdd/>
  100. <acptdd/>
  101. <rsltdd/>
  102. <testnm/>
  103. <slidisscnt/>
  104. <ptno/>
  105. <patnm/>
  106. <prcpgenrflag/>
  107. <orddd/>
  108. <prcpcd/>
  109. <prcpnm/>
  110. <spccd/>
  111. <spcnm/>
  112. <orddeptcd/>
  113. <orddeptnm/>
  114. <orddrid/>
  115. <orddrnm/>
  116. <reqfrmno/>
  117. <dschdd/>
  118. <execprcpuniqno/>
  119. <prcpno/>
  120. <acptno/>
  121. <spcacptdd/>
  122. <spcacptno/>
  123. <spcacptseqno/>
  124. <bfacptdd/>
  125. <bfacptno/>
  126. <bfacptseqno/>
  127. <reuseflagcd/>
  128. <bfspcacptdd/>
  129. <bfspcacptno/>
  130. <acptdept/>
  131. <status/>
  132. <ptnocd/>
  133. <stdyptnocd/>
  134. <trustptnocd/>
  135. <workflagcd/>
  136. <slidflagcd/>
  137. <blocflagcd/>
  138. <initblocno/>
  139. <autokeepflagcd/>
  140. <stdy_workflagcd/>
  141. <stdy_slidflagcd/>
  142. <stdy_slidisscnt/>
  143. <stdy_blocflagcd/>
  144. <stdy_initblocno/>
  145. <stdy_autokeepflagcd/>
  146. <grupsnglflag/>
  147. <wardcd/>
  148. <roomcd/>
  149. <grosdrid/>
  150. <grosplgyid/>
  151. <acpttm/>
  152. <grostestdd/>
  153. <grostesttm/>
  154. <autosave/>
  155. <lendflagcd/>
  156. <trandd/>
  157. <tranno/>
  158. <transeqno/>
  159. <spcbarcdno/>
  160. <testcd/>
  161. <spchistno/>
  162. <blocno/>
  163. <relaptno/>
  164. <grostestdd/>
  165. <grostesttm/>
  166. <cretno/>
  167. <tootfact/>
  168. <spctranbarcdno/>
  169. <prcphistno/>
  170. <dispptno/>
  171. <rrgstno1/>
  172. <rrgstno2/>
  173. <brthdd/>
  174. <sex/>
  175. <signbfcnts/>
  176. <signafcnts/>
  177. <slidecnts/>
  178. <blockcnts/>
  179. <csteno/>
  180. <slidno/>
  181. </choiinfolist>
  182. </choiinfo>
  183. <errmsg>
  184. <errlist>
  185. <prcpcd/>
  186. <prcpnm/>
  187. <prcperr/>
  188. </errlist>
  189. </errmsg>
  190. <rtnslideinfo>
  191. <rtnslideinfolist>
  192. <instcd/>
  193. <choi/>
  194. <prcpdd/>
  195. <acptdd/>
  196. <dispptno/>
  197. <ptno/>
  198. <disprelaptno/>
  199. <relaptno/>
  200. <pid/>
  201. <patnm/>
  202. <testcd/>
  203. <testnm/>
  204. <tgrupcd/>
  205. <tgrupnm/>
  206. <orddeptcd/>
  207. <orddeptnm/>
  208. <orddrid/>
  209. <orddrnm/>
  210. <appeorddrid/>
  211. <appeorddrnm/>
  212. <readdrnm/>
  213. <patflagcd/>
  214. <rcptflagcd/>
  215. <orgacptstatcd/>
  216. <acptstatnm/>
  217. <spccd/>
  218. <spcnm/>
  219. <prcpcd/>
  220. <prcpnm/>
  221. <spcacptdd/>
  222. <spcacptno/>
  223. <spcacptseqno/>
  224. <blocno/>
  225. <cmt/>
  226. <acptno/>
  227. <acptitemno/>
  228. <orgacptdd/>
  229. <trandd/>
  230. <tranno/>
  231. <transeqno/>
  232. <execprcpuniqno/>
  233. <orgprcpstatcd/>
  234. <spctrandd/>
  235. <spctranno/>
  236. <prcpgenrflag/>
  237. <testflagcd/>
  238. <reqinstcd/>
  239. <reqworkno/>
  240. <prcpno/>
  241. <prcphistno/>
  242. <execprcpno/>
  243. <enddd/>
  244. <prcpgenrflag/>
  245. <orddd/>
  246. <reqfrmno/>
  247. <dschdd/>
  248. <execprcpuniqno/>
  249. <cretno/>
  250. <bfacptdd/>
  251. <bfacptno/>
  252. <bfacptseqno/>
  253. <reuseflagcd/>
  254. <bfspcacptdd/>
  255. <bfspcacptno/>
  256. <acptdept/>
  257. <status/>
  258. <bfcsteno/>
  259. <ptnocd/>
  260. <stdyptnocd/>
  261. <trustptnocd/>
  262. <workflagcd/>
  263. <slidflagcd/>
  264. <slidisscnt/>
  265. <blocflagcd/>
  266. <initblocno/>
  267. <autokeepflagcd/>
  268. <stdy_workflagcd/>
  269. <stdy_slidflagcd/>
  270. <stdy_slidisscnt/>
  271. <stdy_blocflagcd/>
  272. <stdy_initblocno/>
  273. <stdy_autokeepflagcd/>
  274. <grupsnglflag/>
  275. <spcbarcdno/>
  276. <grosdrid/>
  277. <grosplgyid/>
  278. <acpttm/>
  279. <m/>
  280. <prcphistno/>
  281. <grostestdd/>
  282. <grostesttm/>
  283. <autosave/>
  284. <lendflagcd/>
  285. <trandd/>
  286. <tranno/>
  287. <transeqno/>
  288. <spctrandd/>
  289. <spctranno/>
  290. <spcbarcdno/>
  291. <spctranbarcdno/>
  292. <tootfact/>
  293. <ordtype/>
  294. <acptstatcd/>
  295. <prcpstatcd/>
  296. </rtnslideinfolist>
  297. </rtnslideinfo>
  298. <cert>
  299. <certdata/>
  300. </cert>
  301. <saveprcp>
  302. <saveprcpinfo>
  303. <instcd/>
  304. <pid/>
  305. <prcp_ptno/>
  306. <dispptno/>
  307. <prcpnm/>
  308. <prcpcd/>
  309. <test_ptno/>
  310. <testnm/>
  311. <testcd/>
  312. <slidcnt/>
  313. </saveprcpinfo>
  314. </saveprcp>
  315. <plgyprcpinfo>
  316. <plgyprcplist>
  317. <choi/>
  318. <patnm/>
  319. <ptno/>
  320. <relaptno/>
  321. <prcpnm/>
  322. <spcnm/>
  323. <orddeptnm/>
  324. <prcpdd/>
  325. <acptdd/>
  326. <readdd/>
  327. <readdrnm/>
  328. <dispptno/>
  329. <disprelaptno/>
  330. <blockcnts/>
  331. <slidecnts/>
  332. <grosdrnm/>
  333. <deptengabbr/>
  334. <rcptflag/>
  335. </plgyprcplist>
  336. </plgyprcpinfo>
  337. <slideinfo>
  338. <slidelist>
  339. <choi/>
  340. <ptno/>
  341. <spcacptseqno/>
  342. <csteno/>
  343. <slidno/>
  344. <blockcnts/>
  345. <slidecnts/>
  346. </slidelist>
  347. </slideinfo>
  348. </main>
  349. <send>
  350. <instcd/>
  351. <flagcd/>
  352. <resncd/>
  353. <resncnts/>
  354. <tgrupcd/>
  355. </send>
  356. <init>
  357. <pid/>
  358. <ptnocode/>
  359. <fromyear/>
  360. <fromptno/>
  361. <toyear/>
  362. <toptno/>
  363. <patflag>0</patflag>
  364. <ptnocd>
  365. <ptnocdlist>
  366. <instcd/>
  367. <ptnocd/>
  368. <ptnonm/>
  369. </ptnocdlist>
  370. </ptnocd>
  371. <sysdt>
  372. <sysdtinfo>
  373. <sysdd/>
  374. <systm/>
  375. </sysdtinfo>
  376. </sysdt>
  377. <autosave/>
  378. <lendflagcd/>
  379. <resncd>
  380. <resncdlist>
  381. <instcd/>
  382. <flagcd/>
  383. <resncd/>
  384. <resncnts/>
  385. </resncdlist>
  386. </resncd>
  387. <tgrupcd>-</tgrupcd>
  388. <popupmenu>
  389. <item>
  390. <name>선택목록 삭제</name>
  391. <func>fDelPrcpList</func>
  392. </item>
  393. </popupmenu>
  394. <acptddflag/>
  395. <hospenv>
  396. <hospenvinfo>
  397. <instcd/>
  398. <lendrtnterm/>
  399. <recvqualmthdcd/>
  400. <plgydeptcd/>
  401. <plgyteamcd/>
  402. <doctjobgradcd/>
  403. <teamjobgradcd/>
  404. </hospenvinfo>
  405. </hospenv>
  406. </init>
  407. <hidden>
  408. <acptfromdd/>
  409. <acpttodd/>
  410. <resncd/>
  411. <prcpcnt>1</prcpcnt>
  412. <slideinfo>
  413. <blockcnts/>
  414. <slidecnts/>
  415. <check/>
  416. <spcacptseqno/>
  417. <csteno/>
  418. <slidno/>
  419. </slideinfo>
  420. </hidden>
  421. </root>
  422. </instance>
  423. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  424. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  425. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  426. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  427. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  428. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  429. <script type="javascript" src="../../../com/signweb/js/ZES001.js"/>
  430. <script type="javascript" ev:event="xforms-ready">
  431. <![CDATA[
  432. fExeInitialize();
  433. ]]>
  434. </script>
  435. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  436. <submission id="TRLPD00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptinfo/acptinfolist"/>
  437. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  438. <submission id="TRLPD00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcpinfo/prcpinfolist"/>
  439. <submission id="TXLPD00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/errmsg/errlist"/>
  440. <submission id="TRLPD00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rtnslideinfo/rtnslideinfolist"/>
  441. <submission id="TXLPD00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/errmsg/errlist"/>
  442. <submission id="TRLPD00704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/saveprcp/saveprcpinfo"/>
  443. <submission id="TRLPD00705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/plgyprcpinfo/plgyprcplist"/>
  444. <submission id="TXLPD00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/errmsg/errlist"/>
  445. <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
  446. <submission id="TRLPD00706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/slideinfo/slidelist"/>
  447. </model>
  448. <script type="javascript">
  449. <![CDATA[
  450. var sInptPsw = true; //화면 오픈 후 처방변경시 최초 한번만 암호를 입력받음.
  451. /* @group : 대출 목록 조회/저장 화면
  452. * @ver : 2008.06.19 (CMCDEV-0001)
  453. * @by : 한음미(평화IS)
  454. * @-----------------------------------
  455. * @type : function
  456. * @access : public
  457. * @desc : 화면초기화 함수
  458. */
  459. function fExeInitialize(){
  460. var sCurDate="";
  461. model.removeNodeset("/root/main/prcpinfo/prcpinfolist");
  462. model.removeNodeset("/root/main/acptinfo/acptinfolist");
  463. model.removeNodeset("/root/main/choiinfo/choiinfolist");
  464. model.removeNodeset("/root/main/rtnslideinfo/rtnslideinfolist");
  465. model.removeNodeset("/root/main/saveprcp/saveprcpinfo");
  466. model.removeNodeset("/root/send");
  467. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  468. //---------------------------------------------------------------
  469. fExeFlag(); // 대출구분
  470. btn_rtnslide.visible = false;
  471. btn_lendslide.visible = false;
  472. submit("TRLPZ00102",false); // 시스템 일자 조회
  473. submit("TRLPD00702",false); // 처방목록 조회
  474. submit("TRLPZ00109"); //병리번호 목록 조회
  475. //------------------------------------------------------------
  476. sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  477. //------------
  478. // 초기값 설정
  479. model.makeValue("/root/hidden/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(fromdd)
  480. model.makeValue("/root/hidden/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(todd)
  481. model.makeValue("/root/init/ptnocode", "");
  482. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2)); // 병리번호 년도(fromyear)
  483. model.makeValue("/root/init/toyear", sCurDate.substr(2,2)); // 병리번호 년도(toyear)
  484. model.makeValue("/root/init/fromptno", ""); // 병리번호(시작)
  485. model.makeValue("/root/init/toptno", ""); // 병리번호(끝)
  486. //병원환결설정 조회
  487. submit("TRLPZ00101", false);
  488. //처방목록 체크박스 비활성화
  489. grd_prcplist.colDisabled(grd_prcplist.colRef("choi")) = true;
  490. grd_prcplist.colDisabled(grd_prcplist.colRef("prcpcnt")) = true;
  491. model.refresh();
  492. }
  493. /* @group : 대출 목록 조회/저장 화면
  494. * @ver : 2008.06.19 (CMCDEV-0001)
  495. * @by : 한음미(평화IS)
  496. * @-----------------------------------
  497. * @type : function
  498. * @access : public
  499. * @desc : 대출구분이 대출(0), 반납(1) 구별 함수
  500. */
  501. function fExeFlag(){
  502. if (model.getValue("/root/init/patflag") == "0"){
  503. button1.disabled = true;
  504. btn_upd.disabled = false;
  505. grd_prcplist.colDisabled (0) = false;
  506. grd_prcplist.refresh();
  507. model.toggle("case_lendslide"); // 대출 일때..
  508. model.setValue("/root/init/patflag", "0");
  509. btn_rtnslide.visible = false;
  510. btn_lendslide.visible = false;
  511. }else if (model.getValue("/root/init/patflag") == "1"){
  512. button1.disabled = false;
  513. btn_upd.disabled = true;
  514. grd_prcplist.colDisabled (0) = true;
  515. grd_prcplist.refresh();
  516. model.toggle("case_rtnslide"); // 반납 일때..
  517. btn_rtnslide.visible = false;
  518. btn_lendslide.visible = false;
  519. }
  520. }
  521. /* @group : 대출 목록 조회/저장 화면
  522. * @ver : 2008.06.19 (CMCDEV-0001)
  523. * @by : 한음미(평화IS)
  524. * @-----------------------------------
  525. * @type : function
  526. * @access : public
  527. * @desc : 전처방반환 함수
  528. */
  529. function fExeLendRtn(pStatCd){
  530. var iCnt = 0;
  531. iCnt = grd_rtnslideinfolist.findRow("true", 1, 0, false, false);
  532. if (Number(iCnt) <= 0) {
  533. messageBox("반납 할 슬라이드를 선택하여 주십시오!", "I");
  534. return false;
  535. }
  536. var sRefVal = model.getValue("/root/init/pid");
  537. if (sRefVal.length < 3) {
  538. messageBox("등록번호는 3자리 이상", "C001"); // 등록번호가 3자리 이상 조회
  539. return false;
  540. }
  541. var sSrcNode = "/root/main/rtnslideinfo/rtnslideinfolist";
  542. for (var jNo=1; jNo <= getNodesetCount(sSrcNode); jNo++) {
  543. if (model.getValue(sSrcNode+"["+jNo+"]/choi") == "true") {
  544. model.setValue(sSrcNode+"["+jNo+"]/status","C");
  545. }
  546. }
  547. model.removeNodeset("/root/send");
  548. model.makeValue("/root/send/rtnslideinfolist", grd_rtnslideinfolist.getUpdateData(pStatCd));
  549. model.makeValue("/root/send/resncd" , "9999");
  550. model.makeValue("/root/send/resncnts" , "전처방이 반환되었습니다.");
  551. model.makeValue("/root/send/tgrupcd", "-");
  552. //------------------------------------------------------------
  553. //-----------
  554. setAlertOn();
  555. if (submit("TXLPD00702")) {
  556. //------------------------------------------------------
  557. if (getNodesetCount("/root/main/errmsg/errlist") <= 0) {
  558. model.makeValue("/root/init/prcprowno", "0");
  559. } else {
  560. var sErrMsg = "";
  561. sErrMsg += "처방명 : [" + model.getValue("/root/main/errmsg/errlist/prcpcd") + "] ";
  562. sErrMsg += model.getValue("/root/main/errmsg/errlist/prcpnm") + "\n\n";
  563. sErrMsg += "오류내용 : " + model.getValue("/root/main/errmsg/errlist/prcperr");
  564. messageBox(sErrMsg, "E009");
  565. }
  566. model.removeNodeset("/root/main/rtnslideinfo/rtnslideinfolist");
  567. model.refresh();
  568. }
  569. fGetPatInfoList();
  570. }
  571. /* @group : 대출 목록 조회/저장 화면
  572. * @ver : 2008.06.19 (CMCDEV-0001)
  573. * @by : 한음미(평화IS)
  574. * @-----------------------------------
  575. * @type : function
  576. * @access : public
  577. * @desc : 대출할 목록 선택 함수
  578. */
  579. function fGetSelectPatInfoList(){
  580. var sNode = "/root/main/acptinfo/acptinfolist";
  581. var Node = "/root/main/prcpinfo/prcpinfolist";
  582. var sDestNode = "/root/main/choiinfo/choiinfolist";
  583. var No = grd_prcplist.findRow(model.getValue(sNode+"["+ grd_acptlist.row+"]/choi"),1,0,false,false);
  584. var i =0;
  585. if (No <0 ){
  586. messageBox("처방코드를 선택하지 않았습니다!", "I007");
  587. model.setValue(sNode+"["+grd_acptlist.row+"]/choi", "false");
  588. }else{
  589. for (var a=1; a <= getNodesetCount(Node); a++) {
  590. if (model.getValue(Node+"["+a+"]/choi") == "true") {
  591. i++;
  592. }
  593. }
  594. if (i>=2){
  595. messageBox("한 처방에 한 처방코드를 선택하십시오!","I");
  596. model.setValue(sNode+"["+grd_acptlist.row+"]/choi", "false");
  597. }
  598. }
  599. if (model.getValue(sNode + "[" + grd_acptlist.row +"]/choi") == "true") {
  600. var iNo = grd_choilist.findRow(model.getValue(sNode+"["+ grd_acptlist.row+"]/ptno"),1,1,false,false);
  601. if (iNo <0){
  602. var jNo = grd_choilist.findRow(model.getValue(sNode+"["+ grd_acptlist.row+"]/spcnm"),9,1,false,false);
  603. if(jNo<0){
  604. var kNo = grd_choilist.findRow(model.getValue(sNode+"["+ grd_acptlist.row+"]/testnm"),10,1,false,false);
  605. if(kNo<0){
  606. grd_choilist.addRow();
  607. model.setValue(sDestNode+"["+grd_choilist.row+"]/choi", "true"); // 선택
  608. model.setValue(sDestNode+"["+grd_choilist.row+"]/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  609. model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 처방일자
  610. model.setValue(sDestNode+"["+grd_choilist.row+"]/acptdd", model.getValue(sNode+"["+grd_acptlist.row +"]/acptdd")); // 접수일자
  611. model.setValue(sDestNode+"["+grd_choilist.row+"]/rsltdd", model.getValue(sNode+"["+grd_acptlist.row +"]/rsltdd")); // 결과일자
  612. model.setValue(sDestNode+"["+grd_choilist.row+"]/testnm", model.getValue(sNode+"["+grd_acptlist.row +"]/testnm")); // 검사명
  613. model.setValue(sDestNode+"["+grd_choilist.row+"]/ptno", model.getValue(sNode+"["+grd_acptlist.row +"]/ptno")); // 병리번호
  614. model.setValue(sDestNode+"["+grd_choilist.row+"]/patnm", model.getValue(sNode+"["+grd_acptlist.row +"]/patnm")); // 환자명
  615. model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpgenrflag", model.getValue(sNode+"["+grd_acptlist.row +"]/prcpgenrflag")); // 처방발생구분
  616. model.setValue(sDestNode+"["+grd_choilist.row+"]/orddd", model.getValue(sNode+"["+grd_acptlist.row +"]/indd")); // 진료일자
  617. model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpcd", model.getValue(Node+"["+No +"]/prcpcd")); // 처방코드
  618. model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpnm", model.getValue(Node+"["+No +"]/prcpnm")); // 처방명
  619. model.setValue(sDestNode+"["+grd_choilist.row+"]/orddeptcd", model.getValue(sNode+"["+grd_acptlist.row +"]/orddeptcd")); // 진료과코드
  620. model.setValue(sDestNode+"["+grd_choilist.row+"]/orddeptnm", model.getValue(sNode+"["+grd_acptlist.row +"]/orddeptnm")); // 진료과명
  621. model.setValue(sDestNode+"["+grd_choilist.row+"]/orddrid", model.getValue(sNode+"["+grd_acptlist.row +"]/orddrid")); // 진료의사ID
  622. model.setValue(sDestNode+"["+grd_choilist.row+"]/orddrnm", model.getValue(sNode+"["+grd_acptlist.row +"]/orddrnm")); // 진료의사명
  623. model.setValue(sDestNode+"["+grd_choilist.row+"]/reqfrmno", model.getValue(sNode+"["+grd_acptlist.row +"]/reqfrmno")); // 의뢰지번호
  624. model.setValue(sDestNode+"["+grd_choilist.row+"]/dschdd", "-"); // 퇴원일자
  625. model.setValue(sDestNode+"["+grd_choilist.row+"]/execprcpuniqno", model.getValue(sNode+"["+grd_acptlist.row +"]/execprcpuniqno")); // 실시처방유일번호
  626. model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpno", model.getValue(sNode+"["+grd_acptlist.row +"]/prcpno")); // 처방번호
  627. model.setValue(sDestNode+"["+grd_choilist.row+"]/acptno", model.getValue(sNode+"["+grd_acptlist.row +"]/acptno")); // 생성번호
  628. model.setValue(sDestNode+"["+grd_choilist.row+"]/spcacptdd", model.getValue(sNode+"["+grd_acptlist.row +"]/spcacptdd")); // 검체접수일자
  629. model.setValue(sDestNode+"["+grd_choilist.row+"]/spcacptno", model.getValue(sNode+"["+grd_acptlist.row +"]/spcacptno")); // 검체접수번호
  630. model.setValue(sDestNode+"["+grd_choilist.row+"]/spcacptseqno", "-"); // 검체접수일련번호
  631. model.setValue(sDestNode+"["+grd_choilist.row+"]/bfacptdd", "-"); // 이전접수일자
  632. model.setValue(sDestNode+"["+grd_choilist.row+"]/bfacptno", "-"); // 이전접수번호
  633. model.setValue(sDestNode+"["+grd_choilist.row+"]/bfacptseqno", "-"); // 이전접수일련번호
  634. model.setValue(sDestNode+"["+grd_choilist.row+"]/reuseflagcd", "1"); // 재사용구분코드
  635. model.setValue(sDestNode+"["+grd_choilist.row+"]/bfspcacptdd", "-"); // 이전검체접수일자
  636. model.setValue(sDestNode+"["+grd_choilist.row+"]/bfspcacptno", "-"); // 이전검체접수번호
  637. model.setValue(sDestNode+"["+grd_choilist.row+"]/acptdept", "-"); // 접수과코드
  638. model.setValue(sDestNode+"["+grd_choilist.row+"]/status", "I"); // 상태
  639. model.setValue(sDestNode+"["+grd_choilist.row+"]/ptnocd", model.getValue(sNode+"["+grd_acptlist.row +"]/ptnocd")); // 병리번호코드
  640. model.setValue(sDestNode+"["+grd_choilist.row+"]/grupsnglflag", "-"); // grouping/single
  641. model.setValue(sDestNode+"["+grd_choilist.row+"]/wardcd", model.getValue(sNode+"["+grd_acptlist.row +"]/wardcd")); //병동
  642. model.setValue(sDestNode+"["+grd_choilist.row+"]/roomcd", model.getValue(sNode+"["+grd_acptlist.row +"]/roomcd")); //병실
  643. model.setValue(sDestNode+"["+grd_choilist.row+"]/grosdrid", model.getValue(sNode+"["+grd_acptlist.row +"]/grosdrid")); // 병리의사ID
  644. model.setValue(sDestNode+"["+grd_choilist.row+"]/grosplgyid", model.getValue(sNode+"["+grd_acptlist.row +"]/grosplgyid")); //병리사 ID
  645. model.setValue(sDestNode+"["+grd_choilist.row+"]/acpttm", model.getValue(sNode+"["+grd_acptlist.row +"]/acpttm")); //접수시간
  646. model.setValue(sDestNode+"["+grd_choilist.row+"]/grostestdd", model.getValue(sNode+"["+grd_acptlist.row +"]/grostestdd")); //검사판독일자
  647. model.setValue(sDestNode+"["+grd_choilist.row+"]/grostesttm", model.getValue(sNode+"["+grd_acptlist.row +"]/grostesttm")); //검사판독시간
  648. model.setValue(sDestNode+"["+grd_choilist.row+"]/autosave", "1"); // 자동저장
  649. model.setValue(sDestNode+"["+grd_choilist.row+"]/lendflagcd", "0"); // 대출구분여부
  650. model.setValue(sDestNode+"["+grd_choilist.row+"]/trandd", model.getValue(sNode+"["+grd_acptlist.row +"]/trandd")); // 이송일자
  651. model.setValue(sDestNode+"["+grd_choilist.row+"]/tranno", model.getValue(sNode+"["+grd_acptlist.row +"]/tranno")); // 이송번호
  652. model.setValue(sDestNode+"["+grd_choilist.row+"]/transeqno", model.getValue(sNode+"["+grd_acptlist.row +"]/transeqno")); // 이송일련번호
  653. model.setValue(sDestNode+"["+grd_choilist.row+"]/spcbarcdno", model.getValue(sNode+"["+grd_acptlist.row +"]/spcbarcdno")); // 검체바코드번호
  654. model.setValue(sDestNode+"["+grd_choilist.row+"]/testcd", model.getValue(sNode+"["+grd_acptlist.row +"]/testcd")); // 검사코드
  655. model.setValue(sDestNode+"["+grd_choilist.row+"]/relaptno", model.getValue(sNode+"["+grd_acptlist.row +"]/relaptno")); // 관련병리번호
  656. model.setValue(sDestNode+"["+grd_choilist.row+"]/pid", model.getValue(sNode+"["+grd_acptlist.row +"]/pid")); // 등록번호
  657. model.setValue(sDestNode+"["+grd_choilist.row+"]/blocno", model.getValue(sNode+"["+grd_acptlist.row +"]/blocno")); // 블럭번호
  658. model.setValue(sDestNode+"["+grd_choilist.row+"]/spcnm", model.getValue(sNode+"["+grd_acptlist.row +"]/spcnm")); // 검체명
  659. model.setValue(sDestNode+"["+grd_choilist.row+"]/spccd", model.getValue(sNode+"["+grd_acptlist.row +"]/spccd")); // 검체코드
  660. model.setValue(sDestNode+"["+grd_choilist.row+"]/spchistno", model.getValue(sNode+"["+grd_acptlist.row +"]/spchistno")); // 검체이력코드
  661. model.setValue(sDestNode+"["+grd_choilist.row+"]/stdyptnocd", model.getValue(sNode+"["+grd_acptlist.row +"]/stdyptnocd")); // 연구병리코드
  662. model.setValue(sDestNode+"["+grd_choilist.row+"]/trustptnocd", model.getValue(sNode+"["+grd_acptlist.row +"]/trustptnocd")); // 수탁병리코드
  663. model.setValue(sDestNode+"["+grd_choilist.row+"]/workflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/workflagcd")); // 작업구분코드
  664. model.setValue(sDestNode+"["+grd_choilist.row+"]/slidflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/slidflagcd")); // 슬라이드구분코드
  665. model.setValue(sDestNode+"["+grd_choilist.row+"]/blocflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/blocflagcd")); // 블록구분코드
  666. model.setValue(sDestNode+"["+grd_choilist.row+"]/initblocno", model.getValue(sNode+"["+grd_acptlist.row +"]/initblocno")); // 초기블록번호
  667. model.setValue(sDestNode+"["+grd_choilist.row+"]/autokeepflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/autokeepflagcd")); // 자동보관여부
  668. model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_workflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/stdy_workflagcd")); // 연구작업구분코드
  669. model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_slidflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/stdy_slidflagcd")); // 연구슬라이드구분코드
  670. model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_slidisscnt", model.getValue(sNode+"["+grd_acptlist.row +"]/stdy_slidisscnt")); // 연구슬라이드갯수
  671. model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_blocflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/stdy_blocflagcd")); // 연구블록구분코드
  672. model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_initblocno", model.getValue(sNode+"["+grd_acptlist.row +"]/stdy_initblocno")); // 연구초기블록번호
  673. model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_autokeepflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/stdy_autokeepflagcd")); // 연구자동보관여부
  674. model.setValue(sDestNode+"["+grd_choilist.row+"]/cretno", model.getValue(sNode+"["+grd_acptlist.row +"]/cretno")); // 생성번호
  675. model.setValue(sDestNode+"["+grd_choilist.row+"]/tootfact", "-"); // 치식
  676. model.setValue(sDestNode+"["+grd_choilist.row+"]/spctranbarcdno", model.getValue(sNode+"["+grd_acptlist.row +"]/spcbarcdno")); // 검체이송바코드
  677. model.setValue(sDestNode+"["+grd_choilist.row+"]/prcphistno" , model.getValue(sNode+"["+grd_acptlist.row +"]/prcphistno")); // 처방이력번호
  678. model.setValue(sDestNode+"["+grd_choilist.row+"]/dispptno" , model.getValue(sNode+"["+grd_acptlist.row +"]/dispptno")); // disp 병리번호
  679. model.setValue(sDestNode+"["+grd_choilist.row+"]/rrgstno1" , model.getValue(sNode+"["+grd_acptlist.row +"]/rrgstno1")); // 주민번호1
  680. model.setValue(sDestNode+"["+grd_choilist.row+"]/rrgstno2" , model.getValue(sNode+"["+grd_acptlist.row +"]/rrgstno2")); // 주민번호2
  681. model.setValue(sDestNode+"["+grd_choilist.row+"]/brthdd" , model.getValue(sNode+"["+grd_acptlist.row +"]/brthdd")); // 생년월일
  682. model.setValue(sDestNode+"["+grd_choilist.row+"]/sex" , model.getValue(sNode+"["+grd_acptlist.row +"]/sex")); // 성별
  683. }
  684. grd_choilist.topRow = grd_choilist.rows -1;
  685. }
  686. }
  687. }
  688. //model.setValue(sNode+"["+grd_acptlist.row+"]/choi","true");
  689. }
  690. /* @group : 대출 목록 조회/저장 화면
  691. * @ver : 2008.06.19 (CMCDEV-0001)
  692. * @by : 한음미(평화IS)
  693. * @-----------------------------------
  694. * @type : function
  695. * @access : public
  696. * @desc : 대출할 목록 선택 함수
  697. */
  698. function fGetSelectPatInfoList2(pRowNo){
  699. //var sNode = "/root/main/acptinfo/acptinfolist";
  700. var sNode = "/root/main/plgyprcpinfo/plgyprcplist"
  701. var Node = "/root/main/prcpinfo/prcpinfolist";
  702. var sDestNode = "/root/main/choiinfo/choiinfolist";
  703. //var No = grd_prcplist.findRow(model.getValue(sNode+"["+ grd_plgyprcplist.row+"]/choi"),1,0,false,false);
  704. var No = pRowNo;
  705. if (No <0 ){
  706. messageBox("처방코드를 선택하지 않았습니다!", "I007");
  707. model.setValue(sNode+"["+grd_plgyprcplist.row+"]/choi", "false");
  708. }
  709. var i =0;
  710. /*
  711. if (No <0 ){
  712. messageBox("처방코드를 선택하지 않았습니다!", "I007");
  713. model.setValue(sNode+"["+grd_plgyprcplist.row+"]/choi", "false");
  714. }else{
  715. for (var a=1; a <= getNodesetCount(Node); a++) {
  716. if (model.getValue(Node+"["+a+"]/choi") == "true") {
  717. i++;
  718. }
  719. }
  720. if (i>=2){
  721. messageBox("한 처방에 한 처방코드를 선택하십시오!","I");
  722. model.setValue(sNode+"["+grd_plgyprcplist.row+"]/choi", "false");
  723. }
  724. }
  725. */
  726. if (model.getValue(sNode + "[" + grd_plgyprcplist.row +"]/choi") == "true") {
  727. var iNo = grd_choilist.findRow(model.getValue(sNode+"["+ grd_plgyprcplist.row+"]/ptno"),1,1,false,false);
  728. if (iNo <0){
  729. var jNo = grd_choilist.findRow(model.getValue(sNode+"["+ grd_plgyprcplist.row+"]/spcnm"),9,1,false,false);
  730. if(jNo<0){
  731. var kNo = grd_choilist.findRow(model.getValue(sNode+"["+ grd_plgyprcplist.row+"]/testnm"),10,1,false,false);
  732. if(kNo<0){
  733. grd_choilist.addRow(false);
  734. model.setValue(sDestNode+"["+grd_choilist.row+"]/choi", "true"); // 선택
  735. model.setValue(sDestNode+"["+grd_choilist.row+"]/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  736. model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpdd", getCurrentDate()); // 처방일자
  737. model.setValue(sDestNode+"["+grd_choilist.row+"]/acptdd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/acptdd")); // 접수일자
  738. model.setValue(sDestNode+"["+grd_choilist.row+"]/rsltdd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/rsltdd")); // 결과일자
  739. model.setValue(sDestNode+"["+grd_choilist.row+"]/testnm", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/testnm")); // 검사명
  740. model.setValue(sDestNode+"["+grd_choilist.row+"]/ptno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/ptno")); // 병리번호
  741. model.setValue(sDestNode+"["+grd_choilist.row+"]/patnm", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/patnm")); // 환자명
  742. model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpgenrflag", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/prcpgenrflag")); // 처방발생구분
  743. model.setValue(sDestNode+"["+grd_choilist.row+"]/orddd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/orddd")); // 진료일자
  744. model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpcd", model.getValue(Node+"["+ No +"]/prcpcd")); // 처방코드
  745. model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpnm", model.getValue(Node+"["+ No +"]/prcpnm")); // 처방명
  746. model.setValue(sDestNode+"["+grd_choilist.row+"]/orddeptcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/orddeptcd")); // 진료과코드
  747. model.setValue(sDestNode+"["+grd_choilist.row+"]/orddeptnm", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/orddeptnm")); // 진료과명
  748. model.setValue(sDestNode+"["+grd_choilist.row+"]/orddrid", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/orddrid")); // 진료의사ID
  749. model.setValue(sDestNode+"["+grd_choilist.row+"]/orddrnm", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/orddrnm")); // 진료의사명
  750. model.setValue(sDestNode+"["+grd_choilist.row+"]/reqfrmno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/reqfrmno")); // 의뢰지번호
  751. model.setValue(sDestNode+"["+grd_choilist.row+"]/dschdd", "-"); // 퇴원일자
  752. model.setValue(sDestNode+"["+grd_choilist.row+"]/execprcpuniqno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/execprcpuniqno")); // 실시처방유일번호
  753. model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/prcpno")); // 처방번호
  754. model.setValue(sDestNode+"["+grd_choilist.row+"]/acptno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/acptno")); // 생성번호
  755. model.setValue(sDestNode+"["+grd_choilist.row+"]/spcacptdd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/spcacptdd")); // 검체접수일자
  756. model.setValue(sDestNode+"["+grd_choilist.row+"]/spcacptno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/spcacptno")); // 검체접수번호
  757. // 검체접수일련번호
  758. model.setValue(sDestNode+"["+grd_choilist.row+"]/bfacptdd", "-"); // 이전접수일자
  759. model.setValue(sDestNode+"["+grd_choilist.row+"]/bfacptno", "-"); // 이전접수번호
  760. model.setValue(sDestNode+"["+grd_choilist.row+"]/bfacptseqno", "-"); // 이전접수일련번호
  761. model.setValue(sDestNode+"["+grd_choilist.row+"]/reuseflagcd", "1"); // 재사용구분코드
  762. model.setValue(sDestNode+"["+grd_choilist.row+"]/bfspcacptdd", "-"); // 이전검체접수일자
  763. model.setValue(sDestNode+"["+grd_choilist.row+"]/bfspcacptno", "-"); // 이전검체접수번호
  764. model.setValue(sDestNode+"["+grd_choilist.row+"]/acptdept", "-"); // 접수과코드
  765. model.setValue(sDestNode+"["+grd_choilist.row+"]/status", "I"); // 상태
  766. model.setValue(sDestNode+"["+grd_choilist.row+"]/ptnocd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/ptnocd")); // 병리번호코드
  767. model.setValue(sDestNode+"["+grd_choilist.row+"]/grupsnglflag", "-"); // grouping/single
  768. model.setValue(sDestNode+"["+grd_choilist.row+"]/wardcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/wardcd")); //병동
  769. model.setValue(sDestNode+"["+grd_choilist.row+"]/roomcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/roomcd")); //병실
  770. model.setValue(sDestNode+"["+grd_choilist.row+"]/grosdrid", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/grosdrid")); // 병리의사ID
  771. model.setValue(sDestNode+"["+grd_choilist.row+"]/grosplgyid", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/grosplgyid")); //병리사 ID
  772. model.setValue(sDestNode+"["+grd_choilist.row+"]/acpttm", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/acpttm")); //접수시간
  773. model.setValue(sDestNode+"["+grd_choilist.row+"]/grostestdd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/grostestdd")); //검사판독일자
  774. model.setValue(sDestNode+"["+grd_choilist.row+"]/grostesttm", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/grostesttm")); //검사판독시간
  775. model.setValue(sDestNode+"["+grd_choilist.row+"]/autosave", "1"); // 자동저장
  776. model.setValue(sDestNode+"["+grd_choilist.row+"]/lendflagcd", "0"); // 대출구분여부
  777. model.setValue(sDestNode+"["+grd_choilist.row+"]/trandd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/trandd")); // 이송일자
  778. model.setValue(sDestNode+"["+grd_choilist.row+"]/tranno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/tranno")); // 이송번호
  779. model.setValue(sDestNode+"["+grd_choilist.row+"]/transeqno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/transeqno")); // 이송일련번호
  780. model.setValue(sDestNode+"["+grd_choilist.row+"]/spcbarcdno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/spcbarcdno")); // 검체바코드번호
  781. model.setValue(sDestNode+"["+grd_choilist.row+"]/testcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/testcd")); // 검사코드
  782. model.setValue(sDestNode+"["+grd_choilist.row+"]/relaptno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/relaptno")); // 관련병리번호
  783. model.setValue(sDestNode+"["+grd_choilist.row+"]/pid", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/pid")); // 등록번호
  784. model.setValue(sDestNode+"["+grd_choilist.row+"]/blocno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/blocno")); // 블럭번호
  785. model.setValue(sDestNode+"["+grd_choilist.row+"]/spcnm", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/spcnm")); // 검체명
  786. model.setValue(sDestNode+"["+grd_choilist.row+"]/spccd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/spccd")); // 검체코드
  787. model.setValue(sDestNode+"["+grd_choilist.row+"]/spchistno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/spchistno")); // 검체이력코드
  788. model.setValue(sDestNode+"["+grd_choilist.row+"]/stdyptnocd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/stdyptnocd")); // 연구병리코드
  789. model.setValue(sDestNode+"["+grd_choilist.row+"]/trustptnocd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/trustptnocd")); // 수탁병리코드
  790. model.setValue(sDestNode+"["+grd_choilist.row+"]/workflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/workflagcd")); // 작업구분코드
  791. model.setValue(sDestNode+"["+grd_choilist.row+"]/slidflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/slidflagcd")); // 슬라이드구분코드
  792. model.setValue(sDestNode+"["+grd_choilist.row+"]/blocflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/blocflagcd")); // 블록구분코드
  793. model.setValue(sDestNode+"["+grd_choilist.row+"]/initblocno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/initblocno")); // 초기블록번호
  794. model.setValue(sDestNode+"["+grd_choilist.row+"]/autokeepflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/autokeepflagcd")); // 자동보관여부
  795. model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_workflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/stdy_workflagcd")); // 연구작업구분코드
  796. model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_slidflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/stdy_slidflagcd")); // 연구슬라이드구분코드
  797. model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_slidisscnt", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/stdy_slidisscnt")); // 연구슬라이드갯수
  798. model.setValue(sDestNode+"["+grd_choilist.row+"]/slidisscnt", "1"); //슬라이드 갯수
  799. model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_blocflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/stdy_blocflagcd")); // 연구블록구분코드
  800. model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_initblocno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/stdy_initblocno")); // 연구초기블록번호
  801. model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_autokeepflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/stdy_autokeepflagcd")); // 연구자동보관여부
  802. model.setValue(sDestNode+"["+grd_choilist.row+"]/cretno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/cretno")); // 생성번호
  803. model.setValue(sDestNode+"["+grd_choilist.row+"]/tootfact", "-"); // 치식
  804. model.setValue(sDestNode+"["+grd_choilist.row+"]/spctranbarcdno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/spcbarcdno")); // 검체이송바코드
  805. model.setValue(sDestNode+"["+grd_choilist.row+"]/prcphistno" , model.getValue(sNode+"["+grd_plgyprcplist.row +"]/prcphistno")); // 처방이력번호
  806. model.setValue(sDestNode+"["+grd_choilist.row+"]/dispptno" , model.getValue(sNode+"["+grd_plgyprcplist.row +"]/dispptno")); // disp 병리번호
  807. model.setValue(sDestNode+"["+grd_choilist.row+"]/rrgstno1" , model.getValue(sNode+"["+grd_plgyprcplist.row +"]/rrgstno1")); // 주민번호1
  808. model.setValue(sDestNode+"["+grd_choilist.row+"]/rrgstno2" , model.getValue(sNode+"["+grd_plgyprcplist.row +"]/rrgstno2")); // 주민번호2
  809. model.setValue(sDestNode+"["+grd_choilist.row+"]/brthdd" , model.getValue(sNode+"["+grd_plgyprcplist.row +"]/brthdd")); // 생년월일
  810. model.setValue(sDestNode+"["+grd_choilist.row+"]/sex" , model.getValue(sNode+"["+grd_plgyprcplist.row +"]/sex")); // 성별
  811. model.setValue(sDestNode+"["+grd_choilist.row+"]/orddd" , model.getValue(sNode+"["+grd_plgyprcplist.row +"]/orddd"));
  812. model.setValue(sDestNode+"["+grd_choilist.row+"]/blockcnts" , model.getValue("/root/hidden/slideinfo/blockcnts"));
  813. model.setValue(sDestNode+"["+grd_choilist.row+"]/slidecnts" , model.getValue("/root/hidden/slideinfo/slidecnts"));
  814. model.setValue(sDestNode+"["+grd_choilist.row+"]/spcacptseqno", model.getValue("/root/hidden/slideinfo/spcacptseqno"));
  815. model.setValue(sDestNode+"["+grd_choilist.row+"]/csteno", model.getValue("/root/hidden/slideinfo/csteno"));
  816. model.setValue(sDestNode+"["+grd_choilist.row+"]/slidno", model.getValue("/root/hidden/slideinfo/slidno"));
  817. }
  818. grd_choilist.topRow = grd_choilist.rows -1;
  819. }
  820. }
  821. }
  822. grd_choilist.refresh();
  823. //model.setValue(sNode+"["+grd_plgyprcplist.row+"]/choi","true");
  824. }
  825. /* @group : 대출 목록 조회/저장 화면
  826. * @ver : 2008.06.19 (CMCDEV-0001)
  827. * @by : 한음미(평화IS)
  828. * @-----------------------------------
  829. * @type : function
  830. * @access : public
  831. * @desc : 환자정보 조회 함수
  832. */
  833. function fGetPatInfoList(){
  834. var sTemp = '';
  835. var sFromDD = model.getValue("/root/hidden/acptfromdd");
  836. var sToDD = model.getValue("/root/hidden/acpttodd");
  837. sRefVal = model.getValue("/root/init/pid");
  838. //등록번호 입력은 반납 조회일때만 필수로 한다.
  839. if(model.getValue("/root/init/patflag") != "0") {
  840. if (sRefVal.length <3) {
  841. messageBox("등록번호는 3자리 이상", "C001"); // 등록번호가 3자리 이상 조회
  842. return false;
  843. }
  844. }
  845. //등록번호, 병리번호 모두 입력이 되지 않았을 경우에는 접수일자로 조회를 한다.
  846. if (sRefVal.length <= 0) {
  847. if(model.getValue("/root/init/ptnocode") == "" || model.getValue("/root/init/ptnocode") == "-") {
  848. messageBox("등록번호 또는 병리번호를", "C001"); // 등록번호가 3자리 이상 조회
  849. return false;
  850. }
  851. }
  852. /*
  853. //등록번호 또는 병리번호가 입력되었을 경우 접수일자로는 조회를 하지 않는다.
  854. if ((sRefVal != "") || ((model.getValue("/root/init/ptnocode") != "") && (model.getValue("/root/init/ptnocode") != "-"))) {
  855. if((model.getValue("/root/init/ptnocode") != "") && (model.getValue("/root/init/ptnocode") != "-")) {
  856. if (model.getValue("/root/init/fromptno") == "") {
  857. model.makeValue("/root/init/fromptno", "000000");
  858. } else {
  859. sTemp = model.getValue("/root/init/fromptno");
  860. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  861. }
  862. }
  863. }
  864. */
  865. //if(model.getValue("/root/init/patflag") != "0") {
  866. //------------------------------------------------
  867. if (model.getValue("/root/init/ptnocode") != "") {
  868. //------------------------------------------------
  869. if (model.getValue("/root/init/fromyear") == "") {
  870. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2)); // 병리번호 시작 년도의 2자리
  871. } else {
  872. sTemp = model.getValue("/root/init/fromyear");
  873. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  874. }
  875. //----------------------------------------------
  876. if (model.getValue("/root/init/toyear") == "") {
  877. model.makeValue("/root/init/toyear", sToDD.substr(2,2)); // 병리번호 종료 년도의 2자리
  878. } else {
  879. sTemp = model.getValue("/root/init/toyear");
  880. model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
  881. }
  882. //------------------------------------------------
  883. if (model.getValue("/root/init/fromptno") == "") {
  884. model.makeValue("/root/init/fromptno", "000000"); // 시작 병리번호가 ''일때
  885. } else {
  886. sTemp = model.getValue("/root/init/fromptno");
  887. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  888. }
  889. //----------------------------------------------
  890. if (model.getValue("/root/init/toptno") == "") {
  891. model.makeValue("/root/init/toptno", "999999"); // 종료 병리번호가 ''일때
  892. } else {
  893. sTemp = model.getValue("/root/init/toptno");
  894. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  895. }
  896. }
  897. // }
  898. //--------------------------------------------
  899. sTemp = model.getValue("/root/init/ptnocode");
  900. //--------------------------------
  901. model.removeNodeset("/root/send");
  902. //-----------------------------------------------------------------
  903. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  904. model.makeValue("/root/send/acptfromdd", model.getValue("/root/hidden/acptfromdd")); // 접수시작일자
  905. model.makeValue("/root/send/acpttodd", model.getValue("/root/hidden/acpttodd")); // 접수종료일자
  906. model.makeValue("/root/send/ptnocode", sTemp.replace("-", "")); // 병리 코드가 "" 이면 "-"
  907. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  908. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  909. model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
  910. model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  911. model.makeValue("/root/send/acptddflag", model.getValue("/root/init/acptddflag"));
  912. model.makeValue("/root/send/scrno", "SMLPD00700");
  913. model.makeValue("/root/send/pid", model.getValue("/root/init/pid")); // 등록번호
  914. model.makeValue("/root/send/patflag", model.getValue("/root/init/patflag")); // 환자 구분
  915. model.removeNodeset("/root/main/acptinfo/acptinfolist");
  916. model.removeNodeset("/root/main/rtnslideinfo/rtnslideinfolist");
  917. model.removeNodeset("/root/main/choiinfo/choiinfolist");
  918. if (model.getValue("/root/init/patflag") == "0") { // 대출구분이 대출일때
  919. //submit("TRLPD00701");
  920. submit("TRLPD00705");
  921. grd_plgyprcplist.rebuildStyle();
  922. for(var iRowNo = 1 ; iRowNo <grd_plgyprcplist.rows ; iRowNo++) {
  923. //접수되지 않은 처방은 색으로 표시하여준다.
  924. if(model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/acptdd") == "") {
  925. grd_plgyprcplist.rowstyle(iRowNo, "data", "background-color") = "#00CC66";
  926. }
  927. //대출처방은 선택 되지 않도록 비활성화 한다.
  928. if(model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/workflagcd") == "1011" || model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/acptdd") == "") {
  929. grd_plgyprcplist.isReadOnly(iRowNo, 0) = true;
  930. } else {
  931. grd_plgyprcplist.isReadOnly(iRowNo, 0) = false;
  932. }
  933. }
  934. //처방목록 초기화
  935. for(var iRowNo = 1 ; iRowNo < grd_prcplist.rows ; iRowNo++) {
  936. model.setValue("/root/main/prcpinfo/prcpinfolist["+ iRowNo+"]/choi", "false");
  937. }
  938. //처방목록 체크박스 활성화
  939. grd_prcplist.colDisabled(grd_prcplist.colRef("choi")) = true;
  940. for(var iRowNo = 1 ; iRowNo < grd_prcplist.rows ; iRowNo++) {
  941. model.setValue("/root/main/prcpinfo/prcpinfolist["+iRowNo+"]/prcpcnt", 0);
  942. }
  943. grd_prcplist.colDisabled(grd_prcplist.colRef("prcpcnt")) = true;
  944. //처방개수 입력창 숨기기.
  945. grp_prcpcnt.visible = false;
  946. }else {
  947. submit("TRLPD00703"); // 대출구분이 반납일때
  948. }
  949. //submit("TRLPD00704"); // 오늘 대출 되었던 슬라이드
  950. model.removeNodeset("/root/hidden/slideinfo"); //블록/슬라이드 정보 리셋
  951. grd_plgyprcplist.refresh();
  952. }
  953. /* @group : 대출 목록 조회/저장 화면
  954. * @ver : 2008.06.19 (CMCDEV-0001)
  955. * @by : 한음미(평화IS)
  956. * @-----------------------------------
  957. * @type : function
  958. * @access : public
  959. * @desc : 슬라이드 대출처방 저장함수
  960. */
  961. function fExeLendSave(pStatCd){
  962. var iCnt = 0;
  963. var sChek = "";
  964. //-----------------------------------------------------------------------------------------------
  965. if (model.getValue("/root/init/hospenv/hospenvinfo/doctjobgradcd") != getUserInfo("jobkindcd")) {
  966. messageBox("의사직급만 저장이 ", "I006");
  967. return false;
  968. }
  969. iCnt = grd_choilist.findRow("true", 1, 1, false, false);
  970. if (Number(iCnt) <= 0) {
  971. messageBox("대출할 슬라이드를 선택하여 주십시오!", "I");
  972. return false;
  973. }
  974. //--------------------------------
  975. var sNode = "/root/main/choiinfo/choiinfolist";
  976. //grd_choilist.clearStatus();
  977. for (var i=1; i <= getNodesetCount(sNode); i++) {
  978. //------------------------------------
  979. if (model.getValue(sNode+"["+i+"]/choi") == "true") {
  980. if(model.getValue(sNode+"["+i+"]/slidisscnt") == "") {
  981. messageBox(i+"행에 슬라이드 장수가 입력되지 않았습니다.","I");
  982. return false;
  983. }
  984. /*
  985. if((i+1)<=getNodesetCount(sNode)){
  986. if((model.getValue(sNode+"["+i+"]/prcpcd")) != (model.getValue(sNode+"["+(i+1)+"]/prcpcd"))){
  987. messageBox((i+1)+"행의 처방코드가 다릅니다.","I");
  988. return false;
  989. }
  990. }
  991. */
  992. }
  993. }
  994. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  995. //------------------------------------
  996. // 인증자료를 생성
  997. if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
  998. model.setValue(sNode+"["+iNo+"]/status","I");
  999. model.makeValue(sNode+"["+iNo+"]/prcpflag","1");
  1000. model.makeValue(sNode+"["+iNo+"]/drugmthdspccdnm","Other");
  1001. model.makeValue(sNode+"["+iNo+"]/drugmthdspccd","T99999");
  1002. //----------------
  1003. // 인증데이타 생성
  1004. grd_choilist.addStatus(iNo, "insert");
  1005. //model.removeNodeset("/root/main/cert/certdata");
  1006. //model.makeNode("/root/main/cert/certdata");
  1007. //copyNodesetType("/root/main/cert/certdata", sNode+"["+iNo+"]");
  1008. //----------------
  1009. //암호화 이전 처방인증 데이터 생성
  1010. model.setValue(sNode+"["+iNo+"]/signbfcnts", lpzfPlgyPrcpSignMake(sNode+"["+iNo+"]", "Y"));
  1011. //----------------
  1012. // 암호화자료 생성
  1013. sChek = lpzfPlgyPrcpSaveSign(sNode+"["+iNo+"]/signbfcnts", getUserInfo ("userid"), sInptPsw, sNode+"["+iNo+"]/signafcnts");
  1014. sInptPsw = false;
  1015. if(sChek == "" || sChek == "N") {
  1016. messageBox("처방인증을 하여 주십시오.","E999");
  1017. return;
  1018. }
  1019. /*
  1020. if (Sign.signprocess()) {
  1021. model.setValue(sNode+"["+iNo+"]/signbfcnts", Sign.signedInfos[1]); // 인증 전 자료
  1022. model.setValue(sNode+"["+iNo+"]/signafcnts", Sign.signedInfos[2]); // 인증 후 자료
  1023. } else {
  1024. return false;
  1025. }
  1026. */
  1027. }
  1028. }
  1029. model.removeNodeset("/root/send");
  1030. model.makeValue("/root/send/choiinfolist", grd_choilist.getUpdateData(pStatCd));
  1031. //-----------
  1032. setAlertOn();
  1033. if (submit("TXLPD00703")) {
  1034. //------------------------------------------------------
  1035. if (getNodesetCount("/root/main/errmsg/errlist") <= 0) {
  1036. model.makeValue("/root/init/prcprowno", "0");
  1037. for(var iRow = 1; iRow<getNodesetCount("/root/main/prcpinfo/prcpinfolist"); iRow++){
  1038. model.setValue("/root/main/prcpinfo/prcpinfolist"+"["+iRow+"]/choi", "false");
  1039. }
  1040. } else {
  1041. var sErrMsg = "";
  1042. sErrMsg += "처방명 : [" + model.getValue("/root/main/errmsg/errlist/prcpcd") + "] ";
  1043. sErrMsg += model.getValue("/root/main/errmsg/errlist/prcpnm") + "\n\n";
  1044. sErrMsg += "오류내용 : " + model.getValue("/root/main/errmsg/errlist/prcperr");
  1045. messageBox(sErrMsg, "E009");
  1046. }
  1047. model.removeNodeset("/root/main/choiinfo/choiinfolist");
  1048. model.removeNodeset("/root/main/acptinfo/acptinfolist");
  1049. model.refresh();
  1050. }
  1051. fGetPatInfoList();
  1052. }
  1053. /* @group : 대출 목록 조회/저장 화면
  1054. * @ver : 2008.06.19 (CMCDEV-0001)
  1055. * @by : 한음미(평화IS)
  1056. * @-----------------------------------
  1057. * @type : function
  1058. * @access : public
  1059. * @desc : ENRSignEngine.js에서 함수를 호출
  1060. */
  1061. function fMake_SignData() {
  1062. Sign.addnode("/root/main/cert/certdata");
  1063. }
  1064. /* @group : 대출 목록 조회/저장 화면
  1065. * @ver : 2008.06.19 (CMCDEV-0001)
  1066. * @by : 한음미(평화IS)
  1067. * @-----------------------------------
  1068. * @type : function
  1069. * @access : public
  1070. * @desc : 등록번호 입력후 엔터키
  1071. */
  1072. function fExeRefValKeyPress() {
  1073. if(event.keyCode == 13) {
  1074. model.setValue("/root/init/pid", ipt_refval.currentText);
  1075. ipt_refval.refresh();
  1076. //--------------------------- 조회 호출
  1077. fGetPatInfoList();
  1078. }
  1079. }
  1080. /* @group : 대출 목록 조회/저장 화면
  1081. * @ver : 2009.02.25 (CMCDEV-0001)
  1082. * @by : 박중규
  1083. * @-----------------------------------
  1084. * @type : function
  1085. * @access : public
  1086. * @desc : 선택목록으로 처방 set
  1087. */
  1088. function fExeAddprcp() {
  1089. model.setValue("/root/hidden/prcpcnt", ipt_slidcnt.currentText);
  1090. ipt_slidcnt.refresh();
  1091. var iprcpcnt = ipt_slidcnt.currentText;
  1092. var iCnt = 0;
  1093. //앞에서 블록/슬라이드를 선택하였는지 확인
  1094. if(model.getValue("/root/hidden/slideinfo/check") != "Y"){
  1095. messageBox("블록/슬라이드를 선택하지 않으셨습니다.", "I007");
  1096. return;
  1097. }
  1098. for(var iRowNo = 1 ; iRowNo < grd_prcplist.rows ; iRowNo++) {
  1099. iprcpcnt = Number(model.getValue("/root/main/prcpinfo/prcpinfolist["+ iRowNo+"]/prcpcnt"));
  1100. if(iprcpcnt > 0) {
  1101. for(var iNo = 1 ; iNo <= iprcpcnt ; iNo++) {
  1102. fGetSelectPatInfoList2(iRowNo);
  1103. }
  1104. iCnt++;
  1105. }
  1106. }
  1107. if(iCnt == 0) {
  1108. messageBox("발행할 처방의 개수를 입력하여 주세요", "I999");
  1109. }
  1110. model.setFocus("grd_choilist");
  1111. }
  1112. /* @group : 대출 목록 조회/저장 화면
  1113. * @ver : 2009.02.25 (CMCDEV-0001)
  1114. * @by : 박중규
  1115. * @-----------------------------------
  1116. * @type : function
  1117. * @access : public
  1118. * @desc : 선택목록 삭제
  1119. */
  1120. function fDelPrcpList() {
  1121. var iFirstRow = grd_choilist.selectedRow(0);
  1122. var iLasrRow = grd_choilist.selectedRow(grd_choilist.selectedRows-1)
  1123. for(var iRowNo = iLasrRow ; iRowNo >= iFirstRow ; iRowNo--) {
  1124. grd_choilist.deleteRow(iRowNo, false);
  1125. }
  1126. grd_choilist.rebuild();
  1127. grd_choilist.refresh();
  1128. }
  1129. ]]>
  1130. </script>
  1131. </xhtml:head>
  1132. <xhtml:body guideline="1,0;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1133. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1134. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:170px; height:13px; ">슬라이드 대출 처방 등록</caption>
  1135. </group>
  1136. <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  1137. <group id="grp_search" style="left:0px; top:10px; width:1194px; height:36px; vertical-align:top; ">
  1138. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  1139. <caption id="caption3" class="search_name" style="left:355px; top:10px; width:90px; height:17px; ">등록번호 :</caption>
  1140. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  1141. <button id="btn_sea" class="btn1_letter2" navindex="9" style="left:1123px; top:7px; width:56px; height:22px; ">
  1142. <caption>조회</caption>
  1143. <script type="javascript" ev:event="DOMActivate">
  1144. <![CDATA[
  1145. fGetPatInfoList();
  1146. ]]>
  1147. </script>
  1148. </button>
  1149. <input id="ipt_refval" ref="/root/init/pid" class="input_search" navindex="7" style="left:448px; top:9px; width:82px; height:19px; ">
  1150. <script type="javascript" ev:event="onkeypress">
  1151. <![CDATA[
  1152. fExeRefValKeyPress();
  1153. ]]>
  1154. </script>
  1155. </input>
  1156. <caption id="caption4" class="search_name" style="left:570px; top:10px; width:102px; height:17px; ">대출구분 :</caption>
  1157. <select1 id="rdo_seamthdcd" ref="/root/init/patflag" appearance="full" cols="2" overflow="visible" style="left:665px; top:10px; width:85px; height:20px; border-style:none; ">
  1158. <choices>
  1159. <item>
  1160. <label>대출</label>
  1161. <value>0</value>
  1162. </item>
  1163. <item>
  1164. <label>반납</label>
  1165. <value>1</value>
  1166. </item>
  1167. </choices>
  1168. <script type="javascript" ev:event="xforms-value-changed">
  1169. <![CDATA[
  1170. fExeFlag();
  1171. fGetPatInfoList();
  1172. ]]>
  1173. </script>
  1174. </select1>
  1175. <caption id="caption12" class="search_no_b" visibility="hidden" style="left:730px; top:10px; width:12px; height:17px; ">~</caption>
  1176. <input id="ipt_toyear" ref="/root/init/toyear" class="text_center" navindex="10" visibility="hidden" maxlength="2" style="left:750px; top:15px; width:27px; height:19px; "/>
  1177. <caption id="caption14" class="search_name" style="left:807px; top:10px; width:90px; height:17px; ">접수일자 :</caption>
  1178. <caption id="caption34" class="search_no_b" style="left:995px; top:10px; width:12px; height:17px; ">~</caption>
  1179. <input id="ipt_acpttodd" ref="/root/hidden/acpttodd" navindex="4" inputtype="date" style="left:1011px; top:9px; width:90px; height:19px; ">
  1180. <script type="javascript" ev:event="xforms-value-changed">
  1181. <![CDATA[
  1182. lpzfExeDateChange(ipt_toyear, "/root/hidden/acpttodd", "/root/init/toyear");
  1183. ]]>
  1184. </script>
  1185. </input>
  1186. <input id="ipt_acptfromdd" ref="/root/hidden/acptfromdd" navindex="3" inputtype="date" style="left:900px; top:9px; width:90px; height:19px; ">
  1187. <script type="javascript" ev:event="xforms-value-changed">
  1188. <![CDATA[
  1189. lpzfExeDateChange(ipt_fromyear, "/root/hidden/acptfromdd", "/root/init/fromyear");
  1190. ]]>
  1191. </script>
  1192. </input>
  1193. <select id="checkbox1" ref="/root/init/acptddflag" overflow="visible" appearance="full" style="left:790px; top:12px; width:15px; height:20px; border-style:none; ">
  1194. <choices>
  1195. <item>
  1196. <label/>
  1197. <value>1</value>
  1198. </item>
  1199. </choices>
  1200. </select>
  1201. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="5" appearance="minimal" editmode="search" style="left:105px; top:9px; width:111px; height:19px; ">
  1202. <choices>
  1203. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  1204. <label ref="ptnonm"/>
  1205. <value ref="ptnocd"/>
  1206. </itemset>
  1207. </choices>
  1208. </select1>
  1209. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="8" maxlength="6" style="left:249px; top:9px; width:50px; height:19px; ">
  1210. <script type="javascript" ev:event="onkeypress">
  1211. <![CDATA[
  1212. if(event.keyCode == 13) {
  1213. model.setValue("/root/init/fromptno", ipt_fromptno.currentText);
  1214. ipt_fromptno.refresh();
  1215. //--------------------------- 조회 호출
  1216. fGetPatInfoList();
  1217. }
  1218. ]]>
  1219. </script>
  1220. </input>
  1221. <caption id="caption13" class="search_name" style="left:12px; top:10px; width:90px; height:17px; ">병리번호 :</caption>
  1222. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="6" maxlength="2" style="left:219px; top:9px; width:27px; height:19px; "/>
  1223. <input id="ipt_toptno" ref="/root/init/toptno" class="text_center" navindex="12" visibility="hidden" maxlength="6" style="left:745px; top:0px; width:50px; height:19px; "/>
  1224. </group>
  1225. <switch id="switch1" style="left:0px; top:50px; width:1195px; height:675px; border-color:#c7a3cf; border-style:solid; ">
  1226. <case id="case_lendslide" selected="true">
  1227. <line id="line1" class="line_1" style="x1:390px; y1:335px; x2:1190px; y2:335px; "/>
  1228. <caption id="caption1" class="tit_2" style="left:390px; top:320px; width:305px; height:13px; ">선택목록</caption>
  1229. <datagrid id="grd_choilist" nodeset="/root/main/choiinfo/choiinfolist" class="datagrid2" autoresize="true" caption="선택^병리번호^ptno^처방일자^접수일자^처방코드^처방명^검체명^블록^슬라이드^prcpgenrflag^슬라이드 장수^rsltdd^spcacptseqno^csteno^slidno^rrgstno1^rrgstno2" colsep="^" colwidth="35, 95, 0, 95, 80, 95, 312, 156, 70, 70, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedcols="never" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" navindex="16" style="left:390px; top:340px; width:800px; height:330px; ">
  1230. <col ref="choi" type="checkbox" visibility="hidden"/>
  1231. <col ref="dispptno"/>
  1232. <col ref="ptno"/>
  1233. <col ref="prcpdd" format="yyyy-mm-dd"/>
  1234. <col ref="acptdd" visibility="hidden" format="yyyy-mm-dd"/>
  1235. <col ref="prcpcd"/>
  1236. <col ref="prcpnm"/>
  1237. <col ref="spcnm" visibility="hidden"/>
  1238. <col ref="blockcnts"/>
  1239. <col ref="slidecnts"/>
  1240. <col ref="prcpgenrflag"/>
  1241. <col ref="slidisscnt" type="input" visibility="hidden"/>
  1242. <col ref="rsltdd" visibility="hidden"/>
  1243. <col ref="spcacptseqno" visibility="hidden"/>
  1244. <col ref="csteno" visibility="hidden"/>
  1245. <col ref="slidno" visibility="hidden"/>
  1246. <col ref="testcd"/>
  1247. <col ref="instcd"/>
  1248. <col ref="relaptno"/>
  1249. <col ref="pid"/>
  1250. <col ref="patnm"/>
  1251. <col ref="orddd"/>
  1252. <col ref="testnm"/>
  1253. <col ref="spccd"/>
  1254. <col ref="orddeptcd"/>
  1255. <col ref="orddeptnm"/>
  1256. <col ref="orddrid"/>
  1257. <col ref="orddrnm"/>
  1258. <col ref="reqfrmno"/>
  1259. <col ref="dschdd"/>
  1260. <col ref="execprcpuniqno"/>
  1261. <col ref="prcpno"/>
  1262. <col ref="acptno"/>
  1263. <col ref="spcacptdd"/>
  1264. <col ref="spcacptno"/>
  1265. <col ref="spcacptseqno"/>
  1266. <col ref="bfacptdd"/>
  1267. <col ref="bfacptno"/>
  1268. <col ref="bfacptseqno"/>
  1269. <col ref="reuseflagcd"/>
  1270. <col ref="acptdept"/>
  1271. <col ref="bfspcacptdd"/>
  1272. <col ref="bfspcacptno"/>
  1273. <col ref="status"/>
  1274. <col ref="ptnocd"/>
  1275. <col ref="stdyptnocd"/>
  1276. <col ref="trustptnocd"/>
  1277. <col ref="workflagcd"/>
  1278. <col ref="slidflagcd"/>
  1279. <col ref="blocflagcd"/>
  1280. <col ref="initblocno"/>
  1281. <col ref="autokeepflagcd"/>
  1282. <col ref="stdy_workflagcd"/>
  1283. <col ref="stdy_slidflagcd"/>
  1284. <col ref="stdy_slidisscnt"/>
  1285. <col ref="stdy_blocflagcd"/>
  1286. <col ref="stdy_initblocno"/>
  1287. <col ref="stdy_autokeepflagcd"/>
  1288. <col ref="grupsnglflag"/>
  1289. <col ref="wardcd"/>
  1290. <col ref="roomcd"/>
  1291. <col ref="grosdrid"/>
  1292. <col ref="grosplgyid"/>
  1293. <col ref="acpttm"/>
  1294. <col ref="grostestdd"/>
  1295. <col ref="grostesttm"/>
  1296. <col ref="autosave"/>
  1297. <col ref="lendflagcd"/>
  1298. <col ref="trandd"/>
  1299. <col ref="tranno"/>
  1300. <col ref="transeqno"/>
  1301. <col ref="spcbarcdno"/>
  1302. <col ref="spchistno"/>
  1303. <col ref="blocno"/>
  1304. <col ref="cretno"/>
  1305. <col ref="tootfact"/>
  1306. <col ref="spctranbarcdno"/>
  1307. <col ref="reuseflagcd"/>
  1308. <col ref="prcphistno"/>
  1309. <col ref="rrgstno1"/>
  1310. <col ref="rrgstno2"/>
  1311. <col ref="brthdd"/>
  1312. <col ref="sex"/>
  1313. <col ref="signbfcnts"/>
  1314. <col ref="signafcnts"/>
  1315. <script type="javascript" ev:event="onmousedown">
  1316. <![CDATA[
  1317. setPopupMenu("grd_choilist", false, "/root/init/popupmenu/item", "name", "func");
  1318. ]]>
  1319. </script>
  1320. </datagrid>
  1321. <datagrid id="grd_acptlist" nodeset="/root/main/acptinfo/acptinfolist" class="datagrid2" visibility="hidden" autoresize="true" caption="선&#xA;택^환자명^병리번호^ptno^진료과^입원일자^병동병실^처방일자^접수일자^결과일자^검사명^검체명^검사코드^검체코드^병실^병동^처방의ID^검체접수일자^검체접수번호^진료과코드^접수번호^진료의명^병리번호코드^육안검사의ID^육안병리사ID^접수시간^의뢰지번호^관련병리번호^정송일자^전송번호^전송일련번호^실시처방유일번호^검체바코드번호^블럭번호^처방번호^등록번호^진료의명^검체이력코드^판독검사일자^판독검사시간^연구병리코드^수탁병리코드^작업구분코드^슬라이드구분코드^블럭구분코드^초기블럭번호^자동보관구분코드^연구작업구분코드^연구슬라이드구분코드^연구슬라이드갯수^연구블럭구분코드^연구초기블럭번호^연구자동보관구분코드^prcpgenrflag^cretno^prcphistno^rrgstno1^rrgstno2^brthdd^sex" colsep="^" colwidth="20, 50, 70, 0, 50, 70, 60, 70, 70, 70, 230, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" explorerbar="sortshow" mergecellsfixedcols="never" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="15" style="left:765px; top:505px; width:140px; height:85px; ">
  1322. <col ref="choi" type="checkbox"/>
  1323. <col ref="patnm"/>
  1324. <col ref="dispptno"/>
  1325. <col ref="ptno"/>
  1326. <col ref="orddeptnm"/>
  1327. <col ref="indd" format="yyyy-mm-dd"/>
  1328. <col ref="wardroom"/>
  1329. <col ref="prcpdd" format="yyyy-mm-dd"/>
  1330. <col ref="acptdd" format="yyyy-mm-dd"/>
  1331. <col ref="rsltdd" format="yyyy-mm-dd"/>
  1332. <col ref="testnm"/>
  1333. <col ref="spcnm"/>
  1334. <col ref="testcd"/>
  1335. <col ref="spccd"/>
  1336. <col ref="wardcd"/>
  1337. <col ref="roomcd"/>
  1338. <col ref="orddrid"/>
  1339. <col ref="spcacptdd"/>
  1340. <col ref="spcacptno"/>
  1341. <col ref="orddeptcd"/>
  1342. <col ref="acptno"/>
  1343. <col ref="orddrnm"/>
  1344. <col ref="ptnocd"/>
  1345. <col ref="grosdrid"/>
  1346. <col ref="grosplgyid"/>
  1347. <col ref="acpttm"/>
  1348. <col ref="reqfrmno"/>
  1349. <col ref="relaptno"/>
  1350. <col ref="lendflagcd"/>
  1351. <col ref="trandd"/>
  1352. <col ref="tranno"/>
  1353. <col ref="transeqno"/>
  1354. <col ref="execprcpuniqno"/>
  1355. <col ref="spcbarcdno"/>
  1356. <col ref="blocno"/>
  1357. <col ref="prcpno"/>
  1358. <col ref="orddd"/>
  1359. <col ref="pid"/>
  1360. <col ref="orddrnm"/>
  1361. <col ref="spchistno"/>
  1362. <col ref="grostestdd"/>
  1363. <col ref="grostesttm"/>
  1364. <col ref="stdyptnocd"/>
  1365. <col ref="trustptnocd"/>
  1366. <col ref="workflagcd"/>
  1367. <col ref="slidflagcd"/>
  1368. <col ref="blocflagcd"/>
  1369. <col ref="initblocno"/>
  1370. <col ref="autokeepflagcd"/>
  1371. <col ref="stdy_workflagcd"/>
  1372. <col ref="stdy_slidflagcd"/>
  1373. <col ref="stdy_slidisscnt"/>
  1374. <col ref="stdy_blocflagcd"/>
  1375. <col ref="stdy_initblocno"/>
  1376. <col ref="stdy_autokeepflagcd"/>
  1377. <col ref="prcpgenrflag"/>
  1378. <col ref="cretno"/>
  1379. <col ref="prcphistno"/>
  1380. <script type="javascript" ev:event="xforms-select">
  1381. <![CDATA[
  1382. fGetSelectPatInfoList();
  1383. ]]>
  1384. </script>
  1385. </datagrid>
  1386. <button id="btn_del" class="btn2_letter3" navindex="17" visibility="visible" style="left:1137px; top:315px; width:53px; height:19px; ">
  1387. <caption>행삭제</caption>
  1388. <script type="javascript" ev:event="DOMActivate">
  1389. <![CDATA[
  1390. grd_choilist.deleteRow(grd_choilist.row, true);
  1391. ]]>
  1392. </script>
  1393. </button>
  1394. <datagrid id="grd_plgyprcplist" nodeset="/root/main/plgyprcpinfo/plgyprcplist" class="datagrid2" caption="선&#xA;택^환자명^병리번호^관련병리번호^육안&#xA;검사의^검사명^검체명^진료과^처방의^수납&#xA;구분^처방일자^접수일자^판독일자^판독의^블록^슬라&#xA;이드^rrgstno1^rrgstno2^sex^brthdd^orddd^workflagcd^orddrid^ptno^acptdd^rsltdd^prcpgenrflag^orddeptcd^orddeptnm^orddrid^reqfrmno^execprcpuniqno^prcpno^acptno^spcacptdd^spcacptno^ptnocd^wardcd^roomcd^grosdrid^grosplgyid^acpttm^grostestdd^grostesttm^trandd^tranno^transeqno^spcbarcdno^testcd^relaptno^pid^blocno^spcnm^spccd^spchistno^stdyptnocd^trustptnocd^workflagcd^slidflagcd^blocflagcd^initblocno^autokeepflagcd^stdy_workflagcd^stdy_slidflagcd^stdy_slidisscnt^stdy_blocflagcd^stdy_initblocno^stdy_autokeepflagcd^cretno^spcbarcdno^prcphistno^dispptno" colsep="^" colwidth="26, 52, 82, 82, 53, 241, 122, 46, 55, 50, 73, 73, 73, 55, 44, 44, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:1190px; height:285px; ">
  1395. <col checkvalue="true,false" ref="choi" type="checkbox"/>
  1396. <col ref="patnm"/>
  1397. <col ref="dispptno"/>
  1398. <col ref="disprelaptno"/>
  1399. <col ref="grosdrnm"/>
  1400. <col ref="testnm"/>
  1401. <col ref="spcnm"/>
  1402. <col ref="deptengabbr"/>
  1403. <col ref="orddrnm"/>
  1404. <col ref="rcptflag"/>
  1405. <col ref="prcpdd" format="yyyy-mm-dd"/>
  1406. <col ref="acptdd" format="yyyy-mm-dd"/>
  1407. <col ref="readdd" format="yyyy-mm-dd"/>
  1408. <col ref="readdrnm"/>
  1409. <col ref="blockcnts"/>
  1410. <col ref="slidecnts"/>
  1411. <col ref="rrgstno1" visibility="hidden"/>
  1412. <col ref="rrgstno2" visibility="hidden"/>
  1413. <col ref="sex" visibility="hidden"/>
  1414. <col ref="brthdd" visibility="hidden"/>
  1415. <col ref="orddd" visibility="hidden"/>
  1416. <col ref="workflagcd" visibility="hidden"/>
  1417. <col ref="orddrid" visibility="hidden"/>
  1418. <col ref="ptno" visibility="hidden"/>
  1419. <col ref="acptdd" visibility="hidden"/>
  1420. <col ref="rsltdd" visibility="hidden"/>
  1421. <col ref="prcpgenrflag" visibility="hidden"/>
  1422. <col ref="orddeptcd" visibility="hidden"/>
  1423. <col ref="orddeptnm" visibility="hidden"/>
  1424. <col ref="orddrid" visibility="hidden"/>
  1425. <col ref="reqfrmno" visibility="hidden"/>
  1426. <col ref="execprcpuniqno" visibility="hidden"/>
  1427. <col ref="prcpno" visibility="hidden"/>
  1428. <col ref="acptno" visibility="hidden"/>
  1429. <col ref="spcacptdd" visibility="hidden"/>
  1430. <col ref="spcacptno" visibility="hidden"/>
  1431. <col ref="ptnocd" visibility="hidden"/>
  1432. <col ref="wardcd" visibility="hidden"/>
  1433. <col ref="roomcd" visibility="hidden"/>
  1434. <col ref="grosdrid" visibility="hidden"/>
  1435. <col ref="grosplgyid" visibility="hidden"/>
  1436. <col ref="acpttm" visibility="hidden"/>
  1437. <col ref="grostestdd" visibility="hidden"/>
  1438. <col ref="grostesttm" visibility="hidden"/>
  1439. <col ref="trandd" visibility="hidden"/>
  1440. <col ref="tranno" visibility="hidden"/>
  1441. <col ref="transeqno" visibility="hidden"/>
  1442. <col ref="spcbarcdno" visibility="hidden"/>
  1443. <col ref="testcd" visibility="hidden"/>
  1444. <col ref="relaptno" visibility="hidden"/>
  1445. <col ref="pid" visibility="hidden"/>
  1446. <col ref="blocno" visibility="hidden"/>
  1447. <col ref="spcnm" visibility="hidden"/>
  1448. <col ref="spccd" visibility="hidden"/>
  1449. <col ref="spchistno" visibility="hidden"/>
  1450. <col ref="stdyptnocd" visibility="hidden"/>
  1451. <col ref="trustptnocd" visibility="hidden"/>
  1452. <col ref="workflagcd" visibility="hidden"/>
  1453. <col ref="slidflagcd" visibility="hidden"/>
  1454. <col ref="blocflagcd" visibility="hidden"/>
  1455. <col ref="initblocno" visibility="hidden"/>
  1456. <col ref="autokeepflagcd" visibility="hidden"/>
  1457. <col ref="stdy_workflagcd" visibility="hidden"/>
  1458. <col ref="stdy_slidflagcd" visibility="hidden"/>
  1459. <col ref="stdy_slidisscnt" visibility="hidden"/>
  1460. <col ref="stdy_blocflagcd" visibility="hidden"/>
  1461. <col ref="stdy_initblocno" visibility="hidden"/>
  1462. <col ref="stdy_autokeepflagcd" visibility="hidden"/>
  1463. <col ref="cretno" visibility="hidden"/>
  1464. <col ref="spcbarcdno" visibility="hidden"/>
  1465. <col ref="prcphistno" visibility="hidden"/>
  1466. <col ref="dispptno" visibility="hidden"/>
  1467. <script type="javascript" ev:event="xforms-select">
  1468. <![CDATA[
  1469. if(model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ grd_plgyprcplist.row +"]/choi") == "true") {
  1470. for(var iRowNo = 1 ; iRowNo < grd_plgyprcplist.rows ; iRowNo++) {
  1471. if(iRowNo != grd_plgyprcplist.row) {
  1472. model.setValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo+"]/choi", "false");
  1473. }
  1474. }
  1475. for(var iRowNo = 1 ; iRowNo < grd_prcplist.rows ; iRowNo++) {
  1476. model.setValue("/root/main/prcpinfo/prcpinfolist["+ iRowNo+"]/choi", "false");
  1477. }
  1478. //카세트/슬라이드목록 활성화
  1479. grp_sldelist.visible = true;
  1480. model.removeNodeset("/root/send");
  1481. //-----------------------------------------------------------------
  1482. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  1483. model.makeValue("/root/send/ptno", model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ grd_plgyprcplist.row +"]/ptno"));
  1484. submit("TRLPD00706"); //슬라이드 목록조회
  1485. //처방목록 체크박스 활성화
  1486. //grd_prcplist.colDisabled(0) = false;
  1487. //model.refresh();
  1488. }
  1489. ]]>
  1490. </script>
  1491. <script type="javascript" ev:event="onaftersort">
  1492. <![CDATA[
  1493. grd_plgyprcplist.gridToInstance();
  1494. ]]>
  1495. </script>
  1496. <script type="javascript" ev:event="xforms-value-changed">
  1497. <![CDATA[
  1498. if(model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ grd_plgyprcplist.row +"]/choi") == "false") {
  1499. //처방목록 체크박스 비활성화
  1500. grd_prcplist.colDisabled(grd_prcplist.colRef("choi")) = true;
  1501. grd_prcplist.colDisabled(grd_prcplist.colRef("prcpcnt")) = true;
  1502. }
  1503. ]]>
  1504. </script>
  1505. </datagrid>
  1506. <datagrid id="grd_prcplist" nodeset="/root/main/prcpinfo/prcpinfolist" class="datagrid2" autoresize="false" caption="선&#xA;택^처방코드^처방&#xA;개수^처방명" colsep="^" colwidth="20, 72, 30, 258" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="13" style="left:0px; top:340px; width:384px; height:330px; ">
  1507. <col ref="choi" type="checkbox"/>
  1508. <col ref="prcpcd"/>
  1509. <col ref="prcpcnt" type="input" format="##"/>
  1510. <col ref="prcpnm"/>
  1511. <script type="javascript" ev:event="xforms-select">
  1512. <![CDATA[
  1513. /*
  1514. var No = grd_plgyprcplist.findRow("true",1,0,false,false);
  1515. if (No <0 ){
  1516. messageBox("처방을 선택하지 않았습니다!", "I007");
  1517. model.setValue("/root/main/prcpinfo/prcpinfolist["+ grd_prcplist.row +"]/choi", "false");
  1518. btn_prcp.visible = false;
  1519. grd_prcplist.refresh();
  1520. return;
  1521. }
  1522. */
  1523. /*
  1524. if(model.getValue("/root/main/prcpinfo/prcpinfolist["+ grd_prcplist.row +"]/choi") == "true") {
  1525. for(var iRowNo = 1 ; iRowNo < grd_prcplist.rows ; iRowNo++) {
  1526. if(iRowNo != grd_prcplist.row) {
  1527. model.setValue("/root/main/prcpinfo/prcpinfolist["+ iRowNo+"]/choi", "false");
  1528. }
  1529. }
  1530. }
  1531. */
  1532. //grp_prcpcnt.visible = true;
  1533. //model.setFocus("ipt_slidcnt");
  1534. ]]>
  1535. </script>
  1536. <script type="javascript" ev:event="xforms-value-changed">
  1537. <![CDATA[
  1538. var iCnt = 0;
  1539. for(var iRowNo = 1 ; iRowNo < grd_prcplist.rows ; iRowNo++) {
  1540. if(Number(model.getValue("/root/main/prcpinfo/prcpinfolist["+ iRowNo+"]/prcpcnt")) > 0) {
  1541. iCnt++;
  1542. }
  1543. }
  1544. /*
  1545. if(iCnt <= 0) {
  1546. btn_prcp.visible = false;
  1547. } else {
  1548. btn_prcp.visible = true;
  1549. }
  1550. */
  1551. ]]>
  1552. </script>
  1553. </datagrid>
  1554. <caption id="caption7" class="tit_2" style="left:0px; top:5px; width:305px; height:13px; ">병리처방목록</caption>
  1555. <line id="line4" class="line_1" style="x1:0px; y1:20px; x2:1190px; y2:20px; "/>
  1556. <caption id="caption8" class="tit_2" style="left:0px; top:320px; width:74px; height:13px; ">처방목록</caption>
  1557. <line id="line5" class="line_1" style="x1:0px; y1:335px; x2:384px; y2:335px; "/>
  1558. <group id="grp_prcpcnt" visibility="hidden" style="left:515px; top:200px; width:280px; height:75px; ">
  1559. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:5px; width:271px; height:65px; background-color:#fffbf2; border-color:#ffd799; border-width:3px; "/>
  1560. <line id="line2" class="line_3" style="x1:16px; y1:30px; x2:267px; y2:30px; "/>
  1561. <line id="line6" class="line_3" style="x1:15px; y1:54px; x2:267px; y2:54px; "/>
  1562. <button id="btn_cncresn" class="btn2_letter2" navindex="2" style="left:225px; top:34px; width:42px; height:19px; ">
  1563. <caption>확인</caption>
  1564. <script type="javascript" ev:event="DOMActivate">
  1565. <![CDATA[
  1566. fExeAddprcp();
  1567. ]]>
  1568. </script>
  1569. </button>
  1570. <input id="ipt_slidcnt" ref="/root/hidden/prcpcnt" class="text_center" navindex="1" format="999" style="left:106px; top:33px; width:114px; height:19px; ">
  1571. <script type="javascript" ev:event="onkeypress">
  1572. <![CDATA[
  1573. if(event.keyCode == 13) {
  1574. fExeAddprcp();
  1575. }
  1576. ]]>
  1577. </script>
  1578. </input>
  1579. <caption id="cpt_title" class="tit_2" style="left:15px; top:15px; width:256px; height:13px; ">발행할 처방의 개수를 입력하여 주세요.</caption>
  1580. <caption id="cap_pid" class="cell_1" style="left:15px; top:31px; width:90px; height:23px; text-align:left; vertical-align:middle; ">처방개수</caption>
  1581. </group>
  1582. <input id="ipt_prcpcnt" ref="/root/hidden/prcpcnt" style="left:94px; top:315px; width:30px; height:19px; ">
  1583. <script type="javascript" ev:event="onkeypress">
  1584. <![CDATA[
  1585. var iprcpcnt = 0;
  1586. model.setValue("/root/hidden/prcpcnt", ipt_prcpcnt.currentText);
  1587. for(var iRowNo = 1 ; iRowNo < grd_prcplist.rows ; iRowNo++) {
  1588. if(model.getValue("/root/main/prcpinfo/prcpinfolist["+ iRowNo+"]/choi") == "true") {
  1589. model.makeValue("/root/main/prcpinfo/prcpinfolist["+ iRowNo+"]/prcpcnt", model.getValue("/root/hidden/prcpcnt"));
  1590. iprcpcnt++;
  1591. }
  1592. }
  1593. if(iprcpcnt == 0) {
  1594. messageBox("선택된 대출 처방이 존재하지 않습니다.", "I007");
  1595. }
  1596. grd_prcplist.refresh();
  1597. ]]>
  1598. </script>
  1599. </input>
  1600. <button id="btn_addprcp" class="btn2_letter4" navindex="12" style="left:320px; top:315px; width:64px; height:19px; ">
  1601. <caption>정보전달</caption>
  1602. <script type="javascript" ev:event="DOMActivate">
  1603. <![CDATA[
  1604. fExeAddprcp();
  1605. ]]>
  1606. </script>
  1607. </button>
  1608. <group id="grp_sldelist" visibility="hidden" style="left:315px; top:140px; width:565px; height:340px; ">
  1609. <datagrid id="grd_slidelist" nodeset="/root/main/slideinfo/slidelist" class="datagrid2" autoresize="true" caption="선&#xA;택^병리번호^검체번호^블록번호^슬라이드번호^블록표시내용^슬라이드표시내용" colsep="^" colwidth="20, 108, 67, 67, 82, 82, 109" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="13" style="left:5px; top:25px; width:555px; height:285px; ">
  1610. <col checkvalue="true,false" ref="choi" type="checkbox"/>
  1611. <col ref="ptno"/>
  1612. <col ref="spcacptseqno"/>
  1613. <col ref="csteno"/>
  1614. <col ref="slidno"/>
  1615. <col ref="blockcnts"/>
  1616. <col ref="slidecnts"/>
  1617. <script type="javascript" ev:event="xforms-value-changed">
  1618. <![CDATA[
  1619. if(model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/choi") == "true") {
  1620. for(var iRowNo = 1 ; iRowNo < grd_slidelist.rows ; iRowNo++) {
  1621. if(iRowNo != grd_slidelist.row) {
  1622. model.setValue("/root/main/slideinfo/slidelist["+ iRowNo+"]/choi", "false");
  1623. }
  1624. }
  1625. model.removeNodeset("/root/hidden/slideinfo");
  1626. model.makeValue("/root/hidden/slideinfo/blockcnts", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/blockcnts"));
  1627. model.makeValue("/root/hidden/slideinfo/slidecnts", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/slidecnts"));
  1628. model.makeValue("/root/hidden/slideinfo/spcacptseqno", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/spcacptseqno"));
  1629. model.makeValue("/root/hidden/slideinfo/csteno", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/csteno"));
  1630. model.makeValue("/root/hidden/slideinfo/slidno", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/slidno"));
  1631. model.makeValue("/root/hidden/slideinfo/check", "Y");
  1632. } else {
  1633. model.removeNodeset("/root/hidden/slideinfo");
  1634. }
  1635. ]]>
  1636. </script>
  1637. </datagrid>
  1638. <caption id="caption2" class="tit_2" style="left:5px; top:5px; width:200px; height:14px; ">카세트/슬라이드 목록</caption>
  1639. <line id="line7" class="line_1" style="x1:5px; y1:20px; x2:560px; y2:20px; "/>
  1640. <button id="button2" class="btn4_letter2" navindex="19" style="left:445px; top:315px; width:56px; height:22px; ">
  1641. <caption>확인</caption>
  1642. <script type="javascript" ev:event="DOMActivate">
  1643. <![CDATA[
  1644. var ichk = grd_slidelist.findRow("true", 0, 0, false, true);
  1645. if(ichk <= 0) {
  1646. messageBox("블록/슬라이드를 선택하지 않으셨습니다.", "I007");
  1647. return;
  1648. }
  1649. grp_sldelist.visible = false;
  1650. //처방목록 체크박스 활성화
  1651. grd_prcplist.colDisabled(grd_prcplist.colRef("choi")) = false;
  1652. grd_prcplist.colDisabled(grd_prcplist.colRef("prcpcnt")) = false;
  1653. ]]>
  1654. </script>
  1655. </button>
  1656. <button id="button3" class="btn4_letter2" navindex="19" style="left:505px; top:315px; width:56px; height:22px; ">
  1657. <caption>닫기</caption>
  1658. <script type="javascript" ev:event="DOMActivate">
  1659. <![CDATA[
  1660. grp_sldelist.visible = false;
  1661. ]]>
  1662. </script>
  1663. </button>
  1664. </group>
  1665. </case>
  1666. <case id="case_rtnslide">
  1667. <datagrid id="grd_rtnslideinfolist" nodeset="/root/main/rtnslideinfo/rtnslideinfolist" class="datagrid2" autoresize="true" caption="선택^환자명^병리번호^ptno^진료과^처방일자^접수일자^결과일자^검사명^검체명^검사코드^검체코드^진료의ID^검체접수일자^검체접수번호^진료과코드^접수번호^진료과명^병리번호코드^병리의ID^병리사ID^접수시간^의뢰지번호^관련병리번호^대여구분코드^이송일자^이송번호^이송일련번호^실시처방유일번호^검체바코드번호^블럭번호^처방번호^진료일자^등록번호^처방구분코드^기관코드^환자명^처방병^퇴원일자^검체접수일련번호^이전접수일자^이전접수번호^이전접수일련번호^재사용성^접수과코드^연구용병리번호^수탁용병리번호^슬라이드구분코드^블럭구분코드^초기블럭번호^자동보관구분여부^stdy_workflagcd^stdy_slidflagcd^stdy_slidisscnt^stdy_blocflagcd^stdy_initblocno^stdy_autokeepflagcd^grupsnglflag^grostestdd^grostesttm^autosave^검체이송일자^검체이송번호^검체이력번호^생성번호^치식^검체이송바코드번호^처방이력번호^진료일자^실제접수상태^acptitemno^orgacptstatcd^orgprcpstatcd^orgacptdd^prcpcd^acptstatcd^prcpstatcd^irpayflag^ordtype" colsep="^" colwidth="50, 99, 100, 0, 60, 83, 83, 83, 365, 235, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" explorerbar="sortmove" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="14" style="left:5px; top:25px; width:1184px; height:645px; ">
  1668. <col ref="choi" type="checkbox"/>
  1669. <col ref="patnm"/>
  1670. <col ref="dispptno"/>
  1671. <col ref="ptno"/>
  1672. <col ref="orddeptnm"/>
  1673. <col ref="prcpdd" format="yyyy-mm-dd"/>
  1674. <col ref="acptdd" format="yyyy-mm-dd"/>
  1675. <col ref="rsltdd" format="yyyy-mm-dd"/>
  1676. <col ref="testnm"/>
  1677. <col ref="spcnm"/>
  1678. <col ref="testcd"/>
  1679. <col ref="spccd"/>
  1680. <col ref="orddrid"/>
  1681. <col ref="spcacptdd"/>
  1682. <col ref="spcacptno"/>
  1683. <col ref="orddeptcd"/>
  1684. <col ref="acptno"/>
  1685. <col ref="orddrnm"/>
  1686. <col ref="ptnocd"/>
  1687. <col ref="grosdrid"/>
  1688. <col ref="grosplgyid"/>
  1689. <col ref="acpttm"/>
  1690. <col ref="reqfrmno"/>
  1691. <col ref="relaptno"/>
  1692. <col ref="lendflagcd"/>
  1693. <col ref="trandd"/>
  1694. <col ref="tranno"/>
  1695. <col ref="transeqno"/>
  1696. <col ref="execprcpuniqno"/>
  1697. <col ref="spcbarcdno"/>
  1698. <col ref="blocno"/>
  1699. <col ref="prcpno"/>
  1700. <col ref="orddd"/>
  1701. <col ref="pid"/>
  1702. <col ref="prcpgenrflag"/>
  1703. <col ref="instcd"/>
  1704. <col ref="patnm"/>
  1705. <col ref="prcpnm"/>
  1706. <col ref="dschdd"/>
  1707. <col ref="spcacptseqno"/>
  1708. <col ref="bfacptdd"/>
  1709. <col ref="bfacptno"/>
  1710. <col ref="bfacptseqno"/>
  1711. <col ref="reuseflagcd"/>
  1712. <col ref="acptdept"/>
  1713. <col ref="bfspcacptdd"/>
  1714. <col ref="bfspcacptno"/>
  1715. <col ref="status"/>
  1716. <col ref="stdyptnocd"/>
  1717. <col ref="trustptnocd"/>
  1718. <col ref="workflagcd"/>
  1719. <col ref="slidflagcd"/>
  1720. <col ref="blocflagcd"/>
  1721. <col ref="initblocno"/>
  1722. <col ref="autokeepflagcd"/>
  1723. <col ref="stdy_workflagcd"/>
  1724. <col ref="stdy_slidflagcd"/>
  1725. <col ref="stdy_slidisscnt"/>
  1726. <col ref="stdy_blocflagcd"/>
  1727. <col ref="stdy_initblocno"/>
  1728. <col ref="stdy_autokeepflagcd"/>
  1729. <col ref="grupsnglflag"/>
  1730. <col ref="grostestdd"/>
  1731. <col ref="grostesttm"/>
  1732. <col ref="autosave"/>
  1733. <col ref="spctrandd"/>
  1734. <col ref="spctranno"/>
  1735. <col ref="spchistno"/>
  1736. <col ref="cretno"/>
  1737. <col ref="tootfact"/>
  1738. <col ref="spctranbarcdno"/>
  1739. <col ref="prcphistno"/>
  1740. <col ref="orddd"/>
  1741. <col ref="acptitemno"/>
  1742. <col ref="orgacptstatcd"/>
  1743. <col ref="orgprcpstatcd"/>
  1744. <col ref="orgacptdd"/>
  1745. <col ref="prcpcd"/>
  1746. <col ref="acptstatcd"/>
  1747. <col ref="prcpstatcd"/>
  1748. <col ref="irpayflag"/>
  1749. <col ref="ordtype"/>
  1750. </datagrid>
  1751. <line id="line3" class="line_1" style="x1:5px; y1:20px; x2:1189px; y2:20px; "/>
  1752. <caption id="caption5" class="tit_2" style="left:5px; top:6px; width:200px; height:14px; ">반납목록</caption>
  1753. </case>
  1754. </switch>
  1755. <button id="btn_rtnslide" class="btn_sw" visibility="hidden" group="tab" style="left:1145px; top:50px; width:46px; height:22px; ">
  1756. <caption>반납</caption>
  1757. <script type="javascript" ev:event="DOMActivate">
  1758. <![CDATA[
  1759. model.toggle("case_rtnslide");
  1760. model.setValue("/root/init/patflag", "1");
  1761. ]]>
  1762. </script>
  1763. <script type="javascript" ev:event="onmousedown">
  1764. <![CDATA[
  1765. model.setValue("/root/init/patflag", "1");
  1766. ]]>
  1767. </script>
  1768. </button>
  1769. <button id="btn_lendslide" class="btn_sw" visibility="hidden" group="tab" selected="true" style="left:1095px; top:50px; width:46px; height:22px; ">
  1770. <caption>대출</caption>
  1771. <script type="javascript" ev:event="DOMActivate">
  1772. <![CDATA[
  1773. model.toggle("case_lendslide");
  1774. model.setValue("/root/init/patflag", "0");
  1775. ]]>
  1776. </script>
  1777. <script type="javascript" ev:event="onmousedown">
  1778. <![CDATA[
  1779. model.setValue("/root/init/patflag", "0");
  1780. ]]>
  1781. </script>
  1782. </button>
  1783. <datagrid id="grd_saveprcp" nodeset="/root/main/saveprcp/saveprcpinfo" class="datagrid2" visibility="hidden" autoresize="true" caption="기관코드^등록번호^ptno^병리번호^처방명^ 처방코드^S ptno^검사명^검사코드^장&#xA;수" colsep="^" colwidth="0, 0, 0, 80, 150, 0, 0, 150, 0, 30" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="11" style="left:915px; top:565px; width:95px; height:100px; ">
  1784. <col ref="instcd"/>
  1785. <col ref="pid"/>
  1786. <col ref="prcp_ptno"/>
  1787. <col ref="dispptno"/>
  1788. <col ref="prcpnm"/>
  1789. <col ref="prcpcd"/>
  1790. <col ref="test_ptno"/>
  1791. <col ref="testnm"/>
  1792. <col ref="testcd"/>
  1793. <col ref="slidcnt"/>
  1794. </datagrid>
  1795. </group>
  1796. <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
  1797. <button id="btn_upd" class="btn4_letter2" navindex="19" style="left:1138px; top:3px; width:56px; height:22px; ">
  1798. <caption>저장</caption>
  1799. <script type="javascript" ev:event="DOMActivate">
  1800. <![CDATA[
  1801. fExeLendSave("insert");
  1802. ]]>
  1803. </script>
  1804. </button>
  1805. <line id="line28" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  1806. <button id="button1" class="btn4_letter5" navindex="18" style="left:1043; top:3px; width:92px; height:22px; ">
  1807. <caption>전처방반환</caption>
  1808. <script type="javascript" ev:event="DOMActivate">
  1809. <![CDATA[
  1810. fExeLendRtn("update");
  1811. ]]>
  1812. </script>
  1813. </button>
  1814. </group>
  1815. </xhtml:body>
  1816. </xhtml:html>