123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342 |
- <?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>
- <cmblist>
- <trnsmthdlist/>
- <callremfactlist/>
- <callnomngtlist/>
- </cmblist>
- </init>
- <main>
- <cond>
- <pid/>
- <fromdeptcd/>
- <todeptcd/>
- <trnsmthd/>
- <callremfact/>
- <callremfactdesc/>
- <hngnm/>
- <inoutflag/>
- <infcflag/>
- <roomcd/>
- <acptflag/>
- <indd/>
- <cretno/>
- <calltm/>
- <calldd/>
- <callno/>
- <capinfo/>
- <cnclflag/>
- </cond>
- <paminfo/>
- </main>
- <send>
- <savedata/>
- </send>
- <temp>
- <patinfo/>
- </temp>
- <temp2>
- <patinfo/>
- </temp2>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
-
-
- //허용병동코드, 이송방법, Remark정보
- model.makeValue("/root/send/reqdata/status", "1");
- submit("TRMNW14101");
-
- addComboItem("cmb_callremfact", "기타", "99", "after");
-
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'W';
- var rslt_ref = "/root/init/dept";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- var dt = getCurrentDate();
-
- /////zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method); //부서코드 콤보조회
- /////zsdfGetOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, dt );
- // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref , sort_field, sort_method, dt);
-
- var pid="";
- var indd="";
- var cretno="";
-
- model.makeNode("/root/main/paminfo");
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/main/paminfo", node);
-
- //팝업화면이 아닐경우 상단에 환자 정보가 있는지 여부를 확인하고
- if (model.getValue("/root/main/paminfo/list/pid") != "") { //상단정보에 환자가 셋팅되어 있을 경우
- pid = model.getValue("/root/main/paminfo/list/pid");
- } else {
- //팝업으로 뜬화면인가 여부확인.팝업일 경우 팝업화면 파라메터를 가지고온다.
- if(checkOpener()) {
- pid = opener.javascript.getParameter("SMMNW14100_PID");
- }
- }
-
-
-
- //환자 등록번호가 존재할 경우에는
- if(pid != "") {
- model.setValue(ipt_pid.attribute("ref"), pid);
- ipt_pid.refresh();
- fSearchPatInfo();
- }
-
-
- ]]>
- </script>
- <submission id="TRMNW14101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/cmblist"/>
- <submission id="TRMNW14102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/patinfo"/>
- <submission id="TXMNW14101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp/patinfo"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fSearchPatInfo() {
- model.makeValue("/root/send/reqdata/pid", model.getValue(ipt_pid.attribute("ref")));
- submit("TRMNW14102");
-
- model.copyNode("/root/main/cond", "/root/temp/patinfo/patlist");
-
- if(model.getValue("/root/temp/patinfo/patlist/acptflag") == "0") {
- model.setValue("/root/main/cond/capinfo", "이송요청 하지 않은 환자입니다.");
- btn_save.disabled = false;
- btn_cancel.disabled = true;
- } else if(model.getValue("/root/temp/patinfo/patlist/acptflag") == "1") {
- model.setValue("/root/main/cond/capinfo", "이송요청 상태이므로 수정은 가능하십니다.");
- btn_save.disabled = false;
- btn_cancel.disabled = false;
- } else {
- model.setValue("/root/main/cond/capinfo", "접수이후에는 이송정보를 수정할 수 없습니다.");
- btn_save.disabled = true;
- btn_cancel.disabled = true;
- }
-
- model.refresh();
-
-
- }
- ]]>
- </script>
- <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/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="385" pageheight="335" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:365px; height:305px; ">
- <caption id="caption6" class="tit_2" style="left:0px; top:5px; width:178px; height:13px; ">환지이송정보관리</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:360px; y2:20px; "/>
- <select1 id="cmb_trnsmthd" ref="/root/main/cond/trnsmthd" appearance="minimal" style="left:77px; top:98px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmblist/trnsmthdlist">
- <label ref="cnts"/>
- <value ref="movewayno"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_callremfact" ref="/root/main/cond/callremfact" appearance="minimal" style="left:77px; top:122px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmblist/callremfactlist">
- <label ref="cnts"/>
- <value ref="remarkno"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </select1>
- <input id="ipt_pid" ref="/root/main/cond/pid" style="left:77px; top:26px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13) {
- setInputNodeCurText();
- fSearchPatInfo();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- setInputNodeCurText();
- fSearchPatInfo();
- ]]>
- </script>
- </input>
- <input id="ipt_hngnm" ref="/root/main/cond/hngnm" disabled="true" style="left:257px; top:26px; width:100px; height:19px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:47px; x2:360px; y2:47px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:25px; width:75px; height:23px; text-align:center; ">등록번호</caption>
- <caption id="caption3" class="cell_1" style="left:180px; top:25px; width:75px; height:23px; text-align:center; ">환자명</caption>
- <select1 id="cmb_fromdeptcd" ref="/root/main/cond/fromdeptcd" disabled="true" appearance="minimal" style="left:77px; top:50px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_todeptcd" ref="/root/main/cond/todeptcd" appearance="minimal" style="left:77px; top:74px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmblist/callnomngtlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <line id="line3" class="line_2" style="x1:0px; y1:71px; x2:360px; y2:71px; "/>
- <caption id="caption4" class="cell_1" style="left:0px; top:49px; width:75px; height:23px; text-align:center; ">병동</caption>
- <line id="line4" class="line_2" style="x1:0px; y1:95px; x2:360px; y2:95px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:73px; width:75px; height:23px; text-align:center; ">요청내용</caption>
- <select1 id="rdo_inoutflag" ref="/root/main/cond/inoutflag" appearance="full" cols="2" overflow="visible" style="left:180px; top:77px; width:100px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>IN</label>
- <value>I</value>
- </item>
- <item>
- <label>OUT</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <line id="line6" class="line_2" style="x1:0px; y1:119px; x2:360px; y2:119px; "/>
- <caption id="cap_job" class="cell_1" style="left:0px; top:97px; width:75px; height:23px; text-align:center; ">이송방법</caption>
- <caption id="caption1" class="cell_1" style="left:0px; top:121px; width:75px; height:66px; text-align:center; ">Remark</caption>
- <caption id="caption8" class="cell_1" style="left:180px; top:49px; width:75px; height:23px; text-align:center; ">병실</caption>
- <input id="ipt_roomcd" ref="/root/main/cond/roomcd" disabled="true" style="left:257px; top:50px; width:100px; height:19px; "/>
- <input id="ipt_acptflag" ref="/root/main/cond/acptflag" visibility="hidden" style="left:180px; top:176px; width:100px; height:19px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:305px; top:191px; width:56px; height:22px; ">
- <caption>요청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var todeptcd = model.getValue(cmb_todeptcd.attribute("ref"));
- var inoutflag = model.getValue(rdo_inoutflag.attribute("ref"));
- var trnsmthd = model.getValue(cmb_trnsmthd.attribute("ref"));
-
-
- if(todeptcd == "" || inoutflag == "") {
- messageBox("요청내용을 선택하십시오.", "E");
- return;
- }
-
- if(trnsmthd == "") {
- messageBox("이송방법을 선택하십시오.", "E");
- return;
- }
-
- var rtn = messageBox("이송요청하시겠습니까?", "Q");
-
- if(rtn=="6") {
- model.copyNode("/root/temp2/patinfo", "/root/main/cond");
- fSearchPatInfo();
-
- if(model.getValue("/root/temp/patinfo/patlist/acptflag") > "1") {
- messageBox("이송실에서 확인한 상태라 내용을 수정하실수 없습니다.", "E");
- return;
- }
-
- model.copyNode("/root/send/savedata", "/root/temp2/patinfo");
- if(submit("TXMNW14101")) {
- messageBox("저장되었습니다. ", "I");
- fSearchPatInfo();
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_calldd" ref="/root/main/cond/calldd" visibility="hidden" style="left:180px; top:98px; width:85px; height:19px; "/>
- <input id="ipt_calltm" ref="/root/main/cond/calltm" visibility="hidden" style="left:267px; top:98px; width:45px; height:19px; "/>
- <input id="ipt_callno" ref="/root/main/cond/callno" visibility="hidden" style="left:315px; top:98px; width:45px; height:19px; "/>
- <caption id="caption10" ref="/root/main/cond/capinfo" style="left:5px; top:186px; width:305px; height:20px; font-weight:bold; color:#0000ff; text-align:left; "/>
- <caption id="caption11" style="left:5px; top:196px; width:295px; height:108px; font-weight:bold; ">
- <![CDATA[접수구분 설명
- 요청전 : 아직 병동에서 요청하지 않은 상태
- 대기 : 이송실에서 요청승인한 상태
- 접수완료 : 이송실에서 이송요원 배정한 상태
- 이송완료 : 환자이송을 완료한 상태
- 취소는 요청상태일때만 가능]]>
- </caption>
- <select1 id="cmb_acptflag" ref="/root/main/cond/acptflag" disabled="true" appearance="minimal" style="left:257px; top:98px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>요청전</label>
- <value>0</value>
- </item>
- <item>
- <label>요청</label>
- <value>1</value>
- </item>
- <item>
- <label>대기</label>
- <value>2</value>
- </item>
- <item>
- <label>접수완료</label>
- <value>3</value>
- </item>
- <item>
- <label>이송완료</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="cell_1" style="left:180px; top:97px; width:75px; height:23px; text-align:center; ">접수구분</caption>
- <line id="line7" class="line_3" style="x1:0px; y1:186px; x2:360px; y2:186px; "/>
- <button id="btn_cancel" class="btn4_letter2" style="left:305px; top:214px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rtn = messageBox("이송요청 취소하시겠습니까?", "Q");
-
-
- if(rtn=="6") {
-
- var callremfact = model.getValue("/root/main/cond/callremfact");
- var callremfactdesc = model.getValue("/root/main/cond/callremfactdesc");
-
- fSearchPatInfo();
-
- if(model.getValue("/root/temp/patinfo/patlist/acptflag") > 1) {
- messageBox("이송실에서 확인한 상태라 취소하실수 없습니다.", "E");
- return;
- }
-
- model.setValue("/root/main/cond/cnclflag","Y");
- model.setValue("/root/main/cond/callremfact", callremfact);
- model.setValue("/root/main/cond/callremfactdesc", callremfactdesc);
-
- model.copyNode("/root/send/savedata", "/root/main/cond");
- if(submit("TXMNW14101")) {
- messageBox("저장되었습니다. ", "I");
- fSearchPatInfo();
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_cnclflag" ref="/root/main/cond/cnclflag" visibility="hidden" style="left:280px; top:230px; width:70px; height:19px; "/>
- <textarea id="tar_callremfactdesc" ref="/root/main/cond/callremfactdesc" style="left:77px; top:143px; width:285px; height:41px; "/>
- <caption id="caption7" style="left:335px; top:287px; width:27px; height:14px; ">[표]</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|