123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <?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>
- <calcflaginfo>
- <instcd/>
- <pid/>
- <orddd/>
- <cretno/>
- <ordtype/>
- <orddeptcd/>
- <prcpcd/>
- <prcpnm/>
- <prcpdd/>
- <prcpno/>
- <prcphistno/>
- <calcflag/>
- <resncnts/>
- </calcflaginfo>
- </main>
- <hidden>
- <precalcflag/>
- </hidden>
- <temp/>
- <init>
- <instcd/>
- <prcpdd/>
- <prcpno/>
- <prcphistno/>
- </init>
- <send>
- <reqdata/>
- </send>
- </root>
- </instance>
- <submission id="TRMMO14001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init" resultref="/root/main/calcflaginfo"/>
- <submission id="TXMMO14001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- var param = opener.javascript.getParameter("SSPMMO14001_Param"); // 처방키를 넘겨 받음.
- if(param!=""){
- param = param.split("|");
- model.setValue("/root/init/prcpdd", param[0]);
- model.setValue("/root/init/prcpno", param[1]);
- model.setValue("/root/init/prcphistno", param[2]);
- model.setValue("/root/init/instcd", param[3]);
-
- if(submit("TRMMO14001")){
- var sCalcFlag = model.getValue("/root/main/calcflaginfo/calcflag");
- if(sCalcFlag == "N"){
- messageBox ("무산정 처리 할수 없는 처방 입니다.(자가약, 로봇수술, 비처방성 재료 등등)", "I" );
- model.close();
- }
-
- model.setValue("/root/hidden/precalcflag", sCalcFlag); // 초기 무산정 여부 설정.
- } else {
- messageBox ("초기화 처리중 오류가 발생 하였습니다.", "I" );
- model.close();
- }
- }else{
- alert("잘못된 데이터입니다.");
- model.close();
- }
-
- model.refresh();
- ]]>
- </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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="320" pageheight="190" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <line id="line1" class="line_1" style="x1:0px; y1:15px; x2:300px; y2:15px; "/>
- <caption id="caption14" class="tit_2" style="left:0px; top:0px; width:152px; height:15px; vertical-align:middle; ">무산정처리</caption>
- <caption id="caption26" class="cell_1" style="left:1px; top:20px; width:85px; height:23px; text-align:center; vertical-align:middle; ">처방코드</caption>
- <input id="ipt_prcpcd" ref="/root/main/calcflaginfo/prcpcd" disabled="true" disable.background-color="#ffffff" style="left:90px; top:22px; width:210px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:1px; top:45px; width:85px; height:23px; text-align:center; vertical-align:middle; ">처방명</caption>
- <input id="ipt_prcpnm" ref="/root/main/calcflaginfo/prcpnm" disabled="true" disable.background-color="#ffffff" style="left:90px; top:47px; width:210px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:70px; width:85px; height:23px; text-align:center; vertical-align:middle; ">무산정여부</caption>
- <select1 id="combo1" ref="/root/main/calcflaginfo/calcflag" appearance="minimal" style="left:90px; top:70px; width:210px; height:19px; ">
- <choices>
- <item>
- <label>정상</label>
- <value>Y</value>
- </item>
- <item>
- <label>분리청구</label>
- <value>C</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="cell_1" style="left:0px; top:95px; width:85px; height:60px; text-align:center; vertical-align:middle; ">무산정사유</caption>
- <textarea id="txt_reason" ref="/root/main/calcflaginfo/resncnts" maxlength="600" style="left:90px; top:95px; width:210px; height:60px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:180px; top:160px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/calcflaginfo/resncnts")==""){
- alert("무산정 사유를 입력 하세요.");
- return;
- }
-
- if(model.getValue("/root/hidden/precalcflag")==model.getValue("/root/main/calcflaginfo/calcflag")){
- alert("무산정 여부가 변경 되지 않았습니다.");
- return;
- }
-
- model.copyNode("/root/send/reqdata", "/root/main/calcflaginfo");
- if(submit("TXMMO14001")){
- alert("저장되었습니다.");
- model.close();
- }
- ]]>
- </script>
- </button>
- <button id="btn_exit" class="btn4_letter2" style="left:240px; top:160px; width:56px; height:22px; ">
- <caption>종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|