123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMSDT00600_의뢰종류별영적돌봄의뢰현황.xrw
- * 설 명 : 의뢰종류별영적돌봄의뢰현황
- * 작 성 자 : 김다영
- * 작 성 일 : 2008.08.25
- * 수정이력 :
- * 기 타 :
- -->
- <?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="">
- <main>
- <reqcareinfo>
- <reqcareinfolist>
- <item/>
- <nursecnt/>
- <othercnt/>
- <fthcnt/>
- <total/>
- </reqcareinfolist>
- </reqcareinfo>
- <cond>
- <searchflag>1</searchflag>
- <endyy/>
- <entryy/>
- <fromyear/>
- <toyear/>
- <cap2/>
- </cond>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- <comcodelist>
- </comcodelist>
- <jobrespcd/>
- </init>
- <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/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fGetComCdList();
- //fGetJobrespcd(); //원목자권한
-
- ]]>
- </script>
- <submission id="TRAYA00101" ref="/send/reqdata" resultref="/root/init/comcodelist/conslrlist"/>
- <submission id="TRSDT00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/reqcareinfo"/>
- <bind id="total" ref="/root/main/reqcareinfo/reqcareinfolist/total" calculate="../nursecnt + ../othercnt + ../fthcnt"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /**========================================================================================================================================
- * 원목자조회, 그리드초기화
- =========================================================================================================================================*/
- function fGetComCdList(){
-
- ipt_endyy.visible = true;
- ipt_entryy.visible = false;
- ipt_fromyear.visible = false;
- ipt_toyear.visible = false;
- cap2.visible = false;
-
- var currentDate = getCurrentDate();
- var currentYear = currentDate.substring(0, 4);
-
- // 그리드초기화
- model.removeNodeset("/root/main/reqcareinfo/reqcareinfolist");
-
- model.setValue("/root/main/cond/endyy" ,currentYear);
- model.setValue("/root/main/cond/entryy" ,currentYear);
- model.setValue("/root/main/cond/fromyear" ,currentYear);
- model.setValue("/root/main/cond/toyear" ,currentYear);
-
- model.removeNodeset(grd_reqcareinfo.nodeset);
- model.refresh();
-
- }
-
- /**========================================================================================================================================
- * 월별원목업무총집계표 조회
- =========================================================================================================================================*/
- function fGetReqCareInfo(){
-
- var searchflag = model.getValue("/root/main/cond/searchflag");
- var endyy = model.getValue("/root/main/cond/endyy");
- var entryy = model.getValue("/root/main/cond/entryy");
- var fromyear = model.getValue("/root/main/cond/fromyear");//+ "0101";
- var toyear = model.getValue("/root/main/cond/toyear");//+ "0101";
- var currentDate = getCurrentDate();
- var currentYear = currentDate.substring(0, 4);
- //조회기간 제한
- var dateintval = getDateInterval(fromyear,toyear);
-
- //lert(endyy);
- //alert(entryy);
-
- if(searchflag == '1'){ //월별
- if( endyy == ""){
- messageBox("조회년도를","C001" );
- model.setFocus("ipt_endyy");
- model.refresh();
- return;
- }
- }else if(searchflag == '2'){ //분기별
- if( entryy == ""){
- messageBox("조회년도를","C001" );
- model.setFocus("ipt_entryy");
- //model.setValue("/root/main/cond/entryy" ,currentYear);
- model.refresh();
- return;
- }
- }else if(searchflag == '3'){ //년도별
- if(dateintval>1825)
- {
- messageBox("조회기간은 최대5년까지 할 수 있습니다.","I");
- model.setFocus("ipt_fromyear");
- return;
- }
- else if(fromyear =="" || toyear ==""){ //날짜변경
- messageBox("조회년도를","C001" );
- model.setFocus("ipt_fromyear");
- return;
- }
- else if(fromyear>toyear)
- {
- messageBox("조회시작일자보다 큰 조회종료일자를 입력하십시요.","I");
- model.setFocus("ipt_fromyear");
- return;
- }
- }
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- submit("TRSDT00601");
-
- //데이터가없을때 return
- if (model.instances(0).selectNodes("/root/main/reqcareinfo/reqcareinfolist").length == 0){
- return;
- }
- // 합계계산
- var insRow = grd_reqcareinfo.rows ;
- grd_reqcareinfo.addRow(insRow, false);
- grd_reqcareinfo.valueMatrix(insRow, grd_reqcareinfo.colRef("item")) = "합계";
- for(var i = grd_reqcareinfo.colRef("nursecnt") ; i <= grd_reqcareinfo.colRef("total") ; i++){
- var sSum = 0 ;
- //alert(grd_patvstinfolist.fixedRows);
- //alert( eval(grd_patvstinfolist.rows));
- for(var j = grd_reqcareinfo.fixedRows; j < eval(grd_reqcareinfo.rows -1 ) ; j++){
- sSum = sSum + eval(grd_reqcareinfo.valueMatrix(j, i));
- //alert(grd_patvstinfolist.valueMatrix(j, i));
- }
- //alert(grd_patvstinfolist.valueMatrix(j, i) + " : " + j + " : " + i);
- grd_reqcareinfo.valueMatrix(insRow, i) = sSum;
-
-
- }
- model.refresh();
- }
- /**========================================================================================================================================
- * 엑셀저장 버튼 클릭시
- =========================================================================================================================================*/
-
- function fExcel() {
- if (grd_reqcareinfo.rows <= 1) {
- messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
-
- var fileName = window.fileDialog("save", ",", false, "의뢰종류별 영적돌봄의뢰현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_reqcareinfo.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- }
- /**========================================================================================================================================
- * 월별원목업무총집계표 초기화
- =========================================================================================================================================*/
- function fInitialize()
- {
- // 그리드초기화
- model.removeNodeset("/root/main/reqcareinfo/reqcareinfolist");
-
- model.removeNodeset("/root/main/cond/endyy");
- model.removeNodeset("/root/main/cond/entryy");
- model.removeNodeset("/root/main/cond/fromyear");
- model.removeNodeset("/root/main/cond/toyear");
-
- model.removeNodeset(grd_reqcareinfo.nodeset);
-
- var currentDate = getCurrentDate();
- var currentYear = currentDate.substring(0, 4);
-
- model.makeValue("/root/main/cond/endyy" ,currentYear);
- model.makeValue("/root/main/cond/entryy" ,currentYear);
- model.makeValue("/root/main/cond/fromyear" ,currentYear);
- model.makeValue("/root/main/cond/toyear" ,currentYear);
-
-
- //cmb_conslrid.select(0);
-
- model.refresh();
-
- }
- /**========================================================================================================================================
- * 원목자 권한
- =========================================================================================================================================*/
- function fGetJobrespcd(){
-
- //사용자ID (입력자 또는 로그인한 사용자ID)
-
- var userid = getUserInfo("userid");
- model.setValue(cmb_conslrid.attribute("ref"), userid);
-
- model.refresh();
-
- var code = getUserInfo('jobrespcd');
- if(code == '1070' || code == '1020' || code =='1030'){
- cmb_conslrid.disabled = false;
- }else{
- cmb_conslrid.disabled = true;
- }
- }
- /**========================================================================================================================================
- * 조회조건 구분(원목자별,월별,분기별,년도별)
- =========================================================================================================================================*/
- function fSearchflag(){
-
- var searchflag = model.getValue("/root/main/cond/searchflag");
- var todd = model.getValue("/root/main/cond/toddg");
- var endyy = model.getValue("/root/main/cond/sendyy");
- var entryy = model.getValue("/root/main/cond/entryy");
- var fromyear = model.getValue("/root/main/cond/fromyear");
- var toyear = model.getValue("/root/main/cond/toyear");
- //var cap1 = model.getValue("/root/main/cond/cap1");
- //var cap2 = model.getValue("/root/main/cond/cap2");
-
-
- if(searchflag == '1'){ //월별
-
- ipt_endyy.visible = true;
- ipt_entryy.visible = false;
- ipt_fromyear.visible = false;
- ipt_toyear.visible = false;
- cap2.visible = false;
- model.refresh();
-
- }else if(searchflag == '2'){ //분기별
-
- ipt_endyy.visible = false;
- ipt_entryy.visible = true;
- ipt_fromyear.visible = false;
- ipt_toyear.visible = false;
- cap2.visible = false;
- model.refresh();
-
- }else if(searchflag == '3'){ //년도별
-
- ipt_endyy.visible = false;
- ipt_entryy.visible = false;
- ipt_fromyear.visible = true;
- ipt_toyear.visible = true;
- cap2.visible = true;
- model.refresh();
- }
- model.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:194px; height:14px; ">의뢰종류별 영적돌봄의뢰 현황</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_search0" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption21" class="tit_2" style="left:0px; top:50px; width:196px; height:14px; ">의뢰종류별 영적돌봄의뢰 현황</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:69px; "/>
- <group id="group4" style="left:0px; top:5px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="button2" class="btn1_letter2" navindex="3" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetReqCareInfo();
- ]]>
- </script>
- </button>
- <line id="line2" style="x1:1113px; y1:7px; x2:1113px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_endyy" ref="/root/main/cond/endyy" maxlength="4" style="left:195px; top:8px; width:55px; height:19px; "/>
- <select1 id="rdo_flag" ref="/root/main/cond/searchflag" overflow="visible" appearance="full" cols="4" rows="1" style="left:15px; top:8px; width:175px; 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-value-changed">
- <![CDATA[
- fSearchflag();
- fGetReqCareInfo();
- ]]>
- </script>
- </select1>
- <input id="ipt_entryy" ref="/root/main/cond/entryy" maxlength="4" style="left:196px; top:8px; width:55px; height:19px; "/>
- <input id="ipt_fromyear" ref="/root/main/cond/fromyear" navindex="1" maxlength="4" style="left:195px; top:8px; width:55px; height:19px; "/>
- <input id="ipt_toyear" ref="/root/main/cond/toyear" navindex="2" maxlength="4" style="left:274px; top:8px; width:55px; height:19px; "/>
- <caption id="cap2" style="left:250px; top:8px; width:25px; height:20px; text-align:center; ">~</caption>
- </group>
- <datagrid id="grd_reqcareinfo" nodeset="/root/main/reqcareinfo/reqcareinfolist" autoresize="true" caption="구 분^간호정보지에 의한 의뢰(건)^타과의뢰(건)^기타의뢰(건)^총계(건)|구 분^간호정보지에 의한 의뢰(건)^타과의뢰(건)^기타의뢰(건)^총계(건)|구 분^간호정보지에 의한 의뢰(건)^타과의뢰(건)^기타의뢰(건)^총계(건)" colsep="^" colwidth="160, 160, 150, 150, 150" mergecellsfixedrows="byrowrec" rowsep="|" style="left:0px; top:73px; width:1195px; height:662px; ">
- <col ref="item" style="text-align:center; "/>
- <col ref="nursecnt" format="#,###" style="text-align:center; "/>
- <col ref="othercnt" format="#,###" style="text-align:center; "/>
- <col ref="fthcnt" format="#,###" style="text-align:center; "/>
- <col ref="total" format="#,###" style="text-align:center; "/>
- </datagrid>
- <button id="btn_excel" class="btn2_letter4" navindex="4" style="left:1125px; top:46px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|