123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMASI04000" position="absolute 0 0 1100 734" titletext="잠복결핵검진 대상자 관리" oninit="model1_oninit" onload="SMASI04000_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 205 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 42" style="align:center top;" anchor="left top right" class="div_SA" scrollbars="none" positiontype="position">
- <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 976 13 1032 33" anchor="left top" text="조회" onlbuttonup="btn_search_onlbuttonup" onclick="btn_search_onclick" taborder="2" 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="3" text="엑셀" onclick="button2_onclick" onlbuttonup="button2_onlbuttonup" class="btn7" position="absolute 1034 13 1086 33" anchor="left top"/>
- <Shape id="line5" linetype="vertical" class="line_4" position="absolute 334 12 338 34" anchor="left top"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption2" text="잠복결핵검진 대상자 관리" class="tit_2" position="absolute 0 44 197 64" 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 62 1100 672" 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="20"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="55"/>
- <Column size="100"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="70"/>
- <Column size="50"/>
- <Column size="60"/>
- <Column size="50"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="70"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="23"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" 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" colspan="3" text="검진대상여부" taborder="undefined"/>
- <Cell col="13" rowspan="2" text="최근IGRA 결과" taborder="undefined"/>
- <Cell col="14" rowspan="2" text="최근IGRA 보고일" taborder="undefined"/>
- <Cell col="15" rowspan="2" text="이전IGRA 결과" taborder="undefined"/>
- <Cell col="16" rowspan="2" text="이전IGRA 시행일" taborder="undefined"/>
- <Cell col="17" rowspan="2" text="추후관리 대상여부" taborder="undefined"/>
- <Cell row="1" col="10" text="대상"/>
- <Cell row="1" col="11" text="대상구분"/>
- <Cell row="1" col="12" text="제외"/>
- </Band>
- <Band id="body">
- <Cell displaytype="image"/>
- <Cell col="1" text="expr:currow + 1"/>
- <Cell col="2" text="bind:userid"/>
- <Cell col="3" text="bind:usernm"/>
- <Cell col="4" edittype="text" style="align:left;" text="bind:deptcd"/>
- <Cell col="5" displaytype="combo" style="align:center middle;" text="bind:sex" combodataset="ds_sex" combocodecol="code" combodatacol="value"/>
- <Cell col="6" style="align:center middle;" text="bind:age"/>
- <Cell col="7" edittype="text" text="bind:jobkindcd"/>
- <Cell col="8" displaytype="combo" edittype="combo" style="align:center;" text="bind:riskkind" combodataset="ds_riskkind" combocodecol="code" combodatacol="value"/>
- <Cell col="9" edittype="text" text="bind:pid"/>
- <Cell col="10" displaytype="combo" edittype="combo" style="align:center;" text="bind:examkind" combodataset="ds_examkind" combocodecol="code" combodatacol="value"/>
- <Cell col="11" displaytype="combo" edittype="combo" style="align:center;" text="bind:examkindsub" combodataset="ds_examkindsub" combocodecol="code" combodatacol="value"/>
- <Cell col="12" edittype="text" style="align:left middle;" text="bind:examkinddesc"/>
- <Cell col="13" text="bind:last1rslt"/>
- <Cell col="14" displaytype="expr:utlf_isNull(utlf_trim(last1dt)) ? 'normal' : 'date'" text="bind:last1dt" mask="expr:utlf_isNull(utlf_trim(last1dt)) ? '' : 'yyyy-MM-dd'" maskchar=" "/>
- <Cell col="15" text="bind:last2rslt"/>
- <Cell col="16" displaytype="expr:utlf_isNull(utlf_trim(last2dt)) ? 'normal' : 'date'" text="bind:last2dt" mask="expr:utlf_isNull(utlf_trim(last2dt)) ? '' : 'yyyy-MM-dd'" maskchar=" "/>
- <Cell col="17" displaytype="combo" edittype="combo" style="align:center;" text="bind:latemngkind" combodataset="ds_latemngkind" combocodecol="code" combodatacol="value"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_load" taborder="33" text="파일열기" onclick="btn_load_onclick" class="btn2" enable="true" position="absolute 344 13 408 32" anchor="default"/>
- <Button id="bt_addrow" taborder="34" text="행추가" onclick="bt_addrow_onclick" class="btn2" position="absolute 413 13 469 33" anchor="top right" style=":disabled {font:Dotum,9;}"/>
- <Button id="bt_deleterow" taborder="36" text="행삭제" onclick="bt_deleterow_onclick" class="btn2" position="absolute 472 13 528 33" anchor="top right" style=":disabled {font:Dotum,9;}"/>
- <Button id="bt_save" taborder="37" text="저장" onclick="bt_save_onclick" class="btn4" position="absolute 964 684 1020 704" anchor="right bottom" style=":disabled {font:Dotum,9;}"/>
- <Shape id="line15" onclick="group5_line15_onclick" class="line_3" position="absolute 0 676 1097 682" anchor="default"/>
- <Button id="bt_init" taborder="38" text="초기화" onclick="bt_init_onclick" class="btn4" position="absolute 1027 683 1096 703" anchor="right bottom" style=":disabled {font:Dotum,9;}"/>
- </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="sex" type="STRING" size="256"/>
- <Column id="age" type="STRING" size="256"/>
- <Column id="examkindsub" 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"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="status"/>
- <Col id="srchkind"/>
- <Col id="todd"/>
- <Col id="fromdd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_loaddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_loaddata_oncolumnchanged" onvaluechanged="ds_loaddata_onvaluechanged">
- <ColumnInfo>
- <Column id="no" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="jobkindcd" type="STRING" size="256"/>
- <Column id="riskkind" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="examkind" type="STRING" size="256"/>
- <Column id="examkindsub" type="STRING" size="256"/>
- <Column id="examkinddesc" type="STRING" size="256"/>
- </ColumnInfo>
- </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_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_examkind" 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_sex" 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">F</Col>
- <Col id="value">여</Col>
- </Row>
- <Row>
- <Col id="value">남</Col>
- <Col id="code">M</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_examkindsub" 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">정기</Col>
- </Row>
- <Row>
- <Col id="value">초회검사</Col>
- <Col id="code">2</Col>
- </Row>
- <Row>
- <Col id="code">3</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"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * File Name : SMASI04000_잠복결핵검진 대상자 등록.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
- //---------------------------------------------------------------------------------------
- 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;
- }
- //초기화
- 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_loaddata.clearData();
- grp_biz.bt_save.enable = false;
-
- //
- ds_send_reqdata.setColumn(0,"todd", utlf_getCurrentDate());
- ds_send_reqdata.setColumn(0,"fromdd", date_add(utlf_getCurrentDate(), -6));
-
- }
- //저장
- function lf_Save(){
- var oParam = {};
- oParam.id = "";
- oParam.service = "infcmngtapp.LglyDisMngt";
- oParam.method = "reqSetLglyDisTubePatInfo";
- oParam.inds = "req=ds_empinfc:A send=ds_send_reqdata";
- oParam.outds = "ds_empinfc=getLglyDisTubeList";
- oParam.async = false;
- //oParam.callback = "cf_TRASI01101";
- tranf_submit(oParam);
-
- //grp_biz.grd_empinfc.setCellProperty("Body", 2, "edittype", "none");
- grp_biz.grd_empinfc.setCellProperty("Body", 3, "edittype", "none");
- grp_biz.grd_empinfc.setCellProperty("Body", 4, "edittype", "none");
- }
- //행추가
- function lf_AddRow(){
- /*
- Dataset.ROWTYPE_EMPTY 0 존재하지 않는 Row 상태
- Dataset.ROWTYPE_NORMAL 1 초기 Row 상태
- Dataset.ROWTYPE_INSERT 2 추가된 Row 상태
- Dataset.ROWTYPE_UPDATE 4 수정된 Row 상태
- Dataset.ROWTYPE_DELETE 8 삭제된 Row 상태
- Dataset.ROWTYPE_GROUP 16 Group 정보 Row 상태
- */
- var vDate = utlf_getCurrentDate();
- var vTm = utlf_getCurrentTime();
-
- ds_empinfc.addRow();
- // grp_biz.grd_empinfc.edittype ="text"
- grp_biz.grd_empinfc.setCellProperty("Body", 2, "edittype", "text");
- grp_biz.grd_empinfc.setCellProperty("Body", 3, "edittype", "text");
- grp_biz.grd_empinfc.setCellProperty("Body", 4, "edittype", "text");
-
- ds_empinfc.updatecontrol = false;
- ds_empinfc.enableevent = false;
- ds_empinfc.setColumn(ds_empinfc.rowposition,"status","i");
- ds_empinfc.setColumn(ds_empinfc.rowposition, "wrtedd", vDate);
- ds_empinfc.setColumn(ds_empinfc.rowposition, "wrtetm", vTm);
- ds_empinfc.updatecontrol = true;
- ds_empinfc.enableevent = true;
- }
- //행삭제
- function lf_Delete(){
- var nRow = ds_empinfc.rowposition;
-
- //Dataset 행삭제
- ds_empinfc.updatecontrol = false;
-
- if (ds_empinfc.getRowType(nRow) == Dataset.ROWTYPE_INSERT) {
- ds_empinfc.deleteRow(nRow);
-
- }
- else {
- ds_empinfc.updatecontrol = false;
- ds_empinfc.enableevent = false;
- ds_empinfc.setColumn(nRow,"status","d");
- var bSucc = ds_empinfc.setRowType(nRow, Dataset.ROWTYPE_DELETE);
-
- grp_biz.bt_save.enable = true;
- ds_empinfc.updatecontrol = true;
- ds_empinfc.enableevent = true;
-
- }
- ds_empinfc.updatecontrol = true;
- }
- //=======================================================================================
- function SMASI04000_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- lf_Init();
- }
- function cf_TRASI01101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- //=======================================================================================
- /****************************************************************************************
- * 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)
- {
- //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 = "reqGetLglyDisTubePatInfo";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_empinfc=getLglyDisTubeList";
- oParam.async = false;
- //oParam.callback = "cf_TRASI01101";
- tranf_submit(oParam);
-
- //grp_biz.grd_empinfc.setCellProperty("Body", 2, "edittype", "none");
- grp_biz.grd_empinfc.setCellProperty("Body", 3, "edittype", "none");
- grp_biz.grd_empinfc.setCellProperty("Body", 4, "edittype", "none");
- //grp_biz.grd_empinfc.hscrollbar.pos = nHScollPos;
- }
- /****************************************************************************************
- * 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 : Button
- * Components ID : btn_init
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 초기화 버튼
- ****************************************************************************************/
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_empinfc.clearData();
- grp_biz.grd_empinfc.setCellProperty("Body", 2, "edittype", "none");
- grp_biz.grd_empinfc.setCellProperty("Body", 3, "edittype", "none");
- grp_biz.grd_empinfc.setCellProperty("Body", 4, "edittype", "none");
- }
- /****************************************************************************************
- * 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");
- }
-
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_load
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 파일열기 버튼 실행(Excel업로드)
- ****************************************************************************************/
- function btn_load_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_loaddata.clearData();
- var vDate = utlf_getCurrentDate();
- var vTm = utlf_getCurrentTime();
- grdf_ImportExcel("ds_loaddata", 2, grp_biz.grd_loaddata, 0);
-
- ds_empinfc.copyData(ds_loaddata, true);
- //dsf_copyDs(ds_empinfc, ds_loaddata);
- if(ds_empinfc.rowcount > 0) {
-
- ds_empinfc.addColumn("status", "String", 256);
- ds_empinfc.addColumn("instcd", "String", 256);
- ds_empinfc.addColumn("wrtedd", "String", 256);
- ds_empinfc.addColumn("wrtetm", "String", 256);
- ds_empinfc.addColumn("seqno", "String", 256);
- ds_empinfc.addColumn("deptdesc", "String", 256);
- ds_empinfc.addColumn("riskkind", "String", 256);
- ds_empinfc.addColumn("examkind", "String", 256);
- ds_empinfc.addColumn("examkindsub", "String", 256);
- ds_empinfc.addColumn("examkinddesc", "String", 256);
- ds_empinfc.addColumn("latemngkind", "String", 256);
-
- ds_empinfc.updatecontrol = false;
- ds_empinfc.enableevent = false;
-
- for(var i = 0 ; i < ds_empinfc.rowcount ; i++) {
- ds_empinfc.setColumn(i,"status","i");
- ds_empinfc.setRowType(i, Dataset.ROWTYPE_INSERT);
- ds_empinfc.setColumn(i, "wrtedd", vDate);
- ds_empinfc.setColumn(i, "wrtetm", vTm);
- }
-
- ds_empinfc.updatecontrol = true;
- ds_empinfc.enableevent = true;
- }
- //ds_loaddata.copyData(ds_empinfc);
- grp_biz.btn_load.enable = true;
- grp_biz.bt_save.enable = true;
- }
- function ds_loaddata_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- //ds_loaddata.updatecontrol = true;
- //dsf_datasetUpdateChk(obj)
- ds_loaddata.enableevent = false;
- ds_loaddata.updatecontrol = false;
- ds_loaddata.setRowType(ds_loaddata.rowposition, 4);
- ds_loaddata.updatecontrol = true;
- ds_loaddata.enableevent = true;
- }
- function ds_loaddata_onvaluechanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- dsf_datasetUpdateChk(obj);
- }
- //행추가버튼
- function bt_addrow_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_AddRow();
- }
- //초기화버튼
- function bt_init_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_Init();
- }
- //저장 버튼
- function bt_save_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_Save();
- }
- //행삭제버튼
- function bt_deleterow_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_Delete();
- }
- //ds_empinfc_value 변경
- function ds_empinfc_onvaluechanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- // Dataset 변경되면 저장버튼 활성화
- if ( dsf_datasetUpdateChk(obj) ) {
- grp_biz.bt_save.enable = true;
- }
- else {
- grp_biz.bt_save.enable = false;
- }
-
- }
- function ds_empinfc_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(ds_empinfc.getColumn(e.row, "status" != "i")){
- ds_empinfc.setRowType(e.row, Dataset.ROWTYPE_UPDATE);
- ds_empinfc.setColumn(e.row,"status","u");
- }
- }
- function grp_biz_group1_cmb_trgtmancnt_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|