123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <memo>
- <memo>
- <status/>
- <pid/>
- <memocnts/>
- <lastupdtrnm/>
- </memo>
- </memo>
- <cond>
- <status/>
- <pid/>
- <memocnts/>
- <lastupdtrnm/>
- </cond>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden/>
- <init/>
- </root>
- </instance>
- <submission id="TRMMR06501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/memo"/>
- <submission id="TXMMR06501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/memo"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
- <script type="javascript">
- <![CDATA[
- /**
- * @desc 제증명 메모 조회
- */
- function fReqGetIssProfCertMemo(pid){
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/pid", pid);
- if(submit("TRMMR06501")){
- }
- }
-
- /**
- * @desc 제증명 메모 저장
- */
- function fReqExeSaveIssProfCertMemo(status){
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.copyNode("/root/send/savedata", "/root/main/cond");
- if(submit("TXMMR06501")){
- var memonode = model.instances(0).selectSingleNode("/root/main/memo/memo");
- if(memonode != null){
- model.copyNode("/root/main/cond", "/root/main/memo/memo");
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //opener화면에서 등록번호를 조회
- if(checkOpener()){
- var pid = opener.javascript.getParameter("SPMMR06500_pid");
- if(pid != ""){ //opener로 부터 pid가 넘어온 경우
- model.setValue("/root/main/cond/pid", pid);
- fReqGetIssProfCertMemo(pid);
- clearParameter("SPMMR06500_pid"); //20100629-kys-요청번호 10534오류로인해 추가함.
- var memonode = model.instances(0).selectSingleNode("/root/main/memo/memo");
- if(memonode != null){
- //조회결과가 있는 경우, default 수정상태
- model.copyNode("/root/main/cond", "/root/main/memo/memo");
- model.setValue("/root/main/cond/status", "u");
-
- }else{
- //조회결과가 없는 경우, default 저장상태
- model.setValue("/root/main/cond/status", "i");
- }
- model.removeNodeset("/root/init/imemode");
- model.makeNode("/root/init/imemode");
-
- // 2013.11.26 제증명 메모작성시, 한/영 구분값 CYW---------------------------
- fGetUserEnvOcsOrdAnsw("/root/send/reqdata", "/root/init/imemode", "049");
- if( model.getValue("/root/init/imemode/answcnt") == "001" ){
- textarea1.attribute("imemode") = "alpha";
- }else if( model.getValue("/root/init/imemode/answcnt") == "002" ){
- textarea1.attribute("imemode") = "hangul";
- }else{
- textarea1.attribute("imemode") = "";
- }
- //---------------------------------------------------------------------------
-
- model.refresh();
- }
- }
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="401" pageheight="141" guideline="1,385;1,401;2,140;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <datagrid id="datagrid1" caption="의사 메모" colsep="^" colwidth="382" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:385px; height:105px; ">
- <col/>
- </datagrid>
- <textarea id="textarea1" ref="/root/main/cond/memocnts" style="left:0px; top:24px; width:385px; height:81px; "/>
- <button id="button1" class="btn5_letter2" style="left:342px; top:108px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/cond/status", "d");
- fReqExeSaveIssProfCertMemo();
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/main/cond/lastupdtrnm" style="left:93px; top:107px; width:100px; height:19px; "/>
- <caption id="caption7" class="tit_2" style="left:0px; top:108px; width:92px; height:13px; ">최종작성자 :</caption>
- <button id="button3" class="btn5_letter2" style="left:298px; top:108px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqExeSaveIssProfCertMemo();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|