123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352 |
- <?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="">
- <send>
- <patmemo>
- <pid/>
- <userid/>
- <memo/>
- <popupyn/>
- <delflag/>
- <ioflag/>
- <deptnm/>
- </patmemo>
- <insmemo>
- <pid/>
- <msgwrtedd/>
- <msgwrteno/>
- <msgwrtehistno/>
- <recvmsg/>
- <ioflag/>
- <recvcnfmyn/>
- </insmemo>
- </send>
- <main>
- <pmemo>
- <memo/>
- <popupyn/>
- <nmemo/>
- <ipaddr/>
- </pmemo>
- <memolog>
- <lastupdtdt/>
- <lastupdtrid/>
- <lastupdtrnm/>
- <memo/>
- <nmemo/>
- <ipaddr/>
- </memolog>
- <imemo>
- <imemolist>
- <memolistinfo>
- <chkflag/>
- <sndmsg/>
- <snddt/>
- <sndusrnm/>
- <pid/>
- <orddd/>
- <cretno/>
- <msgwrtedd/>
- <msgwrteno/>
- <msgwrtehistno/>
- <recvmsg/>
- <recvcnfmyn/>
- </memolistinfo>
- </imemolist>
- <recvmsg/>
- </imemo>
- <init>
- <delflag/>
- </init>
- </main>
- <hidden>
- <log>
- <detail/>
- </log>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fGetPatMemo();
- btn_tabmemo.selected = true;
- btn_tabnmemo.selected = true;
- ]]>
- </script>
- <submission id="TXMMR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patmemo" resultref="/root/main/pmemo"/>
- <submission id="TRMMR05601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patmemo" resultref="/root/main/imemo/imemolist"/>
- <submission id="TRMMR05602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patmemo" resultref="/root/main/memolog"/>
- <submission id="TXMMR05601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/insmemo"/>
- <script type="javascript" ev:event="xforms-close">
- <![CDATA[
- opener.javascript.clearParameter("SPMMR05600_ioflag");
- opener.javascript.clearParameter("SPMMR05600_pid");
- opener.javascript.clearParameter("SPMMR05600_deptcd");
- opener.javascript.clearParameter("SPMMR05600_hngnm");
- opener.javascript.clearParameter("SPMMR05600_deptnm");
- opener.javascript.clearParameter("SPMMR05600_screenid");
- opener.javascript.clearParameter("SPMMR05600_pammemoyn");
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/medirecweb/js/SPMMR05600.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- </xhtml:head>
- <xhtml:body overflow="hidden" pagewidth="695" pageheight="720" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grup_smm" visibility="visible" style="left:0px; top:0px; width:679px; height:205px; border-color:#adceff; border-width:3px; border-style:solid; gradient:linear(0,0,100%,100%,white,#d7e7ff,1); ">
- <datagrid id="grd_history" nodeset="/root/main/memolog" visibility="hidden" caption="일자^수정자^환자메모^간호메모^ip주소^상태" colsep="^" colwidth="75,75,220,220,90,80" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:12px; top:24px; width:645px; height:148px; ">
- <col ref="lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="lastupdtrnm" style="text-align:center; "/>
- <col ref="memo"/>
- <col ref="nmemo"/>
- <col ref="ipaddr"/>
- <col ref="event" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_history.row < 1 || (grd_history.col != grd_history.colRef("memo") && grd_history.col != grd_history.colRef("nmemo")))
- return;
- var colName = grd_history.colAttribute(grd_history.col, "ref");
- var s = model.getValue(grd_history.attribute("nodeset")+ "["+ grd_history.row +"]/"+colName);
- if (s == "")
- return;
-
- grp_memoview.visible = grp_memoview.visible != true;
- tar_detail.value = s;
-
- model.setValue("/root/main/pmemo/ipaddr", model.getValue(grd_history.attribute("nodeset")+ "["+ grd_history.mouseRow+"]/ipaddr"));
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- if (grd_history.mouseRow < 1 || grd_history.mouseCol != grd_history.colRef("memo"))
- return;
- grd_history.hint = model.getValue(grd_history.attribute("nodeset")+ "["+ grd_history.mouseRow+"]/ipaddr");
- ]]>
- </script>
- </datagrid>
- <textarea id="tar_smm" ref="/root/main/pmemo/memo" style="left:12px; top:23px; width:325px; height:149px; "/>
- <group id="grp_nurse" style="left:347px; top:1px; width:312px; height:171px; ">
- <textarea id="textarea2" ref="/root/main/pmemo/nmemo" editable="false" style="left:0px; top:22px; width:310px; height:148px; "/>
- <button id="btn_tabndeptmemo" class="btn_sw" group="tab2" style="left:66px; top:0px; width:94px; height:22px; ">
- <caption>타과간호메모</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- textarea2.attribute("ref") = "/root/main/pmemo/ndeptmemo";
- textarea2.attribute("editable") = "false";
- model.refresh();
- ]]>
- </script>
- </button>
- <bool id="bool2" checkvalue="Y,N" ref="/root/main/init/delflag" style="left:251px; top:-1px; width:13px; height:18px; ">
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/send/patmemo/delflag","Y");
- submit("TXMMR00101");
- model.setValue("/root/send/patmemo/delflag","N");
- model.makeNode("/root/main/pmemo/memo");
- model.makeValue("/root/main/pmemo/popupyn", "Y");
-
- if(model.getValue("/root/main/pmemo/memo") != "") {
- if(typeof(opener.btn_memo) != "unknown") {
- opener.btn_memo.value = "메모■";
- }
- } else {
- if(typeof(opener.btn_memo) != "unknown") {
- opener.btn_memo.value = "메모□";
- }
- model.makeValue("/root/send/pmemo/memo", "");
- }
- model.refresh();
- window.close();
-
- ]]>
- </script>
- </bool>
- <caption id="caption3" style="left:270px; top:-1px; width:41px; height:20px; ">확인</caption>
- <button id="btn_tabnmemo" class="btn_sw" group="tab2" selected="true" style="left:1px; top:0px; width:65px; height:22px; ">
- <caption>간호메모</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- textarea2.attribute("ref") = "/root/main/pmemo/nmemo";
- var screenid = opener.javascript.getParameter("SPMMR05600_screenid");
- if(screenid == "SMMMO02500") { // 환자 진료정보 조회에서 팝업시 간호메모 수정 가능 하도록 2014.04.11 엄영만
- textarea2.attribute("editable") = "true";
- } else {
- textarea2.attribute("editable") = "false";
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_tabhistory" class="btn_sw" group="tab1" style="left:148px; top:1px; width:65px; height:22px; ">
- <caption>메모이력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- tar_smm.visible = false;
- grd_history.visible = true;
- grp_nurse.visible = false;
- btn_cnfm.visible = false;
- fGetHistory();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_tabmemo" class="btn_sw" group="tab1" selected="true" style="left:16px; top:1px; width:65px; height:22px; ">
- <caption>환자메모</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- tar_smm.visible = true;
- grd_history.visible = false;
- grp_nurse.visible = true;
- grp_memoview.visible = false;
- tar_smm.attribute("ref") = "/root/main/pmemo/memo";
- btn_cnfm.visible = true;
- tar_smm.attribute("editable") = "true";
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_tabdmemo" class="btn_sw" group="tab1" style="left:82px; top:1px; width:65px; height:22px; ">
- <caption>타과메모</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- tar_smm.visible = true;
- grd_history.visible = false;
- grp_nurse.visible = true;
- grp_memoview.visible = false;
- tar_smm.attribute("ref") = "/root/main/pmemo/deptmemo";
- btn_cnfm.visible = false;
- tar_smm.attribute("editable") = "false";
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_cnfm" class="btn2_letter2" style="left:292px; top:1px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveMemo();
- ]]>
- </script>
- </button>
- <button id="btn_cncl" class="btn2_letter2" style="left:614px; top:173px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/pmemo/popupyn" style="left:13px; top:175px; width:25px; height:15px; "/>
- <caption id="caption1" style="left:37px; top:174px; width:50px; height:20px; ">
- <![CDATA[자동팝업]]>
- <hint>
- <![CDATA[타과메모 존재시에도 자동팝업을 원하시면 사용자 환경설정에서 설정하시기 바랍니다!]]>
- </hint>
- </caption>
- <!--
- <caption id="caption2" class="tit_2" style="left:348px; top:2; width:81px; height:13px; ">간호메모</caption>
- -->
- <!--
- <caption id="caption5" class="tit_2" style="left:16px; top:2px; width:81px; height:13px; ">환자메모</caption>
- -->
- <caption id="caption9" ref="/root/main/pmemo/ipaddr" style="left:147px; top:175px; width:130px; height:18px; "/>
- <group id="grp_memoview" visibility="hidden" style="left:312px; top:2px; width:270px; height:190px; ">
- <textarea id="tar_detail" ref="/root/hidden/log/detail" style="left:0px; top:0px; width:270px; height:165px; border-style:none; opacity:70; "/>
- <button id="button1" style="left:222px; top:168px; width:42px; height:18px; background-image:../../../com/commonweb/images/icon_close.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_memoview.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </group>
- <group id="group1" visibility="visible" style="left:0px; top:250px; width:679px; height:443px; border-color:#adceff; border-width:3px; border-style:solid; gradient:linear(0,0,100%,100%,white,#d7e7ff,1); ">
- <caption id="caption8" class="tit_2" style="left:16px; top:15px; width:81px; height:13px; ">보험메모</caption>
- <caption id="caption4" style="left:17px; top:32px; width:195px; height:20px; ">확인 체크시 메시지가 사라집니다.</caption>
- <caption id="caption6" style="left:17px; top:247px; width:510px; height:40px; line-spacing:5; ">
- <![CDATA[보험메모에 대하여 답장을 하실 경우 확인 체크박스를 선택하지 마시고,
- 내용부분을 더블클릭 하신 후 아래 답신영역에 내용을 작성하시고 [전송]버튼을 눌러주세요.]]>
- </caption>
- <caption id="caption7" class="tit_2" style="left:17px; top:297px; width:81px; height:13px; ">답신</caption>
- <line id="line1" class="line_1" style="x1:12px; y1:52px; x2:657px; y2:52px; "/>
- <button id="btn_trnm" class="btn2_letter2" style="left:602px; top:412px; width:42px; height:19px; ">
- <caption>전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( txt_recvmsg.value == "") {
- messageBox("답신영역에 내용을 ", "C001");
- model.setFocus("txt_recvmsg");
- return;
- } else {
- fComInsMemo();
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_imemolist" nodeset="/root/main/imemo/imemolist/memolistinfo" allowselection="true" autoresize="true" caption="확인^메모 내용^송신일시^심사자
(연락처)|확인^메모 내용^송신일시^심사자
(연락처)" colsep="^" colwidth="30, 429, 71, 91" defaultrows="0" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:12px; top:57px; width:645px; height:175px; ">
- <col checkvalue="Y,N" ref="chkflag" type="checkbox"/>
- <col ref="sndmsg" style="text-align:left; "/>
- <col ref="snddt" format="yyyy/mm/dd" style="text-align:center; "/>
- <col ref="sndusrnm" style="text-align:left; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_imemolist.isCell(event.target) && grd_imemolist.row >= grd_imemolist.fixedRows ){
- //답신 활성화
- fCheckGrid();
- txt_recvmsg.disabled = false;
- model.setFocus("txt_recvmsg");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( grd_imemolist.isCell(event.target) && grd_imemolist.row >= grd_imemolist.fixedRows ){
- // fCheckGrid();
- // model.setValue("/root/main/imemo/recvmsg", "");
- model.resetInstanceNode("/root/send/insmemo");
- //답신 비활성화
- txt_recvmsg.disabled = true;
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var currow = grd_imemolist.row-1;
- var chkmsg = model.getValue(grd_imemolist.nodeset + "[" + currow + "]/chkflag");
- var recvcnfmyn = model.getValue(grd_imemolist.nodeset + "[" + currow + "]/recvcnfmyn");
- if( chkmsg == "Y" ) {
- fCheckGrid();
- fComInsMemo();
- model.removenode ( grd_imemolist.nodeset + "[" + currow + "]" );
- txt_recvmsg.value = "";
- }
-
- var nodeList = instance1.selectNodes("/root/main/imemo/imemolist/memolistinfo");
- if (nodeList.length < 1) {
- window.close();
- }
- model.refresh();
-
- ]]>
- </script>
- </datagrid>
- <textarea id="txt_recvmsg" ref="/root/main/imemo/recvmsg" disabled="true" editable="true" style="left:12px; top:317px; width:645px; height:85px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|