123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- <?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>
- <pid/>
- <hngnm/>
- <orddd/>
- <cretno/>
- <instcd/>
- <decisionkind/>
- <reasonflag/>
- <cnt/>
- <etcreason/>
- </main>
- <hidden/>
- <temp/>
- <init>
- <pid/>
- <hngnm/>
- <orddd/>
- <cretno/>
- <instcd/>
- <decision/>
- <reasonflag/>
- <adrvyn/>
- </init>
- <send>
- <reqdata/>
- </send>
- </root>
- </instance>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO26001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main"/>
- <submission id="TXMMO26001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cnt"/>
- <submission id="TXMMO26002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cnt"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- zbcfGetCodeList(new Array("M0720", "M0730"), new Array("/root/init/decision", "/root/init/reasonflag")); // 의사종류 코드로 구해오기
-
- if(getUserInfo("dutplceinstcd") == "031") { // 2017.10.11 엄영만 양동헌 교수님 요청 본원 의사종류 에서 B:병실입원(EICU), C:병실입원(응급입원실) 항목 삭제
-
- //model.makeValue("/root/temp/infomsg", "EICU 입원 시 병실입원 선택후 입원의뢰서를 예약으로 작성 하시기 바랍니다.");
-
- if(getCurrentDate() < "20171014") {
- messageBox ( "eicu 또는 응급병동에 입원 해야 하는 경우,\n입원의뢰서에서 icu 또는 응급병동을 선택하여 주시기 바랍니다.", "I" );
- }
-
- var pParentNode = null;
- var node01 = instance1.selectSingleNode("/root/init/decision/M0720[cdid='B']");
- if(node01 != null){
- pParentNode = node01.parentNode;
- pParentNode.removeChild(node01);
- }
-
- var node02 = instance1.selectSingleNode("/root/init/decision/M0720[cdid='C']");
- if(node02 != null){
- pParentNode = node02.parentNode;
- pParentNode.removeChild(node02);
- }
- }
-
- var param = opener.javascript.getParameter("SSPMMO26000_Param");
- if(param!=""){
- param = param.split("▦");
- model.setValue("/root/init/pid", param[0]);
- model.setValue("/root/init/hngnm", param[1]);
- model.setValue("/root/init/orddd", param[2]);
- model.setValue("/root/init/cretno", param[3]);
- model.setValue("/root/init/instcd", param[4]);
- model.copyNode("/root/send/reqdata", "/root/init");
- submit("TRMMO26001");
- if(model.getValue("/root/main/orddd")==""){
- model.makeValue("/root/main/pid", param[0]);
- model.makeValue("/root/main/hngnm", param[1]);
- model.makeValue("/root/main/orddd", param[2]);
- model.makeValue("/root/main/cretno", param[3]);
- model.makeValue("/root/main/instcd", param[4]);
- model.makeNode("/root/main/decisionkind");
- model.makeNode("/root/main/etcreason");
- model.makeNode("/root/main/reasonflag");
- model.makeValue("/root/temp/text", "의사결정 미완료");
- button1.disabled="true";
- }else{
- model.makeValue("/root/temp/text", "의사결정 완료");
- model.makeValue("/root/temp/decisionkind", model.getValue("/root/main/decisionkind"));
- button1.disabled="false";
- }
-
- if(model.getValue("/root/main/decisionkind")!="E"){
- combo2.disabled="true";
- txt_reason.disabled="true";
- }
- }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="240" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <input id="ipt_pid" ref="/root/main/pid" disabled="true" disable.background-color="#ffffff" style="left:90px; top:22px; width:130px; height:19px; "/>
- <input id="ipt_hngnm" ref="/root/main/hngnm" disabled="true" disable.background-color="#ffffff" style="left:90px; top:47px; width:130px; height:19px; "/>
- <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>
- <button id="btn_save" class="btn4_letter2" style="left:120px; top:210px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/decisionkind")=="E"){
- if(model.getValue("/root/main/reasonflag")==""){
- alert("기타 선택시 사유선택은 필수입니다.");
- return;
- }
- }
-
- if(model.getValue("/root/main/decisionkind")==""){
- alert("의사종류 선택은 필수입니다.");
- return;
- }else{
- model.copyNode("/root/send/reqdata", "/root/main");
- if(model.getValue("/root/main/decisionkind")=="A" && model.getValue("/root/main/adrvyn")=="N"){ // 등록된 입원 의뢰서가 없는경우 2016.11.08 엄영만
- setParameter("opener_id", "SPMMO26000"); // 오픈아이디
- setParameter("SPMMO00100_indd", model.getValue("/root/main/orddd")); //입원일
- setParameter("SPMMO00100_incretno", model.getValue("/root/main/cretno")); //원무키
- setParameter("SPMMO00100_pid", model.getValue("/root/main/pid")); //환자번호
- setParameter("SPMMO00100_erreglyn", "E"); //응급 플래그
- setParameter("SPMMO00100_decisionkind", model.getValue("/root/main/decisionkind")); //의사종류
- modal("SPMMO00100");
- model.close();
- }else{
- var tmp_decisionkind=model.getValue("/root/temp/decisionkind");
- if(tmp_decisionkind=="A"){
- var answer=messageBox("기 결정된 입원의뢰서도 변경하시겠습니까?", "S001", "")
- if(answer=="6"){ // 예
- model.makeValue("/root/send/reqdata/answer", answer);
- if(submit("TXMMO26001")){
- opener.javascript.setParameter("adflag", model.getValue("/root/main/decisionkind"));
- alert("변경되었습니다.");
- model.close();
- }
- }else if(answer=="7"){ // 아니오
- model.makeValue("/root/send/reqdata/answer", answer);
- if(submit("TXMMO26001")){
- opener.javascript.setParameter("adflag", model.getValue("/root/main/decisionkind"));
- alert("변경되었습니다.");
- model.close();
- }
- }else{ //취소
- return;
- }
- }else{
- if(submit("TXMMO26001")){
- opener.javascript.setParameter("adflag", model.getValue("/root/main/decisionkind"));
- alert("저장되었습니다.");
- model.close();
- }
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_exit" class="btn4_letter2" style="left:240px; top:210px; width:56px; height:22px; ">
- <caption>종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <caption id="caption13" class="cell_1" style="left:1px; top:45px; width:85px; height:23px; text-align:center; vertical-align:middle; ">환자명</caption>
- <caption id="caption16" class="cell_1" style="left:0px; top:70px; width:85px; height:23px; text-align:center; vertical-align:middle; ">입원일</caption>
- <input id="ipt_indd" ref="/root/main/orddd" disabled="true" inputtype="date" format="yyyy-mm-dd" disable.background-color="#ffffff" style="left:89px; top:71px; width:130px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:95px; width:85px; height:23px; text-align:center; vertical-align:middle; ">의사종류</caption>
- <caption id="caption1" class="cell_1" style="left:0px; top:145px; width:85px; height:23px; text-align:center; vertical-align:middle; ">기타사유</caption>
- <textarea id="txt_reason" ref="/root/main/etcreason" maxlength="600" style="left:90px; top:145px; width:205px; height:60px; "/>
- <button id="button1" class="btn4_letter2" style="left:180px; top:210px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var answer=messageBox("기 결정된 입원의뢰서도 삭제하시겠습니까?", "S001", "")
- if(answer=="6"){ // 예
- model.makeValue("/root/send/reqdata/answer", answer);
- if(submit("TXMMO26002")){
- opener.javascript.setParameter("adflag", "-");
- alert("삭제되었습니다.");
- model.close();
- }
- }else if(answer=="7"){ // 아니오
- if(submit("TXMMO26002")){
- opener.javascript.setParameter("adflag", "-");
- alert("삭제되었습니다.");
- model.close();
- }
- }else{ //취소
- return;
- }
- ]]>
- </script>
- </button>
- <caption id="cap_text" ref="/root/temp/text" style="left:225px; top:22px; width:65px; height:33px; font-weight:bold; color:#ff0000; text-align:left; "/>
- <select1 id="combo1" ref="/root/main/decisionkind" appearance="minimal" style="left:89px; top:95px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/decision/M0720">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/decisionkind")=="E"){
- combo2.disabled="false";
- txt_reason.disabled="false";
- }else{
- combo2.disabled="true";
- txt_reason.disabled="true";
- model.setValue("/root/main/reasonflag", "");
- model.setValue("/root/main/etcreason", "");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="cell_1" style="left:0px; top:120px; width:85px; height:23px; text-align:center; vertical-align:middle; ">사유선택</caption>
- <select1 id="combo2" ref="/root/main/reasonflag" appearance="minimal" style="left:90px; top:120px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reasonflag/M0730">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|