123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362 |
- <?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/>
- <main>
- <cond>
- <pid/>
- <calldeptcd/>
- <callremfact/>
- <callremfactdesc/>
- <hngnm/>
- <sex/>
- <age/>
- <roomcd/>
- <acptflag/>
- <calltm/>
- <calldd/>
- <callno/>
- <capinfo/>
- <cnclflag/>
- <calltelno/>
- <calluserid/>
- <orddeptcd/>
- </cond>
- <paminfo/>
- <outflag/>
- </main>
- <send>
- <savedata/>
- </send>
- <temp>
- <patinfo/>
- </temp>
- <temp2>
- <patinfo/>
- </temp2>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // Duty별 특수주사팀 근무자 조회, 진료과 코드 조회
- model.makeValue("/root/send/instcd" , getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/srchdd" , getCurrentDate()); // 조회기준일자
- submit("TRMNW14501");
-
- // 간호공통코드 조회
- model.makeValue("/root/send/cdgrupid", "'I05', 'I06', 'I07','I13'");
- model.makeValue("/root/send/srchdd" , getCurrentDate()); // 조회기준일자
- submit("TRMNW00001", false);
-
- // 부서콤보 조회
- submit("TRMNW11001", false);
-
- // 외래환자 조회 버튼 활성화, '16.10.14_AYS
- var userid = getUserInfo("userid") ;
- if(userid == model.getValue("/root/init/codeinfo/codelist[cdgrupid='I07' and supcdid ='"+userid+"']/supcdid") || userid == 'ENR'){
- chk_outflag.visible = true;
- } else {
- chk_outflag.visible = false;
- }
- 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="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/codeinfo"/>
- <submission id="TRMNW14501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmblist"/>
- <submission id="TRMNW14500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/patinfo"/>
- <submission id="TXMNW14500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp/patinfo"/>
- <submission id="TRMNW11001" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptinfo"/>
- <submission id="TRMNW10902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/roominfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fSearchPatInfo() {
- model.makeValue("/root/send/reqdata/pid", model.getValue(ipt_pid.attribute("ref")));
- model.makeValue("/root/send/reqdata/outflag", model.getValue(chk_outflag.attribute("ref"))); //16.10.14_외래환자 조회 추가
- submit("TRMNW14500");
-
- model.copyNode("/root/main/cond", "/root/temp/patinfo/patlist");
-
- model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/main/cond/calldeptcd"));
- submit("TRMNW10902", false);
-
- if(model.getValue("/root/temp/patinfo/patlist/acptflag") == "0") {
- model.setValue("/root/main/cond/capinfo", "호출 하지 않은 환자입니다.");
- btn_save.disabled = false;
- combo1.visible = false;
- combo1.disabled = true;
- cmb_calltelno.visible = true;
- cmb_calldeptcd.disabled = false;
- cmb_orddeptcd.disabled = false;
- cmb_callremfact.disabled = false;
- tar_callremfactdesc.disabled = false;
- cmb_roomcd.disabled = false;
- } else if(model.getValue("/root/temp/patinfo/patlist/acptflag") == "1") {
- model.setValue("/root/main/cond/capinfo", "이미 호출한 환자입니다.");
- btn_save.disabled = true;
- combo1.visible = true;
- combo1.disabled = true;
- cmb_calltelno.visible = false;
- cmb_calldeptcd.disabled = true;
- cmb_orddeptcd.disabled = true;
- cmb_callremfact.disabled = true;
- tar_callremfactdesc.disabled = true;
- cmb_roomcd.disabled = true;
- }else{
- model.setValue("/root/main/cond/capinfo", "");
- btn_save.disabled = false;
- combo1.visible = false;
- combo1.disabled = true;
- cmb_calltelno.visible = true;
- cmb_calldeptcd.disabled = false;
- cmb_orddeptcd.disabled = false;
- cmb_callremfact.disabled = false;
- tar_callremfactdesc.disabled = false;
- cmb_roomcd.disabled = false;
- }
-
- if(model.getValue("/root/main/cond/orddeptcd") == "" || model.getValue("/root/main/cond/orddeptcd") == "-"){
- if(model.getValue("/root/main/cond/pid") == model.getValue("/root/main/paminfo/list/pid")){
- model.setValue("/root/main/cond/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd")) ;
- }
- }
-
-
- if(model.getValue("/root/main/cond/pid") != "" && model.getValue("/root/main/cond/calldeptcd") == ""){
- model.setValue("/root/main/cond/calldeptcd", getUserInfo("dutplcecd")) ;
- }
-
- 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="235" 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:235px; ">
- <caption id="caption6" class="tit_2" style="left:0px; top:5px; width:178px; height:15px; ">특수주사팀 호출</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:360px; y2:20px; "/>
- <select1 id="cmb_callremfact" ref="/root/main/cond/callremfact" appearance="minimal" style="left:77px; top:123px; width:178px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I06']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </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_calldeptcd" ref="/root/main/cond/calldeptcd" appearance="minimal" style="left:77px; top:50px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptinfo/deptlist">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/cond/roomcd","");
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/main/cond/calldeptcd"));
- submit("TRMNW10902", false);
-
- model.refresh();
- ]]>
- </script>
- </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="line6" class="line_2" style="x1:0px; y1:95px; x2:360px; y2:95px; "/>
- <caption id="caption1" class="cell_1" style="left:0px; top:122px; width:75px; height:66px; text-align:center; ">호출목적</caption>
- <caption id="caption8" class="cell_1" style="left:180px; top:49px; width:75px; height:23px; text-align:center; ">병실(입원)</caption>
- <input id="ipt_acptflag" ref="/root/main/cond/acptflag" visibility="hidden" style="left:0px; top:210px; width:100px; height:19px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:305px; top:192px; width:56px; height:22px; ">
- <caption>호출</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue(ipt_pid.attribute("ref"));
- var hngnm = model.getValue(ipt_hngnm.attribute("ref"));
- var calltelno = model.getValue(cmb_calltelno.attribute("ref"));
- var callremfact = model.getValue(cmb_callremfact.attribute("ref"));
- var calldeptcd = model.getValue(cmb_calldeptcd.attribute("ref"));
- var calldeptnm = cmb_calldeptcd.label;
- var orddeptcd = model.getValue(cmb_orddeptcd.attribute("ref"));
- var orddeptnm = cmb_orddeptcd.label;
-
-
- if(pid == "") {
- messageBox("환자를 선택하십시오.", "E");
- return;
- }
-
- if(hngnm == "") {
- messageBox("환자를 선택하십시오.", "E");
- return;
- }
- if(calldeptcd == "" || calldeptnm == "") {
- messageBox("호출부서를 선택하십시오.", "E");
- return;
- }
-
- if(calltelno == "") {
- messageBox("호출번호를 선택하십시오.", "E");
- return;
- }
-
- if(orddeptcd == "" || orddeptnm == "") {
- messageBox("진료과를 선택하십시오.", "E");
- return;
- }
-
- if(callremfact== "") {
- messageBox("호출목적을 선택하십시오.", "E");
- return;
- }
-
- var rtn = messageBox("호출 하시겠습니까?", "Q");
-
- if(rtn=="6") {
- if(model.getValue("/root/main/cond/roomcd") == '-'){
- model.setValue("/root/main/cond/roomcd",'');
- }
- model.copyNode("/root/temp2/patinfo", "/root/main/cond");
-
- model.copyNode("/root/send/savedata", "/root/temp2/patinfo");
- model.makeValue("/root/send/savedata/calldeptnm", cmb_calldeptcd.label);
- model.makeValue("/root/send/savedata/callremfactnm", cmb_callremfact.label);
- model.makeValue("/root/send/savedata/orddeptnm", cmb_orddeptcd.label);
- if(submit("TXMNW14500")) {
- messageBox("저장되었습니다. ", "I");
- fSearchPatInfo();
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_calldd" ref="/root/main/cond/calldd" visibility="hidden" style="left:180px; top:74px; width:85px; height:19px; "/>
- <input id="ipt_calltm" ref="/root/main/cond/calltm" visibility="hidden" style="left:267px; top:74px; width:45px; height:19px; "/>
- <input id="ipt_callno" ref="/root/main/cond/callno" visibility="hidden" style="left:315px; top:74px; width:45px; height:19px; "/>
- <caption id="caption10" ref="/root/main/cond/capinfo" style="left:0px; top:188px; width:305px; height:20px; font-weight:bold; color:#0000ff; text-align:left; "/>
- <select1 id="cmb_acptflag" ref="/root/main/cond/acptflag" disabled="true" appearance="minimal" style="left:257px; top:74px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I05']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="cell_1" style="left:180px; top:73px; width:75px; height:23px; text-align:center; ">접수구분</caption>
- <line id="line7" class="line_3" style="x1:0px; y1:187px; x2:360px; y2:187px; "/>
- <textarea id="tar_callremfactdesc" ref="/root/main/cond/callremfactdesc" style="left:77px; top:144px; width:285px; height:41px; "/>
- <caption id="caption7" style="left:335px; top:219px; width:27px; height:14px; ">[표]</caption>
- <select1 id="cmb_calltelno" ref="/root/main/cond/calltelno" appearance="minimal" style="left:77px; top:74px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I13']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="cell_1" style="left:0px; top:73px; width:75px; height:23px; text-align:center; ">호출번호</caption>
- <input id="ipt_sex" ref="/root/main/cond/sex" visibility="hidden" style="left:195px; top:0px; width:20px; height:19px; "/>
- <input id="ipt_age" ref="/root/main/cond/age" visibility="hidden" style="left:220px; top:0px; width:20px; height:19px; "/>
- <select1 id="combo1" ref="/root/main/cond/calltelno" visibility="hidden" appearance="minimal" style="left:77px; top:74px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I13']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_calluserid" ref="/root/main/cond/calluserid" visibility="hidden" style="left:55px; top:74px; width:20px; height:19px; "/>
- <select1 id="cmb_orddeptcd" ref="/root/main/cond/orddeptcd" appearance="minimal" style="left:77px; top:98px; width:178px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmblist/orddeptlist">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption11" class="cell_1" style="left:0px; top:97px; width:75px; height:23px; text-align:center; ">진료과</caption>
- <line id="line4" class="line_2" style="x1:0px; y1:120px; x2:360px; y2:120px; "/>
- <select1 id="cmb_roomcd" ref="/root/main/cond/roomcd" appearance="minimal" style="left:257px; top:50px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/roominfo/room">
- <label ref="roomnm"/>
- <value ref="roomcd"/>
- </itemset>
- </choices>
- </select1>
- <select id="chk_outflag" ref="/root/main/outflag" visibility="hidden" overflow="visible" appearance="full" style="left:265px; top:100px; width:75px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>외래환자</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- </xhtml:body>
- </xhtml:html>
|