123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLS00100_외래채혈통계.xrw
- * 설 명 : 채혈 통계
- * 설 계 자 : PHis
- * 작 성 자 : PHis
- * 작 성 일 : 2008.11.28
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <stslist/>
- <weeklist>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_cnt/>
- <mon_cnt/>
- <tue_cnt/>
- <wed_cnt/>
- <thu_cnt/>
- <fri_cnt/>
- <sat_cnt/>
- </list>
- </weeklist>
- </main>
- <send>
- <year/>
- <yyyy/>
- <mm/>
- </send>
- <init>
- </init>
- <hidden>
- <stsflag>1</stsflag>
- <stsfromdd/>
- <ststodd/>
- <stskind>1</stskind>
- <stskind2>1</stskind2>
- <ioflag>0</ioflag>
- <bcollflag>0</bcollflag>
- <btbcollflag>-</btbcollflag>
- <calendar>
- <year/>
- <month/>
- </calendar>
- </hidden>
- </root>
- </instance>
- <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/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit(); //초기화 함수 호출
- //initCalendar();
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLLS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/stslist"/>
- <submission id="TRLLS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/weeklist/list"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //화면 open시 초기화
- function fSetInit() {
- var toDay = getCurrentDate();
- grd_stsList.colHidden(1) = true;
- model.setValue("/root/hidden/stsfromdd", toDay);
- model.setValue("/root/hidden/ststodd" , toDay);
-
- //해당일에 대한 마지막 일자 가져와서 그리드 컬럼 숨기기
- var lastDay = getLastDay(toDay) + 4;
- for(i = lastDay; i > (grd_stsList.cols-1); i--){
- grd_stsList.colHidden(i) = true;
- }
- model.toggle("case1");
- model.refresh();
- }
-
- //통계 희망 월 선택 시 그리드 셋팅 위해 해당월의 마지막 날짜 구함
- function getLastDay(Day){
-
- var year = Day.substr(0,4); //년
- var month = Day.substr(4,2); //월
-
- with(new Date(year, month, 1, 12)) { //MM = 1 .. 12
- setDate(0);
- return getDate();
- }
- }
-
- //조회하고자 하는 월별 그리드 셋팅하기
- function fGrdSet(stsflag){
-
- if(stsflag == 1){ //일별의 경우
- var day = model.getValue("/root/hidden/stsfromdd");
- var lastCol = getLastDay(day) + 3; //선택된 월의 마지막날 + 3(부서명,구분,Total 컬럼)
-
- for(i = 2; i <= grd_stsList.cols; i++){ //부서명때문에 2부터 시작(부서명은 아침채혈일때만 보임)
- if(i <= lastCol){
- grd_stsList.colHidden(i) = false;
- if(i >3){
- grd_stsList.colWidth(i) = 40;
- }
- }else{
- grd_stsList.colHidden(i) = true;
- }
- }
- grd_stsList.caption = "부서명^구분^Total^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31";
- }else if(stsflag == 3){ //연별의 경우
- var fromdd = parseInt(model.getValue("/root/hidden/stsfromdd").substr(0,4));
- var todd = parseInt(model.getValue("/root/hidden/ststodd").substr(0,4));
- var year = fromdd+"^";
- var yearlength;
- for(i = fromdd+1; i <= todd; i++){
- year += i +"^" ;
- }
- model.setValue("/root/send/year", year);
-
- yearlength = year.split("^").length;
-
- for(i = 4; i<=grd_stsList.cols; i++){
- if(i <yearlength+3){
- grd_stsList.colHidden(i) = false;
- grd_stsList.colWidth(i) = 80;
- }else{
- grd_stsList.colHidden(i) = true;
- }
- }
- grd_stsList.caption = "부서명^구분^Total^"+ year;
-
- }
- model.refresh();
- }
-
- //조회구분 선택시 통계희망월 포멧 지정 및 그리드 컬럼 지정하기
- function fShowHopeddnGridSet(){
-
- model.removeNodeset("/root/main/stslist");
-
- if(radio1.value == 3){ //연별
- model.setValue("/root/hidden/stsfromdd", getCurrentDate().substr(0, 4));
- model.setValue("/root/hidden/ststodd", getCurrentDate().substr(0, 4));
- grd_stsList.colWidth(4) = 80;
- for(i = 5; i<= grd_stsList.cols;i++){
- grd_stsList.colHidden(i) = true;
- }
- ipt_stsfromdd.attribute("format") = "yyyy";
- ipt_ststodd.visible = true; //todd날짜
- caption9.visible = true;
- grd_stsList.caption = "부서명^구분^Total^"+ model.getValue("/root/hidden/stsfromdd");
- model.setValue("/root/send/year", getCurrentDate().substr(0, 4));
-
- }else{
- ipt_ststodd.visible = false;
- caption9.visible = false;
- if(radio1.value == 1){ //일별
-
- ipt_stsfromdd.attribute("format") = "yyyy-mm";
- model.setValue("/root/hidden/stsfromdd", getCurrentDate().substr(0, 6));
- fGrdSet(1);
- }else{ //월별
- model.setValue("/root/hidden/stsfromdd", getCurrentDate().substr(0, 4));
- ipt_stsfromdd.attribute("format") = "yyyy";
- for(i = 2; i <= grd_stsList.cols; i++){ //부서명때문에 2부터 시작(부서명은 아침채혈일때만 보임)
- if(i <= 15){
- grd_stsList.colHidden(i) = false;
- if(i >3){
- grd_stsList.colWidth(i) = 75;
- }
- }else{
- grd_stsList.colHidden(i) = true;
- }
- }
- grd_stsList.caption = "부서명^구분^Total^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31";
- }
- }
-
- model.refresh();
- }
-
- //조회
- function fGetStats(){
-
- var fromdd = model.getValue("/root/hidden/stsfromdd");
- var lastday = getLastDay(fromdd);
-
- model.makeValue("/root/send/stsflag" , model.getValue("/root/hidden/stsflag")); //조회구분 1: 일별, 2: 월별, 3: 연별
- model.makeValue("/root/send/stsfromdd" , fromdd); //조회시작
- model.makeValue("/root/send/ststodd" , model.getValue("/root/hidden/ststodd")); //조회끝
- model.makeValue("/root/send/stskind" , model.getValue("/root/hidden/stskind")); //통계구분 1: 시행부서, 2: 진료과, 3: 진료의, 4: 채혈자, 5: 시간대별 (단, 병동 및 아침채혈의 경우 1: 병동별)
- model.makeValue("/root/send/stskind2" , model.getValue("/root/hidden/stskind2")); //통계구분2 1:바코드, 2: 환자, 3: 처방건수
- model.makeValue("/root/send/bcollflag" , model.getValue("/root/hidden/bcollflag")); //채혈구분 0: 채혈, 1: 외래채혈, 2: 병동채혈, 3: 아침채혈
- model.makeValue("/root/send/btbcollflag" , model.getValue("/root/hidden/btbcollflag")); //아침채혈구분 -: 전체, 1: BT, 2: TT(아침채혈만 사용)
- model.makeValue("/root/send/ioflag" , model.getValue("/root/hidden/ioflag")); //입원/외래 구분
- model.makeValue("/root/send/lastday" , lastday); //연별조회시 사용
-
- submit("TRLLS00101");
-
- grd_stsList.colStyle(3, "data", "background-color") = "#ffe79d";
- grd_stsList.rowStyle(1, "data", "background-color") = "#7BE6B7";
- }
-
- //통계 종류에따라 조건 변경 flag 1: 채혈, 2: 외래채혈, 3:병동채혈, 4:아침채혈
- function fSwitch(flag){
-
- model.toggle("case1");
- btn_excel.visible = true;
-
- if(flag == 1){
- if(cbo_2.value == "4" || cbo_2.value == "5"){ //외래채혈의 통계구분이 채혈자별이나 시간대별일 경우
- cbo_1.value = "1"; //통계구분을 시행부서별로 초기화
- }
- cbo_1.visible = true; //통계구분 콤보
- cbo_2.visible = false;
- cbo_3.visible = false;
- cbo_io.visible = true; //입원외래 콤보
- caption5.visible = true;
- caption16.visible = false;
- cbo_bt.visible = false; //채혈구분 콤보(아침채혈일 경우에만 사용)
- cbo_io.value = "0";
- model.setValue("/root/hidden/bcollflag", "0");
- grd_stsList.colHidden(1) = true; //병동명(아침채혈에만 사용)
- }else if(flag == 2){
- cbo_1.visible = false;
- cbo_2.visible = true;
- cbo_3.visible = false;
- cbo_io.visible = true;
- caption5.visible = true;
- caption16.visible = false;
- cbo_bt.visible = false;
- cbo_io.value = "0";
- model.setValue("/root/hidden/bcollflag", "1");
- grd_stsList.colHidden(1) = true;
- }else if(flag == 3){
- cbo_1.visible = false;
- cbo_2.visible = false;
- cbo_3.visible = true;
- cbo_io.visible = false;
- caption5.visible = false;
- caption16.visible = false;
- cbo_bt.visible = false;
- cbo_io.value = "-"; //입원외래 구분이 없기때문에 -로 강제 변경
- cbo_1.value = "1"; //통계구분을 병동별로 초기화
- model.setValue("/root/hidden/bcollflag", "2");
- grd_stsList.colHidden(1) = true;
- }else if(flag == 4){
- cbo_1.visible = false;
- cbo_2.visible = false;
- cbo_3.visible = true;
- cbo_io.visible = false;
- caption5.visible = false;
- caption16.visible = true;
- cbo_bt.visible = true;
- cbo_io.value = "-";
- cbo_1.value = "1"; //통계구분을 병동별로 초기화
- model.setValue("/root/hidden/bcollflag", "3");
- grd_stsList.colHidden(1) = false;
- }
-
- model.removeNodeset("/root/main/stslist");
- grd_stsList.rebuildStyle();
- model.refresh();
- }
-
- ///////////////////////////////////////////////////////////////달력편///////////////////////////////////////////////////////////
-
- var beforeId = "";
-
- function initCalendar() {
- var curDate = getCurrentDate().toDate();
-
- model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
- model.refresh();
-
- setCalendar(curDate);
- }
-
- function setCalendar(dateObj) {
-
- // 그리드 초기화
- model.removeNodeset("/root/main/weeklist/list");
- grd_calendar.rebuild();
-
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- for( var i = 0; i < rows; i++ )
- grd_calendar.addRow(false);
-
- grd_calendar.rebuild();
-
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
- fGetCalendar();// 통계조회
- }
-
- function setCellColor(gridObj) {
-
- var calRow = gridObj.row;
- var calCol = gridObj.col;
- var tmpCalCol;
-
- if( calCol < 7 )
- tmpCalCol = calCol + 7;
- else
- tmpCalCol = calCol - 7;
-
- gridObj.rebuildStyle();
-
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
- gridObj.cellStyle("background-color", calRow, tmpCalCol) = "#daa7d9";
- }
-
- function fGetCalendar(){
- model.setValue("/root/send/yyyy", model.getValue("/root/hidden/calendar/year"));
- model.setValue("/root/send/mm", model.getValue("/root/hidden/calendar/month"));
- submit("TRLLS00102");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <switch id="switch1" style="left:0px; top:39px; width:1195px; height:744px; ">
- <case id="case1" selected="true">
- <group id="group3" scroll="auto" style="left:0px; top:22px; width:1193px; height:719px; ">
- <group id="group1" style="left:0px; top:0px; width:1192px; height:55px; vertical-align:middle; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1192px; height:55px; "/>
- <button id="btn_ref" class="btn1_letter2" style="left:1116px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/hidden/stsflag") == 3){
- var fromdd = parseInt(model.getValue("/root/hidden/stsfromdd").substr(0,4));
- var todd = parseInt(model.getValue("/root/hidden/ststodd").substr(0,4));
- if(todd - fromdd >9 ){
- alert("10년 이내로 조회 가능합니다\n조회기간을 다시 선택하세요");
- return;
- }
- }
- fGetStats();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:1093px; y1:7px; x2:1093px; y2:49px; "/>
- <input id="ipt_stsfromdd" ref="/root/hidden/stsfromdd" class="input_search" inputtype="date" format="yyyy-mm" style="left:463px; top:9px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var stsflag = model.getValue("/root/hidden/stsflag");
- model.removeNodeset("/root/main/stslist");
- fGrdSet(stsflag);
- ]]>
- </script>
- </input>
- <input id="ipt_ststodd" ref="/root/hidden/ststodd" class="input_search" visibility="hidden" inputtype="date" format="yyyy" style="left:573px; top:9px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var stsflag = model.getValue("/root/hidden/stsflag");
- model.removeNodeset("/root/main/stslist");
- fGrdSet(stsflag);
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:365px; top:9px; width:115px; height:17px; ">조회기간 :</caption>
- <caption id="caption9" class="search_no_b" visibility="hidden" style="left:560px; top:9px; width:23px; height:17px; ">~</caption>
- <select1 id="cbo_io" ref="/root/hidden/ioflag" visibility="visible" appearance="minimal" style="left:825px; top:31px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>- 전 체 -</label>
- <value>0</value>
- </item>
- <item>
- <label>입 원</label>
- <value>I</value>
- </item>
- <item>
- <label>외 래</label>
- <value>O</value>
- </item>
- <item>
- <label>응 급</label>
- <value>E</value>
- </item>
- <item>
- <label>건 진</label>
- <value>S</value>
- </item>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" visibility="visible" style="left:729px; top:31px; width:94px; height:17px; ">입원/외래 :</caption>
- <select1 id="radio2" ref="/root/hidden/stskind2" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:463px; top:31px; width:202px; height:20px; 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>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.removeNodeset("/root/main/stslist");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:5px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
- <select1 id="radio1" ref="/root/hidden/stsflag" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:95px; top:9px; width:210px; height:20px; 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>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fShowHopeddnGridSet();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:365px; top:32px; width:95px; height:17px; ">통계구분2 :</caption>
- <select1 id="cbo_1" ref="/root/hidden/stskind" visibility="visible" appearance="minimal" style="left:96px; top:31px; width:122px; height:19px; ">
- <choices>
- <item>
- <label>시행부서별</label>
- <value>1</value>
- </item>
- <item>
- <label>진료과별</label>
- <value>2</value>
- </item>
- <item>
- <label>진료의사별</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="cbo_2" ref="/root/hidden/stskind" visibility="hidden" appearance="minimal" style="left:96px; top:31px; width:122px; height:19px; ">
- <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>
- </choices>
- </select1>
- <select1 id="cbo_3" ref="/root/hidden/stskind" visibility="hidden" appearance="minimal" style="left:96px; top:31px; width:122px; height:19px; ">
- <choices>
- <item>
- <label>병동별</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" visibility="visible" style="left:5px; top:32px; width:94px; height:17px; ">통계구분 :</caption>
- <select1 id="cbo_bt" ref="/root/hidden/btbcollflag" visibility="hidden" appearance="minimal" style="left:825px; top:10px; width:111px; height:19px; ">
- <choices>
- <item>
- <label>- 전 체 -</label>
- <value>-</value>
- </item>
- <item>
- <label>Bleeding Time</label>
- <value>1</value>
- </item>
- <item>
- <label>Tuberculin Test</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption16" class="search_name" visibility="hidden" style="left:729px; top:11px; width:94px; height:17px; ">채혈 구분 :</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1193px; y2:71px; "/>
- <caption id="caption6" class="tit_2" style="left:5px; top:57px; width:134px; height:13px; ">통계 리스트</caption>
- <datagrid id="grd_stsList" nodeset="/root/main/stslist" caption="부서명^구분^Total^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31" colsep="^" colwidth="110,100, 60, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40" dataheight="23" frozencols="2" frozenrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:0px; top:76px; width:1193px; height:639px; text-align:center; ">
- <col ref="stsnm2" style="text-align:left; "/>
- <col ref="stsnm" style="text-align:left; "/>
- <col ref="total" format="#,###.#" style="text-align:right; "/>
- <col ref="d01" format="#,###.#" style="text-align:right; "/>
- <col ref="d02" format="#,###.#" style="text-align:right; "/>
- <col ref="d03" format="#,###.#" style="text-align:right; "/>
- <col ref="d04" format="#,###.#" style="text-align:right; "/>
- <col ref="d05" format="#,###.#" style="text-align:right; "/>
- <col ref="d06" format="#,###.#" style="text-align:right; "/>
- <col ref="d07" format="#,###.#" style="text-align:right; "/>
- <col ref="d08" format="#,###.#" style="text-align:right; "/>
- <col ref="d09" format="#,###.#" style="text-align:right; "/>
- <col ref="d10" format="#,###.#" style="text-align:right; "/>
- <col ref="d11" format="#,###.#" style="text-align:right; "/>
- <col ref="d12" format="#,###.#" style="text-align:right; "/>
- <col ref="d13" format="#,###.#" style="text-align:right; "/>
- <col ref="d14" format="#,###.#" style="text-align:right; "/>
- <col ref="d15" format="#,###.#" style="text-align:right; "/>
- <col ref="d16" format="#,###.#" style="text-align:right; "/>
- <col ref="d17" format="#,###.#" style="text-align:right; "/>
- <col ref="d18" format="#,###.#" style="text-align:right; "/>
- <col ref="d19" format="#,###.#" style="text-align:right; "/>
- <col ref="d20" format="#,###.#" style="text-align:right; "/>
- <col ref="d21" format="#,###.#" style="text-align:right; "/>
- <col ref="d22" format="#,###.#" style="text-align:right; "/>
- <col ref="d23" format="#,###.#" style="text-align:right; "/>
- <col ref="d24" format="#,###.#" style="text-align:right; "/>
- <col ref="d25" format="#,###.#" style="text-align:right; "/>
- <col ref="d26" format="#,###.#" style="text-align:right; "/>
- <col ref="d27" format="#,###.#" style="text-align:right; "/>
- <col ref="d28" format="#,###.#" style="text-align:right; "/>
- <col ref="d29" format="#,###.#" style="text-align:right; "/>
- <col ref="d30" format="#,###.#" style="text-align:right; "/>
- <col ref="d31" format="#,###.#" style="text-align:right; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_stsList.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- </case>
- <case id="case2">
- <group id="group2" scroll="auto" style="left:0px; top:22px; width:1193px; height:719px; ">
- <multilinegrid id="grd_calendar" nodeset="/root/main/weeklist/list" class="gridcalendar2" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="170, 170, 170, 170, 170, 170, 170" extendlastcol="noscroll" focuscolor="transparent" rowsep="|" mergecellsfixedrows="bycolrec" style="left:0px; top:85px; width:1193px; height:595px; ">
- <row>
- <col class="color_sun" ref="sun" style="font-weight:bolder; text-align:center; border-bottom-width:0px; "/>
- <col ref="mon" style="font-weight:bolder; text-align:center; border-bottom-width:0px; "/>
- <col ref="tue" style="font-weight:bolder; text-align:center; border-bottom-width:0px; "/>
- <col ref="wed" style="font-weight:bolder; text-align:center; border-bottom-width:0px; "/>
- <col ref="thu" style="font-weight:bolder; text-align:center; border-bottom-width:0px; "/>
- <col ref="fri" style="font-weight:bolder; text-align:center; border-bottom-width:0px; "/>
- <col class="color_sat" ref="sat" style="font-weight:bolder; text-align:center; border-bottom-width:0px; "/>
- </row>
- <row>
- <col ref="sun_cnt" style="text-align:center; border-top-width:0px; "/>
- <col ref="mon_cnt" style="text-align:center; border-top-width:0px; "/>
- <col ref="tue_cnt" style="text-align:center; border-top-width:0px; "/>
- <col ref="wed_cnt" style="text-align:center; border-top-width:0px; "/>
- <col ref="thu_cnt" style="text-align:center; border-top-width:0px; "/>
- <col ref="fri_cnt" style="text-align:center; border-top-width:0px; "/>
- <col ref="sat_cnt" style="text-align:center; border-top-width:0px; "/>
- </row>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // setCellColor(grd_calendar);
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- setCellColor(grd_calendar);
- ]]>
- </script>
- <script type="javascript" ev:event="oncolchanged">
- <![CDATA[
- setCellColor(grd_calendar);
- ]]>
- </script>
- </multilinegrid>
- <group id="grp_calendar" style="left:0px; top:21px; width:1193px; height:65px; ">
- <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:1193px; height:65px; "/>
- <button id="button131" class="icon_pre_year" style="left:480px; top:27px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
- ]]>
- </script>
- </button>
- <button id="button132" class="icon_next_year" style="left:695px; top:27px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
- ]]>
- </script>
- </button>
- <button id="btn_premonth" class="icon_pre_month" style="left:499px; top:27px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
- ]]>
- </script>
- </button>
- <button id="button134" class="icon_next_month" style="left:676px; top:27px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:525px; top:24px; width:50px; height:19px; font-size:12pt; "/>
- <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:600px; top:24px; width:40px; height:19px; font-size:12pt; "/>
- <caption id="caption101" class="calendar_output" style="left:575px; top:24px; width:20px; height:19px; font-size:12pt; ">년</caption>
- <caption id="caption102" class="calendar_output" style="left:640px; top:24px; width:20px; height:19px; font-size:12pt; ">월</caption>
- <button id="btn_cal" class="btn1_letter2" visibility="hidden" style="left:1116px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCalendar();
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" style="left:0px; top:680px; width:360px; height:35px; ">
- <button id="button111" class="icon_month" style="left:0px; top:3px; width:27px; height:27px; ">
- <caption>01</caption>
- </button>
- <button id="button112" class="icon_month" style="left:30px; top:3px; width:27px; height:27px; ">
- <caption>02</caption>
- </button>
- <button id="button113" class="icon_month" style="left:60px; top:3px; width:27px; height:27px; ">
- <caption>03</caption>
- </button>
- <button id="button114" class="icon_month" style="left:90px; top:3px; width:27px; height:27px; ">
- <caption>04</caption>
- </button>
- <button id="button115" class="icon_month" style="left:120px; top:3px; width:27px; height:27px; ">
- <caption>05</caption>
- </button>
- <button id="button116" class="icon_month" style="left:150px; top:3px; width:27px; height:27px; ">
- <caption>06</caption>
- </button>
- <button id="button117" class="icon_month" style="left:180px; top:3px; width:27px; height:27px; ">
- <caption>07</caption>
- </button>
- <button id="button118" class="icon_month" style="left:210px; top:3px; width:27px; height:27px; ">
- <caption>08</caption>
- </button>
- <button id="button119" class="icon_month" style="left:240px; top:3px; width:27px; height:27px; ">
- <caption>09</caption>
- </button>
- <button id="button110" class="icon_month" style="left:270px; top:3px; width:27px; height:27px; ">
- <caption>10</caption>
- </button>
- <button id="button121" class="icon_month" style="left:300px; top:3px; width:27px; height:27px; ">
- <caption>11</caption>
- </button>
- <button id="button122" class="icon_month" style="left:330px; top:3px; width:27px; height:27px; ">
- <caption>12</caption>
- </button>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var trgObj = document.controls.item(event.target);
-
- if( trgObj.elementName == "xforms:button" ) {
- var btnMark = trgObj.label;
- //alert(btnMark);
-
- model.setValue("/root/hidden/calendar/month", btnMark);
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
-
- if(beforeId != ""){
- beforeObj = document.controls(beforeId);
- if(beforeObj != null) beforeObj.disabled = "false";
- }
- trgObj.disabled = "true";
- beforeId = trgObj.attribute("id");
- }
- ]]>
- </script>
- </group>
- <line id="line4" class="line_1" style="x1:0px; y1:16px; x2:1193px; y2:16px; "/>
- <caption id="caption7" class="tit_2" style="left:5px; top:2px; width:157px; height:14px; ">외래채혈 환자수 달력편</caption>
- </group>
- </case>
- </switch>
- <caption id="caption10" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">채혈 통계</caption>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line2" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fPrint();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn6_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
- <caption>EXCEL저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var flagnm;
- var flag = model.getValue("/root/hidden/bcollflag");
- if(flag == 0){
- flagnm = "채혈";
- }else if(flag == 1){
- flagnm = "외래채혈통계_";
- }else if(flag == 2){
- flagnm = "병동채혈통계_";
- }else if(flag == 3){
- flagnm = "아침채혈통계_";
- }
- var fileName = window.fileDialog("save", ",", false, flagnm+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_stsList.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- </group>
- <button id="button3" class="btn_sw" group="tab" selected="true" style="left:1px; top:40px; width:70px; height:22px; ">
- <caption>채혈</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSwitch(1);
- //model.toggle("case1");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn_sw" visibility="visible" group="tab" style="left:71px; top:40px; width:70px; height:22px; ">
- <caption>외래채혈</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSwitch(2);
- //model.toggle("case2");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn_sw" visibility="visible" group="tab" style="left:141px; top:40px; width:70px; height:22px; ">
- <caption>병동채혈</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSwitch(3);
- //model.toggle("case3");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn_sw" visibility="visible" group="tab" style="left:211px; top:40px; width:70px; height:22px; ">
- <caption>아침채혈</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSwitch(4);
- //model.toggle("case4");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn_sw" visibility="visible" group="tab" style="left:281px; top:40px; width:70px; height:22px; ">
- <caption>달력편</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- btn_excel.visible = false;
- initCalendar();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|