123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>대체처방</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <excuprcplist>
- <excuprcp>
- <check/>
- <excucd/>
- <excucdnm/>
- <excuroomcd/>
- <excupartcd/>
- <prcpclscd/>
- </excuprcp>
- </excuprcplist>
- <direcprcplist>
- <direcprcp>
- <check/>
- <prcpdd/>
- <prcpnm/>
- <orddridnm/>
- <atdoctid/>
- <medispclid/>
- <rgstdd/>
- <rgsttm/>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <sex/>
- <age/>
- <prcpgenrflag/>
- <orddeptcd/>
- <drprcpetc11/>
- <execprcpuniqno/>
- <ioflag/>
- <indd/>
- <cretno/>
- <orddrid/>
- <prcpstatcd/>
- <inclprcpcd/>
- <inclprcpno/>
- <prcpsetcd/>
- <prcpno/>
- <prcphistno/>
- <orddd/>
- <specordyn/>
- <specdrid/>
- </direcprcp>
- </direcprcplist>
- <execprcplist>
- <execprcp>
- <check/>
- <prcpdd/>
- <prcpnm/>
- <prcpvol/>
- <prcpqty/>
- <prcptims/>
- <prcpdayno/>
- <opansflagcd/>
- <payflagcd/>
- <drprcpetc11/>
- <prcpdelivefact/>
- <prcpcd/>
- <excuroomcd/>
- <prcpno/>
- <certno/>
- <orddeptcd/>
- <orddrid/>
- <ioflag/>
- <orddd/>
- <indd/>
- <excupartcd/>
- <prcpclscd/>
- <prcpsignflag/>
- <aftcertflag/>
- <aftcertdrid/>
- </execprcp>
- </execprcplist>
- <popupendflag/>
- <examcurecdlist>
- <excuprcp>
- <check/>
- <excucd/>
- <excucdnm/>
- <excuroomcd/>
- <excupartcd/>
- <prcpclscd/>
- </excuprcp>
- </examcurecdlist>
- </main>
- <init>
- <cmbinfo>
- <payflagcd>
- <M0029>
- <cdid/>
- <cdnm/>
- </M0029>
- </payflagcd>
- <opansflagcd>
- <M0007>
- <cdid/>
- <cdnm/>
- </M0007>
- </opansflagcd>
- </cmbinfo>
- <comboexcucd>
- <item>
- <cdnm>처방코드</cdnm>
- <cdid>01</cdid>
- </item>
- <item>
- <cdnm>처방명</cdnm>
- <cdid>02</cdid>
- </item>
- </comboexcucd>
- </init>
- <send>
- <baseinfo>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <sex/>
- <age/>
- <prcpdd/>
- <execprcpuniqno/>
- <gb/>
- </baseinfo>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <status/>
- <direcprcplist/>
- <execprcplist/>
- <startdd/>
- <deptflag/>
- <reqdata>
- <instance1/>
- <srchexamcurecd/>
- <srchexamcurenm/>
- <srchexamcureflag/>
- </reqdata>
- </send>
- <popdata>
- <pid>21403</pid>
- <prcpdd>20070904</prcpdd>
- <execprcpuniqno>31389</execprcpuniqno>
- </popdata>
- <hidden>
- <count/>
- <codedata>
- <popupmenu>
- <grid01>
- <item>
- <name>행 삭제</name>
- <func>fGridDeleteRow</func>
- </item>
- </grid01>
- </popupmenu>
- </codedata>
- </hidden>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- function readfunc(){
- submit("TRAER01801");
- if (model.getValue("/root/main/direcprcplist/direcprcp[" + 1 + "]/pid") != ""){
- model.setValue("/root/send/baseinfo/hngnm", model.getValue("/root/main/direcprcplist/direcprcp[" + 1 + "]/hngnm"));
- model.setValue("/root/send/baseinfo/rrgstno", model.getValue("/root/main/direcprcplist/direcprcp[" + 1 + "]/rrgstno"));
- model.setValue("/root/send/baseinfo/sex", model.getValue("/root/main/direcprcplist/direcprcp[" + 1 + "]/sex"));
- model.setValue("/root/send/baseinfo/age", model.getValue("/root/main/direcprcplist/direcprcp[" + 1 + "]/age"));
- model.setValue("/root/main/direcprcplist/direcprcp/check", "Y");
- }
- model.refresh();
- }
- function fExecPrcpTransaction(str) {
-
- var direcnodeList = instance1.selectNodes("/root/main/direcprcplist/direcprcp[check='Y']");
- var direcCSV = getNodeListCSV(direcnodeList);
-
- if ( direcCSV == null ) {
- messageBox("원처방내역을 ","C002");
- return "0";
- }
- /*
- // 후인증 처리
- setParameter("SPMMB04100_defdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- modal("SPMMB04100");
-
- var useyn = getParameter("SPMMB04100_useyn");
- if(useyn == "Y"){
- var orddrid = getParameter("SPMMB04100_orddrid");
- model.setValue("/root/main/execprcplist/execprcp/prcpsignflag", "1");
- model.setValue("/root/main/execprcplist/execprcp/aftcertflag", "11");
- model.setValue("/root/main/execprcplist/execprcp/aftcertdrid", orddrid);
- } else if(useyn == "X"){
- model.setValue("/root/main/execprcplist/execprcp/prcpsignflag", "1");
- model.setValue("/root/main/execprcplist/execprcp/aftcertflag", "11");
- model.setValue("/root/main/execprcplist/execprcp/aftcertdrid", model.getValue("/root/main/execprcplist/execprcp/orddrid"));
- }
- */
- var execnodeList = instance1.selectNodes("/root/main/execprcplist/execprcp[check='Y']");
- var execCSV = getNodeListCSV(execnodeList);
- if ( execCSV == null ) {
- messageBox("대체처방내역을 ","C002");
- return "0";
- }
-
-
- model.setValue("/root/send/direcprcplist", direcCSV);
- model.setValue("/root/send/execprcplist", execCSV);
- model.setValue("/root/send/status", str);
- // model.setValue("/root/send/startdd", getCurrentDate());
- model.setValue("/root/send/startdd", model.getValue("/root/main/direcprcplist/direcprcp["+grd_direcprcp.bottomRow+"]/prcpdd"));
-
- var deptflag = model.getValue("/root/popdata/deptflag");
- var prcpexecdeptcd = model.getValue("/root/popdata/prcpexecdeptcd");
- // 핵의학 체내일 경우
- if (deptflag == "N") {
-
- model.setValue("/root/send/deptflag", "N");
- model.setValue("/root/send/globalinstance/instance1", prcpexecdeptcd);
- } else {
- model.setValue("/root/send/deptflag", "S");
- }
- if ( str == "I") {
- if (submit("TXAOA01001")){
- messageBox("정상적으로 처리되었습니다.", "E999", "");
- btn_cfm.dispatch("DOMActivate");
- }
- } else if (str == "C") {
- if (submit("TXAOA01002")){
- }
- }
- }
- function isDate(str) { // 날짜 형식에 대한 적합여부 체크
- if (str == "") return true; // 빈건 체크안함
- if (trim(str) == "") return true; // 빈건 체크안함
- if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
- if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
-
- var yy = new Number(str.substring(0, 4));
- var mm = new Number(str.substring(4, 6)) - 1;
- var dd = new Number(str.substring(6, 8));
- var date = new Date(yy, mm, dd);
- //alert(date.getFullYear() +"-" + (date.getMonth()+1) + "-" + date.getDate());
- if (yy != date.getFullYear() ||
- mm != date.getMonth() ||
- dd != date.getDate()) {
- return false; // 존재하지 않는 날짜
- }
-
- return true; // 존재하는 날짜
- }
- function trim(data){ // 문자에 대한 TRIM 작업
- return data.replace(/(^\s*)|(\s*$)/g, "");
- }
-
- function fGridDeleteRow() {
- grd_execprcplist.deleteRow(grd_execprcplist.row, true);
- }
-
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <submission id="TRZBC00101"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- zbcfGetCodeList( new Array("M0029", "M0007"),
- new Array("/root/init/cmbinfo/payflagcd", "/root/init/cmbinfo/opansflagcd"));
- model.removeNodeset("/root/main/excuprcplist/excuprcp");
- model.removeNodeset("/root/main/direcprcplist/direcprcp");
- model.removeNodeset("/root/main/execprcplist/execprcp");
- model.setValue("/root/send/baseinfo/gb", "1");
-
- model.setValue("/root/send/reqdata/instance1", model.getValue("/root/send/globalinstance/instance1"));
- //내시경 대치처방 가능쿼리 조회 (처방리스트)
- submit("TRAER01803");
-
- // 2011.6.29 선택진료의 가져오기 쿼리수정.
- submit("TRAEA01136");
-
- model.setValue("/root/send/baseinfo/pid", model.getValue("/root/popdata/pid"));
- model.setValue("/root/send/baseinfo/prcpdd", model.getValue("/root/popdata/prcpdd"));
- model.setValue("/root/send/baseinfo/execprcpuniqno", model.getValue("/root/popdata/execprcpuniqno"));
- readfunc();
- model.refresh();
- ]]>
- </script>
- <submission id="TRAER01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/baseinfo" resultref="/root/main/direcprcplist"/>
- <submission id="TRAER01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/baseinfo" resultref="/root/main/execprcplist"/>
- <submission id="TXAOA01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXAOA01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRAER01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/excuprcplist"/>
- <submission id="TRAER01804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/examcurecdlist"/>
- <submission id="TRAEA01136" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/main/specdridlist"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1200" pageheight="590" guideline="1,1194;1,909;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_biz" scroll="auto" style="left:10px; top:8px; width:1168px; height:552px; ">
- <group id="grp_sea" style="left:0px; top:20px; width:1167px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1167px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">
- <![CDATA[>]]>
- </shape>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <line id="line13" class="line_4" style="x1:1059px; y1:7px; x2:1059px; y2:29px; "/>
- <input id="ipt_pid" ref="/root/send/baseinfo/pid" class="input_search" disabled="true" style="left:104px; top:8px; width:80px; height:19px; "/>
- <output id="opt_kornm" ref="/root/send/baseinfo/hngnm" class="output_search" style="left:188px; top:8px; width:80px; height:19px; "/>
- <output id="opt_rrgstno" ref="/root/send/baseinfo/rrgstno" class="output_search" format="999999-9999999" style="left:271px; top:8px; width:110px; height:19px; text-align:center; "/>
- <output id="opt_sex" ref="/root/send/baseinfo/sex" class="output_search" style="left:384px; top:8px; width:30px; height:19px; text-align:center; "/>
- <output id="opt_age" ref="/root/send/baseinfo/age" class="output_search" style="left:417px; top:8px; width:30px; height:19px; text-align:center; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1086px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/execprcplist/execprcp");
- readfunc();
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/send/baseinfo/prcpdd" class="input_s_essential" disabled="true" inputtype="date" style="left:551px; top:8px; width:100px; height:19px; "/>
- <caption id="caption9" class="search_name" style="left:462px; top:9px; width:86px; height:17px; ">처방일자 :</caption>
- </group>
- <line id="line9" class="line_1" style="x1:0px; y1:94px; x2:420px; y2:94px; "/>
- <button id="button4" class="btn5_letter4" style="left:355px; top:70px; width:64px; height:19px; ">
- <caption>처방복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = 0; i < grd_excuprcplist.rows; i++) {
- if (model.getValue("/root/main/excuprcplist/excuprcp[" + i + "]/check") == "Y") {
- var excucd = model.getValue("/root/main/excuprcplist/excuprcp[" + i + "]/excucd");
- var irow = grd_execprcplist.findRow(excucd, 1, grd_execprcplist.colRef("prcpcd"));
- if (irow < 0){
- grd_execprcplist.addRow();
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow+ "]/opansflagcd", "4" );
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/prcpcd", model.getValue("/root/main/excuprcplist/excuprcp[" + i + "]/excucd"));
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/prcpnm", model.getValue("/root/main/excuprcplist/excuprcp[" + i + "]/excucdnm"));
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/excupartcd", model.getValue("/root/main/excuprcplist/excuprcp[" + i + "]/excupartcd"));
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/prcpclscd", model.getValue("/root/main/excuprcplist/excuprcp[" + i + "]/prcpclscd"));
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/prcpvol", 1);
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/prcpqty", 1);
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/prcptims", 1);
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/prcpdayno", 1);
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/check", "Y");
- model.refresh();
- }
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption41" class="tit_2" style="left:5px; top:75px; width:120px; height:13px; ">처방리스트</caption>
- <datagrid id="grd_excuprcplist" nodeset="/root/main/excuprcplist/excuprcp" scroll="auto" caption="선택^처방코드^처방명^caption1^caption2^처방분류" colsep="^" colwidth="30, 76, 275, 21, 30, 100" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:99px; width:420px; height:450px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="excucd" style="left:53px; top:23px; width:80px; height:23px; "/>
- <col ref="excucdnm"/>
- <col ref="excuroomcd" visibility="hidden"/>
- <col ref="excupartcd" visibility="hidden"/>
- <col ref="prcpclscd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var excucd = model.getValue("/root/main/excuprcplist/excuprcp[" + grd_excuprcplist.row + "]/excucd");
- var irow = grd_execprcplist.findRow(excucd, 1, grd_execprcplist.colRef("prcpcd"));
-
- if (irow < 0){
- grd_execprcplist.addRow();
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow+ "]/opansflagcd", "4" );
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/prcpcd", model.getValue("/root/main/excuprcplist/excuprcp[" + grd_excuprcplist.row + "]/excucd"));
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/prcpnm", model.getValue("/root/main/excuprcplist/excuprcp[" + grd_excuprcplist.row + "]/excucdnm"));
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/excupartcd", model.getValue("/root/main/excuprcplist/excuprcp[" + grd_excuprcplist.row + "]/excupartcd"));
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/prcpvol", 1);
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/prcpqty", 1);
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/prcptims", 1);
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/prcpdayno", 1);
- model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/check", "Y");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:430px; top:75px; width:80px; height:13px; ">원처방</caption>
- <line id="line1" class="line_1" style="x1:425px; y1:94px; x2:1164px; y2:94px; "/>
- <datagrid id="grd_direcprcp" nodeset="/root/main/direcprcplist/direcprcp" scroll="auto" caption="선택^적용일자^지시처방명^처방의명^주치의명^담당의명^처방입력일시^처방입력일시^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption15^caption14^orddrid^caption16^caption11^caption12^caption13^caption17^caption18^caption19^선택진료^선택진료^^" colsep="^" colwidth="33, 76, 279, 64, 64, 64, 72, 61, 21, 21, 21, 19, 19, 21, 18, 19, 18, 20, 100, 100, 100, 100, 19, 24, 27, 100, 100, 100, 32, 67" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:425px; top:99px; width:739px; height:120px; ">
- <col checkvalue="Y,N" disabled="true" ref="check" type="checkbox"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="prcpnm"/>
- <col ref="orddridnm"/>
- <col ref="atdoctid"/>
- <col ref="medispclid"/>
- <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rgsttm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="pid" visibility="hidden"/>
- <col ref="hngnm" visibility="hidden"/>
- <col ref="rrgstno" visibility="hidden"/>
- <col ref="sex" visibility="hidden"/>
- <col ref="age" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="drprcpetc11" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="prcpstatcd" visibility="hidden"/>
- <col ref="inclprcpcd" visibility="hidden"/>
- <col ref="inclprcpno" visibility="hidden"/>
- <col ref="prcpsetcd" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="specordyn"/>
- <col disabled="false" ref="specdrid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/specdridlist/item">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- /*
- if ( (grd_direcprcp.row >= grd_direcprcp.fixedRows) && (grd_direcprcp.isCell(event.target))) {
- model.setValue("/root/main/direcprcplist/direcprcp/check", "Y");
- submit("TRAER01802");
- }
- */
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn5_letter6" style="left:1077px; top:223px; width:86px; height:19px; ">
- <caption>대체처방발행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(grd_execprcplist.rows > 2) {
- messageBox("여러처방이", "E005","대치처방 내릴 처방외의 다른 처방은 삭제하십시오.");
- return 0;
- }
- if( grd_execprcplist.rows < 2){
- messageBox("처방을 ", "C002");
- return 0;
- }
- fExecPrcpTransaction("I");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn5_letter4" visibility="hidden" style="left:1007px; top:223px; width:64px; height:19px; ">
- <caption>결과복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //fExecPrcpTransaction("C");
-
- ]]>
- </script>
- </button>
- <caption id="caption11" class="tit_2" style="left:430px; top:229px; width:80px; height:14px; ">대체처방</caption>
- <datagrid id="grd_execprcplist" nodeset="/root/main/execprcplist/execprcp" scroll="auto" caption="선택^처방일자^처방내역^용량^수량^횟수^일수^주부^급비^제2시술^전달사항^prcpcd^excuroomcd^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^처방분류^인증구분^후인증구분^후인증의사ID^^" colsep="^" colwidth="35, 76, 213, 32, 30, 32, 32, 103, 54, 51, 171, 29, 29, 26, 25, 20, 23, 23, 23, 26, 25, 100, 100, 100, 100" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:425px; top:249px; width:739px; height:300px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="prcpnm"/>
- <col ref="prcpvol" format="99" style="text-align:center; "/>
- <col ref="prcpqty" format="99" style="text-align:center; "/>
- <col ref="prcptims" format="99" style="text-align:center; "/>
- <col ref="prcpdayno" format="99" style="text-align:center; "/>
- <col ref="opansflagcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/opansflagcd/M0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="payflagcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/payflagcd/M0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="drprcpetc11" type="checkbox"/>
- <col ref="prcpdelivefact" type="input"/>
- <col ref="prcpcd" visibility="hidden"/>
- <col ref="excuroomcd" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="certno" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="excupartcd" visibility="hidden"/>
- <col ref="prcpclscd" visibility="hidden"/>
- <col ref="prcpsignflag" visibility="hidden"/>
- <col ref="aftcertflag" visibility="hidden"/>
- <col ref="aftcertdrid" visibility="hidden"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_execprcplist", false, "/root/hidden/codedata/popupmenu/grid01/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- <line id="line7" class="line_1" style="x1:425px; y1:244px; x2:1164px; y2:244px; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">대체처방</caption>
- <input id="input1" ref="/root/send/reqdata/srchexamcurenm" style="left:195px; top:70px; width:110px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("button1","DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="button1" class="btn5_letter2" style="left:309px; top:70px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_excuprcplist.topRow = 1;
- grd_excuprcplist.allstyle( "all", "background-color" ) = "#FFFFFF";
- var defalut = model.getValue("/root/send/reqdata/srchexamcurenm");
-
- if( model.getValue("/root/send/reqdata/srchexamcureflag") == "" ) {
- messageBox("조회구분값을", "C002");
- return "0";
- }
-
-
- if( model.getValue("/root/send/reqdata/srchexamcurenm") != "" ) {
- model.resetInstanceNode("/root/main/examcurecdlist/excuprcp");
- if ( model.getValue("/root/send/reqdata/srchexamcureflag") == "01" ) { //처방코드
- model.setValue("/root/send/reqdata/srchexamcurecd", "%" + model.getValue("/root/send/reqdata/srchexamcurenm").toUpperCase()+"%");
- model.setValue("/root/send/reqdata/srchexamcurenm", "%");
- } else if ( model.getValue("/root/send/reqdata/srchexamcureflag") == "02" ) { //처방명
- model.setValue("/root/send/reqdata/srchexamcurenm", "%" + model.getValue("/root/send/reqdata/srchexamcurenm") + "%");
- model.setValue("/root/send/reqdata/srchexamcurecd", "%");
- }
- submit("TRAER01804");
-
- var count = getNodesetCount("/root/main/examcurecdlist/excuprcp");
- for( var i = 1 ; i < grd_excuprcplist.rows ; i++ ) {
- var excucd_1 = model.getValue("/root/main/excuprcplist/excuprcp[" + i + "]/excucd");
- for( var j = 1 ; j <= count ; j++ ) {
- var excucd_2 = model.getValue("/root/main/examcurecdlist/excuprcp[" + j + "]/excucd");
- if( excucd_1 == excucd_2 ) {
- grd_excuprcplist.rowStyle( i , "data", "background-color" ) = "#99cc00";
- }
-
- if( excucd_1 == model.getValue("/root/main/examcurecdlist/excuprcp[1]/excucd") )
- {
- grd_excuprcplist.topRow = i;
- }
- }
- }
- } else {
- if( model.getValue("/root/send/reqdata/srchexamcureflag") == "01" ) { //처방코드
- messageBox("처방코드를", "C001");
- }
-
- if( model.getValue("/root/send/reqdata/srchexamcureflag") == "02" ) { //처방명
- messageBox("처방명을", "C001");
- }
- }
- model.setValue("/root/send/reqdata/srchexamcurenm" , defalut );
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <select1 id="combo2" ref="/root/send/reqdata/srchexamcureflag" class="combo_search" appearance="minimal" style="left:115px; top:70px; width:76px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comboexcucd/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="group1" scroll="auto" style="left:10px; top:559px; width:1168px; height:27px; ">
- <button id="btn_cfm" class="btn4_letter2" visibility="hidden" style="left:1109px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.btn_sea.dispatch("DOMActivate");
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|