123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335 |
- <?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>SMS 전송</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <paminfo>
- <wardcd/>
- <wardnm/>
- <pid/>
- <hngnm/>
- <sexage/>
- <orddeptnm/>
- <indd/>
- <diag/>
- <cretno/>
- </paminfo>
- <detlgrup>
- <detlgruplist>
- <genrdd/>
- <genrtm/>
- <genrplce/>
- <genrplceid/>
- <obspartnm/>
- <sizewidth/>
- <sizeheight/>
- <sizedepth/>
- <stage/>
- <reportdd/>
- <reporttm/>
- <reportnm/>
- <reportid/>
- <grupcd/>
- <obsrecseq/>
- <totpnt/>
- <bspntnm/>
- <pid/>
- <indd/>
- <cretno/>
- <genrplcewardcd/>
- <genrplcewardnm/>
- <obsrecrptseq/>
- </detlgruplist>
- </detlgrup>
- </main>
- <hidden>
- <codelist>
- <getVOStage>
- <cd/>
- <cdnm/>
- </getVOStage>
- </codelist>
- <smsinfo>
- <transchk>
- <smsflag>N</smsflag>
- </transchk>
- </smsinfo>
- </hidden>
- <send/>
- <init>
- <paminfo/>
- <detlgrup>
- <detlgruplist/>
- </detlgrup>
- <sriusgrup/>
- </init>
- <temp/>
- </root>
- </instance>
- <submission id="TRMNW04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/codelist"/>
- <!-- 병동, 내환자 조회 submission -->
- <submission id="TRMNW04705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
- <submission id="TXMNW04704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/smsinfo"/>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- /* 욕창보고 및 SMS전송 화면 로직 (2011.04.20 Ahn) */
-
- var pamInfoPath = "/root/init/paminfo";
- var detlgrupPath = "/root/init/detlgrup/detlgruplist";
- var sriusgrupParh = "/root/init/sriusgrup";
-
- var mainPamInfoPath = "/root/main/paminfo";
- var mainDetlgrupPath = "/root/main/detlgrup/detlgruplist";
-
- function fInit(){
-
- //그리드에 들어갈 공통코드리스트 조회
- if(!submit("TRMNW04701")){
- messageBox('화면 초기화를', 'E009');
- return;
- }
-
- fSetData();
- }
-
- function fSetData(){
-
- var ScrId = opener.javascript.getParameter("ScreenId");
-
- if(ScrId == 'SMMNW04700'){ // 욕창관찰기록
- model.setValue(mainPamInfoPath + "/wardcd", model.getValue(pamInfoPath + "/wardcd")); // 등록부서
- model.setValue(mainPamInfoPath + "/wardnm", model.getValue(pamInfoPath + "/wardnm")); // 등록부서
- model.setValue(mainPamInfoPath + "/pid" , model.getValue(pamInfoPath + "/pid")); // 등록번호
- model.setValue(mainPamInfoPath + "/hngnm" , model.getValue(pamInfoPath + "/hngnm")); // 이름
- var sex = model.getValue(pamInfoPath + "/sex"); // 성별
- var age = model.getValue(pamInfoPath + "/age"); // 나이
- model.setValue(mainPamInfoPath + "/sexage", sex + "/" + age);
- model.setValue(mainPamInfoPath + "/orddeptnm", model.getValue(pamInfoPath + "/orddeptnm")); // 진료과
- model.setValue(mainPamInfoPath + "/indd" , model.getValue(pamInfoPath + "/indd")); // 입원일
- model.setValue(mainPamInfoPath + "/diag" , model.getValue(pamInfoPath + "/diag")); // 진단명
-
- model.setValue(mainDetlgrupPath + "/totpnt" , model.getValue(sriusgrupParh + "/totpnt")); // Braden 점수
- model.setValue(mainDetlgrupPath + "/bspntnm" , model.getValue(sriusgrupParh + "/clsgrupkind")); // 위험군
-
-
- model.setValue(mainDetlgrupPath + "/pid" , model.getValue(mainPamInfoPath + "/pid")); // 등록번호
- model.setValue(mainDetlgrupPath + "/indd" , model.getValue(mainPamInfoPath + "/indd")); // 입원일자
- model.setValue(mainDetlgrupPath + "/cretno" , model.getValue(pamInfoPath + "/cretno")); // 생성번호
-
- }
- else if(ScrId == 'SMMNW13800'){ // 욕창발생보고서
-
- model.setValue(mainPamInfoPath + "/wardcd", model.getValue(detlgrupPath + "/wardcd")); // 등록부서
- model.setValue(mainPamInfoPath + "/wardnm", model.getValue(detlgrupPath + "/wardnm")); // 등록부서
- model.setValue(mainPamInfoPath + "/pid" , model.getValue(detlgrupPath + "/pid")); // 등록번호
- model.setValue(mainPamInfoPath + "/hngnm" , model.getValue(detlgrupPath + "/hngnm")); // 이름
- var sex = model.getValue(detlgrupPath + "/sex"); // 성별
- var age = model.getValue(detlgrupPath + "/age"); // 나이
- model.setValue(mainPamInfoPath + "/sexage", sex + "/" + age);
- model.setValue(mainPamInfoPath + "/orddeptnm", model.getValue(detlgrupPath + "/orddeptnm")); // 진료과
- model.setValue(mainPamInfoPath + "/indd" , model.getValue(detlgrupPath + "/indd")); // 입원일
- model.setValue(mainPamInfoPath + "/diag" , model.getValue(detlgrupPath + "/diag")); // 진단명
-
- var pntrslt = model.getValue(detlgrupPath + "/pntrslt");
- var idx = 0;
- var totpnt = "";
- var bspntnm = "";
- for(i=0; i<pntrslt.length; i++){
- if("/" == pntrslt.charAt(i)){
- idx = i;
- break;
- }
- }
- totpnt = pntrslt.substring(0, idx);
- bspntnm = pntrslt.substring(idx+1, pntrslt.length);
- model.setValue(mainDetlgrupPath + "/totpnt" , totpnt); // Braden 점수
- model.setValue(mainDetlgrupPath + "/bspntnm" , bspntnm); // 위험군
-
-
- model.setValue(mainDetlgrupPath + "/pid" , model.getValue(detlgrupPath + "/pid")); // 등록번호
- model.setValue(mainDetlgrupPath + "/indd" , model.getValue(detlgrupPath + "/indd")); // 입원일자
- model.setValue(mainDetlgrupPath + "/cretno" , model.getValue(detlgrupPath + "/cretno")); // 생성번호
-
- }
-
- model.setValue(mainDetlgrupPath + "/genrdd" , model.getValue(detlgrupPath + "/genrdd")); // 발생일자
- model.setValue(mainDetlgrupPath + "/genrtm" , model.getValue(detlgrupPath + "/genrtm")); // 발생시간
- model.setValue(mainDetlgrupPath + "/genrplce", model.getValue(detlgrupPath + "/genrplce")); // 발생장소
- model.setValue(mainDetlgrupPath + "/genrplceid" , model.getValue(detlgrupPath + "/genrplceid")); // 발생장소id
- model.setValue(mainDetlgrupPath + "/genrplcewardcd" , model.getValue(detlgrupPath + "/genrplcewardcd")); // 발생장소원내코드
- model.setValue(mainDetlgrupPath + "/genrplcewardnm" , model.getValue(detlgrupPath + "/genrplcewardnm")); // 발생장소원내
- model.setValue(mainDetlgrupPath + "/obspartnm" , model.getValue(detlgrupPath + "/obspartnm")); // 발생부위
- model.setValue(mainDetlgrupPath + "/sizewidth" , model.getValue(detlgrupPath + "/sizewidth")); // 가로
- model.setValue(mainDetlgrupPath + "/sizeheight" , model.getValue(detlgrupPath + "/sizeheight")); // 세로
- model.setValue(mainDetlgrupPath + "/sizedepth" , model.getValue(detlgrupPath + "/sizedepth")); // 깊이
-
- var stageCd = model.getValue(detlgrupPath + "/stageid");
- model.makeValue(mainDetlgrupPath + "/stagenm" , model.getValue("/root/hidden/codelist/getVOStage[cd = '" + stageCd + "']/cdnm")); // 단계
- model.setValue(mainDetlgrupPath + "/stage" , model.getValue("/root/hidden/codelist/getVOStage[cd = '" + stageCd + "']/cd")); // 단계id
- model.setValue(mainDetlgrupPath + "/grupcd" , model.getValue(detlgrupPath + "/grupcd")); // 그룹코드
- model.setValue(mainDetlgrupPath + "/obsrecseq" , model.getValue(detlgrupPath + "/obsrecseq")); // 욕창관찰기록 seq
- model.setValue(mainDetlgrupPath + "/obsrecrptseq" , model.getValue(detlgrupPath + "/obsrecrptseq")); // 욕창관찰기록보고서 seq
-
- model.setValue(mainDetlgrupPath + "/reportdd" , getCurrentDate()); // 보고일에 현재날짜(디폴트);
- model.setValue(mainDetlgrupPath + "/reporttm" , getCurrentDateTime().substring(9,13));//보고시간 현재 시간
- model.setValue(mainDetlgrupPath + "/reportid" , getUserId()); // 접속한 사용자 id
- model.setValue(mainDetlgrupPath + "/reportnm" , getUserName()); // 접속한 사용자 이름
-
- model.refresh();
- }
-
- // 저장 및 SMS전송
- function fSaveNSMS(){
- if(fIsValid()){
- //저장여부 메세지박스
- if(messageBox("","Q002") != 6)
- return false;
- model.removenode("/root/send/savedata");
- model.makeNode("/root/send/savedata");
-
- model.copyNode("/root/send/savedata", "/root/main/detlgrup");
- // 환자명 추가
- model.makeValue("/root/send/savedata/patnm", model.getValue("/root/main/paminfo/hngnm"));
- // 병동코드 추가
- model.makeValue("/root/send/savedata/wardcd", model.getValue("/root/main/paminfo/wardcd"));
- model.makeValue("/root/send/savedata/wardnm", model.getValue("/root/main/paminfo/wardnm"));
-
- // model.makeValue("/root/send/savedata/pid", model.getValue("/root/cond/patientgrupInfo/patientgruplistInfo/pid"));
-
- if(submit("TXMNW04704")){
- messageBox("SMS 발송이 완료되었습니다.","I");
- // var smsYN = model.getValue("/root/hidden/smsinfo/transchk/smsflag");
- // if(smsYN == "Y") messageBox("보고서 저장 및 SMS 전송이","I002");
- // else messageBox("보고서 저장은 완료되었으나, SMS 전송은","E009");
- // SMS 전송 로직
- //if(submit("TXMNW04705")){
- // messageBox("SMS 전송이","I002");
- //}
- }
- }
- }
-
- function fIsValid(){
- var reporttm = model.getValue("/root/main/detlgrup/detlgruplist/reporttm");
- if (reporttm == ""){
- messageBox("보고 시간이 입력되지 않았습니다.","I");
- return false;
- }
-
- return true;
- }
-
- // SMS 전송
- function fSMSTnsfr(){
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="430" pageheight="350" guideline="1,-13;1,468;1,430;1,-45;" 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:410px; height:330px; ">
- <output id="output4" ref="/root/main/paminfo/hngnm" class="output_fix" appearance="output" style="left:198px; top:52px; width:94px; height:19px; "/>
- <caption id="cap_sa" class="cell_1" style="left:297px; top:51px; width:61px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <output id="output9" ref="/root/main/paminfo/pid" class="output_fix" appearance="output" style="left:62px; top:52px; width:93px; height:19px; "/>
- <line id="line23" class="line_2" style="x1:0px; y1:271px; x2:403px; y2:271px; "/>
- <caption id="caption33" class="cell_1" style="left:0px; top:195px; width:60px; height:23px; ">발생부위</caption>
- <caption id="cap_indd" class="cell_1" style="left:197px; top:75px; width:60px; height:23px; vertical-align:middle; ">입원일</caption>
- <caption id="cap_patnm" class="cell_1" style="left:160px; top:51px; width:36px; height:23px; vertical-align:middle; ">이름</caption>
- <caption id="cap_orddeptnm" class="cell_1" style="left:0px; top:75px; width:60px; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="cap_pid" class="cell_1" style="left:0px; top:51px; width:60px; height:23px; vertical-align:middle; ">등록번호</caption>
- <caption id="caption17" class="cell_1" style="left:0px; top:123px; width:210px; height:23px; ">욕창 위험 초기사정 Braden 점수/군</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:22px; x2:406px; y2:22px; "/>
- <caption id="caption8" class="tit_2" style="left:2px; top:5px; width:184px; height:15px; ">SMS 전송</caption>
- <output id="output1" ref="/root/main/paminfo/indd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:258px; top:77px; width:147px; height:19px; "/>
- <caption id="caption19" class="cell_1" style="left:0px; top:147px; width:60px; height:23px; ">발생일자</caption>
- <output id="output2" ref="/root/main/paminfo/orddeptnm" class="output_fix" appearance="output" style="left:62px; top:77px; width:133px; height:19px; "/>
- <output id="output3" ref="/root/main/paminfo/sexage" class="output_fix" appearance="output" style="left:360px; top:52px; width:45px; height:19px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:267px; x2:406px; y2:267px; "/>
- <caption id="caption1" class="cell_1" style="left:0px; top:272px; width:60px; height:23px; vertical-align:middle; ">전송일</caption>
- <caption id="caption4" class="cell_1" style="left:198px; top:272px; width:60px; height:23px; vertical-align:middle; ">전송자</caption>
- <button id="button1" class="btn2_letter5" style="left:285px; top:303px; width:75px; height:19px; ">
- <caption>SMS발송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //var recflag = opener.javascript.getParameter("recflag");
- fSaveNSMS();
- //model.close();
- //opener.model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption5" class="cell_1" style="left:0px; top:99px; width:60px; height:23px; vertical-align:middle; ">진단명</caption>
- <output id="output6" ref="/root/main/paminfo/diag" class="output_fix" appearance="output" style="left:62px; top:101px; width:343px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:219px; width:210px; height:23px; ">크기(cm) - 가로 x 세로 x 깊이</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:243px; width:60px; height:23px; ">단계</caption>
- <caption id="caption10" class="cell_1" style="left:0px; top:171px; width:60px; height:23px; ">발생장소</caption>
- <input id="ipt_indate" ref="/root/main/detlgrup/detlgruplist/reportdd" class="input_search" visibility="visible" inputtype="date" style="left:62px; top:274px; width:87px; height:19px; ">
- <hint>
- <![CDATA[날짜를 선택하세요]]>
- </hint>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (ipt_indate.value > getCurrentDate()){
- messageBox("현재 일자 이후 날짜는 선택","E001");
- ipt_indate.value = getCurrentDate();
- return;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_time" ref="/root/main/detlgrup/detlgruplist/reporttm" class="input_search" visibility="visible" format="hh:nn" validateformat="true" style="left:152px; top:274px; width:42px; height:19px; ">
- <hint>
- <![CDATA[시간을 입력하세요[ ex)23:11 ]]]>
- </hint>
- </input>
- <output id="output5" ref="/root/main/paminfo/wardnm" class="output_fix" appearance="output" style="left:62px; top:29px; width:343px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:27px; width:60px; height:23px; vertical-align:middle; ">등록부서</caption>
- <output id="output7" ref="/root/main/detlgrup/detlgruplist/totpnt" class="output_fix" appearance="output" style="left:211px; top:125px; width:47px; height:19px; "/>
- <output id="output8" ref="/root/main/detlgrup/detlgruplist/bspntnm" class="output_fix" appearance="output" style="left:260px; top:125px; width:145px; height:19px; "/>
- <output id="output10" ref="/root/main/detlgrup/detlgruplist/genrdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:61px; top:149px; width:344px; height:19px; "/>
- <output id="output11" ref="/root/main/detlgrup/detlgruplist/genrplce" class="output_fix" appearance="output" style="left:61px; top:173px; width:197px; height:19px; "/>
- <output id="output12" ref="/root/main/detlgrup/detlgruplist/obspartnm" class="output_fix" appearance="output" style="left:61px; top:197px; width:344px; height:19px; "/>
- <output id="output13" ref="/root/main/detlgrup/detlgruplist/sizewidth" class="output_fix" appearance="output" style="left:212px; top:221px; width:32px; height:19px; "/>
- <output id="output14" ref="/root/main/detlgrup/detlgruplist/sizeheight" class="output_fix" appearance="output" style="left:247px; top:221px; width:32px; height:19px; "/>
- <output id="output15" ref="/root/main/detlgrup/detlgruplist/sizedepth" class="output_fix" appearance="output" style="left:282px; top:221px; width:32px; height:19px; "/>
- <output id="output16" ref="/root/main/detlgrup/detlgruplist/stagenm" class="output_fix" appearance="output" style="left:61px; top:245px; width:344px; height:19px; "/>
- <output id="output17" ref="/root/main/detlgrup/detlgruplist/reportnm" class="output_fix" appearance="output" style="left:260px; top:274px; width:145px; height:21px; "/>
- <output id="output18" ref="/root/main/detlgrup/detlgruplist/reportid" class="output_fix" visibility="hidden" appearance="output" style="left:110px; top:300px; width:90px; height:19px; "/>
- <output id="output19" ref="/root/main/detlgrup/detlgruplist/genrtm" class="output_fix" visibility="hidden" format="hh:nn" appearance="output" style="left:90px; top:150px; width:75px; height:19px; "/>
- <output id="output20" ref="/root/main/detlgrup/detlgruplist/genrplceid" class="output_fix" visibility="hidden" appearance="output" style="left:90px; top:175px; width:75px; height:19px; "/>
- <output id="output21" ref="/root/main/detlgrup/detlgruplist/grupcd" class="output_fix" visibility="hidden" appearance="output" style="left:5px; top:300px; width:35px; height:19px; "/>
- <output id="output22" ref="/root/main/detlgrup/detlgruplist/obsrecseq" class="output_fix" visibility="hidden" appearance="output" style="left:45px; top:300px; width:55px; height:19px; "/>
- <button id="button2" class="btn2_letter2" style="left:363px; top:303px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <output id="output23" ref="/root/main/detlgrup/detlgruplist/stage" class="output_fix" visibility="hidden" appearance="output" style="left:90px; top:245px; width:75px; height:19px; "/>
- <output id="output25" ref="/root/main/detlgrup/detlgruplist/genrplcewardnm" class="output_fix" appearance="output" style="left:260px; top:173px; width:145px; height:19px; "/>
- <output id="output24" ref="/root/main/detlgrup/detlgruplist/genrplcewardcd" class="output_fix" visibility="hidden" appearance="output" style="left:340px; top:175px; width:65px; height:19px; "/>
- <output id="output26" ref="/root/main/detlgrup/detlgruplist/obsrecrptseq" class="output_fix" visibility="hidden" style="left:205px; top:300px; width:40px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|