123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425 |
- <?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>
- <steplist/>
- <essprcp/>
- <prcp/>
- </main>
- <init>
- <prcpstatcd/>
- <prcpclscd/>
- <prcpkindcd/>
- <payflagcd/>
- </init>
- <send>
- <reqdata>
- <cpgno/>
- <cpgappno/>
- <essflag>D</essflag>
- <appyn/>
- </reqdata>
- </send>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("M0011", "M0005", "M0003", "M0029"),
- new Array("/root/init/prcpstatcd", "/root/init/prcpclscd",
- "/root/init/prcpkindcd", "/root/init/payflagcd"));
-
- mmbfGetDeptCodeComboList("/root/temp/reqdata", "/root/orddept", "I");
- copyNodesetType("/root/main/steplist", "/root/main/steplist", "replace", model, opener.model);
-
- model.toggle("ess1mode");
-
- //조회 시작
- var cpgno = opener.model.getValue("/root/main/masterinfo/info/cpgno");
- var cpghistseq = opener.model.getValue("/root/main/masterinfo/info/cpghistseq");
- var cpgappno = opener.model.getValue("/root/temp1/getdata/cpgappno");
-
- model.makeValue("/root/send/reqdata/cpgno", cpgno);
- model.makeValue("/root/send/reqdata/cpghistseq", cpghistseq);
- model.makeValue("/root/send/reqdata/cpgappno", cpgappno);
-
- if( model.getValue("/root/send/reqdata/essflag") == "D" ){
- if(submit("TRMMP04101", true)){
- //if(instance1.selectNodes("/root/main/essprcpsetinfo/essprcpsetlist").length <= 0 )
- //messageBox("필수처방이 존재하지", "I011");
- }
- }else{
- var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
- var orddd = "";
- if(prcpgenrflag == "O"){
- orddd = opener.model.getValue("/root/paminfo/list/orddd");
- }else{
- orddd = opener.model.getValue("/root/paminfo/list/indd");
- }
- model.removeNodeset("/root/main/getdatalist/list");
- model.makeValue("/root/send/reqdata/timescond", "1");
- model.makeValue("/root/send/reqdata/pid", opener.model.getValue("/root/paminfo/list/pid"));
- model.makeValue("/root/send/reqdata/cretno", opener.model.getValue("/root/paminfo/list/cretno"));
- model.makeValue("/root/send/reqdata/orddd", orddd);
- model.makeValue("/root/send/reqdata/prcpgenrflag", prcpgenrflag);
- if(submit("TRMMP04102", true)){
- }
- }
- ]]>
- </script>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMP02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
- <submission id="TRMQP01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/essprmsdata" resultref="/root/main/essprcp"/>
- <submission id="TRMMP04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/essprcpsetinfo"/>
- <!-- TRMMP04102 사용안함, TRMMP02201 재활용 -->
- <submission id="TRMMP04102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/prcp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="755" pageheight="485" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <button id="button2" class="btn4_letter2" style="left:675px; top:458px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:0px; width:730px; height:455px; ">
- <case id="ess1mode" selected="true">
- <caption id="caption2" class="tit_2" style="left:5px; top:170px; width:198px; height:14px; vertical-align:middle; ">필수 처방 정보</caption>
- <datagrid id="grd_prcplist" nodeset="/root/main/essprcp/prcplist" caption="^상태^분류^종류^처방코드^처방명^총용량^총용량^수량^수량^횟수^일수^급비^용법/검체^MIX^전달^원내외^시행부서^희망일자^선택진료^등록일시^등록자" colsep="^" colwidth="38, 55, 50, 55, 80, 240, 45, 27, 37, 27, 40, 37, 60, 153, 38, 40, 50, 100, 100, 60, 80, 80" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" navindex="1" style="left:0px; top:185px; width:725px; height:265px; ">
- <col disabled="true" ref="status" type="combo" visibility="hidden" style="left:0px; top:23px; width:38px; height:23px; text-align:center; word-wrap:word; focus-rect:visible; ">
- <choices>
- <item>
- <label>검색</label>
- <value>S</value>
- </item>
- <item>
- <label>신규</label>
- <value>I</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- <item>
- <label>D/C</label>
- <value>C</value>
- </item>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- </choices>
- </col>
- <col ref="prcpstatcd" type="combo" visibility="hidden" style="text-align:center; focus-rect:visible; ">
- <choices>
- <item>
- <label/>
- <value>-</value>
- </item>
- <item>
- <label>미발행</label>
- <value>N</value>
- </item>
- <item>
- <label>발행</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col ref="prcpclscd" type="combo" visibility="hidden" style="text-align:left; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpclscd/M0005">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col class="gridcombo" ref="prcpkindcd" type="combo" style="text-align:center; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpkindcd/M0003">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpcd" type="input" style="text-align:left; focus-rect:visible; "/>
- <col ref="prcpnm" type="input" style="text-align:left; focus-rect:visible; "/>
- <col ref="prcpvol" type="input" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpvolunitnm" type="output" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpqty" type="input" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpqtyunitnm" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcptims" type="input" format="#" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpdayno" type="input" format="#" style="text-align:center; focus-rect:visible; "/>
- <col ref="payflagcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/payflagcd/M0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="drugmthdspccdnm" type="output" style="focus-rect:visible; "/>
- <col ref="prcpmixno" type="input" style="focus-rect:visible; "/>
- <col ref="prcpdelivefact" style="focus-rect:visible; "/>
- <col disabled="true" ref="hosinhosoutflag" type="combo" style="text-align:center; focus-rect:visible; ">
- <choices>
- <item>
- <label>원내</label>
- <value>I</value>
- </item>
- <item>
- <label>원외</label>
- <value>O</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <col class="gridcombo" disabled="true" ref="prcpexecdeptcd" type="combo" visibility="hidden" style="focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcphopedd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; focus-rect:visible; "/>
- <col checkvalue="Y,N" ref="choiordflag" type="checkbox" style="focus-rect:visible; "/>
- <col ref="rgsttm" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="rgstridnm" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_esslist" nodeset="/root/main/essprcpsetinfo/essprcpsetlist" caption="상태^발행일^선택필수명^발행 필수 여부^시작^종료^setno^settypecd^cpgno^cpghistseq^setattrno^setattrhistno^스텝구간" colsep="^" colwidth="91, 75, 362, 100, 85, 85, 0, 0, 0, 0, 0, 0, 170" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:725px; height:130px; ">
- <col ref="setappyn" type="combo">
- <choices>
- <item>
- <label/>
- <value>-</value>
- </item>
- <item>
- <label>미발행</label>
- <value>N</value>
- </item>
- <item>
- <label>발행</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="setnm" type="output"/>
- <col checkvalue="Y,N" ref="issneedyn" type="checkbox"/>
- <col ref="fromstepno" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/main/steplist/info">
- <label ref="stepnm"/>
- <value ref="stepno"/>
- </itemset>
- </choices>
- </col>
- <col ref="tostepno" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/main/steplist/info">
- <label ref="stepnm"/>
- <value ref="stepno"/>
- </itemset>
- </choices>
- </col>
- <col ref="setno"/>
- <col ref="settypecd"/>
- <col ref="cpgno"/>
- <col ref="cpghistseq"/>
- <col ref="setattrno"/>
- <col ref="setattrhistno"/>
- <col ref="steplistnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var iRow = grd_esslist.row;
- if(iRow>0 && iRow <= grd_esslist.rows){
- model.makeNode("/root/send/essprmsdata");
- model.makeValue("/root/send/essprmsdata/cond1", model.getValue("/root/main/essprcpsetinfo/essprcpsetlist["+iRow+"]/setno"));
- model.makeValue("/root/send/essprmsdata/cond2", model.getValue("/root/main/essprcpsetinfo/essprcpsetlist["+iRow+"]/settypecd"));
- model.makeValue("/root/send/essprmsdata/cpyn", "N");
-
- submit("TRMQP01404");
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="ess2mode">
- <datagrid id="datagrid1" nodeset="/root/main/prcp/list" caption="스텝^^상태^발행일^분류^종류^처방코드^처방명^총용량^총용량^수량^수량^횟수^일수^급비^용법/검체^MIX^전달^원내외^시행부서^희망일자^선택진료^등록일시^등록자" colsep="^" colwidth="75, 38, 55, 75, 50, 55, 80, 240, 45, 27, 37, 27, 40, 37, 60, 153, 38, 40, 50, 100, 100, 60, 80, 80" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" navindex="1" style="left:0px; top:30px; width:725px; height:420px; ">
- <col disabled="true" ref="stepnm" type="output"/>
- <col disabled="true" ref="status" type="combo" visibility="hidden" style="left:0px; top:23px; width:38px; height:23px; text-align:center; word-wrap:word; focus-rect:visible; ">
- <choices>
- <item>
- <label>검색</label>
- <value>S</value>
- </item>
- <item>
- <label>신규</label>
- <value>I</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- <item>
- <label>D/C</label>
- <value>C</value>
- </item>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="prcpstatcd" type="combo" style="text-align:center; focus-rect:visible; ">
- <choices>
- <item>
- <label/>
- <value>-</value>
- </item>
- <item>
- <label>미발행</label>
- <value>N</value>
- </item>
- <item>
- <label>발행</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="prcpclscd" type="combo" visibility="hidden" style="text-align:left; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpclscd/M0005">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col class="gridcombo" disabled="true" ref="prcpkindcd" type="combo" style="text-align:center; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpkindcd/M0003">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpcd" type="input" style="text-align:left; focus-rect:visible; "/>
- <col ref="prcpnm" type="input" style="text-align:left; focus-rect:visible; "/>
- <col ref="prcpvol" type="input" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpvolunitnm" type="output" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpqty" type="input" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpqtyunitnm" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcptims" type="input" format="#" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpdayno" type="input" format="#" style="text-align:center; focus-rect:visible; "/>
- <col ref="payflagcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/payflagcd/M0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="drugmthdspccdnm" type="output" style="focus-rect:visible; "/>
- <col ref="prcpmixno" type="input" style="focus-rect:visible; "/>
- <col ref="prcpdelivefact" style="focus-rect:visible; "/>
- <col disabled="true" ref="hosinhosoutflag" type="combo" style="text-align:center; focus-rect:visible; ">
- <choices>
- <item>
- <label>원내</label>
- <value>I</value>
- </item>
- <item>
- <label>원외</label>
- <value>O</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <col class="gridcombo" disabled="true" ref="prcpexecdeptcd" type="combo" visibility="hidden" style="focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcphopedd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; focus-rect:visible; "/>
- <col checkvalue="Y,N" ref="choiordflag" type="checkbox" style="focus-rect:visible; "/>
- <col ref="rgsttm" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="rgstridnm" visibility="hidden"/>
- </datagrid>
- </case>
- </switch>
- <select1 id="radio1" ref="/root/send/reqdata/essflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:130px; top:8px; width:215px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>선택 필수</label>
- <value>D</value>
- </item>
- <item>
- <label>스텝 필수</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( model.getValue("/root/send/reqdata/essflag") == "D" ){
- if(submit("TRMMP04101", true)){
- //if(instance1.selectNodes("/root/main/essprcpsetinfo/essprcpsetlist").length <= 0 )
- //messageBox("필수처방이 존재하지", "I011");
- }
- model.toggle("ess1mode");
- }else{
- var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
- var orddd = "";
- if(prcpgenrflag == "O"){
- orddd = opener.model.getValue("/root/paminfo/list/orddd");
- }else{
- orddd = opener.model.getValue("/root/paminfo/list/indd");
- }
- model.removeNodeset("/root/main/getdatalist/list");
- model.makeValue("/root/send/reqdata/timescond", "1");
- model.makeValue("/root/send/reqdata/pid", opener.model.getValue("/root/paminfo/list/pid"));
- model.makeValue("/root/send/reqdata/cretno", opener.model.getValue("/root/paminfo/list/cretno"));
- model.makeValue("/root/send/reqdata/orddd", orddd);
- model.makeValue("/root/send/reqdata/prcpgenrflag", prcpgenrflag);
- if(submit("TRMMP04102", true)){
- }
- model.toggle("ess2mode");
- }
-
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="tit_2" style="left:5px; top:10px; width:110px; height:14px; vertical-align:middle; ">CPG 필수 정보</caption>
- </xhtml:body>
- </xhtml:html>
|