12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>
- <![CDATA[원스탑퇴원정리]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <dschinfo>
- <actingchklist/>
- <noactdruglist/>
- <retdruglist/>
- <uncnfmlist/>
- <execddchklist/>
- <outdruglist/>
- <enddruglist/>
- <outrsrvinfo>
- <optpcomment/>
- </outrsrvinfo>
- <outrsrvinfolist/>
- <tnsprcplist/>
- <tnsprcpinfo>
- <tnsprcpcomment/>
- </tnsprcpinfo>
- <narcprcplist/>
- <narcprcpinfo>
- <narccomment/>
- </narcprcpinfo>
- <homecarecnstlist>
- <cnstcomment/>
- </homecarecnstlist>
- <unrecblodinfo>
- <unrecyn/>
- <unrecblodcomment/>
- </unrecblodinfo>
- <tellprcplist/>
- </dschinfo>
- <cond>
- <pid/>
- <indd/>
- <cretno/>
- <duty/>
- <wardcd/>
- <roomcd/>
- <hngnm/>
- <orddeptcd/>
- <outdrugcmt/>
- <resncd/>
- <resnetc/>
- <dschdclrdt/>
- </cond>
- <paminfo/>
- </main>
- <send>
- <reqdata/>
- <cond1/>
- <cond2/>
- <cond3/>
- <cond4/>
- <cond5/>
- <cond6/>
- <cond7/>
- </send>
- <hidden/>
- <actingend>
- <endlist/>
- </actingend>
- <temp>
- <userinfo>
- <userinfo>
- <userid/>
- <drugdeptcd/>
- </userinfo>
- </userinfo>
- <result/>
- </temp>
- <endinfo/>
- <init>
- <codeinfo/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var sPamInfo = getGlobalVariable("paminfo");
- setCSVToNode("/root/main/paminfo",sPamInfo,"list"); //환자정보내리기
-
- var jobposcd = "";
-
- model.makeValue("/root/send/reqdata/cdgrupid", "'U28', 'U29', 'I03'");
- model.makeValue("/root/send/reqdata/srchdd", getCurrentDate());
-
- submit("TRMNW00001", false);
-
- var useyn = model.getValue("/root/init/codeinfo/codelist[cdgrupid='U28']/cdid");
- var monyn = model.getValue("/root/init/codeinfo/codelist[cdgrupid='I03']/cdid");
-
-
- if(getUserInfo("userid") == "ENR") {
- btn_req.visible = true;
- btn_cert.visible = true;
- } else {
- if(useyn == "Y") {
- jobposcd = getUserInfo("jobposcd");
-
- if(jobposcd == "75") {
- btn_cert.visible = true;
- btn_req.visible = false;
- } else {
- btn_cert.visible = false;
- btn_req.visible = true;
- }
- } else {
- btn_req.visible = false;
- btn_cert.visible = false;
- }
- }
-
- if(monyn == "Y"){
- btn_mon.visible = true;
- }else{
- btn_mon.visible = false;
- }
-
- var pid = model.getValue("/root/main/paminfo/list/pid");
- var indd = model.getValue("/root/main/paminfo/list/indd");
- var cretno = model.getValue("/root/main/paminfo/list/cretno");
- var wardcd = model.getValue("/root/main/paminfo/list/wardcd");
- var roomcd = model.getValue("/root/main/paminfo/list/roomcd");
- var hngnm = model.getValue("/root/main/paminfo/list/hngnm");
- var orddeptcd = model.getValue("/root/main/paminfo/list/orddeptcd");
- var dschdclrdt = model.getValue("/root/main/paminfo/list/dschdclrdt");
-
- model.setValue("/root/main/cond/pid", pid);
- model.setValue("/root/main/cond/indd", indd);
- model.setValue("/root/main/cond/cretno", cretno);
- model.setValue("/root/main/cond/wardcd", wardcd);
- model.setValue("/root/main/cond/roomcd", roomcd);
- model.setValue("/root/main/cond/hngnm", hngnm);
- model.setValue("/root/main/cond/orddeptcd", orddeptcd);
- model.setValue("/root/main/cond/dschdclrdt", dschdclrdt.substr(0,8));
-
- // model.setValue("/root/main/cond/pid", "1702766");
- // model.setValue("/root/main/cond/indd", "20131008");
- // model.setValue("/root/main/cond/cretno", "1");
-
- var curTime = getCurrentTime().substr(0,4);
-
- if(curTime>"0800" && curTime < "1601"){
- rdo_duty.select(0);
- }
- else if(curTime>"1600" && curTime < "2301"){
- rdo_duty.select(1);
- }
- else {
- rdo_duty.select(2);
- }
-
- model.setValue("/root/temp/userinfo/userinfo/userid", getUserInfo("userid"));
- model.setValue("/root/temp/userinfo/userinfo/drugdeptcd", getUserInfo("dutplcecd"));
-
- fSearch();
-
- grd_uncnfmlist.fixedcellcheckbox(0, grd_uncnfmlist.colRef("chkyn")) = true;
- grd_enddruglist.fixedcellcheckbox(0, grd_enddruglist.colRef("chkyn")) = true;
- grd_execddchklist.fixedcellcheckbox(0, grd_execddchklist.colRef("chkyn")) = true;
- grd_actingchklist.fixedcellcheckbox(0, grd_actingchklist.colRef("chk")) = true;
- grd_narcprcpinfolist.fixedcellcheckbox(0, grd_narcprcpinfolist.colRef("chkyn")) = true;
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fSearch() {
-
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNW17201");
-
- var prcpkindcdnm;
- for(var i = grd_noactdruglist.fixedRows; i < grd_noactdruglist.rows; i ++) {
- prcpkindcdnm = grd_noactdruglist.valueMatrix(i, grd_noactdruglist.colRef("prcpkindcdnm"));
-
- if(prcpkindcdnm == "수술중") {
- grd_noactdruglist.cellStyle("background-color", i, grd_noactdruglist.colRef("prcpkindcdnm")) = "#ffff00"
- grd_noactdruglist.rowStyle(i, "data", "font-weight") = "bold"
- alert("1");
- }
- }
-
- if(grd_outdruglist.rows > grd_outdruglist.fixedRows) {
- opt_outdrugcmt.value = "정리되지 않은 외출외박약이 존재합니다.";
- }
-
- var reqflag;
- for(var i = grd_execddchklist.fixedRows; i < grd_execddchklist.rows; i++) {
- reqflag = grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("reqflag"));
-
- if(reqflag != "") {
- grd_execddchklist.cellStyle("background-color", i, grd_execddchklist.colRef("dcstat"), i, grd_execddchklist.colRef("dcstat")) = "#11eeee";
- }
-
- }
-
- }
-
- function fNarcActing(sActing) {
-
- var chkyn;
- var narcstat;
- var cnclstat;
- var rtnstat;
- var ioflag;
- var inclprcpcd;
- var issdeptcd;
- var deptchgyn;
- var sActing_nm = "";
- var issmsg = "";
-
- var node = instance1.selectNodes(grd_narcprcpinfolist.nodeset + "[chkyn='Y']");
-
- if(node.length == 0) {
- messageBox("선택된 데이터가 존재하지 않습니다.", "E");
- return;
- }
-
- for(var i = grd_narcprcpinfolist.fixedRows; i < grd_narcprcpinfolist.rows; i++) {
- chkyn = grd_narcprcpinfolist.valueMatrix(i, grd_narcprcpinfolist.colRef("chkyn"));
- narcstat = grd_narcprcpinfolist.valueMatrix(i, grd_narcprcpinfolist.colRef("narcstat"));
- cnclstat = grd_narcprcpinfolist.valueMatrix(i, grd_narcprcpinfolist.colRef("cnclstat"));
- rtnstat = grd_narcprcpinfolist.valueMatrix(i, grd_narcprcpinfolist.colRef("rtnstat"));
- ioflag = grd_narcprcpinfolist.valueMatrix(i, grd_narcprcpinfolist.colRef("ioflag"));
- inclprcpcd = grd_narcprcpinfolist.valueMatrix(i, grd_narcprcpinfolist.colRef("inclprcpcd"));
- issdeptcd = grd_narcprcpinfolist.valueMatrix(i, grd_narcprcpinfolist.colRef("issdeptcd"));
- deptchgyn = grd_narcprcpinfolist.valueMatrix(i, grd_narcprcpinfolist.colRef("deptchgyn"));
-
- if(chkyn == "Y") {
- if(sActing =="rtn") {
- if(cnclstat != "0" || narcstat=="5") {
- sActing = "spre";
- }
- }
- if(sActing == "drug") {
- if(narcstat != "1") {
- messageBox("이미 불출신청한 마약은 불출신청 할 수 없습니다.", "E");
- return;
- } else {
- }
- } else if(sActing == "drugcncl") {
- if(narcstat!= "2") {
- messageBox("불출신청 상태가 아니면 불출신청 취소를 할 수 없습니다", "E");
- return;
-
-
- }
- } else if(sActing =="acpt") {
- if(narcstat != "5" && narcstat > "5") {
- messageBox("이미 부서확인 된 마약입니다", "E");
- return;
- } else if(narcstat != "5" && narcstat < "5") {
- messageBox("불출되지 않은 마약은 부서확인 할 수 없습니다", "E");
- return;
- }
-
- } else if(sActing == "spre") {
- if(narcstat != "6") {
- messageBox("처방 D/C처리 이후에 반납/반환신청이","I006");
- return;
- }
- } else if(sActing == "rtn") {
- if(cnclstat == "0" && narcstat !="5") {
- if(rtnstat != "0" || narcstat != "6") {
- messageBox("처방 D/C처리 이후에 반납/반환신청이","I006");
- return;
- }
- }
- }
- }
- }
-
- if(sActing == "drug") {
- sActing_nm = "불출신청";
- } else if(sActing == "drugcncl") {
- sActing_nm = "불출신청취소";
- } else if(sActing == "acpt") {
- sActing_nm = "부서확인";
- } else if(sActing == "spre") {
- sActing_nm = "반납/반환신청";
- } else if(sActing == "rtn") {
- sActing_nm = "반납/반환신청";
- }
-
-
- var rtn = messageBox(sActing_nm + " 하시겠습니까?", "Q");
- if(rtn != "6") {
- return;
- }
- var msg_val ="6";
-
- if(sActing == "drug" || sActing == "spre" || sActing == "rtn") {
- if(sActing == "drug") {
- msg_val = messageBox("수행부서가 " + getUserInfo("dutplcenm") +"(으)로 불출신청됩니다", "I");
- msg_val = "6";
- } else {
- msg_val = messageBox(getUserInfo("dutplcenm") +"(으)로 반환/잔량신청","Q003")
- }
- }
-
- if(msg_val == 6) {
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/narcflag", "M");
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/timeflag", "2");
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/fst_dd", model.getValue("/root/main/paminfo/list/indd"));
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/last_dd", getCurrentDate());
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/srchpid", model.getValue("/root/main/cond/pid"));
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/wardcd", model.getValue("/root/main/cond/wardcd"));
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/roomcd", model.getValue("/root/main/cond/roomcd"));
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/barcode", "");
-
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/drugkind", "T");
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/srchioflag", "I");
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/narcstat", "T");
-
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/cnclstat", "T");
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/rtnstat", "T");
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/drugdeptcd", getUserInfo("dutplcecd"));
-
- model.makeValue("/root/send/savedata/narcinfo/srchinfo/acting", sActing);
-
- model.makeValue("/root/send/savedata/narcinfo/userinfo/userid", getUserInfo("userid"));
- model.makeValue("/root/send/savedata/narcinfo/userinfo/userdeptcd", getUserInfo("dutplcecd"));
-
- var nodePath = "/root/send/savedata/narcinfo/narcprcplist";
- var nodePathdes = "/root/send/savedata/narcinfo";
-
- model.removeNodeset(nodePath);
-
- var nodelist = instance1.selectNodes(grd_narcprcpinfolist.nodeset + "[chkyn='Y']");
-
- var cnt = 0;
- var desnode = instance1.selectSingleNode(nodePathdes);
-
- var node;
-
- if(nodelist.length > 0) {
- while(node = nodelist.nextNode()) {
- model.duplicate(desnode, node);
- }
- }
-
- submit("TXMNW17202");
- fSearch();
- }
-
- }
- ]]>
- </script>
- <submission id="TRMNW17201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dschinfo"/>
- <submission id="TXMNW00301" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TXMNW17201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TRMMO00148" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXMNW17202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/narcinfo" resultref="/root/temp"/>
- <submission id="TXMNW10701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/codeinfo"/>
- <submission id="TXMNW00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp/result"/>
- <submission id="TXMNW17203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/tmp"/>
- <submission id="TXMNR00609" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/saveinfo" resultref="/root/tmp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="900" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:1185px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:15px; ">퇴원정리 조회</caption>
- </group>
- <group id="group2" style="left:0px; top:15px; width:1185px; height:872px; ">
- <button id="button1" class="btn5_letter5" style="left:470px; top:65px; width:75px; height:19px; font-family:돋움체; ">
- <caption>강제Acting</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var curdd = getCurrentDate();
-
- var node2 = instance1.selectNodes(grd_actingchklist.nodeset + "[chk='Y' and (prcpdd >'" + curdd + "' or prcphopedd >'" + curdd + "')]");
- var node = instance1.selectNodes(grd_actingchklist.nodeset + "[chk='Y']");
-
- if(node2.length > 0) {
- messageBox("미래일자 처방이 있습니다. Acting이 불가능합니다.", "E");
- return;
- }
-
- if(node.length == 0) {
- messageBox("처방이 선택되지 않았습니다.", "I");
- return;
- }
- var calcscorcd;
- var clscd;
- var clscd1;
- var prcpno
- var prcpcd;
- var prcpnm;
- var statcd;
- var chk;
-
- for(var i = grd_actingchklist.fixedRows; i < grd_actingchklist.rows; i++) {
- calcscorcd = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("calcscorcd"));
- clscd = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("clscd"));
- clscd1 = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("clscd1"));
- prcpno = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("prcpno"));
- prcpcd = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("prcpcd"));
- prcpnm = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("prcpnm"));
- statcd = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("statcd"));
- chk = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("chk"));
-
- if(chk == "Y") {
-
- if(calcscorcd == "" || calcscorcd == null) {
- if(clscd == "B2" || clscd == "B6" || clscd == "D2") {
- if(statcd == "000" || statcd == "100") {
- messageBox("바코드 발행 후에 강제 Acting이 가능합니다.", "I");
- return;
- } else {
- grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("status")) = "update";
- grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("actyn")) = "Y";
- }
- } else if(clscd == "M2" || clscd == "H4" || clscd == "I2") {
- if(statcd == "000") {
- messageBox("간호 확인 후 강제 Acting하십시오.", "I");
- return;
- } else {
- grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("status")) = "update";
- grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("actyn")) = "Y";
- }
- } else {
- messageBox("진검, 핵의학검체, 병리가 아닌 처방은 강제Acting할 수 없습니다. ", "E");
- return;
- }
- } else {
- grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("status")) = "update";
- grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("actyn")) = "Y";
- }
- }
- }
- model.makeValue("/root/send/savedata/deptflg", "A");
- model.makeValue("/root/send/savedata/prcplist", getGridUpdateData(grd_actingchklist));
-
- submit("TXMNW10701");
-
- messageBox("강제 Acting이 완료되었습니다", "I");
- fSearch();
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_actingchklist" nodeset="/root/main/dschinfo/actingchklist" caption="^처방상태^처방코드^처방명^처방적용일^예약일시^처방일시^caption1^caption2^calcscorcd^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16^caption17^caption18^caption19^caption20^caption21^caption22^caption23^caption24^caption25^caption26^caption27^caption3^caption28^caption29^caption30^caption31^caption32" colsep="^" colwidth="24, 70, 82, 180, 75, 105, 105, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:90px; width:590px; height:111px; font-family:돋움체; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="execprcpstatcd" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rsrvdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="status" visibility="hidden"/>
- <col ref="actyn" visibility="hidden"/>
- <col ref="calcscorcd" visibility="hidden"/>
- <col ref="clscd" visibility="hidden"/>
- <col ref="clscd1" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="statcd" visibility="hidden"/>
- <col ref="prcptoyn" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="execprcpno" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="ekgbaseflag" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="rgstdeptcd" visibility="hidden"/>
- <col ref="rgstrid" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="wardcd" visibility="hidden"/>
- <col ref="wardnm" visibility="hidden"/>
- <col ref="medispclid" visibility="hidden"/>
- <col ref="prcpkindcd" visibility="hidden"/>
- <col ref="roomcd" visibility="hidden"/>
- <col ref="carecnfmdd" visibility="hidden"/>
- <col ref="prcpexecdeptcd" visibility="hidden"/>
- <col ref="prcphopedd" visibility="hidden"/>
- <col ref="rsrvflag" visibility="hidden"/>
- <col ref="execprcpstatcd" visibility="hidden"/>
- <col ref="dutflag" visibility="hidden"/>
- <col ref="enddd" visibility="hidden"/>
- <col ref="cvrtbfprcpgenrflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- </datagrid>
- <caption id="caption1" class="cell_1" style="left:173px; top:34px; width:67px; height:23px; font-family:돋움체; text-align:center; vertical-align:middle; ">환자명</caption>
- <caption id="caption2" class="cell_1" style="left:346px; top:34px; width:67px; height:23px; font-family:돋움체; text-align:center; vertical-align:middle; ">병실</caption>
- <caption id="caption3" class="tit_2" style="left:5px; top:16px; width:100px; height:13px; font-family:돋움체; ">환자정보</caption>
- <caption id="caption4" class="tit_2" style="left:5px; top:71px; width:134px; height:13px; font-family:돋움체; ">Acting Check</caption>
- <caption id="caption13" class="cell_1" style="left:0px; top:35px; width:67px; height:23px; font-family:돋움체; vertical-align:middle; ">등록번호</caption>
- <caption id="caption5" class="tit_2" style="left:600px; top:345px; width:100px; height:13px; font-family:돋움체; ">미투약기록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:30px; x2:590px; y2:30px; font-family:돋움체; "/>
- <datagrid id="grd_retdruglist" nodeset="/root/main/dschinfo/retdruglist" caption="처방코드^처방명^처방적용일^처방일시^용량^수량^횟수" colsep="^" colwidth="82, 163, 75, 105, 51, 40, 40" mergecellsfixedrows="bycolrec" rowsep="|" style="left:595px; top:505px; width:590px; height:94px; font-family:돋움체; ">
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="drprcpetc7" style="text-align:right; "/>
- <col ref="drprcpetc8" style="text-align:right; "/>
- <col ref="prcptims" style="text-align:right; "/>
- </datagrid>
- <line id="line2" class="line_3" style="x1:0px; y1:57px; x2:590px; y2:57px; font-family:돋움체; "/>
- <caption id="caption7" class="tit_2" style="left:600px; top:485px; width:100px; height:13px; font-family:돋움체; ">반환예정</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:85px; x2:590px; y2:85px; font-family:돋움체; "/>
- <caption id="caption8" class="tit_2" style="left:600px; top:71px; width:100px; height:13px; font-family:돋움체; ">미확인처방</caption>
- <line id="line4" class="line_1" style="x1:595px; y1:359px; x2:1185px; y2:359px; font-family:돋움체; "/>
- <line id="line5" class="line_1" style="x1:595px; y1:500px; x2:1185px; y2:500px; font-family:돋움체; "/>
- <datagrid id="grd_noactdruglist" nodeset="/root/main/dschinfo/noactdruglist" caption="처방구분^처방코드^처방명^용량^수량^횟수^처방적용일^처방일시" colsep="^" colwidth="75, 82, 163, 51, 39, 40, 75, 105" mergecellsfixedrows="bycolrec" rowsep="|" style="left:595px; top:364px; width:590px; height:111px; font-family:돋움체; ">
- <col ref="prcpkindcdnm" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="drprcpetc7" style="text-align:right; "/>
- <col ref="drprcpetc8" style="text-align:right; "/>
- <col ref="prcptims" style="text-align:right; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn"/>
- </datagrid>
- <output id="output1" ref="/root/main/cond/hngnm" class="output_fix" style="left:243px; top:36px; width:100px; height:19px; font-family:돋움체; "/>
- <line id="line6" class="line_1" style="x1:595px; y1:85px; x2:1185px; y2:85px; font-family:돋움체; "/>
- <output id="output2" ref="/root/main/cond/roomcd" class="output_fix" style="left:416px; top:36px; width:100px; height:19px; font-family:돋움체; "/>
- <datagrid id="grd_uncnfmlist" nodeset="/root/main/dschinfo/uncnfmlist" caption="^처방구분^처방코드^처방명^처방적용일^용량^수량^횟수^처방일시^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10" colsep="^" colwidth="25, 75, 82, 163, 75, 51, 39, 36, 105, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:595px; top:90px; width:590px; height:111px; font-family:돋움체; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col ref="prcpkindcdnm" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="drprcpetc7" style="text-align:right; "/>
- <col ref="drprcpetc8" style="text-align:right; "/>
- <col ref="prcptims" style="text-align:right; "/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="userid" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="prcpclscd" visibility="hidden"/>
- <col ref="hsctlnkno" visibility="hidden"/>
- <col ref="hscttempprcpflag" visibility="hidden"/>
- <col ref="carecnfmdt" visibility="hidden"/>
- <col ref="medireqflag" visibility="hidden"/>
- </datagrid>
- <output id="output3" ref="/root/main/cond/pid" class="output_fix" style="left:70px; top:36px; width:100px; height:19px; font-family:돋움체; "/>
- <button id="button2" class="btn5_letter4" style="left:1120px; top:65px; width:64px; height:19px; font-family:돋움체; ">
- <caption>간호확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var node = instance1.selectNodes(grd_uncnfmlist.nodeset + "[chkyn='Y']");
-
- if(node.length == 0) {
- messageBox("간호확인할 처방 내역이 존재하지 않습니다", "E");
- return;
- }
- var chkyn = "";
-
- for(var i = grd_uncnfmlist.fixedRows; i < grd_uncnfmlist.rows; i++) {
- chkyn = grd_uncnfmlist.valueMatrix(i, grd_uncnfmlist.colRef("chkyn"));
-
- if(chkyn == "Y") {
- grd_uncnfmlist.rowStatus(i) = "2";
- }
-
- }
-
- var userid="";
-
- if (grd_uncnfmlist.findRow("Y", 1, grd_uncnfmlist.colRef("chkyn")) != -1) {
- //간호확인자 id변경시 부서정보도 조회하여 투약all반환 인터페이스에 정보에 넘겨야 함
- clearParameter("userid");
- var monNo = getCurrentMonitorNumber(); // 현재모니터번호
- modal("SPMNW12000", monNo, "440", "440");
-
- userid = getParameter("userid"); //간호확인한 사용자 ID
- var userdeptcd = getParameter("userdeptcd"); //간호확인한 사용자소속부서_20080901(ByJA)
-
- if (userid == "") {
- messageBox("처방확인을 취소하셨습니다.", "I");
- return;
- } else {
- for(var i = grd_uncnfmlist.fixedRows; i < grd_uncnfmlist.rows; i++) {
- grd_uncnfmlist.valueMatrix(i, grd_uncnfmlist.colRef("userid")) = userid;
- }
- }
- } else {
- mesasgeBox("간호확인할 처방을 선택하여 주십시오.", "E");
- return;
- }
-
-
- model.makeValue("/root/send/savedata/saveprcpinfo", getGridUpdateData(grd_uncnfmlist));
- model.makeValue("/root/send/savedata/pid" , model.getValue("/root/main/cond/pid"));
- model.makeValue("/root/send/savedata/indd" , model.getValue("/root/main/cond/indd"));
- model.makeValue("/root/send/savedata/cretno" , model.getValue("/root/main/cond/cretno"));
- model.makeValue("/root/send/savedata/unitflag" , "");
- model.makeValue("/root/send/savedata/actingchk" , "N");
-
- submit("TXMNW00301");
-
- fSearch();
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_outdruglist" nodeset="/root/main/dschinfo/outdruglist" caption="처방코드^처방명^처방적용일^처방일시^입력자" colsep="^" colwidth="82, 163, 75, 105, 56" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:505px; width:590px; height:94px; font-family:돋움체; ">
- <col ref="prcpcd" style="text-align:center; "/>
- <col ref="prcpnm"/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn"/>
- <col/>
- </datagrid>
- <caption id="caption10" class="tit_2" style="left:5px; top:485px; width:146px; height:13px; font-family:돋움체; ">외출외박약 정리</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:500px; x2:590px; y2:500px; font-family:돋움체; "/>
- <line id="line9" class="line_1" style="x1:595px; y1:222px; x2:1185px; y2:222px; font-family:돋움체; "/>
- <datagrid id="grd_enddruglist" nodeset="/root/main/dschinfo/enddruglist" caption="^처방코드^처방명^처방적용일^용량^수량^횟수^처방일시^caption7^caption6^caption5^caption4^caption3^caption2^caption1" colsep="^" colwidth="29, 82, 163, 75, 51, 40, 40, 105, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:595px; top:227px; width:590px; height:111px; font-family:돋움체; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="drprcpetc7" style="text-align:right; "/>
- <col ref="drprcpetc8" style="text-align:right; "/>
- <col ref="prcptims" style="text-align:right; "/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="execprcpno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="execdd" visibility="hidden"/>
- <col ref="oiflag" visibility="hidden"/>
- <col ref="execdeptcd" visibility="hidden"/>
- </datagrid>
- <caption id="caption11" class="tit_2" style="left:600px; top:207px; width:146px; height:13px; font-family:돋움체; ">미마감내역 조회</caption>
- <button id="button3" class="btn5_letter2" style="left:1140px; top:202px; width:42px; height:19px; font-family:돋움체; ">
- <caption>마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var node = instance1.selectNodes(grd_enddruglist.nodeset + "[chkyn='Y']");
-
- if(node.length == 0) {
- messageBox("마감할 내역이 존재하지 않습니다", "E");
- return;
- }
-
- var rtn = messageBox("선택된 처방을 " +rdo_duty.value + "근무로 마감하시겠습니까?", "Q");
-
- if(rtn != 6) {
- return;
- }
-
- var duty = rdo_duty.value;
-
- var chkyn;
- var endListRow = 1;
-
- var header = "prcpdd▦prcpno▦prcphistno▦execprcpno▦instcd▦execdd▦oiflag▦duty▦execdeptcd▩";
- var data = "";
-
- for(var i = grd_enddruglist.fixedRows; i < grd_enddruglist.rows; i++) {
- chkyn = grd_enddruglist.valueMatrix(i, grd_enddruglist.colRef("chkyn"));
-
- if(chkyn == "Y") {
- data += grd_enddruglist.valueMatrix(i, grd_enddruglist.colRef("prcpdd")) +"▦"
- + grd_enddruglist.valueMatrix(i, grd_enddruglist.colRef("prcpno")) +"▦"
- + grd_enddruglist.valueMatrix(i, grd_enddruglist.colRef("prcphistno")) +"▦"
- + grd_enddruglist.valueMatrix(i, grd_enddruglist.colRef("execprcpno")) +"▦"
- + grd_enddruglist.valueMatrix(i, grd_enddruglist.colRef("instcd")) +"▦"
- + getCurrentDate() +"▦"
- + grd_enddruglist.valueMatrix(i, grd_enddruglist.colRef("oiflag")) +"▦"
- + model.getValue("/root/main/cond/duty") +"▦"
- + model.getValue("/root/main/paminfo/list/wardcd") +"▩"
- }
- }
-
-
- model.makeValue("/root/send/savedata/enddruglist", header + data);
- model.makeValue("/root/send/savedata/endflag", "B12");
-
- submit("TXMNW17201");
- fSearch();
-
- ]]>
- </script>
- </button>
- <select1 id="rdo_duty" ref="/root/main/cond/duty" appearance="full" cols="3" overflow="visible" style="left:1050px; top:205px; width:85px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>D</label>
- <value>D</value>
- </item>
- <item>
- <label>E</label>
- <value>E</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <datagrid id="grd_tnsprcplist" nodeset="/root/main/dschinfo/tnsprcplist" allowbigselection="false" allowselection="false" backcoloralternate="transparent" caption="^상태^신청시간^처방코드^처방명^처방시간^caption1" colsep="^" colwidth="25, 80, 98, 63, 78, 98, 0" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" tooltip="true" style="left:595px; top:625px; width:590px; height:96px; vertical-align:middle; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col ref="state"/>
- <col ref="fstrgstdt"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="rgstddtm"/>
- <col ref="dcyn"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_tnsprcplist.row == "0"){
- if(grd_tnsprcplist.fixedcellischeck(0, grd_tnsprcplist.colRef("checks"))==true){ // 선택시
- for(i=1;i<=getNodesetCount("/root/main/tnsprcpinfo/tnsprcplist");i++){
- model.makeValue("/root/main/tnsprcpinfo/tnsprcplist["+i+"]/checks", "true");
- }
- } else{
- for(i=1;i<=getNodesetCount("/root/main/tnsprcpinfo/tnsprcplist");i++){
- model.makeValue("/root/main/tnsprcpinfo/tnsprcplist["+i+"]/checks", "false");
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line10" class="line_1" style="x1:595px; y1:620px; x2:1185px; y2:620px; font-family:돋움체; "/>
- <caption id="caption12" class="tit_2" style="left:595px; top:605px; width:80px; height:13px; font-family:돋움체; ">혈액처방</caption>
- <line id="line11" class="line_1" style="x1:0px; y1:620px; x2:590px; y2:620px; font-family:돋움체; "/>
- <caption id="caption14" class="tit_2" style="left:5px; top:605px; width:100px; height:13px; font-family:돋움체; ">외래예약</caption>
- <datagrid id="grd_outrsrvinfo" nodeset="/root/main/dschinfo/outrsrvinfolist" caption="예약일시^예약일시^진료과^센터^하위부서^진료의" colsep="^" colwidth="70, 36, 92, 80, 80, 64" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:625px; width:590px; height:96px; vertical-align:middle; ">
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordtm" format="hh:nn" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="centnm" style="text-align:center; "/>
- <col ref="subdeptnm" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- </datagrid>
- <output id="opt_optpcomment" ref="/root/main/dschinfo/outrsrvinfo/optpcomment" class="output_fix" style="left:80px; top:600px; width:510px; height:19px; "/>
- <output id="opt_tnsprcpcomment" ref="/root/main/dschinfo/tnsprcpinfo/tnsprcpcomment" class="output_fix" style="left:675px; top:600px; width:510px; height:19px; "/>
- <datagrid id="grd_narcprcpinfolist" nodeset="/root/main/dschinfo/narcprcplist" caption="^불출상태^반환상태^상태^적용일자^처방코드^처방명^용량^수량^횟수^caption26^caption25^caption24^caption23^caption22^caption21^caption20^caption19^caption18^caption17^caption16^caption15^caption13^caption12^caption11^caption10^caption9^caption8^caption7^caption6^caption27^caption44^caption43^caption42^caption41^caption40^caption39^caption38^caption37^caption36^caption35^caption34^caption33^caption32^caption31^caption30^caption29^caption28^caption58^caption57^caption56^caption55^caption54^caption53^caption52^caption51^caption50^caption49^caption48^caption47^caption46^caption59^caption45^caption63^caption62^caption61^caption60^caption5^caption4^caption3^caption2^caption1" colsep="^" colwidth="24, 55, 55, 55, 70, 67, 120, 50, 40, 40, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:364px; width:590px; height:111px; vertical-align:middle; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col ref="narcstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>미신청</label>
- <value>1</value>
- </item>
- <item>
- <label>불출신청</label>
- <value>2</value>
- </item>
- <item>
- <label>출력완료</label>
- <value>3</value>
- </item>
- <item>
- <label>조제완료</label>
- <value>4</value>
- </item>
- <item>
- <label>불출</label>
- <value>5</value>
- </item>
- <item>
- <label>부서확인</label>
- <value>6</value>
- </item>
- </choices>
- </col>
- <col ref="cnclstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>-</label>
- <value/>
- </item>
- <item>
- <label>반환대상</label>
- <value>0</value>
- </item>
- <item>
- <label>반환신청</label>
- <value>1</value>
- </item>
- <item>
- <label>반환확인</label>
- <value>2</value>
- </item>
- <item>
- <label>반환종료</label>
- <value>7</value>
- </item>
- <item>
- <label>미불출</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col ref="rtnstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>-</label>
- <value/>
- </item>
- <item>
- <label>잔량대상</label>
- <value>0</value>
- </item>
- <item>
- <label>잔량신청</label>
- <value>1</value>
- </item>
- <item>
- <label>잔량확인</label>
- <value>2</value>
- </item>
- <item>
- <label>미불출</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpcd" style="text-align:center; "/>
- <col ref="drugnm" style="text-align:left; "/>
- <col ref="drprcpetc7" style="text-align:right; "/>
- <col ref="drprcpetc8" style="text-align:right; "/>
- <col ref="prcptims" style="text-align:right; "/>
- <col ref="prnyn" visibility="hidden"/>
- <col ref="dcyn" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="returnflag" visibility="hidden"/>
- <col ref="returnqty" visibility="hidden"/>
- <col ref="returnvol" visibility="hidden"/>
- <col ref="drugrec" visibility="hidden"/>
- <col ref="dayprcpqty" visibility="hidden"/>
- <col ref="prcpqtyunit" visibility="hidden"/>
- <col ref="prcpvol" visibility="hidden"/>
- <col ref="prcpvolunit" visibility="hidden"/>
- <col ref="dayprcpqty" visibility="hidden"/>
- <col ref="prcpdayno" visibility="hidden"/>
- <col ref="drugdd" visibility="hidden"/>
- <col ref="drugno" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="narcflag" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="ward" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="prcpkindcd" visibility="hidden"/>
- <col ref="pain" visibility="hidden"/>
- <col ref="orddrnm" visibility="hidden"/>
- <col ref="rtnprcpdt" visibility="hidden"/>
- <col ref="rtnorddrnm" visibility="hidden"/>
- <col ref="sumdt" visibility="hidden"/>
- <col ref="reqdt" visibility="hidden"/>
- <col ref="reqidnm" visibility="hidden"/>
- <col ref="drugdt" visibility="hidden"/>
- <col ref="drugidnm" visibility="hidden"/>
- <col ref="delivedt" visibility="hidden"/>
- <col ref="deliveidnm" visibility="hidden"/>
- <col ref="issdeptcdnm" visibility="hidden"/>
- <col ref="issdeptcd" visibility="hidden"/>
- <col ref="acptdt" visibility="hidden"/>
- <col ref="acptidnm" visibility="hidden"/>
- <col ref="rtnappdt" visibility="hidden"/>
- <col ref="rtnappidnm" visibility="hidden"/>
- <col ref="rtncnfmdt" visibility="hidden"/>
- <col ref="rtncnfmidnm" visibility="hidden"/>
- <col ref="spreqty" visibility="hidden"/>
- <col ref="sprevol" visibility="hidden"/>
- <col ref="spredt" visibility="hidden"/>
- <col ref="spreidnm" visibility="hidden"/>
- <col ref="sprecnfmdt" visibility="hidden"/>
- <col ref="sprecnfmidnm" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="erprcpflag" visibility="hidden"/>
- <col ref="prcpdt" visibility="hidden"/>
- <col ref="hospnm1" visibility="hidden"/>
- <col ref="hospnm2" visibility="hidden"/>
- <col ref="medrendyn" visibility="hidden"/>
- <col ref="statvisible" visibility="hidden"/>
- <col ref="deptchgyn" visibility="hidden"/>
- <col ref="nodeliveyn" visibility="hidden"/>
- <col ref="inclprcpcd" visibility="hidden"/>
- <col ref="rcissdeptcd" visibility="hidden"/>
- <col ref="rcprcpexecdeptcd" visibility="hidden"/>
- <col ref="rcwardcd" visibility="hidden"/>
- <col ref="rcroomcd" visibility="hidden"/>
- </datagrid>
- <output id="opt_narccomment" ref="/root/main/dschinfo/narcprcpinfo/narccomment" class="output_fix" style="left:80px; top:339px; width:195px; height:19px; "/>
- <line id="line12" class="line_1" style="x1:0px; y1:359px; x2:590px; y2:359px; font-family:돋움체; "/>
- <caption id="caption15" class="tit_2" style="left:5px; top:344px; width:146px; height:13px; font-family:돋움체; ">마약처방</caption>
- <button id="button4" class="btn2_letter4" style="left:1120px; top:339px; width:64px; height:19px; ">
- <caption>투약기록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.property("noactflag") = "Y";
- modal("SMMNR00600");
- model.property("noactflag") = "";
- fSearch();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn5_letter4" visibility="hidden" style="left:434px; top:339px; width:64px; height:19px; ">
- <caption>부서확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("acpt");
- ]]>
- </script>
- </button>
- <button id="button7" class="btn5_letter6" visibility="hidden" style="left:501px; top:339px; width:86px; height:19px; ">
- <caption>반납/반환신청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("rtn");
- ]]>
- </script>
- </button>
- <button id="btn_drugcncl" class="btn5_letter6" visibility="hidden" style="left:345px; top:339px; width:86px; height:19px; ">
- <caption>불출신청취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("drugcncl");
- ]]>
- </script>
- </button>
- <button id="btn_drug" class="btn5_letter4" visibility="hidden" style="left:278px; top:339px; width:64px; height:19px; ">
- <caption>불출신청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("drug");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn1_letter2" style="left:535px; top:35px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <button id="button9" class="btn5_letter2" style="left:547px; top:65px; width:42px; height:19px; font-family:돋움체; ">
- <caption>반환</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.makeNode("/root/send/savedata/saveflaginfo"); //저장구분정보(saveFlagInfoVO)
- model.makeNode("/root/send/savedata/savergstinfo"); //저장등록정보(saveRgstInfoVO)
- model.makeNode("/root/send/savedata/saveprcpinfo"); //저장처방정보(savePrcpInfoVO)
- model.makeNode("/root/send/savedata/savesigninfo"); //저장인증정보(saveSignInfoVO)
- model.makeNode("/root/send/savedata/refcond"); //저장 후 조회조건
- model.makeNode("root/temp/result"); //에러 팝업
- model.makeNode("/root/endinfo/result"); //마감반환사유
-
- var FlagInfoHeader = "savedataflag▦saveflag▦prcpflag▦inptflag▦pamflag▦diagflag▦prcperrflag▦deptcd▦deptnm▦userid▦usernm▦signyn▦xrwid▩";
- var RgstInfoHeader = "pid▦orddd▦indd▦cretno▦orddeptcd▦orddrid▦instcd▦admininfo▩";
- var PrcpInfoHeader = "status▦rowno▦prcpdd▦prcpno▦prcphistno▦instcd▦pid▦orddd▦cretno▦orddeptcd▦orddrid▦prcpgenrflag▦prcpstatcd▦prcpkindcd▦prcpcd▦calcscorcd▦inclprcpcd▦"
- +"inclprcpno▦prcpexecdeptcd▦prcphopedd▦prcpqty▦prcpqtyunitflag▦prcptims▦prcpdayno▦payflagcd▦erprcpflag▦precureprcpflag▦nigtprcpflag▦portprcpflag▦fixprcpflag▦"
- +"choiordflag▦anamneflag▦prcpdirecflag▦angioflagcd▦opansflagcd▦ansttm▦offictourhealexamflag▦stemcellflag▦hosinhosoutflag▦hosinprcpresncd▦issdeptcd▦prcpauthflag▦"
- +"prcpinptflag▦prcpsignflag▦oprsrvno▦clincstdyflag▦clincstdycd▦drugmthdspccd▦prcpdelivefact▦tootfact▦matrsetprcpspec▦calcflag▦rsrvflag▦rsrvdd▦rsrvtm▦rsrvrid▦execdd▦"
- +"exectm▦execrid▦direcprcplnkdd▦direcprcplnkno▦ordreqlnkno▦testreqlnkno▦aftcertflag▦aftcertdrid▦dcflag▦execprcpuniqno▦rsrvflag▦prcpclscd▩";
- var SignInfoHeader = "signdd▦signno▦instcd▦pid▦orddd▦cretno▦signflag▦signgenrflag▦rgstdeptcd▦rgstdd▦rgsttm▦rgstrid▦updtdeptcd▦updtdd▦updttm▦updtrid▦fstrgstrid▦fstrgstdt▦lastupdtrid▦"
- +"lastupdtdt▦signbfcnts▦signaftcnts▩";
- // var RsrvCnclHeader = "pid▦prcpdd▦execprcpuniqno▦rsrvflag▩"; // 기능,재활,핵의학 검사예약 취소 인터페이스 파라미터추가_20081022(ByJA)
- var FlagInfoData = "";
- var RgstInfoData = "";
- var PrcpInfoData = "";
- var SignInfoData = "";
- // var RsrvCnclData = "";
- var ordtype = "I" ; //환자진료형태(외래 O, 응급 E ,입원 I)
- var deptcd = getUserInfo("dutplcecd"); //부서코드
- var deptnm = getUserInfo("dutplcenm"); //부서명
- var indd = model.getValue("/root/main/paminfo/list/indd");
-
- var orddd = "-"; //진료일자
- var prcphistno = ""; //처방이력번호
- var prcpno = ""; //처방번호
- var ordindd = model.getValue("/root/main/paminfo/list/indd");
-
- var pid = model.getValue("/root/main/paminfo/list/pid");
- var cretno = model.getValue("/root/main/paminfo/list/cretno");
- var wardcd = model.getValue("/root/main/paminfo/list/wardcd");
- var roomcd = model.getValue("/root/main/paminfo/list/roomcd");
- var hngnm = model.getValue("/root/main/paminfo/list/hngnm");
- var orddrid = model.getValue("/root/main/paminfo/list/medispclid");
- var orddeptcd = model.getValue("/root/main/paminfo/list/orddeptcd");
-
-
- FlagInfoData = '2' +"▦" //저장자료구분 (2:처방)
- + ordtype +"▦" //저장구분 (O:외래, I:입원, E:응급, S:건진)
- + '1' +"▦" //처방구분(M0035 처방권한에 대한 구분종류 )
- + '01' +"▦" //입력구분(M0034 처방입력에 대한 구분종류 )
- + 'Y' +"▦" //원무정보 처리구분 (Y/N)
- + 'N' +"▦" //진단정보 처리구분 (Y/N)
- + 'Y' +"▦" //처방오류구분(Y/N) -> Y일 경우 의사처방과 동일하게 오류리스트를 반환, N이면 오류를 확인하지 않음
- + deptcd +"▦" //부서코드 (입력자 또는 로그인한 사용자의 부서코드)
- + deptnm +"▦" //부서명 (입력자 또는 로그인한 사용자의 부서명)
- + getUserId() +"▦" //사용자ID (입력자 또는 로그인한 사용자ID)
- + getUserName() +"▦" //사용자명 (입력자 또는 로그인한 사용자명)
- + 'N' +"▦" //전자서명여부 (Y/N)
- + "SPMNW17200" +"▦"
- +"▩";
-
- RgstInfoData = pid +"▦"
- + orddd +"▦"
- + indd +"▦"
- + cretno +"▦"
- + orddeptcd +"▦"
- + orddrid +"▦"
- + getUserInfo("dutplceinstcd") +"▦"
- + "NNNNNNNNNNNNNNNNNNNN" +"▩";
-
- var chk;
- var clscd;
- var statcd;
- var prcpdd;
- var prcpno;
- var prcpcd;
- var prcphistno;
- var prcpnm;
- var instcd;
- var execprcpstatcd;
- var rsrvdt;
- var execprcpuniqno;
- var dutflag;
- var enddd;
- var execprcpno;
- var cvrtbfprcpgenrflag;
- var bfprcpdd =""
- var bfprcpno = "";
- var bfprcphistno = "";
- var bfinstcd = "";
-
- for(var i = grd_actingchklist.fixedRows; i < grd_actingchklist.rows; i++) {
- chk = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("chk"));
- clscd = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("clscd"));
- statcd = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("statcd"));
- prcpdd = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("prcpdd"));
- prcpno = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("prcpno"));
- prcpcd = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("prcpcd"));
- prcphistno = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("prcphistno"));
- prcpnm = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("prcpnm"));
- instcd = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("instcd"));
- execprcpstatcd = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("execprcpstatcd"));
- rsrvdt = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("rsrvdt"));
- execprcpuniqno = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("execprcpuniqno"));
- dutflag = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("dutflag"));
- enddd = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("enddd"));
- execprcpno = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("execprcpno"));
- cvrtbfprcpgenrflag = grd_actingchklist.valueMatrix(i, grd_actingchklist.colRef("cvrtbfprcpgenrflag"));
-
- if(chk == "Y") {
- if(clscd == "B2" || clscd == "B6" || clscd =="C4" || clscd=="D2") {
- if( (cvrtbfprcpgenrflag=='-' && Number(statcd)>100) || (cvrtbfprcpgenrflag!='-' && Number(statcd)>230) ){
- messageBox("처방 " + prcpcd + "는 " + execprcpstatcd+" 상태라 반환 할 수 없습니다.", "E");
- return;
- } else {
- if(rsrvdt == "Y") {
- messageBox("예약된 처방 " + prcpcd + "는 반환 할 수 없습니다.");
- return;
- }
-
- }
- } else if(clscd == "C2" || clscd == "C6" || clscd == "E2" || clscd == "F2" || clscd=="G2") {
- if( (cvrtbfprcpgenrflag=='-' && Number(statcd)>100) || (cvrtbfprcpgenrflag!='-' && Number(statcd)>230) ){
- messageBox("처방 " + prcpcd + "는 " + execprcpstatcd+" 상태라 반환 할 수 없습니다.", "E");
- return;
- }
- }
-
- if((enddd.substr(0,8) != '99991231') && (enddd != '')){
- model.makeValue("/root/endinfo/endinforesult/list/prcpdd", prcpdd);
- model.makeValue("/root/endinfo/endinforesult/list/prcpno", prcpno);
- model.makeValue("/root/endinfo/endinforesult/list/prcphistno", prcphistno);
- model.makeValue("/root/endinfo/endinforesult/list/execprcpno", execprcpno);
- model.makeValue("/root/endinfo/endinforesult/list/instcd", instcd);
- model.makeValue("/root/endinfo/endinforesult/list/ioflag", "I");
- model.duplicate("/root/endinfo/result","/root/endinfo/endinforesult/list");
- }
-
- if((bfprcpdd != prcpdd) || (bfprcpno != prcpno) || (bfprcphistno != prcphistno) || (bfinstcd != instcd)) {
- PrcpInfoData += "C" +"▦" //신규(I), DC(C)
- + i +"▦" //줄번호 (병리 요구)
- + prcpdd +"▦" //처방일자(외래/종건은 orddd와 동일, 입원은 처방일자)
- + prcpno +"▦" //처방번호(status가 'I'일 경우 0)
- + prcphistno +"▦" //처방이력번호(status가 'I'일 경우 0)
- + instcd +"▦" //기관코드
- + pid +"▦" //등록번호(원무Key)
- + indd +"▦" //진료일자(원무Key)- 입원환자일 경우 indd
- + cretno +"▦" //생성번호(원무Key)
- + orddeptcd +"▦" //진료과(원무)
- + orddrid +"▦" //진료의ID(원무)
- + "I" +"▦" //처방발생구분(원무) - O:외래, I:입원, E:응급, S:건진
- + statcd +"▦" //처방상태 : '000'
- + '20' +"▦" //처방종류 : '20'
- + "" +"▦" //처방코드
- +"" +"▦" //수가코드
- +"-" +"▦" //종속처방코드 ('-') => default : '-' //***
- + 0 +"▦" //종속처방번호 (일련번호 - 종속처방코드별로 생성) => default : 0 //***
- + "-" +"▦" //처방실시부서코드 (수가의 접수부서를 넣어 주거나, 접수하는 부서코드, 없을 경우 '-'로 처리)
- + "" +"▦" //처방희망일자 (처방일자 이전으로 발생불가)
- + "" +"▦" //처방수량 (1) (약품일 경우 반드시 포장단위 수량을 넣어 주어야 됨) => default : 1
- + '-' +"▦" //처방수량단위 (약품일 경우 '3', 그렇지 않을경우 '-') => default : '-' //***
- + 1 +"▦" //처방횟수 (1) (입원일 경우 횟수에 따라 풀림) => default : 1 //***
- + 1 +"▦" //처방일수 (1) (지원부서에서는 주사처방에 대하여 일수를 넣으면 안됨, 넣으면 자료가 문제가 생김) => default : 1 //***
- + "" +"▦" //급여구분코드 (M0029 참조) -> '-'로 넣으주면 환자의 보험유형에 따라 자동 발생
- + "N" +"▦" //응급처방구분 (Y/N) ==> default : 'N' //***
- + "N" +"▦" //선처치처방구분 (Y/N) ==> default : 'N'
- + "N" +"▦" //야간처방구분 (Y/N) : 야간가산에 해당 될 경우 ==> default : 'N' //***
- + "N" +"▦" //포터블처방구분 (Y/N) ==> default : 'N' //***
- + "N" +"▦" //정액처방구분 (Y/N) ==> default : 'N' //***
- + "N" +"▦" //선택처방구분 (Y/N) -> 만약 '-'일 경우 원무정보 기준으로 처리 ==> default : 'N' //***
- + "N" +"▦" //기왕력(증)구분 (Y/N) ==> default : 'N' //***
- + "-" +"▦" //처방방향구분 (코드정의서 M0041 참조), 재활은 위치구분으로 사용 : '-' => default : '-' //***
- + "-" +"▦" //Angio구분 (코드정의서 M0006 참조) : '-' => default : '-' //***
- + "-" +"▦" //수술마취구분 (코드정의서 M0007, M0008 참조) : '-' => default : '-' //***
- + "0000" +"▦" //마취처방에 대한 마취적용시간 - 분을 4자리로 표현, 연속검사 검사간격 => default : '0000' //***
- + "N" +"▦" //출장검진구분 (Y/N) => default : 'N' //***
- + "00NNN" +"▦" //'00NNN' 건진청구구분, 조혈모(줄기)세포 구분 - Stem Cell Source 여부 ,Cryo여부, CD34 채집여부, 해동여부의 조합으로 구성 => default : '00NNN' //***
- + "-" +"▦" //원내외구분(건진은 'I', 약이 아닐경우 '-') => default : '-' //***
- + "00" +"▦" //원내처방사유 (건진에 해당하는 사유 - 정의, 약이 아닐경우 '00') => default : '00' //***
- + deptcd +"▦" //발행부서코드 (집계가 타부서일 경우 타과코드, 입원은 기본이 병동) -> '-' 로 처리하면 자동 처리(기본은 처방입력부서이나 입원은 해당 병동으로 처리) => default : '-' //***
- + "1" +"▦" //처방권한구분(0:의사처방화면, 1:의사및간호사공유처방, 2:순수간호처방, 3:지원부서의사처방, 4:기타처방 - 기타 지원부서 추가, 5:계산용원무처방, 6:건진처방 ==> 0,1만 의사처방화면에 보임, 단 3은 추후에 결정)
- + "09" +"▦" //처방입력구분(저장구분정보의 inptflag와 동일하게 처리)
- + "1" +"▦" //처방서명구분(0:인증안됨, 1:의사가 후인증, 2:인증완료) => default : '2' //***
- + "-" +"▦" //수술예약번호(0) => default : '-' //***
- + "N" +"▦" //임상연구구분 (Y/N)
- + "-" +"▦" //임상연구코드 ('-') -> 임상연구구분이 'Y'일 경우 임상연구코드를 등록 => default : '-' //***
- + "-" +"▦" //투여방법및검체코드(약일 경우 복용방법, 진검 및 병리일 경우 검체코드, Default '-') => default : '-' //***
- + "" +"▦" //처방전달사항 //***
- + "-" +"▦" //치식 (병리만 사용, 나머지는 '-') => default : '-' //***
- + "-" +"▦" //재료처방내용 ('-') -> 추후정의 //***
- + "N" +"▦" //계산구분 (Y/N)
- + "N" +"▦" //예약구분 (Y/N)
- + "00000000" +"▦" //예약일자 ('N'일 경우 '00000000')
- + "000000" +"▦" //예약시간 ('N'일 경우 '000000')
- + "-" +"▦" //예약자ID ('-')
- + "00000000" +"▦" //실시일자 ('00000000')
- + "000000" +"▦" //실시시간 ('000000')
- + "" +"▦" //실시자ID ('-')
- + '00000000' +"▦" //지시처방연계일자 (00000000) -> 지원부서에서 사용 - 원지시처방의 처방일자
- + '0' +"▦" //지시처방연계번호 (0) -> 지원부서에서 사용 - 원지시처방의 실시처방유일번호
- + '0' +"▦" //진료의뢰연계번호 (0)
- + '0' +"▦" //검사의뢰연계번호 (0) -> 병리와 진단검사 사용
- + "Y" +"▦" // 후인증구분
- + "-" +"▦" // 후인증의사ID(처방발행의ID)_20080805(소경화간호ITC와협의_ByJA)
- + "Y" +"▦" // dcflag("Y")
- + execprcpuniqno +"▦" //** 기능,재활,핵의학 검사예약 취소 인터페이스 파라미터추가_20081022(ByJA)
- + rsrvdt +"▦"
- + clscd +"▩";
-
- }
-
- bfprcpdd = prcpdd;
- bfprcpno = prcpno;
- bfprcphistno = prcphistno;
- bfinstcd = instcd;
- }
-
- }
-
- if (PrcpInfoData == "") {
- messageBox("반납할 처방내역이", "I004");
- return;
- }
-
- if (getNodesetCount ("/root/endinfo/result/list") > 0 ) {
- modal("SPPAS03000", "2", "100", "100", "SPPAS03000", "/root/endinfo/result", "root/target", "left:100; top:100; width:400; height:400; sysmenu:hidden; min:visible; max:hidden; :hidden; resize:true; caption:visible;", false);
- model.removeNodeset("/root/endinfo");
- }
- model.setValue("/root/send/savedata/saveflaginfo", FlagInfoHeader+FlagInfoData);
- model.setValue("/root/send/savedata/savergstinfo", RgstInfoHeader+RgstInfoData);
- model.setValue("/root/send/savedata/saveprcpinfo", PrcpInfoHeader+PrcpInfoData);
- // model.setValue("/root/send/savedata/rsrvcnclinfo" , RsrvCnclHeader+RsrvCnclData); // 기능,재활,핵의학 검사예약 취소 인터페이스 파라미터추가_20081022(ByJA)
-
-
- var rtn = messageBox("반환하시겠습니까?", "Q");
-
- if(rtn == "6") {
-
- if (submit("TXMNW00305", false)) {
- //오류팝업
- var prcpErrList = model.instances(0).selectNodes( "/root/temp/result/prcperrlist" );
- if ( prcpErrList.length > 0 ) {
- if ( !isNull(model.getValue ("/root/temp/result/prcperrlist/prcpcd"))){
- var xpt = window.screenleft + 100;
- var ypt = window.screenTop + 50;
- var coord = getRelativeCoordinate ( xpt, ypt );
- var mon = coord[0];
- xpt = coord[1];
- ypt = coord[2];
- open ( "SPMMO00600", mon, xpt, ypt, "prcpdetl", "/root/temp/result", "/root/result", "", false );
- model.removeNodeset("/root/temp/result/prcperrlist");
- }
- } else {
- messageBox("처방이 반환 되었습니다.", "I");
- fSearch(); //재조회
- /*grd_unexecprcplist.fixedcellischeck(0, grd_unexecprcplist.colRef("chk")) = false;*/
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="button10" class="btn5_letter6" style="left:505px; top:202px; width:86px; height:19px; ">
- <caption>수행일시변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_execddchklist);
-
- if(updtdata == null || updtdata == "") {
- messageBox("변경된 내역이 존재하지 않습니다.", "E");
- return;
- }
-
- for(var i = grd_execddchklist.fixedRows; i < grd_execddchklist.rows; i++) {
- var rowStatus = grd_execddchklist.rowStatus(i);
-
- if(rowStatus == "2") {
-
- }
- }
-
- model.makeValue("/root/send/savedata/execddchklist", updtdata);
-
- submit("TXMNW17203");
- fSearch();
- ]]>
- </script>
- </button>
- <datagrid id="grd_execddchklist" nodeset="/root/main/dschinfo/execddchklist" caption="^상태^처방코드^처방명^처방적용일^처방일시^수행일시^수행일시^수행일시^수행자^caption1^caption2^caption4^caption3^caption5^caption6^caption7" colsep="^" colwidth="23, 39, 82, 144, 75, 105, 85, 45, 0, 51, 100, 100, 100, 117, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:227px; width:590px; height:111px; font-family:돋움체; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col ref="dcstat"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="execdd" type="inputbutton" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="exectm" type="input" format="hh:nn" style="text-align:center; "/>
- <col ref="execdt" visibility="hidden" format="yyyy-mm-dd hh:nn"/>
- <col ref="usernm" style="text-align:center; "/>
- <col ref="flag" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="execprcpno" visibility="hidden"/>
- <col ref="dcyn" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- var iRow = grd_execddchklist.row;
-
- if(grd_execddchklist.col == grd_execddchklist.colRef("execdd")) {
- grd_execddchklist.valueMatrix(iRow, grd_execddchklist.colRef("execdd")) = getCurrentDate();
- grd_execddchklist.valueMatrix(iRow, grd_execddchklist.colRef("exectm")) = getCurrentTime().substr(0,4);
-
- grd_execddchklist.rowStatus(iRow) = "2";
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var chkyn;
- var prcpdd;
- var prcpno;
- var iRow = grd_execddchklist.row;
-
- if(grd_execddchklist.col == grd_execddchklist.colRef("chkyn")) {
- prcpdd = grd_execddchklist.valueMatrix(iRow, grd_execddchklist.colRef("prcpdd"));
- prcpno = grd_execddchklist.valueMatrix(iRow, grd_execddchklist.colRef("prcpno"));
- chkyn = grd_execddchklist.valueMatrix(iRow, grd_execddchklist.colRef("chkyn"));
-
- var prcpdd2;
- var prcpno2;
-
- for(var i = grd_execddchklist.fixedRows; i < grd_execddchklist.rows; i++) {
- if(i == iRow) {
- continue;
- }
-
- prcpdd2 = grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("prcpdd"));
- prcpno2 = grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("prcpno"));
-
- if( prcpdd == prcpdd2 && prcpno == prcpno2) {
- grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("chkyn")) = chkyn;
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption9" class="tit_2" style="left:5px; top:207px; width:146px; height:13px; font-family:돋움체; ">미래일자 Acting</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:222px; x2:590px; y2:222px; font-family:돋움체; "/>
- <output id="output4" ref="/root/main/dschinfo/homecarecnstlist/cnstcomment" class="output_fix" style="left:675px; top:20px; width:510px; height:19px; "/>
- <button id="btn_homecare" class="btn2_letter4" style="left:605px; top:20px; width:64px; height:19px; text-align:center; ">
- <caption>가정간호</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMMNF04300"); // SMMNF04300_퇴원시 가정간호 의뢰 간호기록.xrw 팝업 - 별도의 파라미터 없이 상단정보 끌고 화면열림.
- ]]>
- </script>
- </button>
- <output id="output23" ref="/root/main/dschinfo/unrecblodinfo/unrecblodcomment" class="output_fix" style="left:675px; top:40px; width:510px; height:19px; "/>
- <button id="button8" class="btn2_letter4" style="left:605px; top:40px; width:64px; height:19px; text-align:center; ">
- <caption>수혈기록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var SMMNR010_Param = "OPRC2";
-
- setParameter("SMMNR010_Param", SMMNR010_Param);
- setParameter("SMMNR010_Param2", model.getValue("/root/main/cond/indd"));
- if (model.getvalue("/root/main/cond/pid") != "") {
- modal("SMMNR01000","","","","SMMNR01000","",""); // 수혈간호기록 오픈
- fSearch();
- } else {
- messageBox("환자를", "C002");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="btn_req" class="btn5_letter6" style="left:329px; top:202px; width:86px; height:19px; ">
- <caption>처방복구신청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var node = instance1.selectNodes(grd_execddchklist.nodeset + "[chkyn='Y']");
-
- if(node.length == 0) {
- messageBox("선택된 처방이 없습니다.", "E");
- model.resetInstanceNode("/root/temp2/warddruginfo/warddruglist");
- return;
- }
- group3.visible = true;
- /*
- var chkcnt = 0;
- var dccnt = 0;
-
- var chkyn = "";
- var dcyn = "";
- var reqflag = "";
- for(var i = grd_execddchklist.fixedRows; i < grd_execddchklist.rows; i++) {
- chkyn = grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("chkyn"));
- dcyn =grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("dcyn"));
- reqflag =grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("reqflag"));
-
-
-
- if(chkyn == "Y") {
- if(dcyn == "N" || dcyn == "") {
- messageBox("D/C난 처방만 처방복구신청이 가능합니다.", "E");
- return;
- } else {
- chkcnt++;
- grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("reqflag")) = "1";
- }
- }
- if(reqflag == "1") {
- messageBox("이미 복구신청된 처방입니다", "E");
- return;
- } else if(reqflag == "2") {
- messageBox("이미 복구승인된 처방입니다", "E");
- return;
- }
-
- }
- if(chkcnt > 0) {
- var rtn = messageBox("처방복구 신청을 하시겠습니까", "Q");
-
- if(rtn == "6") {
- model.makeValue("/root/send/saveinfo/warddruglist", getGridUpdateData(grd_execddchklist));
- model.makeValue("/root/send/saveinfo/chngflag", "Y");
-
- submit("TXMNR00609");
- fSearch();
- }
- } else {
- messageBox("복구신청할 처방이 존재하지 않습니다.","E");
- return;
- }*/
- ]]>
- </script>
- </button>
- <button id="btn_cert" class="btn5_letter6" style="left:417px; top:202px; width:86px; height:19px; ">
- <caption>처방복구승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var chkcnt = 0;
- var dccnt = 0;
-
- var chkyn = "";
- var dcyn = "";
- var reqflag = "";
- for(var i = grd_execddchklist.fixedRows; i < grd_execddchklist.rows; i++) {
- chkyn = grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("chkyn"));
- dcyn =grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("dcyn"));
- reqflag =grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("reqflag"));
-
- if(chkyn == "Y") {
-
- if(dcyn == "N" || dcyn == "") {
- messageBox("D/C난 처방만 처방복구승인이 가능합니다.", "E");
- return;
- } else {
- chkcnt++;
- grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("reqflag")) = "2";
- }
-
- if(reqflag == "") {
- messageBox("처방 복구신청 되지 않은 처방은 승인할 수 없습니다.", "E");
- return;
- } else if(reqflag == "2") {
- messageBox("이미 복구된 처방입니다.", "E");
- return;
- }
-
- }
-
-
- }
- if(chkcnt > 0) {
- var rtn = messageBox("승인하시겠습니까?", "Q");
-
- if(rtn == "6") {
- model.makeValue("/root/send/saveinfo/warddruglist", getGridUpdateData(grd_execddchklist));
- model.makeValue("/root/send/saveinfo/chngflag", "N");
-
- submit("TXMNR00609");
- fSearch();
- }
- } else {
- messageBox("복구승인할 처방이 존재하지 않습니다.","E");
- return;
- }
- ]]>
- </script>
- </button>
- <output id="opt_outdrugcmt" ref="/root/main/cond/outdrugcmt" class="output_fix" style="left:135px; top:480px; width:455px; height:19px; "/>
- <caption id="caption16" style="left:735px; top:485px; width:450px; height:15px; font-family:돋움체; ">의사에게 승인받아 D/C 처리하십시오.(투약기록에서 투약X반환가능한 약,주사)</caption>
- <group id="group3" visibility="hidden" style="left:245px; top:225px; width:340px; height:125px; background-color:#87CEFA; ">
- <button id="button11" class="btn4_letter2" style="left:222px; top:96px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var chkcnt = 0;
- var dccnt = 0;
-
- var chkyn = "";
- var dcyn = "";
- var reqflag = "";
-
- for(var i = grd_execddchklist.fixedRows; i < grd_execddchklist.rows; i++) {
- chkyn = grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("chkyn"));
- dcyn =grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("dcyn"));
- reqflag =grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("reqflag"));
-
-
-
- if(chkyn == "Y") {
- if(dcyn == "N" || dcyn == "") {
- messageBox("D/C난 처방만 처방복구신청이 가능합니다.", "E");
- return;
- } else {
- chkcnt++;
- grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("reqflag")) = "1";
- grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("resncd")) = cmb_resncd.value;
- grd_execddchklist.valueMatrix(i, grd_execddchklist.colRef("resnetc")) = tar_resnetc.value;
- }
- }
- if(reqflag == "1") {
- messageBox("이미 복구신청된 처방입니다", "E");
- return;
- } else if(reqflag == "2") {
- messageBox("이미 복구승인된 처방입니다", "E");
- return;
- }
-
- }
- if(chkcnt > 0) {
- var rtn = messageBox("처방복구 신청을 하시겠습니까?", "Q");
-
- if(rtn == "6") {
- model.makeValue("/root/send/saveinfo/warddruglist", getGridUpdateData(grd_execddchklist));
- model.makeValue("/root/send/saveinfo/chngflag", "Y");
- model.makeValue("/root/send/saveinfo/flag", "");
-
- submit("TXMNR00609");
- group3.visible = false;
- }
- } else {
- messageBox("복구신청할 처방이 존재하지 않습니다.","E");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="button12" class="btn4_letter2" style="left:277px; top:96px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group3.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption23" class="tit_2" style="left:0px; top:5px; width:220px; height:15px; ">D/C 처방 복구 사유를 선택하십시오.</caption>
- <select1 id="cmb_resncd" ref="/root/main/cond/resncd" appearance="minimal" style="left:5px; top:20px; width:330px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='U29']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <textarea id="tar_resnetc" ref="/root/main/cond/resnetc" style="left:5px; top:40px; width:330px; height:55px; "/>
- </group>
- <button id="btn_barcd" class="btn2_letter5" style="left:515px; top:10px; width:75px; height:19px; ">
- <caption>바코드관리</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- open("SMLLC00200","1","15","128");
- ]]>
- </script>
- </button>
- <button id="btn_mon" class="btn2_letter8" visibility="hidden" style="left:405px; top:10px; width:108px; height:19px; ">
- <caption>간호처방 모니터링</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- setParameter("PARAM1", "Y");
- open("SMMNW10960","1","15","128");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_1" style="x1:0px; y1:742px; x2:590px; y2:742px; font-family:돋움체; "/>
- <caption id="caption17" class="tit_2" style="left:5px; top:727px; width:115px; height:13px; font-family:돋움체; ">미확인 구두처방</caption>
- <datagrid id="grd_tellprcplist" nodeset="/root/main/dschinfo/tellprcplist" caption="처방코드^처방명^처방적용일^처방일시^용량^수량^횟수^처방부서^처방의^prcpno" colsep="^" colwidth="80, 150, 75, 100, 40, 30, 30, 100, 65, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:747px; width:590px; height:118px; font-family:돋움체; ">
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="drprcpetc7" style="text-align:right; "/>
- <col ref="drprcpetc8" style="text-align:right; "/>
- <col ref="prcptims" style="text-align:right; "/>
- <col ref="rgstrdeptnm"/>
- <col ref="rgstridnm" style="text-align:center; "/>
- <col ref="prcpno" visibility="hidden" style="text-align:right; "/>
- </datagrid>
- <button id="button13" class="btn2_letter6" style="left:502px; top:339px; width:86px; height:19px; ">
- <caption>마약처방관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMADT30400","1","15","128");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|