123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMASI04200" position="absolute 0 0 1100 734" titletext="잠복결핵검진 추후관리" oninit="model1_oninit" onload="SMASI04200_onload" scrollbars="none">
- <Layouts>
- <Layout>
- <Div id="grp_btn" position="absolute 0 711 1100 734" anchor="left right bottom" positiontype="position" scrollbars="none">
- <Layouts>
- <Layout/>
- </Layouts>
- </Div>
- <cp_deptList id="cp_deptList00" titletext="New Form" taborder="1" text="cp_deptList00" position="absolute 824 38 860 53"/>
- <cp_deptList id="cp_deptList01" titletext="New Form" taborder="2" text="cp_deptList00" position="absolute 863 38 899 53"/>
- <Div id="grp_tle" position="absolute 0 0 1100 26" anchor="default" positiontype="position" scrollbars="none">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 0 173 26" anchor="default" text="잠복결핵검진 추후관리" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_biz" position="absolute 0 26 1100 731" anchor="all" positiontype="position" scrollbars="none">
- <Layouts>
- <Layout width="1100" height="708">
- <Div id="group1" position="absolute 0 0 1100 74" style="align:center top;" anchor="left top right" class="div_SA" scrollbars="none" positiontype="position" taborder="0">
- <Layouts>
- <Layout>
- <Static id="cap_fromdd" class="search_name" visible="true" position="absolute 8 13 82 33" anchor="left top" text="기간선택 :" positiontype="position"/>
- <Static id="caption19" class="search_no_b" position="absolute 195 13 211 33" anchor="left top" text="~" style="align:center middle;" positiontype="position"/>
- <Button id="btn_search" class="btn1" position="absolute 1034 22 1087 42" anchor="left top" text="조회" onlbuttonup="btn_search_onlbuttonup" onclick="btn_search_onclick" taborder="3" positiontype="position"/>
- <Calendar id="ipt_fromdd" class="input_essential" position="absolute 81 13 195 33" anchor="left top" dateformat="yyyy-MM-dd " value="null" onchanged="grp_biz_group1_ipt_fromdd_onchanged" autoselect="true" autoskip="true" taborder="0" positiontype="position"/>
- <Calendar id="ipt_todd" class="input_essential" position="absolute 211 13 327 33" anchor="left top" dateformat="yyyy-MM-dd " value="null" onkeyup="grp_biz_group1_ipt_todd_onkeyup" enable="true" autoselect="true" autoskip="true" taborder="1" positiontype="position"/>
- <Button id="button2" taborder="4" text="엑셀" onclick="button2_onclick" onlbuttonup="button2_onlbuttonup" class="btn7" position="absolute 1035 45 1087 65" anchor="left top"/>
- <Shape id="line5" linetype="vertical" class="line_4" position="absolute 334 12 338 34" anchor="left top"/>
- <Static id="cap_fromdd00" text="추후관리대상 :" class="search_name" position="absolute 8 45 106 65" anchor="left top"/>
- <Button id="bt_init" taborder="2" text="확 인" onclick="bt_init_onclick" class="btn4" position="absolute 345 14 406 34" anchor="right bottom" style=":disabled {font:Dotum,9;}"/>
- <Static id="cap_fromdd01" text="결과 :" class="search_name" position="absolute 228 46 278 66" anchor="left top"/>
- <Static id="cap_fromdd02" text="사번 :" class="search_name" position="absolute 372 46 422 66" anchor="left top"/>
- <Static id="cap_fromdd03" text="이름 :" class="search_name" position="absolute 501 46 551 66" anchor="left top"/>
- <Edit id="ipt_usernm" taborder="6" tabstop="false" position="absolute 548 45 618 67"/>
- <Static id="cap_fromdd04" text="등록번호 :" class="search_name" position="absolute 628 46 702 66" anchor="left top"/>
- <Edit id="pt_pid" taborder="7" tabstop="false" position="absolute 701 45 771 67"/>
- <Shape id="line00" linetype="vertical" class="line_4" position="absolute 1014 28 1018 50" anchor="left top"/>
- <Shape id="line07" class="line_5" position="absolute 8 37 1006 43"/>
- <Static id="cap_fromdd05" text="추후관리일 :" class="search_name" position="absolute 780 46 870 66" anchor="left top"/>
- <Calendar id="ipt_lmktmngdt" taborder="8" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd " onchanged="grp_biz_group1_ipt_fromdd_onchanged" position="absolute 870 46 984 66" anchor="left top"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption2" text="잠복결핵검진 추후관리" class="tit_2" position="absolute 0 76 197 96" onclick="grp_biz_caption2_onclick" anchor="default" positiontype="position"/>
- <Static id="caption3" text="정렬선택" class="cell_1" visible="false" position="absolute 1 97 71 121" style="align:center middle;" anchor="default" positiontype="position"/>
- <Combo id="cmb_cond3" taborder="17" class="combo_search" visible="false" position="absolute 300 99 380 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
- <Edit id="output4" taborder="18" readonly="true" visible="false" position="absolute 655 99 685 119" style="align:center middle;" anchor="default" value="4" positiontype="position"/>
- <Edit id="output5" taborder="19" readonly="true" visible="false" position="absolute 849 99 879 119" style="align:center middle;" anchor="default" value="5" positiontype="position"/>
- <Combo id="cmb_cond8" taborder="20" class="combo_search" visible="false" position="absolute 771 99 841 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
- <Edit id="output6" taborder="21" readonly="true" visible="false" position="absolute 267 99 297 119" style="align:center middle;" anchor="default" value="2" positiontype="position"/>
- <Edit id="output7" taborder="22" readonly="true" visible="false" position="absolute 461 99 491 119" style="align:center middle;" anchor="default" value="3" positiontype="position"/>
- <Edit id="output8" taborder="23" readonly="true" visible="false" position="absolute 73 99 103 119" style="align:center middle;" anchor="default" value="1" positiontype="position"/>
- <Combo id="cmb_cond5" taborder="24" class="combo_search" visible="false" position="absolute 494 99 574 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
- <Combo id="cmb_cond6" taborder="25" class="combo_search" visible="false" position="absolute 577 99 647 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
- <Combo id="cmb_cond4" taborder="26" class="combo_search" visible="false" position="absolute 383 99 453 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
- <Combo id="cmb_cond2" taborder="27" class="combo_search" visible="false" position="absolute 189 99 259 119" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
- <Combo id="cmb_cond7" taborder="28" class="combo_search" visible="false" position="absolute 688 99 768 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
- <Combo id="cmb_cond9" taborder="29" class="combo_search" visible="false" position="absolute 882 99 962 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
- <Combo id="cmb_cond1" taborder="30" class="combo_search" visible="false" position="absolute 106 99 186 119" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
- <Combo id="cmb_cond10" taborder="31" class="combo_search" visible="false" position="absolute 965 99 1035 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
- <Grid id="grd_empinfc" taborder="32" binddataset="ds_empinfc" useinputpanel="false" extendsizetype="row" cellsizingtype="col" oncelldblclick="grp_biz_grd_empinfc_oncelldblclick" position="absolute 0 94 1100 704" anchor="all" style="align:center middle;" onlbuttonDown="grd_empinfc_onlbuttonDown" onbuttondown="grd_empinfc_onbuttondown" onclick="grd_empinfc_onclick" selecttype="multirow" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="35"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="145"/>
- <Column size="50"/>
- <Column size="80"/>
- <Column size="120"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="85"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="23"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" text="순번" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="사번" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="이름" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="부 서" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="위험군" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="등록번호" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="추후관리 대상" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="치료 안내일" taborder="undefined"/>
- <Cell col="8" rowspan="2" text="치료 안내방법" taborder="undefined"/>
- <Cell col="9" rowspan="2" text="치료 안내결과" taborder="undefined"/>
- <Cell col="10" rowspan="2" text="미치료자 교육시행일" taborder="undefined"/>
- <Cell col="11" rowspan="2" text="미치료자 교육방법" taborder="undefined"/>
- <Cell col="12" rowspan="2" text="추후관리 결과기록" taborder="undefined"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="text" style="align:center;" text="bind:userid"/>
- <Cell col="2" text="bind:usernm"/>
- <Cell col="3" style="align:left middle;" text="bind:deptcd"/>
- <Cell col="4" displaytype="combo" style="align:center;" text="bind:riskkind" combodataset="ds_riskkind" combocodecol="code" combodatacol="value"/>
- <Cell col="5" text="bind:pid"/>
- <Cell col="6" displaytype="combo" style="align:center;" text="bind:lmtkindcd" combodataset="ds_lmtkindcd" combocodecol="code" combodatacol="value"/>
- <Cell col="7" style="align:center;" text="bind:lmktguiddt" mask="expr:utlf_isNull(lmktguiddt) ? '' : '####-##-##'"/>
- <Cell col="8" displaytype="combo" style="align:center;" text="bind:lmktguidmeth" combodataset="ds_codeLGM" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="9" displaytype="combo" style="align:center;" text="bind:lmktguidyn" combodataset="ds_codeLGYN" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="10" style="align:center;" text="bind:lmktedudt" mask="expr:utlf_isNull(lmktedudt) ? '' : '####-##-##'" combodataset="ds_riskkind" combocodecol="code" combodatacol="value"/>
- <Cell col="11" displaytype="combo" style="align:center;" text="bind:lmktedumeth" combodataset="ds_codeLGM" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="12" displaytype="combo" style="align:center;" text="bind:lmkrsltcd" combodataset="ds_rsltcd" combocodecol="code" combodatacol="value"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Combo id="cmb_lmtactkind" taborder="33" innerdataset="@ds_lmtkindcd" codecolumn="code" datacolumn="value" class="combo_default" position="absolute 110 44 217 64"/>
- <Combo id="cmb_lmkrsltcd" taborder="34" innerdataset="@ds_rsltcd" codecolumn="code" datacolumn="value" class="combo_default" position="absolute 274 45 357 65"/>
- <Edit id="ipt_userid" taborder="35" tabstop="false" position="absolute 421 45 491 67"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_empinfc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" onvaluechanged="ds_empinfc_onvaluechanged" oncolumnchanged="ds_empinfc_oncolumnchanged">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="no" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="wrtedd" type="STRING" size="256"/>
- <Column id="seqno" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="jobkindcd" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptdesc" type="STRING" size="256"/>
- <Column id="riskkind" type="STRING" size="256"/>
- <Column id="examkind" type="STRING" size="256"/>
- <Column id="examkinddesc" type="STRING" size="256"/>
- <Column id="latemngkind" type="STRING" size="256"/>
- <Column id="wrtetm" type="STRING" size="256"/>
- <Column id="last1dt" type="STRING" size="256"/>
- <Column id="last1rslt" type="STRING" size="256"/>
- <Column id="last2dt" type="STRING" size="256"/>
- <Column id="last2rslt" type="STRING" size="256"/>
- <Column id="xraydt" type="STRING" size="256"/>
- <Column id="xraydesc" type="STRING" size="256"/>
- <Column id="lmtkindcd" type="STRING" size="256"/>
- <Column id="lmtactkind" type="STRING" size="256"/>
- <Column id="lmtadvkind" type="STRING" size="256"/>
- <Column id="lmpobskind" type="STRING" size="256"/>
- <Column id="lmktguid" type="STRING" size="256"/>
- <Column id="lmktguiddt" type="STRING" size="256"/>
- <Column id="lmktguidmeth" type="STRING" size="256"/>
- <Column id="lmktguidmethdesc" type="STRING" size="256"/>
- <Column id="lmktguidyn" type="STRING" size="256"/>
- <Column id="lmktguidyndesc" type="STRING" size="256"/>
- <Column id="lmktedu" type="STRING" size="256"/>
- <Column id="lmktedudt" type="STRING" size="256"/>
- <Column id="lmktedumeth" type="STRING" size="256"/>
- <Column id="lmktedumethdesc" type="STRING" size="256"/>
- <Column id="etcmemo" type="STRING" size="256"/>
- <Column id="lmkrsltcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="srchkind" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="lmtkindcd" type="STRING" size="256"/>
- <Column id="lmkrsltcd" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="lmktmngdt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="status"/>
- <Col id="srchkind"/>
- <Col id="todd"/>
- <Col id="fromdd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_riskkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="code" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="code">1</Col>
- <Col id="value">1군</Col>
- </Row>
- <Row>
- <Col id="value">2군</Col>
- <Col id="code">2</Col>
- </Row>
- <Row>
- <Col id="value">3군</Col>
- <Col id="code">3</Col>
- </Row>
- <Row>
- <Col id="code">4</Col>
- <Col id="value">4군</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_codeLGM" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">01</Col>
- <Col id="cdnm">면담</Col>
- </Row>
- <Row>
- <Col id="cdid">02</Col>
- <Col id="cdnm">전화</Col>
- </Row>
- <Row>
- <Col id="cdid">03</Col>
- <Col id="cdnm">문자</Col>
- </Row>
- <Row>
- <Col id="cdid">04</Col>
- <Col id="cdnm">유인물</Col>
- </Row>
- <Row>
- <Col id="cdid">05</Col>
- <Col id="cdnm">기타</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_codeLGYN" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">01</Col>
- <Col id="cdnm">치료</Col>
- </Row>
- <Row>
- <Col id="cdid">02</Col>
- <Col id="cdnm">미치료</Col>
- </Row>
- <Row>
- <Col id="cdid">03</Col>
- <Col id="cdnm">중단</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_latemngkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="code" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="code">Y</Col>
- <Col id="value">대상</Col>
- </Row>
- <Row>
- <Col id="value">미대상</Col>
- <Col id="code">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_rsltcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="code" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="code">01</Col>
- <Col id="value">임시저장</Col>
- </Row>
- <Row>
- <Col id="value">확정</Col>
- <Col id="code">02</Col>
- </Row>
- <Row>
- <Col id="code">03</Col>
- <Col id="value">확정취소</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_lmtkindcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="code" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="code">01</Col>
- <Col id="value">치료실시대상</Col>
- </Row>
- <Row>
- <Col id="value">치료권고대상</Col>
- <Col id="code">02</Col>
- </Row>
- <Row>
- <Col id="code">03</Col>
- <Col id="value">경과관찰대상</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item1" compid="grp_biz.group1.ipt_fromdd" propid="value" datasetid="ds_send_reqdata" columnid="fromdd"/>
- <BindItem id="item2" compid="grp_biz.group1.ipt_todd" propid="value" datasetid="ds_send_reqdata" columnid="todd"/>
- <BindItem id="item21" compid="grp_biz.cmb_lmtactkind" propid="value" datasetid="ds_send_reqdata" columnid="lmtkindcd"/>
- <BindItem id="item0" compid="grp_biz.cmb_lmkrsltcd" propid="value" datasetid="ds_send_reqdata" columnid="lmkrsltcd"/>
- <BindItem id="item84" compid="grp_biz.ipt_userid" propid="value" datasetid="ds_send_reqdata" columnid="userid"/>
- <BindItem id="item3" compid="grp_biz.group1.ipt_usernm" propid="value" datasetid="ds_send_reqdata" columnid="usernm"/>
- <BindItem id="item4" compid="grp_biz.group1.pt_pid" propid="value" datasetid="ds_send_reqdata" columnid="pid"/>
- <BindItem id="item5" compid="grp_biz.group1.ipt_lmktmngdt" propid="value" datasetid="ds_send_reqdata" columnid="lmktmngdt"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * File Name : SMASI04200_잠복결핵추후관리 대상자.xfdl
- * Creator :
- * Make Date : 2017.05.12
- *
- * Description : 최초개발
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- var vInsertFlag="N";
- //=======================================================================================
- function SMASI04200_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- lf_Init();
- }
- function cf_TRASI01101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- //=======================================================================================
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function date_add(sDate, nDays){
- var yy = parseInt(sDate.substr(0,4), 10);
- var mm = parseInt(sDate.substr(4,2), 10);
- var dd = parseInt(sDate.substr(6,2), 10);
- var d = new Date(yy, mm - 1, dd + nDays);
- yy = d.getFullYear().toString();
- mm = d.getMonth() + 1; mm = (mm < 10) ? '0' + mm : mm.toString();
- dd = d.getDate(); dd = (dd < 10) ? '0' + dd : dd.toString();
-
- return yy + mm + dd;
- }
- /******************************************************************
- * Argument :
- * Description : 초기화
- ******************************************************************/
- function lf_Init(){
- // Grid 초기화
- //utlf_getCurrentDate(); //현재일자 YYYYMMDD
- //utlf_getCurrentTime(); //현재시간 HH:MM:TT
- //grdf_setRowTypeIcon(grp_biz.grd_empinfc, 0); //상태값 표시
-
- grdf_initGrid(grp_biz.grd_empinfc);
- grdf_setToolTipBind(grp_biz.grd_empinfc);
-
- //Dataset 초기화
- ds_empinfc.clearData();
- //
- ds_send_reqdata.setColumn(0,"todd", utlf_getCurrentDate());
- ds_send_reqdata.setColumn(0,"fromdd", date_add(utlf_getCurrentDate(), -6));
-
- }
- /******************************************************************
- * Argument :
- * Description : 조회
- ******************************************************************/
- function lf_Search(){
- //var nHScollPos = grp_biz.grd_empinfc.hscrollbar.pos;
-
- if(sysf_getUserInfo("dutplcecd")=="3110300000"){
- ds_send_reqdata.setColumn(0,"status", "A");
- }else{
- ds_send_reqdata.setColumn(0,"status", "-");
- }
-
- var oParam = {};
- oParam.id = "";
- oParam.service = "infcmngtapp.LglyDisMngt";
- oParam.method = "reqGetLglyDisTubePatInfoDescList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_empinfc=getLglyDisTubeListDescList";
- oParam.async = false;
- //oParam.callback = "cf_TRASI01101";
- tranf_submit(oParam);
-
- //grp_biz.grd_empinfc.hscrollbar.pos = nHScollPos;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼
- ****************************************************************************************/
- function btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_Search();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀 버튼
- ****************************************************************************************/
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- //grp_biz.grd_empinfc.setRealColSize(5, 60, false);
- grdf_exportExcel(grp_biz.grd_empinfc, "잠복결핵추후관리 대상자 리스트", "잠복결핵추후관리 대상자 리스트", false, "" ,"user");
-
- //grdf_exportExcelMulti("grp_biz.grd_empinfc,grp_biz.grd_empinfc00", "잠복결핵검진 대상자보고서", "잠복결핵검진 대상자1,잠복결핵검진 대상자2", false, "", "user", true);
- //grp_biz.grd_empinfc.setRealColSize(5, 0, false);
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_trgtempnm
- * Event : onkeydown
- * Argument : 01.obj : Edit
- * : 02.e : KeyEventInfo
- * Description : 직원서명을 입력하고 엔터를 치면 조회가 된다.
- ****************************************************************************************/
- function grp_biz_group1_ipt_trgtempnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == "13" ){
- fGetEmpInfcRecRefInfo();
- }
- }
- /****************************************************************************************
- * Components : Calendar
- * Components ID : ipt_todd
- * Event : onkeyup
- * Argument : 01.obj : Calendar
- * : 02.e : KeyEventInfo
- * Description : 아래쪽 방향키 입력시 달력 표시
- ****************************************************************************************/
- function grp_biz_group1_ipt_todd_onkeyup(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == "40") { //아래쪽 방향키 입력시
- obj.dropdown();
- }
- }
- function grp_biz_group1_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- obj.updateToDataset();
- var sDate = ds_send_reqdata.getColumn(0, "fromdd");
- ds_send_reqdata.setColumn(0,"todd", date_add(sDate, 6));
- }
- function grp_biz_grd_empinfc_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
-
- var vLatemngkind = ds_empinfc.getColumn(e.row,"latemngkind");
- if(vLatemngkind == 'Y' && !utlf_isNull(vLatemngkind)){
- frmf_setParameter("instcd", ds_empinfc.getColumn(e.row,"instcd"));
- frmf_setParameter("pid", ds_empinfc.getColumn(e.row,"pid"));
- frmf_setParameter("userid", ds_empinfc.getColumn(e.row,"userid"));
- frmf_setParameter("wrtedd", ds_empinfc.getColumn(e.row,"wrtedd"));
- frmf_setParameter("wrtetm", ds_empinfc.getColumn(e.row,"wrtetm"));
- frmf_setParameter("seqno", ds_empinfc.getColumn(e.row,"seqno"));
- frmf_modal("SMASI04100","SMASI04100", "","","","", "", "","","","","","M");
- }
- }
- function bt_init_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_reqdata.setColumn(0,"lmtkindcd","");
- ds_send_reqdata.setColumn(0,"lmkrsltcd","");
- ds_send_reqdata.setColumn(0,"userid","");
- ds_send_reqdata.setColumn(0,"usernm","");
- ds_send_reqdata.setColumn(0,"pid","");
- lf_Search();
- }
- ]]></Script>
- </Form>
- </FDL>
|