123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571 |
- <?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>
- <cond>
- <pid/>
- <hngnm/>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <aprvstat>0</aprvstat>
- <wardcd/>
- <prcphistcd/>
- <borrowyn>-</borrowyn>
- <prcpcd/>
- </cond>
- <limantibioinfo>
- <limantibiolist/>
- </limantibioinfo>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <borrowresn>
- <resncd/>
- <resncnt/>
- </borrowresn>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <init>
- <orddept/>
- <warddeptlist/>
- <appresninfo>
- <resnlist>
- <resnnm>무균병동</resnnm>
- <resncd>1</resncd>
- </resnlist>
- <resnlist>
- <resnnm>사용일수 28일 이상</resnnm>
- <resncd>2</resncd>
- </resnlist>
- <resnlist>
- <resnnm>사용과 동시에 승인 필요</resnnm>
- <resncd>3</resncd>
- </resnlist>
- <resnlist>
- <resnnm>사용일수 5일 이상</resnnm>
- <resncd>4</resncd>
- </resnlist>
- <resnlist>
- <resnnm>결과에 staphylococcus 문자열이 있고, oxacillin에 R인 경우</resnnm>
- <resncd>6</resncd>
- </resnlist>
- <resnlist>
- <resnnm> 결과에 candida 문자열이 있는 경우</resnnm>
- <resncd>7</resncd>
- </resnlist>
- <resnlist>
- <resnnm>결과에 piperacillin에 R인 경우</resnnm>
- <resncd>8</resncd>
- </resnlist>
- <resnlist>
- <resnnm>결과에 ceftazidime에 R인 경우</resnnm>
- <resncd>9</resncd>
- </resnlist>
- </appresninfo>
- <borrowresn/>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- function fReqGetLimAntibioList() {
- model.resetInstanceNode("/root/main/limantibioinfo/limantibiolist");
- model.refresh(); // 트리가 접힌 상태에서 재조회 하면 그리드에 접힌 수만큼 조회 되지 않는 오류 수정.
- submit("TRMMD08602");
-
- setTree(datagrid1, datagrid1.colRef("row_level"), datagrid1.colRef("prcpdd") , false);
- }
- ]]>
- </script>
- <submission id="TRMMD08602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/limantibioinfo"/>
- <submission id="TXMMD08601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden/limantibiotrustspeclist"/>
- <submission id="TXMMD08602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden/limantibiotrustspeclist"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var sUserId = getUserInfo ( "userid" );
- if(fContainsHardCD("286", sUserId)) {
- btn_save.disabled = false; //항생제승인버튼
- } else {
- btn_save.disabled = true; //항생제승인버튼
- }
-
- fGetHardCDList("N", 417, 0 , "/root/init/borrowresn");
-
- model.setValue("/root/main/cond/fromdd" ,((getCurrentDate().toDate()).getAddDate(-1,"D")).getDateFormat()); //시작일자는 7일전
- model.setValue("/root/main/cond/todd" , getCurrentDate()); //종료일자는 현재일자
-
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "A"); //부서코드 콤보
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/warddeptlist" , "W"); //병동코드 콤보
-
- addComboInstance("/root/init/orddept", "deptcd^depthngnm", "-^전체", "dept"); //진료과 전체항목 추가
- cmb_orddept.select(0);
- addComboInstance("/root/init/warddeptlist", "deptcd^depthngnm", "-^전체", "dept"); //진료과 전체항목 추가
- cmb_ward.select(0);
- model.refresh();
- var sPid = getPatientInfo("pid");
- if(!isNull(sPid) ) {
- model.setValue("/root/main/cond/pid", sPid);
- model.setValue("/root/main/cond/hngnm", getPatientInfo("pname"));
- }
-
- datagrid1.frozenCols = 7;
- btn_req.dispatch("DOMActivate");
- ]]>
- </script>
- </model>
- <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="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1200" pageheight="600" guideline="800;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1180px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption9" class="tit_1" style="left:0px; top:0px; width:160px; height:15px; vertical-align:middle; ">제한항생제 신청조회</caption>
- <caption id="caption4" class="search_name" style="left:6px; top:30px; width:95px; height:17px; vertical-align:middle; ">상 태 :</caption>
- <select1 id="radio1" ref="/root/main/cond/aprvstat" appearance="full" cellspacing="5" cols="4" rows="1" overflow="visible" style="left:89px; top:31px; width:225px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>미승인</label>
- <value>0</value>
- </item>
- <item>
- <label>승인</label>
- <value>1</value>
- </item>
- <item>
- <label>자동승인</label>
- <value>7</value>
- </item>
- </choices>
- </select1>
- <bool id="chk_prcphistcd" checkvalue="Y,N" ref="/root/main/cond/prcphistcd" style="left:320px; top:29px; width:15px; height:20px; "/>
- <caption id="caption7" style="left:336px; top:30px; width:89px; height:20px; ">
- <![CDATA[D/C 처방 포함]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var chk_prcphistcd = model.getValue("/root/main/cond/prcphistcd");
- if (chk_prcphistcd =="Y") {
- model.setValue("/root/main/cond/prcphistcd", "N");
- } else {
- model.setValue("/root/main/cond/prcphistcd", "Y");
- }
- model.refresh();
- ]]>
- </script>
- </caption>
- <caption id="caption2" class="search_name" style="left:765px; top:30px; width:95px; height:17px; vertical-align:middle; ">신청일자 :</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input" inputtype="date" style="left:852px; top:30px; width:85px; height:19px; "/>
- <caption id="caption3" style="left:940px; top:30px; width:15px; height:20px; ">~</caption>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:953px; top:30px; width:85px; height:19px; "/>
- <caption id="caption10" class="search_name" style="left:765px; top:55px; width:101px; height:17px; vertical-align:middle; ">등록번호 :</caption>
- <input id="input1" ref="/root/main/cond/pid" style="left:855px; top:55px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_req", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_patsrch" class="icon_search" style="left:1039px; top:55px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500");
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.setValue("/root/main/cond/pid", sPid);
- model.setValue("/root/main/cond/hngnm", sHngnm);
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/main/cond/hngnm" disabled="true" style="left:940px; top:55px; width:95px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:486px; top:30px; width:95px; height:17px; vertical-align:middle; ">진 료 과 :</caption>
- <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_default" appearance="minimal" editmode="search" style="left:575px; top:30px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption6" class="search_name" style="left:261px; top:55px; width:95px; height:17px; vertical-align:middle; ">처방코드 :</caption>
- <input id="input3" ref="/root/main/cond/prcpcd" style="left:350px; top:55px; width:110px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_req", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:486px; top:55px; width:95px; height:17px; vertical-align:middle; ">병 동 :</caption>
- <select1 id="cmb_ward" ref="/root/main/cond/wardcd" class="combo_default" appearance="minimal" editmode="search" style="left:575px; top:55px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/warddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_basecd" class="btn3_letter4" style="left:1100px; top:90px; width:80px; height:22px; ">
- <caption>조건정보</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SPMMO33100");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn3_letter4" style="left:1015px; top:90px; width:80px; height:22px; ">
- <caption>약품정보</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SPMMD08700");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter4" style="left:650px; top:90px; width:80px; height:22px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "제한항생제의뢰내역", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- datagrid1.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter6" style="left:905px; top:90px; width:104px; height:22px; ">
- <caption>통합기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = datagrid1.row;
- var pid = model.getValue("/root/main/limantibioinfo/limantibiolist[" + row + "]/pid");
- if(pid == ""){
- messageBox("통합기록조회를 검색할 환자를", "C002");
- return;
- }
- var wndobj = getOpenWindow("SMMRI00400");
- if(wndobj != null){
- setParameter("SMMRI00400_param_pid", pid);
- wndobj.javascript.fInitalize();
- }else{
- setParameter("SMMRI00400_param_pid", pid);
- open("SMMRI00400", 2, 0, 0);
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter2" style="left:735px; top:90px; width:56px; height:22px; ">
- <caption>의뢰</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = datagrid1.row;
- var pid = model.getValue("/root/main/limantibioinfo/limantibiolist[" + row + "]/pid");
- var orddd = model.getValue("/root/main/limantibioinfo/limantibiolist[" + row + "]/orddd");
- var cretno = model.getValue("/root/main/limantibioinfo/limantibiolist[" + row + "]/cretno");
- var ioflag = "I";
- var orddeptcd = model.getValue("/root/main/limantibioinfo/limantibiolist[" + row + "]/orddeptcd");
- var orddrid = model.getValue("/root/main/limantibioinfo/limantibiolist[" + row + "]/medispclid");
-
- var param = pid +"▦"+ orddd+ "▦" +cretno+ "▦" + ioflag +"▦"+ orddeptcd +"▦" + orddrid + "▦"; //pid▦orddd▦cretno▦ioflag▦orddeptcd▦orddrid▦
- if(pid == ""){
- messageBox("의뢰를 검색할 환자를", "C002");
- return;
- }
- var wndobj = getOpenWindow("SMMMR05000");
- if(wndobj != null){
- setParameter("SMMMR05000_param_pinfo", param);
- wndobj.javascript.fInitalize();
- }else{
- setParameter("SMMMR05000_param_pinfo", param);
- open("SMMMR05000", 2, 0, 0);
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn3_letter6" style="left:795px; top:90px; width:104px; height:22px; ">
- <caption>통합결과조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = datagrid1.row;
- var pid = model.getValue("/root/main/limantibioinfo/limantibiolist[" + row + "]/pid");
- model.makeValue("/root/source/pid", pid);
- if(pid == ""){
- messageBox("통합결과조회를 검색할 환자를", "C002");
- return;
- }
-
- curExamRsltObj = getOpenWindow("SMAER00800"); //활성화된 검사결과 화면 object loading
- if(curExamRsltObj != null){
- //curExamRsltObj.javascript.model.dispatch("xforms-ready");
- curExamRsltObj.model.setvalue("/root/send/data/singdata/srchpid", pid );
- curExamRsltObj.javascript.btn_srch.dispatch("DOMActivate");
- } else {
- open("SMAER00800", "", "", "", "SMAER00800", "/root/source/pid", "/root/send/data/singdata/srchpid");
- }
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter5" style="left:470px; top:90px; width:92px; height:22px; ">
- <caption>항생제승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nCheckCnt = model.instances(0).selectNodes ( "/root/main/limantibioinfo/limantibiolist[chkflag ='Y' and aprvstat = '0']" ).length;
- if(nCheckCnt > 0) {
- model.setValue("/root/send/savedata", datagrid1.getUpdateData());
- if (submit("TXMMD08601") == true) {
- btn_req.dispatch("DOMActivate");
- }
- } else {
- messageBox("선택된 처방이 없거나, 미승인 상태가 아닙니다.", "I999");
- }
- ]]>
- </script>
- <hint>
- <![CDATA[제한 항생제 승인 권한자만 사용 가능 합니다.]]>
- </hint>
- </button>
- <button id="btn_borrow" class="btn4_letter4" style="left:565px; top:90px; width:80px; height:22px; ">
- <caption>차용신청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nCheckCnt = model.instances(0).selectNodes ( "/root/main/limantibioinfo/limantibiolist[chkflag ='Y' and aprvstat = '0']" ).length;
- if(nCheckCnt < 1) {
- messageBox("선택된 처방이 없거나, 미승인 상태가 아닙니다.", "I999");
- return;
- }
-
- nCheckCnt = model.instances(0).selectNodes ( "/root/main/limantibioinfo/limantibiolist[chkflag ='Y' and borrowyn = 'Y']" ).length;
- if(nCheckCnt > 0) {
- messageBox("이미 차용 신청된 항목을 다시 신청 할 수 없습니다.", "I999");
- return;
- }
-
- grp_borrowresn.visible = true;
- ]]>
- </script>
- <hint>
- <![CDATA[차용기능 개발 중입니다.]]>
- </hint>
- </button>
- <line id="line3" style="x1:1080px; y1:30px; x2:1080px; y2:75px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_req" class="btn1_letter2" style="left:1095px; top:40px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPidTrim("/root/main/cond/pid")
- var pid = model.getValue("/root/main/cond/pid");
- if (pid == "") {
- model.setValue("/root/main/cond/hngnm", "");
- input2.refresh();
-
- var ddInterval = getDateInterval(ipt_fromdd.value, ipt_todd.value);
- if(ddInterval > 60){
- messageBox("등록번호가 없으면 조회기간이 최대 60일까지만 조회", "I006");
- return;
- }
- } else if( reqPatInfo("pid", "ptbs", pid)==true) {
- var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
- model.setValue("/root/main/cond/hngnm", hngnm);
- input2.refresh();
- }
-
- fReqGetLimAntibioList();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:117px; x2:1178px; y2:116px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/limantibioinfo/limantibiolist" caption="선택^환자번호^환자명^S/A^진료과^병동^입원일^처방적용일^처방코드^처방명^행레벨^1회용량^1회용량^1회수량^1회수량^횟수^일수^DC^누적^상태^사유^전문의^담당의^신청자^신청일시^승인자^승인일시^차용여부^차용사유내용^차용신청부서^차용자^차용신청일시^신청번호^신청순번^승인상태코드^생성번호^진료과코드^병동코드^전문의사번^담당의사번^처방번호^처방상태코드^차용사유코드^차용신청부서코드^차용신청자사번" colsep="^" colwidth="30, 55, 55, 40, 80, 70, 70, 100, 70, 150, 0, 35, 30, 30, 30, 30, 30, 40, 40, 55, 140, 55, 55, 55, 100, 55, 100, 55, 100, 100, 55, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:120px; width:1180px; height:480px; ">
- <col checkvalue="Y,N" ref="chkflag" type="checkbox"/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sa" style="text-align:center; "/>
- <col ref="orddeptnm"/>
- <col ref="wardnm"/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="row_level" visibility="hidden"/>
- <col ref="drprcpetc7" style="text-align:right; "/>
- <col ref="prcpvolunitnm" style="text-align:center; "/>
- <col ref="drprcpetc8" style="text-align:right; "/>
- <col ref="prcpqtyunitnm" style="text-align:center; "/>
- <col ref="prcptims" style="text-align:center; "/>
- <col ref="prcpdayno" style="text-align:center; "/>
- <col ref="prcphistnm" style="text-align:center; "/>
- <col ref="usedayno" style="text-align:center; "/>
- <col ref="aprvstatnm" style="text-align:center; "/>
- <col disabled="true" ref="resnflagno" type="combo">
- <choices>
- <itemset nodeset="/root/init/appresninfo/resnlist">
- <label ref="resnnm"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- </col>
- <col ref="medispclnm" style="text-align:center; "/>
- <col ref="atdoctnm" style="text-align:center; "/>
- <col ref="wrtedrnm" style="text-align:center; "/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="confirmnm" style="text-align:center; "/>
- <col ref="confirmdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="borrowyn" style="text-align:center; "/>
- <col ref="borrowcnt"/>
- <col ref="borrowdeptnm"/>
- <col ref="borrownm" style="text-align:center; "/>
- <col ref="borrowdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="limaprvno" visibility="hidden"/>
- <col ref="aprvseq" visibility="hidden"/>
- <col ref="aprvstat" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="wardcd" visibility="hidden"/>
- <col ref="medispclid" visibility="hidden"/>
- <col ref="atdoctid" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistcd" visibility="hidden"/>
- <col ref="borrowcd" visibility="hidden"/>
- <col ref="borrowdeptcd" visibility="hidden"/>
- <col ref="borrowid" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var sUserId = getUserInfo ( "userid" );
- if(fContainsHardCD("286", sUserId)) {
- button4.dispatch("DOMActivate");
- button3.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- <group id="grp_borrowresn" visibility="hidden" style="left:410px; top:195px; width:340px; height:150px; ">
- <shape id="rectangle1" appearance="rectangle" style="left:0px; top:0px; width:340px; height:150px; "/>
- <caption id="caption14" class="tit_2" style="left:4px; top:5px; width:152px; height:13px; vertical-align:middle; ">차용신청 사유입력</caption>
- <line id="line2" class="line_1" style="x1:4px; y1:25px; x2:334px; y2:25px; "/>
- <caption id="caption26" class="cell_1" style="left:5px; top:32px; width:85px; height:23px; text-align:center; vertical-align:middle; ">사유코드</caption>
- <select1 id="combo1" ref="/root/main/borrowresn/resncd" appearance="minimal" style="left:93px; top:35px; width:240px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/borrowresn/hardcd">
- <label ref="hardcdnm"/>
- <value ref="hardcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/borrowresn/resncd")=="Z"){
- model.setValue("/root/main/borrowresn/resncnt", "");
- txt_reason.disabled="false";
- }else{
- model.setValue("/root/main/borrowresn/resncnt", combo1.label);
- txt_reason.disabled="true";
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption8" class="cell_1" style="left:4px; top:58px; width:85px; height:62px; text-align:center; vertical-align:middle; ">사유내용</caption>
- <textarea id="txt_reason" ref="/root/main/borrowresn/resncnt" disabled="true" maxlength="600" style="left:93px; top:59px; width:240px; height:60px; "/>
- <button id="btn_grdhidden" class="btn2_letter2" style="left:242px; top:125px; width:42px; height:19px; ">
- <caption>신청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sResnCd = model.getValue("/root/main/borrowresn/resncd");
- var sResnCnt = model.getValue("/root/main/borrowresn/resncnt");
- var sUserId = getUserInfo("userid");
- var sDeptCd = getUserInfo("dutplcecd");
-
- if(sResnCnt == ""){
- messageBox("차용 사유가 입력되지 않았습니다.", "I999");
- return;
- }
-
- var nCheckCnt = model.instances(0).selectNodes ( "/root/main/limantibioinfo/limantibiolist[chkflag ='Y' and aprvstat = '0']" ).length;
- if(nCheckCnt < 1) {
- messageBox("선택된 처방이 없거나, 미승인 상태가 아닙니다.", "I999");
- return;
- }
-
- nCheckCnt = model.instances(0).selectNodes ( "/root/main/limantibioinfo/limantibiolist[chkflag ='Y' and borrowyn = 'Y']" ).length;
- if(nCheckCnt > 0) {
- messageBox("이미 차용 신청된 항목을 다시 신청 할 수 없습니다.", "I999");
- return;
- }
-
- var nodelimantibiolist = instance1.selectNodes("/root/main/limantibioinfo/limantibiolist");
- if( nodelimantibiolist != null && nodelimantibiolist.length > 0 ){
- for( var i = 1 ; i <= nodelimantibiolist.length; i++ ){
- if( model.getValue("/root/main/limantibioinfo/limantibiolist[" + i + "]/chkflag") == "Y"
- && model.getValue("/root/main/limantibioinfo/limantibiolist[" + i + "]/aprvstat") == "0"
- && model.getValue("/root/main/limantibioinfo/limantibiolist[" + i + "]/borrowyn") == "N" ){
- model.setValue("/root/main/limantibioinfo/limantibiolist[" + i + "]/borrowcd" , sResnCd);
- model.setValue("/root/main/limantibioinfo/limantibiolist[" + i + "]/borrowcnt" , sResnCnt);
- model.setValue("/root/main/limantibioinfo/limantibiolist[" + i + "]/borrowdeptcd" , sDeptCd);
- model.setValue("/root/main/limantibioinfo/limantibiolist[" + i + "]/borrowid" , sUserId);
- }
- }
- }
-
- model.setValue("/root/send/savedata", datagrid1.getUpdateData());
- if (submit("TXMMD08602") == true) {
- btn_req.dispatch("DOMActivate");
- }
-
- model.setValue("/root/main/borrowresn/resncd", "");
- model.setValue("/root/main/borrowresn/resncnt", "");
- model.refresh();
- grp_borrowresn.visible = false;
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter2" style="left:292px; top:125px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/borrowresn/resncd", "");
- model.setValue("/root/main/borrowresn/resncnt", "");
- model.refresh();
- grp_borrowresn.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption11" class="search_name" style="left:6px; top:55px; width:95px; height:17px; vertical-align:middle; ">차 용 :</caption>
- <select1 id="radio2" ref="/root/main/cond/borrowyn" appearance="full" cellspacing="5" cols="4" rows="1" overflow="visible" style="left:89px; top:56px; width:136px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|