123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <zone>
- <item>
- <zone1/>
- <daegu/>
- <kyungpook/>
- <etc/>
- </item>
- </zone>
- <area>
- <item>
- <zone2/>
- <junggu/>
- <namgu/>
- <seogu/>
- <bookgu/>
- <donggu/>
- <susung/>
- <dalseo/>
- <dalseong/>
- <chilgok/>
- <youngchun/>
- <gumi/>
- <etc/>
- </item>
- </area>
- <sex>
- <item>
- <zone3/>
- <man/>
- <female/>
- </item>
- </sex>
- <age>
- <item>
- <zone4/>
- <aa/>
- <bb/>
- <cc/>
- <dd/>
- <ee/>
- <ff/>
- </item>
- </age>
- <export/>
- </main>
- <send>
- <srchfromdd/>
- <srchtodd/>
- <srchinstcd/>
- <srchhealexamflag/>
- </send>
- <hidden>
- </hidden>
- <init>
- <baseinfo>
- <yearlst/>
- <recmpkglst/>
- <healexamplacecd/>
- <healexamflag>
- <A0068>
- <cdid/>
- <cdnm/>
- </A0068>
- </healexamflag>
- </baseinfo>
- <srch>
- <fromdd/>
- <todd/>
- <year/>
- <qurtyy/>
- <ddflag>1</ddflag>
- </srch>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 일자초기화
- model.setValue("/root/init/srch/fromdd" , getCurrentDate());
- model.setValue("/root/init/srch/todd" , getCurrentDate());
-
- model.setValue("/root/init/srch/year" , getCurrentDate().substr(0,4));
- model.setValue("/root/init/srch/qurtyy" , "03");
-
- // 기관코드 초기화
- model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd"));
-
- // 공통코드 조회
- zbcfGetCodeList( new Array("P0167","R0009","A0068"), new Array("/root/init/baseinfo/yearlst" ,"/root/init/baseinfo/monthlst", "/root/init/baseinfo/healexamflag" ) );
-
- // 건진 공통코드 조회
- healGetCodeList( new Array("S210"), new Array("/root/init/baseinfo/recmpkglst") );
-
- rdo_ddflag.dispatch("xforms-select");
-
- //건진구분 초기화
- model.setValue("root/send/srchhealexamflag", getScreenMenuParameter());
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /*
- * 화면merge와 소계 및 총계를 생성한다.
- */
- function fSetRcptSum(vFlag) {
- // 그리드 merge 및 합계 초기화
-
- // if(vFlag == "A") {
- // grd_recmlst.subtotalPosition = "below";
- // grd_recmlst.multiTotals = true;
- // grd_recmlst.subtotal("clear", 0, 0);
- //
- // // 추천현황
- // for(var i = 0; i < grd_recmlst.cols ; i++) {
- //
- // // 소계
- // if(i > grd_recmlst.colRef("pos") && i <= grd_recmlst.colRef("recmpoint") ) {
- // grd_recmlst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_recmlst.colRef("instnm") , "합 계" );
- // }
- // }
- // }else if(vFlag == "B"){
- // grd_recmdetllst.subtotalPosition = "below";
- // grd_recmdetllst.multiTotals = true;
- // grd_recmdetllst.subtotal("clear", 0, 0);
- //
- // // 추천내역
- // for(var i =0; i < grd_recmdetllst.cols ; i++) {
- //
- // // 건수
- // if(i == grd_recmdetllst.colRef("pkgcd") ) {
- // grd_recmdetllst.subtotal("count", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_recmdetllst.colRef("pid") , "건수/계" );
- // }
- // // 소계
- // if( i >= grd_recmdetllst.colRef("recmpoint") && i <= grd_recmdetllst.colRef("recmpoint") ) {
- // grd_recmdetllst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_recmdetllst.colRef("pid") , "건수/계" );
- //
- // }
- //
- // }
- // }
- }
-
- /*
- * 일자 활성화 및 일자초기화
- */
- function fSetDate() {
- if(rdo_ddflag.value == "1") {
- // 분기별
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- cmb_year.disabled = false;
- cmb_qurtyy.disabled = false;
-
- // 일자초기화
- var year = cmb_year.value;
- var month = cmb_qurtyy.value;
- var todd = new Date(year , parseInt(month,10) + 2 , 0 );
-
- // 시작일
- model.setValue("/root/send/srchfromdd" , year + month + "01");
- // 종료일
- model.setValue("/root/send/srchtodd", new String(todd.getYear()) + new String(todd.getMonth() + 1).getLeftPad(2,"0") + new String(todd.getDate()) );
- }else if(rdo_ddflag.value == "2") {
- // 기간별
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- cmb_year.disabled = true;
- cmb_qurtyy.disabled = true;
-
- // 일자초기화
- model.setValue("/root/send/srchfromdd" , ipt_fromdd.value);
- model.setValue("/root/send/srchtodd" , ipt_todd.value);
- }
- }
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRAHA00001"/>
- <submission id="TRAHS03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/zone"/>
- <submission id="TRAHS03402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/area"/>
- <submission id="TRAHS03403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/sex"/>
- <submission id="TRAHS03404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/age"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.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/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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;">
- <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">검진고객 현황</caption>
- </group>
- <group id="group2" style="left:4px; top:23px; width:1203px; height:70px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1132px; y1:2px; x2:1132px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var idx = swt_recm.selectedIndex;
- var ret = false;
-
- if(idx == "0") {
- ret = submit("TRAHS03401");
- if(ret) {
- grd_zone.rebuild();
- }
- }else if(idx == "1"){
- ret = submit("TRAHS03402");
- if(ret) {
- grd_area.rebuild();
- }
- }else if(idx == "2") {
- ret = submit("TRAHS03403");
- if(ret) {
- grd_sex.rebuild();
- }
- }else if(idx == "3") {
- ret = submit("TRAHS03404");
- if(ret) {
- grd_age.rebuild();
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/init/srch/fromdd" class="input_search" disabled="true" navindex="7" inputtype="date" style="left:67px; top:8px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetDate();
- ]]>
- </script>
- </input>
- <button id="btn_excelsave" class="btn6_letter4" visibility="visible" style="left:1046px; top:7px; width:80px; height:22px; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var idx = swt_recm.selectedIndex;
- if(idx == "0") {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_zone.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }else if(idx == "1") {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_area.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }else if(idx == "2") {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_sex.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }else if(idx == "3") {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_age.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <caption id="caption93" class="search_n_b" style="left:173px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_todd" ref="/root/init/srch/todd" class="input_search" disabled="true" navindex="7" inputtype="date" style="left:185px; top:8px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetDate();
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:5px; top:9px; width:73px; height:17px; ">기간 :</caption>
- <caption id="caption1" class="search_name" style="left:485px; top:9px; width:73px; height:17px; ">분기 :</caption>
- <caption id="caption3" class="search_name" style="left:305px; top:9px; width:73px; height:17px; ">연도 :</caption>
- <select1 id="cmb_year" ref="/root/init/srch/year" disabled="true" appearance="minimal" style="left:370px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/yearlst/P0167">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetDate();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_qurtyy" ref="/root/init/srch/qurtyy" disabled="true" appearance="minimal" style="left:550px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>1분기</label>
- <value>03</value>
- </item>
- <item>
- <label>2분기</label>
- <value>06</value>
- </item>
- <item>
- <label>3분기</label>
- <value>09</value>
- </item>
- <item>
- <label>4분기</label>
- <value>12</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetDate();
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:800px; top:10px; width:79px; height:17px; ">장소구분:</caption>
- <select1 id="rdo_ddflag" ref="/root/init/srch/ddflag" appearance="full" cols="2" overflow="visible" style="left:675px; top:8px; width:115px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>분기별</label>
- <value>1</value>
- </item>
- <item>
- <label>기간별</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetDate();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchhealexamplacecd" ref="/root/send/srchhealexamflag" class="combo_search" appearance="minimal" style="left:885px; top:10px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamflag/A0068">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <switch id="swt_recm" style="left:4px; top:124px; width:1203px; height:656px; ">
- <case id="case_zone" selected="true">
- <datagrid id="grd_zone" nodeset="/root/main/zone/item" caption="^대구^경북^기타" colsep="^" colwidth="170, 170, 170,170" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
- <col ref="zone1" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="daegu" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="kyungpook" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="etc" format="#,###" style="font-weight:bold; text-align:center; "/>
- </datagrid>
- </case>
- <case id="case_area">
- <datagrid id="grd_area" nodeset="/root/main/area/item" caption="^중구^남구^서구^북구^동구^수성구^달서구^달성군^칠곡군^영천시^구미^기타" colsep="^" colwidth="80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
- <col ref="zone2" style="font-weight:bold; text-align:center; "/>
- <col ref="junggu" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="namgu" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="seogu" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="bookgu" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="donggu" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="susung" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="dalseo" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="dalseong" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="chilgok" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="youngchun" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="gumi" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="etc" format="#,###" style="font-weight:bold; text-align:center; "/>
- </datagrid>
- </case>
- <case id="case_sex">
- <datagrid id="grd_sex" nodeset="/root/main/sex/item" caption="^남성^여성" colsep="^" colwidth="100, 170, 170" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
- <col ref="zone3" style="font-weight:bold; text-align:center; "/>
- <col ref="man" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="female" format="#,###" style="font-weight:bold; text-align:center; "/>
- </datagrid>
- </case>
- <case id="case_age">
- <datagrid id="grd_age" nodeset="/root/main/age/item" caption="^20대미만^30대^40대^50대^60대^70대이상" colsep="^" colwidth="100, 170, 170, 170, 170, 170, 170" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
- <col ref="zone4" style="font-weight:bold; text-align:center; "/>
- <col ref="aa" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="bb" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="cc" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="dd" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="ee" format="#,###" style="font-weight:bold; text-align:center; "/>
- <col ref="ff" format="#,###" style="font-weight:bold; text-align:center; "/>
- </datagrid>
- </case>
- </switch>
- <button id="btn_zone" class="btn_sw" group="tab" selected="true" style="left:5px; top:102px; width:90px; height:22px; ">
- <caption>지역별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_zone");
- btn_zone.selected = true;
- ]]>
- </script>
- </button>
- <button id="btn_area" class="btn_sw" group="tab" style="left:94px; top:102px; width:104px; height:22px; ">
- <caption>구역별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_area");
- btn_area.selected = true;
- ]]>
- </script>
- </button>
- <button id="btn_sex" class="btn_sw" group="tab" style="left:199px; top:102px; width:104px; height:22px; ">
- <caption>성별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_sex");
- btn_sex.selected = true;
- ]]>
- </script>
- </button>
- <button id="btn_age" class="btn_sw" group="tab" style="left:304px; top:102px; width:104px; height:22px; ">
- <caption>연령별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_age");
- btn_age.selected = true;
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|