123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <?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="">
- <init>
- </init>
- <send>
- </send>
- <main>
- <partsel/>
- <partrmk/>
- <time/>
- <resn/>
- <resnrmk/>
- </main>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var sCond1 = opener.javascript.getParameter("SPMMB02700_cond1");
- if(sCond1 == "00") {
- model.toggle("00");
- } else {
- model.toggle("00");
- }
- ]]>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="420" pageheight="190" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:2px; width:179px; height:13px; ">전달사항</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:400px; y2:20px; "/>
- <switch id="swh_prcpdetail" style="left:0px; top:25px; width:400px; height:125px; ">
- <case id="00" overflow="hidden" selected="true">
- <caption id="cap_00_part" class="tit_2" style="left:5px; top:2px; width:179px; height:13px; ">적용부위 (다중선택)</caption>
- <select id="chb_00_part" ref="/root/main/partsel" overflow="visible" appearance="full" cellspacing="5" cols="6" sep="," style="left:20px; top:19px; width:320px; height:35px; border-style:none; ">
- <choices>
- <item>
- <label>4 Extremities</label>
- <value>1</value>
- </item>
- <item>
- <label>Chest</label>
- <value>2</value>
- </item>
- <item>
- <label>RA</label>
- <value>3</value>
- </item>
- <item>
- <label>RL</label>
- <value>4</value>
- </item>
- <item>
- <label>LA</label>
- <value>5</value>
- </item>
- <item>
- <label>LL</label>
- <value>6</value>
- </item>
- <item>
- <label>기타</label>
- <value>9</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sPartSel = model.getValue("/root/main/partsel");
- if(sPartSel.indexOf("9") >= 0) {
- ipt_00_part.disabled = false;
- } else {
- ipt_00_part.disabled = true;
- model.setValue("/root/main/partrmk", "");
- ipt_00_part.refresh();
- }
- ]]>
- </script>
- </select>
- <input id="ipt_00_part" ref="/root/main/partrmk" disabled="true" style="left:65px; top:35px; width:275px; height:19px; "/>
- <caption id="cap_00_time1" class="tit_2" style="left:5px; top:60px; width:179px; height:13px; ">적용시간</caption>
- <caption id="cap_00_time2" style="left:80px; top:61px; width:140px; height:15px; ">지금부터 시간</caption>
- <input id="ipt_00_time" ref="/root/main/time" style="left:135px; top:58px; width:35px; height:19px; text-align:center; "/>
- <caption id="cap_00_resn1" class="tit_2" style="left:5px; top:82px; width:179px; height:13px; ">적용사유</caption>
- <select1 id="sel_00_resn" ref="/root/main/resn" appearance="minimal" style="left:80px; top:80px; width:315px; height:19px; ">
- <choices>
- <item>
- <label>의식장애 등으로 안전한 의료를 수행할 수 없는 경우</label>
- <value>의식장애 등으로 안전한 의료를 수행할 수 없는 경우</value>
- </item>
- <item>
- <label>치료의 과정에서 활동의 제한이 필요한 경우</label>
- <value>치료의 과정에서 활동의 제한이 필요한 경우</value>
- </item>
- <item>
- <label>환자 자신이나 다른 사람을 해칠 명백하거나 임박한 위험이 예상되는 경우</label>
- <value>환자 자신이나 다른 사람을 해칠 명백하거나 임박한 위험이 예상되는 경우</value>
- </item>
- <item>
- <label>기타</label>
- <value>기타</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sResn = model.getValue("/root/main/resn");
- if(sResn == "기타") {
- ipt_00_resn.disabled = false;
- } else {
- ipt_00_resn.disabled = true;
- model.setValue("/root/main/resnrmk", "");
- ipt_00_resn.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="cap_00_resn2" style="left:22px; top:104px; width:55px; height:15px; ">기타내용</caption>
- <input id="ipt_00_resn" ref="/root/main/resnrmk" disabled="true" style="left:80px; top:101px; width:315px; height:19px; "/>
- </case>
- </switch>
- <button id="button1" class="btn4_letter2" style="left:285px; top:155px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var sPartSel = model.getValue("/root/main/partsel");
- var sPartRmk = model.getValue("/root/main/partrmk");
- var sTime = model.getValue("/root/main/time");
- var sResn = model.getValue("/root/main/resn");
- var sResnRmk = model.getValue("/root/main/resnrmk");
-
- if(sPartSel == "") {
- messageBox ( "적용부위를 선택하세요.", "E" );
- return;
- }
-
- if(sPartSel.indexOf("9") >= 0) {
- if(sPartRmk == "") {
- messageBox ( "적용부위를 기타로 선택 하면 내용을 입력하셔야 합니다.", "E" );
- return;
- }
- }
-
- if(sTime == "") {
- messageBox ( "적용시간을 입력 하세요.", "E" );
- return;
- }
-
- if(sResn == "") {
- messageBox ( "적용사유을 입력 하세요.", "E" );
- return;
- }
-
- if(sResn == "기타" && sResnRmk == "") {
- messageBox ( "적용사유를 기타로 선택 하면 내용을 입력하셔야 합니다.", "E" );
- return;
- }
-
- var sPartLable = chb_00_part.label;
- if(sPartSel.indexOf("9") >= 0) {
- sPartLable = sPartLable + " (" + sPartRmk + ")";
- }
-
- var sResnLable = sResn;
- if(sResn == "기타") {
- sResnLable = sResnLable + "(" +sResnRmk+ ")";
- }
-
- var sPrcpDeliveFact = "적용부위 : " + sPartLable + " 적용시간 : 지금부터 " + sTime + "시간 적용사유 : " + sResnLable;
- opener.javascript.setParameter("SPMMB02700_rtn", "Y");
- opener.javascript.setParameter("SPMMB02700_prcpdelivefact", sPrcpDeliveFact);
- model.close();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" style="left:345px; top:155px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|