123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAHA01100" position="absolute 0 0 1196 750" titletext="검사실현황 집계표" oninit="SMAHA01100_oninit" onload="SMAHA01100_onload">
- <Layouts>
- <Layout>
- <Tab id="switch1" taborder="5" tabindex="0" position="absolute 0 67 1195 749" anchor="all">
- <Tabpages>
- <Tabpage id="case1" text="검사실현황">
- <Layouts>
- <Layout>
- <Grid id="grd_mainlist" taborder="0" binddataset="ds_main_mainlist_item" useinputpanel="false" position="absolute 0 0 1195 655" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all" oncelldblclick="switch1_case1_grd_mainlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="120"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- <Column size="33"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="검사실코드"/>
- <Cell col="1" text="검사실명"/>
- <Cell col="2" text="01일"/>
- <Cell col="3" text="02일"/>
- <Cell col="4" text="03일"/>
- <Cell col="5" text="04일"/>
- <Cell col="6" text="05일"/>
- <Cell col="7" text="06일"/>
- <Cell col="8" text="07일"/>
- <Cell col="9" text="08일"/>
- <Cell col="10" text="09일"/>
- <Cell col="11" text="10일"/>
- <Cell col="12" text="11일"/>
- <Cell col="13" text="12일"/>
- <Cell col="14" text="13일"/>
- <Cell col="15" text="14일"/>
- <Cell col="16" text="15일"/>
- <Cell col="17" text="16일"/>
- <Cell col="18" text="17일"/>
- <Cell col="19" text="18일"/>
- <Cell col="20" text="19일"/>
- <Cell col="21" text="20일"/>
- <Cell col="22" text="21일"/>
- <Cell col="23" text="22일"/>
- <Cell col="24" text="23일"/>
- <Cell col="25" text="24일"/>
- <Cell col="26" text="25일"/>
- <Cell col="27" text="26일"/>
- <Cell col="28" text="27일"/>
- <Cell col="29" text="28일"/>
- <Cell col="30" text="29일"/>
- <Cell col="31" text="30일"/>
- <Cell col="32" text="31일"/>
- </Band>
- <Band id="body">
- <Cell text="bind:testroomcd"/>
- <Cell col="1" style="align:left middle;padding:0 0 0 3;background:EXPR(bg1);background2:EXPR(bg1);" text="bind:testroomnm"/>
- <Cell col="2" style="background:EXPR(holiy_day01);background2:EXPR(holiy_day01);" text="bind:day01"/>
- <Cell col="3" style="background:EXPR(holiy_day02);background2:EXPR(holiy_day02);" text="bind:day02"/>
- <Cell col="4" style="background:EXPR(holiy_day03);background2:EXPR(holiy_day03);" text="bind:day03"/>
- <Cell col="5" style="background:EXPR(holiy_day04);background2:EXPR(holiy_day04);" text="bind:day04"/>
- <Cell col="6" style="background:EXPR(holiy_day05);background2:EXPR(holiy_day05);" text="bind:day05"/>
- <Cell col="7" style="background:EXPR(holiy_day06);background2:EXPR(holiy_day06);" text="bind:day06"/>
- <Cell col="8" style="background:EXPR(holiy_day07);background2:EXPR(holiy_day07);" text="bind:day07"/>
- <Cell col="9" style="background:EXPR(holiy_day08);background2:EXPR(holiy_day08);" text="bind:day08"/>
- <Cell col="10" style="background:EXPR(holiy_day09);background2:EXPR(holiy_day09);" text="bind:day09"/>
- <Cell col="11" style="background:EXPR(holiy_day10);background2:EXPR(holiy_day10);" text="bind:day10"/>
- <Cell col="12" style="background:EXPR(holiy_day11);background2:EXPR(holiy_day11);" text="bind:day11"/>
- <Cell col="13" style="background:EXPR(holiy_day12);background2:EXPR(holiy_day12);" text="bind:day12"/>
- <Cell col="14" style="background:EXPR(holiy_day13);background2:EXPR(holiy_day13);" text="bind:day13"/>
- <Cell col="15" style="background:EXPR(holiy_day14);background2:EXPR(holiy_day14);" text="bind:day14"/>
- <Cell col="16" style="background:EXPR(holiy_day15);background2:EXPR(holiy_day15);" text="bind:day15"/>
- <Cell col="17" style="background:EXPR(holiy_day16);background2:EXPR(holiy_day16);" text="bind:day16"/>
- <Cell col="18" style="background:EXPR(holiy_day17);background2:EXPR(holiy_day17);" text="bind:day17"/>
- <Cell col="19" style="background:EXPR(holiy_day18);background2:EXPR(holiy_day18);" text="bind:day18"/>
- <Cell col="20" style="background:EXPR(holiy_day19);background2:EXPR(holiy_day19);" text="bind:day19"/>
- <Cell col="21" style="background:EXPR(holiy_day20);background2:EXPR(holiy_day20);" text="bind:day20"/>
- <Cell col="22" style="background:EXPR(holiy_day21);background2:EXPR(holiy_day21);" text="bind:day21"/>
- <Cell col="23" style="background:EXPR(holiy_day22);background2:EXPR(holiy_day22);" text="bind:day22"/>
- <Cell col="24" style="background:EXPR(holiy_day23);background2:EXPR(holiy_day23);" text="bind:day23"/>
- <Cell col="25" style="background:EXPR(holiy_day24);background2:EXPR(holiy_day24);" text="bind:day24"/>
- <Cell col="26" style="background:EXPR(holiy_day25);background2:EXPR(holiy_day25);" text="bind:day25"/>
- <Cell col="27" style="background:EXPR(holiy_day26);background2:EXPR(holiy_day26);" text="bind:day26"/>
- <Cell col="28" style="background:EXPR(holiy_day27);background2:EXPR(holiy_day27);" text="bind:day27"/>
- <Cell col="29" style="background:EXPR(holiy_day28);background2:EXPR(holiy_day28);" text="bind:day28"/>
- <Cell col="30" style="background:EXPR(holiy_day29);background2:EXPR(holiy_day29);" text="bind:day29"/>
- <Cell col="31" style="background:EXPR(holiy_day30);background2:EXPR(holiy_day30);" text="bind:day30"/>
- <Cell col="32" style="background:EXPR(holiy_day31);background2:EXPR(holiy_day31);" text="bind:day31"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case2" text="실별 처방내역">
- <Layouts>
- <Layout>
- <Grid id="grd_sublist" taborder="0" binddataset="ds_main_sublist_item" useinputpanel="false" position="absolute 0 0 1195 655" autoenter="select" autofittype="none" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="70"/>
- <Column size="75"/>
- <Column size="94"/>
- <Column size="81"/>
- <Column size="75"/>
- <Column size="98"/>
- <Column size="88"/>
- <Column size="81"/>
- <Column size="103"/>
- <Column size="110"/>
- <Column size="115"/>
- <Column size="85"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="등록번호"/>
- <Cell col="2" text="처방코드"/>
- <Cell col="3" text="처방명"/>
- <Cell col="4" text="환자명"/>
- <Cell col="5" text="상태"/>
- <Cell col="6" text="주민번호"/>
- <Cell col="7" text="처방일자"/>
- <Cell col="8" text="종합검진일"/>
- <Cell col="9" text="연락처"/>
- <Cell col="10" text="휴대번호"/>
- <Cell col="11" text="단체명"/>
- <Cell col="12" text="비고"/>
- <Cell col="13" text="E-Mail"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" text="bind:testcd"/>
- <Cell col="3" style="align:left top;padding:0 0 0 3;" text="bind:testnm" wordwrap="word"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" displaytype="combo" style="align:center middle;" text="bind:statflag" combodataset="ds_init_baseinfo_statflag_A0107" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="6" text="bind:rrgstno" mask="######-#######" maskchar=" "/>
- <Cell col="7" displaytype="date" text="bind:rsrvdd" calendardisplaynulltype="nulltext"/>
- <Cell col="8" displaytype="date" text="bind:acptdd" calendardisplaynulltype="nulltext"/>
- <Cell col="9" text="bind:hometel"/>
- <Cell col="10" text="bind:mpphontel"/>
- <Cell col="11" style="align:left top;" text="bind:cmpynm" wordwrap="char"/>
- <Cell col="12" style="align:left top;padding:3 0 0 3;" text="bind:remcnts" wordwrap="word"/>
- <Cell col="13" text="bind:email"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static text="검사실현황 집계표" position="absolute 0 0 189 25" id="caption6" class="tit_1"/>
- <Div id="grp_sea" taborder="1" class="div_SA" position="absolute 0 25 1195 65" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption21" text="기간 :" class="search_name" position="absolute 7 14 68 31" anchor="default"/>
- <Static id="caption1" text="건진장소 :" class="search_name" position="absolute 190 13 276 30" anchor="default"/>
- <Calendar id="ipt_srchfromdd" taborder="1" class="input_essential" position="absolute 63 11 168 30" autoselect="true" autoskip="true" anchor="default"/>
- <Combo id="cmb_place" taborder="2" innerdataset="@ds_init_baseinfo_healexamplacelst_S600" codecolumn="cdid" datacolumn="cdnm" class="combo_essential" position="absolute 278 11 363 30" anchor="default"/>
- <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 395 10 451 32" anchor="default" onclick="grp_sea_btn_search_onclick"/>
- <Shape id="line18" linetype="vertical" class="line_4" position="absolute 382 10 388 32" anchor="default"/>
- <Static id="caption2" text="일자별비고 :" class="search_name" position="absolute 460 13 559 30" anchor="default"/>
- <Calendar id="ipt_remdd" taborder="4" position="absolute 551 11 659 30" autoselect="true" autoskip="true" anchor="default" onchanged="grp_sea_ipt_remdd_onchanged"/>
- <TextArea id="tar_remcnts" taborder="5" position="absolute 665 6 1185 36" autoselect="true" anchor="default" wordwrap="word" autoskip="true"/>
- </Layout>
- </Layouts>
- </Div>
- <Combo id="cmb_year" taborder="2" innerdataset="@ds_init_baseinfo_yearlst_P0167" codecolumn="cdid" datacolumn="cdnm" visible="false" position="absolute 204 70 304 89" onitemchanged="cmb_year_onitemchanged"/>
- <Combo id="cmb_month" taborder="3" innerdataset="@ds_init_baseinfo_monthlst_R0009" codecolumn="cdid" datacolumn="cdnm" visible="false" position="absolute 309 70 409 89"/>
- <Button id="btn_srch_dayb" taborder="4" text="조회" class="btn2" visible="false" position="absolute 479 67 523 89" onclick="btn_srch_dayb_onclick"/>
- <Button id="button1" taborder="6" text="엑셀저장" class="btn7" position="absolute 1114 67 1194 89" onclick="button1_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchhealexamflag" type="STRING" size="256"/>
- <Column id="srchfromdd" type="STRING" size="256"/>
- <Column id="srchtodd" type="STRING" size="256"/>
- <Column id="srchinstcd" type="STRING" size="256"/>
- <Column id="srchprescond" type="STRING" size="256"/>
- <Column id="srchyear" type="STRING" size="256"/>
- <Column id="srchmoth" type="STRING" size="256"/>
- <Column id="srchtestroomcd" type="STRING" size="256"/>
- <Column id="srchplacecd" type="STRING" size="256"/>
- <Column id="srchlastdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchhealexamflag"/>
- <Col id="srchfromdd"/>
- <Col id="srchtodd"/>
- <Col id="srchinstcd"/>
- <Col id="srchprescond"/>
- <Col id="srchyear"/>
- <Col id="srchmoth"/>
- <Col id="srchtestroomcd"/>
- <Col id="srchplacecd">S</Col>
- <Col id="srchlastdd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_dayblist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="remdd" type="STRING" size="256"/>
- <Column id="remcnts" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="remdd"/>
- <Col id="remcnts"/>
- <Col id="instcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_baseinfo_healexamplacelst_S600" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_baseinfo_yearlst_P0167" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_baseinfo_monthlst_R0009" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_mainlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="testroomcd" type="STRING" size="256" sumtext="검사실코드"/>
- <Column id="testroomnm" type="STRING" size="256" sumtext="검사실명"/>
- <Column id="day01" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day02" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day03" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day04" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day05" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day06" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day07" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day08" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day09" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day10" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day11" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day12" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day13" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day14" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day15" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day16" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day17" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day18" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day19" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day20" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day21" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day22" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day23" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day24" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day25" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day26" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day27" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day28" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day29" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day30" type="INT" size="256" sumtext="검사실명"/>
- <Column id="day31" type="INT" size="256" sumtext="검사실명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_sublist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="검사실코드"/>
- <Column id="testcd" type="STRING" size="256" sumtext="검사실코드"/>
- <Column id="testnm" type="STRING" size="256" sumtext="검사실코드"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="검사실명"/>
- <Column id="rsrvdd" type="STRING" size="256" sumtext="예약건수"/>
- <Column id="acptdd" type="STRING" size="256" sumtext="접수건수"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="휴대번호"/>
- <Column id="statflag" type="STRING" size="256" sumtext="접수구분"/>
- <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
- <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
- <Column id="email" type="STRING" size="256" sumtext="이메일"/>
- <Column id="cmpynm" type="STRING" size="256" sumtext="단체명"/>
- <Column id="remcnts" type="STRING" size="256" sumtext="비고"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_baseinfo_statflag_A0107" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_dayinfo_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basedd" type="STRING" size="256" sumtext="날짜"/>
- <Column id="dutflag" type="STRING" size="256" sumtext="공휴일"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_G40list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_srchfromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
- <BindItem id="item1" compid="grp_sea.cmb_place" propid="value" datasetid="ds_send" columnid="srchplacecd"/>
- <BindItem id="item2" compid="grp_sea.ipt_remdd" propid="value" datasetid="ds_main_dayblist" columnid="remdd"/>
- <BindItem id="item3" compid="grp_sea.tar_remcnts" propid="value" datasetid="ds_main_dayblist" columnid=""/>
- <BindItem id="item4" compid="cmb_year" propid="value" datasetid="ds_send" columnid="srchyear"/>
- <BindItem id="item5" compid="cmb_month" propid="value" datasetid="ds_send" columnid="srchmoth"/>
- </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";
- include "ast_healexamxp::AHA001.xjs";
- include "ast_healthexambasexp::healcombolist.xjs";
- function SMAHA01100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMAHA01100_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(switch1.case1.grd_mainlist);
- grdf_initGrid(switch1.case2.grd_sublist);
-
- fGetBasicList();
- fInit();
- fGetSearch();
- }
- function fGetBasicList()
- {
- ds_send.setColumn(0, "srchinstcd",sysf_getUserInfo("dutplceinstcd"));
-
- var arrParam = [{dsNm: "ds_init_baseinfo_healflaglst_A0068", cdGrpId: "A0068"}
- ,{dsNm: "ds_init_baseinfo_yearlst_P0167", cdGrpId: "P0167"}
- ,{dsNm: "ds_init_baseinfo_monthlst_R0009", cdGrpId: "R0009"}
- ,{dsNm: "ds_init_baseinfo_statflag_A0107", cdGrpId: "A0107"}]
- appf_getCodeList(arrParam);
-
- var arrParam = [{dsNm: "ds_init_baseinfo_healexamplacelst_S600", cdGrpId: "S600"}];
- healGetCodeList(arrParam);
-
- //기본코드 조회추가
- fGetAstCodeList();
- }
- function fInit()
- {
- ds_send.setColumn(0, "srchyear" , String(utlf_getCurrentDate()).substr(0,4));
- ds_send.setColumn(0, "srchmoth" , String(utlf_getCurrentDate()).substr(4,2));
-
- ds_main_mainlist_item.clearData();
- ds_main_sublist_item.clearData();
-
- switch1.tabindex = 0;
-
- var vHealExamDetlFg = fGetHealExamDetlFlag();
- if( vHealExamDetlFg == "C01" )
- {
- grp_sea.cmb_place.value = "S";
- }
- else if (vHealExamDetlFg == "C03")
- {
- grp_sea.cmb_place.value = "K";
- }
-
- var cur_date = utlf_getCurrentDate();
- grp_sea.ipt_srchfromdd.value = cur_date;
-
- dsf_makeValue(ds_main_dayblist, "remdd", "string" , utlf_getCurrentDate());
- btn_srch_dayb.click();
- }
- function fGetSearch()
- {
- var captionString = "";
- ds_main_mainlist_item.clearData();
- ds_main_sublist_item.clearData();
- var year1 = String(ds_send.getColumn(0, "srchfromdd")).substring(0,4);
- if (String(ds_send.getColumn(0, "srchfromdd")).substring(4,5) == '0')
- {
- var month1 = parseInt(String(ds_send.getColumn(0, "srchfromdd")).substring(5,6))-1;
- }
- else
- {
- var month1 = parseInt(String(ds_send.getColumn(0, "srchfromdd")).substring(4,6))-1;
- }
- var date1 = String(ds_send.getColumn(0, "srchfromdd")).substring(6,8);
- var strtdd = new Date(year1, month1, date1);
-
- for (var ii = 0 ; ii < 31 ; ii++)
- {
- var day2 = new Date(strtdd.getFullYear(), strtdd.getMonth(), strtdd.getDate() + ii);
- captionString = captionString + '^' + day2.getDate() + '일';
- }
- captionString = "검사실코드^검사실"+captionString
- v_captionString = captionString.split("^");
-
- for(var i = 0; i < v_captionString.length; i++)
- {
- switch1.case1.grd_mainlist.setCellProperty("Head", i, "text", v_captionString[i]);
- }
-
- var oParam = {};
- oParam.id = "TRAHA01101";
- oParam.service = "healexamstatapp.StatRef";
- oParam.method = "reqGetRoomCondMainList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_mainlist_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAHA01101";
- tranf_submit(oParam);
-
- fSubTotal2();
-
- switch1.tabindex = 0;
-
- var month = String(ds_send.getColumn(0, "srchfromdd")).substring(4,6);
- var last_day =(year1+month+date1).toDate().getAddDate(+30,"D").getDateFormat("YYYYMMDD"); //마지막날
- ds_send.setColumn(0, "srchlastdd", last_day );
- var oParam = {};
- oParam.id = "TRAHA01103";
- oParam.service = "healexamstatapp.StatRef";
- oParam.method = "reqGetHoliDayList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_temp_dayinfo_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHA01103";
- tranf_submit(oParam);
- for(var i = 1; i <= 30 ; i++)
- {
- var day = (year1+month+date1).toDate().getAddDate(i,"D").getDateFormat("YYYYMMDD");
- var dutflag = ds_temp_dayinfo_item.lookup("basedd", day, "dutflag");
-
- if(dutflag == "4")
- {
- for(var j = 0; j < ds_main_mainlist_item.rowcount; j++)
- {
- if(String(i).length < 2)
- {
- dsf_makeValue(ds_main_mainlist_item, "holiy_day0"+parseInt(i+1), "string", "#85B3FF", j);
- }
- else
- {
- dsf_makeValue(ds_main_mainlist_item, "holiy_day"+parseInt(i+1), "string", "#85B3FF", j);
- }
- }
- }
- if(dutflag == "8")
- {
- for(var j = 0; j < ds_main_mainlist_item.rowcount; j++)
- {
- if(String(i).length < 2)
- {
- dsf_makeValue(ds_main_mainlist_item, "holiy_day0"+parseInt(i+1), "string", "#FF8888", j);
- }
- else
- {
- dsf_makeValue(ds_main_mainlist_item, "holiy_day"+parseInt(i+1), "string", "#FF8888", j);
- }
- }
- }
- }
-
- for(var i = 1; i <= 31 ; i++)
- {
- if(String(i).length < 2)
- {
- dsf_makeValue(ds_main_mainlist_item, "holiy_day0"+i, "string", "#F9E6C5", parseInt(ds_main_mainlist_item.rowcount)-1);
- dsf_makeValue(ds_main_mainlist_item, "holiy_day0"+i, "string", "#87CEFA", parseInt(ds_main_mainlist_item.rowcount)-2);
- }
- else
- {
- dsf_makeValue(ds_main_mainlist_item, "holiy_day"+i, "string", "#F9E6C5", parseInt(ds_main_mainlist_item.rowcount)-1);
- dsf_makeValue(ds_main_mainlist_item, "holiy_day"+i, "string", "#87CEFA", parseInt(ds_main_mainlist_item.rowcount)-2);
- }
- }
- }
- function cf_TRAHA01101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- dsf_setTypeFormat(ds_main_mainlist_item, "day01:INT^day02:INT^day03:INT^day04:INT^day05:INT^day06:INT^day07:INT^day08:INT^day09:INT^day10:INT"
- +"^day11:INT^day12:INT^day13:INT^day14:INT^day15:INT^day16:INT^day17:INT^day18:INT^day19:INT^day20:INT"
- +"^day21:INT^day22:INT^day23:INT^day24:INT^day25:INT^day26:INT^day27:INT^day28:INT^day29:INT^day30:INT^day31:INT");
- }
- function fSubTotal2()
- {
- var subtotrow = ds_main_mainlist_item.rowcount;
- var totrow = parseInt(subtotrow)+1;
- for(var k = 1 ; k <= 31 ; k++)
- {
- var total = 0;
- var subtotal = 0;
- var colnm = "";
-
- if(k < 10) colnm = "day0" + k;
- else colnm = "day" + k;
-
- for(var i = 0; i < subtotrow ; i++)
- {
- for(var j = 0 ; j < ds_init_G40list.rowcount; j++)
- {
- if(ds_main_mainlist_item.getColumn(i, "testroomcd") == ds_init_G40list.getColumn(j, "etcdetlcd"))
- {
- subtotal = subtotal + parseInt(ds_main_mainlist_item.getColumn(i, colnm));
- break;
- }
- }
- total = total + parseInt(ds_main_mainlist_item.getColumn(i, colnm));
- }
-
- dsf_makeValue(ds_main_mainlist_item, colnm, "string", subtotal, subtotrow);
- dsf_makeValue(ds_main_mainlist_item, "testroomnm", "string", "초음파실 합계", subtotrow);
- dsf_makeValue(ds_main_mainlist_item, "bg1", "string", "#87CEFA", subtotrow);
-
- dsf_makeValue(ds_main_mainlist_item, colnm, "string", total, totrow);
- dsf_makeValue(ds_main_mainlist_item, "testroomnm", "string", "합계", totrow);
- dsf_makeValue(ds_main_mainlist_item, "bg1", "string", "#F9E6C5", totrow);
- }
-
- ds_main_mainlist_item.rowposition = -1;
- ds_main_mainlist_item.clearSelect();
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetSearch();
- }
- function btn_srch_dayb_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_makeValue(ds_main_dayblist, "instcd", "string" , sysf_getUserInfo("dutplceinstcd"));
- var tmp_remdd = ds_main_dayblist.getColumn(0, "remdd" );
- var oParam = {};
- oParam.id = "TRAHB01508";
- oParam.service = "healexambaseapp.ScheduleCode";
- oParam.method = "reqGetDaybList";
- oParam.inds = "req=ds_main_dayblist";
- oParam.outds = "ds_main_dayblist=dayblist";
- oParam.async = false;
- //oParam.callback = "cf_TRAHB01508";
- tranf_submit(oParam);
-
- if(utlf_isNull(ds_main_dayblist.getColumn(0, "remdd")))
- {
- ds_main_dayblist.setColumn(0, "remcnts", "");
- dsf_makeValue(ds_main_dayblist, "remdd", "string" , tmp_remdd);
- }
- }
- function cmb_year_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fSetDate();
- }
- function fSetDate()
- {
- var year = cmb_year.value;
- var month = cmb_month.value;
-
- var todd = new Date(year , parseInt(month,10) , '01' );
- ds_send.setColumn(0, "srchfromdd" , year + month + "01");
- ds_send.setColumn(0, "srchtodd" , new String(todd.getYear()) + new String(todd.getMonth() + 1 ).getLeftPad(2,"0") + new String(todd.getDate()) );
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var sIndex = switch1.tabindex;
- if(sIndex == 0)
- {
- grdf_exportExcel(switch1.case1.grd_mainlist, "excel", "검사실현황", "true", "", "");
- }
- else
- {
- grdf_exportExcel(switch1.case2.grd_sublist, "excel", "Sheet1", "true", "", "");
- }
- }
- function grp_sea_ipt_remdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- btn_srch_dayb.click();
- }
- function switch1_case1_grd_mainlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fGetDetailSearch();
- switch1.tabindex = 1;
- }
- function fGetDetailSearch()
- {
- if(ds_main_mainlist_item.rowposition < 0) return;
-
- ds_main_sublist_item.clearData();
-
- var rowidx = ds_main_mainlist_item.rowposition;
-
- var year1= String(ds_send.getColumn(0, "srchfromdd")).substring(0,4);;
- if (String(ds_send.getColumn(0, "srchfromdd")).substring(4,5) == '0')
- {
- var month1 = parseInt(String(ds_send.getColumn(0, "srchfromdd")).substring(5,6))-1;
- }
- else
- {
- var month1 = parseInt(String(ds_send.getColumn(0, "srchfromdd")).substring(4,6))-1;
- }
- var date1 = String(ds_send.getColumn(0, "srchfromdd")).substring(6,8);
- var strtdd = new Date(year1, month1, date1);
- var day2 = new Date(strtdd.getFullYear(), strtdd.getMonth(), strtdd.getDate() + switch1.case1.grd_mainlist.currentcol - 2);
- var year2 =day2.getFullYear();
- if ((day2.getMonth()+1)<10)
- {
- var month2 = '0'+(day2.getMonth()+1);
- }
- else
- {
- var month2 = day2.getMonth()+1;
- }
- var date2 = day2.getDate();
-
- dsf_makeValue(ds_send,"srchyear", "string", year2);
- dsf_makeValue(ds_send,"srchmoth", "string", month2);
- dsf_makeValue(ds_send,"srchdd", "string", date2);
- dsf_makeValue(ds_send,"srchhealexamplacecd", "string", grp_sea.cmb_place.value);
- dsf_makeValue(ds_send,"srchtestroomcd", "string", ds_main_mainlist_item.getColumn(rowidx, "testroomcd"));
-
- var oParam = {};
- oParam.id = "TRAHA01102";
- oParam.service = "healexamstatapp.StatRef";
- oParam.method = "reqGetRoomCondDetailList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_sublist_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHA01102";
- tranf_submit(oParam);
-
- switch1.tabindex = 1;
- }
- /*-**************************************************************************************
- * Argument : colnm - 해당컬럼ID
- * Description : 초음파실 합계 계산
- ****************************************************************************************/
- function fEchoSum(colnm) {
- var tot = 0;
- for(var i = 0 ; i < ds_main_mainlist_item.rowcount ; i++) {
- if(ds_init_G40list.findRow("etcdetlcd", ds_main_mainlist_item.getColumn(i, "testroomcd")) > -1) {
- tot = tot + parseInt(ds_main_mainlist_item.getColumn(i, colnm));
- }
- }
- return tot;
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 종합건진 기본코드 조회 추가(G45 초음파 합계용)
- ****************************************************************************************/
- function fGetAstCodeList(){
- ds_init_G40list.clear();
- dsf_createDsRow("ds_req", [
- {col:"clscd", type:"STRING", size:256, val:"G"}
- , {col:"etccd", type:"STRING", size:256, val:"G40"}
- , {col:"etcitemcnts", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TRAHB00602";
- oParam.service = "healexambaseapp.EtcCode";
- oParam.method = "reqGetDetlCodeList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_G40list=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHB00602";
- tranf_submit(oParam);
- }
- ]]></Script>
- </Form>
- </FDL>
|