12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <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>
- <temp>
- <prnuseyn/>
- </temp>
- </main>
- <init>
- <prcpdirecflag/>
- <payflagcd/>
- <drugspd/>
- <drugmthdspccdnm/>
- <hosinprcpresncd/>
- <orddept/>
- </init>
- <chkflag>
- <erprcpflag/>
- <prnprcpflag/>
- <erreadflag/>
- <portprcpflag/>
- <precureprcpflag/>
- <clincstdyflag/>
- <payflagcd/>
- <prcphopedd/>
- <clinccmtcnts/>
- <prcpdelivefact/>
- <prepprcpflag/>
- <powdflag/>
- <selfdrugflag/>
- <prcpqty/>
- <prcpdayno/>
- <asttestflag/>
- <prcptims/>
- <prcpexecdeptcd/>
- <drugmthdspccd/>
- <hosinhosoutflag/>
- <anamneflag/>
- <drugindependpackflag/>
- </chkflag>
- <send>
- <cond1/>
- <cond2/>
- <cond3/>
- </send>
- <tempgrid/>
- <orddept/>
- <temp>
- <send/>
- <patsupkind/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- zbcfGetCodeList(new Array("M0029", "P0323"), new Array("/root/init/payflagcd", "/root/init/hosinprcpresncd"));
- var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
- var pParentNode = null;
- var node01 = instance1.selectSingleNode("/root/init/hosinprcpresncd/P0323[cdid='01']");
- if(node01 != null){
- pParentNode = node01.parentNode;
- pParentNode.removeChild(node01);
- }
-
- //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "insuuseyn", "", "/root/init/orddept" , "depthngnm"); //부서코드 콤보 조회
- 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");
- fPrcpExecDeptSrch("all");
- if (opener.javascript.getParameter("SPMMO12100_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;
- }
-
- checkbox10.disabled = true;
- checkbox11.disabled = true;
- checkbox12.disabled = true;
- checkbox13.disabled = true;
- checkbox14.disabled = true;
- checkbox15.disabled = true;
- checkbox16.disabled = true;
- checkbox18.disabled = true;
-
- 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" );
- model.setValue ( "/root/main/prcp/prcplist/hosinprcpresncd",hosinprcpresncd );
- } 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;
- input1.disabled = true;
- input2.disabled = true;
- input3.disabled = true;
- radio1.disabled = true;
- textarea1.disabled = true;
- button4.disabled = true;
- model.refresh();
- opener.javascript.setParameter ( "batipt_rtn1", "" );
- opener.javascript.setParameter ( "batipt_rtn1_useyn", "N" );
- opener.javascript.setParameter ( "SPMMO12100_drugrateqty", "" );
- 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="355" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption16" class="cell_1" style="left:2px; top:303px; width:101px; height:23px; "/>
- <caption id="caption14" class="cell_1" style="left:2px; top:251px; width:100px; height:23px; "/>
- <caption id="caption13" class="cell_1" style="left:207px; top:225px; width:101px; height:23px; "/>
- <caption id="caption10" class="cell_1" style="left:2px; top:199px; width:100px; height:23px; "/>
- <button id="button1" class="btn4_letter2" style="left:294px; top:333px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var erprcpflag_useyn = "";
- var erprcpflag = "";
- var drugindependpackflag_useyn = "";
- var drugindependpackflag = "";
- var prnprcpflag_useyn = "";
- var prnprcpflag = "";
- var prepprcpflag_useyn = "";
- var prepprcpflag = "";
- var powdflag_useyn = "";
- var powdflag = "";
- 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 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 prcpdelivefact_useyn = "";
- var prcpdelivefact = "";
- var useyn = "";
- var value = "";
- var anamneflag = "";
- var header = "erprcpflag|drugindependpackflag|prnprcpflag|prepprcpflag|powdflag|selfdrugflag|prcpqty|prcptims|drugmthdspccd|drugmthdspccdnm|rateprcpflag|drugrateqty|precureprcpflag|clincstdyflag|payflagcd|prcpexecdeptcd|prcpdayno|hosinhosoutflag|hosinprcpresncd|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/drugindependpackflag" ) == "Y" ) {
- drugindependpackflag_useyn = "Y" + "|";
- drugindependpackflag = model.getValue ("/root/main/prcp/prcplist/drugindependpackflag" ) + "|";
- if ( isNull(model.getValue ("/root/main/prcp/prcplist/drugindependpackflag" ))) {
- drugindependpackflag = "N" + "|";
- }
- } else {
- drugindependpackflag_useyn = "N" + "|";
- drugindependpackflag = "" + "|";
- }
- useyn = useyn + drugindependpackflag_useyn;
- value = value +drugindependpackflag;
-
- 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/powdflag" ) == "Y" ) {
- powdflag_useyn = "Y" + "|";
- powdflag = model.getValue ("/root/main/prcp/prcplist/powdflag" ) + "|";
- if ( isNull(model.getValue ("/root/main/prcp/prcplist/powdflag" ))) {
- powdflag = "N" + "|";
- }
- } else {
- powdflag_useyn = "N" + "|";
- powdflag = "" + "|";
- }
- useyn = useyn + powdflag_useyn ;
- value = value + powdflag;
-
- 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/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"); //원무에 있는 원내처방 사유 코드
-
- //마약 및 mset약제 원외불가 by sonjy 2008-09-15 start
- 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");
- // 마약중 경구약은 원외 처방 가능하도록 수정 ( 2010, 12. 03 han19)
- // if( getArrayData ( sTmp + "^", 0, 23, "^", "|" ) == "M" || //마약
- // opener.model.getValue( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedRow(i) + "]/inclprcpno") != "0" ) {
- 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" );
- }
- }
-
- //외래이고, 원무의 원내사유가 없고, 원내선택하고, 원채처방사유가 없을 경우
- 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/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:333px; 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:146px; width:100px; height:23px; "/>
- <caption id="caption3" class="cell_1" style="left:2px; top:72px; 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:146px; width:100px; height:23px; "/>
- <caption id="caption4" class="cell_1" style="left:207px; 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:212px; 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:150px; 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/powdflag" overflow="visible" appearance="full" style="left:7px; top:178px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>pow</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/powdflag" ) == "Y" ) {
- checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "bold";
- checkbox13.disabled = false;
- model.setValue ( "/root/main/prcp/prcplist/powdflag", "Y" );
- model.refresh();
- } else {
- checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "normal";
- checkbox13.disabled = true;
- model.setValue ( "/root/main/prcp/prcplist/powdflag", "N" );
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <line id="line15" class="line_2" style="x1:2px; y1:171px; x2:410px; y2:171px; "/>
- <select id="checkbox5" ref="/root/chkflag/prcpdelivefact" overflow="visible" appearance="full" style="left:7px; top:75px; 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:150px; 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";
- model.setValue ( "/root/main/prcp/prcplist/precureprcpflag", "N" );
- checkbox14.disabled = true;
- 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" );
- } 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:70px; x2:410px; y2:70px; "/>
- <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:197px; x2:410px; y2:197px; "/>
- <line id="line3" class="line_2" style="x1:2px; y1:223px; x2:409px; y2:223px; "/>
- <textarea id="textarea1" ref="/root/main/prcp/prcplist/prcpdelivefact" style="left:103px; top:72px; width:307px; height:49px; "/>
- <line id="line7" class="line_1" style="x1:2px; y1:141px; x2:410px; y2:141px; "/>
- <caption id="caption9" class="cell_1" style="left:207px; top:199px; 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:311px; 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:150px; 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/powdflag" overflow="visible" appearance="full" style="left:106px; top:178px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>pow</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox14" ref="/root/main/prcp/prcplist/precureprcpflag" overflow="visible" appearance="full" style="left:311px; top:150px; 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:327px; x2:409px; y2:327px; "/>
- <select id="checkbox16" ref="/root/main/prcp/prcplist/selfdrugflag" overflow="visible" appearance="full" style="left:106px; top:203px; 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:203px; 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>
- <line id="line5" class="line_2" style="x1:3px; y1:249px; x2:411px; y2:249px; "/>
- <caption id="caption12" class="cell_1" style="left:2px; top:225px; width:100px; height:23px; "/>
- <select id="checkbox21" ref="/root/chkflag/prcpqty" overflow="visible" appearance="full" style="left:7px; top:229px; 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:103px; top:227px; width:100px; height:19px; "/>
- <select id="checkbox20" ref="/root/chkflag/prcpdayno" overflow="visible" appearance="full" style="left:212px; top:227px; 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(checkbox20.focusIndex).attribute("font-weight") = "bold";
- input2.disabled = false;
- model.refresh();
-
- } else {
- checkbox20.item(checkbox20.focusIndex).attribute("font-weight") = "normal";
- input2.disabled = true;
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <input id="input2" ref="/root/main/prcp/prcplist/prcpdayno" format="999" style="left:310px; top:227px; width:100px; height:19px; "/>
- <select id="checkbox22" ref="/root/chkflag/prcptims" overflow="visible" appearance="full" style="left:7px; top:254px; 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:277px; width:101px; height:23px; "/>
- <select id="checkbox23" ref="/root/chkflag/drugmthdspccd" overflow="visible" appearance="full" style="left:7px; top:279px; 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>
- <line id="line8" class="line_2" style="x1:0px; y1:275px; x2:408px; y2:275px; "/>
- <input id="input3" ref="/root/main/prcp/prcplist/prcptims" format="99" style="left:103px; top:253px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey ( "button3", "DOMActivate" );
- ]]>
- </script>
- </input>
- <line id="line11" class="line_2" style="x1:3px; y1:275px; x2:411px; y2:275px; "/>
- <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="output1" ref="/root/main/prcp/prcplist/drugmthdspccd" visibility="hidden" style="left:310px; top:278px; width:100px; height:19px; "/>
- <output id="output2" ref="/root/main/prcp/prcplist/drugmthdspccdnm" style="left:104px; top:278px; 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" nodeset="/root/tempgrid" visibility="hidden" caption="caption3" colsep="^" colwidth="100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:330px; width:20px; height:14px; ">
- <col/>
- </datagrid>
- <select id="checkbox24" ref="/root/chkflag/hosinhosoutflag" overflow="visible" appearance="full" style="left:7px; top:305px; 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:301px; x2:410px; y2:301px; "/>
- <select1 id="radio1" ref="/root/main/prcp/prcplist/hosinhosoutflag" appearance="full" cols="2" overflow="visible" style="left:105px; top:304px; width:85px; 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" appearance="minimal" style="left:190px; top:304px; width:219px; 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>
- <button id="button3" visibility="hidden" style="left:20px; top:327px; width:15px; height:20px; ">
- <caption>button3</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue ( "/root/chkflag/drugmthdspccd" ) == "Y" ) {
- grd_prcplist.row = 1;
- fBaseMthd ();
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="caption18" class="tit_2" style="left:5px; top:0px; width:121px; height:14px; ">공통</caption>
- <line id="line13" class="line_1" style="x1:2px; y1:14px; x2:410px; y2:14px; "/>
- <line id="line14" class="line_2" style="x1:2px; y1:43px; x2:410px; y2:43px; "/>
- <caption id="caption17" class="tit_2" style="left:5px; top:127px; width:121px; height:13px; ">약</caption>
- <button id="button4" class="icon_search" style="left:78px; top:76px; 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>
- <caption id="caption11" class="cell_1" style="left:207px; top:251px; width:101px; height:23px; "/>
- <bool id="bool1" checkvalue="Y,N" ref="/root/chkflag/anamneflag" style="left:208px; top:253px; 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="caption19" style="left:230px; top:254px; width:50px; height:20px; ">기왕증</caption>
- <caption id="caption20" class="cell_1" style="left:2px; top:45px; width:100px; height:23px; "/>
- <select id="checkbox18" ref="/root/main/prcp/prcplist/drugindependpackflag" overflow="visible" appearance="full" style="left:105px; top:49px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>따로포장</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox19" ref="/root/chkflag/drugindependpackflag" overflow="visible" appearance="full" style="left:6px; top:49px; 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/drugindependpackflag" ) == "Y" ) {
- checkbox19.item(checkbox19.focusIndex).attribute("font-weight") = "bold";
- checkbox18.disabled = false;
- model.setValue ( "/root/main/prcp/prcplist/drugindependpackflag", "Y" );
- model.refresh();
- } else {
- checkbox19.item(checkbox19.focusIndex).attribute("font-weight") = "normal";
- checkbox18.disabled = true;
- model.setValue ( "/root/main/prcp/prcplist/drugindependpackflag", "N" );
- model.refresh();
- }
- ]]>
- </script>
- </select>
- </xhtml:body>
- </xhtml:html>
|