123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SPSTP00100_통계집계.xrw
- * 수정이력
- * - 2008.06.24 / 최초작성 / 박정화
- -->
- <?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="">
- <send>
- <ordtype>A</ordtype>
- <fromdd/>
- <todd/>
- <endkind>1</endkind>
- <sms/>
- </send>
- <hide>
- <out_proccnt/>
- </hide>
- <main>
- <sms1info>
- <sms1infolist/>
- </sms1info>
- <sms2info>
- <sms2infolist/>
- </sms2info>
- </main>
- <hidden/>
- <paminit>
- <SMS3list/>
- </paminit>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/fromdd",getCurrentDate().toDate().getAddDate(-1, 'D').getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/todd",getCurrentDate().toDate().getAddDate(-1, 'D').getDateFormat("YYYYMMDD"));
-
- pamfGetCodeList(new Array("SMS3"), new Array("/root/paminit/SMS3list"));
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TXPAS00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TXPAS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
- <submission id="TXPAI03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/smsdata" replace="instance" resultref="/root/hidden"/>
- <submission id="TRPAS00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- </model>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <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/numericHelper.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" src="../../../com/batchinfoweb/js/ZSB001.js"/>
- <script type="javascript">
- <![CDATA[
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1160" pageheight="780" style="font-family:돋움, Arial; font-size:12px; color:#4d4d4d; ">
- <group id="group1" style="left:0px; top:15px; width:1160px; height:590px; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <line id="line3" class="line_2" style="x1:0px; y1:131px; x2:470px; y2:131px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:59px; x2:470px; y2:59px; "/>
- <button id="btn_execute" class="btn4_letter2" style="left:331px; top:160px; width:56px; height:22px; ">
- <caption>실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sFromdd = model.getValue("/root/send/fromdd");
- var sTodd = model.getValue("/root/send/todd");
-
- if (sFromdd.toDate() > sTodd.toDate()) {
- messageBox("집계 시작일자와 종료일자 설정이 올바르지 않습니다. 날짜를 확인하세요.","C999");
- return;
- }
-
- if (getCurrentDate().toDate() < sFromdd.toDate() || getCurrentDate().toDate() < sTodd.toDate()) {
- messageBox("오늘 이후 마감은 실행할 수 없습니다.","C999");
- return;
- }
-
- submit("TXPAS00100");
-
- btn_batchlog.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:5px; top:15px; width:121px; height:13px; ">일일마감</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:61px; width:120px; height:71px; vertical-align:middle; ">마감종류</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:133px; width:120px; height:23px; vertical-align:middle; ">진료형태</caption>
- <input id="ipt_enddate" ref="/root/send/fromdd" class="input_default" navindex="5" inputtype="date" appearance="input" style="left:123px; top:38px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <line id="line1" class="line_1" style="x1:0px; y1:32px; x2:470px; y2:32px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:37px; width:120px; height:23px; vertical-align:middle; ">마감일자</caption>
- <line id="line4" class="line_3" style="x1:0px; y1:155px; x2:470px; y2:155px; "/>
- <input id="input1" ref="/root/send/todd" class="input_default" navindex="5" inputtype="date" appearance="input" style="left:242px; top:38px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption7" style="left:227px; top:40px; width:20px; height:15px; ">~</caption>
- <select1 id="radio1" ref="/root/send/endkind" overflow="visible" appearance="full" cellspacing="5" cols="4" vcellspacing="6" style="left:123px; top:63px; width:357px; height:65px; border-style:none; ">
- <choices>
- <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>
- <item>
- <label>재원미수(중간청구)</label>
- <value>5</value>
- </item>
- <item>
- <label>처방선수</label>
- <value>6</value>
- </item>
- <item>
- <label>개인미수</label>
- <value>7</value>
- </item>
- <item>
- <label>통합미수</label>
- <value>9</value>
- </item>
- <item>
- <label>일일보고</label>
- <value>8</value>
- </item>
- <item>
- <label>오류점검</label>
- <value>10</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //재원미수
- if (model.getValue("/root/send/endkind") == "4" || model.getValue("/root/send/endkind") == "5" || model.getValue("/root/send/endkind") == "10") {
- model.setValue("/root/send/ordtype", "I")
- radio2.disabled = true;
- }
- //처방선수
- else if (model.getValue("/root/send/endkind") == "6") {
- model.setValue("/root/send/ordtype", "O")
- radio2.disabled = true;
- }
- //일일보고
- else if (model.getValue("/root/send/endkind") == "8") {
- model.setValue("/root/send/ordtype", "A")
- radio2.disabled = true;
- }
- else {
- model.setValue("/root/send/ordtype", "A")
- radio2.disabled = false;
- }
-
- radio2.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="radio2" ref="/root/send/ordtype" overflow="visible" appearance="full" cellspacing="10" cols="3" style="left:123px; top:135px; width:195px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- </select1>
- <button id="btn_batchlog" class="btn4_letter4" style="left:391px; top:160px; width:80px; height:22px; ">
- <caption>배치로그</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("pamteamstatsmgr.PamTeamStatsBatch",getCurrentDate(),todd.getDateFormat());
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:5px; top:329px; width:97px; height:19px; ">
- <caption>SMS1</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/flag","sms1");
- submit("TRPAS00110");
-
- var detldesc = model.getValue("/root/main/sms1info/sms1infolist/detldesc");
- var yy = model.getValue("/root/main/sms1info/sms1infolist/yy");
- var mm = model.getValue("/root/main/sms1info/sms1infolist/mm");
- var dd = model.getValue("/root/main/sms1info/sms1infolist/dd");
- var dt = model.getValue("/root/main/sms1info/sms1infolist/dt");
- var outcnt = model.getValue("/root/main/sms1info/sms1infolist/outcnt");
- var admcnt = model.getValue("/root/main/sms1info/sms1infolist/admcnt");
- var beduserate = model.getValue("/root/main/sms1info/sms1infolist/beduserate");
- var hospnm = model.getValue("/root/main/sms1info/sms1infolist/hospnm");
- var sms;
-
- detldesc = detldesc.setReplaceWord("YY",yy);
- detldesc = detldesc.setReplaceWord("MM",mm);
- detldesc = detldesc.setReplaceWord("DD",dd);
- detldesc = detldesc.setReplaceWord("DT",dt);
- detldesc = detldesc.setReplaceWord("∥진료인원∥",outcnt);
- detldesc = detldesc.setReplaceWord("∥재원인원∥",admcnt);
- detldesc = detldesc.setReplaceWord("∥가동률∥",beduserate);
- detldesc = detldesc.setReplaceWord("∥병원명∥",hospnm);
- detldesc = detldesc.setReplaceWord("∥","");
- model.setValue("/root/send/sms",detldesc);
- textarea1.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:61px; top:329px; width:53px; height:19px; ">
- <caption>SMS2</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/flag","sms2");
- submit("TRPAS00110");
-
- var detldesc = model.getValue("/root/main/sms2info/sms2infolist/detldesc");
- var yy = model.getValue("/root/main/sms2info/sms2infolist/yy");
- var mm = model.getValue("/root/main/sms2info/sms2infolist/mm");
- var dd = model.getValue("/root/main/sms2info/sms2infolist/dd");
- var Day = model.getValue("/root/main/sms2info/sms2infolist/day");
- var outrsrvcnt = model.getValue("/root/main/sms2info/sms2infolist/outrsrvcnt");
- var inrsrvcnt = model.getValue("/root/main/sms2info/sms2infolist/inrsrvcnt");
- var hospnm = model.getValue("/root/main/sms2info/sms2infolist/hospnm");
- var sms;
-
- detldesc = detldesc.setReplaceWord("YY",yy);
- detldesc = detldesc.setReplaceWord("MM",mm);
- detldesc = detldesc.setReplaceWord("DD",dd);
- detldesc = detldesc.setReplaceWord("Day",Day);
- detldesc = detldesc.setReplaceWord("||외래||",outrsrvcnt);
- detldesc = detldesc.setReplaceWord("||입원||",inrsrvcnt);
- detldesc = detldesc.setReplaceWord("∥병원명∥",hospnm);
- detldesc = detldesc.setReplaceWord("∥","");
-
- model.setValue("/root/send/sms",detldesc);
- textarea1.refresh();
- ]]>
- </script>
- </button>
- <textarea id="textarea1" ref="/root/send/sms" style="left:0px; top:222px; width:405px; height:105px; "/>
- <line id="line5" class="line_1" style="x1:0px; y1:217px; x2:405px; y2:217px; "/>
- <button id="button3" class="btn5_letter2" style="left:360px; top:330px; width:42px; height:19px; ">
- <caption>송신</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/sms") == "") {
- messagBox("메세지형식이 등록되지 않았습니다.", "I999");
- return;
- }
-
- model.makeValue("/root/send/recvrnm", model.getValue("/root/paminit/SMS3list/SMS3/detl"));
- model.makeValue("/root/send/recvrtelno", model.getValue("/root/paminit/SMS3list/SMS3/cdnm"));
- model.makeValue("/root/send/replytelno","");
- model.makeValue("/root/send/msgfrmtid","sms.pam.0001");
- model.makeValue("/root/send/msgparam", model.getValue("/root/send/sms"));
- model.makeValue("/root/send/rsrvyn" ,"0");
- model.makeValue("/root/send/emergencyyn" ,"0");
-
- // rsrvdate : 예약일자
- // rsrvtime : 예약시간
- // pid , ""
-
- // var sDD = getCurrentDate();
- // var sSendDD = sDD.substr(4,2) + "/" + sDD.substr(6,2);
- // var sTM = getCurrentTime();
- // var sSendTM = sTM.substr(0,2) + ":" + sTM.substr(2,2);
- // var sTrsmDT = sDD + sTM;
- //
- // var smscnts = model.getValue("/root/send/sms");
- // model.makeValue("/root/send/smsdata/list/bizabbr", "pam"); //업무약어
- // model.makeValue("/root/send/smsdata/list/msgfrmtid", "sms.pam.0001"); //메세지형식아이디
- // model.makeValue("/root/send/smsdata/list/msgparam", smscnts); //0001 param
- // model.makeValue("/root/send/smsdata/list/rsrvyn", "0"); //예약여부(0 미예약)
- // model.makeValue("/root/send/smsdata/list/emergencyyn", "1"); //긴급여부(1 긴급), 우선순위
- //
-
- if ( submit("TXPAS00102") ==true) {
- messageBox("SMS가 발송되었습니다.", "I999");
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:5px; top:200px; width:121px; height:13px; ">보고용SMS</caption>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1146px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">일일마감</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|