123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD31500" position="absolute 0 0 1200 780" titletext="전문의 평가 - 연도별 평가자 지정" oninit="SMRPD31500_oninit" onload="SMRPD31500_onload">
- <Layouts>
- <Layout>
- <Div id="grp_sea" taborder="1" class="div_SA" position="absolute 0 50 1194 85">
- <Layouts>
- <Layout/>
- </Layouts>
- </Div>
- <Static text="전문의 평가 - 연도별 평가자 지정" position="absolute 0 0 235 24" id="caption1" class="tit_1"/>
- <Div position="absolute 0 13 1195 45" id="grp_button" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 25 1195 31" linetype="horizontal" id="line2" class="line_6" anchor="default"/>
- <Button position="absolute 1139 4 1195 26" id="btn_save" class="btn4" text="저장" anchor="default" onclick="grp_button_btn_save_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 40 1195 765" id="grp_main">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 83 1195 700" id="datagrid1" binddataset="ds_main_codeinfo_codelist" autoenter="select" onexpandup="grp_main_datagrid1_onexpandup" selecttype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="66"/>
- <Column size="68"/>
- <Column size="150"/>
- <Column size="130"/>
- <Column size="66"/>
- <Column size="68"/>
- <Column size="150"/>
- <Column size="130"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" colspan="4" text="대상자" taborder="undefined"/>
- <Cell col="5" colspan="4" text="평가자" taborder="undefined"/>
- <Cell col="9" text="instcd"/>
- <Cell col="10" text="year"/>
- <Cell row="1" col="1" text="사번" taborder="undefined"/>
- <Cell row="1" col="2" text="성명"/>
- <Cell row="1" col="3" text="부서명"/>
- <Cell row="1" col="4" text="직종"/>
- <Cell row="1" col="5" text="사번"/>
- <Cell row="1" col="6" text="성명"/>
- <Cell row="1" col="7" text="부서명"/>
- <Cell row="1" col="8" text="직종"/>
- <Cell row="1" col="9" text="instcd"/>
- <Cell row="1" col="10" text="year"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : 'none'" style="align:center;" text="bind:emplno" expandshow="show" enable="false"/>
- <Cell col="2" style="align:left;" text="bind:emplnm"/>
- <Cell col="3" style="align:left;" text="bind:deptnm"/>
- <Cell col="4" style="align:left;" text="bind:jobkindnm"/>
- <Cell col="5" displaytype="text" edittype="text" style="align:center;" text="bind:evalemplno" editautoselect="true" expandshow="show"/>
- <Cell col="6" style="align:left;" text="bind:evalemplnm"/>
- <Cell col="7" style="align:left;" text="bind:evaldeptnm"/>
- <Cell col="8" style="align:left;" text="bind:evaljobkindnm"/>
- <Cell col="9" text="bind:instcd"/>
- <Cell col="10" text="bind:year"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1030 57 1083 76" id="btn_grddel" class="btn2" text="행삭제" onclick="grp_main_btn_grddel_onclick"/>
- <Static text="※ 대상자 자동 생성시 해당 연도의 기등록 자료는 모두 삭제됨에 유의하십시요." position="absolute 0 702 503 722" id="caption3" style="color:#ff0000ff;"/>
- <Static text="평가자 지정" position="absolute 2 62 120 76" id="caption4" class="tit_2"/>
- <Button position="absolute 974 57 1027 76" id="btn_grdadd" class="btn2" text="행추가" onclick="grp_main_btn_grdadd_onclick"/>
- <Shape position="absolute 0 78 1195 84" linetype="horizontal" id="line7" class="line_10"/>
- <Combo position="absolute 120 19 262 38" id="cmb_instcd" class="combo_s_default" enable="false" onitemchanged="grp_main_cmb_instcd_onitemchanged"/>
- <Static text="기관코드" position="absolute 49 20 118 37" id="caption2" class="search_name"/>
- <Static text="연도" position="absolute 290 20 333 37" id="caption5" class="search_name"/>
- <Shape position="absolute 412 17 418 39" linetype="vertical" id="line3"/>
- <MaskEdit position="absolute 335 19 385 38" align="align:center middle;" id="ipt_year" taborder="3" mask="####" autoselect="true" type="string" maskchar=" " autoskip="true" trimtype="both"/>
- <Button position="absolute 430 17 486 39" id="btn_search" class="btn1" text="조회" onclick="grp_main_btn_search_onclick"/>
- <Button position="absolute 1086 57 1194 76" id="btn_download" class="btn2" taborder="6" text="엑셀 Download" onclick="grp_main_btn_download_onclick"/>
- <Button position="absolute 890 57 971 76" id="btn_psn" class="btn2" text="대상자생성" onclick="grp_main_btn_psn_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </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="instcd" type="STRING" size="256" sumtext="기관코드"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_prvg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cnt" type="STRING" size="256" sumtext="권한유무(있으면 1, 없으면 0)"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_reqdata_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="year" type="STRING" size="256" sumtext="연도"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_codeinfo_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_codeinfo_codelist_oncolumnchanged">
- <ColumnInfo>
- <Column id="emplno" type="STRING" size="256" sumtext="사번"/>
- <Column id="emplnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="jobkindnm" type="STRING" size="256" sumtext="직종명"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="evalemplno" type="STRING" size="256" sumtext="평가자사번"/>
- <Column id="evalemplnm" type="STRING" size="256" sumtext="평가자성명"/>
- <Column id="evaljobkindnm" type="STRING" size="256" sumtext="평가자직종명"/>
- <Column id="evaldeptnm" type="STRING" size="256" sumtext="평가자부서명"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="year" type="STRING" size="256" sumtext="연도"/>
- <Column id="colIUD" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_senddata_execdata_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256" sumtext="처리구분"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사번"/>
- <Column id="evalemplno" type="STRING" size="256" sumtext="평가자사번"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="year" type="STRING" size="256" sumtext="연도"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="count" type="STRING" size="256" sumtext="실행건수"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_main.cmb_instcd" propid="value" datasetid="ds_send_reqdata" columnid="instcd"/>
- <BindItem id="item1" compid="grp_main.ipt_year" propid="value" datasetid="ds_send_reqdata" columnid="year"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : mis_dligclaznsmngtxp -> SMRPD31500
- * Creator : pjb
- * Make Date : 2017-12-22
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-12-22 pjb TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_humtrafactmngtxp::RPB001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function readfunc(){ // 해당 조건에 대한 사용자 권한내역을 조회한다.
- if (utlf_transNullToEmpty(grp_main.ipt_year.value).length != 4){
- sysf_messageBox("연도를 확인하십시요. ", "E999", "");
- grp_main.ipt_year.setFocus();
- return;
- }
-
- misfGridInit(grp_main.datagrid1);
-
- var oParam = {};
- oParam.id = "TRRPD31501";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetSpcEvalPsnList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_codeinfo_codelist=codelist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD31501";
- tranf_submit(oParam);
-
- ds_main_codeinfo_codelist.addColumn("colIUD", "string");
-
-
-
- }
- function datacheck(){
- var scdid1 = "";
- var scdid2 = "";
- // for (var i = 1; i < datagrid1.rows; i ++){
- /*
- if (model.getValue("/root/main/codeinfo/codelist[" + i + "]/cdid") == ""){
- messageBox("코드는 필수 입력 항목입니다.", "E999", "");
- return false;
- }
-
- if (model.getValue("/root/main/codeinfo/codelist[" + i + "]/cdnm") == ""){
- messageBox("명칭은 필수 입력 항목입니다.", "E999", "");
- return false;
- }
- */
- /*
- scdid1 = model.getValue("/root/main/codeinfo/codelist[" + i + "]/cdid");
- var k = i + 1;
- for (var j = k; j < datagrid1.rows; j++){
- scdid2 = model.getValue("/root/main/codeinfo/codelist[" + j + "]/cdid");
- if (i != j){
- if (scdid1 == scdid2){
- messageBox(j + "번째 행에서 중복된 코드가 존재합니다", "E999", "");
- return false;
- }
- }
- }
- */
- // }
- return true;
- }
- function ExecData(){
- grdf_setStatusColumn(ds_main_codeinfo_codelist, "status");
-
- var update = grdf_getGridUpdateData(grp_main.datagrid1);
-
- ds_senddata_execdata_codelist.assign(update);
-
- var oParam = {};
- oParam.id = "TXRPD31501";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveSpcEvalPsnList";
- oParam.inds = "codelist=ds_senddata_execdata_codelist:A";
- oParam.outds = "ds_hidden_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXRPD31501";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TXRPD31501") > -1){
- readfunc();
- }
- }
- function cf_TXRPD31501(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMRPD31500
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMRPD31500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMRPD31500
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMRPD31500_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grp_main.datagrid1, 0);
- grdf_setGridSort(grp_main.datagrid1);
- //전문의평가 관리권한 확인용 : 관리권한이 있는 자만 사용 가능
- var oParam = {};
- oParam.id = "TRRPD31102";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetSpcEvalMngtPrvg";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_prvg=codelist";
- oParam.async = false;
- oParam.callback = "cf_TRRPD31102";
- tranf_submit(oParam);
-
-
- if (arErrorCode.pop("TRRPD31102") > -1) {
-
- if(ds_init_prvg.getColumn(0, "cnt") != "1") {
- sysf_messageBox("프로그램 사용권한이 없습니다. 관리자에게 문의바랍니다.", "E999", "");
- return;
- }
- }
- misfComboInstCdListMulti("grp_main.cmb_instcd", utlf_getCurrentDate(),"","N");
- //model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- //model.refresh();
-
-
- grp_main.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
-
- ds_send_reqdata.enableevent = false;
- ds_send_reqdata.updatecontrol = false;
-
- grp_main.ipt_year.value = utlf_getCurrentDate().substr(0,4) - 1;
-
- ds_send_reqdata.updatecontrol = true;
- ds_send_reqdata.enableevent = true;
-
- grp_main.btn_search.click();
- }
- function cf_TRRPD31102(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : grp_main_cmb_instcd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 기관코드 콤보 항목 변경시
- ****************************************************************************************/
- function grp_main_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- misfGridInit(grp_main.datagrid1);
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_send_reqdata
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : ds_send_reqdata 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_send_reqdata_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ) {
- case "year" :
- grp_main.btn_search.click();
- break;
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_main_btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function grp_main_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- readfunc();
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_codeinfo_codelist
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Dataset 값 변경시
- ****************************************************************************************/
- function ds_main_codeinfo_codelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch(e.columnid) {
- case "emplno" :
- var recv_list = "emplno,emplnm";
- misfValidationCheck("01-1", "", recv_list);
- break;
- case "evalemplno" :
- var recv_list = "evalemplno,evalemplnm";
- misfValidationCheck("01-1", "", recv_list);
- break;
- default :
- break;
- }
-
- ds_main_codeinfo_codelist.setColumn(e.row, "colIUD", "u");
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grp_main_datagrid1
- * Event : onexpandup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드의 버튼 expandup시
- ****************************************************************************************/
- function grp_main_datagrid1_onexpandup(obj:Grid, e:GridMouseEventInfo)
- {
- var sColNM = grp_main.datagrid1.getCellProperty("Body", e.cell, "text").replace("bind:", "");
-
- if (sColNM == "emplno" ) { //계산기준코드
- var recv_list = "emplno,emplnm";
-
- rpbfOpenPopUpList("SPRPB00101", grp_main.datagrid1, recv_list, "", "N");
- }
- else if (sColNM == "evalemplno" ) { //계산기준코드
- //잠시 backup
- ds_main_codeinfo_codelist.enableevent = false;
- ds_main_codeinfo_codelist.updatecontrol = false;
-
- var vEmplno = ds_main_codeinfo_codelist.getColumn(ds_main_codeinfo_codelist.rowposition, "emplno");
- var vEmplnm = ds_main_codeinfo_codelist.getColumn(ds_main_codeinfo_codelist.rowposition, "emplnm");
- ds_main_codeinfo_codelist.setColumn(ds_main_codeinfo_codelist.rowposition, "emplno", "");
- ds_main_codeinfo_codelist.setColumn(ds_main_codeinfo_codelist.rowposition, "emplnm", "");
-
- ds_main_codeinfo_codelist.updatecontrol = true;
- ds_main_codeinfo_codelist.enableevent = true;
-
- var recv_list = "emplno,emplnm";
-
- rpbfOpenPopUpList("SPRPB00101", grp_main.datagrid1, recv_list, "", "N");
-
- ds_main_codeinfo_codelist.enableevent = false;
-
- //Popup 에서 값을 선택했을 경우에만 vEvalemplno, vEvalemplnm 에 값을 가져온다.
- if( !utlf_isNull(ds_main_codeinfo_codelist.getColumn(ds_main_codeinfo_codelist.rowposition, "emplno")) ) {
- ds_main_codeinfo_codelist.setColumn(ds_main_codeinfo_codelist.rowposition, "evalemplno",
- ds_main_codeinfo_codelist.getColumn(ds_main_codeinfo_codelist.rowposition, "emplno") );
- }
- if( !utlf_isNull(ds_main_codeinfo_codelist.getColumn(ds_main_codeinfo_codelist.rowposition, "emplnm")) ) {
- ds_main_codeinfo_codelist.setColumn(ds_main_codeinfo_codelist.rowposition, "evalemplnm",
- ds_main_codeinfo_codelist.getColumn(ds_main_codeinfo_codelist.rowposition, "emplnm") );
- }
-
- ds_main_codeinfo_codelist.enableevent = true;
-
- ds_main_codeinfo_codelist.enableevent = false;
- ds_main_codeinfo_codelist.updatecontrol = false;
-
- ds_main_codeinfo_codelist.setColumn(ds_main_codeinfo_codelist.rowposition, "emplno", vEmplno);
- ds_main_codeinfo_codelist.setColumn(ds_main_codeinfo_codelist.rowposition, "emplnm", vEmplnm);
-
- ds_main_codeinfo_codelist.updatecontrol = true;
- ds_main_codeinfo_codelist.enableevent = true;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_main_btn_grdadd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행추가 버튼 클릭시
- ****************************************************************************************/
- function grp_main_btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- if (utlf_transNullToEmpty(grp_main.ipt_year.value).length != 4){
- sysf_messageBox("연도를 확인하십시요. ", "E999", "");
- grp_main.ipt_year.setFocus();
- return;
- }
-
- ds_main_codeinfo_codelist.addRow();
- var irow = ds_main_codeinfo_codelist.rowposition;
-
- ds_main_codeinfo_codelist.setColumn(irow, "instcd", grp_main.cmb_instcd.value);
- ds_main_codeinfo_codelist.setColumn(irow, "year", grp_main.ipt_year.value);
- ds_main_codeinfo_codelist.rowposition = irow;
- grp_main.datagrid1.setCellPos( grp_main.datagrid1.getBindCellIndex("body", "emplno") );
- grp_main.datagrid1.setFocus();
-
- grp_main.datagrid1.showEditor(true);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_main_btn_grddel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행삭제 버튼 클릭시
- ****************************************************************************************/
- function grp_main_btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- var status = ds_main_codeinfo_codelist.getRowType(ds_main_codeinfo_codelist.rowposition);
-
- ds_main_codeinfo_codelist.enableevent = false;
- ds_main_codeinfo_codelist.updatecontrol = false;
-
- if(status == 1) {
- ds_main_codeinfo_codelist.setRowType(ds_main_codeinfo_codelist.rowposition, 8);
- }else if(status == 2) {
- ds_main_codeinfo_codelist.deleteRow(ds_main_codeinfo_codelist.rowposition);
- }else if(status == 4) {
- ds_main_codeinfo_codelist.setColumn(ds_main_codeinfo_codelist.rowposition, "colIUD", "u");
- ds_main_codeinfo_codelist.setRowType(ds_main_codeinfo_codelist.rowposition, 8);
- }else if(status == 8) {
- if(ds_main_codeinfo_codelist.getColumn(ds_main_codeinfo_codelist.rowposition, "colIUD") == "u") {
- ds_main_codeinfo_codelist.setRowType(ds_main_codeinfo_codelist.rowposition, 4);
- }else {
- ds_main_codeinfo_codelist.setRowType(ds_main_codeinfo_codelist.rowposition, 1);
- }
- }
-
- ds_main_codeinfo_codelist.updatecontrol = true;
- ds_main_codeinfo_codelist.enableevent = true;
-
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_main_btn_download
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀 다운 버튼 클릭시
- ****************************************************************************************/
- function grp_main_btn_download_onclick(obj:Button, e:ClickEventInfo)
- {
-
- //조회된 자료가 없으면 먼저 조회하라고 message
- if(ds_main_codeinfo_codelist.rowcount < 1) {
- sysf_messageBox("조회된 결과가 존재하지 않습니다. \n\n먼저 조회 후 Download 하십시요. ", "E999", "");
- return;
- }
-
- //misfSaveExcel(datagrid1, "평가항목");
- grdf_exportExcel(grp_main.datagrid1, "excel", "savetype", false, "", "user", false);
-
- }
- function grp_button_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
-
- if (datacheck() == false){
- return;
- }
-
- ExecData();
-
- }
- function grp_main_btn_psn_onclick(obj:Button, e:ClickEventInfo)
- {
- if (utlf_transNullToEmpty(grp_main.ipt_year.value).length != 4){
- sysf_messageBox("연도를 확인하십시요. ", "E999", "");
- grp_main.ipt_year.setFocus();
- return;
- }
-
- if( sysf_messageBox("대상자 생성 작업시 해당 연도에 등록된 기존 자료는 \n모두 삭제됩니다. \n\n대상자 생성 작업을 시작하시겠습니다? " , "Q99" ) == 6 ){
-
- var oParam = {};
- oParam.id = "TXRPD31502";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveSpcEvalPsnCreate";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_hidden_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXRPD31502";
- tranf_submit(oParam);
-
-
- if (arErrorCode.pop("TXRPD31502") > -1){
- readfunc();
- }
- }
-
- }
- function cf_TXRPD31502(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }]]></Script>
- </Form>
- </FDL>
|