123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>의뢰관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <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>
- </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/SMADC00101.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));
- }
- }
- }
-
-
- ]]>
- </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,13;1,1200;2,784;2,743;1,1190;1,1194;1,1195;1,1194;" 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>
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">의뢰관리</caption>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1194px; height:742px; ">
- <group id="group2" style="left:0px; top:0px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; 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; "/>
- <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>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") { // 임병접수일자 일경우만 [미의뢰만] - 활성화
- // group1.attribute("visibility") = "visible"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
- // }else{
- // group1.attribute("visibility") = "hidden"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
- // }
- // }else{
- // cmb_lisddchk.visible = false; //의뢰일자/임병일자 구분 - 비활성화
- // 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>
- <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; "/>
- </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>
- <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:95px; width:1194px; height:640px; ">
- <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>
- </xhtml:body>
- </xhtml:html>
|