123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLQS00100" position="absolute 0 0 1256 805" titletext="정도관리 통계" oninit="model1_oninit" onload="SMLQS00100_onload">
- <Layouts>
- <Layout>
- <Static id="caption10" class="tit_1" position="absolute 0 0 135 25" anchor="default" positiontype="position" text="정도 관리 통계"/>
- <Button id="btn_excel" taborder="1" text="EXCEL저장" onlbuttonup="btn_excel_onlbuttonup" class="btn7" position="absolute 1158 0 1256 20" style="align:left middle;" anchor="top right" onclick="btn_excel_onclick"/>
- <Div id="grp_sea" anchor="left top right" taborder="2" style="align:center top;" position="absolute 0 25 1256 92" class="div_SA">
- <Layouts>
- <Layout>
- <Combo id="cbo_eqmt" taborder="9" visible="false" position="absolute 734 35 844 55" style="align:left middle;" anchor="default" innerdataset="@ds_init_lb0701" codecolumn="cd" datacolumn="nm"/>
- <Static id="cap_eqmt" text="장비" class="search_name" visible="false" position="absolute 658 35 728 55" style="align:left middle;" anchor="default"/>
- <Static id="caption16" text="통계구분" class="search_name" position="absolute 658 12 732 32" style="align:left middle;" anchor="default"/>
- <Combo id="cbo_if" taborder="2" position="absolute 732 11 843 31" style="align:left middle;" anchor="default" innerdataset="@ds_cond_stsflag2" codecolumn="value" datacolumn="label" index="0" value="1" text="시행부서별" onitemchanged="grp_sea_cbo_if_onitemchanged"/>
- <Static id="cap_dept" text="시행부서" class="search_name" position="absolute 658 35 732 55" style="align:left middle;" anchor="default"/>
- <Combo id="cbo_dept" taborder="3" position="absolute 732 35 842 55" style="align:left middle;" anchor="default" innerdataset="@ds_init_lb0111" codecolumn="cd" datacolumn="nm"/>
- <Static id="caption3" text="접수구분" class="search_name" position="absolute 308 35 382 55" style="align:left middle;" anchor="default"/>
- <Static id="caption4" text="조회기간" class="search_name" position="absolute 308 10 382 30" style="align:left middle;" anchor="default"/>
- <Radio id="radio1" taborder="7" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 82 10 284 30" style="align:left middle;" anchor="default" index="0" value="1" onitemchanged="grp_sea_radio1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">일별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">월별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">연별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Radio id="radio2" taborder="8" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" visible="false" position="absolute 82 34 284 54" style="align:left middle;" anchor="default" index="0" value="1">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">전 체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">완 료</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">제 외</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption2" text="결과구분" class="search_name" visible="false" position="absolute 8 35 103 55" style="align:left middle;" anchor="default"/>
- <Static id="caption1" text="조회구분" class="search_name" position="absolute 8 10 82 30" style="align:left middle;" anchor="default"/>
- <Combo id="cbo_1" taborder="10" position="absolute 382 34 482 54" style="align:left middle;" anchor="default" innerdataset="@ds_init_lb0704" codecolumn="cd" datacolumn="nm"/>
- <Button id="btn_ref" taborder="1" text="조회" onlbuttonup="btn_ref_onlbuttonup" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onclick="grp_sea_btn_ref_onclick"/>
- <Static id="caption9" text="~" position="absolute 464 10 483 30" style="align:center;" visible="true" anchor="default"/>
- <Calendar id="ipt_stsfromdd" taborder="13" position="absolute 381 9 468 30" anchor="default"/>
- <Calendar id="ipt_ststodd" taborder="14" position="absolute 481 9 569 30" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="통계 리스트" class="tit_2" position="absolute 0 102 155 122"/>
- <Grid id="grd_stsList" taborder="3" useinputpanel="false" position="absolute 0 122 1256 805" style="align:center middle;" anchor="all" binddataset="ds_grid_grd_stsList">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="90"/>
- <Column size="120"/>
- <Column size="60"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="No."/>
- <Cell col="1" text="구분"/>
- <Cell col="2" text="검사명"/>
- <Cell col="3" text="Total"/>
- <Cell col="4" text="1"/>
- <Cell col="5" text="2"/>
- <Cell col="6" text="3"/>
- <Cell col="7" text="4"/>
- <Cell col="8" text="5"/>
- <Cell col="9" text="6"/>
- <Cell col="10" text="7"/>
- <Cell col="11" text="8"/>
- <Cell col="12" text="9"/>
- <Cell col="13" text="10"/>
- <Cell col="14" text="11"/>
- <Cell col="15" text="12"/>
- <Cell col="16" text="13"/>
- <Cell col="17" text="14"/>
- <Cell col="18" text="15"/>
- <Cell col="19" text="16"/>
- <Cell col="20" text="17"/>
- <Cell col="21" text="18"/>
- <Cell col="22" text="19"/>
- <Cell col="23" text="20"/>
- <Cell col="24" text="21"/>
- <Cell col="25" text="22"/>
- <Cell col="26" text="23"/>
- <Cell col="27" text="24"/>
- <Cell col="28" text="25"/>
- <Cell col="29" text="26"/>
- <Cell col="30" text="27"/>
- <Cell col="31" text="28"/>
- <Cell col="32" text="29"/>
- <Cell col="33" text="30"/>
- <Cell col="34" text="31"/>
- </Band>
- <Band id="body">
- <Cell expr="expr:currow+1"/>
- <Cell col="1" style="align:left middle;" text="bind:itemnm1"/>
- <Cell col="2" style="align:left middle;" text="bind:itemnm2"/>
- <Cell col="3" displaytype="number" style="align:right middle;background:#ffe79dff;background2:#ffe79d;" text="bind:total" mask="#,###.#"/>
- <Cell col="4" displaytype="number" style="align:right middle;" text="bind:d01" mask="#,###.#"/>
- <Cell col="5" displaytype="number" style="align:right middle;" text="bind:d02" mask="#,###.#"/>
- <Cell col="6" displaytype="number" style="align:right middle;" text="bind:d03" mask="#,###.#"/>
- <Cell col="7" displaytype="number" style="align:right middle;" text="bind:d04" mask="#,###.#"/>
- <Cell col="8" displaytype="number" style="align:right middle;" text="bind:d05" mask="#,###.#"/>
- <Cell col="9" displaytype="number" style="align:right middle;" text="bind:d06" mask="#,###.#"/>
- <Cell col="10" displaytype="number" style="align:right middle;" text="bind:d07" mask="#,###.#"/>
- <Cell col="11" displaytype="number" style="align:right middle;" text="bind:d08" mask="#,###.#"/>
- <Cell col="12" displaytype="number" style="align:right middle;" text="bind:d09" mask="#,###.#"/>
- <Cell col="13" displaytype="number" style="align:right middle;" text="bind:d10" mask="#,###.#"/>
- <Cell col="14" displaytype="number" style="align:right middle;" text="bind:d11" mask="#,###.#"/>
- <Cell col="15" displaytype="number" style="align:right middle;" text="bind:d12" mask="#,###.#"/>
- <Cell col="16" displaytype="number" style="align:right middle;" text="bind:d13" mask="#,###.#"/>
- <Cell col="17" displaytype="number" style="align:right middle;" text="bind:d14" mask="#,###.#"/>
- <Cell col="18" displaytype="number" style="align:right middle;" text="bind:d15" mask="#,###.#"/>
- <Cell col="19" displaytype="number" style="align:right middle;" text="bind:d16" mask="#,###.#"/>
- <Cell col="20" displaytype="number" style="align:right middle;" text="bind:d17" mask="#,###.#"/>
- <Cell col="21" displaytype="number" style="align:right middle;" text="bind:d18" mask="#,###.#"/>
- <Cell col="22" displaytype="number" style="align:right middle;" text="bind:d19" mask="#,###.#"/>
- <Cell col="23" displaytype="number" style="align:right middle;" text="bind:d20" mask="#,###.#"/>
- <Cell col="24" displaytype="number" style="align:right middle;" text="bind:d21" mask="#,###.#"/>
- <Cell col="25" displaytype="number" style="align:right middle;" text="bind:d22" mask="#,###.#"/>
- <Cell col="26" displaytype="number" style="align:right middle;" text="bind:d23" mask="#,###.#"/>
- <Cell col="27" displaytype="number" style="align:right middle;" text="bind:d24" mask="#,###.#"/>
- <Cell col="28" displaytype="number" style="align:right middle;" text="bind:d25" mask="#,###.#"/>
- <Cell col="29" displaytype="number" style="align:right middle;" text="bind:d26" mask="#,###.#"/>
- <Cell col="30" displaytype="number" style="align:right middle;" text="bind:d27" mask="#,###.#"/>
- <Cell col="31" displaytype="number" style="align:right middle;" text="bind:d28" mask="#,###.#"/>
- <Cell col="32" displaytype="number" style="align:right middle;" text="bind:d29" mask="#,###.#"/>
- <Cell col="33" displaytype="number" style="align:right middle;" text="bind:d30" mask="#,###.#"/>
- <Cell col="34" displaytype="number" style="align:right middle;" text="bind:d31" mask="#,###.#"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_cond_stsflag2" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">시행부서별</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">검사장비별</Col>
- <Col id="value">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_lb0704" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0701" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_stsList" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <column id="stsflag1" type="STRING" size="256"/>
- <column id="itemnm1" type="STRING" size="256"/>
- <column id="itemnm2" type="STRING" size="256"/>
- <column id="total" type="STRING" size="256"/>
- <column id="d01" type="STRING" size="256"/>
- <column id="d02" type="STRING" size="256"/>
- <column id="d03" type="STRING" size="256"/>
- <column id="d04" type="STRING" size="256"/>
- <column id="d05" type="STRING" size="256"/>
- <column id="d06" type="STRING" size="256"/>
- <column id="d07" type="STRING" size="256"/>
- <column id="d08" type="STRING" size="256"/>
- <column id="d09" type="STRING" size="256"/>
- <column id="d10" type="STRING" size="256"/>
- <column id="d11" type="STRING" size="256"/>
- <column id="d12" type="STRING" size="256"/>
- <column id="d13" type="STRING" size="256"/>
- <column id="d14" type="STRING" size="256"/>
- <column id="d15" type="STRING" size="256"/>
- <column id="d16" type="STRING" size="256"/>
- <column id="d17" type="STRING" size="256"/>
- <column id="d18" type="STRING" size="256"/>
- <column id="d19" type="STRING" size="256"/>
- <column id="d20" type="STRING" size="256"/>
- <column id="d21" type="STRING" size="256"/>
- <column id="d22" type="STRING" size="256"/>
- <column id="d23" type="STRING" size="256"/>
- <column id="d24" type="STRING" size="256"/>
- <column id="d25" type="STRING" size="256"/>
- <column id="d26" type="STRING" size="256"/>
- <column id="d27" type="STRING" size="256"/>
- <column id="d28" type="STRING" size="256"/>
- <column id="d29" type="STRING" size="256"/>
- <column id="d30" type="STRING" size="256"/>
- <column id="d31" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="stsflag" type="STRING" size="256"/>
- <Column id="stsfromdd" type="STRING" size="256"/>
- <Column id="ststodd" type="STRING" size="256"/>
- <Column id="stskind" type="STRING" size="256"/>
- <Column id="stskind2" type="STRING" size="256"/>
- <Column id="stsdept" type="STRING" size="256"/>
- <Column id="stsflag2" type="STRING" size="256"/>
- <Column id="stseqmt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="stsflag">1</Col>
- <Col id="stskind">00</Col>
- <Col id="stskind2">1</Col>
- <Col id="stsdept">00</Col>
- <Col id="stsflag2">1</Col>
- <Col id="stseqmt">00</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.radio1" propid="value" datasetid="ds_hidden" columnid="stsflag"/>
- <BindItem id="item1" compid="grp_sea.radio2" propid="value" datasetid="ds_hidden" columnid="stskind2"/>
- <BindItem id="item2" compid="grp_sea.ipt_stsfromdd" propid="value" datasetid="ds_hidden" columnid="stsfromdd"/>
- <BindItem id="item3" compid="grp_sea.ipt_ststodd" propid="value" datasetid="ds_hidden" columnid="ststodd"/>
- <BindItem id="item4" compid="grp_sea.cbo_1" propid="value" datasetid="ds_hidden" columnid="stskind"/>
- <BindItem id="item5" compid="grp_sea.cbo_if" propid="value" datasetid="ds_hidden" columnid="stsflag2"/>
- <BindItem id="item6" compid="grp_sea.cbo_dept" propid="value" datasetid="ds_hidden" columnid="stsdept"/>
- <BindItem id="item7" compid="grp_sea.cbo_eqmt" propid="value" datasetid="ds_hidden" columnid="stseqmt"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
-
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LZZ001.xjs";
- include "lis_commonxp::LPZ001.xjs";
- include "lis_commonxp::LLZ001.xjs";
- var instcd = "";
- var seaval = ""; // 검색값
- var strText = ""; // Grid Head text
- var sendYear = "";
- function model1_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMLQS00100_onload(obj:Form, e:LoadEventInfo)
- {
- lf_setInit();
- }
- function lf_setInit() {
-
- var toDay = utlf_getCurrentDate();
- //grp_sea.ipt_stsfromdd.value = toDay;
- //grp_sea.ipt_ststodd.value =toDay;
- ds_hidden.setColumn(0, "stsfromdd", toDay);
- ds_hidden.setColumn(0, "ststodd", toDay);
- //grp_sea.ipt_stsfromdd.setCallEvent("lf_calFromChng");
- //grp_sea.ipt_ststodd.setCallEvent("lf_calToChng");
-
- // 초기정보 조회(0000:사용자부서코드, 0111:시행부서계 0707: 장비코드)
- dsf_createDsRow("ds_temp_search"
- , [{col: "codeflag", val: "0000|0111|0701|"}
- , {col: "basecdid", val: ""}
- , {col: "menuparam", val: ""}]);
-
- var oParam = {};
- oParam.id = "TRLZZ00101";
- oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
- oParam.method = "reqGetInitCodeInfo";
- oParam.inds = "cond=ds_temp_search";
- oParam.outds = "ds_init_lb0111=0111 ds_init_lb0701=0701 ds_init_lb0000=0000";
- oParam.async = false;
- oParam.callback = "cf_TRLZZ00101";
- tranf_submit(oParam);
- }
- function lf_getStats() {
-
- var fromdd = grp_sea.ipt_stsfromdd.value;
- fromdd = fromdd + "01";
- var lastday = utlf_getLastDate(fromdd);
-
- var stsflag = grp_sea.radio1.value; // 조회구분 1: 일별, 2: 월별, 3: 연별
- var stsfromdd = fromdd;
- var ststodd = grp_sea.ipt_ststodd.value;
- var stskind = grp_sea.cbo_1.value; // 통계구분 1: 시행부서, 2: 진료과, 3: 진료의, 4: 채혈자, 5: 시간대별 (단, 병동 및 아침채혈의 경우 1: 병동별)
- var stskind2 = grp_sea.radio2.value; // 결과상태 1: 전체, 2: 완료, 3: 제외
- var stsflag2 = grp_sea.cbo_if.value; // 통계구분 1: 시행부서별, 2: 장비별
- var stsdept = grp_sea.cbo_dept.value; // 시행부서
- var stseqmt = grp_sea.cbo_eqmt.value; // 시행부서
- var deptflag = ds_init_lb0000.getColumn(0, "nm");
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "stsflag", val:stsflag }
- , {col: "stsfromdd", val:stsfromdd }
- , {col: "ststodd", val:ststodd }
- , {col: "stsflag2", val:stsflag2 }
- , {col: "stskind", val:stskind }
- , {col: "stskind2", val:stskind2 }
- , {col: "stsdept", val:stsdept }
- , {col: "stseqmt", val:stseqmt }
- , {col: "lastday", val:lastday }
- , {col: "year", val:sendYear }
- , {col: "deptflag", val:deptflag }
- ]);
-
- var oParam = {};
- oParam.id = "TRLQS00101";
- oParam.service = "grademngtprintapp.MaterialStatsReference";
- oParam.method = "reqGetQCSts";
- oParam.inds = "cond=ds_temp_search";
- oParam.outds = "ds_grid_grd_stsList=stslist";
- oParam.async = false;
- oParam.callback = "cf_TRLZZ00101";
- tranf_submit(oParam);
- }
- //통계 희망 월 선택 시 그리드 셋팅 위해 해당월의 마지막 날짜 구함
- function getLastDay(dt) {
-
- var year = dt.substr(0,4); //년
- var month = dt.substr(4,2); //월
- with(new Date(year, month, 1, 12)) { //MM = 1 .. 12
- setDate(0);
- return getDate();
- }
- }
- //조회하고자 하는 월별 그리드 셋팅하기
- function lf_grdSet(stsflag)
- {
- for(var i=4; i<grd_stsList.getFormatColCount(); i++)
- {
- grd_stsList.setCellProperty("head", i, "text", "");
- grd_stsList.setFormatColProperty(i, "size", 0);
- }
-
- // 일별
- if(stsflag == "1")
- {
- var day = grp_sea.ipt_stsfromdd.value+"01";
-
- var lastCol = utlf_getLastDate(day)+3; // 선택된 월의 마지막날 + 3(부서명,구분,Total 컬럼)
-
- // 부서명때문에 2부터 시작(부서명은 아침채혈일때만 보임)
- for(var i=2; i<grd_stsList.getFormatColCount(); i++)
- {
- if(i<=lastCol)
- {
- grd_stsList.setFormatColProperty(i, "size", 80);
- if(i >3)
- {
- grd_stsList.setFormatColProperty(i, "size", 40);
- }
- }
- else
- {
- grd_stsList.setFormatColProperty(i, "size", 0);
- }
- }
- strText = "구분^검사명^Total^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31";
- var arrTx = strText.split("^");
- var cnt = 0;
- for(var i=1; i < grd_stsList.getFormatColCount(); i++)
- {
- if(!utlf_isNull(arrTx[cnt]))
- {
- grd_stsList.setCellProperty("head", i, "text", arrTx[cnt]);
- cnt++;
- }
- }
-
- // 연별
- }
- else if(stsflag == "3")
- {
- //var dayFrom = grp_sea.ipt_stsfromdd.value;
- //var dayTo = grp_sea.ipt_ststodd.value;
- var dayFrom = ds_hidden.getColumn(0, "stsfromdd");
- var dayTo = ds_hidden.getColumn(0, "ststodd");
-
- var fromdd = toNumber(dayFrom.substr(0,4));
- var todd = toNumber(dayTo.substr(0,4));
- var year = fromdd+"^";
- var yearlength = 0;
-
- for(var i=fromdd+1; i<=todd; i++)
- {
- year += i +"^" ;
- }
- sendYear = year;
-
- yearlength = year.split("^").length;
-
- for(var i=4; i<grd_stsList.getFormatColCount()-1; i++)
- {
- if(i<yearlength+3)
- {
- grd_stsList.setFormatColProperty(i, "size", 80);
- }else{
- grd_stsList.setFormatColProperty(i, "size", 0);
- }
- }
- strText = "구분^검사명^Total^"+year;
- trace(">>>>>>>>>>>>>>>>>>> "+strText);
- var arrTx = strText.split("^");
- var cnt = 0;
- for(var i=1; i<grd_stsList.getFormatColCount(); i++) {
- if(!utlf_isNull(arrTx[cnt])) {
- grd_stsList.setCellProperty("head", i, "text", arrTx[cnt]);
- cnt++;
- }
- }
- }
- }
- //조회구분 선택시 통계희망월 포멧 지정 및 그리드 컬럼 지정하기
- function lf_showHopeddnGridSet() {
-
- for(var i=4; i<grd_stsList.getFormatColCount(); i++){
- grd_stsList.setCellProperty("head", i, "text", "");
- grd_stsList.setFormatColProperty(i, "size", 0);
- }
-
- var strFrom = "";
- var strTo = "";
- var difFromTo = 0;
- var toDay = utlf_getCurrentDate();
-
- // 연별
- if(grp_sea.radio1.value == "3") {
-
- //grp_sea.ipt_stsfromdd.value = utlf_getCurrentDate().substr(0, 4);
- //grp_sea.ipt_ststodd.value = utlf_getCurrentDate().substr(0, 4);
- ds_hidden.setColumn(0, "stsfromdd", utlf_getCurrentDate().substr(0, 4));
- ds_hidden.setColumn(0, "ststodd", utlf_getCurrentDate().substr(0, 4));
- grp_sea.ipt_stsfromdd.dateformat = 'yyyy';
- grp_sea.ipt_ststodd.dateformat = 'yyyy';
- grd_stsList.setFormatColProperty(4, "size", 80);
-
- for(var i=5; i<grd_stsList.getFormatColCount()-1; i++)
- {
- grd_stsList.setFormatColProperty(i, "size", 80);
- }
- grp_sea.ipt_ststodd.visible = true; // todd 날짜
- grp_sea.caption9.visible = true;
- //strFrom = grp_sea.ipt_stsfromdd.value;
- strFrom = ds_hidden.getColumn(0, "stsfromdd");
-
- strTo = ds_hidden.getColumn(0, "ststodd");
- difFromTo = strTo - strFrom;
-
- for(var i=4; i<grd_stsList.getFormatColCount(); i++) {
- if(difFromTo >= 0) {
- grd_stsList.setCellProperty("head", i, "text", strFrom);
- strFrom++;
- difFromTo--;
- }else{
- grd_stsList.setFormatColProperty(i, "size", 0);
- }
- }
- sendYear = toDay.substr(0, 4);
-
- }
- else
- {
- grp_sea.ipt_ststodd.visible = false;
- grp_sea.caption9.visible = false;
- // 일별
- if(grp_sea.radio1.value == "1")
- {
- //grp_sea.ipt_stsfromdd.value = toDay.substr(0, 6);
- ds_hidden.setColumn(0, "stsfromdd", utlf_getCurrentDate().substr(0, 6));
- grp_sea.ipt_stsfromdd.dateformat = 'yyyy-MM-dd';
- grp_sea.ipt_ststodd.dateformat = 'yyyy-MM-dd';
- lf_grdSet(1);
-
- }
- else // 월별
- {
- //grp_sea.ipt_stsfromdd.value = toDay.substr(0, 4);
- ds_hidden.setColumn(0, "stsfromdd", utlf_getCurrentDate().substr(0, 6));
- grp_sea.ipt_stsfromdd.dateformat = 'yyyy-MM';
- // 부서명때문에 2부터 시작(부서명은 아침채혈일때만 보임)
- for(var i=2; i < grd_stsList.getFormatColCount(); i++)
- {
- if(i<=15)
- {
- grd_stsList.setFormatColProperty(i, "size", 80);
- if(i>3)
- {
- grd_stsList.setFormatColProperty(i, "size", 75);
- }
- }
- else
- {
- grd_stsList.setFormatColProperty(i, "size", 0);
- }
- }
- strText = "구분^검사명^Total^1^2^3^4^5^6^7^8^9^10^11^12";
- var arrTx = strText.split("^");
- var cnt = 0;
- for(var i=1; i<grd_stsList.getFormatColCount(); i++) {
- if(!utlf_isNull(arrTx[cnt])) {
- grd_stsList.setCellProperty("head", i, "text", arrTx[cnt]);
- cnt++;
- }
- }
- }
- }
- }
- // callback 함수
- function cf_TRLZZ00101(strSvcID, nErrorCode, strErrorMag) {
- if(nErrorCode != 0) {
- sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
- }else{
- switch(strSvcID){
- case "TRLZZ00101":
- grdf_setGridSort(grd_stsList);
-
- // 부서에 따른 접수구분 조회 (704: 접수구분)
- var basecdid = ds_init_lb0000.getColumn(0, "nm");
- dsf_createDsRow("ds_temp_search"
- , [{col: "codeflag", val: "0704|"}
- , {col: "basecdid", val: basecdid}
- , {col: "menuparam", val: ""}]);
-
-
- var oParam = {};
- oParam.id = "TRLZZ00101_1";
- oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
- oParam.method = "reqGetInitCodeInfo";
- oParam.inds = "cond=ds_temp_search";
- oParam.outds = "ds_init_lb0704=0704";
- oParam.async = true;
- oParam.callback = "cf_TRLZZ00101";
- tranf_submit(oParam);
-
- break;
- case "TRLZZ00101_1":
- var fRow = ds_init_lb0704.findRow("cd", "00");
- ds_init_lb0704.setColumn(fRow, "nm", "- 전 체 -");
-
- grp_sea.cbo_1.index = 0;
- grp_sea.cbo_dept.index = 0;
- grp_sea.cbo_eqmt.index = 0;
-
- //해당일에 대한 마지막 일자 가져와서 그리드 컬럼 숨기기
- var strDate = utlf_getCurrentDate();
- var sDt = utlf_getLastDate(strDate);
- var lastDay = toNumber(sDt.substr(6, 2))+4;
- for(var i=lastDay; i>grd_stsList.getFormatColCount()-1; i--)
- {
- grd_stsList.setFormatColProperty(i-1, "size", 0);
- }
- break;
- case "TRLQS00101":
- grdf_setRowStyle(grd_stsList , "3" , "0" , "stsflag1" , "equal" );
- break;
- default:
- break;
- }
- }
- }
- function btn_ref_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- if(grp_sea.radio1.value == "3")
- {
- var fromdd = ds_hidden.getColumn(0, "stsfromdd");
- var todd = ds_hidden.getColumn(0, "ststodd");
- if((todd - fromdd) >9) {
- alert("10년 이내로 조회 가능합니다\n조회기간을 다시 선택하세요");
- return;
- }
- }
- lf_getStats();
- }
- function lf_calFromChng(r) {
- var stsflag = grp_sea.radio1.value;
- lf_grdSet(stsflag);
- }
- function lf_calToChng(r) {
- var stsflag = grp_sea.radio1.value;
- lf_grdSet(stsflag);
- }
- function grp_sea_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- lf_showHopeddnGridSet();
- }
- function grp_sea_cbo_if_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- if(grp_sea.cbo_if.value == "2"){
- grp_sea.cap_dept.visible = false;
- grp_sea.cbo_dept.visible = false;
- grp_sea.cap_eqmt.visible = true;
- grp_sea.cbo_eqmt.visible = true;
- }else{
- grp_sea.cap_dept.visible = true;
- grp_sea.cbo_dept.visible = true;
- grp_sea.cap_eqmt.visible = false;
- grp_sea.cbo_eqmt.visible = false;
- }
- }
- function btn_excel_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- var sTitle = "정도관리_"+utlf_getCurrentDate();
- grdf_exportExcel(grd_stsList, lf_lisGetTitle(this) + "_" + sTitle+".xls", sTitle, false);
- }]]></Script>
- </Form>
- </FDL>
|