123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <?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>
- <remlist>
- <resncd/>
- <resn/>
- <resnetc/>
- </remlist>
- <paramlist/>
- </main>
- <init>
- <M0339list>
- </M0339list>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList( new Array("M0339"), new Array( "/root/init/M0339list") );
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <script type="javascript" ev:event="xforms-model-destruct">
- <![CDATA[
- //opener.javascript.setParameter("SPMMD01600_useyn", "N");
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- function fAddRemOpener(){
-
- var strNotInput = "";
- var flag = true;
- // for( idx = 1; idx <= grd_remlist.rows - grd_remlist.fixedRows ; idx++ ){
- //
- // var prcpnm = model.getValue("/root/main/remlist/info["+idx+"]/prcpnm");
- // if ( isNull(model.getValue("/root/main/remlist/info["+idx+"]/rem"))) {
- // strNotInput = strNotInput + "["+prcpnm+"]";
- // flag = false;//입력안한 추가사항이 존재한다
- // }
- //
- // }
- if ( isNull(model.getValue("/root/main/remlist/resncd"))) {
- messageBox(" 추가사항이 입력되지 않았습니다.", "C001");
- return false;
- }
-
- // 2008.09.11 기타사유가 없을 때는 넘어가지 않도록
- if( model.getValue("/root/main/remlist/resncd") == "99") {
- if( isNull(model.getValue("/root/main/remlist/resnetc")) ) {
- messageBox("기타사유를", "C001");
- return false;
- }
- }
- //copyNodesetType("/root/main/antibiotics/antibioticslist","/root/main/remlist","replace",opener.model,model);
- opener.model.setValue("/root/main/antibiotics/antibioticslist/resncd", model.getValue("/root/main/remlist/resncd"));
- opener.model.setValue("/root/main/antibiotics/antibioticslist/resnetc", model.getValue("/root/main/remlist/resnetc"));
- opener.model.setValue("/root/main/antibiotics/antibioticslist/addyn", "Y");//Y : 항생제 추가를 통해 저장된 처방의 경우
- return true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="595" pageheight="110">
- <button id="button1" class="btn4_letter2" style="left:468px; top:83px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fAddRemOpener()){
- opener.javascript.setParameter("SPMMD01600_useyn", "Y");
- window.close();
- }
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:527px; top:83px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- opener.javascript.setParameter("SPMMD01600_useyn", "N");
- model.close();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="tit_2" style="left:7px; top:6px; width:283px; height:13px; ">추가사유입력(반드시 입력하시기 바랍니다)</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:21px; x2:581px; y2:21px; "/>
- <select1 id="combo1" ref="/root/main/remlist/resncd" appearance="minimal" style="left:61px; top:28px; width:519px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/M0339list/M0339">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( model.getValue("/root/main/remlist/resncd") == "99" ){
- ipt_resnetc.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption54" class="cell_1" style="left:0px; top:26px; width:60px; height:49px; text-align:left; vertical-align:middle; ">추가사유</caption>
- <line id="line16" class="line_3" style="x1:60px; y1:50px; x2:581px; y2:50px; "/>
- <line id="line1" class="line_3" style="x1:0px; y1:76px; x2:581px; y2:76px; "/>
- <input id="ipt_resnetc" ref="/root/main/remlist/resnetc" disabled="true" style="left:61px; top:54px; width:520px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|