123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPS00100_검사항목별통계.xrw
- * 설 명 : 검사항목별통계 화면
- * 설 계 자 : (주)에이씨케이 - 유동철
- * 작 성 자 : (주)에이씨케이 - 유동철
- * 작 성 일 : 2007.08.24
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <statstinfo>
- <statsinfolist>
- <instcd/>
- <item01/>
- <item02/>
- <item03/>
- <item04/>
- <item05/>
- <item06/>
- <item07/>
- <item08/>
- <item09/>
- <item10/>
- <val01/>
- <val02/>
- <val03/>
- <val04/>
- <val05/>
- <val06/>
- <val07/>
- <val08/>
- <val09/>
- <val10/>
- <val11/>
- <val12/>
- <val13/>
- <val14/>
- <val15/>
- <val16/>
- <val17/>
- <val18/>
- <val19/>
- <val20/>
- <val21/>
- <val22/>
- <val23/>
- <val24/>
- <val25/>
- <val26/>
- <val27/>
- <val28/>
- <val29/>
- <val30/>
- <val31/>
- <val32/>
- <val33/>
- <val34/>
- <val35/>
- <val36/>
- <val37/>
- <val38/>
- <val39/>
- <val40/>
- </statsinfolist>
- </statstinfo>
- </main>
- <send/>
- <init>
- <fromdd/>
- <todd/>
- <refmthdcd>0</refmthdcd>
- <seaval/>
- <dispcondcd/>
- <testflagcd/>
- <statsworkflagcd/>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <resncd>
- <resncdlist>
- <instcd/>
- <baseflagcd/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </resncd>
- </init>
- <hidden>
- </hidden>
- <message/>
- </root>
- </instance>
- <bind id="bind01" ref="/root/main/statstinfo/statsinfolist/day01" readonly="../choi/@readonly = 'true'"/>
- <script type="javascript" src="../../../com/commonweb/js/common.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/LPZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
- <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
- <submission id="SMSLP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/statstinfo/statsinfolist"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 검사항목별통계 화면
- * @ver : 2007.02.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화 함수
- */
- function fExeInitialize() {
-
- //---------------------------------------------------------
- model.removeNodeset("/root/main/statstinfo/statsinfolist");
-
- //----------------
- // 시스템일자 조회
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00102");
-
- //------------------
- // 통계구분코드 조회
- model.makeValue("/root/send/baseflagcd", "'84'" );
- submit("TRLPZ00103");
-
- //------------
- // 초기값 설정
- model.makeValue("/root/hidden/seaval", ""); // 검색값
- model.makeValue("/root/hidden/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(From)
- model.makeValue("/root/hidden/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(To)
- model.makeValue("/root/hidden/refmthdcd", "0"); // 검색방법(일별)
- model.makeValue("/root/hidden/dispcondcd", "0"); // 표시조건(접수)
- model.makeValue("/root/hidden/testflagcd", "0"); // 검사구분코드(내부)
- cbo_statsflagcd.select(0);
-
- //----------------
- fExeRadioChange();
- }
-
- /* @group : 검사항목별통계 화면
- * @ver : 2007.08.2 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 감사판독 소요시간 조회 처리 함수
- */
- function fGetStatsInfoList() {
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/statstinfo/statsinfolist");
-
- //--------------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/acptfromdd", model.getValue("/root/hidden/acptfromdd"));
- model.makeValue("/root/send/acpttodd", model.getValue("/root/hidden/acpttodd"));
- model.makeValue("/root/send/refmthdcd", model.getValue("/root/hidden/refmthdcd"));
- model.makeValue("/root/send/dispcondcd", model.getValue("/root/hidden/dispcondcd"));
- model.makeValue("/root/send/testflagcd", model.getValue("/root/hidden/testflagcd"));
- model.makeValue("/root/send/statsworkflagcd", "'"+model.getValue("/root/hidden/statsworkflagcd")+"'");
- model.makeValue("/root/send/scrnno", "10");
-
- //-------------------
- submit("SMSLP00101");
- }
-
- /* @group : 검사항목별통계
- * @ver : 2007.08.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사항목별통계 Excel저장 처리 Function
- */
- function fExeSaveToExcel() {
-
- var sTitle = "";
-
- switch (model.getValue("/root/hidden/refmthdcd")) {
- case "0" : sTitle = "검사항목별 (일별) 통계";
- break;
- case "1" : sTitle = "검사항목별 (월별) 통계";
- break;
- case "2" : sTitle = "검사항목별 (년별) 통계";
- break;
- }
-
- grd_statsinfolist.saveExcel("C:\\SMLPS00100_검사항목별통계.xls", sTitle, false, false);
- }
-
- /* @group : 검사항목별통계
- * @ver : 2007.08.25 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 컬럼 숨김 처리 Function
- */
- function fExeRadioChange() {
-
- var iFromNo = 0;
- var iToNo = 0;
- var iWidth = 0;
- var bState = false;
-
- var iYear = 0;
- var sFromDD = model.getValue("/root/hidden/acptfromdd");
- var sToDD = model.getValue("/root/hidden/acpttodd");
- var sText = "구분코드^검사코드^검사실^검사항목";
-
- //----------------------------------------------------
- if (model.getValue("/root/hidden/refmthdcd") == "0") {
- iFromNo = 5;
- iToNo = grd_statsinfolist.cols;
- iWidth = 31;
- bState = false;
- sText = "구분코드^검사코드^검사실^검사항목^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총\n건수";
- } else if (model.getValue("/root/hidden/refmthdcd") == "1") {
- iFromNo = 17;
- iToNo = 35;
- iWidth = 75;
- bState = true;
- sText = "구분코드^검사코드^검사실^검사항목^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총\n건수";
- } else {
- iFromNo = 25;
- iToNo = 35;
- iWidth = 47;
- bState = true;
-
- //---------------------------------------------------------------------------------------
- for (var iNo=Number(sFromDD.substr(0,4)); iNo <= Number(sFromDD.substr(0,4))+20; iNo++) {
- sText += "^"+iNo;
- }
- }
-
- //---------------------------------
- for (var iNo=5; iNo <= grd_statsinfolist.cols; iNo++) {
-
- if (iFromNo <= iNo && iToNo >= iNo) {
- grd_statsinfolist.colHidden(iNo) = bState;
- grd_statsinfolist.colWidth(iNo) = iWidth;
- } else {
- grd_statsinfolist.colHidden(iNo) = !bState;
- grd_statsinfolist.colWidth(iNo) = iWidth;
- }
- }
-
- //--------------------------------
- grd_statsinfolist.caption = sText;
- model.removeNodeset("/root/main/statstinfo/statsinfolist");
-
- //-------------
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line10" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="button13" class="btn6_letter5" navindex="9" style="left:5px; top:3px; width:92px; height:22px; ">
- <caption>EXCEL저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSaveToExcel();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; ">검사항목별통계</caption>
- </group>
- <group id="grp_biz" style="left:0; top:40; width:1195; height:744; ">
- <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:180px; height:13px; ">접수검사목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <datagrid id="grd_statsinfolist" nodeset="/root/main/statstinfo/statsinfolist" class="datagrid2" autoresize="true" caption="구분코드^검사코드^검사실^검사항목^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총
건수" colsep="^" colwidth="0, 0, 65, 100, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31" explorerbar="sortshow" rowheader="seq" rowsep="|" navindex="8" style="left:0; top:75px; width:1194px; height:653px; ">
- <col ref="workflagcd"/>
- <col ref="testcd"/>
- <col class="text_center" ref="resncnts"/>
- <col class="text_center" ref="testnm"/>
- <col class="text_right" ref="day01" format="#,###" mask="exclude" roundmode="round" showmask="true"/>
- <col class="text_right" ref="day02" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day03" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day04" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day05" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day06" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day07" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day08" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day09" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day10" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day11" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day12" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day13" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day14" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day15" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day16" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day17" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day18" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day19" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day20" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day21" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day22" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day23" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day24" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day25" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day26" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day27" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day28" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day29" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day30" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day31" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="daytot" format="#,###" mask="exclude" showmask="true"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_statsinfolist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:15; top:9px; width:86px; height:17px; ">마감일자 :</caption>
- <caption id="caption5" class="search_no_b" style="left:207; top:8px; width:12px; height:17px; ">~</caption>
- <button id="btn_sea" class="btn1_letter2" navindex="7" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetStatsInfoList();
- ]]>
- </script>
- </button>
- <input id="ipt_cnclfromdd" ref="/root/init/fromdd" class="input_s_essential" navindex="1" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:104; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeRadioChange();
- ]]>
- </script>
- </input>
- <input id="ipt_cncltodd" ref="/root/init/todd" class="input_s_essential" navindex="2" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:223; top:8px; width:100px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:936px; top:9px; width:86px; height:17px; ">검색방법 :</caption>
- <select1 id="cbo_refmthdcd" ref="/root/init/refmthdcd" navindex="3" appearance="minimal" style="left:1025px; top:8px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>월별</label>
- <value>1</value>
- </item>
- <item>
- <label>년별</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeRadioChange();
- ]]>
- </script>
- </select1>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|