12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPD00700_슬라이드대출처방등록.xrw
- * 설 명 : 대출처방 목록 저장
- * 설 계 자 : 평화IS - 한음미
- * 작 성 자 : 평화IS - 한음미
- * 작 성 일 : 2008.06.19
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>슬라이드 대출 처방 등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <prcpinfo>
- <prcpinfolist>
- <choi/>
- <prcpcd/>
- <prcpnm/>
- <prcpcnt/>
- </prcpinfolist>
- </prcpinfo>
- <acptinfo>
- <acptinfolist>
- <choi/>
- <patnm/>
- <ptno/>
- <orddeptnm/>
- <indd/>
- <wardroom/>
- <prcpdd/>
- <acptdd/>
- <rsltdd/>
- <testnm/>
- <spcnm/>
- <testcd/>
- <spccd/>
- <wardcd/>
- <roomcd/>
- <orddrid/>
- <spcacptdd/>
- <spcacptno/>
- <orddeptcd/>
- <acptno/>
- <orddrnm/>
- <ptnocd/>
- <grosdrid/>
- <grosplgyid/>
- <acpttm/>
- <reqfrmno/>
- <relaptno/>
- <lendflagcd/>
- <trandd/>
- <tranno/>
- <transeqno/>
- <execprcpuniqno/>
- <spcbarcdno/>
- <blocno/>
- <prcpno/>
- <orddd/>
- <pid/>
- <orddrnm/>
- <spctrandd/>
- <spctranno/>
- <grostestdd/>
- <grostesttm/>
- <stdyptnocd/>
- <trustptnocd/>
- <workflagcd/>
- <slidflagcd/>
- <blocflagcd/>
- <initblocno/>
- <autokeepflagcd/>
- <stdy_workflagcd/>
- <stdy_slidflagcd/>
- <stdy_slidisscnt/>
- <stdy_blocflagcd/>
- <stdy_initblocno/>
- <stdy_autokeepflagcd/>
- <prcpgenrflag/>
- <orddd/>
- <cretno/>
- <prcphistno/>
- <dispptno/>
- <rrgstno1/>
- <rrgstno2/>
- <brthdd/>
- <sex/>
- </acptinfolist>
- </acptinfo>
- <choiinfo>
- <choiinfolist>
- <choi/>
- <instcd/>
- <prcpdd/>
- <acptdd/>
- <rsltdd/>
- <testnm/>
- <slidisscnt/>
- <ptno/>
- <patnm/>
- <prcpgenrflag/>
- <orddd/>
- <prcpcd/>
- <prcpnm/>
- <spccd/>
- <spcnm/>
- <orddeptcd/>
- <orddeptnm/>
- <orddrid/>
- <orddrnm/>
- <reqfrmno/>
- <dschdd/>
- <execprcpuniqno/>
- <prcpno/>
- <acptno/>
- <spcacptdd/>
- <spcacptno/>
- <spcacptseqno/>
- <bfacptdd/>
- <bfacptno/>
- <bfacptseqno/>
- <reuseflagcd/>
- <bfspcacptdd/>
- <bfspcacptno/>
- <acptdept/>
- <status/>
- <ptnocd/>
- <stdyptnocd/>
- <trustptnocd/>
- <workflagcd/>
- <slidflagcd/>
- <blocflagcd/>
- <initblocno/>
- <autokeepflagcd/>
- <stdy_workflagcd/>
- <stdy_slidflagcd/>
- <stdy_slidisscnt/>
- <stdy_blocflagcd/>
- <stdy_initblocno/>
- <stdy_autokeepflagcd/>
- <grupsnglflag/>
- <wardcd/>
- <roomcd/>
- <grosdrid/>
- <grosplgyid/>
- <acpttm/>
- <grostestdd/>
- <grostesttm/>
- <autosave/>
- <lendflagcd/>
- <trandd/>
- <tranno/>
- <transeqno/>
- <spcbarcdno/>
- <testcd/>
- <spchistno/>
- <blocno/>
- <relaptno/>
- <grostestdd/>
- <grostesttm/>
- <cretno/>
- <tootfact/>
- <spctranbarcdno/>
- <prcphistno/>
- <dispptno/>
- <rrgstno1/>
- <rrgstno2/>
- <brthdd/>
- <sex/>
- <signbfcnts/>
- <signafcnts/>
- <slidecnts/>
- <blockcnts/>
- <csteno/>
- <slidno/>
- </choiinfolist>
- </choiinfo>
- <errmsg>
- <errlist>
- <prcpcd/>
- <prcpnm/>
- <prcperr/>
- </errlist>
- </errmsg>
- <rtnslideinfo>
- <rtnslideinfolist>
- <instcd/>
- <choi/>
- <prcpdd/>
- <acptdd/>
- <dispptno/>
- <ptno/>
- <disprelaptno/>
- <relaptno/>
- <pid/>
- <patnm/>
- <testcd/>
- <testnm/>
- <tgrupcd/>
- <tgrupnm/>
- <orddeptcd/>
- <orddeptnm/>
- <orddrid/>
- <orddrnm/>
- <appeorddrid/>
- <appeorddrnm/>
- <readdrnm/>
- <patflagcd/>
- <rcptflagcd/>
- <orgacptstatcd/>
- <acptstatnm/>
- <spccd/>
- <spcnm/>
- <prcpcd/>
- <prcpnm/>
- <spcacptdd/>
- <spcacptno/>
- <spcacptseqno/>
- <blocno/>
- <cmt/>
- <acptno/>
- <acptitemno/>
- <orgacptdd/>
- <trandd/>
- <tranno/>
- <transeqno/>
- <execprcpuniqno/>
- <orgprcpstatcd/>
- <spctrandd/>
- <spctranno/>
- <prcpgenrflag/>
- <testflagcd/>
- <reqinstcd/>
- <reqworkno/>
- <prcpno/>
- <prcphistno/>
- <execprcpno/>
- <enddd/>
- <prcpgenrflag/>
- <orddd/>
- <reqfrmno/>
- <dschdd/>
- <execprcpuniqno/>
- <cretno/>
- <bfacptdd/>
- <bfacptno/>
- <bfacptseqno/>
- <reuseflagcd/>
- <bfspcacptdd/>
- <bfspcacptno/>
- <acptdept/>
- <status/>
- <bfcsteno/>
- <ptnocd/>
- <stdyptnocd/>
- <trustptnocd/>
- <workflagcd/>
- <slidflagcd/>
- <slidisscnt/>
- <blocflagcd/>
- <initblocno/>
- <autokeepflagcd/>
- <stdy_workflagcd/>
- <stdy_slidflagcd/>
- <stdy_slidisscnt/>
- <stdy_blocflagcd/>
- <stdy_initblocno/>
- <stdy_autokeepflagcd/>
- <grupsnglflag/>
- <spcbarcdno/>
- <grosdrid/>
- <grosplgyid/>
- <acpttm/>
- <m/>
- <prcphistno/>
- <grostestdd/>
- <grostesttm/>
- <autosave/>
- <lendflagcd/>
- <trandd/>
- <tranno/>
- <transeqno/>
- <spctrandd/>
- <spctranno/>
- <spcbarcdno/>
- <spctranbarcdno/>
- <tootfact/>
- <ordtype/>
- <acptstatcd/>
- <prcpstatcd/>
- </rtnslideinfolist>
- </rtnslideinfo>
- <cert>
- <certdata/>
- </cert>
- <saveprcp>
- <saveprcpinfo>
- <instcd/>
- <pid/>
- <prcp_ptno/>
- <dispptno/>
- <prcpnm/>
- <prcpcd/>
- <test_ptno/>
- <testnm/>
- <testcd/>
- <slidcnt/>
- </saveprcpinfo>
- </saveprcp>
- <plgyprcpinfo>
- <plgyprcplist>
- <choi/>
- <patnm/>
- <ptno/>
- <relaptno/>
- <prcpnm/>
- <spcnm/>
- <orddeptnm/>
- <prcpdd/>
- <acptdd/>
- <readdd/>
- <readdrnm/>
- <dispptno/>
- <disprelaptno/>
- <blockcnts/>
- <slidecnts/>
- <grosdrnm/>
- <deptengabbr/>
- <rcptflag/>
- </plgyprcplist>
- </plgyprcpinfo>
- <slideinfo>
- <slidelist>
- <choi/>
- <ptno/>
- <spcacptseqno/>
- <csteno/>
- <slidno/>
- <blockcnts/>
- <slidecnts/>
- </slidelist>
- </slideinfo>
- </main>
- <send>
- <instcd/>
- <flagcd/>
- <resncd/>
- <resncnts/>
- <tgrupcd/>
- </send>
- <init>
- <pid/>
- <ptnocode/>
- <fromyear/>
- <fromptno/>
- <toyear/>
- <toptno/>
- <patflag>0</patflag>
- <ptnocd>
- <ptnocdlist>
- <instcd/>
- <ptnocd/>
- <ptnonm/>
- </ptnocdlist>
- </ptnocd>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <autosave/>
- <lendflagcd/>
- <resncd>
- <resncdlist>
- <instcd/>
- <flagcd/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </resncd>
- <tgrupcd>-</tgrupcd>
- <popupmenu>
- <item>
- <name>선택목록 삭제</name>
- <func>fDelPrcpList</func>
- </item>
- </popupmenu>
- <acptddflag/>
- <hospenv>
- <hospenvinfo>
- <instcd/>
- <lendrtnterm/>
- <recvqualmthdcd/>
- <plgydeptcd/>
- <plgyteamcd/>
- <doctjobgradcd/>
- <teamjobgradcd/>
- </hospenvinfo>
- </hospenv>
- </init>
- <hidden>
- <acptfromdd/>
- <acpttodd/>
- <resncd/>
- <prcpcnt>1</prcpcnt>
- <slideinfo>
- <blockcnts/>
- <slidecnts/>
- <check/>
- <spcacptseqno/>
- <csteno/>
- <slidno/>
- </slideinfo>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <script type="javascript" src="../../../com/signweb/js/ZES001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
- <submission id="TRLPD00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptinfo/acptinfolist"/>
- <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
- <submission id="TRLPD00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcpinfo/prcpinfolist"/>
- <submission id="TXLPD00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/errmsg/errlist"/>
- <submission id="TRLPD00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rtnslideinfo/rtnslideinfolist"/>
- <submission id="TXLPD00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/errmsg/errlist"/>
- <submission id="TRLPD00704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/saveprcp/saveprcpinfo"/>
- <submission id="TRLPD00705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/plgyprcpinfo/plgyprcplist"/>
- <submission id="TXLPD00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/errmsg/errlist"/>
- <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
- <submission id="TRLPD00706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/slideinfo/slidelist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var sInptPsw = true; //화면 오픈 후 처방변경시 최초 한번만 암호를 입력받음.
-
- /* @group : 대출 목록 조회/저장 화면
- * @ver : 2008.06.19 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화 함수
- */
- function fExeInitialize(){
-
- var sCurDate="";
-
- model.removeNodeset("/root/main/prcpinfo/prcpinfolist");
- model.removeNodeset("/root/main/acptinfo/acptinfolist");
- model.removeNodeset("/root/main/choiinfo/choiinfolist");
- model.removeNodeset("/root/main/rtnslideinfo/rtnslideinfolist");
- model.removeNodeset("/root/main/saveprcp/saveprcpinfo");
-
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- //---------------------------------------------------------------
- fExeFlag(); // 대출구분
- btn_rtnslide.visible = false;
- btn_lendslide.visible = false;
-
- submit("TRLPZ00102",false); // 시스템 일자 조회
- submit("TRLPD00702",false); // 처방목록 조회
- submit("TRLPZ00109"); //병리번호 목록 조회
- //------------------------------------------------------------
- sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
- //------------
- // 초기값 설정
- model.makeValue("/root/hidden/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(fromdd)
- model.makeValue("/root/hidden/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(todd)
- model.makeValue("/root/init/ptnocode", "");
- model.makeValue("/root/init/fromyear", sCurDate.substr(2,2)); // 병리번호 년도(fromyear)
- model.makeValue("/root/init/toyear", sCurDate.substr(2,2)); // 병리번호 년도(toyear)
- model.makeValue("/root/init/fromptno", ""); // 병리번호(시작)
- model.makeValue("/root/init/toptno", ""); // 병리번호(끝)
-
- //병원환결설정 조회
- submit("TRLPZ00101", false);
-
- //처방목록 체크박스 비활성화
- grd_prcplist.colDisabled(grd_prcplist.colRef("choi")) = true;
- grd_prcplist.colDisabled(grd_prcplist.colRef("prcpcnt")) = true;
-
- model.refresh();
- }
-
- /* @group : 대출 목록 조회/저장 화면
- * @ver : 2008.06.19 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 대출구분이 대출(0), 반납(1) 구별 함수
- */
- function fExeFlag(){
-
- if (model.getValue("/root/init/patflag") == "0"){
- button1.disabled = true;
- btn_upd.disabled = false;
- grd_prcplist.colDisabled (0) = false;
- grd_prcplist.refresh();
- model.toggle("case_lendslide"); // 대출 일때..
- model.setValue("/root/init/patflag", "0");
- btn_rtnslide.visible = false;
- btn_lendslide.visible = false;
-
- }else if (model.getValue("/root/init/patflag") == "1"){
- button1.disabled = false;
- btn_upd.disabled = true;
- grd_prcplist.colDisabled (0) = true;
- grd_prcplist.refresh();
- model.toggle("case_rtnslide"); // 반납 일때..
- btn_rtnslide.visible = false;
- btn_lendslide.visible = false;
- }
- }
-
- /* @group : 대출 목록 조회/저장 화면
- * @ver : 2008.06.19 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 전처방반환 함수
- */
- function fExeLendRtn(pStatCd){
-
- var iCnt = 0;
-
- iCnt = grd_rtnslideinfolist.findRow("true", 1, 0, false, false);
- if (Number(iCnt) <= 0) {
- messageBox("반납 할 슬라이드를 선택하여 주십시오!", "I");
- return false;
- }
-
- var sRefVal = model.getValue("/root/init/pid");
-
- if (sRefVal.length < 3) {
- messageBox("등록번호는 3자리 이상", "C001"); // 등록번호가 3자리 이상 조회
- return false;
- }
-
-
- var sSrcNode = "/root/main/rtnslideinfo/rtnslideinfolist";
-
- for (var jNo=1; jNo <= getNodesetCount(sSrcNode); jNo++) {
-
- if (model.getValue(sSrcNode+"["+jNo+"]/choi") == "true") {
- model.setValue(sSrcNode+"["+jNo+"]/status","C");
- }
- }
-
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/rtnslideinfolist", grd_rtnslideinfolist.getUpdateData(pStatCd));
-
- model.makeValue("/root/send/resncd" , "9999");
- model.makeValue("/root/send/resncnts" , "전처방이 반환되었습니다.");
- model.makeValue("/root/send/tgrupcd", "-");
-
- //------------------------------------------------------------
- //-----------
- setAlertOn();
- if (submit("TXLPD00702")) {
- //------------------------------------------------------
- if (getNodesetCount("/root/main/errmsg/errlist") <= 0) {
- model.makeValue("/root/init/prcprowno", "0");
- } else {
- var sErrMsg = "";
- sErrMsg += "처방명 : [" + model.getValue("/root/main/errmsg/errlist/prcpcd") + "] ";
- sErrMsg += model.getValue("/root/main/errmsg/errlist/prcpnm") + "\n\n";
- sErrMsg += "오류내용 : " + model.getValue("/root/main/errmsg/errlist/prcperr");
- messageBox(sErrMsg, "E009");
- }
- model.removeNodeset("/root/main/rtnslideinfo/rtnslideinfolist");
- model.refresh();
- }
- fGetPatInfoList();
- }
-
- /* @group : 대출 목록 조회/저장 화면
- * @ver : 2008.06.19 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 대출할 목록 선택 함수
- */
- function fGetSelectPatInfoList(){
-
- var sNode = "/root/main/acptinfo/acptinfolist";
- var Node = "/root/main/prcpinfo/prcpinfolist";
- var sDestNode = "/root/main/choiinfo/choiinfolist";
-
-
- var No = grd_prcplist.findRow(model.getValue(sNode+"["+ grd_acptlist.row+"]/choi"),1,0,false,false);
- var i =0;
- if (No <0 ){
- messageBox("처방코드를 선택하지 않았습니다!", "I007");
- model.setValue(sNode+"["+grd_acptlist.row+"]/choi", "false");
- }else{
- for (var a=1; a <= getNodesetCount(Node); a++) {
- if (model.getValue(Node+"["+a+"]/choi") == "true") {
- i++;
- }
- }
- if (i>=2){
- messageBox("한 처방에 한 처방코드를 선택하십시오!","I");
- model.setValue(sNode+"["+grd_acptlist.row+"]/choi", "false");
- }
- }
-
-
- if (model.getValue(sNode + "[" + grd_acptlist.row +"]/choi") == "true") {
-
- var iNo = grd_choilist.findRow(model.getValue(sNode+"["+ grd_acptlist.row+"]/ptno"),1,1,false,false);
- if (iNo <0){
- var jNo = grd_choilist.findRow(model.getValue(sNode+"["+ grd_acptlist.row+"]/spcnm"),9,1,false,false);
- if(jNo<0){
- var kNo = grd_choilist.findRow(model.getValue(sNode+"["+ grd_acptlist.row+"]/testnm"),10,1,false,false);
- if(kNo<0){
- grd_choilist.addRow();
-
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/choi", "true"); // 선택
- model.setValue(sDestNode+"["+grd_choilist.row+"]/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 처방일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/acptdd", model.getValue(sNode+"["+grd_acptlist.row +"]/acptdd")); // 접수일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/rsltdd", model.getValue(sNode+"["+grd_acptlist.row +"]/rsltdd")); // 결과일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/testnm", model.getValue(sNode+"["+grd_acptlist.row +"]/testnm")); // 검사명
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/ptno", model.getValue(sNode+"["+grd_acptlist.row +"]/ptno")); // 병리번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/patnm", model.getValue(sNode+"["+grd_acptlist.row +"]/patnm")); // 환자명
- model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpgenrflag", model.getValue(sNode+"["+grd_acptlist.row +"]/prcpgenrflag")); // 처방발생구분
- model.setValue(sDestNode+"["+grd_choilist.row+"]/orddd", model.getValue(sNode+"["+grd_acptlist.row +"]/indd")); // 진료일자
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpcd", model.getValue(Node+"["+No +"]/prcpcd")); // 처방코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpnm", model.getValue(Node+"["+No +"]/prcpnm")); // 처방명
-
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/orddeptcd", model.getValue(sNode+"["+grd_acptlist.row +"]/orddeptcd")); // 진료과코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/orddeptnm", model.getValue(sNode+"["+grd_acptlist.row +"]/orddeptnm")); // 진료과명
- model.setValue(sDestNode+"["+grd_choilist.row+"]/orddrid", model.getValue(sNode+"["+grd_acptlist.row +"]/orddrid")); // 진료의사ID
- model.setValue(sDestNode+"["+grd_choilist.row+"]/orddrnm", model.getValue(sNode+"["+grd_acptlist.row +"]/orddrnm")); // 진료의사명
- model.setValue(sDestNode+"["+grd_choilist.row+"]/reqfrmno", model.getValue(sNode+"["+grd_acptlist.row +"]/reqfrmno")); // 의뢰지번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/dschdd", "-"); // 퇴원일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/execprcpuniqno", model.getValue(sNode+"["+grd_acptlist.row +"]/execprcpuniqno")); // 실시처방유일번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpno", model.getValue(sNode+"["+grd_acptlist.row +"]/prcpno")); // 처방번호
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/acptno", model.getValue(sNode+"["+grd_acptlist.row +"]/acptno")); // 생성번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spcacptdd", model.getValue(sNode+"["+grd_acptlist.row +"]/spcacptdd")); // 검체접수일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spcacptno", model.getValue(sNode+"["+grd_acptlist.row +"]/spcacptno")); // 검체접수번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spcacptseqno", "-"); // 검체접수일련번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/bfacptdd", "-"); // 이전접수일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/bfacptno", "-"); // 이전접수번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/bfacptseqno", "-"); // 이전접수일련번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/reuseflagcd", "1"); // 재사용구분코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/bfspcacptdd", "-"); // 이전검체접수일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/bfspcacptno", "-"); // 이전검체접수번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/acptdept", "-"); // 접수과코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/status", "I"); // 상태
- model.setValue(sDestNode+"["+grd_choilist.row+"]/ptnocd", model.getValue(sNode+"["+grd_acptlist.row +"]/ptnocd")); // 병리번호코드
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/grupsnglflag", "-"); // grouping/single
- model.setValue(sDestNode+"["+grd_choilist.row+"]/wardcd", model.getValue(sNode+"["+grd_acptlist.row +"]/wardcd")); //병동
- model.setValue(sDestNode+"["+grd_choilist.row+"]/roomcd", model.getValue(sNode+"["+grd_acptlist.row +"]/roomcd")); //병실
- model.setValue(sDestNode+"["+grd_choilist.row+"]/grosdrid", model.getValue(sNode+"["+grd_acptlist.row +"]/grosdrid")); // 병리의사ID
- model.setValue(sDestNode+"["+grd_choilist.row+"]/grosplgyid", model.getValue(sNode+"["+grd_acptlist.row +"]/grosplgyid")); //병리사 ID
- model.setValue(sDestNode+"["+grd_choilist.row+"]/acpttm", model.getValue(sNode+"["+grd_acptlist.row +"]/acpttm")); //접수시간
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/grostestdd", model.getValue(sNode+"["+grd_acptlist.row +"]/grostestdd")); //검사판독일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/grostesttm", model.getValue(sNode+"["+grd_acptlist.row +"]/grostesttm")); //검사판독시간
- model.setValue(sDestNode+"["+grd_choilist.row+"]/autosave", "1"); // 자동저장
- model.setValue(sDestNode+"["+grd_choilist.row+"]/lendflagcd", "0"); // 대출구분여부
- model.setValue(sDestNode+"["+grd_choilist.row+"]/trandd", model.getValue(sNode+"["+grd_acptlist.row +"]/trandd")); // 이송일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/tranno", model.getValue(sNode+"["+grd_acptlist.row +"]/tranno")); // 이송번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/transeqno", model.getValue(sNode+"["+grd_acptlist.row +"]/transeqno")); // 이송일련번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spcbarcdno", model.getValue(sNode+"["+grd_acptlist.row +"]/spcbarcdno")); // 검체바코드번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/testcd", model.getValue(sNode+"["+grd_acptlist.row +"]/testcd")); // 검사코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/relaptno", model.getValue(sNode+"["+grd_acptlist.row +"]/relaptno")); // 관련병리번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/pid", model.getValue(sNode+"["+grd_acptlist.row +"]/pid")); // 등록번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/blocno", model.getValue(sNode+"["+grd_acptlist.row +"]/blocno")); // 블럭번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spcnm", model.getValue(sNode+"["+grd_acptlist.row +"]/spcnm")); // 검체명
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spccd", model.getValue(sNode+"["+grd_acptlist.row +"]/spccd")); // 검체코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spchistno", model.getValue(sNode+"["+grd_acptlist.row +"]/spchistno")); // 검체이력코드
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/stdyptnocd", model.getValue(sNode+"["+grd_acptlist.row +"]/stdyptnocd")); // 연구병리코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/trustptnocd", model.getValue(sNode+"["+grd_acptlist.row +"]/trustptnocd")); // 수탁병리코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/workflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/workflagcd")); // 작업구분코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/slidflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/slidflagcd")); // 슬라이드구분코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/blocflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/blocflagcd")); // 블록구분코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/initblocno", model.getValue(sNode+"["+grd_acptlist.row +"]/initblocno")); // 초기블록번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/autokeepflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/autokeepflagcd")); // 자동보관여부
- model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_workflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/stdy_workflagcd")); // 연구작업구분코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_slidflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/stdy_slidflagcd")); // 연구슬라이드구분코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_slidisscnt", model.getValue(sNode+"["+grd_acptlist.row +"]/stdy_slidisscnt")); // 연구슬라이드갯수
- model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_blocflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/stdy_blocflagcd")); // 연구블록구분코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_initblocno", model.getValue(sNode+"["+grd_acptlist.row +"]/stdy_initblocno")); // 연구초기블록번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_autokeepflagcd", model.getValue(sNode+"["+grd_acptlist.row +"]/stdy_autokeepflagcd")); // 연구자동보관여부
- model.setValue(sDestNode+"["+grd_choilist.row+"]/cretno", model.getValue(sNode+"["+grd_acptlist.row +"]/cretno")); // 생성번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/tootfact", "-"); // 치식
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spctranbarcdno", model.getValue(sNode+"["+grd_acptlist.row +"]/spcbarcdno")); // 검체이송바코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/prcphistno" , model.getValue(sNode+"["+grd_acptlist.row +"]/prcphistno")); // 처방이력번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/dispptno" , model.getValue(sNode+"["+grd_acptlist.row +"]/dispptno")); // disp 병리번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/rrgstno1" , model.getValue(sNode+"["+grd_acptlist.row +"]/rrgstno1")); // 주민번호1
- model.setValue(sDestNode+"["+grd_choilist.row+"]/rrgstno2" , model.getValue(sNode+"["+grd_acptlist.row +"]/rrgstno2")); // 주민번호2
- model.setValue(sDestNode+"["+grd_choilist.row+"]/brthdd" , model.getValue(sNode+"["+grd_acptlist.row +"]/brthdd")); // 생년월일
- model.setValue(sDestNode+"["+grd_choilist.row+"]/sex" , model.getValue(sNode+"["+grd_acptlist.row +"]/sex")); // 성별
- }
- grd_choilist.topRow = grd_choilist.rows -1;
- }
- }
- }
- //model.setValue(sNode+"["+grd_acptlist.row+"]/choi","true");
- }
-
- /* @group : 대출 목록 조회/저장 화면
- * @ver : 2008.06.19 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 대출할 목록 선택 함수
- */
- function fGetSelectPatInfoList2(pRowNo){
-
- //var sNode = "/root/main/acptinfo/acptinfolist";
- var sNode = "/root/main/plgyprcpinfo/plgyprcplist"
- var Node = "/root/main/prcpinfo/prcpinfolist";
- var sDestNode = "/root/main/choiinfo/choiinfolist";
-
- //var No = grd_prcplist.findRow(model.getValue(sNode+"["+ grd_plgyprcplist.row+"]/choi"),1,0,false,false);
- var No = pRowNo;
- if (No <0 ){
- messageBox("처방코드를 선택하지 않았습니다!", "I007");
- model.setValue(sNode+"["+grd_plgyprcplist.row+"]/choi", "false");
- }
-
- var i =0;
- /*
- if (No <0 ){
- messageBox("처방코드를 선택하지 않았습니다!", "I007");
- model.setValue(sNode+"["+grd_plgyprcplist.row+"]/choi", "false");
- }else{
- for (var a=1; a <= getNodesetCount(Node); a++) {
- if (model.getValue(Node+"["+a+"]/choi") == "true") {
- i++;
- }
- }
-
- if (i>=2){
- messageBox("한 처방에 한 처방코드를 선택하십시오!","I");
- model.setValue(sNode+"["+grd_plgyprcplist.row+"]/choi", "false");
- }
-
- }
- */
-
- if (model.getValue(sNode + "[" + grd_plgyprcplist.row +"]/choi") == "true") {
-
- var iNo = grd_choilist.findRow(model.getValue(sNode+"["+ grd_plgyprcplist.row+"]/ptno"),1,1,false,false);
- if (iNo <0){
- var jNo = grd_choilist.findRow(model.getValue(sNode+"["+ grd_plgyprcplist.row+"]/spcnm"),9,1,false,false);
- if(jNo<0){
- var kNo = grd_choilist.findRow(model.getValue(sNode+"["+ grd_plgyprcplist.row+"]/testnm"),10,1,false,false);
- if(kNo<0){
- grd_choilist.addRow(false);
-
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/choi", "true"); // 선택
- model.setValue(sDestNode+"["+grd_choilist.row+"]/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpdd", getCurrentDate()); // 처방일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/acptdd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/acptdd")); // 접수일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/rsltdd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/rsltdd")); // 결과일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/testnm", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/testnm")); // 검사명
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/ptno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/ptno")); // 병리번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/patnm", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/patnm")); // 환자명
- model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpgenrflag", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/prcpgenrflag")); // 처방발생구분
- model.setValue(sDestNode+"["+grd_choilist.row+"]/orddd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/orddd")); // 진료일자
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpcd", model.getValue(Node+"["+ No +"]/prcpcd")); // 처방코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpnm", model.getValue(Node+"["+ No +"]/prcpnm")); // 처방명
-
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/orddeptcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/orddeptcd")); // 진료과코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/orddeptnm", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/orddeptnm")); // 진료과명
- model.setValue(sDestNode+"["+grd_choilist.row+"]/orddrid", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/orddrid")); // 진료의사ID
- model.setValue(sDestNode+"["+grd_choilist.row+"]/orddrnm", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/orddrnm")); // 진료의사명
- model.setValue(sDestNode+"["+grd_choilist.row+"]/reqfrmno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/reqfrmno")); // 의뢰지번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/dschdd", "-"); // 퇴원일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/execprcpuniqno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/execprcpuniqno")); // 실시처방유일번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/prcpno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/prcpno")); // 처방번호
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/acptno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/acptno")); // 생성번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spcacptdd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/spcacptdd")); // 검체접수일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spcacptno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/spcacptno")); // 검체접수번호
- // 검체접수일련번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/bfacptdd", "-"); // 이전접수일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/bfacptno", "-"); // 이전접수번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/bfacptseqno", "-"); // 이전접수일련번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/reuseflagcd", "1"); // 재사용구분코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/bfspcacptdd", "-"); // 이전검체접수일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/bfspcacptno", "-"); // 이전검체접수번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/acptdept", "-"); // 접수과코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/status", "I"); // 상태
- model.setValue(sDestNode+"["+grd_choilist.row+"]/ptnocd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/ptnocd")); // 병리번호코드
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/grupsnglflag", "-"); // grouping/single
- model.setValue(sDestNode+"["+grd_choilist.row+"]/wardcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/wardcd")); //병동
- model.setValue(sDestNode+"["+grd_choilist.row+"]/roomcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/roomcd")); //병실
- model.setValue(sDestNode+"["+grd_choilist.row+"]/grosdrid", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/grosdrid")); // 병리의사ID
- model.setValue(sDestNode+"["+grd_choilist.row+"]/grosplgyid", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/grosplgyid")); //병리사 ID
- model.setValue(sDestNode+"["+grd_choilist.row+"]/acpttm", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/acpttm")); //접수시간
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/grostestdd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/grostestdd")); //검사판독일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/grostesttm", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/grostesttm")); //검사판독시간
- model.setValue(sDestNode+"["+grd_choilist.row+"]/autosave", "1"); // 자동저장
- model.setValue(sDestNode+"["+grd_choilist.row+"]/lendflagcd", "0"); // 대출구분여부
- model.setValue(sDestNode+"["+grd_choilist.row+"]/trandd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/trandd")); // 이송일자
- model.setValue(sDestNode+"["+grd_choilist.row+"]/tranno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/tranno")); // 이송번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/transeqno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/transeqno")); // 이송일련번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spcbarcdno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/spcbarcdno")); // 검체바코드번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/testcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/testcd")); // 검사코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/relaptno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/relaptno")); // 관련병리번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/pid", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/pid")); // 등록번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/blocno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/blocno")); // 블럭번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spcnm", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/spcnm")); // 검체명
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spccd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/spccd")); // 검체코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spchistno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/spchistno")); // 검체이력코드
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/stdyptnocd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/stdyptnocd")); // 연구병리코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/trustptnocd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/trustptnocd")); // 수탁병리코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/workflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/workflagcd")); // 작업구분코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/slidflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/slidflagcd")); // 슬라이드구분코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/blocflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/blocflagcd")); // 블록구분코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/initblocno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/initblocno")); // 초기블록번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/autokeepflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/autokeepflagcd")); // 자동보관여부
- model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_workflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/stdy_workflagcd")); // 연구작업구분코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_slidflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/stdy_slidflagcd")); // 연구슬라이드구분코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_slidisscnt", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/stdy_slidisscnt")); // 연구슬라이드갯수
- model.setValue(sDestNode+"["+grd_choilist.row+"]/slidisscnt", "1"); //슬라이드 갯수
- model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_blocflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/stdy_blocflagcd")); // 연구블록구분코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_initblocno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/stdy_initblocno")); // 연구초기블록번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/stdy_autokeepflagcd", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/stdy_autokeepflagcd")); // 연구자동보관여부
- model.setValue(sDestNode+"["+grd_choilist.row+"]/cretno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/cretno")); // 생성번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/tootfact", "-"); // 치식
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spctranbarcdno", model.getValue(sNode+"["+grd_plgyprcplist.row +"]/spcbarcdno")); // 검체이송바코드
- model.setValue(sDestNode+"["+grd_choilist.row+"]/prcphistno" , model.getValue(sNode+"["+grd_plgyprcplist.row +"]/prcphistno")); // 처방이력번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/dispptno" , model.getValue(sNode+"["+grd_plgyprcplist.row +"]/dispptno")); // disp 병리번호
- model.setValue(sDestNode+"["+grd_choilist.row+"]/rrgstno1" , model.getValue(sNode+"["+grd_plgyprcplist.row +"]/rrgstno1")); // 주민번호1
- model.setValue(sDestNode+"["+grd_choilist.row+"]/rrgstno2" , model.getValue(sNode+"["+grd_plgyprcplist.row +"]/rrgstno2")); // 주민번호2
- model.setValue(sDestNode+"["+grd_choilist.row+"]/brthdd" , model.getValue(sNode+"["+grd_plgyprcplist.row +"]/brthdd")); // 생년월일
- model.setValue(sDestNode+"["+grd_choilist.row+"]/sex" , model.getValue(sNode+"["+grd_plgyprcplist.row +"]/sex")); // 성별
- model.setValue(sDestNode+"["+grd_choilist.row+"]/orddd" , model.getValue(sNode+"["+grd_plgyprcplist.row +"]/orddd"));
-
- model.setValue(sDestNode+"["+grd_choilist.row+"]/blockcnts" , model.getValue("/root/hidden/slideinfo/blockcnts"));
- model.setValue(sDestNode+"["+grd_choilist.row+"]/slidecnts" , model.getValue("/root/hidden/slideinfo/slidecnts"));
- model.setValue(sDestNode+"["+grd_choilist.row+"]/spcacptseqno", model.getValue("/root/hidden/slideinfo/spcacptseqno"));
- model.setValue(sDestNode+"["+grd_choilist.row+"]/csteno", model.getValue("/root/hidden/slideinfo/csteno"));
- model.setValue(sDestNode+"["+grd_choilist.row+"]/slidno", model.getValue("/root/hidden/slideinfo/slidno"));
- }
- grd_choilist.topRow = grd_choilist.rows -1;
- }
- }
- }
- grd_choilist.refresh();
- //model.setValue(sNode+"["+grd_plgyprcplist.row+"]/choi","true");
- }
-
-
- /* @group : 대출 목록 조회/저장 화면
- * @ver : 2008.06.19 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 환자정보 조회 함수
- */
- function fGetPatInfoList(){
-
- var sTemp = '';
- var sFromDD = model.getValue("/root/hidden/acptfromdd");
- var sToDD = model.getValue("/root/hidden/acpttodd");
-
- sRefVal = model.getValue("/root/init/pid");
-
- //등록번호 입력은 반납 조회일때만 필수로 한다.
- if(model.getValue("/root/init/patflag") != "0") {
- if (sRefVal.length <3) {
- messageBox("등록번호는 3자리 이상", "C001"); // 등록번호가 3자리 이상 조회
- return false;
- }
- }
-
- //등록번호, 병리번호 모두 입력이 되지 않았을 경우에는 접수일자로 조회를 한다.
- if (sRefVal.length <= 0) {
- if(model.getValue("/root/init/ptnocode") == "" || model.getValue("/root/init/ptnocode") == "-") {
- messageBox("등록번호 또는 병리번호를", "C001"); // 등록번호가 3자리 이상 조회
- return false;
- }
- }
-
- /*
- //등록번호 또는 병리번호가 입력되었을 경우 접수일자로는 조회를 하지 않는다.
- if ((sRefVal != "") || ((model.getValue("/root/init/ptnocode") != "") && (model.getValue("/root/init/ptnocode") != "-"))) {
-
- if((model.getValue("/root/init/ptnocode") != "") && (model.getValue("/root/init/ptnocode") != "-")) {
- if (model.getValue("/root/init/fromptno") == "") {
- model.makeValue("/root/init/fromptno", "000000");
- } else {
- sTemp = model.getValue("/root/init/fromptno");
- model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
- }
- }
- }
- */
-
- //if(model.getValue("/root/init/patflag") != "0") {
- //------------------------------------------------
- if (model.getValue("/root/init/ptnocode") != "") {
-
- //------------------------------------------------
- if (model.getValue("/root/init/fromyear") == "") {
- model.makeValue("/root/init/fromyear", sFromDD.substr(2,2)); // 병리번호 시작 년도의 2자리
- } else {
- sTemp = model.getValue("/root/init/fromyear");
- model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
- }
-
- //----------------------------------------------
- if (model.getValue("/root/init/toyear") == "") {
- model.makeValue("/root/init/toyear", sToDD.substr(2,2)); // 병리번호 종료 년도의 2자리
- } else {
- sTemp = model.getValue("/root/init/toyear");
- model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
- }
-
- //------------------------------------------------
- if (model.getValue("/root/init/fromptno") == "") {
- model.makeValue("/root/init/fromptno", "000000"); // 시작 병리번호가 ''일때
- } else {
- sTemp = model.getValue("/root/init/fromptno");
- model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
- }
-
- //----------------------------------------------
- if (model.getValue("/root/init/toptno") == "") {
- model.makeValue("/root/init/toptno", "999999"); // 종료 병리번호가 ''일때
- } else {
- sTemp = model.getValue("/root/init/toptno");
- model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
- }
- }
- // }
-
- //--------------------------------------------
- sTemp = model.getValue("/root/init/ptnocode");
-
- //--------------------------------
- model.removeNodeset("/root/send");
-
- //-----------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.makeValue("/root/send/acptfromdd", model.getValue("/root/hidden/acptfromdd")); // 접수시작일자
- model.makeValue("/root/send/acpttodd", model.getValue("/root/hidden/acpttodd")); // 접수종료일자
- model.makeValue("/root/send/ptnocode", sTemp.replace("-", "")); // 병리 코드가 "" 이면 "-"
- model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
- model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
- model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
- model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
- model.makeValue("/root/send/acptddflag", model.getValue("/root/init/acptddflag"));
- model.makeValue("/root/send/scrno", "SMLPD00700");
-
- model.makeValue("/root/send/pid", model.getValue("/root/init/pid")); // 등록번호
- model.makeValue("/root/send/patflag", model.getValue("/root/init/patflag")); // 환자 구분
-
- model.removeNodeset("/root/main/acptinfo/acptinfolist");
- model.removeNodeset("/root/main/rtnslideinfo/rtnslideinfolist");
- model.removeNodeset("/root/main/choiinfo/choiinfolist");
-
- if (model.getValue("/root/init/patflag") == "0") { // 대출구분이 대출일때
- //submit("TRLPD00701");
- submit("TRLPD00705");
-
- grd_plgyprcplist.rebuildStyle();
-
- for(var iRowNo = 1 ; iRowNo <grd_plgyprcplist.rows ; iRowNo++) {
- //접수되지 않은 처방은 색으로 표시하여준다.
- if(model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/acptdd") == "") {
- grd_plgyprcplist.rowstyle(iRowNo, "data", "background-color") = "#00CC66";
- }
-
- //대출처방은 선택 되지 않도록 비활성화 한다.
- if(model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/workflagcd") == "1011" || model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/acptdd") == "") {
- grd_plgyprcplist.isReadOnly(iRowNo, 0) = true;
- } else {
- grd_plgyprcplist.isReadOnly(iRowNo, 0) = false;
- }
- }
-
- //처방목록 초기화
- for(var iRowNo = 1 ; iRowNo < grd_prcplist.rows ; iRowNo++) {
- model.setValue("/root/main/prcpinfo/prcpinfolist["+ iRowNo+"]/choi", "false");
- }
-
- //처방목록 체크박스 활성화
- grd_prcplist.colDisabled(grd_prcplist.colRef("choi")) = true;
- for(var iRowNo = 1 ; iRowNo < grd_prcplist.rows ; iRowNo++) {
- model.setValue("/root/main/prcpinfo/prcpinfolist["+iRowNo+"]/prcpcnt", 0);
- }
- grd_prcplist.colDisabled(grd_prcplist.colRef("prcpcnt")) = true;
-
- //처방개수 입력창 숨기기.
- grp_prcpcnt.visible = false;
-
- }else {
- submit("TRLPD00703"); // 대출구분이 반납일때
- }
- //submit("TRLPD00704"); // 오늘 대출 되었던 슬라이드
-
- model.removeNodeset("/root/hidden/slideinfo"); //블록/슬라이드 정보 리셋
-
- grd_plgyprcplist.refresh();
-
- }
-
- /* @group : 대출 목록 조회/저장 화면
- * @ver : 2008.06.19 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 슬라이드 대출처방 저장함수
- */
- function fExeLendSave(pStatCd){
-
- var iCnt = 0;
- var sChek = "";
-
- //-----------------------------------------------------------------------------------------------
- if (model.getValue("/root/init/hospenv/hospenvinfo/doctjobgradcd") != getUserInfo("jobkindcd")) {
- messageBox("의사직급만 저장이 ", "I006");
- return false;
- }
-
- iCnt = grd_choilist.findRow("true", 1, 1, false, false);
- if (Number(iCnt) <= 0) {
- messageBox("대출할 슬라이드를 선택하여 주십시오!", "I");
- return false;
- }
- //--------------------------------
- var sNode = "/root/main/choiinfo/choiinfolist";
-
- //grd_choilist.clearStatus();
- for (var i=1; i <= getNodesetCount(sNode); i++) {
- //------------------------------------
- if (model.getValue(sNode+"["+i+"]/choi") == "true") {
-
- if(model.getValue(sNode+"["+i+"]/slidisscnt") == "") {
- messageBox(i+"행에 슬라이드 장수가 입력되지 않았습니다.","I");
- return false;
- }
- /*
- if((i+1)<=getNodesetCount(sNode)){
- if((model.getValue(sNode+"["+i+"]/prcpcd")) != (model.getValue(sNode+"["+(i+1)+"]/prcpcd"))){
- messageBox((i+1)+"행의 처방코드가 다릅니다.","I");
- return false;
- }
- }
- */
- }
- }
-
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
- //------------------------------------
- // 인증자료를 생성
- if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
-
- model.setValue(sNode+"["+iNo+"]/status","I");
- model.makeValue(sNode+"["+iNo+"]/prcpflag","1");
- model.makeValue(sNode+"["+iNo+"]/drugmthdspccdnm","Other");
- model.makeValue(sNode+"["+iNo+"]/drugmthdspccd","T99999");
-
- //----------------
- // 인증데이타 생성
- grd_choilist.addStatus(iNo, "insert");
- //model.removeNodeset("/root/main/cert/certdata");
- //model.makeNode("/root/main/cert/certdata");
- //copyNodesetType("/root/main/cert/certdata", sNode+"["+iNo+"]");
-
- //----------------
- //암호화 이전 처방인증 데이터 생성
- model.setValue(sNode+"["+iNo+"]/signbfcnts", lpzfPlgyPrcpSignMake(sNode+"["+iNo+"]", "Y"));
-
- //----------------
- // 암호화자료 생성
- sChek = lpzfPlgyPrcpSaveSign(sNode+"["+iNo+"]/signbfcnts", getUserInfo ("userid"), sInptPsw, sNode+"["+iNo+"]/signafcnts");
- sInptPsw = false;
- if(sChek == "" || sChek == "N") {
- messageBox("처방인증을 하여 주십시오.","E999");
- return;
- }
- /*
- if (Sign.signprocess()) {
- model.setValue(sNode+"["+iNo+"]/signbfcnts", Sign.signedInfos[1]); // 인증 전 자료
- model.setValue(sNode+"["+iNo+"]/signafcnts", Sign.signedInfos[2]); // 인증 후 자료
-
- } else {
- return false;
- }
- */
-
- }
- }
-
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/choiinfolist", grd_choilist.getUpdateData(pStatCd));
-
- //-----------
- setAlertOn();
- if (submit("TXLPD00703")) {
- //------------------------------------------------------
- if (getNodesetCount("/root/main/errmsg/errlist") <= 0) {
- model.makeValue("/root/init/prcprowno", "0");
- for(var iRow = 1; iRow<getNodesetCount("/root/main/prcpinfo/prcpinfolist"); iRow++){
- model.setValue("/root/main/prcpinfo/prcpinfolist"+"["+iRow+"]/choi", "false");
- }
- } else {
- var sErrMsg = "";
- sErrMsg += "처방명 : [" + model.getValue("/root/main/errmsg/errlist/prcpcd") + "] ";
- sErrMsg += model.getValue("/root/main/errmsg/errlist/prcpnm") + "\n\n";
- sErrMsg += "오류내용 : " + model.getValue("/root/main/errmsg/errlist/prcperr");
- messageBox(sErrMsg, "E009");
- }
- model.removeNodeset("/root/main/choiinfo/choiinfolist");
- model.removeNodeset("/root/main/acptinfo/acptinfolist");
- model.refresh();
- }
- fGetPatInfoList();
- }
-
- /* @group : 대출 목록 조회/저장 화면
- * @ver : 2008.06.19 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : ENRSignEngine.js에서 함수를 호출
- */
- function fMake_SignData() {
- Sign.addnode("/root/main/cert/certdata");
- }
-
- /* @group : 대출 목록 조회/저장 화면
- * @ver : 2008.06.19 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 등록번호 입력후 엔터키
- */
- function fExeRefValKeyPress() {
- if(event.keyCode == 13) {
- model.setValue("/root/init/pid", ipt_refval.currentText);
- ipt_refval.refresh();
- //--------------------------- 조회 호출
- fGetPatInfoList();
- }
- }
-
- /* @group : 대출 목록 조회/저장 화면
- * @ver : 2009.02.25 (CMCDEV-0001)
- * @by : 박중규
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택목록으로 처방 set
- */
- function fExeAddprcp() {
- model.setValue("/root/hidden/prcpcnt", ipt_slidcnt.currentText);
- ipt_slidcnt.refresh();
- var iprcpcnt = ipt_slidcnt.currentText;
- var iCnt = 0;
-
- //앞에서 블록/슬라이드를 선택하였는지 확인
- if(model.getValue("/root/hidden/slideinfo/check") != "Y"){
- messageBox("블록/슬라이드를 선택하지 않으셨습니다.", "I007");
- return;
- }
-
- for(var iRowNo = 1 ; iRowNo < grd_prcplist.rows ; iRowNo++) {
- iprcpcnt = Number(model.getValue("/root/main/prcpinfo/prcpinfolist["+ iRowNo+"]/prcpcnt"));
- if(iprcpcnt > 0) {
- for(var iNo = 1 ; iNo <= iprcpcnt ; iNo++) {
-
- fGetSelectPatInfoList2(iRowNo);
- }
- iCnt++;
- }
- }
-
- if(iCnt == 0) {
- messageBox("발행할 처방의 개수를 입력하여 주세요", "I999");
- }
-
- model.setFocus("grd_choilist");
- }
-
- /* @group : 대출 목록 조회/저장 화면
- * @ver : 2009.02.25 (CMCDEV-0001)
- * @by : 박중규
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택목록 삭제
- */
- function fDelPrcpList() {
-
- var iFirstRow = grd_choilist.selectedRow(0);
- var iLasrRow = grd_choilist.selectedRow(grd_choilist.selectedRows-1)
-
- for(var iRowNo = iLasrRow ; iRowNo >= iFirstRow ; iRowNo--) {
- grd_choilist.deleteRow(iRowNo, false);
- }
-
- grd_choilist.rebuild();
- grd_choilist.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,0;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:170px; height:13px; ">슬라이드 대출 처방 등록</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <group id="grp_search" style="left:0px; top:10px; width:1194px; height:36px; vertical-align:top; ">
- <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; "/>
- <caption id="caption3" class="search_name" style="left:355px; top:10px; width:90px; height:17px; ">등록번호 :</caption>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="9" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPatInfoList();
- ]]>
- </script>
- </button>
- <input id="ipt_refval" ref="/root/init/pid" class="input_search" navindex="7" style="left:448px; top:9px; width:82px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeRefValKeyPress();
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:570px; top:10px; width:102px; height:17px; ">대출구분 :</caption>
- <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; ">
- <choices>
- <item>
- <label>대출</label>
- <value>0</value>
- </item>
- <item>
- <label>반납</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeFlag();
- fGetPatInfoList();
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="search_no_b" visibility="hidden" style="left:730px; top:10px; width:12px; height:17px; ">~</caption>
- <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; "/>
- <caption id="caption14" class="search_name" style="left:807px; top:10px; width:90px; height:17px; ">접수일자 :</caption>
- <caption id="caption34" class="search_no_b" style="left:995px; top:10px; width:12px; height:17px; ">~</caption>
- <input id="ipt_acpttodd" ref="/root/hidden/acpttodd" navindex="4" inputtype="date" style="left:1011px; top:9px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- lpzfExeDateChange(ipt_toyear, "/root/hidden/acpttodd", "/root/init/toyear");
- ]]>
- </script>
- </input>
- <input id="ipt_acptfromdd" ref="/root/hidden/acptfromdd" navindex="3" inputtype="date" style="left:900px; top:9px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- lpzfExeDateChange(ipt_fromyear, "/root/hidden/acptfromdd", "/root/init/fromyear");
- ]]>
- </script>
- </input>
- <select id="checkbox1" ref="/root/init/acptddflag" overflow="visible" appearance="full" style="left:790px; top:12px; width:15px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>1</value>
- </item>
- </choices>
- </select>
- <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="5" appearance="minimal" editmode="search" style="left:105px; top:9px; width:111px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ptnocd/ptnocdlist">
- <label ref="ptnonm"/>
- <value ref="ptnocd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="8" maxlength="6" style="left:249px; top:9px; width:50px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13) {
- model.setValue("/root/init/fromptno", ipt_fromptno.currentText);
- ipt_fromptno.refresh();
- //--------------------------- 조회 호출
- fGetPatInfoList();
- }
- ]]>
- </script>
- </input>
- <caption id="caption13" class="search_name" style="left:12px; top:10px; width:90px; height:17px; ">병리번호 :</caption>
- <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="6" maxlength="2" style="left:219px; top:9px; width:27px; height:19px; "/>
- <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; "/>
- </group>
- <switch id="switch1" style="left:0px; top:50px; width:1195px; height:675px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case_lendslide" selected="true">
- <line id="line1" class="line_1" style="x1:390px; y1:335px; x2:1190px; y2:335px; "/>
- <caption id="caption1" class="tit_2" style="left:390px; top:320px; width:305px; height:13px; ">선택목록</caption>
- <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; ">
- <col ref="choi" type="checkbox" visibility="hidden"/>
- <col ref="dispptno"/>
- <col ref="ptno"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="acptdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="spcnm" visibility="hidden"/>
- <col ref="blockcnts"/>
- <col ref="slidecnts"/>
- <col ref="prcpgenrflag"/>
- <col ref="slidisscnt" type="input" visibility="hidden"/>
- <col ref="rsltdd" visibility="hidden"/>
- <col ref="spcacptseqno" visibility="hidden"/>
- <col ref="csteno" visibility="hidden"/>
- <col ref="slidno" visibility="hidden"/>
- <col ref="testcd"/>
- <col ref="instcd"/>
- <col ref="relaptno"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="orddd"/>
- <col ref="testnm"/>
- <col ref="spccd"/>
- <col ref="orddeptcd"/>
- <col ref="orddeptnm"/>
- <col ref="orddrid"/>
- <col ref="orddrnm"/>
- <col ref="reqfrmno"/>
- <col ref="dschdd"/>
- <col ref="execprcpuniqno"/>
- <col ref="prcpno"/>
- <col ref="acptno"/>
- <col ref="spcacptdd"/>
- <col ref="spcacptno"/>
- <col ref="spcacptseqno"/>
- <col ref="bfacptdd"/>
- <col ref="bfacptno"/>
- <col ref="bfacptseqno"/>
- <col ref="reuseflagcd"/>
- <col ref="acptdept"/>
- <col ref="bfspcacptdd"/>
- <col ref="bfspcacptno"/>
- <col ref="status"/>
- <col ref="ptnocd"/>
- <col ref="stdyptnocd"/>
- <col ref="trustptnocd"/>
- <col ref="workflagcd"/>
- <col ref="slidflagcd"/>
- <col ref="blocflagcd"/>
- <col ref="initblocno"/>
- <col ref="autokeepflagcd"/>
- <col ref="stdy_workflagcd"/>
- <col ref="stdy_slidflagcd"/>
- <col ref="stdy_slidisscnt"/>
- <col ref="stdy_blocflagcd"/>
- <col ref="stdy_initblocno"/>
- <col ref="stdy_autokeepflagcd"/>
- <col ref="grupsnglflag"/>
- <col ref="wardcd"/>
- <col ref="roomcd"/>
- <col ref="grosdrid"/>
- <col ref="grosplgyid"/>
- <col ref="acpttm"/>
- <col ref="grostestdd"/>
- <col ref="grostesttm"/>
- <col ref="autosave"/>
- <col ref="lendflagcd"/>
- <col ref="trandd"/>
- <col ref="tranno"/>
- <col ref="transeqno"/>
- <col ref="spcbarcdno"/>
- <col ref="spchistno"/>
- <col ref="blocno"/>
- <col ref="cretno"/>
- <col ref="tootfact"/>
- <col ref="spctranbarcdno"/>
- <col ref="reuseflagcd"/>
- <col ref="prcphistno"/>
- <col ref="rrgstno1"/>
- <col ref="rrgstno2"/>
- <col ref="brthdd"/>
- <col ref="sex"/>
- <col ref="signbfcnts"/>
- <col ref="signafcnts"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_choilist", false, "/root/init/popupmenu/item", "name", "func");
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_acptlist" nodeset="/root/main/acptinfo/acptinfolist" class="datagrid2" visibility="hidden" autoresize="true" caption="선
택^환자명^병리번호^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; ">
- <col ref="choi" type="checkbox"/>
- <col ref="patnm"/>
- <col ref="dispptno"/>
- <col ref="ptno"/>
- <col ref="orddeptnm"/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="wardroom"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="acptdd" format="yyyy-mm-dd"/>
- <col ref="rsltdd" format="yyyy-mm-dd"/>
- <col ref="testnm"/>
- <col ref="spcnm"/>
- <col ref="testcd"/>
- <col ref="spccd"/>
- <col ref="wardcd"/>
- <col ref="roomcd"/>
- <col ref="orddrid"/>
- <col ref="spcacptdd"/>
- <col ref="spcacptno"/>
- <col ref="orddeptcd"/>
- <col ref="acptno"/>
- <col ref="orddrnm"/>
- <col ref="ptnocd"/>
- <col ref="grosdrid"/>
- <col ref="grosplgyid"/>
- <col ref="acpttm"/>
- <col ref="reqfrmno"/>
- <col ref="relaptno"/>
- <col ref="lendflagcd"/>
- <col ref="trandd"/>
- <col ref="tranno"/>
- <col ref="transeqno"/>
- <col ref="execprcpuniqno"/>
- <col ref="spcbarcdno"/>
- <col ref="blocno"/>
- <col ref="prcpno"/>
- <col ref="orddd"/>
- <col ref="pid"/>
- <col ref="orddrnm"/>
- <col ref="spchistno"/>
- <col ref="grostestdd"/>
- <col ref="grostesttm"/>
- <col ref="stdyptnocd"/>
- <col ref="trustptnocd"/>
- <col ref="workflagcd"/>
- <col ref="slidflagcd"/>
- <col ref="blocflagcd"/>
- <col ref="initblocno"/>
- <col ref="autokeepflagcd"/>
- <col ref="stdy_workflagcd"/>
- <col ref="stdy_slidflagcd"/>
- <col ref="stdy_slidisscnt"/>
- <col ref="stdy_blocflagcd"/>
- <col ref="stdy_initblocno"/>
- <col ref="stdy_autokeepflagcd"/>
- <col ref="prcpgenrflag"/>
- <col ref="cretno"/>
- <col ref="prcphistno"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fGetSelectPatInfoList();
- ]]>
- </script>
- </datagrid>
- <button id="btn_del" class="btn2_letter3" navindex="17" visibility="visible" style="left:1137px; top:315px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_choilist.deleteRow(grd_choilist.row, true);
- ]]>
- </script>
- </button>
- <datagrid id="grd_plgyprcplist" nodeset="/root/main/plgyprcpinfo/plgyprcplist" class="datagrid2" caption="선
택^환자명^병리번호^관련병리번호^육안
검사의^검사명^검체명^진료과^처방의^수납
구분^처방일자^접수일자^판독일자^판독의^블록^슬라
이드^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; ">
- <col checkvalue="true,false" ref="choi" type="checkbox"/>
- <col ref="patnm"/>
- <col ref="dispptno"/>
- <col ref="disprelaptno"/>
- <col ref="grosdrnm"/>
- <col ref="testnm"/>
- <col ref="spcnm"/>
- <col ref="deptengabbr"/>
- <col ref="orddrnm"/>
- <col ref="rcptflag"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="acptdd" format="yyyy-mm-dd"/>
- <col ref="readdd" format="yyyy-mm-dd"/>
- <col ref="readdrnm"/>
- <col ref="blockcnts"/>
- <col ref="slidecnts"/>
- <col ref="rrgstno1" visibility="hidden"/>
- <col ref="rrgstno2" visibility="hidden"/>
- <col ref="sex" visibility="hidden"/>
- <col ref="brthdd" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="workflagcd" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="ptno" visibility="hidden"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="rsltdd" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="orddeptnm" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="reqfrmno" visibility="hidden"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="acptno" visibility="hidden"/>
- <col ref="spcacptdd" visibility="hidden"/>
- <col ref="spcacptno" visibility="hidden"/>
- <col ref="ptnocd" visibility="hidden"/>
- <col ref="wardcd" visibility="hidden"/>
- <col ref="roomcd" visibility="hidden"/>
- <col ref="grosdrid" visibility="hidden"/>
- <col ref="grosplgyid" visibility="hidden"/>
- <col ref="acpttm" visibility="hidden"/>
- <col ref="grostestdd" visibility="hidden"/>
- <col ref="grostesttm" visibility="hidden"/>
- <col ref="trandd" visibility="hidden"/>
- <col ref="tranno" visibility="hidden"/>
- <col ref="transeqno" visibility="hidden"/>
- <col ref="spcbarcdno" visibility="hidden"/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="relaptno" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="blocno" visibility="hidden"/>
- <col ref="spcnm" visibility="hidden"/>
- <col ref="spccd" visibility="hidden"/>
- <col ref="spchistno" visibility="hidden"/>
- <col ref="stdyptnocd" visibility="hidden"/>
- <col ref="trustptnocd" visibility="hidden"/>
- <col ref="workflagcd" visibility="hidden"/>
- <col ref="slidflagcd" visibility="hidden"/>
- <col ref="blocflagcd" visibility="hidden"/>
- <col ref="initblocno" visibility="hidden"/>
- <col ref="autokeepflagcd" visibility="hidden"/>
- <col ref="stdy_workflagcd" visibility="hidden"/>
- <col ref="stdy_slidflagcd" visibility="hidden"/>
- <col ref="stdy_slidisscnt" visibility="hidden"/>
- <col ref="stdy_blocflagcd" visibility="hidden"/>
- <col ref="stdy_initblocno" visibility="hidden"/>
- <col ref="stdy_autokeepflagcd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="spcbarcdno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="dispptno" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- if(model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ grd_plgyprcplist.row +"]/choi") == "true") {
- for(var iRowNo = 1 ; iRowNo < grd_plgyprcplist.rows ; iRowNo++) {
- if(iRowNo != grd_plgyprcplist.row) {
- model.setValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo+"]/choi", "false");
- }
- }
-
- for(var iRowNo = 1 ; iRowNo < grd_prcplist.rows ; iRowNo++) {
- model.setValue("/root/main/prcpinfo/prcpinfolist["+ iRowNo+"]/choi", "false");
- }
-
- //카세트/슬라이드목록 활성화
- grp_sldelist.visible = true;
-
- model.removeNodeset("/root/send");
-
- //-----------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/ptno", model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ grd_plgyprcplist.row +"]/ptno"));
- submit("TRLPD00706"); //슬라이드 목록조회
-
- //처방목록 체크박스 활성화
- //grd_prcplist.colDisabled(0) = false;
- //model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_plgyprcplist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ grd_plgyprcplist.row +"]/choi") == "false") {
- //처방목록 체크박스 비활성화
- grd_prcplist.colDisabled(grd_prcplist.colRef("choi")) = true;
- grd_prcplist.colDisabled(grd_prcplist.colRef("prcpcnt")) = true;
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_prcplist" nodeset="/root/main/prcpinfo/prcpinfolist" class="datagrid2" autoresize="false" caption="선
택^처방코드^처방
개수^처방명" 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; ">
- <col ref="choi" type="checkbox"/>
- <col ref="prcpcd"/>
- <col ref="prcpcnt" type="input" format="##"/>
- <col ref="prcpnm"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- /*
- var No = grd_plgyprcplist.findRow("true",1,0,false,false);
- if (No <0 ){
- messageBox("처방을 선택하지 않았습니다!", "I007");
- model.setValue("/root/main/prcpinfo/prcpinfolist["+ grd_prcplist.row +"]/choi", "false");
- btn_prcp.visible = false;
- grd_prcplist.refresh();
- return;
- }
- */
- /*
- if(model.getValue("/root/main/prcpinfo/prcpinfolist["+ grd_prcplist.row +"]/choi") == "true") {
- for(var iRowNo = 1 ; iRowNo < grd_prcplist.rows ; iRowNo++) {
- if(iRowNo != grd_prcplist.row) {
- model.setValue("/root/main/prcpinfo/prcpinfolist["+ iRowNo+"]/choi", "false");
- }
- }
- }
- */
-
- //grp_prcpcnt.visible = true;
- //model.setFocus("ipt_slidcnt");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var iCnt = 0;
-
- for(var iRowNo = 1 ; iRowNo < grd_prcplist.rows ; iRowNo++) {
- if(Number(model.getValue("/root/main/prcpinfo/prcpinfolist["+ iRowNo+"]/prcpcnt")) > 0) {
- iCnt++;
- }
- }
-
- /*
- if(iCnt <= 0) {
- btn_prcp.visible = false;
- } else {
- btn_prcp.visible = true;
- }
- */
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption7" class="tit_2" style="left:0px; top:5px; width:305px; height:13px; ">병리처방목록</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:20px; x2:1190px; y2:20px; "/>
- <caption id="caption8" class="tit_2" style="left:0px; top:320px; width:74px; height:13px; ">처방목록</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:335px; x2:384px; y2:335px; "/>
- <group id="grp_prcpcnt" visibility="hidden" style="left:515px; top:200px; width:280px; height:75px; ">
- <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; "/>
- <line id="line2" class="line_3" style="x1:16px; y1:30px; x2:267px; y2:30px; "/>
- <line id="line6" class="line_3" style="x1:15px; y1:54px; x2:267px; y2:54px; "/>
- <button id="btn_cncresn" class="btn2_letter2" navindex="2" style="left:225px; top:34px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeAddprcp();
- ]]>
- </script>
- </button>
- <input id="ipt_slidcnt" ref="/root/hidden/prcpcnt" class="text_center" navindex="1" format="999" style="left:106px; top:33px; width:114px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13) {
- fExeAddprcp();
- }
- ]]>
- </script>
- </input>
- <caption id="cpt_title" class="tit_2" style="left:15px; top:15px; width:256px; height:13px; ">발행할 처방의 개수를 입력하여 주세요.</caption>
- <caption id="cap_pid" class="cell_1" style="left:15px; top:31px; width:90px; height:23px; text-align:left; vertical-align:middle; ">처방개수</caption>
- </group>
- <input id="ipt_prcpcnt" ref="/root/hidden/prcpcnt" style="left:94px; top:315px; width:30px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- var iprcpcnt = 0;
- model.setValue("/root/hidden/prcpcnt", ipt_prcpcnt.currentText);
-
- for(var iRowNo = 1 ; iRowNo < grd_prcplist.rows ; iRowNo++) {
- if(model.getValue("/root/main/prcpinfo/prcpinfolist["+ iRowNo+"]/choi") == "true") {
- model.makeValue("/root/main/prcpinfo/prcpinfolist["+ iRowNo+"]/prcpcnt", model.getValue("/root/hidden/prcpcnt"));
- iprcpcnt++;
- }
- }
-
- if(iprcpcnt == 0) {
- messageBox("선택된 대출 처방이 존재하지 않습니다.", "I007");
- }
- grd_prcplist.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_addprcp" class="btn2_letter4" navindex="12" style="left:320px; top:315px; width:64px; height:19px; ">
- <caption>정보전달</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeAddprcp();
- ]]>
- </script>
- </button>
- <group id="grp_sldelist" visibility="hidden" style="left:315px; top:140px; width:565px; height:340px; ">
- <datagrid id="grd_slidelist" nodeset="/root/main/slideinfo/slidelist" class="datagrid2" autoresize="true" caption="선
택^병리번호^검체번호^블록번호^슬라이드번호^블록표시내용^슬라이드표시내용" 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; ">
- <col checkvalue="true,false" ref="choi" type="checkbox"/>
- <col ref="ptno"/>
- <col ref="spcacptseqno"/>
- <col ref="csteno"/>
- <col ref="slidno"/>
- <col ref="blockcnts"/>
- <col ref="slidecnts"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/choi") == "true") {
- for(var iRowNo = 1 ; iRowNo < grd_slidelist.rows ; iRowNo++) {
- if(iRowNo != grd_slidelist.row) {
- model.setValue("/root/main/slideinfo/slidelist["+ iRowNo+"]/choi", "false");
- }
- }
-
- model.removeNodeset("/root/hidden/slideinfo");
- model.makeValue("/root/hidden/slideinfo/blockcnts", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/blockcnts"));
- model.makeValue("/root/hidden/slideinfo/slidecnts", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/slidecnts"));
- model.makeValue("/root/hidden/slideinfo/spcacptseqno", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/spcacptseqno"));
- model.makeValue("/root/hidden/slideinfo/csteno", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/csteno"));
- model.makeValue("/root/hidden/slideinfo/slidno", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/slidno"));
- model.makeValue("/root/hidden/slideinfo/check", "Y");
- } else {
- model.removeNodeset("/root/hidden/slideinfo");
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:5px; top:5px; width:200px; height:14px; ">카세트/슬라이드 목록</caption>
- <line id="line7" class="line_1" style="x1:5px; y1:20px; x2:560px; y2:20px; "/>
- <button id="button2" class="btn4_letter2" navindex="19" style="left:445px; top:315px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ichk = grd_slidelist.findRow("true", 0, 0, false, true);
- if(ichk <= 0) {
- messageBox("블록/슬라이드를 선택하지 않으셨습니다.", "I007");
- return;
- }
-
- grp_sldelist.visible = false;
-
- //처방목록 체크박스 활성화
- grd_prcplist.colDisabled(grd_prcplist.colRef("choi")) = false;
- grd_prcplist.colDisabled(grd_prcplist.colRef("prcpcnt")) = false;
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" navindex="19" style="left:505px; top:315px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_sldelist.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </case>
- <case id="case_rtnslide">
- <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; ">
- <col ref="choi" type="checkbox"/>
- <col ref="patnm"/>
- <col ref="dispptno"/>
- <col ref="ptno"/>
- <col ref="orddeptnm"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="acptdd" format="yyyy-mm-dd"/>
- <col ref="rsltdd" format="yyyy-mm-dd"/>
- <col ref="testnm"/>
- <col ref="spcnm"/>
- <col ref="testcd"/>
- <col ref="spccd"/>
- <col ref="orddrid"/>
- <col ref="spcacptdd"/>
- <col ref="spcacptno"/>
- <col ref="orddeptcd"/>
- <col ref="acptno"/>
- <col ref="orddrnm"/>
- <col ref="ptnocd"/>
- <col ref="grosdrid"/>
- <col ref="grosplgyid"/>
- <col ref="acpttm"/>
- <col ref="reqfrmno"/>
- <col ref="relaptno"/>
- <col ref="lendflagcd"/>
- <col ref="trandd"/>
- <col ref="tranno"/>
- <col ref="transeqno"/>
- <col ref="execprcpuniqno"/>
- <col ref="spcbarcdno"/>
- <col ref="blocno"/>
- <col ref="prcpno"/>
- <col ref="orddd"/>
- <col ref="pid"/>
- <col ref="prcpgenrflag"/>
- <col ref="instcd"/>
- <col ref="patnm"/>
- <col ref="prcpnm"/>
- <col ref="dschdd"/>
- <col ref="spcacptseqno"/>
- <col ref="bfacptdd"/>
- <col ref="bfacptno"/>
- <col ref="bfacptseqno"/>
- <col ref="reuseflagcd"/>
- <col ref="acptdept"/>
- <col ref="bfspcacptdd"/>
- <col ref="bfspcacptno"/>
- <col ref="status"/>
- <col ref="stdyptnocd"/>
- <col ref="trustptnocd"/>
- <col ref="workflagcd"/>
- <col ref="slidflagcd"/>
- <col ref="blocflagcd"/>
- <col ref="initblocno"/>
- <col ref="autokeepflagcd"/>
- <col ref="stdy_workflagcd"/>
- <col ref="stdy_slidflagcd"/>
- <col ref="stdy_slidisscnt"/>
- <col ref="stdy_blocflagcd"/>
- <col ref="stdy_initblocno"/>
- <col ref="stdy_autokeepflagcd"/>
- <col ref="grupsnglflag"/>
- <col ref="grostestdd"/>
- <col ref="grostesttm"/>
- <col ref="autosave"/>
- <col ref="spctrandd"/>
- <col ref="spctranno"/>
- <col ref="spchistno"/>
- <col ref="cretno"/>
- <col ref="tootfact"/>
- <col ref="spctranbarcdno"/>
- <col ref="prcphistno"/>
- <col ref="orddd"/>
- <col ref="acptitemno"/>
- <col ref="orgacptstatcd"/>
- <col ref="orgprcpstatcd"/>
- <col ref="orgacptdd"/>
- <col ref="prcpcd"/>
- <col ref="acptstatcd"/>
- <col ref="prcpstatcd"/>
- <col ref="irpayflag"/>
- <col ref="ordtype"/>
- </datagrid>
- <line id="line3" class="line_1" style="x1:5px; y1:20px; x2:1189px; y2:20px; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:6px; width:200px; height:14px; ">반납목록</caption>
- </case>
- </switch>
- <button id="btn_rtnslide" class="btn_sw" visibility="hidden" group="tab" style="left:1145px; top:50px; width:46px; height:22px; ">
- <caption>반납</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_rtnslide");
- model.setValue("/root/init/patflag", "1");
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- model.setValue("/root/init/patflag", "1");
- ]]>
- </script>
- </button>
- <button id="btn_lendslide" class="btn_sw" visibility="hidden" group="tab" selected="true" style="left:1095px; top:50px; width:46px; height:22px; ">
- <caption>대출</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_lendslide");
- model.setValue("/root/init/patflag", "0");
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- model.setValue("/root/init/patflag", "0");
- ]]>
- </script>
- </button>
- <datagrid id="grd_saveprcp" nodeset="/root/main/saveprcp/saveprcpinfo" class="datagrid2" visibility="hidden" autoresize="true" caption="기관코드^등록번호^ptno^병리번호^처방명^ 처방코드^S ptno^검사명^검사코드^장
수" 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; ">
- <col ref="instcd"/>
- <col ref="pid"/>
- <col ref="prcp_ptno"/>
- <col ref="dispptno"/>
- <col ref="prcpnm"/>
- <col ref="prcpcd"/>
- <col ref="test_ptno"/>
- <col ref="testnm"/>
- <col ref="testcd"/>
- <col ref="slidcnt"/>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
- <button id="btn_upd" class="btn4_letter2" navindex="19" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeLendSave("insert");
- ]]>
- </script>
- </button>
- <line id="line28" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="button1" class="btn4_letter5" navindex="18" style="left:1043; top:3px; width:92px; height:22px; ">
- <caption>전처방반환</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeLendRtn("update");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|