123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAYA02700.원목상담현황조회.xrw
- * 설 명 : 원목상담현황리스트
- * 작 성 자 : 김다영
- * 작 성 일 : 2007.12.22
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <fthconsult>
- <fthconsultlinfo>
- <conslrnm/>
- <acttims/>
- <acttims_pid/>
- <pro_acttims/>
- <pro_pid/>
- <tea_acttims/>
- <tea_pid/>
- <oth_acttims/>
- <oth_pid/>
- <tot_acttims/>
- <tot_pid/>
- <conslrid/>
- <monthly/>
- <yearly/>
- <quarterly/>
- </fthconsultlinfo>
- </fthconsult>
- <cond>
- <srchfromdd/>
- <srchtodd/>
- <sort>1</sort>
- <from/>
- <to/>
- <year>1</year>
- </cond>
- </main>
- <send>
- <reqdata>
- </reqdata>
- </send>
- <init>
- <comcodelist>
- <conslrlist>
- <conslrlistinfo>
- <conslrid/>
- <conslrnm>전체</conslrnm>
- </conslrlistinfo>
- </conslrlist>
- </comcodelist>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.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="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRAYA00101" method="post" resultref="/root/init/comcodelist/conslrlist"/>
- <submission id="TRZBC00101" method="post"/>
- <submission id="TRAYA02801" method="post" resultref="/root/init/comcodelist/chrgconslrlist"/>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRAYA05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/fthconsult"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /**========================================================================================================================================
- * 화면 오픈시
- =========================================================================================================================================*/
- function fInit() {
- //그리드 초기화
- model.removeNodeset("/root/main/fthconsultlist/fthconsultlistinfo");
- grd_fthconsultstatus.refresh();
-
- //상담조회일자 현재일자로 세팅
-
- var curDt = getCurrentDate();
- model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
- model.setValue(ipt_srchtodd.attribute("ref") , curDt);
-
- ipt_from.visible = false;
- ipt_to.visible = false;
- ipt_srchfromdd.visible = true;
- ipt_srchtodd.visible = true;
- cap_fromto.visible = true;
- cmb_year.visible = false;
-
- ipt_srchfromdd.attribute("width") = "80";
- ipt_srchtodd.attribute("width") = "80";
- ipt_srchfromdd.attribute('format') = 'yyyy-mm';
- ipt_srchtodd.attribute('format') = 'yyyy-mm';
-
-
- rdo_sort.select(0);
- grd_fthconsultstatus.valueMatrix(1,0)="원목자별";
- model.refresh();
- }
-
- /**========================================================================================================================================
- * 원목상담현황조회
- =========================================================================================================================================*/
- function fGetFthConsult(){
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- submit("TRAYA05101");
-
- }
-
- /**========================================================================================================================================
- * 원목상담현황 초기화
- =========================================================================================================================================*/
- function fInitialize()
- {
- // 그리드초기화
- model.removeNodeset("/root/main/fthconsultlist/fthconsultlistinfo");
- model.resetInstanceNode("/root/main/fthconsultlist/totaltime/tottm");
-
- // 오늘 날짜로 세팅
- var curDt = getCurrentDate();
- model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
- model.setValue(ipt_srchtodd.attribute("ref") , curDt);
-
- model.removeNodeset(grd_fthconsultstatus.nodeset);
- model.refresh();
- }
-
- /**========================================================================================================================================
- * 조회조건 구분에 따라 조회시작 종료일 변경
- =========================================================================================================================================*/
- function fDate(sort){
-
- //원목자별
- if(sort == '1'){
- var curDt = getCurrentDate();
- model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
- model.setValue(ipt_srchtodd.attribute("ref") , curDt);
-
- ipt_from.visible = false;
- ipt_to.visible = false;
- ipt_srchfromdd.visible = true;
- ipt_srchtodd.visible = true;
- cap_fromto.visible = true;
- cmb_year.visible = false;
-
- ipt_srchfromdd.attribute("width") = "80";
- ipt_srchtodd.attribute("width") = "80";
- ipt_srchfromdd.attribute('format') = 'yyyy-mm';
- ipt_srchtodd.attribute('format') = 'yyyy-mm';
-
- }
-
- //월별
- else if(sort == '2'){
- var curDt = getCurrentDate();
- var curYearDt = curDt.substring(0, 4);
-
- model.setValue("/root/main/cond/from", curYearDt);
- model.setValue("/root/main/cond/to", curYearDt);
-
- ipt_from.visible = true;
- ipt_to.visible = false;
- ipt_srchfromdd.visible = false;
- ipt_srchtodd.visible = false;
- cap_fromto.visible = false;
- cmb_year.visible = false;
-
- ipt_from.attribute('format') = 'yyyy';
-
- }
-
- //분기별
- else if(sort == '3'){
- var curDt = getCurrentDate();
- var curYearDt = curDt.substring(0, 4);
-
- model.setValue("/root/main/cond/from", curYearDt);
- model.setValue("/root/main/cond/to", curYearDt);
-
- ipt_from.visible = true;
- ipt_to.visible = false;
- ipt_srchfromdd.visible = false;
- ipt_srchtodd.visible = false;
- cap_fromto.visible = false;
- cmb_year.visible = true;
-
- ipt_from.attribute('format') = 'yyyy';
-
- }
-
- //년도별
- else if(sort == '4'){
- var curDt = getCurrentDate();
- var curYearDt = curDt.substring(0, 4);
-
- model.setValue("/root/main/cond/from", curYearDt);
- model.setValue("/root/main/cond/to", curYearDt);
-
- ipt_from.visible = true;;
- ipt_to.visible = true;
- ipt_srchfromdd.visible = false;
- ipt_srchtodd.visible = false;
- cap_fromto.visible = true;
- cmb_year.visible = false;
-
- ipt_from.attribute('format') = 'yyyy';
- ipt_to.attribute('format') = 'yyyy';
-
- }
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" 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:181px; height:14px; ">원목상담현황</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:61px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; ">0000</shape>
- <button id="btn_select" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetFthConsult();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:260px; top:20px; width:99px; height:17px; ">조회기간 :</caption>
- <caption id="cap_fromto" class="search_no_b" style="left:470px; top:20px; width:12px; height:17px; ">~</caption>
- <input id="ipt_srchtodd" ref="/root/main/cond/srchtodd" class="input_search" inputtype="date" style="left:490px; top:20px; width:90px; height:19px; "/>
- <input id="ipt_srchfromdd" ref="/root/main/cond/srchfromdd" class="input_search" inputtype="date" style="left:375px; top:20px; width:90px; height:19px; "/>
- <select1 id="rdo_sort" ref="/root/main/cond/sort" appearance="full" cols="4" overflow="visible" style="left:35px; top:20px; width:215px; 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>
- <item>
- <label>년도별</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var sort = model.getValue("/root/main/cond/sort");
- fDate(sort);
- fGetFthConsult();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_sort.value == "1"){
- grd_fthconsultstatus.valueMatrix(1,0)="원목자별";
- }else if(rdo_sort.value == "2"){
- grd_fthconsultstatus.valueMatrix(1,0)="월별";
- }else if(rdo_sort.value == "3"){
- grd_fthconsultstatus.valueMatrix(1,0)="분기별";
- }else if(rdo_sort.value == "4"){
- grd_fthconsultstatus.valueMatrix(1,0)="년도별";
- }
-
- model.refresh();
-
- model.setFocus("btn_select");
- btn_select.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <line id="line2" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:53px; "/>
- <input id="ipt_from" ref="/root/main/cond/from" style="left:650px; top:15px; width:100px; height:19px; "/>
- <input id="ipt_to" ref="/root/main/cond/to" style="left:910px; top:20px; width:100px; height:19px; "/>
- <select1 id="cmb_year" ref="/root/main/cond/year" appearance="minimal" style="left:770px; top:15px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>1분기</label>
- <value>1</value>
- </item>
- <item>
- <label>2분기</label>
- <value>2</value>
- </item>
- <item>
- <label>3분기</label>
- <value>3</value>
- </item>
- <item>
- <label>4분기</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_fthconsultstatus" nodeset="/root/main/fthconsult/fthconsultlinfo" caption="원목대상자별 횟수/명^환자^환자^보호자^보호자^교직원^교직원^기타^기타^합계^합계|^횟수^명^횟수^명^횟수^명^횟수^명^횟수^명" colsep="^" colwidth="163, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:106px; width:1194px; height:634px; ">
- <col ref="conslrnm" format="yyyy mm" style="text-align:center; "/>
- <col ref="acttims" style="text-align:center; "/>
- <col ref="acttims_pid" style="text-align:center; "/>
- <col ref="pro_acttims" style="text-align:center; "/>
- <col ref="pro_pid" style="text-align:center; "/>
- <col ref="tea_acttims" style="text-align:center; "/>
- <col ref="tea_pid" style="text-align:center; "/>
- <col ref="oth_acttims" style="text-align:center; "/>
- <col ref="oth_pid" style="text-align:center; "/>
- <col ref="tot_acttims" style="text-align:center; "/>
- <col ref="tot_pid" style="text-align:center; "/>
- </datagrid>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_search0" class="btn4_letter3" style="left:1123px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:96px; width:139px; height:14px; ">원목상담현황</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:114px; x2:1194px; y2:114px; "/>
- </xhtml:body>
- </xhtml:html>
|