12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <prcp>
- <prcplist>
- <status/>
- <prcpstatcd/>
- <prcpclscd/>
- <prcpkindcd/>
- <prcpcd/>
- <prcpnm/>
- <prcpvol/>
- <prcpvolunitnm/>
- <prcpqty/>
- <prcpqtyunitnm/>
- <prcptims/>
- <prcpdayno/>
- <drugmthdspccdnm/>
- <prcpmixno/>
- <payflagcd/>
- <prcpdelivefact/>
- <hosinhosoutflag/>
- <prcpexecdeptcd/>
- <prcphopedd/>
- <choiordflag/>
- <rgstdt/>
- <rgstridnm/>
- <testrsltunit/>
- <testrsltcnts/>
- <prcpgenrflag/>
- <prcphistcd/>
- <tempprcpflag/>
- <prcpsetcd/>
- <prcpvolunitflag/>
- <prcpqtyunitflag/>
- <orgprcpqty/>
- <drugspd/>
- <drugspdunitflag/>
- <powdflag/>
- <prnprcpflag/>
- <prepprcpflag/>
- <selfprcpflag/>
- <selfdrugflag/>
- <drugpackflag/>
- <erprcpflag/>
- <precureprcpflag/>
- <nigtprcpflag/>
- <portprcpflag/>
- <fixprcpflag/>
- <anamneflag/>
- <fastprcpflag/>
- <erreadflag/>
- <prcpdirecflag/>
- <tnsuseflag/>
- <tnsfiltflag/>
- <trnptbftestflag/>
- <offictourhealexamflag/>
- <stemcellflag/>
- <angioflagcd/>
- <opansflagcd/>
- <ansttm/>
- <mealcalrcnts/>
- <mealprotcnts/>
- <mealupdtflag/>
- <hosinprcpresncd/>
- <etcprcpresncd/>
- <drugmthdspccd/>
- <issdeptcd/>
- <prcpauthflag/>
- <prcpinptflag/>
- <prcpsignflag/>
- <rateprcpflag/>
- <prcprefseq/>
- <ordreqlnkno/>
- <testreqlnkno/>
- <prcplnkdd/>
- <prcplnkno/>
- <oprsrvno/>
- <tootfact/>
- <clinccmtcnts/>
- <prcpessninptflag/>
- <grupsnglflag/>
- <drugrateqty/>
- <asttestflag/>
- <clincstdyflag/>
- <prtlno/>
- <clincstdycd/>
- <optermcd/>
- <prcpflag/>
- <hscttempprcpflag/>
- <inclprcpcd/>
- <inclprcpno/>
- <pampkspec/>
- <prcppkspec/>
- <calcscormastspec/>
- <drugmastspec/>
- <rateprcpspec/>
- <matrsetprcpspec/>
- <suppdeptspec/>
- <contprcpspec/>
- <etclnkspec/>
- <srchcondcnts/>
- <orgprcpnm/>
- <chkcol/>
- <hsctdelivepos/>
- <hsctlnkno/>
- <etcprcpflag/>
- <aftcertflag/>
- <aftcertdrid/>
- <prcpvalidd/>
- <insukind/>
- <specdrid/>
- <anticncrprtlno/>
- <anticncrdayno/>
- <druglnkno/>
- <rehbprcpcurefreqflag/>
- <dietprcpgenrflag/>
- <irpayflag/>
- <irflag/>
- <procerdietflag/>
- <diagtestconttestintvlflag/>
- <drugindependpackflag/>
- <diagtestconttestbasetm/>
- <diagtestconttestorgtims/>
- <ermediscmngtresncd/>
- <rehbprcpenddd/>
- <matrallsizespecid/>
- <rehbprcpcurepartcd/>
- <lowdrugresncd/>
- <tfdtlcd/>
- <dnorreqlnkno/>
- <subcretno/>
- <exptmthdfact/>
- <lowdrugresnetcfact/>
- <diagtestconttestcdspec/>
- <drprcpetc1/>
- <drprcpetc2/>
- <drprcpetc3/>
- <drprcpetc4/>
- <drprcpetc5/>
- <drprcpetc6/>
- <drprcpetc7/>
- <drprcpetc8/>
- <drprcpetc9/>
- <drprcpetc10/>
- <tempcol1/>
- <tempcol2/>
- <tempcol3/>
- <tempcol4/>
- <tempcol5/>
- <tempcol6/>
- <tempcol7/>
- <tempcol8/>
- <tempcol9/>
- <tempcol10/>
- <tempcol11/>
- <tempcol12/>
- <tempcol13/>
- <tempcol14/>
- <tempcol15/>
- <tempcol16/>
- <tempcol17/>
- <tempcol18/>
- <tempcol19/>
- <tempcol20/>
- <tempcol21/>
- <tempcol22/>
- <tempcol23/>
- <tempcol24/>
- <tempcol25/>
- </prcplist>
- </prcp>
- </main>
- <init>
- <prcpdirecflag/>
- <payflagcd/>
- <drugspd/>
- <drugmthdspccdnm/>
- <hosinprcpresncd/>
- <drugspdunitflag/>
- <orddept/>
- <contprcpspec/>
- </init>
- <chkflag>
- <erprcpflag/>
- <prnprcpflag/>
- <erreadflag/>
- <portprcpflag/>
- <precureprcpflag/>
- <clincstdyflag/>
- <payflagcd/>
- <prcphopedd/>
- <clinccmtcnts/>
- <prcpdelivefact/>
- <prepprcpflag/>
- <powdflag/>
- <selfdrugflag/>
- <prcpqty/>
- <prcpdayno/>
- <asttestflag/>
- <prcptims/>
- <prcpexecdeptcd/>
- <drugmthdspccd/>
- <hosinhosoutflag/>
- <selfprcpflag/>
- <prcpmixno/>
- <drugspd/>
- <contprcpspec/>
- <mealcalrcnts/>
- <anamneflag/>
- </chkflag>
- <orddept/>
- <temp>
- <send/>
- <patsupkind/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "insuuseyn", "", "/root/init/orddept" , "depthngnm"); //부서코드 콤보 조회
- zbcfGetCodeList(new Array("M0029", "P0323", "M0040"), new Array("/root/init/payflagcd", "/root/init/hosinprcpresncd","/root/init/drugspdunitflag"));
- model.setValue ( "/root/main/prcp/prcplist/prcpclscd", opener.model.getValue ( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedrow(0) + "]/prcpclscd" ));
- reqHardCodeInfo("/root/main/temp/prnuseyn", "/root/main/temp/prnuseyn", "173");
- if (opener.javascript.getParameter("SPMMO12200_prnchk") == "SMMMB00200" && model.getValue("/root/main/temp/prnuseyn/hardcd/hardcd")=="N"){
- checkbox2.visible = false;
- checkbox11.visible = false;
- caption4.visible = false;
- }else if(model.getValue("/root/main/temp/prnuseyn/hardcd/hardcd")=="Y"){
- checkbox2.visible = false;
- checkbox11.visible = false;
- caption4.visible = false;
- }
-
- fPrcpExecDeptSrch("all");
-
- checkbox10.disabled = true;
- checkbox11.disabled = true;
- checkbox12.disabled = true;
- checkbox13.disabled = true;
- checkbox14.disabled = true;
- checkbox15.disabled = true;
- checkbox16.disabled = true;
- checkbox18.disabled = true;
- button4.disabled = true;
-
- var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
- var hosinprcpresncd = opener.model.getValue("/root/init/hosinprcpresncd");
-
- if ( prcpgenrflag == "O" ) { //외래일때
- if ( opener.model.getValue ( "/root/usge" ) == "prcp" ) {
- checkbox2.disabled = true;
- }
- if ( hosinprcpresncd == "00" ) { //처방화면에 원내처방 사유가 없으면 원외
- model.setValue ( "/root/main/prcp/prcplist/hosinhosoutflag", "O" );
- } else { //처방화면에 원내처방 사유가 있으면 원내
- model.setValue ( "/root/main/prcp/prcplist/hosinhosoutflag", "I" );
- model.setValue ( "/root/main/prcp/prcplist/hosinprcpresncd",hosinprcpresncd );
- }
- } else {
- if ( prcpgenrflag == "I" ) { //입원이면 원내/원외 체크박스 disable
- checkbox24.disabled = true;
- }
- model.setValue ( "/root/main/prcp/prcplist/hosinhosoutflag", "I" );
- model.setValue ( "/root/main/prcp/prcplist/hosinprcpresncd", hosinprcpresncd );
- }
-
- combo1.disabled = true;
- combo2.disabled = true;
- combo3.disabled = true;
- combo4.disabled = true;
-
- radio2.disabled = true;
-
- input1.disabled = true;
- input2.disabled = true;
- input3.disabled = true;
- input5.disabled = true;
- radio1.disabled = true;
- textarea1.disabled = true;
- model.refresh();
- opener.javascript.setParameter ( "batipt_rtn1", "" );
- opener.javascript.setParameter ( "batipt_rtn1_useyn", "N" );
- opener.javascript.setParameter ( "SPMMO12100_drugrateqty", "" );
- opener.javascript.setParameter ( "SPMMO12200_contprcpspec", "" );
- opener.javascript.setParameter ( "SPMMO12100_chgmthd", "" );
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmedmthd"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/orddept"/>
- <submission id="TRMMO15701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" resultref="/root/temp/patsupkind"/>
- <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="430" pageheight="452" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption22" class="cell_1" style="left:206px; top:279px; width:101px; height:23px; "/>
- <caption id="caption21" class="cell_1" style="left:0px; top:385px; width:101px; height:23px; "/>
- <output id="output1" ref="/root/main/prcp/prcplist/drugmthdspccd" visibility="hidden" style="left:310px; top:306px; width:100px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:2px; top:358px; width:101px; height:23px; "/>
- <caption id="caption14" class="cell_1" style="left:2px; top:253px; width:100px; height:23px; "/>
- <caption id="caption13" class="cell_1" style="left:2px; top:279px; width:101px; height:23px; "/>
- <caption id="caption10" class="cell_1" style="left:2px; top:200px; width:100px; height:23px; "/>
- <button id="button1" class="btn4_letter2" style="left:294px; top:416px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var erprcpflag_useyn = "";
- var erprcpflag = "";
- var prnprcpflag_useyn = "";
- var prnprcpflag = "";
- var prepprcpflag_useyn = "";
- var prepprcpflag = "";
- var selfprcpflag_useyn = "";
- var selfprcpflag = "";
- var selfdrugflag_useyn = "";
- var selfdrugflag = "";
- var prcpqty_useyn = "";
- var prcpqty = "";
- var prcptims_useyn = "";
- var prcptims = "";
- var drugmthdspccd_useyn = "";
- var drugmthdspccd = "";
- var drugmthdspccdnm_useyn = ""
- var drugmthdspccdnm = "";
- var rateprcpflag_useyn = "";
- var rateprcpflag = "";
- var drugrateqty_useyn = "";
- var drugrateqty = "";
- var precureprcpflag_useyn = "";
- var precureprcpflag = "";
- var clincstdyflag_useyn = "";
- var clincstdyflag = "";
- var asttestflag_useyn = "";
- var asttestflag = "";
- var payflagcd_useyn = "";
- var payflagcd = "";
- var prcpexecdeptcd_useyn = "";
- var prcpexecdeptcd = "";
- var prcpdayno_useyn = "";
- var prcpdayno = "";
- var hosinhosoutflag_useyn = "";
- var hosinhosoutflag = "";
- var hosinprcpresncd_useyn = "";
- var hosinprcpresncd = "";
- var drugspd_useyn = "";
- var drugspd = "";
- var drugspdunitflag_useyn = "";
- var drugspdunitflag = "";
- var contprcpspec_useyn = "";
- var contprcpspec = "";
- var mealcalrcnts_useyn = "";
- var mealcalrcnts = "";
- var prcpdelivefact_useyn = "";
- var prcpdelivefact = "";
- var useyn = "";
- var value = "";
-
- var header = "erprcpflag|prnprcpflag|prepprcpflag|selfprcpflag|selfdrugflag|prcpqty|prcptims|drugmthdspccd|drugmthdspccdnm|rateprcpflag|drugrateqty|precureprcpflag|clincstdyflag|asttestflag|payflagcd|prcpexecdeptcd|prcpdayno|hosinhosoutflag|hosinprcpresncd|drugspd|drugspdunitflag|contprcpspec|mealcalrcnts|anamneflag|prcpdelivefact|subcretno^";
-
- if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
- erprcpflag_useyn = "Y" + "|";
- erprcpflag = model.getValue ("/root/main/prcp/prcplist/erprcpflag" ) + "|";
- if ( isNull(model.getValue ("/root/main/prcp/prcplist/erprcpflag" ))) {
- erprcpflag = "N" + "|";
- }
- } else {
- erprcpflag_useyn = "N" + "|";
- erprcpflag = "" + "|";
- }
- useyn = useyn + erprcpflag_useyn;
- value = value + erprcpflag;
-
- if ( model.getValue ( "/root/chkflag/prnprcpflag" ) == "Y" ) {
- prnprcpflag_useyn = "Y" + "|";
- prnprcpflag = model.getValue ("/root/main/prcp/prcplist/prnprcpflag" ) + "|";
- if ( isNull(model.getValue ("/root/main/prcp/prcplist/prnprcpflag" ))) {
- prnprcpflag = "N" + "|";
- }
- } else {
- prnprcpflag_useyn = "N" + "|";
- prnprcpflag = "" + "|";
- }
- useyn = useyn + prnprcpflag_useyn ;
- value = value + prnprcpflag;
-
- if ( model.getValue ( "/root/chkflag/prepprcpflag" ) == "Y" ) {
- prepprcpflag_useyn = "Y" + "|";
- prepprcpflag = model.getValue ("/root/main/prcp/prcplist/prepprcpflag" ) + "|";
- if ( isNull(model.getValue ("/root/main/prcp/prcplist/prepprcpflag" ))) {
- prepprcpflag = "N" + "|";
- }
- } else {
- prepprcpflag_useyn = "N" + "|";
- prepprcpflag = "" + "|";
- }
- useyn = useyn + prepprcpflag_useyn ;
- value = value + prepprcpflag;
-
- if ( model.getValue ( "/root/chkflag/selfprcpflag" ) == "Y" ) {
- selfprcpflag_useyn = "Y" + "|";
- selfprcpflag = model.getValue ("/root/main/prcp/prcplist/selfprcpflag" ) + "|";
- if ( isNull(model.getValue ("/root/main/prcp/prcplist/selfprcpflag" ))) {
- selfprcpflag = "N" + "|";
- }
- } else {
- selfprcpflag_useyn = "N" + "|";
- selfprcpflag = "" + "|";
- }
- useyn = useyn + selfprcpflag_useyn ;
- value = value + selfprcpflag;
-
- if ( model.getValue ( "/root/chkflag/selfdrugflag" ) == "Y" ) {
- selfdrugflag_useyn = "Y" + "|";
- selfdrugflag = model.getValue ("/root/main/prcp/prcplist/selfdrugflag" ) + "|";
- if ( isNull(model.getValue ("/root/main/prcp/prcplist/selfdrugflag" ))) {
- selfdrugflag = "N" + "|";
- }
- } else {
- selfdrugflag_useyn = "N" + "|";
- selfdrugflag = "" + "|";
- }
- useyn = useyn + selfdrugflag_useyn ;
- value = value + selfdrugflag;
- if ( model.getValue ( "/root/chkflag/prcpqty" ) == "Y" ) {
- prcpqty_useyn = "Y" + "|";
- prcpqty = model.getValue ("/root/main/prcp/prcplist/prcpqty" ) + "|";
- if ( isNull(model.getValue ("/root/main/prcp/prcplist/prcpqty" ))) {
- model.alert ( "입력된 수량이 없습니다." );
- return;
- }
- } else {
- prcpqty_useyn = "N" + "|";
- prcpqty = "" + "|";
- }
- useyn = useyn + prcpqty_useyn ;
- value = value + prcpqty;
-
- if ( model.getValue ( "/root/chkflag/prcptims" ) == "Y" ) {
- prcptims_useyn = "Y" + "|";
- prcptims = model.getValue ("/root/main/prcp/prcplist/prcptims" ) + "|";
- if ( isNull(model.getValue ("/root/main/prcp/prcplist/prcptims" ))) {
- model.alert ( "입력된 횟수가 없습니다." );
- return;
- } else {
- if ( model.getValue ( "/root/chkflag/drugmthdspccd" ) != "Y" ) {
- opener.javascript.setParameter ( "SPMMO12100_chgmthd" , "Y" );
- }
- }
- } else {
- prcptims_useyn = "N" + "|";
- prcptims = "" + "|";
- }
- useyn = useyn + prcptims_useyn ;
- value = value + prcptims;
-
- if ( model.getValue ( "/root/chkflag/drugmthdspccd" ) == "Y" ) {
- drugmthdspccd_useyn = "Y" + "|";
- drugmthdspccdnm_useyn = "Y" + "|";
- drugmthdspccd = model.getValue ("/root/main/prcp/prcplist/drugmthdspccd" ) + "|";
- drugmthdspccdnm = model.getValue ("/root/main/prcp/prcplist/drugmthdspccdnm" ) + "|";
- if ( isNull(model.getValue ("/root/main/prcp/prcplist/drugmthdspccd" ))) {
- model.alert ( "입력된 용법이 없습니다." );
- return;
- }
- } else {
- drugmthdspccd_useyn = "N" + "|";
- drugmthdspccd = "" + "|";
- drugmthdspccdnm_useyn = "N" + "|";
- drugmthdspccdnm = "" + "|";
- }
- useyn = useyn + drugmthdspccd_useyn + drugmthdspccdnm_useyn ;
- value = value + drugmthdspccd + drugmthdspccdnm;
- if ( getParameter ( "SPMMO01900_rateprcpflag" ) == "Y" ) {
- rateprcpflag_useyn = "Y" + "|";
- drugrateqty_useyn = "Y" + "|";
-
- if ( model.getValue ( "/root/chkflag/prcpqty" ) != "Y" ) {
- model.alert ( "비율처방이 있으나 수량이 CHECK 되지 않았습니다." )
- return;
- }
- if ( model.getValue ( "/root/chkflag/prcptims" ) != "Y" ) {
- model.alert ( "비율처방이 있으나 횟수가 CHECK 되지 않았습니다." )
- return;
- }
- rateprcpflag = model.getValue ("/root/main/prcp/prcplist/rateprcpflag" ) + "|";
- drugrateqty = "" + "|";
- opener.javascript.setParameter ( "SPMMO12100_drugrateqty", model.getValue ("/root/main/prcp/prcplist/drugrateqty" ));
-
- } else {
- rateprcpflag_useyn = "N" + "|";
- drugrateqty_useyn = "N" + "|";
- rateprcpflag = "" + "|";
- drugrateqty = "" + "|";
- }
-
- useyn = useyn + rateprcpflag_useyn + drugrateqty_useyn ;
- value = value + rateprcpflag + drugrateqty;
-
- if ( model.getValue ( "/root/chkflag/precureprcpflag" ) == "Y" ) {
- precureprcpflag_useyn = "Y" + "|";
- precureprcpflag = model.getValue ("/root/main/prcp/prcplist/precureprcpflag" ) + "|";
- if ( isNull(model.getValue ("/root/main/prcp/prcplist/precureprcpflag" ))) {
- precureprcpflag = "N" + "|";
- }
- } else {
- precureprcpflag_useyn = "N" + "|";
- precureprcpflag = "" + "|";
- }
- useyn = useyn + precureprcpflag_useyn ;
- value = value + precureprcpflag;
-
- if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
- clincstdyflag_useyn = "Y" + "|";
- clincstdyflag = model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ) + "|";
- if ( isNull(model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ))) {
- clincstdyflag = "N" + "|";
- }
- } else {
- clincstdyflag_useyn = "N" + "|";
- clincstdyflag = "" + "|";
- }
- useyn = useyn + clincstdyflag_useyn ;
- value = value + clincstdyflag;
-
- if ( model.getValue ( "/root/chkflag/asttestflag" ) == "Y" ) {
- asttestflag_useyn = "Y" + "|";
- asttestflag = model.getValue ("/root/main/prcp/prcplist/asttestflag" ) + "|";
- if ( isNull(model.getValue ("/root/main/prcp/prcplist/asttestflag" ))) {
- asttestflag = "N" + "|";
- }
- } else {
- asttestflag_useyn = "N" + "|";
- asttestflag = "" + "|";
- }
- useyn = useyn + asttestflag_useyn ;
- value = value + asttestflag;
-
- if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
- payflagcd_useyn = "Y" + "|";
- payflagcd = model.getValue ( "/root/main/prcp/prcplist/payflagcd" ) + "|";
- if ( isNull(model.getValue ( "/root/main/prcp/prcplist/payflagcd" ))) {
- model.alert ( "입력된 급여구분이 없습니다." ) ;
- return;
- }
- } else {
- payflagcd_useyn = "N" + "|";
- payflagcd = "" + "|";
- }
-
- useyn = useyn + payflagcd_useyn ;
- value = value + payflagcd;
-
- if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
- prcpexecdeptcd_useyn = "Y" + "|";
- prcpexecdeptcd = model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ) + "|";
- if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ))) {
- model.alert ( "입력된 시행부서가 없습니다." ) ;
- return;
- }
- } else {
- prcpexecdeptcd_useyn = "N" + "|";
- prcpexecdeptcd = "" + "|";
- }
-
- useyn = useyn + prcpexecdeptcd_useyn ;
- value = value + prcpexecdeptcd;
-
- if ( model.getValue ( "/root/chkflag/prcpdayno" ) == "Y" ) {
- prcpdayno_useyn = "Y" + "|";
- prcpdayno = model.getValue ( "/root/main/prcp/prcplist/prcpdayno" ) + "|";
- if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpdayno" ))) {
- model.alert ( "입력된 일수가 없습니다." ) ;
- return;
- }
- } else {
- prcpdayno_useyn = "N" + "|";
- prcpdayno = "" + "|";
- }
-
- useyn = useyn + prcpdayno_useyn ;
- value = value + prcpdayno;
-
- if ( model.getValue ( "/root/chkflag/hosinhosoutflag" ) == "Y" ) {
- if ( isNull(model.getValue ("/root/main/prcp/prcplist/hosinhosoutflag" ))) {
- model.alert ( "입력된 원내/원외구분이 없습니다." );
- return;
- }
- var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag"); //환자리스트에서 준 외래, 입원, 응급 구분
- var hosinprcpresncd = opener.model.getValue("/root/init/hosinprcpresncd"); //원무에 있는 원내처방 사유 코드
- /*
- //주사 원외불가 by sonjy 2008-09-15 start
- if( checkOpener() ) { //&& prcpgenrflag == "O" ){
- if( model.getValue ("/root/main/prcp/prcplist/hosinhosoutflag" ) == "O" ){
- var sTmp = "";
- for ( var i=0 ; i < opener.grd_prcplist.selectedRows ; i++){
- sTmp = opener.model.getValue( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedRow(i) + "]/drugmastspec");
- if( getArrayData ( sTmp + "^", 0, 20, "^", "|" ) != "Y" && getArrayData ( sTmp + "^", 0, 11, "^", "|" ) != "O" ) {
- messageBox("주사처방은 원외로 처방을 낼 수 ", "I004");
- return ;
- }
- }
- model.setValue ("/root/main/prcp/prcplist/hosinprcpresncd", "00" );
- }
- else {
- model.setValue ("/root/main/prcp/prcplist/hosinprcpresncd" , hosinprcpresncd );
- }
- }
- */
- // 주사처방 원외 처방 가능하도록 수정 ( 2010, 12. 03 han19)
- // 단 마약주사 및 향정 주사는 제외
- if( checkOpener() && (prcpgenrflag == "O" || prcpgenrflag == "E" ) ){
- if( model.getValue ("/root/main/prcp/prcplist/hosinhosoutflag" ) == "O" ){
- var sTmp = "";
- for ( var i=0 ; i < opener.grd_prcplist.selectedRows ; i++){
- sTmp = opener.model.getValue( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedRow(i) + "]/drugmastspec");
- var prcpclscd = model.getValue ( "/root/main/prcp/prcplist/prcpclscd");
- if (opener.model.getValue( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedRow(i) + "]/inclprcpno") != "0" ||
- (prcpclscd=="A6" && getArrayData ( sTmp + "^", 0, 23, "^", "|" ) == "M" ) ||
- (prcpclscd=="A6" && getArrayData ( sTmp + "^", 0, 23, "^", "|" ) == "H" ) ||
- getArrayData ( sTmp + "^", 0, 11, "^", "|" ) == "I" ) {
- messageBox("마약, 주사, 약제팀의 원내지정약 및 MSET코드내 묶인 약제는 원외로 처방을 낼 수 ", "I004");
- return ;
- }
- }
- model.setValue ("/root/main/prcp/prcplist/hosinprcpresncd", "00" );
- }
- else {
- model.setValue ("/root/main/prcp/prcplist/hosinprcpresncd" , hosinprcpresncd );
- }
- }
-
- /*외래이고, 원무의 원내사유가 없고, 원내선택하고, 원채처방사유가 없을 경우
- if (( prcpgenrflag == "O" && hosinprcpresncd == "00" && model.getValue ("/root/main/prcp/prcplist/hosinhosoutflag" ) == "I" ) && ( model.getValue ("/root/main/prcp/prcplist/hosinprcpresncd" ) == "00" || model.getValue ("/root/main/prcp/prcplist/hosinprcpresncd" ) == "" )) {
- model.alert ( "원내처방 사유가 없습니다." );
- return;
- }*/
- // by sonjy 2008-09-15 end
- hosinhosoutflag_useyn = "Y" + "|";
- hosinprcpresncd_useyn = "Y" + "|";
- hosinhosoutflag = model.getValue ("/root/main/prcp/prcplist/hosinhosoutflag" ) + "|";
- hosinprcpresncd = model.getValue ("/root/main/prcp/prcplist/hosinprcpresncd" ) + "|";
- } else {
- hosinhosoutflag_useyn = "N" + "|";
- hosinhosoutflag = "" + "|";
- hosinprcpresncd_useyn = "N" + "|";
- hosinprcpresncd = "" + "|";
- }
- useyn = useyn + hosinhosoutflag_useyn + hosinprcpresncd_useyn;
- value = value + hosinhosoutflag + hosinprcpresncd;
-
- if ( model.getValue ( "/root/chkflag/drugspd" ) == "Y" ) {
- drugspd_useyn = "Y" + "|";
- drugspd = model.getValue ( "/root/main/prcp/prcplist/drugspd" ) + "|";
- if ( isNull(model.getValue ( "/root/main/prcp/prcplist/drugspd" ))) {
- model.alert ( "입력된 투여속도가 없습니다." );
- return;
- }
- drugspdunitflag_useyn = "Y" + "|";
- drugspdunitflag = model.getValue ( "/root/main/prcp/prcplist/drugspdunitflag" ) + "|";
- if ( isNull(model.getValue ( "/root/main/prcp/prcplist/drugspdunitflag" ))) {
- model.alert ( "입력된 투여속도 단위가 없습니다." );
- return;
- }
- } else {
- drugspd_useyn = "N" + "|";
- drugspd = "" + "|";
- drugspdunitflag_useyn = "N" + "|";
- drugspdunitflag = "" + "|";
- }
- useyn = useyn + drugspd_useyn + drugspdunitflag_useyn;
- value = value + drugspd + drugspdunitflag;
-
- if ( model.getValue ( "/root/chkflag/contprcpspec" ) == "Y" ) {
- contprcpspec_useyn = "Y" + "|";
- contprcpspec = "" + "|";
- opener.javascript.setParameter ( "SPMMO12200_contprcpspec", model.getValue ( "/root/main/prcp/prcplist/contprcpspec" ));
- if ( isNull(output3.value)) {
- model.alert ( "입력된 지정일이 없습니다." ) ;
- return;
- }
- } else {
- contprcpspec_useyn = "N" + "|";
- contprcpspec = "" + "|";
- }
-
- useyn = useyn + contprcpspec_useyn ;
- value = value + contprcpspec;
-
- if ( model.getValue ( "/root/chkflag/mealcalrcnts" ) == "Y" ) {
- mealcalrcnts_useyn = "Y" + "|";
- mealcalrcnts = model.getValue ( "/root/main/prcp/prcplist/mealcalrcnts" ) + "|";
- if ( isNull(radio2.value)) {
- model.alert ( "입력된 접종차수가 없습니다." ) ;
- return;
- }
- } else {
- mealcalrcnts_useyn = "N" + "|";
- mealcalrcnts = "" + "|";
- }
-
- useyn = useyn + mealcalrcnts_useyn ;
- value = value + mealcalrcnts;
-
- if( model.getValue ( "/root/chkflag/anamneflag" ) == "Y" ) {
- useyn = useyn + "Y" + "|";
- value = value + "Y" + "|";
- } else {
- useyn = useyn + "N" + "|";
- value = value + "N" + "|";
- }
-
-
- if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
- prcpdelivefact_useyn = "Y" + "|";
- prcpdelivefact = model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ) + "|";
- if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ))) {
- model.alert ( "입력된 전달사항 값이 없습니다." );
- return;
- }
- } else {
- prcpdelivefact_useyn = "N" + "|";
- prcpdelivefact = "" + "|";
- }
- useyn = useyn + prcpdelivefact_useyn ;
- value = value + prcpdelivefact;
-
- //2008. 07. 01 기왕증 입력에 따른 subcretno설정, 오지훈
- var subcretno_useyn = "";
- var subcretno = 0;
- if ( bool1.value == "Y" || model.getValue("/root/chkflag/clincstdyflag") == "Y") {
- subcretno_useyn = "Y";
- subcretno = model.getValue("/root/main/prcp/prcplist/subcretno");
- }else{
- subcretno_useyn = "N";
- }
- useyn = useyn + subcretno_useyn + "^";
- value = value + subcretno + "^";
-
- var batipt_rtn1 = header + useyn + value;
- opener.javascript.setParameter ( "batipt_rtn1", batipt_rtn1 );
- opener.javascript.setParameter ( "batipt_rtn1_useyn", "Y" );
- window.close();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:354px; top:416px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- opener.javascript.setParameter ( "batipt_rtn1_useyn", "N" );
- window.close();
- ]]>
- </script>
- </button>
- <caption id="caption8" class="cell_1" style="left:207px; top:19px; width:100px; height:23px; "/>
- <caption id="caption7" class="cell_1" style="left:207px; top:173px; width:100px; height:23px; "/>
- <caption id="caption6" class="cell_1" style="left:207px; top:147px; width:100px; height:23px; "/>
- <caption id="caption3" class="cell_1" style="left:2px; top:71px; width:100px; height:50px; "/>
- <caption id="caption2" class="cell_1" style="left:2px; top:173px; width:100px; height:23px; "/>
- <caption id="caption5" class="cell_1" style="left:2px; top:147px; width:100px; height:23px; "/>
- <caption id="caption4" class="cell_1" style="left:2px; top:45px; width:100px; height:23px; "/>
- <caption id="caption1" class="cell_1" style="left:2px; top:19px; width:100px; height:23px; "/>
- <select id="checkbox1" ref="/root/chkflag/erprcpflag" overflow="visible" appearance="full" style="left:7px; top:23px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>응급</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
- checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "bold";
- checkbox10.disabled = false;
- model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "Y" );
- model.refresh();
-
- } else {
- checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "normal";
- checkbox10.disabled = true;
- model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "N" );
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <select id="checkbox2" ref="/root/chkflag/prnprcpflag" overflow="visible" appearance="full" style="left:7px; top:49px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>PRN</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/prnprcpflag" ) == "Y" ) {
- checkbox2.item(checkbox2.focusIndex).attribute("font-weight") = "bold";
- checkbox11.disabled = false;
- model.setValue ( "/root/main/prcp/prcplist/prnprcpflag", "Y" );
- model.refresh();
-
- } else {
- checkbox2.item(checkbox2.focusIndex).attribute("font-weight") = "normal";
- checkbox11.disabled = true;
- model.setValue ( "/root/main/prcp/prcplist/prnprcpflag", "N" );
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <select id="checkbox3" ref="/root/chkflag/prepprcpflag" overflow="visible" appearance="full" style="left:7px; top:151px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Prep</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/prepprcpflag" ) == "Y" ) {
- checkbox3.item(checkbox3.focusIndex).attribute("font-weight") = "bold";
- checkbox12.disabled = false;
- model.setValue ( "/root/main/prcp/prcplist/prepprcpflag", "Y" );
- model.refresh();
-
- } else {
- checkbox3.item(checkbox3.focusIndex).attribute("font-weight") = "normal";
- checkbox12.disabled = true;
- model.setValue ( "/root/main/prcp/prcplist/prepprcpflag", "N" );
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <select id="checkbox4" ref="/root/chkflag/selfprcpflag" overflow="visible" appearance="full" style="left:7px; top:178px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>home</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/selfprcpflag" ) == "Y" ) {
- checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "bold";
- checkbox13.disabled = false;
- model.setValue ( "/root/main/prcp/prcplist/selfprcpflag", "Y" );
- model.setValue ( "/root/chkflag/contprcpspec", "N" );
- model.setValue ( "/root/init/contprcpspec", "" );
-
- // selfprcpflag가 Y가 아니면 home에 체크할때 체크 안되도록 메시지를 띄운다. 20081006 MoonSH
- var selrows = opener.grd_prcplist.selectedRows ;
- for ( var currow=0; currow < selrows; currow++ ) {
- var prcpgenrflag = opener.model.getValue ( "/root/patflag/list/prcpgenrflag" ); //외래입원구분
- var prcpcd = opener.model.getValue("/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedrow(currow) + "]/prcpcd");
- var drugmastspec = opener.model.getValue ( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedrow(currow) + "]/drugmastspec");
- var prcpclscd = opener.model.getValue ( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedrow(currow) + "]/prcpclscd" );
- if ( prcpgenrflag == "O" ) {
- if ( prcpclscd == "A6" && getArrayData (drugmastspec, 0, 20, "^", "|" ) != "Y" ) {
- alert("선택된 열 중 처방 코드가 "+prcpcd+"인 경우는 home 체크가 불가합니다. ");
- checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "normal";
- checkbox13.disabled = true;
- model.setValue("/root/chkflag/selfprcpflag", "N");
- model.setValue ( "/root/main/prcp/prcplist/selfprcpflag", "N" );
- }
- }
- }
- model.refresh();
-
- } else {
- checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "normal";
- checkbox13.disabled = true;
- model.setValue ( "/root/main/prcp/prcplist/selfprcpflag", "N" );
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <line id="line15" class="line_2" style="x1:2px; y1:198px; x2:410px; y2:198px; "/>
- <select id="checkbox5" ref="/root/chkflag/prcpdelivefact" overflow="visible" appearance="full" style="left:7px; top:74px; width:68px; height:25px; border-style:none; ">
- <choices>
- <item>
- <label>전달사항</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
- checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "bold";
- textarea1.disabled = false;
- button4.disabled = false;
- model.refresh();
- } else {
- checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "normal";
- textarea1.disabled = true;
- button4.disabled = true;
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <select id="checkbox6" ref="/root/chkflag/precureprcpflag" overflow="visible" appearance="full" style="left:212px; top:151px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>선처치</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/precureprcpflag" ) == "Y" ) {
- checkbox6.item(checkbox6.focusIndex).attribute("font-weight") = "bold";
- checkbox14.disabled = false;
- model.setValue ( "/root/main/prcp/prcplist/precureprcpflag", "Y" );
- model.refresh();
-
- } else {
- checkbox6.item(checkbox6.focusIndex).attribute("font-weight") = "normal";
- checkbox14.disabled = true;
- model.setValue ( "/root/main/prcp/prcplist/precureprcpflag", "N" );
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <select id="checkbox7" ref="/root/chkflag/clincstdyflag" overflow="visible" appearance="full" style="left:212px; top:177px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>임상연구</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( bool1.value == "Y" ){
- messageBox ( "임상연구는 기왕증과 동시에 선택 할 수", "I004" );
- model.setValue ( "/root/chkflag/clincstdyflag" , "");
- model.refresh();
- return;
- }
-
- if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
- if ( fSubcretnoSet("1", null) == -1 ) {
- model.setValue ( "/root/chkflag/clincstdyflag" , "N");
- checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
- checkbox15.disabled = true;
- checkbox7.disabled = true;
- model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
- model.refresh();
- return;
- }
- checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "bold";
- checkbox15.disabled = false;
- checkbox7.disabled = false;
- model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "Y" );
- model.refresh();
- } else {
- fSubcretnoSet("1", null);
- checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
- checkbox15.disabled = true;
- model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <line id="line1" class="line_2" style="x1:2px; y1:69px; x2:410px; y2:69px; "/>
- <select1 id="combo1" ref="/root/main/prcp/prcplist/payflagcd" class="combo_default" appearance="minimal" style="left:310px; top:21px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/payflagcd/M0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select id="checkbox8" ref="/root/chkflag/payflagcd" overflow="visible" appearance="full" style="left:212px; top:24px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>급여</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
- checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "bold";
- combo1.disabled = false;
- model.refresh();
-
- } else {
- checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "normal";
- combo1.disabled = true;
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <line id="line2" class="line_2" style="x1:2px; y1:171px; x2:410px; y2:171px; "/>
- <line id="line3" class="line_2" style="x1:2px; y1:251px; x2:409px; y2:251px; "/>
- <textarea id="textarea1" ref="/root/main/prcp/prcplist/prcpdelivefact" style="left:103px; top:71px; width:307px; height:49px; "/>
- <line id="line6" class="line_2" style="x1:2px; y1:122px; x2:409px; y2:122px; "/>
- <line id="line7" class="line_1" style="x1:2px; y1:142px; x2:410px; y2:142px; "/>
- <caption id="caption9" class="cell_1" style="left:207px; top:200px; width:100px; height:23px; "/>
- <select id="checkbox9" ref="/root/chkflag/prcpexecdeptcd" overflow="visible" appearance="full" style="left:212px; top:201px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>시행부서</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
- checkbox9.item(checkbox9.focusIndex).attribute("font-weight") = "bold";
- combo2.disabled = false;
- model.refresh();
-
- } else {
- checkbox9.item(checkbox9.focusIndex).attribute("font-weight") = "normal";
- combo2.disabled = true;
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <select id="checkbox10" ref="/root/main/prcp/prcplist/erprcpflag" overflow="visible" appearance="full" style="left:106px; top:23px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>응급</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox11" ref="/root/main/prcp/prcplist/prnprcpflag" overflow="visible" appearance="full" style="left:106px; top:49px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>PRN</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox12" ref="/root/main/prcp/prcplist/prepprcpflag" overflow="visible" appearance="full" style="left:106px; top:151px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Prep</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox13" ref="/root/main/prcp/prcplist/selfprcpflag" overflow="visible" appearance="full" style="left:106px; top:178px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>home</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox14" ref="/root/main/prcp/prcplist/precureprcpflag" overflow="visible" appearance="full" style="left:311px; top:151px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>선처치</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox15" ref="/root/main/prcp/prcplist/clincstdyflag" overflow="visible" appearance="full" style="left:311px; top:177px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>임상연구</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <line id="line4" class="line_3" style="x1:2px; y1:410px; x2:409px; y2:410px; "/>
- <select id="checkbox16" ref="/root/main/prcp/prcplist/selfdrugflag" overflow="visible" appearance="full" style="left:106px; top:202px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>self</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox17" ref="/root/chkflag/selfdrugflag" overflow="visible" appearance="full" style="left:7px; top:202px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>self</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/selfdrugflag" ) == "Y" ) {
- checkbox17.item(checkbox17.focusIndex).attribute("font-weight") = "bold";
- checkbox16.disabled = false;
- model.setValue ( "/root/main/prcp/prcplist/selfdrugflag", "Y" );
- model.refresh();
-
- } else {
- checkbox17.item(checkbox17.focusIndex).attribute("font-weight") = "normal";
- checkbox16.disabled = true;
- model.setValue ( "/root/main/prcp/prcplist/selfdrugflag", "N" );
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <caption id="caption11" class="cell_1" style="left:207px; top:226px; width:100px; height:23px; "/>
- <select id="checkbox19" ref="/root/chkflag/asttestflag" overflow="visible" appearance="full" style="left:212px; top:230px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>AST</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/asttestflag" ) == "Y" ) {
- checkbox19.item(checkbox19.focusIndex).attribute("font-weight") = "bold";
- checkbox18.disabled = false;
- model.setValue ( "/root/main/prcp/prcplist/asttestflag", "Y" );
- model.refresh();
-
- } else {
- checkbox19.item(checkbox19.focusIndex).attribute("font-weight") = "normal";
- checkbox18.disabled = true;
- model.setValue ( "/root/main/prcp/prcplist/asttestflag", "N" );
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <line id="line5" class="line_2" style="x1:2px; y1:277px; x2:410px; y2:277px; "/>
- <caption id="caption12" class="cell_1" style="left:2px; top:226px; width:100px; height:23px; "/>
- <select id="checkbox21" ref="/root/chkflag/prcpqty" overflow="visible" appearance="full" style="left:7px; top:230px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>수량</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/prcpqty" ) == "Y" ) {
- checkbox21.item(0).attribute("font-weight") = "bold";
- input1.disabled = false;
- model.refresh();
-
- } else {
- checkbox21.item(0).attribute("font-weight") = "normal";
- input1.disabled = true;
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <input id="input1" ref="/root/main/prcp/prcplist/prcpqty" style="left:104px; top:228px; width:100px; height:19px; "/>
- <select id="checkbox20" ref="/root/chkflag/prcpdayno" overflow="visible" appearance="full" style="left:7px; top:281px; width:73px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>일수</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/prcpdayno" ) == "Y" ) {
- checkbox20.item(0).attribute("font-weight") = "bold";
- input2.disabled = false;
- model.refresh();
-
- } else {
- checkbox20.item(0).attribute("font-weight") = "normal";
- input2.disabled = true;
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <input id="input2" ref="/root/main/prcp/prcplist/prcpdayno" style="left:104px; top:280px; width:100px; height:19px; "/>
- <select id="checkbox22" ref="/root/chkflag/prcptims" overflow="visible" appearance="full" style="left:7px; top:256px; width:97px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>횟수</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/prcptims" ) == "Y" ) {
- checkbox22.item(0).attribute("font-weight") = "bold";
- input3.disabled = false;
- model.refresh();
-
- } else {
- checkbox22.item(0).attribute("font-weight") = "normal";
- input3.disabled = true;
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <caption id="caption15" class="cell_1" style="left:2px; top:305px; width:101px; height:23px; "/>
- <select id="checkbox23" ref="/root/chkflag/drugmthdspccd" overflow="visible" appearance="full" style="left:7px; top:307px; width:73px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>용법</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/drugmthdspccd" ) == "Y" ) {
- checkbox23.item(0).attribute("font-weight") = "bold";
- fPrcpModal ("SPMMO01900", 50, 10);
- if ( getParameter ( "SPMMO01900_prcptims" ) == "Y" ) {
- model.setValue ( "/root/chkflag/prcptims", "Y" );
- checkbox22.dispatch ( "xforms-value-changed" );
- }
- if ( getParameter ( "SPMMO01900_rateprcpflag" ) == "Y" ) {
- model.setValue ( "/root/chkflag/prcpqty", "Y" );
- checkbox21.dispatch ( "xforms-value-changed" );
- }
- model.refresh();
-
- } else {
- checkbox23.item(0).attribute("font-weight") = "normal";
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <input id="input3" ref="/root/main/prcp/prcplist/prcptims" style="left:104px; top:255px; width:100px; height:19px; "/>
- <line id="line11" class="line_2" style="x1:2px; y1:329px; x2:410px; y2:329px; "/>
- <select1 id="combo2" ref="/root/main/prcp/prcplist/prcpexecdeptcd" class="combo_default" appearance="minimal" itemcount="30" style="left:310px; top:201px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <output id="output2" ref="/root/main/prcp/prcplist/drugmthdspccdnm" style="left:104px; top:306px; width:305px; height:19px; border-color:#c0c0c0; border-style:solid; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/drugmthdspccd" ) == "Y" ) {
- checkbox23.dispatch ( "xforms-value-changed" );
- }
-
- ]]>
- </script>
- </output>
- <datagrid id="grd_prcplist" visibility="hidden" caption="caption3" colsep="^" colwidth="100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:418px; width:35px; height:15px; ">
- <col/>
- </datagrid>
- <select id="checkbox24" ref="/root/chkflag/hosinhosoutflag" overflow="visible" appearance="full" style="left:7px; top:361px; width:73px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>원내/원외</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/hosinhosoutflag" ) == "Y" ) {
- checkbox24.item(0).attribute("font-weight") = "bold";
- radio1.disabled = false;
- var hosinprcpresncd = opener.model.getValue("/root/init/hosinprcpresncd");
- if ( hosinprcpresncd != "00" ) {
- combo3.disabled = false;
- } else {
- combo3.disabled = true;
- }
- model.refresh();
- } else {
- checkbox24.item(0).attribute("font-weight") = "normal";
- radio1.disabled = true;
- combo3.disabled = true;
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <line id="line12" class="line_2" style="x1:2px; y1:355px; x2:410px; y2:355px; "/>
- <select1 id="radio1" ref="/root/main/prcp/prcplist/hosinhosoutflag" appearance="full" cols="2" overflow="visible" style="left:105px; top:359px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>원내</label>
- <value>I</value>
- </item>
- <item>
- <label>원외</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag"); //환자리스트에서 준 외래, 입원, 응급 구분
- var hosinprcpresncd = opener.model.getValue("/root/init/hosinprcpresncd"); //원무에 있는 원내처방 사유 코드
-
- if ( model.getValue ( "/root/main/prcp/prcplist/hosinhosoutflag" ) == "I" ) {
- if ( hosinprcpresncd != "00" ) { //원무에 있는 원내처방 사유 코드가 있다면
- model.setValue ( "/root/main/prcp/prcplist/hosinprcpresncd", hosinprcpresncd ) ;
- }
- combo3.disabled = false;
- } else if ( model.getValue ( "/root/main/prcp/prcplist/hosinhosoutflag" ) == "O" ) { //원외를 선택하면
- model.setValue("/root/main/prcp/prcplist/hosinprcpresncd","00");
- combo3.disabled = true; //원내처방 사유코드를 입력할 수는 없다.
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo3" ref="/root/main/prcp/prcplist/hosinprcpresncd" class="combo_default" visibility="hidden" appearance="minimal" style="left:199px; top:359px; width:212px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/hosinprcpresncd/P0323">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //원내처방 사유를 선택해서 처방화면의 원내처방 사유랑 같은 것이 있으면 모두 그것으로 바꿈
- //약속처방, 지시처방에서는 되면 안됨
- if ( opener.model.getValue ( "/root/usge" ) == "prcp" ) {
- var hosinprcpresncd = model.getValue ( "/root/main/prcp/prcplist/hosinprcpresncd" );
- var openerHosinprcpresncd = opener.model.getValue ( "/root/init/hosinprcpresncd/P0034[cdid='" + hosinprcpresncd + "']/cdid" );
- if ( !isNull(openerHosinprcpresncd) && hosinprcpresncd != "00") {
- if ( messageBox ( "모든 약,주사 처방에 같은 원내처방 사유를", "Q009" ) == "6" ) {
- opener.model.setValue ( "/root/init/hosinprcpresncd", openerHosinprcpresncd );
- for ( i=1; i < opener.grd_prcplist.rows; i++ ) {
- var prcpclscd = opener.model.getValue ( "/root/main/prcp/prcplist[" + i + "]/prcpclscd" );
- if ( prcpclscd == "A2" || prcpclscd == "A4" || prcpclscd == "A6" ) {
- opener.model.setValue( "/root/main/prcp/prcplist[" + i + "]/hosinhosoutflag", "I"); //원내처방
- opener.model.setValue ( "/root/main/prcp/prcplist[" + i + "]/hosinprcpresncd", openerHosinprcpresncd );
- }
- }
- }
- opener.model.refresh();
- }
- }
- ]]>
- </script>
- </select1>
- <caption id="caption17" class="cell_1" style="left:2px; top:331px; width:101px; height:23px; "/>
- <select id="checkbox25" ref="/root/chkflag/contprcpspec" overflow="visible" appearance="full" style="left:7px; top:334px; width:73px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>지정일</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/contprcpspec" ) == "Y" ) {
-
- if ( model.getValue ( "/root/chkflag/selfprcpflag" ) == "Y" ) {
- messageBox ( "자가주사는 지정일을 선택", "E001" );
- model.setValue ( "/root/chkflag/contprcpspec", "N" );
- model.refresh();
- return;
- }
-
- checkbox25.item(checkbox25.focusIndex).attribute("font-weight") = "bold";
- // grd_prcpdetl2.row = 1;
- // setParameter("reqparam", getCurrentDate());
- // fPrcpModal("SPMMO10600", 20, 50);
- // fContPrcpDd( grd_prcpdetl2, "/root/main/prcp/prcplist" , "child" );
- // fContPrcpDdInit ( grd_prcpdetl2, 0 );
- fBundlePrcpDD("I");
- // output3.value = grd_prcpdetl2.valueMatrix ( 1, 0 );
- model.makeValue ( "/root/chkflag/prcpdayno", "Y" );
- checkbox20.dispatch ( "xforms-value-changed" );
- } else {
- checkbox25.item(checkbox25.focusIndex).attribute("font-weight") = "normal";
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <caption id="caption18" class="cell_1" style="left:206px; top:253px; width:100px; height:23px; "/>
- <select id="checkbox26" ref="/root/chkflag/drugspd" overflow="visible" appearance="full" style="left:212px; top:257px; width:92px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>투여속도</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/drugspd" ) == "Y" ) {
- checkbox26.item(checkbox26.focusIndex).attribute("font-weight") = "bold";
- input5.disabled = false;
- combo4.disabled = false;
- model.refresh();
-
- } else {
- checkbox26.item(checkbox26.focusIndex).attribute("font-weight") = "normal";
- input5.disabled = true;
- combo4.disabled = true;
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <input id="input5" ref="/root/main/prcp/prcplist/drugspd" imemode="disabled" format="#,###" style="left:310px; top:254px; width:40px; height:19px; "/>
- <select1 id="combo4" ref="/root/main/prcp/prcplist/drugspdunitflag" class="combo_default" appearance="minimal" style="left:352px; top:254px; width:57px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/drugspdunitflag/M0040">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line13" class="line_2" style="x1:2px; y1:303px; x2:410px; y2:303px; "/>
- <output id="output3" ref="/root/init/contprcpspec" style="left:104px; top:333px; width:305px; height:19px; border-color:#c0c0c0; border-style:solid; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/contprcpspec" ) == "Y" ) {
- setParameter("paramcalflag", "multi");
- setParameter("defaultday" , getCurrentDate());
- setParameter("reqparam", getCurrentDate());
- // fPrcpModal("SPMMO10600", 20, 50);
- fBundlePrcpDD("I");
- // grd_prcpdetl2.row = 1;
- // fContPrcpDd( grd_prcpdetl2, "/root/main/prcp/prcplist" , "child" );
- // fContPrcpDdInit ( grd_prcpdetl2, 0 );
- // model.refresh();
- // output3.value = grd_prcpdetl2.valueMatrix ( 1, 0 );
- }
- ]]>
- </script>
- </output>
- <datagrid id="grd_prcpdetl2" nodeset="/root/main/prcp/prcplist" visibility="hidden" caption="caption1" colsep="^" colwidth="192" mergecellsfixedrows="bycolrec" rowsep="|" style="left:38px; top:417px; width:45px; height:18px; ">
- <col/>
- </datagrid>
- <line id="line14" class="line_1" style="x1:2px; y1:14px; x2:410px; y2:14px; "/>
- <caption id="caption19" class="tit_2" style="left:5px; top:0px; width:121px; height:14px; ">공통</caption>
- <line id="line16" class="line_2" style="x1:2px; y1:43px; x2:410px; y2:43px; "/>
- <caption id="caption20" class="tit_2" style="left:5px; top:127px; width:121px; height:14px; ">주사</caption>
- <line id="line8" class="line_2" style="x1:2px; y1:224px; x2:409px; y2:224px; "/>
- <select id="checkbox18" ref="/root/main/prcp/prcplist/asttestflag" overflow="visible" appearance="full" style="left:311px; top:231px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>AST</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select1 id="radio2" ref="/root/main/prcp/prcplist/mealcalrcnts" appearance="full" cols="4" overflow="visible" style="left:105px; top:387px; width:160px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>1차</label>
- <value>1</value>
- </item>
- <item>
- <label>2차</label>
- <value>2</value>
- </item>
- <item>
- <label>3차</label>
- <value>3</value>
- </item>
- <item>
- <label>추가</label>
- <value>999</value>
- </item>
- </choices>
- </select1>
- <select id="checkbox27" ref="/root/chkflag/mealcalrcnts" overflow="visible" appearance="full" style="left:7px; top:389px; width:73px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>접종차수</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/mealcalrcnts" ) == "Y" ) {
- checkbox27.item(checkbox27.focusIndex).attribute("font-weight") = "bold";
- radio2.disabled = false;
- model.refresh();
- } else {
- checkbox27.item(checkbox27.focusIndex).attribute("font-weight") = "normal";
- radio2.disabled = true;
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <line id="line9" class="line_2" style="x1:2px; y1:382px; x2:410px; y2:382px; "/>
- <button id="button4" class="icon_search" style="left:79px; top:74px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter ( "SPMMB02200_cond2", "3" );
- fPrcpModal ( "SPMMB02200", 50, 50 );
- model.setValue ( "/root/main/prcp/prcplist/prcpdelivefact", getParameter ( "SPMMB02200_clinccmt" ));
- model.refresh();
- ]]>
- </script>
- </button>
- <bool id="bool1" checkvalue="Y,N" ref="/root/chkflag/anamneflag" style="left:207px; top:281px; width:25px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ){
- messageBox ( "기왕증은 임상연구와 동시에 선택 할 수", "I004" );
- bool1.value = "N";
- return;
- }
-
- if(bool1.value == "Y"){
- var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
- var pid = opener.model.getValue("/root/paminfo/list/pid");
- var indd = opener.model.getValue("/root/paminfo/list/indd");
-
- if(prcpgenrflag == "I" || prcpgenrflag == "D" || prcpgenrflag == "E"){
- var subcretno = fGetSubcretno(pid, indd, "anamneflag");
- model.setValue("/root/main/prcp/prcplist/subcretno", subcretno);
- if(subcretno == "0"){
- messageBox ( "환자의 부유형이 없거나 또는 선택되지 않았습니다.", "I999" );
- bool1.value = "N";
- }
- } else {
- messageBox ( "외래 환자는 기왕증을 선택 할 수", "I004" );
- bool1.value = "N";
- }
- }else{ //기왕증이 N로 처리된 경우에는 subcretno 0로 처리
- model.setValue("/root/main/prcp/prcplist/subcretno", "0");
- }
- ]]>
- </script>
- </bool>
- <caption id="caption23" style="left:229px; top:282px; width:50px; height:20px; ">기왕증</caption>
- </xhtml:body>
- </xhtml:html>
|