12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448 |
- <?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>
- <reqlist>
- <reqlist>
- <cnstseqno/>
- <stat/>
- <pid/>
- <hngnm/>
- <cretno/>
- <orddeptcd/>
- <prcpgenrflag/>
- <reqdd/>
- <repldd/>
- <replpharmst/>
- <formcd/>
- <formcdnm/>
- <wardnm/>
- <agesex/>
- <rrgstno/>
- <patstat/>
- <diagcd/>
- <orddd/>
- <inhospday/>
- <reqdrug/>
- <result/>
- <reqdeptnm/>
- <requsernm/>
- <reqresn/>
- <reqcomment/>
- <bcolldt/>
- <spcacptdt/>
- <formrecseq/>
- <reqdeptcd/>
- <requserid/>
- <cnstcnts1/>
- <prcpno/>
- <prcpcd/>
- <rgstseqno/>
- <sugastat/>
- <jamonstat/>
- <reqhm/>
- <replhm/>
- <sexnew/>
- </reqlist>
- </reqlist>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <listreqlistinfo>
- <reqlist>
- <cnstseqno/>
- <formcd/>
- <formcdnm/>
- <stat/>
- <reqdd/>
- <spcacptdt/>
- <bcolldt/>
- <prcpgenrflag/>
- <reqdrug/>
- <result/>
- <pid/>
- <hngnm/>
- <cretno/>
- <wardnm/>
- <agesex/>
- <diagcd/>
- <rrgstno/>
- <reqdeptnm/>
- <requsernm/>
- <orddd/>
- <inhospday/>
- <patstat/>
- <repldd/>
- <replpharmst/>
- <replpharmst2/>
- <reqresn/>
- <reqcomment/>
- <sugastat/>
- <jamonstat/>
- <formrecseq/>
- <reqdeptcd/>
- <requserid/>
- <cnstcnts1/>
- <prcpno/>
- <prcpcd/>
- <rgstseqno/>
- <orddeptcd/>
- <reqhm/>
- <replhm/>
- <sexnew/>
- </reqlist>
- </listreqlistinfo>
- </main>
- <send>
- <srchinfo/>
- <deptinfo>
- <deptflag/>
- </deptinfo>
- <chkpid/>
- </send>
- <init>
- <patinfo>
- <pid/>
- <hngnm/>
- <srchcond/>
- </patinfo>
- <srchinfo>
- <tdmreqnochk>A</tdmreqnochk>
- <startreqtm>0000</startreqtm>
- <endreqtm>2359</endreqtm>
- </srchinfo>
- </init>
- <hidden>
- <srchinfo>
- <startreqdd/>
- <endreqdd/>
- <startrepldd/>
- <endrepldd/>
- <formcd>-</formcd>
- <recvyn/>
- <ioflag>-</ioflag>
- <reqdeptcd/>
- <reqdeptcdnm/>
- <reqwardcd/>
- <reqpid/>
- <srchflag>1</srchflag>
- <pidonly/>
- <tdmreqnochk/>
- <lisddchk>R</lisddchk>
- <startreqtm>0000</startreqtm>
- <endreqtm>2359</endreqtm>
- <startrepltm>0000</startrepltm>
- <endrepltm>2359</endrepltm>
- <tdmdrugcd/>
- <tdmdrugnm/>
- <adrfstvaluyn/>
- </srchinfo>
- <deptlist>
- <dept>
- <deptcd/>
- <deptnm/>
- </dept>
- <ward>
- <wardcd/>
- <wardnm/>
- </ward>
- </deptlist>
- <cnststatinfo>
- <cnststat/>
- </cnststatinfo>
- <chkpid>
- <pharm>
- <pharmflag/>
- </pharm>
- </chkpid>
- <tdmdruginfo>
- <testlist>
- <drugcd/>
- <drugnm/>
- </testlist>
- </tdmdruginfo>
- </hidden>
- <temp>
- <cnstinfo>
- <cnstseqno/>
- <formrecseq/>
- <pid/>
- <rgstseqno/>
- <cnstdd/>
- <prcpgenrflag/>
- <orddd/>
- <cretno/>
- <cnsttype/>
- <formcd/>
- <btnreplflag/>
- <pidchkflag/>
- </cnstinfo>
- <srchinfo>
- <dept/>
- <tdmdrug/>
- </srchinfo>
- <slestat>
- <chkbox1/>
- <chkbox2/>
- <chkbox3/>
- <chkbox4/>
- <chkbox5/>
- <chkbox6/>
- <chkbox7/>
- <chkbox8/>
- <chkbox9>전체</chkbox9>
- </slestat>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/pharmacyconsultweb/js/SMADC00100.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //의뢰이유를 코드명으로 나열하기
- function fCnstResn() {
- var rowcount = getNodesetCount("/root/main/listreqlistinfo/reqlist");
- for ( var k = 1 ; k < rowcount; k++) {
- var cnstresn = model.getValue("/root/main/listreqlistinfo/reqlist[" + k +"]/reqresn");
- var temp = "";
- if ( cnstresn != "" ) {
- for ( i = 0; i < cnstresn.length; i+=2 ) {
- if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="1") {
- temp = temp + "적정용량 확인, "
- } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="2") {
- temp = temp + "독성의심, "
- } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="3") {
- temp = temp + "기대이하의 약효, "
- } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="4") {
- temp = temp + "상호작용약물 추가/중단, "
- } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="5") {
- temp = temp + "입원시 초기 농도 확인, "
- } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="6") {
- temp = temp + "중단 후 감소된 농도확인, "
- }
- }
- model.setValue("/root/main/listreqlistinfo/reqlist[" + k +"]/reqresn", temp.substr(0, temp.length-2));
- }
- }
- }
-
- function fchkbox() {
- var vchkbox1 = "";
- var vchkbox2 = "";
- var vchkbox3 = "";
- var vchkbox4 = "";
- var vchkbox5 = "";
- var vchkbox6 = "";
- var vchkbox7 = "";
- var vchkbox8 = "";
- var vchkbox9 = "";
- var vchk1 = "";
- var vchk2 = "";
- var vchk3 = "";
- var vchk4 = "";
- var vchk5 = "";
- var vchk6 = "";
- var vchk7 = "";
- var vchk8 = "";
- var vchk9 = "";
- var chkstr = "";
- var chkstrall = "";
- vchkbox1 = model.getValue("/root/temp/slestat/chkbox1");
- vchkbox2 = model.getValue("/root/temp/slestat/chkbox2");
- vchkbox3 = model.getValue("/root/temp/slestat/chkbox3");
- vchkbox4 = model.getValue("/root/temp/slestat/chkbox4");
- vchkbox5 = model.getValue("/root/temp/slestat/chkbox5");
- vchkbox6 = model.getValue("/root/temp/slestat/chkbox6");
- vchkbox7 = model.getValue("/root/temp/slestat/chkbox7");
- vchkbox8 = model.getValue("/root/temp/slestat/chkbox8");
- vchkbox9 = model.getValue("/root/temp/slestat/chkbox9");
-
- if ( vchkbox1 == "의뢰임시" ) {
- vchk1 = "Y" ;
- }
- if ( vchkbox2 == "의뢰" ) {
- vchk2 = "Y" ;
- }
- if ( vchkbox3 == "의뢰확정" ) {
- vchk3 = "Y" ;
- }
- if ( vchkbox4 == "회신임시" ) {
- vchk4 = "Y" ;
- }
- if ( vchkbox5 == "회신" ) {
- vchk5 = "Y" ;
- }
- if ( vchkbox6 == "회신확정" ) {
- vchk6 = "Y" ;
- }
- if ( vchkbox7 == "저장" ) {
- vchk7 = "Y";
- }
- if ( vchkbox8 == "취소" ) {
- vchk8 = "Y" ;
- }
- if ( vchkbox9 == "전체" ) {
- vchk9 = "Y" ;
- }
- if (vchk1 == "Y") {
- chkstr = chkstr + " stat = '의뢰임시' or " ;
- }
- if (vchk2 == "Y") {
- chkstr = chkstr + " stat = '의뢰' or " ;
- }
- if (vchk3 == "Y") {
- chkstr = chkstr + " stat = '의뢰확정' or " ;
- }
- if (vchk4 == "Y") {
- chkstr = chkstr + " stat = '회신임시' or " ;
- }
- if (vchk5 == "Y") {
- chkstr = chkstr + " stat = '회신' or " ;
- }
- if (vchk6 == "Y" ) {
- chkstr = chkstr + " stat = '회신확정' or " ;
- }
- if (vchk7 == "Y") {
- chkstr = chkstr + " stat = '저장' or " ;
- }
- if (vchk8 == "Y") {
- chkstr = chkstr + " stat = '취소' or " ;
- }
- chkstrall = chkstr + " stat = '마지막'" ;
- //alert(chkstrall);
- if (vchk9 == "Y") {
- grd_reqlist.nodeset="/root/main/reqlist/reqlist";
- model.refresh();
- }
- else {
- grd_reqlist.nodeset="/root/main/reqlist/reqlist["+ chkstrall + "]";
- model.refresh();
- }
- }
-
- ]]>
- </script>
- <submission id="TRADC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
- <submission id="TRADC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/reqlist"/>
- <submission id="TXADC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/cnstinfo" replace="instance" resultref="/root/hidden/cnststatinfo"/>
- <submission id="TRADC00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chkpid" replace="instance" resultref="/root/hidden/chkpid"/>
- <submission id="TRADB62202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/srchinfo" replace="instance" resultref="/root/hidden/tdmdruginfo/testlist"/>
- </model>
- </xhtml:head>
- <xhtml:body print-leftmargin=""" guideline="2,14;1,1202;2,784;2,743;1,1189;1,1194;1,1195;1,1206;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group4" scroll="auto" style="left:0px; top:740px; width:1195px; height:44px; ">
- <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1194px; height:741px; ">
- <group id="group1" visibility="hidden" style="left:0px; top:65px; width:1183px; height:664px; ">
- <datagrid id="grd_lisreqlist" nodeset="/root/main/listreqlistinfo/reqlist" scroll="auto" allowselection="true" allowuserresize="true" autoresize="false" backcoloralternate="#f0f0f0" caption="cnstseqno^의뢰구분^formcdnm^상태^의뢰일자^검체접수시간^채혈일시^prcpgenrflag^의뢰약물^혈중농도^환자번호^성명^cretno^병실^Age^Sex^주상병^rrgstno^의뢰과^의뢰자^내원/입원일^재원일수^환자상태^회신일자^회신약사^회신자^의뢰이유^전달사항^수가상태^자문상태^의뢰번호^reqdeptcd^requserid^cnstcnts1^prcpno^prcpcd^rgstseqno^orddeptcd^의뢰시간^회신시간" colsep="^" colwidth="77, 97, 100, 78, 77, 118, 117, 100, 155, 68, 71, 83, 100, 72, 52, 36, 129, 100, 93, 73, 79, 57, 64, 69, 73, 73, 135, 119, 93, 100, 100, 100, 100, 100, 100, 100, 100, 100, 65" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:35px; width:1179px; height:607px; text-align:center; ">
- <col ref="cnstseqno" visibility="hidden"/>
- <col disabled="true" ref="formcd" type="combo">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>ACS자문의뢰</label>
- <value>0000000964</value>
- </item>
- <item>
- <label>TDM자문의뢰</label>
- <value>0000000769</value>
- </item>
- <item>
- <label>약품식별의뢰</label>
- <value>0000000768</value>
- </item>
- <item>
- <label>NST의뢰(PN)</label>
- <value>0000000770</value>
- </item>
- <item>
- <label>ADR보고</label>
- <value>0000000693</value>
- </item>
- <item>
- <label>복약지도의뢰</label>
- <value>0000000771</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="formcdnm" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>ACS자문의뢰</label>
- <value>0000000964</value>
- </item>
- <item>
- <label>TDM자문의뢰</label>
- <value>0000000769</value>
- </item>
- <item>
- <label>약품식별의뢰</label>
- <value>0000000768</value>
- </item>
- <item>
- <label>NST의뢰(PN)</label>
- <value>0000000770</value>
- </item>
- <item>
- <label>ADR보고</label>
- <value>0000000693</value>
- </item>
- <item>
- <label>복약지도의뢰(항암)</label>
- <value>0000000771001</value>
- </item>
- <item>
- <label>복약지도의뢰(결핵)</label>
- <value>0000000771002</value>
- </item>
- <item>
- <label>복약지도의뢰(장기이식)</label>
- <value>0000000771003</value>
- </item>
- <item>
- <label>복약지도의뢰(흡입제)</label>
- <value>0000000771004</value>
- </item>
- <item>
- <label>복약지도의뢰(HIV)</label>
- <value>0000000771005</value>
- </item>
- <item>
- <label>복약지도의뢰(파킨슨)</label>
- <value>0000000771006</value>
- </item>
- <item>
- <label>복약지도의뢰(퇴원)</label>
- <value>0000000771007</value>
- </item>
- <item>
- <label>복약지도의뢰(기타)</label>
- <value>0000000771008</value>
- </item>
- <item>
- <label>복약지도의뢰(복막투석)</label>
- <value>0000000771009</value>
- </item>
- <item>
- <label>복약지도의뢰(항응고제)</label>
- <value>00000007710020</value>
- </item>
- </choices>
- </col>
- <col ref="stat" style="left:180px; top:23px; width:86px; height:23px; text-align:center; "/>
- <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="spcacptdt" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="bcolldt" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="reqdrug" style="text-align:left; "/>
- <col ref="result" style="left:118px; top:20px; width:100px; height:20px; text-align:right; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" type="output" style="text-align:center; "/>
- <col ref="cretno" visibility="hidden"/>
- <col disabled="true" ref="wardnm" type="output" style="text-align:center; "/>
- <col disabled="true" ref="agesex" type="output" style="text-align:center; "/>
- <col disabled="true" ref="sexnew" type="output" style="text-align:center; "/>
- <col ref="diagcd" style="text-align:left; "/>
- <col ref="rrgstno" visibility="hidden"/>
- <col ref="reqdeptnm" style="text-align:center; "/>
- <col ref="requsernm"/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="inhospday" style="text-align:right; "/>
- <col ref="patstat" style="text-align:center; "/>
- <col ref="repldd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="replpharmst" style="text-align:center; "/>
- <col ref="reqresn" style="text-align:left; "/>
- <col ref="reqcomment" style="left:951px; top:20px; width:100px; height:20px; text-align:left; "/>
- <col ref="sugastat" style="text-align:center; "/>
- <col ref="jamonstat" style="text-align:center; "/>
- <col ref="formrecseq"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="requserid" visibility="hidden"/>
- <col ref="cnstcnts1" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcpcd" visibility="hidden"/>
- <col ref="rgstseqno" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="reqhm" format="hh:nn" style="text-align:center; "/>
- <col ref="replhm" format="hh:nn" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( grd_lisreqlist.isCell(event.target) && grd_lisreqlist.row >= grd_lisreqlist.fixedRows ) {
- //기록된 서식
- var cnstseqno = model.getValue("/root/main/listreqlistinfo/reqlist["+grd_lisreqlist.row+"]/cnstseqno" );
- var formrecseq = model.getValue("/root/main/listreqlistinfo/reqlist["+grd_lisreqlist.row+"]/formrecseq" );
- var formcd = model.getValue("/root/main/listreqlistinfo/reqlist["+grd_lisreqlist.row+"]/formcd" );
- var pid = model.getValue("/root/main/listreqlistinfo/reqlist["+grd_lisreqlist.row+"]/pid" );
- var cretno = model.getValue("/root/main/listreqlistinfo/reqlist["+grd_lisreqlist.row+"]/cretno" );
- var prcpgenrflag = model.getValue("/root/main/listreqlistinfo/reqlist["+grd_lisreqlist.row+"]/prcpgenrflag" );
- var rgstseqno = model.getValue("/root/main/listreqlistinfo/reqlist["+grd_lisreqlist.row+"]/rgstseqno" );
- var reqdd = model.getValue("/root/main/listreqlistinfo/reqlist["+grd_lisreqlist.row+"]/reqdd" );
- var orddd = model.getValue("/root/main/listreqlistinfo/reqlist["+grd_lisreqlist.row+"]/orddd" );
- var btnflag = model.getValue("/root/main/listreqlistinfo/reqlist["+grd_lisreqlist.row+"]/stat" ); // 20100114_laboru_회신버튼 비활성화 위해서.
- var repluseridcheck = model.getValue("/root/main/listreqlistinfo/reqlist["+grd_lisreqlist.row+"]/repluseridcheck" ); // 20110907_laboru_회신자가 약사인지 확인
-
- setParameter("openmode" , "reccnstform");
- setParameter("formrecseq" , formrecseq); //서식기록테이블의 formrecseq(기록순번)
- setParameter("pid" , pid);
- setParameter("rgstseqno" , rgstseqno);
- model.setValue("/root/temp/cnstinfo/cnstseqno" ,cnstseqno);
- model.setValue("/root/temp/cnstinfo/formrecseq" , formrecseq);
- model.setValue("/root/temp/cnstinfo/pid" , pid);
- model.setValue("/root/temp/cnstinfo/cretno" , cretno);
- model.setValue("/root/temp/cnstinfo/prcpgenrflag" , prcpgenrflag);
- model.setValue("/root/temp/cnstinfo/rgstseqno" , rgstseqno);
- model.setValue("/root/temp/cnstinfo/cnstdd" , reqdd);
- model.setValue("/root/temp/cnstinfo/orddd" , orddd);
- model.setValue("/root/temp/cnstinfo/formcd" , formcd);
- model.setValue("/root/temp/cnstinfo/cnsttype" ,"ast"); // 약품식별회신을 위한 변수 설정
- // 20110907_laboru_회신자가 약사인지 여부 추가
- model.makeValue("/root/temp/cnstinfo/repluseridcheck", repluseridcheck);
-
- //setParameter("userdeptcd", "3242100000");
- //setParameter("replcnts" , "");
- //setParameter("overwrite" , "false");
-
- if(btnflag == "회신확정") { // 20100114_laboru_회신버튼 비활성화 위해서.
- model.setValue("/root/temp/cnstinfo/btnreplflag", "Y");
- } else {
- model.setValue("/root/temp/cnstinfo/btnreplflag", "N");
- }
-
- //********************************* 해당 의뢰건을 의뢰확정 상태로 변경 *********************************
- if(model.getValue("/root/hidden/chkpid/pharm/pharmflag") == "Y") { // 20100119_laboru_약사확인
- if(formrecseq != ""){
- var success = submit("TXADC00101");
- if(success){
- if(model.getValue("/root/hidden/cnststatinfo/cnststat") == "04")
- messageBox("취소된 의뢰건","I009");
- }
- }
- }
-
- //***********************************************************************************************
- if ( formcd =="0000000769"){ //TDM
- // 미의뢰 회신용 변수 설정
- /* 임시로 막음 2008-12-16
- if(formrecseq == ""){
- var prcpno = model.getValue("/root/main/reqlist/reqlist["+grd_lisreqlist.row+"]/prcpno" );
- var prcpcd = model.getValue("/root/main/reqlist/reqlist["+grd_lisreqlist.row+"]/prcpcd" );
-
- model.makeValue("/root/temp/cnstinfo/prcpno", prcpno);
- model.makeValue("/root/temp/cnstinfo/prcpcd", prcpcd);
- }
- */
-
- if(formrecseq != ""){
- modal("SMADC00900", 1, 0, 0 ,"SMADC00900","/root/temp/cnstinfo", "/root/temp/cnstinfo");
- }
- }
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- // 소트 후 인스턴스 정리
- grd_lisreqlist.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
- ]]>
- </script>
- </datagrid>
- <select1 id="rdo_tdmreqnochk" ref="/root/init/srchinfo/tdmreqnochk" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:360px; top:5px; width:155px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>미의뢰</label>
- <value>N</value>
- </item>
- <item>
- <label>의뢰</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChgIOFlag();
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:265px; top:5px; width:90px; height:17px; ">의뢰구분:</caption>
- <button id="button2" class="btn2_letter2" style="left:1145px; top:5px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_lisreqlist.saveExcel(file);
- ]]>
- </script>
- </button>
- <caption id="caption12" visibility="hidden" style="left:530px; top:0px; width:660px; height:35px; ">
- <![CDATA[***** 개발자 확인해주세요 - 이 Group은 TDM의뢰- 검제접수일자 조회일때만 조회되는 Group입니다.
- 이 Group아래부분에 의뢰관리의 원 Grid가 존재합니다 . 유의해주세요 *****]]>
- </caption>
- </group>
- <datagrid id="grd_reqlist" nodeset="/root/main/reqlist/reqlist" scroll="both" allowselection="true" allowuserresize="true" autoresize="false" backcoloralternate="#f0f0f0" caption="cnstseqno^상태^환자번호^성명^cretno^orddeptcd^prcpgenrflag^의뢰일자^회신일자^회신약사^의뢰구분^의뢰구분^병실^Age^Sex^rrgstno^환자상태^주상병^내원/입원일^재원일수^의뢰약물^결과^의뢰과^의뢰자^의뢰이유^전달사항^채혈일시^임병접수일시^의뢰번호^reqdeptcd^requserid^cnstcnts1^prcpno^prcpcd^rgstseqno^sugastat^jamonstat^의뢰시간^회신시간^1차평가 일자^1차평가 일시^1차평가자^처방코드^약품명^유해증상^인과관계^심각도^발현정도^사례내용^기타의견^반응내용^문헌내용" colsep="^" colwidth="100, 60, 86, 61, 100, 100, 100, 84, 84, 63, 95, 139, 59, 30, 30, 100, 58, 100, 86, 57, 161, 82, 103, 58, 100, 119, 116, 121, 110, 100, 100, 100, 100, 100, 100, 100, 100, 67, 70, 80, 80, 75, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:101px; width:1178px; height:611px; ">
- <col ref="cnstseqno" visibility="hidden"/>
- <col ref="stat" style="text-align:center; "/>
- <col ref="pid" style="left:180px; top:23px; width:86px; height:23px; "/>
- <col ref="hngnm"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="reqdd" format="yyyy-mm-dd" style="left:118px; top:20px; width:100px; height:20px; "/>
- <col ref="repldd" format="yyyy-mm-dd"/>
- <col ref="replpharmst"/>
- <col disabled="true" ref="formcd" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>ACS자문의뢰</label>
- <value>0000000964</value>
- </item>
- <item>
- <label>TDM자문의뢰</label>
- <value>0000000769</value>
- </item>
- <item>
- <label>약품식별의뢰</label>
- <value>0000000768</value>
- </item>
- <item>
- <label>NST의뢰(PN)</label>
- <value>0000000770</value>
- </item>
- <item>
- <label>ADR보고</label>
- <value>0000000693</value>
- </item>
- <item>
- <label>복약지도의뢰</label>
- <value>0000000771</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="formcdnm" type="combo">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>ACS자문의뢰</label>
- <value>0000000964</value>
- </item>
- <item>
- <label>TDM자문의뢰</label>
- <value>0000000769</value>
- </item>
- <item>
- <label>약품식별의뢰</label>
- <value>0000000768</value>
- </item>
- <item>
- <label>NST의뢰(PN)</label>
- <value>0000000770</value>
- </item>
- <item>
- <label>ADR보고</label>
- <value>0000000693</value>
- </item>
- <item>
- <label>복약지도의뢰(항암)</label>
- <value>0000000771001</value>
- </item>
- <item>
- <label>복약지도의뢰(결핵)</label>
- <value>0000000771002</value>
- </item>
- <item>
- <label>복약지도의뢰(장기이식)</label>
- <value>0000000771003</value>
- </item>
- <item>
- <label>복약지도의뢰(흡입제)</label>
- <value>0000000771004</value>
- </item>
- <item>
- <label>복약지도의뢰(HIV)</label>
- <value>0000000771005</value>
- </item>
- <item>
- <label>복약지도의뢰(파킨슨)</label>
- <value>0000000771006</value>
- </item>
- <item>
- <label>복약지도의뢰(퇴원)</label>
- <value>0000000771007</value>
- </item>
- <item>
- <label>복약지도의뢰(기타)</label>
- <value>0000000771008</value>
- </item>
- <item>
- <label>복약지도의뢰(복막투석)</label>
- <value>0000000771009</value>
- </item>
- <item>
- <label>복약지도의뢰(항응고제)</label>
- <value>00000007710020</value>
- </item>
- </choices>
- </col>
- <col ref="wardnm"/>
- <col ref="agesex" style="left:1151px; top:23px; width:30px; height:23px; "/>
- <col ref="sexnew"/>
- <col ref="rrgstno" visibility="hidden"/>
- <col ref="patstat" style="text-align:center; "/>
- <col ref="diagcd"/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="inhospday"/>
- <col ref="reqdrug"/>
- <col ref="result" visibility="hidden"/>
- <col ref="reqdeptnm"/>
- <col ref="requsernm"/>
- <col ref="reqresn" style="left:951px; top:20px; width:100px; height:20px; "/>
- <col ref="reqcomment"/>
- <col ref="bcolldt" visibility="hidden" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
- <col ref="spcacptdt" visibility="hidden" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
- <col ref="formrecseq"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="requserid" visibility="hidden"/>
- <col ref="cnstcnts1" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcpcd" visibility="hidden"/>
- <col ref="rgstseqno" visibility="hidden"/>
- <col ref="sugastat" visibility="hidden"/>
- <col ref="jamonstat" visibility="hidden"/>
- <col ref="reqhm" format="hh:nn" style="text-align:center; "/>
- <col ref="replhm" format="hh:nn" style="text-align:center; "/>
- <col ref="fstvaludd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fstvalutm" format="hh:nn" style="text-align:center; "/>
- <col ref="fstvalunm" style="text-align:center; "/>
- <col ref="drugcd"/>
- <col ref="drugnm"/>
- <col ref="symp"/>
- <col ref="casrslt"/>
- <col ref="serigrde"/>
- <col ref="sympmnftgrde"/>
- <col ref="advscnts"/>
- <col ref="cmt"/>
- <col ref="adrcntssmm"/>
- <col ref="srchcnts"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( grd_reqlist.isCell(event.target) && grd_reqlist.row >= grd_reqlist.fixedRows ) {
- //기록된 서식
- var cnstseqno = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/cnstseqno" );
- var formrecseq = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/formrecseq" );
- var formcd = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/formcd" );
- var pid = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/pid" );
- var cretno = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/cretno" );
- var prcpgenrflag = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/prcpgenrflag" );
- var rgstseqno = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/rgstseqno" );
- var reqdd = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/reqdd" );
- var orddd = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/orddd" );
- var btnflag = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/stat" ); // 20100114_laboru_회신버튼 비활성화 위해서.
- var repluseridcheck = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/repluseridcheck" ); // 20110907_laboru_회신자가 약사인지 확인
-
- setParameter("openmode", "reccnstform");
- setParameter("formrecseq", formrecseq); //서식기록테이블의 formrecseq(기록순번)
- setParameter("pid", pid);
- setParameter("rgstseqno", rgstseqno);
- model.setValue("/root/temp/cnstinfo/cnstseqno",cnstseqno);
- model.setValue("/root/temp/cnstinfo/formrecseq", formrecseq);
- model.setValue("/root/temp/cnstinfo/pid", pid);
- model.setValue("/root/temp/cnstinfo/cretno", cretno);
- model.setValue("/root/temp/cnstinfo/prcpgenrflag", prcpgenrflag);
- model.setValue("/root/temp/cnstinfo/rgstseqno", rgstseqno);
- model.setValue("/root/temp/cnstinfo/cnstdd", reqdd);
- model.setValue("/root/temp/cnstinfo/orddd", orddd);
- model.setValue("/root/temp/cnstinfo/formcd", formcd);
- model.setValue("/root/temp/cnstinfo/cnsttype","ast"); // 약품식별회신을 위한 변수 설정
- // 20110907_laboru_회신자가 약사인지 여부 추가
- model.makeValue("/root/temp/cnstinfo/repluseridcheck", repluseridcheck);
- //setParameter("userdeptcd", "3242100000");
- //setParameter("replcnts" , "");
- //setParameter("overwrite" , "false");
-
- if(btnflag == "회신확정") { // 20100114_laboru_회신버튼 비활성화 위해서.
- model.setValue("/root/temp/cnstinfo/btnreplflag", "Y");
- } else {
- model.setValue("/root/temp/cnstinfo/btnreplflag", "N");
- }
-
- //********************************* 해당 의뢰건을 의뢰확정 상태로 변경 *********************************
- if(model.getValue("/root/hidden/chkpid/pharm/pharmflag") == "Y") { // 20100119_laboru_약사확인
- if(formrecseq != ""){
- var success = submit("TXADC00101");
- if(success){
- if(model.getValue("/root/hidden/cnststatinfo/cnststat") == "04")
- messageBox("취소된 의뢰건","I009");
- }
- }
- }
-
- //***********************************************************************************************
- if ( formcd =="0000000964"){ //ACS
- modal("SMADC00200", 1, 0, 0 ,"SMADC00200","/root/temp/cnstinfo", "/root/temp/cnstinfo");
- }
- if ( formcd =="0000000769"){ //TDM
- // 미의뢰 회신용 변수 설정
- /* 임시로 막음 2008-12-16
- if(formrecseq == ""){
- var prcpno = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/prcpno" );
- var prcpcd = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/prcpcd" );
-
- model.makeValue("/root/temp/cnstinfo/prcpno", prcpno);
- model.makeValue("/root/temp/cnstinfo/prcpcd", prcpcd);
- }
- */
- if(formrecseq != ""){
- modal("SMADC00900", 1, 0, 0 ,"SMADC00900","/root/temp/cnstinfo", "/root/temp/cnstinfo");
- }
- }
-
- if ( formcd =="0000000768"){ //약품식별
- modal("SMADC01600", 1, 0, 0 ,"SMADC01600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
- }
-
- if ( formcd =="0000000770"){ //NST
- model.setValue("/root/temp/cnstinfo/formcd",formcd); // EN, PN구분을 위한 formcd 설정
- modal("SMADC02600", 1, 0, 0 ,"SMADC02600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
- }
-
- if ( formcd =="0000000693"){ //ADR
- //modal("SMADC00600", 1, 0, 0 ,"SMADC00600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
- open("SMADC00600", 1, 0, 0 ,"SMADC00600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
- }
-
- if ( formcd =="0000000771"){ //복약상담
- var cnstcnts1 = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/cnstcnts1" );
- var hcnt =0 ; // 복약상담 의뢰약물 항암제
- var bcnt =0 ; // 복약상담 의뢰약물 항암제
-
- for ( i = 0; i < cnstcnts1.length; i+=2 ) {
- if (cnstcnts1.substr(i,1) != "" && cnstcnts1.substr(i,1)=="1") {
- hcnt = hcnt + 1
- } else if (cnstcnts1.substr(i,1) != "" && cnstcnts1.substr(i,1)=="4") {
- bcnt = bcnt + 1
- }
- }
- // alert("cnstcnts1 : " + cnstcnts1);
- if (hcnt>0) { // 복약상담회신서(항암제)
- //alert ("복약상담회신서(항암제) 준비중입니다");
- modal("SMADC03000", 1, 0, 0 ,"SMADC03000","/root/temp/cnstinfo", "/root/temp/cnstinfo");
- } else if (bcnt>0) { // 복약상담회신서(흡입제)
- modal("SMADC02700", 1, 0, 0 ,"SMADC02700","/root/temp/cnstinfo", "/root/temp/cnstinfo");
- } else { // 복약상담회신서(일반)
- modal("SMADC02800", 1, 0, 0 ,"SMADC02800","/root/temp/cnstinfo", "/root/temp/cnstinfo");
- }
- }
- // // 2009-02-05 복약상담(일반(-formcd)/흡입제(-formcd+002)/항암(formcd+003)) 구분
- // if ( formcdnm =="0000000771"){ //복약상담
- // modal("SMADC02800", 1, 0, 0 ,"SMADC02800","/root/temp/cnstinfo", "/root/temp/cnstinfo");
- // }
- // if ( formcdnm =="0000000771002"){ //복약상담회신서(흡입제)
- // modal("SMADC02700", 1, 0, 0 ,"SMADC02700","/root/temp/cnstinfo", "/root/temp/cnstinfo");
- // }
- // if ( formcdnm =="0000000771003"){ // 복약상담회신서(항암제)
- // modal("SMADC03000", 1, 0, 0 ,"SMADC03000","/root/temp/cnstinfo", "/root/temp/cnstinfo");
- // }
-
- // modal("SSMMR01100", 1, 0, 0 ,"", "", "");
- //fOpenPopup();
- /*var formrecseq = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/formrecseq" );
-
- setParameter("openmode", "deptcnstform");
- setParameter("formrecseq", formrecseq);
- setParameter("overwrite", "false");
-
- setParameter("replcnts", "");
- modal("SSMMR01100", 1, 0, 0, "", "", "");*/
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- // 소트 후 인스턴스 정리
- grd_reqlist.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:7px; width:1194px; height:62px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:665px; top:9px; width:73px; height:17px; ">진료과 :</caption>
- <input id="input3" ref="/root/hidden/srchinfo/reqpid" class="input_search" style="left:975px; top:35px; width:98px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <button id="button11" class="icon_search" style="left:1078px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "", "");
- if(model.getValue("/root/main/patinfo/patinfolist/pid") != ""){
- model.setValue("/root/hidden/srchinfo/reqpid" ,model.getValue("/root/main/patinfo/patinfolist/pid"));
- //model.setValue("/root/send/srchinfo/srchhngnm",model.getValue("/root/init/patinfo/hngnm"));
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:496px; top:9px; width:65px; height:17px; ">선택 :</caption>
- <select id="checkbox3" ref="/root/hidden/srchinfo/recvyn" class="checkbox_search" overflow="visible" appearance="full" style="left:560px; top:10px; width:104px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>회신 환자 제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption2" class="search_name" style="left:880px; top:9px; width:73px; height:17px; ">병동 :</caption>
- <select1 id="rdo_ioflag" ref="/root/hidden/srchinfo/ioflag" class="radio_search" appearance="full" cols="4" rows="1" overflow="visible" style="left:490px; top:35px; width:175px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChgIOFlag();
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:880px; top:35px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="caption5" class="search_name" style="left:5px; top:6px; width:86px; height:17px; ">의뢰일자 :</caption>
- <input id="ipt_startreqdd" ref="/root/hidden/srchinfo/startreqdd" class="input_search" inputtype="date" style="left:101px; top:5px; width:85px; height:19px; "/>
- <input id="ipt_endreqdd" ref="/root/hidden/srchinfo/endreqdd" class="input_search" inputtype="date" style="left:226px; top:5px; width:85px; height:19px; "/>
- <select1 id="combo1" ref="/root/hidden/srchinfo/reqwardcd" class="combo_search" appearance="minimal" cols="2" style="left:975px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/deptlist/ward">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/srchinfo/reqwardcd") != ""){
- rdo_ioflag.value = "I";
- } else rdo_ioflag.value = "-";
- model.refresh();
- ]]>
- </script>
- </select1>
- <line id="line13" style="x1:1115px; y1:5px; x2:1115px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line2" class="line_2" style="x1:15px; y1:30px; x2:1110px; y2:30px; "/>
- <caption id="caption6" class="search_name" style="left:665px; top:35px; width:86px; height:17px; ">의뢰약물 :</caption>
- <input id="inp_tdmdrugnm" ref="/root/hidden/srchinfo/tdmdrugnm" class="input_search" disabled="true" style="left:757px; top:35px; width:98px; height:19px; "/>
- <button id="button1" class="icon_search" style="left:860px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(chk_tdmdrug.visible){
- chk_tdmdrug.visible = false;
- }else {
- submit("TRADB62202"); //TDM 기준정보 데이타 가져오기 (ast.adbmtdmbase)
- astfAddCombo("/root/hidden/tdmdruginfo/testlist", "item", "testcd,testnm", "A,전체선택"); //2010-01-25 진료과 멀티선택 가능하도록 추가처리
- chk_tdmdrug.visible = true;
- }
- model.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:5px; top:36px; width:86px; height:17px; ">회신일자 :</caption>
- <input id="ipt_endrepldd" ref="/root/hidden/srchinfo/endrepldd" class="input_search" inputtype="date" style="left:226px; top:35px; width:85px; height:19px; "/>
- <input id="ipt_startrepldd" ref="/root/hidden/srchinfo/startrepldd" class="input_search" inputtype="date" style="left:101px; top:35px; width:85px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:355px; top:8px; width:80px; height:17px; ">의뢰구분:</caption>
- <select1 id="combo2" ref="/root/hidden/srchinfo/formcd" class="combo_search" appearance="minimal" style="left:355px; top:35px; width:125px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>ACS자문의뢰</label>
- <value>0000000964</value>
- </item>
- <item>
- <label>TDM자문의뢰</label>
- <value>0000000769</value>
- </item>
- <item>
- <label>약품식별의뢰</label>
- <value>0000000768</value>
- </item>
- <item>
- <label>NST의뢰</label>
- <value>0000000770</value>
- </item>
- <item>
- <label>복약지도의뢰</label>
- <value>0000000771</value>
- </item>
- <item>
- <label>ADR보고</label>
- <value>0000000693</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //2008-10-30 TDM 선택시에만 [의뢰일자/임병접수일자]comboboax 활성화 && [임병접수일자]-[미의뢰만] checkbox 활성화되도록 처리
- // grd_reqlist.colhidden(19) = true; //검사결과
- // grd_reqlist.colhidden(25) = true; //채혈일시
- // grd_reqlist.colhidden(26) = true; //임병접수일시
- model.setValue("/root/hidden/srchinfo/lisddchk","R"); // 의뢰일자/임병접수일자 구분 (의뢰일자기본)
- model.setValue("/root/hidden/srchinfo/tdmreqnochk",""); // 미의뢰만 Check (미Check기본)
-
- if ((model.getValue("/root/hidden/srchinfo/formcd") == "0000000769" ) && (model.getValue("/root/hidden/srchinfo/srchflag") == "1" )) {
- cmb_lisddchk.visible = true; //의뢰일자/임병일자 구분 - 활성화
- if (model.getValue("/root/hidden/srchinfo/lisddchk") == "L") { // 임병접수일자 일경우만 [미의뢰만] - 활성화
- //chk_tdmreqnochk.visible = true; //2010-01-19 group1 로 대체됨
- group1.attribute("visibility") = "visible"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
- }else{
- //chk_tdmreqnochk.visible = false; //2010-01-19 group1 로 대체됨
- group1.attribute("visibility") = "hidden"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
- }
- }else{
- cmb_lisddchk.visible = false; //의뢰일자/임병일자 구분 - 비활성화
- //chk_tdmreqnochk.visible = false; // 미의뢰만 구분 - 비활성화 //2010-01-19 group1 로 대체됨
- group1.attribute("visibility") = "hidden"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
- }
-
- if(model.getValue("/root/hidden/srchinfo/formcd") == "0000000693" ) {
- fChoiADRRept("1");
- } else {
- fChoiADRRept("2");
- }
- ]]>
- </script>
- </select1>
- <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fReqMngtData(); //의뢰 조회
-
- //2008-10-30 TDM 선택시에만 [임병접수일자]조회시 검사결과/채혈일시/임병접수일시 보여지도록
- if (model.getValue("/root/hidden/srchinfo/lisddchk") == "L"){
- //grd_reqlist.colhidden(19) = false; //검사결과
- //grd_reqlist.colhidden(25) = false; //채혈일시
- //grd_reqlist.colhidden(26) = false; //임병접수일시
-
- // 2010-01-19 [검체접수일자]변경시 Group2 활성화 시킴. Copy Node
- model.copyNode("/root/main/listreqlistinfo" , "/root/main/reqlist");
- model.resetInstanceNode( "/root/main/reqlist" );
- fCnstResn(); //의뢰이유를 코드명으로 나열하기
- model.refresh();
- }
-
- // 20110907_laboru_약제부가 아니면 회신약사 컬럼을 회신자로 변경
- grd_reqlist.valueMatrix(0, grd_reqlist.colRef("replpharmst")) = "회신자";
-
- ]]>
- </script>
- </button>
- <select1 id="rdo_srch" ref="/root/hidden/srchinfo/srchflag" class="radio_search" appearance="full" vcellspacing="12" overflow="visible" style="left:5px; top:2px; width:15px; height:56px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>1</value>
- </item>
- <item>
- <label/>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //2008-10-30 TDM 선택시에만 [의뢰일자/임병접수일자]comboboax 활성화 && [임병접수일자]-[미의뢰만] checkbox 활성화되도록 처리
- grd_reqlist.colhidden(19) = true; //검사결과
- grd_reqlist.colhidden(24) = true; //채혈일시
- grd_reqlist.colhidden(25) = true; //임병접수일시
- model.setValue("/root/hidden/srchinfo/lisddchk","R"); // 의뢰일자/임병접수일자 구분 (의뢰일자기본)
- model.setValue("/root/hidden/srchinfo/tdmreqnochk",""); // 미의뢰만 Check (미Check기본)
- if ((model.getValue("/root/hidden/srchinfo/formcd") == "0000000769" ) && (model.getValue("/root/hidden/srchinfo/srchflag") == "1" )) {
- cmb_lisddchk.visible = true; //의뢰일자/임병일자 구분 - 활성화
- if (model.getValue("/root/hidden/srchinfo/lisddchk") == "L") { // 임병접수일자 일경우만 [미의뢰만] - 활성화
- //chk_tdmreqnochk.visible = true; //2010-01-19 group1 로 대체됨
- group1.attribute("visibility") = "visible"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
- }else{
- //chk_tdmreqnochk.visible = false; //2010-01-19 group1 로 대체됨
- group1.attribute("visibility") = "hidden"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
- }
- }else{
- cmb_lisddchk.visible = false; //의뢰일자/임병일자 구분
- //chk_tdmreqnochk.visible = false; // 미의뢰만 구분 //2010-01-19 group1 로 대체됨
- group1.attribute("visibility") = "hidden"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
- }
- ]]>
- </script>
- </select1>
- <select id="chk_pidonly" ref="/root/hidden/srchinfo/pidonly" overflow="visible" appearance="full" style="left:1097px; top:35px; width:15px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- ipt_startreqdd.disabled = true;
- ipt_endreqdd.disabled = true;
- ipt_startrepldd.disabled = true;
- ipt_endrepldd.disabled = true;
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- ipt_startreqdd.disabled = false;
- ipt_endreqdd.disabled = false;
- ipt_startrepldd.disabled = false;
- ipt_endrepldd.disabled = false;
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="chk_tdmreqnochk" ref="/root/hidden/srchinfo/tdmreqnochk" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" style="left:400px; top:10px; width:20px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>미의뢰만</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select1 id="cmb_lisddchk" ref="/root/hidden/srchinfo/lisddchk" class="combo_search" visibility="hidden" appearance="minimal" style="left:24px; top:5px; width:76px; height:19px; ">
- <choices>
- <item>
- <label>의뢰일자</label>
- <value>R</value>
- </item>
- <item>
- <label>검체접수일자</label>
- <value>L</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //2008-10-30 TDM 선택시에만 [의뢰일자/임병접수일자]comboboax 활성화 && [임병접수일자]-[미의뢰만] checkbox 활성화되도록 처리
- model.setValue("/root/hidden/srchinfo/tdmreqnochk",""); // 미의뢰만 Check (미Check기본)
- if (model.getValue("/root/hidden/srchinfo/lisddchk") == "L"){
- grd_reqlist.colhidden(19) = false; //검사결과
- grd_reqlist.colhidden(24) = false; //채혈일시
- grd_reqlist.colhidden(25) = false; //임병접수일시
- //chk_tdmreqnochk.visible = true; //미의뢰만 Check //2010-01-19 group1 로 대체됨
- group1.attribute("visibility") = "visible"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
- }else{
- grd_reqlist.colhidden(19) = true; //검사결과
- grd_reqlist.colhidden(24) = true; //채혈일시
- grd_reqlist.colhidden(25) = true; //임병접수일시
- //chk_tdmreqnochk.visible = false; //미의뢰만 Check //2010-01-19 group1 로 대체됨
- group1.attribute("visibility") = "hidden"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
- model.setValue ("/root/hidden/srchinfo/tdmreqnochk","A");
- model.setValue ("/root/hidden/srchinfo/startreqtm","0000");
- model.setValue ("/root/hidden/srchinfo/endreqtm","2359");
- }
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/hidden/srchinfo/startreqtm" class="input_search" format="hh:nn" style="left:186px; top:5px; width:35px; height:19px; "/>
- <input id="input4" ref="/root/hidden/srchinfo/endreqtm" class="input_search" format="hh:nn" style="left:311px; top:5px; width:35px; height:19px; "/>
- <input id="input5" ref="/root/hidden/srchinfo/startrepltm" class="input_search" format="hh:nn" style="left:186px; top:35px; width:35px; height:19px; "/>
- <input id="input6" ref="/root/hidden/srchinfo/endrepltm" class="input_search" format="hh:nn" style="left:311px; top:35px; width:35px; height:19px; "/>
- <input id="ipt_deptnm" ref="/root/hidden/srchinfo/reqdeptcdnm" class="input_search" disabled="true" style="left:745px; top:7px; width:110px; height:19px; "/>
- <button id="button4" class="icon_search" style="left:860px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(chk_dept.visible){
- chk_dept.visible = false;
- }else {
- chk_dept.visible = true;
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_deptcd" ref="/root/hidden/srchinfo/reqdeptcd" class="input_search" disabled="true" visibility="hidden" style="left:730px; top:10px; width:15px; height:19px; "/>
- <input id="inp_tdmdrugcd" ref="/root/hidden/srchinfo/tdmdrugcd" class="input_search" disabled="true" visibility="hidden" style="left:740px; top:35px; width:15px; height:19px; "/>
- <select id="chk_fstvaluyn" ref="/root/hidden/srchinfo/adrfstvaluyn" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" style="left:435px; top:10px; width:60px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>1차완료</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <button id="button7" class="btn2_letter2" style="left:1145px; top:70px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_reqlist.saveExcel(file);
- ]]>
- </script>
- </button>
- <select id="chk_dept" ref="/root/temp/srchinfo/dept" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="2" sep="|" style="left:745px; top:26px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
- <choices>
- <itemset nodeset="/root/hidden/deptlist/dept">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(chk_dept.mouseRow == 0 && chk_dept.mouseCol == 0 ){ //전체선택
- if(isSearchString(model.getValue("/root/temp/srchinfo/dept"),"A")){ //2010-01-25 전체
- var dept = "";
- for(var i = 1; i <= getNodesetCount("/root/hidden/deptlist/dept"); i++){
- dept += model.getValue("/root/hidden/deptlist/dept["+i+"]/deptcd")+"|";
- }
- model.setValue("/root/temp/srchinfo/dept", dept);
- }else{
- model.setValue("/root/temp/srchinfo/dept", "");
- }
- model.refresh();
- }
-
- if(isSearchString(model.getValue("/root/temp/srchinfo/dept"),"A")){
- ipt_deptcd.value = chk_dept.value.substr(2,chk_dept.value.length); //전체선택(A) 코드 제외
- ipt_deptnm.value = chk_dept.label.substr(5,chk_dept.label.length); //전체선택 명칭 제외
- } else {
- ipt_deptcd.value = chk_dept.value;
- ipt_deptnm.value = chk_dept.label;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousemove">
- <![CDATA[
- chk_dept.visible=true;
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- chk_dept.visible=false;
- ]]>
- </script>
- </select>
- <select id="chk_tdmdrug" ref="/root/temp/srchinfo/tdmdrug" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="1" sep="|" style="left:755px; top:55px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
- <choices>
- <itemset nodeset="/root/hidden/tdmdruginfo/testlist/item">
- <label ref="testnm"/>
- <value ref="testcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(chk_tdmdrug.mouseRow == 0 && chk_tdmdrug.mouseCol == 0 ){ //전체선택
- if(isSearchString(model.getValue("/root/temp/srchinfo/tdmdrug"),"A")){ //2010-01-25 전체
- var tdmdrug = "";
- for(var i = 1; i <= getNodesetCount("/root/hidden/tdmdruginfo/testlist/item"); i++){
- tdmdrug += model.getValue("/root/hidden/tdmdruginfo/testlist/item["+i+"]/testcd")+"|";
- }
- model.setValue("/root/temp/srchinfo/tdmdrug" , tdmdrug);
- }else{
- model.setValue("/root/temp/srchinfo/tdmdrug", "");
- }
- model.refresh();
- }
-
- if(isSearchString(model.getValue("/root/temp/srchinfo/tdmdrug"),"A")){
- inp_tdmdrugcd.value = chk_tdmdrug.value.substr(2,chk_tdmdrug.value.length); //전체선택(A) 코드 제외
- inp_tdmdrugnm.value = chk_tdmdrug.label.substr(5,chk_tdmdrug.label.length); //전체선택 명칭 제외
- } else {
- inp_tdmdrugcd.value = chk_tdmdrug.value;
- inp_tdmdrugnm.value = chk_tdmdrug.label;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousemove">
- <![CDATA[
- chk_tdmdrug.visible=true;
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- chk_tdmdrug.visible=false;
- ]]>
- </script>
- </select>
- <group id="group5" style="left:5px; top:70px; width:685px; height:25px; ">
- <select id="checkbox1" ref="/root/temp/slestat/chkbox9" overflow="visible" appearance="full" style="left:5px; top:5px; width:70px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>전체</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fchkbox();
- ]]>
- </script>
- </select>
- <select id="checkbox2" ref="/root/temp/slestat/chkbox1" overflow="visible" appearance="full" style="left:75px; top:5px; width:70px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>의뢰임시</label>
- <value>의뢰임시</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fchkbox();
- ]]>
- </script>
- </select>
- <select id="checkbox4" ref="/root/temp/slestat/chkbox2" overflow="visible" appearance="full" style="left:165px; top:5px; width:70px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>의뢰</label>
- <value>의뢰</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fchkbox();
- ]]>
- </script>
- </select>
- <select id="checkbox5" ref="/root/temp/slestat/chkbox3" overflow="visible" appearance="full" style="left:230px; top:5px; width:72px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>의뢰확정</label>
- <value>의뢰확정</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fchkbox();
- ]]>
- </script>
- </select>
- <select id="checkbox6" ref="/root/temp/slestat/chkbox4" overflow="visible" appearance="full" style="left:310px; top:5px; width:72px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>회신임시</label>
- <value>회신임시</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fchkbox();
- ]]>
- </script>
- </select>
- <select id="checkbox7" ref="/root/temp/slestat/chkbox5" overflow="visible" appearance="full" style="left:400px; top:5px; width:55px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>회신</label>
- <value>회신</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fchkbox();
- ]]>
- </script>
- </select>
- <select id="checkbox8" ref="/root/temp/slestat/chkbox6" overflow="visible" appearance="full" style="left:465px; top:5px; width:72px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>회신확정</label>
- <value>회신확정</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fchkbox();
- ]]>
- </script>
- </select>
- <select id="checkbox9" ref="/root/temp/slestat/chkbox7" overflow="visible" appearance="full" style="left:550px; top:5px; width:55px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>저장</label>
- <value>저장</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fchkbox();
- ]]>
- </script>
- </select>
- <select id="checkbox10" ref="/root/temp/slestat/chkbox8" overflow="visible" appearance="full" style="left:615px; top:5px; width:55px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>취소</label>
- <value>취소</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fchkbox();
- ]]>
- </script>
- </select>
- </group>
- </group>
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">의뢰관리</caption>
- </xhtml:body>
- </xhtml:html>
|