123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333 |
- <?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="">
- <main>
- <list>
- <item>
- <basecdnm/>
- <month1/>
- <month2/>
- <month3/>
- <month4/>
- <month5/>
- <month6/>
- <month7/>
- <month8/>
- <month9/>
- <month10/>
- <month11/>
- <month12/>
- <sumcnt/>
- </item>
- </list>
- </main>
- <send>
- <execfromdd/>
- <exectodd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <suppdeptcd/>
- <lrgcd/>
- <mdlcd/>
- <flag/>
- <partflag/>
- <basecdflag/>
- <flag2/>
- </send>
- <init>
- <cmb_lrgcd/>
- <cmb_mdlcd/>
- </init>
- <hidden>
- <comcd/>
- </hidden>
- <temp>
- <hints>외부판독제외</hints>
- </temp>
- </root>
- </instance>
- <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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript">
- <![CDATA[
-
- /*** ***/
- function setTitle() {
-
- model.removenode("/root/main/list");
-
- var stYearMonth = model.getValue("/root/send/execfromdd") + "01";
- var dtYearMonth = stYearMonth.toDate();
- var stEndMonth = model.getValue("/root/send/exectodd") + "01";
- var dtEndMonth = stEndMonth.toDate();
-
- var stYearHeader = "구분^구분^";
- var stMonthHeader = "구분^구분^";
-
- for (var i = 2; i <= 13; i++) {
-
- // 년도
- var stYear = dtYearMonth.getDateFormat("YYYY");
- // 월
- var stMonth = dtYearMonth.getDateFormat("MM");
-
- stYearHeader = stYearHeader + stYear + "년^";
- stMonthHeader = stMonthHeader + stMonth + "월^";
-
- if(dtYearMonth.getDateFormat("YYYYMM") > dtEndMonth.getDateFormat("YYYYMM")) {
- grd_list.colHidden(1 + i) = true;
- } else {
- grd_list.colHidden(1 + i) = false;
- }
- dtYearMonth.getAddDate(1, "M");
-
- }
- stYearHeader = stYearHeader + "합계|";
- stMonthHeader = stMonthHeader + "합계";
-
- grd_list.caption = stYearHeader + stMonthHeader;
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- aezfSetSuppDeptcd();
-
- var fromdd = getCurrentDate().substr(0,4) + "01";
- var todd = getCurrentDate().substr(0,6);
-
- model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.setValue("/root/send/execfromdd", fromdd);
- model.setValue("/root/send/exectodd", todd);
- model.setValue("/root/send/flag", "E");
- model.setValue("/root/send/basecdflag", "R");
- submit("TRAES01502", false);
- aezfInsertInstance2("/root/hidden/comcd", "lrgcdlist", "전체", "", "/root/init/cmb_lrgcd");
-
- setTitle();
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRAES01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
- <submission id="TRAES01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_lrgcd"/>
- <submission id="TRAES01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_mdlcd"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">진료과별통계</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:200px; height:14px; ">진료과별통계</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1195px; y2:65px; "/>
- <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:45px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- var fileName = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls"); // 2009-07-01 엑셀저장 두번째 저장 실패 오류 확인 두번째 테스트
- if (fileName != "") {
- grd_list.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_list" nodeset="/root/main/list/item" caption="caption1^구분^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2007년^2007년^합계^전년도합계^증감(%)|caption1^구분^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^1월^2월^합계^전년도합계^증감(%)" colsep="^" colwidth="0, 310, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 82" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:70px; width:1195px; height:670px; ">
- <col ref="ord" visibility="hidden"/>
- <col ref="basecdnm"/>
- <col ref="month1" style="text-align:right; "/>
- <col ref="month2" style="text-align:right; "/>
- <col ref="month3" style="text-align:right; "/>
- <col ref="month4" style="text-align:right; "/>
- <col ref="month5" style="text-align:right; "/>
- <col ref="month6" style="text-align:right; "/>
- <col ref="month7" style="text-align:right; "/>
- <col ref="month8" style="text-align:right; "/>
- <col ref="month9" style="text-align:right; "/>
- <col ref="month10" style="text-align:right; "/>
- <col ref="month11" style="text-align:right; "/>
- <col ref="month12" style="text-align:right; "/>
- <col ref="sumcnt" style="text-align:right; "/>
- </datagrid>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:25px; "/>
- <button id="button1" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTitle();
-
- openLoadingBar("진료과별통계을 조회 중입니다....") ;
-
- if (submit("TRAES01501")) {
- var ord = "";
- for ( var i = 1; i <= grd_list.rows; i++ ) {
- ord = grd_list.valueMatrix(i, grd_list.colRef("ord"));
- if ( ord == "2" ) {
- grd_list.rowstyle( i , "data" , "background-color" ) = "#CCFFCC";
- grd_list.rowstyle( i , "data" , "font-weight" ) = "bold";
- } else if ( ord == "3" ) {
- grd_list.rowstyle( i , "data" , "background-color" ) = "#FFFFCC";
- grd_list.rowstyle( i , "data" , "font-weight" ) = "bold";
- }
- }
- }
-
- model.refresh();
-
- closeLoadingBar() ;//처리중 화면을 close한다.
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:10px; top:7px; width:86px; height:17px; ">조회기간 :</caption>
- <input id="ipt_todd" ref="/root/send/exectodd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm" style="left:197px; top:6px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var execfromdd = (model.getValue("/root/send/execfromdd") + "01").toDate();
- var exectodd = (model.getValue("/root/send/exectodd") + "01").toDate();
-
- if(execfromdd.getAddDate(11, "M") < exectodd)
- {
- messageBox("1년이상의 자료는 검색할수 없습니다.", "I");
- exectodd = execfromdd;
- }
-
- model.setValue("/root/send/exectodd", exectodd.getDateFormat("YYYYMM"));
- exectodd = exectodd.getAddDate(-12, "M");
- exectodd = exectodd.getDateFormat("YYYYMM");
-
- setTitle();
-
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_no_b" style="left:182px; top:6px; width:12px; height:17px; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/execfromdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm" style="left:99px; top:6px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var execfromdd = (model.getValue("/root/send/execfromdd") + "01").toDate();
- var exectodd = (model.getValue("/root/send/exectodd") + "01").toDate();
-
- if(execfromdd < exectodd.getAddDate(-11, "M"))
- {
- messageBox("1년이상의 자료는 검색할수 없습니다.", "I");
- execfromdd = exectodd;
- }
- model.setValue("/root/send/execfromdd", execfromdd.getDateFormat("YYYYMM"));
- execfromdd = execfromdd.getAddDate(-12, "M");
- execfromdd = execfromdd.getDateFormat("YYYYMM");
-
- //model.setValue("/root/send/comparefromdd", execfromdd);
-
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:295px; top:7px; width:76px; height:17px; ">대분류 :</caption>
- <caption id="caption9" class="search_name" style="left:465px; top:7px; width:76px; height:17px; ">중분류 :</caption>
- <select1 id="cmb_lrgcd" ref="/root/send/lrgcd" appearance="minimal" editmode="input" style="left:370px; top:6px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_lrgcd/lrgcdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // if ( model.getValue("/root/send/lrgcd") == "GR" ) {
- //
- // if ( model.getValue("/root/send/flag") == "" ) {
- // model.setValue("/root/send/flag" , "E"); // 검사수
- // model.refresh();
- // }else {
- // model.setValue("/root/send/flag2" , "");
- // model.refresh();
- // }
- // checkbox1.visible = true;
- // }else {
- // model.setValue("/root/send/flag" , "E"); // 검사수
- // model.setValue("/root/send/flag2" , ""); // 부위건수
- // model.refresh();
- // checkbox1.visible = false;
- // }
- //
- // model.removenode("/root/main/list");
-
- model.setValue("/root/send/mdlcd", "");
- model.resetInstanceNode("/root/init/cmb_mdlcd/mdlcdlist");
-
- if ( model.getValue("/root/send/lrgcd") == "" ) {
- model.resetInstanceNode("/root/init/cmb_lrgcd/lrgcdlist");
- submit("TRAES01502");
- }else {
- submit("TRAES01503");
- }
- ]]>
- </script>
- </select1>
- <select1 id="cmb_mdlcd" ref="/root/send/mdlcd" appearance="minimal" editmode="input" style="left:540px; top:6px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_mdlcd/mdlcdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:900px; top:7px; width:60px; height:17px; ">분류 :</caption>
- <caption id="caption8" class="search_name" style="left:680px; top:7px; width:66px; height:17px; ">구분 :</caption>
- <select1 id="radio1" ref="/root/send/flag" appearance="full" cols="2" overflow="visible" style="left:745px; top:7px; width:140px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>촬영건수</label>
- <value>E</value>
- </item>
- <item>
- <label>부위건수</label>
- <value>B</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/flag2" , "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_partflag" ref="/root/send/partflag" appearance="full" cols="3" overflow="visible" style="left:965px; top:7px; width:134px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>영상</label>
- <value>R</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- </select1>
- </group>
- <caption id="caption4" ref="/root/temp/hints" style="left:116px; top:48px; width:625px; height:20px; color:#0000ff; ">caption3</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|