123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLPS00800" position="absolute 0 0 1199 749" titletext="검사/진료과별통계" oninit="SMLPS00800_oninit" onload="SMLPS00800_onload">
- <Layouts>
- <Layout>
- <Button id="button13" taborder="1" text="EXCEL저장" class="btn7" position="absolute 1102 63 1194 85" anchor="top right" onclick="button13_onclick"/>
- <Static id="caption6" text="검사/진료과별통계" class="tit_1" position="absolute 0 0 140 25" anchor="left top"/>
- <Static id="caption4" text="접수 검사/진료과 목록" class="tit_2" position="absolute 5 70 162 87" anchor="left top"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 86 1194 92" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Grid id="grd_statsinfolist" class="datagrid2" taborder="2" binddataset="ds_grd_statsinfolist" useinputpanel="false" position="absolute 0 90 1194 743" autofittype="col" anchor="all" autosizingtype="row" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="63"/>
- <Column size="50"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="31"/>
- </Columns>
- <Rows>
- <Row size="26" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="구분코드"/>
- <Cell col="1"/>
- <Cell col="2" text="검사실"/>
- <Cell col="3" text="검사명"/>
- <Cell col="4" text="진료과"/>
- <Cell col="5" text="01"/>
- <Cell col="6" text="02"/>
- <Cell col="7" text="03"/>
- <Cell col="8" text="04"/>
- <Cell col="9" text="05"/>
- <Cell col="10" text="06"/>
- <Cell col="11" text="07"/>
- <Cell col="12" text="08"/>
- <Cell col="13" text="09"/>
- <Cell col="14" text="10"/>
- <Cell col="15" text="11"/>
- <Cell col="16" text="12"/>
- <Cell col="17" text="13"/>
- <Cell col="18" text="14"/>
- <Cell col="19" text="15"/>
- <Cell col="20" text="16"/>
- <Cell col="21" text="17"/>
- <Cell col="22" text="18"/>
- <Cell col="23" text="19"/>
- <Cell col="24" text="20"/>
- <Cell col="25" text="21"/>
- <Cell col="26" text="22"/>
- <Cell col="27" text="23"/>
- <Cell col="28" text="24"/>
- <Cell col="29" text="25"/>
- <Cell col="30" text="26"/>
- <Cell col="31" text="27"/>
- <Cell col="32" text="28"/>
- <Cell col="33" text="29"/>
- <Cell col="34" text="30"/>
- <Cell col="35" text="31"/>
- <Cell col="36" text="총 건수"/>
- </Band>
- <Band id="body">
- <Cell text="bind:workflagcd"/>
- <Cell col="1" text="expr:currow + 1"/>
- <Cell col="2" style="padding:5 5 5 5;" text="bind:testcd" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="3" style="padding:5 5 5 5;" class="text_center" text="bind:resncnts" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="4" style="padding:5 5 5 5;" class="text_center" text="bind:testnm" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="5" class="text_right" text="bind:day01"/>
- <Cell col="6" class="text_right" text="bind:day02"/>
- <Cell col="7" class="text_right" text="bind:day03"/>
- <Cell col="8" class="text_right" text="bind:day04"/>
- <Cell col="9" class="text_right" text="bind:day05"/>
- <Cell col="10" class="text_right" text="bind:day06"/>
- <Cell col="11" class="text_right" text="bind:day07"/>
- <Cell col="12" class="text_right" text="bind:day08"/>
- <Cell col="13" class="text_right" text="bind:day09"/>
- <Cell col="14" class="text_right" text="bind:day10"/>
- <Cell col="15" class="text_right" text="bind:day11"/>
- <Cell col="16" class="text_right" text="bind:day12"/>
- <Cell col="17" class="text_right" text="bind:day13"/>
- <Cell col="18" class="text_right" text="bind:day14"/>
- <Cell col="19" class="text_right" text="bind:day15"/>
- <Cell col="20" class="text_right" text="bind:day16"/>
- <Cell col="21" class="text_right" text="bind:day17"/>
- <Cell col="22" class="text_right" text="bind:day18"/>
- <Cell col="23" class="text_right" text="bind:day19"/>
- <Cell col="24" class="text_right" text="bind:day20"/>
- <Cell col="25" class="text_right" text="bind:day21"/>
- <Cell col="26" class="text_right" text="bind:day22"/>
- <Cell col="27" class="text_right" text="bind:day23"/>
- <Cell col="28" class="text_right" text="bind:day24"/>
- <Cell col="29" class="text_right" text="bind:day25"/>
- <Cell col="30" class="text_right" text="bind:day26"/>
- <Cell col="31" class="text_right" text="bind:day27"/>
- <Cell col="32" class="text_right" text="bind:day28"/>
- <Cell col="33" class="text_right" text="bind:day29"/>
- <Cell col="34" class="text_right" text="bind:day30"/>
- <Cell col="35" class="text_right" text="bind:day31"/>
- <Cell col="36" class="text_right" text="bind:daytot"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp_sea" taborder="3" class="div_SA" position="absolute 0 25 1195 60" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1103 9 1109 31" anchor="top right"/>
- <Static id="caption2" text="접수일자 :" class="search_name" position="absolute 11 10 84 27" anchor="left top"/>
- <Static id="caption5" text="~" class="search_no_b" position="absolute 198 10 210 27" anchor="left top"/>
- <Button id="btn_sea" taborder="8" text="조회" class="btn1" position="absolute 1121 9 1177 31" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
- <Calendar id="ipt_cnclfromdd" taborder="9" class="input_s_essential" position="absolute 86 8 194 27" mask="yyyy-mm-dd" anchor="left top" onchanged="grp_sea_ipt_cnclfromdd_onchanged"/>
- <Calendar id="ipt_cncltodd" taborder="10" class="input_s_essential" position="absolute 212 8 320 27" mask="yyyy-mm-dd" anchor="left top" onkeyup="grp_sea_ipt_cncltodd_onkeyup"/>
- <Static id="caption1" text="검색방법 :" class="search_name" position="absolute 322 9 393 27" anchor="left top"/>
- <Static id="caption3" text="표시조건 :" class="search_name" position="absolute 462 9 534 27" anchor="left top"/>
- <Static id="caption7" text="검사구분 :" class="search_name" position="absolute 603 10 674 26" anchor="top right"/>
- <Combo id="cbo_refmthdcd" taborder="11" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 396 8 458 27" anchor="left top" onitemchanged="grp_sea_cbo_refmthdcd_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">일별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">월별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">년별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption8" text="통계구분 :" class="search_name" position="absolute 899 11 972 28" anchor="top right"/>
- <Combo id="cbo_statsflagcd" taborder="12" innerdataset="ds_init_cbo_statsflagcd" codecolumn="resncd" datacolumn="resncnts" position="absolute 976 9 1095 28" anchor="top right"/>
- <Combo id="cbo_testflagcd" taborder="13" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 676 8 742 27" anchor="top right">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">내부</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">수탁</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">위탁</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="cbo_dispcondcd" taborder="14" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 538 8 598 27" anchor="left top">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">접수</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">업무</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">완료</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="combo1" taborder="15" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 827 9 893 28" anchor="top right" value="0" text="입원" index="0">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">입원</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">외래</Col>
- </Row>
- <Row>
- <Col id="codecolumn">Z</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption9" text="환자구분 :" class="search_name" position="absolute 751 10 823 28" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_statsinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workflagcd" type="STRING"/>
- <Column id="testcd" type="STRING"/>
- <Column id="resncnts" type="STRING"/>
- <Column id="testnm" type="STRING"/>
- <Column id="day01" type="STRING"/>
- <Column id="day02" type="STRING"/>
- <Column id="day03" type="STRING"/>
- <Column id="day04" type="STRING"/>
- <Column id="day05" type="STRING"/>
- <Column id="day06" type="STRING"/>
- <Column id="day07" type="STRING"/>
- <Column id="day08" type="STRING"/>
- <Column id="day09" type="STRING"/>
- <Column id="day10" type="STRING"/>
- <Column id="day11" type="STRING"/>
- <Column id="day12" type="STRING"/>
- <Column id="day13" type="STRING"/>
- <Column id="day14" type="STRING"/>
- <Column id="day15" type="STRING"/>
- <Column id="day16" type="STRING"/>
- <Column id="day17" type="STRING"/>
- <Column id="day18" type="STRING"/>
- <Column id="day19" type="STRING"/>
- <Column id="day20" type="STRING"/>
- <Column id="day21" type="STRING"/>
- <Column id="day22" type="STRING"/>
- <Column id="day23" type="STRING"/>
- <Column id="day24" type="STRING"/>
- <Column id="day25" type="STRING"/>
- <Column id="day26" type="STRING"/>
- <Column id="day27" type="STRING"/>
- <Column id="day28" type="STRING"/>
- <Column id="day29" type="STRING"/>
- <Column id="day30" type="STRING"/>
- <Column id="day31" type="STRING"/>
- <Column id="daytot" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cbo_statsflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="resncnts" type="STRING"/>
- <Column id="resncd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sysdd" type="STRING" size="256"/>
- <Column id="systm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_mdlcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="baseflagcd" type="STRING" size="256"/>
- <Column id="resncd" type="STRING" size="256"/>
- <Column id="resncnts" type="STRING" size="256"/>
- <Column id="mdlflagcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="mdlflagcd"/>
- <Col id="baseflagcd">84</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="acptfromdd" type="STRING" size="256"/>
- <Column id="acpttodd" type="STRING" size="256"/>
- <Column id="refmthdcd" type="STRING" size="256"/>
- <Column id="seaval" type="STRING" size="256"/>
- <Column id="dispcondcd" type="STRING" size="256"/>
- <Column id="testflagcd" type="STRING" size="256"/>
- <Column id="statsworkflagcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refmthdcd">0</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_resncdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="baseflagcd" type="STRING" size="256"/>
- <Column id="resncd" type="STRING" size="256"/>
- <Column id="resncnts" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="baseflagcd">84</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_cnclfromdd" propid="value" datasetid="ds_hidden" columnid="acptfromdd"/>
- <BindItem id="item1" compid="grp_sea.ipt_cncltodd" propid="value" datasetid="ds_hidden" columnid="acpttodd"/>
- <BindItem id="item2" compid="grp_sea.cbo_refmthdcd" propid="value" datasetid="ds_hidden" columnid="refmthdcd"/>
- <BindItem id="item3" compid="grp_sea.cbo_dispcondcd" propid="value" datasetid="ds_hidden" columnid="dispcondcd"/>
- <BindItem id="item4" compid="grp_sea.cbo_testflagcd" propid="value" datasetid="ds_hidden" columnid="testflagcd"/>
- <BindItem id="item5" compid="grp_sea.cbo_statsflagcd" propid="value" datasetid="ds_hidden" columnid="statsworkflagcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMLPS00800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMLPS00800_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_statsinfolist);
- fExeInitialize();
- }
- function fExeInitialize()
- {
- var iNodeCnt = 0;
- ds_grd_statsinfolist.clearData();
-
- // 시스템일자 조회
- dsf_createDsRow("ds_send", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}]);
- var oParam = {};
- oParam.id = "TRLPZ00102";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetSystemDateTimeInformation";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00102";
- tranf_submit(oParam);
-
- dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "delflagcd", val : "0"}
- ,{col : "baseflagcd", val : "ZA"}
- ,{col : "resncd", val : "01"}]);
- var oParam = {};
- oParam.id = "TRLPC02802";
- oParam.service = "plgybaseinfomngtapp.BaseFlagCode";
- oParam.method = "reqGetMdlCdList";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_init_cbo_statsflagcd=baseflagcdinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRLPC02802";
- tranf_submit(oParam);
-
- // 전체조회용 Instance생성
- iNodeCnt = Number(ds_mdlcdinfo.rowcount + 1);
- ds_mdlcdinfo.setColumn(iNodeCnt, "resncd", "ZZZZ");
- ds_mdlcdinfo.setColumn(iNodeCnt, "resncnts", "전체");
- ds_mdlcdinfo.setColumn(iNodeCnt, "baseflagcd", "ZA");
-
- // 초기값 설정
- ds_hidden.setColumn(0, "seaval", ""); // 검색값
- ds_hidden.setColumn(0, "acptfromdd", utlf_getCurrentDate()); // 접수일자(From)
- ds_hidden.setColumn(0, "acpttodd", utlf_getCurrentDate()); // 접수일자(To)
- ds_hidden.setColumn(0, "refmthdcd", "0"); // 검색방법(일별)
- ds_hidden.setColumn(0, "dispcondcd", "0"); // 표시조건(접수)
- ds_hidden.setColumn(0, "testflagcd", "0"); // 검사구분코드(내부)
- ds_hidden.setColumn(0, "statsworkflagcd", "0101");
- fExeRadioChange();
- }
- //조회
- function fGetStatsInfoList()
- {
- ds_grd_statsinfolist.clearData();
- dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "acptfromdd", val : ds_hidden.getColumn(0, "acptfromdd")}
- ,{col : "acpttodd", val : ds_hidden.getColumn(0, "acpttodd")}
- ,{col : "refmthdcd", val : ds_hidden.getColumn(0, "refmthdcd")}
- ,{col : "dispcondcd", val : ds_hidden.getColumn(0, "dispcondcd")}
- ,{col : "testflagcd", val : ds_hidden.getColumn(0, "testflagcd")}
- ,{col : "patflagcd", val : grp_sea.combo1.value}
- ,{col : "statsworkflagcd", val : ds_hidden.getColumn(0, "statsworkflagcd")}
- ,{col : "scrnno", val : "40"}
- ,{col : "baseflagcd", val : "84"}]);
-
- var oParam = {};
- oParam.id = "TRLPS00101";
- oParam.service = "plgystatsmngtapp.StatsMngtRef";
- oParam.method = "reqGetTestStats";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_grd_statsinfolist=reflist";
- oParam.async = false;
- //oParam.callback = "cf_TRLPS00101";
- tranf_submit(oParam);
- }
- function fExeRadioChange()
- {
- for(var i = 17; i <= 35; i++)
- {
- grd_statsinfolist.setFormatColProperty(i, "size", 31);
- }
- var iFromNo = 0;
- var iToNo = 0;
- var iWidth = 0;
- var bState = false;
-
- var k = 0;
- var iYear = 0;
- var sFromDD = grp_sea.ipt_cnclfromdd.value;
- sFromDD_d = sFromDD.toFormatString("%Y%m%d");
- var sToDD = grp_sea.ipt_cnclfromdd.value;
- sToDD_d = sToDD.toFormatString("%Y%m%d");
-
- if(grp_sea.cbo_refmthdcd.value == "0")
- {
- iFromNo = 5;
- iToNo = ds_grd_statsinfolist.colcount;
- 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건수";
-
- for(var i = 1; i <= 31; i++)
- {
- grd_statsinfolist.setCellProperty("head", 4+i, "text", i);
- }
-
- }
- else if(grp_sea.cbo_refmthdcd.value == "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건수";
-
- for(var i = 1; i <= 31; i++)
- {
- grd_statsinfolist.setCellProperty("head", 4+i, "text", i);
- if (i > 12)
- {
- grd_statsinfolist.setFormatColProperty(4+i, "size", 0);
- }
- }
- }
- else
- {
- iFromNo = 25;
- iToNo = 35;
- iWidth = 47;
- bState = true;
-
- for (var iNo = toNumber(sFromDD_d.substr(0,4)); iNo <= toNumber(sFromDD_d.substr(0,4)) + 20; iNo++)
- {
- grd_statsinfolist.setCellProperty("head", 5+k, "text", iNo);
- k++;
- }
- for(var j = 25; j <= 35; j++)
- {
- grd_statsinfolist.setFormatColProperty(j, "size", 0);
- }
- }
- ds_grd_statsinfolist.clearData();
- }
- //엑셀
- function fExeSaveToExcel()
- {
- var sTitle = "";
- switch (grp_sea.cbo_refmthdcd.value)
- {
- case "0" : sTitle = "검사항목별 (일별) 통계";
- break;
- case "1" : sTitle = "검사항목별 (월별) 통계";
- break;
- case "2" : sTitle = "검사항목별 (년별) 통계";
- break;
- }
- grdf_exportExcel(grd_statsinfolist, sTitle, "sheet1", false);
- }
- //조회
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetStatsInfoList();
- }
- function grp_sea_ipt_cncltodd_onkeyup(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fGetStatsInfoList();
- }
- }
- //엑셀
- function button13_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeSaveToExcel();
- }
- function grp_sea_cbo_refmthdcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fExeRadioChange();
- }
- function grp_sea_ipt_cnclfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fExeRadioChange();
- }
- ]]></Script>
- </Form>
- </FDL>
|