123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478 |
- <?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>
- <recmlst>
- <item>
- </item>
- </recmlst>
- <recmdetllst>
- <item>
- <instnm/>
- <pos/>
- <recmempid/>
- <recmempnm/>
- <hopedd/>
- <healexamnm/>
- <pid/>
- <pkgnm/>
- <pkgcd/>
- <recmpoint/>
- </item>
- </recmdetllst>
- <export/>
- </main>
- <send>
- <srchfromdd/>
- <srchtodd/>
- <srchinstcd/>
- <srchrecmpkgcd/>
- <srchrecmempid/>
- <srchrecmemnm/>
- <srchcondstnd>1</srchcondstnd>
- </send>
- <hidden>
- </hidden>
- <init>
- <baseinfo>
- <yearlst/>
- <recmpkglst/>
- </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"), new Array("/root/init/baseinfo/yearlst" ,"/root/init/baseinfo/monthlst" ) );
-
- // 건진 공통코드 조회
- healGetCodeList( new Array("S210"), new Array("/root/init/baseinfo/recmpkglst") );
-
- rdo_ddflag.dispatch("xforms-select");
-
- //추천현황 그리드를 동적으로 그린다.
- fMakeRecmGrd();
- 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);
- }
- }
-
- /**
- * @desc : 직원정보가져오기
- */
- function fGetEmpInfo(vEmplNoNode, vEmpNmNode){
- model.makeNode("/root/temp/userpopupinfo/param");
- model.makeNode("/root/temp/userpopupinfo/flag");
- model.makeNode("/root/temp/userpopupinfo/searchitem");
-
- model.setValue("/root/temp/userpopupinfo/param" , "_OneS");
- model.setValue("/root/temp/userpopupinfo/flag" , "usernm");
- model.setValue("/root/temp/userpopupinfo/searchitem" , "사용자명");
-
- model.removeNodeset("/root/hidden/onerowselect/list");
-
- modal("SPZSU10103_사용자부서조회", "", "200", "200", "SPZSU10103","/root/temp/userpopupinfo","/root/main/temp");
-
- var iParam = getParameter("SPZSU10103_");
- model.makeNode("/root/hidden/onerowselect");
- model.makeNode("/root/main/ptbs/ptbs_recmernm");
- setCSVToNode("/root/hidden/onerowselect", iParam);
-
- model.setValue(vEmplNoNode , model.getValue("/root/hidden/onerowselect/list/userid") );
- model.setValue(vEmpNmNode , model.getValue("/root/hidden/onerowselect/list/usernm") );
-
- clearParameter("SPZSU10103_");
- model.removeNodeset("/root/temp/userpopupinfo");
- model.refresh();
- }
-
- /**
- * @desc : 추천현황 그리드를 동적으로 그린다.
- */
- function fMakeRecmGrd() {
- var cap = "";
- var addCol = 1;
- var front_cap = "기관^사원번호^성명^소속^";
- var back_cap = "점수";
-
- grd_recmlst.addColumn("ref:instnm; type:output;");
- grd_recmlst.addColumn("ref:recmempid; type:output;");
- grd_recmlst.addColumn("ref:usernm; type:output;");
- grd_recmlst.addColumn("ref:pos; type:output;");
-
- cap += front_cap;
-
- for(var i=1; i <= getNodesetCount("/root/init/baseinfo/recmpkglst/S210"); i++) {
- var cdid = model.getValue("/root/init/baseinfo/recmpkglst/S210[" + i + "]/cdid");
- var cdnm = model.getValue("/root/init/baseinfo/recmpkglst/S210[" + i + "]/cdnm");
- if(cdid != "") {
- cap += cdid + "^";
- grd_recmlst.addColumn("ref:pkg" + addCol + "; type:output;");
- addCol++;
- }
- }
- cap += back_cap;
- grd_recmlst.addColumn("ref:recmpoint; type:output;");
-
- grd_recmlst.caption = cap;
- grd_recmlst.resizeCells();
- grd_recmlst.rebuild();
- }
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRAHA00001"/>
- <submission id="TRAHS00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/recmlst"/>
- <submission id="TRAHS00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/recmdetllst"/>
- </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:70px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1132px; y1:17px; x2:1132px; y2:49px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1139px; top:22px; 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("TRAHS00801");
- if(ret) {
- grd_recmlst.rebuild();
- fSetRcptSum("A");
- }
- }else {
- ret = submit("TRAHS00802");
- if(ret) {
- fSetRcptSum("B");
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/init/srch/fromdd" class="input_search" disabled="true" navindex="7" inputtype="date" style="left:82px; 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:22px; 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_recmlst.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_recmdetllst.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:975px; top:22px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 매개변수
- copyNodesetType("/root/main/export","/root/init/srch","replace");
- model.makeValue("/root/main/export/srchrecmempid" ,model.getValue("/root/send/srchrecmempid"));
- model.makeValue("/root/main/export/posdeptnm" ,model.getValue("/root/hidden/onerowselect/list/posdeptnm"));
- model.makeValue("/root/main/export/srchrecmemnm" ,model.getValue("/root/send/srchrecmemnm"));
- model.makeValue("/root/main/export/srchfromdd" , model.getValue("/root/send/srchfromdd").toDate().getDateFormat("YYYY/MM/DD"));
- model.makeValue("/root/main/export/srchtodd" , model.getValue("/root/send/srchtodd").toDate().getDateFormat("YYYY/MM/DD"));
-
- var idx = swt_recm.selectedIndex;
- if(idx == "0") {
- exeReportPreview("RPAHS00801", "XMLSTR", "/root/main/export","", "false","","","","","false");
- }else if(idx == "1") {
- exeReportPreview("RPAHS00802", "XMLSTR", "/root/main/export","", "false","","","","","false");
- }
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" visibility="hidden" style="x1:1038px; y1:17px; x2:1038px; y2:49px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption93" class="search_n_b" style="left:193px; 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:210px; 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:15px; top:9px; width:73px; height:17px; ">기간 :</caption>
- <caption id="caption1" class="search_name" style="left:520px; top:9px; width:73px; height:17px; ">분기 :</caption>
- <caption id="caption3" class="search_name" style="left:335px; top:9px; width:73px; height:17px; ">연도 :</caption>
- <select1 id="cmb_year" ref="/root/init/srch/year" disabled="true" appearance="minimal" style="left:400px; 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:585px; 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:15px; top:39px; width:73px; height:17px; ">패키지 :</caption>
- <caption id="caption5" class="search_name" style="left:335px; top:39px; width:73px; height:17px; ">근무자 :</caption>
- <button id="btn_rememp" class="icon_search" style="left:519px; top:38px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetEmpInfo( ipt_recmempid.attribute("ref") , opt_recmempnm.attribute("ref") );
- if(ipt_recmempid.currentText !=""){
- model.makeValue("/root/main/info/rsrvacptinfo/item/deptcd",model.getValue("/root/hidden/onerowselect/list/posdeptcd"));
- model.makeValue("/root/main/info/rsrvacptinfo/item/deptcd",model.getValue("/root/hidden/onerowselect/list/posdeptcd"));
- model.makeValue("/root/main/info/rsrvacptinfo/item/clntempid",model.getValue("/root/hidden/onerowselect/list/userid"));
- }
- ]]>
- </script>
- </button>
- <input id="ipt_recmempid" ref="/root/send/srchrecmempid" class="input_default" maxlength="10" style="left:413px; top:38px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_rememp", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="opt_recmempnm" ref="/root/send/srchrecmemnm" class="output_fix" style="left:540px; top:38px; width:176px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var rtn = messageBox("직원소개 할인을 사용 ", "S001") ;
- if(rtn == 6){ model.setValue( cmb_disccd.attribute("ref") , "F83");}
- ]]>
- </script>
- </input>
- <select1 id="rdo_ddflag" ref="/root/init/srch/ddflag" overflow="visible" appearance="full" cols="2" style="left:735px; 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_recmpkg" ref="/root/send/srchrecmpkgcd" appearance="minimal" style="left:95px; top:38px; width:220px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/recmpkglst/S210">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="radio1" ref="/root/send/srchcondstnd" overflow="visible" appearance="full" cols="2" style="left:825px; top:40px; width:115px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>패키지</label>
- <value>1</value>
- </item>
- <item>
- <label>금액</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption6" class="search_name" style="left:735px; top:39px; width:86px; height:17px; ">조회기준 :</caption>
- </group>
- <switch id="swt_recm" style="left:4px; top:124px; width:1203px; height:656px; ">
- <case id="case_recm">
- <datagrid id="grd_recmlst" nodeset="/root/main/recmlst/item" autoresize="true" colsep="^" colwidth="135" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_recmlst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case_recmdetl" selected="true">
- <datagrid id="grd_recmdetllst" nodeset="/root/main/recmdetllst/item" caption="기관^소속^사원번호^직원성명^건진일^건진자명^등록번호^검사명^검사종류^포인트" colsep="^" colwidth="170, 170, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
- <col ref="instnm"/>
- <col ref="pos"/>
- <col ref="recmempid"/>
- <col ref="recmempnm" style="text-align:left; "/>
- <col ref="hopedd" format="yyyy-mm-dd"/>
- <col ref="healexamnm"/>
- <col ref="pid"/>
- <col ref="pkgnm"/>
- <col ref="pkgcd" style="text-align:left; "/>
- <col ref="recmpoint" style="text-align:left; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_recmdetllst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="btn_recm" 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_recm");
- btn_recm.selected = true;
- ]]>
- </script>
- </button>
- <button id="btn_recmdetl" 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_recmdetl");
- btn_recmdetl.selected = true;
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|