123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- <?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>
- <mthdlist>
- <item>
- <mthdcd/>
- <abbrnm/>
- <mthdcnts/>
- <basemthdyn/>
- <basecnt/>
- <cntpatt/>
- </item>
- </mthdlist>
- </main>
- <send>
- <srchmthdkind>N</srchmthdkind>
- <srchmthdcd/>
- <srchbasemthdyn/>
- <srchbasecnt>-</srchbasecnt>
- </send>
- <init>
- <comboitem>
- <mthdkind>
- <A0017>
- <cdid/>
- <cdnm/>
- </A0017>
- </mthdkind>
- </comboitem>
- </init>
- <hidden>
- <receiveref/>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRADB61201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mthdlist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //model.setValue("/root/send/srchmthdcd",model.getValue("/root/send/srchmthdcd")+"%");
- submit("TRADB61201");
- //model.setValue("/root/send/srchmthdcd",""); //처방종류에 따라 용법구분을 셋팅하므로 해당 line 주석처리(2009.05.26 JJE)
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- zbcfGetCodeList( new Array("A0017"), new Array("/root/init/comboitem/mthdkind") ); //화면 refresh(ready event) 전에 수행하도록 위치 변경(2009.05.26 JJE)
-
- //(s) 약종류에 따라 용법구분 default 지정되도록 parameter 처리 (2009.05.26 JJE)
- var mainObj = getMainViewer();
- var SMADB00800Obj = mainObj.javascript.getOpenWindow("SMADB00800");
- //if(SMADB00800Obj != null){
- var prcpclscd = opener.javascript.getParameter("SPADB61200_prcpclscd");
- var mthdKind = "";
- var prcptims = "-";
-
- if ( prcpclscd != null && prcpclscd != "" ) {
- if ( prcpclscd == "A2" ) {
- mthdKind = "N";
- combo1.disabled = false;
- }
- else if ( prcpclscd == "A4" ) {
- //비율은 내복약만 쓴다.
- mthdKind = "Y";
- combo1.disabled = true;
- }
- else if ( prcpclscd == "A6" ) {
- mthdKind = "I"; //비율은 내복약만 쓴다.
- prcptims = "1"; //주사는 횟수가 무조건 1이다.
- combo1.disabled = true;
- }
-
- model.setValue( "/root/send/srchmthdkind", mthdKind );
-
- if ( prcpclscd != "A2" ) { //경구약이 아닌경우에는 회수는 필요없다.
- model.setValue( "/root/send/srchbasecnt", "-" );
- } else {
- model.setValue( "/root/send/srchbasecnt", prcptims );
- }
- }
- //}
- //(e)
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/hismainweb/js/DocTitle.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="800" pageheight="577" guideline="1,1194;1,847;2,577;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:780px; height:550px; ">
- <group id="group2" style="left:0px; top:0px; width:775px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:775px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">용법구분 :</caption>
- <line id="line13" class="line_4" style="x1:699px; y1:5px; x2:699px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption3" class="search_name" style="left:205px; top:8px; width:86px; height:17px; ">용법코드 :</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:705px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.setValue("/root/send/srchmthdcd",model.getValue("/root/send/srchmthdcd")+"%");
- submit("TRADB61201");
- //model.setValue("/root/send/srchmthdcd","");
- ]]>
- </script>
- </button>
- <select1 id="cmb_srchmthdflag" ref="/root/send/srchmthdkind" class="combo_search" appearance="minimal" style="left:100px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comboitem/mthdkind/A0017">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //(s) 용법 변경시 횟수 지정하도록 변경 (2009.05.16 JJE)
- var mthdKind = model.getValue("/root/send/srchmthdkind");
- var prcptims = "-";
-
- if ( mthdKind == "N" ) {
- combo1.disabled = false;
- }
- else if ( mthdKind == "Y" ) {
- //비율은 내복약만 쓴다.
- combo1.disabled = true;
- }
- else if ( mthdKind == "I" ) {
- prcptims = "1"; //주사는 횟수가 무조건 1이다.
- combo1.disabled = true;
- }
-
- if ( mthdKind != "N" ) { //경구약이 아닌경우에는 회수는 필요없다.
- model.setValue( "/root/send/srchbasecnt", "-" );
- } else {
- model.setValue( "/root/send/srchbasecnt", prcptims );
- }
- //(e)
-
- submit("TRADB61201");
- model.setValue("/root/send/srchmthdcd","");
- ]]>
- </script>
- </select1>
- <input id="ipt_srchmthdcd" ref="/root/send/srchmthdcd" class="input_search" style="left:294px; top:8px; width:131px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:435px; top:8px; width:86px; height:17px; ">기본용법 :</caption>
- <caption id="caption5" class="search_name" style="left:560px; top:8px; width:70px; height:17px; ">횟수 :</caption>
- <select1 id="combo1" ref="/root/send/srchbasecnt" class="combo_search" appearance="minimal" style="left:620px; top:8px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- <item>
- <label>2</label>
- <value>2</value>
- </item>
- <item>
- <label>3</label>
- <value>3</value>
- </item>
- <item>
- <label>4</label>
- <value>4</value>
- </item>
- <item>
- <label>5회이상</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRADB61201");
- model.setValue("/root/send/srchmthdcd","");
- ]]>
- </script>
- </select1>
- <select id="checkbox2" ref="/root/send/srchbasemthdyn" class="checkbox_search" overflow="visible" appearance="full" style="left:524px; top:9px; width:30px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRADB61201");
- model.setValue("/root/send/srchmthdcd","");
- ]]>
- </script>
- </select>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:46px; width:95px; height:14px; ">용법조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:775px; y2:60px; "/>
- <datagrid id="grd_mthdlist" nodeset="/root/main/mthdlist/item" caption="용법코드^약어명^용법명^기본용법여부^횟수^횟수패턴" colsep="^" colwidth="80, 133, 333, 83, 49, 59" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:66px; width:775px; height:484px; ">
- <col ref="mthdcd"/>
- <col ref="abbrnm"/>
- <col ref="mthdcnts"/>
- <col checkvalue="Y,N" ref="basemthdyn" type="checkbox"/>
- <col ref="basecnt" style="text-align:center; "/>
- <col ref="cntpatt"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var receiveref = model.getValue("/root/hidden/receiveref");
- if ( checkOpener() ) {
- opener.model.setValue(receiveref, model.getValue("/root/main/mthdlist/item["+grd_mthdlist.row+"]/mthdcd"));
- opener.model.refresh();
- window.close();
- } else {
- alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:550px; width:780px; height:27px; ">
- <button id="btn_cfm" class="btn4_letter2" style="left:661px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- </button>
- <button id="btn_cls" class="btn4_letter2" style="left:720px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|