123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- <?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>
- <in_batchgubn>C</in_batchgubn>
- <in_ordstat>A</in_ordstat>
- <in_monthday>D</in_monthday>
- <in_procdd/>
- <in_fromdd/>
- <in_todd/>
- <in_cond1/>
- </send>
- <hide>
- <out_proccnt/>
- </hide>
- </root>
- </instance>
- <submission id="TXSTP00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/in_procdd",gCurrentdd );
- model.setValue("/root/send/in_fromdd",gCurrentdd );
- model.setValue("/root/send/in_todd",gCurrentdd );
-
- 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/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[
- var gToday = new Date();
- var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var gBasemonth = gToday.getDateFormat("MM");
- var gBaseday = gToday.getDateFormat("DD");
- var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
-
- var gCurrentmm = gBaseyear + gBasemonth;
- ]]>
- </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; ">
- <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:330px; height:235px; "/>
- <select id="chk_job" ref="/root/send/in_cond1" visibility="visible" overflow="visible" appearance="full" style="left:45px; top:143px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>일괄작업</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue("/root/send/in_cond1") == "A" ) {
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
-
- } else {
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- model.setValue("/root/send/in_fromdd", model.getValue("/root/send/in_procdd"));
- model.setValue("/root/send/in_todd", model.getValue("/root/send/in_procdd"));
- model.refresh();
- }
-
- model.refresh();
- ]]>
- </script>
- </select>
- <input id="ipt_fromdd" ref="/root/send/in_fromdd" class="input_search" disabled="true" navindex="1" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:125px; top:143px; width:94px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[]]>
- </script>
- </input>
- <input id="ipt_todd" ref="/root/send/in_todd" class="input_search" disabled="true" navindex="1" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:225px; top:143px; width:94px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[]]>
- </script>
- </input>
- <caption id="caption30" class="search_name" style="left:30px; top:85px; width:85px; height:17px; ">집계기준</caption>
- <input id="ipt_procdd" ref="/root/send/in_procdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:125px; top:115px; width:94px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var procdd = model.getValue("/root/send/in_procdd");
- var cond1 = model.getValue("/root/send/in_cond1");
-
- if ( cond1 != "A") {
- model.setValue("/root/send/in_fromdd", procdd);
- model.setValue("/root/send/in_todd", procdd);
- model.refresh();
- }
-
- ]]>
- </script>
- </input>
- <button id="btn_execute" class="btn4_letter2" style="left:164px; top:174px; width:56px; height:22px; ">
- <caption>실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sProcdd = model.getValue("/root/send/in_procdd");
- var sFromdd = model.getValue("/root/send/in_fromdd");
- var sTodd = model.getValue("/root/send/in_todd");
-
- if ( model.getValue("/root/send/in_cond1") == "A" ) {
- if (gCurrentdd.toDate() < sFromdd.toDate() || gCurrentdd.toDate() < sTodd.toDate()) {
- messageBox("현재일 이후 통계는 집계할 수 없습니다.","C999");
- return;
- }
-
- if (sFromdd.toDate() > sTodd.toDate()) {
- messageBox("집계 시작일자와 종료일자 설정이 올바르지 않습니다. 날짜를 확인하세요.","C999");
- return;
- }
-
- } else {
- if (gCurrentdd.toDate() < sProcdd.toDate()) {
- messageBox("현재일 이후 통계는 집계할 수 없습니다.","C999");
- return;
- }
- }
-
- if ( sProcdd != "" ) {
- submit("TXSTP00100");
-
- button1.dispatch("DOMActivate");
-
- } else {
- model.alert("집계일자를 입력하세요");
- model.setFocus("ipt_procdd");
- return;
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" style="left:25px; top:205px; width:234px; height:17px; ">※ 현재일이후 통계는 집계 할 수 없습니다.</caption>
- <caption id="caption2" class="search_name" style="left:30px; top:25px; width:85px; height:17px; ">집계구분</caption>
- <select1 id="cb_list" ref="/root/send/in_batchgubn" class="combo_search" appearance="minimal" editmode="search" itemcount="20" style="left:125px; top:25px; width:94px; height:19px; ">
- <choices>
- <item>
- <label>공통통계</label>
- <value>C</value>
- </item>
- <item>
- <label>인원통계</label>
- <value>P</value>
- </item>
- <item>
- <label>수익통계</label>
- <value>S</value>
- </item>
- <item>
- <label>사회사업통계</label>
- <value>B</value>
- </item>
- <item>
- <label>진료실적통계</label>
- <value>R</value>
- </item>
- <item>
- <label>특정처방집계</label>
- <value>T</value>
- </item>
- <item>
- <label>MIS자동분개</label>
- <value>I</value>
- </item>
- <item>
- <label>수익마감전계산내역점검</label>
- <value>O</value>
- </item>
- <item>
- <label>수익마감 누적통계</label>
- <value>A</value>
- </item>
- <item>
- <label>오류데이터 점검</label>
- <value>X</value>
- </item>
- <item>
- <label>선택진료료 배분</label>
- <value>G</value>
- </item>
- <item>
- <label>수익일보상호검증</label>
- <value>H</value>
- </item>
- <item>
- <label>수익부서 셋팅</label>
- <value>J</value>
- </item>
- <item>
- <label>월마감집계</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:30px; top:55px; width:85px; height:17px; ">진료구분</caption>
- <select1 id="cb_ordstat" ref="/root/send/in_ordstat" class="combo_search" appearance="minimal" editmode="search" itemcount="20" style="left:125px; top:55px; width:94px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </select1>
- <select1 id="cb_monthday" ref="/root/send/in_monthday" class="combo_search" appearance="minimal" editmode="search" itemcount="20" style="left:125px; top:85px; width:94px; height:19px; ">
- <choices>
- <item>
- <label>일단위</label>
- <value>D</value>
- </item>
- <item>
- <label>월단위</label>
- <value>M</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sMonthday = '';
- sMonthday = model.getValue("/root/send/in_monthday");
- model.setValue("/root/send/in_procdd","" );
- model.setValue("/root/send/in_fromdd","" );
- model.setValue("/root/send/in_todd","" );
- if ( sMonthday == "D" ) {
- ipt_procdd.attribute("format") = "yyyy-mm-dd";
- model.setValue("/root/send/in_procdd",gCurrentdd );
- model.setValue("/root/send/in_fromdd",gCurrentdd );
- model.setValue("/root/send/in_todd",gCurrentdd );
- } else {
- ipt_procdd.attribute("format") = "yyyy-mm";
- model.setValue("/root/send/in_procdd",gCurrentmm );
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="button1" class="btn4_letter4" style="left:224px; top:174px; width:80px; height:22px; ">
- <caption>배치로그</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("stspambatchmgr.StsPamBatch",getCurrentDate(),todd.getDateFormat());
- ]]>
- </script>
- </button>
- </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>
|