123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD31600" position="absolute 0 0 1200 790" titletext="전문의 평가 - 평가등록" oninit="SMRPD31600_oninit" onload="SMRPD31600_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 28" id="group1">
- <Layouts>
- <Layout>
- <Static text="전문의 평가 - 평가 등록" position="absolute 0 0 178 24" id="caption6" class="tit_1" anchor="default"/>
- <Static id="caption4" class="patient_text_black" anchor="default" position="absolute 0 0 0 0"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 40 1195 784" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 10 1194 45" align="align:center top;" id="grp_sea" anchor="default" class="div_SA">
- <Layouts>
- <Layout>
- <Shape position="absolute 416 6 422 28" linetype="vertical" id="line5" class="line_4" anchor="default"/>
- <Button position="absolute 435 7 491 29" align="align:left middle;" id="btn_search" class="btn1" taborder="2" text="조회" anchor="default" onclick="group3_grp_sea_btn_search_onclick"/>
- <Combo position="absolute 115 8 257 27" id="cmb_instcd" class="combo_s_default" enable="false" anchor="default" onitemchanged="group3_grp_sea_cmb_instcd_onitemchanged"/>
- <Static text="기관코드" position="absolute 49 9 125 26" id="caption1" class="search_name" anchor="default"/>
- <Static text="연도" position="absolute 290 9 351 26" id="caption7" class="search_name" anchor="default"/>
- <MaskEdit position="absolute 330 8 380 27" align="align:center middle;" id="ipt_year" taborder="1" mask="####" anchor="default" autoskip="true" autoselect="true"/>
- <Static position="absolute 525 8 1010 28" id="cp_evalperiod" anchor="default" style="color:#993300ff;font:Dotum,9,bold;"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 75 535 81" linetype="horizontal" id="line3" class="line_10" anchor="default"/>
- <Shape position="absolute 540 75 1193 81" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
- <Static text="평가 대상자" position="absolute 0 59 131 78" id="caption21" class="tit_2" anchor="default"/>
- <Static text="평가표" position="absolute 540 59 746 75" id="caption20" class="tit_2" anchor="default"/>
- <Grid position="absolute 0 80 535 735" id="grd_psnlist" binddataset="ds_main_psnlist" anchor="default" oncellclick="group3_grd_psnlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="51"/>
- <Column size="70"/>
- <Column size="150"/>
- <Column size="130"/>
- <Column size="37"/>
- <Column size="57"/>
- <Column size="0"/>
- <Column size="0"/>
- </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="instcd"/>
- <Cell col="8" text="year"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:emplno"/>
- <Cell col="2" style="align:left;" text="bind:emplnm"/>
- <Cell col="3" style="align:left top;padding:5 2 1 2;" text="bind:deptnm" wordwrap="word"/>
- <Cell col="4" style="align:left top;padding:5 2 1 2;" text="bind:jobkindnm" wordwrap="word"/>
- <Cell col="5" text="bind:fnshyn"/>
- <Cell col="6" displaytype="number" style="align:center;" text="bind:totscore" mask="#,###"/>
- <Cell col="7" text="bind:instcd"/>
- <Cell col="8" text="bind:year"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="총 평" position="absolute 540 679 675 735" align="align:center middle;" id="caption27" class="cell_1" anchor="default"/>
- <TextArea position="absolute 675 679 1193 735" id="txt_cmt" anchor="default" wordwrap="word"/>
- <Grid position="absolute 540 111 1193 655" id="grd_scorelist" binddataset="ds_main_psninfo_scorelist" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="133"/>
- <Column size="252"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="3" text="평가항목" taborder="undefined"/>
- <Cell col="1" rowspan="3" text="세부항목" taborder="undefined"/>
- <Cell col="2" colspan="6" text="평정등급 및 점수" taborder="undefined"/>
- <Cell col="8" text="instcd"/>
- <Cell col="9" text="year"/>
- <Cell col="10" text="emplno"/>
- <Cell col="11" text="dtlitemcd"/>
- <Cell row="1" col="2" rowspan="2" text="수 (5.0)" taborder="undefined"/>
- <Cell row="1" col="3" rowspan="2" text="우 (4.0)" taborder="undefined"/>
- <Cell row="1" col="4" rowspan="2" text="미 (3.0)" taborder="undefined"/>
- <Cell row="1" col="5" rowspan="2" text="양 (2.0)" taborder="undefined"/>
- <Cell row="1" col="6" rowspan="2" text="가 (1.0)" taborder="undefined"/>
- <Cell row="1" col="7" rowspan="2" text="평점" taborder="undefined"/>
- <Cell row="1" col="8" text="instcd"/>
- <Cell row="1" col="9" text="year"/>
- <Cell row="1" col="10" text="emplno"/>
- <Cell row="1" col="11" text="dtlitemcd"/>
- <Cell row="2" col="8" text="instcd"/>
- <Cell row="2" col="9" text="year"/>
- <Cell row="2" col="10" text="emplno"/>
- <Cell row="2" col="11" text="dtlitemcd"/>
- </Band>
- <Band id="body">
- <Cell style="align:top;padding:5 2 1 2;" text="bind:itemnm" wordwrap="word" suppress="1" suppressalign="middle,over"/>
- <Cell col="1" style="align:left top;padding:5 2 1 2;" text="bind:dtlitemnm" wordwrap="word"/>
- <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:pos1" expr="expr:pos1 == '1' || pos1 == 'Y' ? '1' : '0'"/>
- <Cell col="3" displaytype="checkbox" edittype="checkbox" text="bind:pos2" expr="expr:pos2 == '1' || pos2 == 'Y' ? '1' : '0'"/>
- <Cell col="4" displaytype="checkbox" edittype="checkbox" text="bind:pos3" expr="expr:pos3 == '1' || pos3 == 'Y' ? '1' : '0'"/>
- <Cell col="5" displaytype="checkbox" edittype="checkbox" text="bind:pos4" expr="expr:pos4 == '1' || pos4 == 'Y' ? '1' : '0'"/>
- <Cell col="6" displaytype="checkbox" edittype="checkbox" text="bind:pos5" expr="expr:pos5 == '1' || pos5 == 'Y' ? '1' : '0'"/>
- <Cell col="7" displaytype="number" text="bind:score"/>
- <Cell col="8" text="bind:instcd"/>
- <Cell col="9" text="bind:year"/>
- <Cell col="10" text="bind:emplno"/>
- <Cell col="11" text="bind:dtlitemcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="사번" position="absolute 620 79 660 102" align="align:center middle;" id="cap_matrnm" class="cell_1" anchor="default"/>
- <Edit readonly="true" position="absolute 660 81 700 100" align="align:center middle;" id="opt_emplno" anchor="default" class="output"/>
- <Edit readonly="true" position="absolute 740 81 800 100" id="opt_emplnm" anchor="default" class="output"/>
- <Static text="성명" position="absolute 700 79 740 102" align="align:center middle;" id="caption2" class="cell_1" anchor="default"/>
- <Static text="부서명" position="absolute 800 79 850 102" align="align:center middle;" id="caption3" class="cell_1" anchor="default"/>
- <Edit readonly="true" position="absolute 850 81 1025 100" id="opt_deptnm" anchor="default" class="output"/>
- <Static text="직종" position="absolute 1025 79 1065 102" align="align:center middle;" id="caption5" class="cell_1" anchor="default"/>
- <Edit readonly="true" position="absolute 1065 81 1193 100" id="opt_jobkindnm" anchor="default" class="output"/>
- <Shape position="absolute 540 102 1193 107" linetype="horizontal" id="line4" class="line_10" anchor="default"/>
- <Static text="총평점" position="absolute 1030 655 1105 678" align="align:center middle;" id="caption8" class="cell_1" anchor="default"/>
- <Edit readonly="true" position="absolute 1105 657 1193 676" align="align:center middle;" id="opt_totscore" anchor="default" class="output" style="align:center middle;font:Dotum,9;"/>
- <Static text="연도" position="absolute 540 79 580 102" align="align:center middle;" id="caption9" class="cell_1" anchor="default"/>
- <Edit readonly="true" position="absolute 580 81 620 100" align="align:center middle;" id="output1" anchor="default" class="output"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group4" taborder="1" position="absolute 0 13 1195 45">
- <Layouts>
- <Layout>
- <Shape id="line2" linetype="horizontal" class="line_6" position="absolute 0 24 1194 30" anchor="default"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1137 3 1193 25" anchor="default" onclick="group4_btn_save_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="기관코드"/>
- <Column id="year" type="STRING" size="256" sumtext="연도"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사번"/>
- <Column id="cmt" type="STRING" size="256" sumtext="총평"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_evalperiodinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="evalfromdd" type="STRING" size="256" sumtext="평가 등록 from일자"/>
- <Column id="evaltodd" type="STRING" size="256" sumtext="평가 등록 to일자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_psnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <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="fnshyn" type="STRING" size="256" sumtext="평가완료여부"/>
- <Column id="totscore" 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_main_psninfo_scorelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_psninfo_scorelist_oncolumnchanged">
- <ColumnInfo>
- <Column id="itemnm" type="STRING" size="256" sumtext="코드명"/>
- <Column id="dtlitemnm" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="score" type="STRING" size="256" sumtext="점수"/>
- <Column id="pos1" type="STRING" size="256" sumtext="위치1"/>
- <Column id="pos2" type="STRING" size="256" sumtext="위치2"/>
- <Column id="pos3" type="STRING" size="256" sumtext="위치3"/>
- <Column id="pos4" type="STRING" size="256" sumtext="위치4"/>
- <Column id="pos5" type="STRING" size="256" sumtext="위치5"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="year" type="STRING" size="256" sumtext="연도"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사번"/>
- <Column id="dtlitemcd" type="STRING" size="256" sumtext="시작일자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_psninfo_cmtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cmt" 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="totscore" type="STRING" size="256" sumtext="평점(계)"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="year" type="STRING" size="256" sumtext="연도"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사번"/>
- <Column id="strtdd" type="STRING" size="256" sumtext="평정기간(시작일자)"/>
- <Column id="enddd" type="STRING" size="256" sumtext="평정기간(끝일자)"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_scorelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="score" type="STRING" size="256" sumtext="점수"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="year" type="STRING" size="256" sumtext="연도"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사번"/>
- <Column id="dtlitemcd" 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>
- <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_condition_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="year" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_psninfo_scorelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="itemnm" type="STRING" size="256" sumtext="코드명"/>
- <Column id="dtlitemnm" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="score" type="STRING" size="256" sumtext="점수"/>
- <Column id="pos1" type="STRING" size="256" sumtext="위치1"/>
- <Column id="pos2" type="STRING" size="256" sumtext="위치2"/>
- <Column id="pos3" type="STRING" size="256" sumtext="위치3"/>
- <Column id="pos4" type="STRING" size="256" sumtext="위치4"/>
- <Column id="pos5" type="STRING" size="256" sumtext="위치5"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="year" type="STRING" size="256" sumtext="연도"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사번"/>
- <Column id="dtlitemcd" type="STRING" size="256" sumtext="시작일자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_psninfo_cmtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cmt" 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="totscore" type="STRING" size="256" sumtext="평점(계)"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="year" type="STRING" size="256" sumtext="연도"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사번"/>
- <Column id="strtdd" type="STRING" size="256" sumtext="평정기간(시작일자)"/>
- <Column id="enddd" type="STRING" size="256" sumtext="평정기간(끝일자)"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.grp_sea.cmb_instcd" propid="value" datasetid="ds_main_condition" columnid="instcd"/>
- <BindItem id="item1" compid="group3.grp_sea.ipt_year" propid="value" datasetid="ds_main_condition" columnid="year"/>
- <BindItem id="item2" compid="group3.output1" propid="value" datasetid="ds_main_psninfo_cmtinfo" columnid="year"/>
- <BindItem id="item3" compid="group3.opt_emplno" propid="value" datasetid="ds_main_psninfo_cmtinfo" columnid="emplno"/>
- <BindItem id="item4" compid="group3.opt_emplnm" propid="value" datasetid="ds_main_psninfo_cmtinfo" columnid="emplnm"/>
- <BindItem id="item5" compid="group3.opt_deptnm" propid="value" datasetid="ds_main_psninfo_cmtinfo" columnid="deptnm"/>
- <BindItem id="item6" compid="group3.opt_jobkindnm" propid="value" datasetid="ds_main_psninfo_cmtinfo" columnid="jobkindnm"/>
- <BindItem id="item7" compid="group3.opt_totscore" propid="value" datasetid="ds_main_psninfo_cmtinfo" columnid="totscore"/>
- <BindItem id="item8" compid="group3.txt_cmt" propid="value" datasetid="ds_main_psninfo_cmtinfo" columnid="cmt"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : mis_dligclaznsmngtxp -> SMRPD31600
- * Creator : pjb
- * Make Date : 2017-12-20
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-12-20 pjb TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //화면 로드시 초기화 함수
- function fOpenForm() {
- misfComboInstCdListMulti("group3.grp_sea.cmb_instcd", utlf_getCurrentDate(),"","N");
-
- //2016.03.21 박준범 : 현재는 본원 진료행정과에서 본원, 칠곡 인력 모두를 등록하여 일괄관리하기 때문에
- // 강제로 '031' 로 setting되도록 한다. 그래야 login한 평가자의 근무지가 본원, 칠곡에 무관하게
- // 본원 진료행정과에서 등록한 피평가자 대상들이 보여지게 된다.
- // 향후, 혹시 칠곡 진료행정과에서 별도로 평가대상 인력을 선정하고 평가가 이루어지는 시점에
- // 아래 comment 처리를 원복하도록 한다.
- //cmb_instcd.value = getUserInfo("dutplceinstcd");
- group3.grp_sea.cmb_instcd.value = "031"; //강제로 본원으로 setting
-
- group3.grp_sea.ipt_year.value = utlf_getCurrentDate().substr(0,4) - 1;
-
- misfGridInit(group3.grd_scorelist);
- fGetPsnList(); //평가대상자 목록 조회
- // if(model.getValue("/root/main/psnlist[1]/matrcd") != "") {
- // grd_psnlist.isSelected(1) = true;
- // fGetPsnInfo(1);
- // }else {
- // fCopyInstance();
- // }
- }
- //평가 대상자 목록 조회 함수
- function fGetPsnList() {
-
- misfGridInit(group3.grd_psnlist);
-
- ds_send.copyRow(0, ds_main_condition, 0);
-
- //평가 등록기간 조회
- var oParam = {};
- oParam.id = "TRRPD31602";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetSpcEvalPsnPeriodList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_evalperiodinfo=evalperiodinfo";
- oParam.async = false;
- oParam.callback = "cf_TRRPD31602";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRRPD31602") > -1) {
- var fromdd = utlf_transNullToEmpty(ds_init_evalperiodinfo.getColumn(0, "evalfromdd"));
- if(fromdd.length > 0) {
- var todd = ds_init_evalperiodinfo.getColumn(0, "evaltodd");
- group3.grp_sea.cp_evalperiod.text = "※ 평가 등록기간 : "
- + fromdd.substr(0,4) + "-" + fromdd.substr(4,2) + "-" + fromdd.substr(6,2) + " ~ "
- + todd.substr(0,4) + "-" + todd.substr(4,2) + "-" + todd.substr(6,2) ;
- } else {
- group3.grp_sea.cp_evalperiod.text = "";
- }
- }
-
- //평가대상자 목록 조회
- var oParam = {};
- oParam.id = "TRRPD31601";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetSpcEvalPsnFnshList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_psnlist=psnlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD31601";
- tranf_submit(oParam);
-
- }
- function cf_TRRPD31602(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //평가 점수 및 총평 조회
- function fGetPsnInfo(pRow) {
- if ( pRow > -1 ) {
- ds_send.clearData();
- ds_send.addRow();
-
- ds_send.copyRow(0, ds_main_psnlist, pRow);
-
- var oParam = {};
- oParam.id = "TRRPD31603";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetSpcEvalPsnScoreList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_psninfo_scorelist=scorelist ds_main_psninfo_cmtinfo=cmtinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD31603";
- tranf_submit(oParam);
-
- fCopyInstance();
- fCalScore();
- }
- }
- //인스턴스 Copy 함수
- function fCopyInstance() {
- ds_hidden_psninfo_scorelist.copyData(ds_main_psninfo_scorelist);
- ds_hidden_psninfo_cmtinfo.copyData(ds_main_psninfo_cmtinfo);
- }
- //평점을 계산하여 display합니다.
- function fCalScore() {
- var vTotal = 0;
- var vScore = "";
- for(var i = 0; i < ds_main_psninfo_scorelist.rowcount; i++) {
- vScore = ds_main_psninfo_scorelist.getColumn(i, "score");
- if(utlf_isNull(vScore) ) continue;
-
- vTotal = vTotal + parseFloat(ds_main_psninfo_scorelist.getColumn(i, "score"));
- }
-
- group3.opt_totscore.value = vTotal;
- }
- // 저장버튼 클릭시 저장 수행 함수
- function fClickSaveBtn() {
-
- for(var i = 0; i < ds_main_psninfo_scorelist.rowcount ; i++) {
- if(utlf_isNull(ds_main_psninfo_scorelist.getColumn(i, "score"))) {
- sysf_messageBox("미평가 항목이 존재합니다. 확인 후 저장하시기 바랍니다. ", "E999", "");
- return;
- }
- }
-
- ds_send.clearData(); //cf. clear();
- ds_send.addRow();
-
- ds_send.copyRow(0, ds_main_psninfo_cmtinfo, 0);
-
- //copyData : 메소드를 수행하면 대상 데이터셋의 모든 열과 행 정보는 삭제됩니다.
- //데이터셋이 복사될 때 삭제된 행은 복사하지 않습니다.
- //또한, copyData 메소드를 수행하여 복사된 행의 타입은 ROWTYPE_NORMAL이 됩니다
- //ds_senddata_execdata_codelist.copyData(update);
- //assign : 지정한 데이터셋에서 행(row) 타입, 열(column) 타입, 데이터 등의 모든 행, 열 정보를 대상 데이터셋에 부여하는 메소드
- ds_send_scorelist.assign(grdf_getGridUpdateData(group3.grd_scorelist));
-
-
- var oParam = {};
- oParam.id = "TXRPD31601";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveSpcEvalPsnScoreList";
- oParam.inds = "cmtinfo=ds_send scorelist=ds_send_scorelist";
- oParam.outds = "ds_hidden_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXRPD31601";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXRPD31601") > -1) {
- fGetPsnList();//평가대상자 목록 재조회
- ds_send.copyRow(0, ds_main_psninfo_cmtinfo, 0);
-
- var oParam = {};
- oParam.id = "TRRPD31603"; //상세내역 및 조사표 재조회
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetSpcEvalPsnScoreList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_psninfo_scorelist=scorelist ds_main_psninfo_cmtinfo=cmtinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD31603";
- tranf_submit(oParam);
- fCalScore();
- fCopyInstance();
-
-
- }
- }
- function cf_TXRPD31601(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMRPD31600
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMRPD31600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMRPD31600
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMRPD31600_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(group3.grd_psnlist, 0);
- grdf_setGridSort(group3.grd_psnlist);
- fOpenForm();
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : group3_grp_sea_cmb_instcd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 기관코드 콤보 항목 변경시
- ****************************************************************************************/
- function group3_grp_sea_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fGetPsnList();
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_condition
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_main_condition_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ) {
- case "year" :
- fGetPsnList();
- break;
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3_grp_sea_btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회 버튼 클릭시
- ****************************************************************************************/
- function group3_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetPsnList();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : group3_grd_psnlist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function group3_grd_psnlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var cur_row = group3.grd_psnlist.currentrow;
- fGetPsnInfo(cur_row);
-
- group3.opt_emplno.setFocus();
-
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : group3_grd_psnlist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function ds_main_psninfo_scorelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ){
- case "pos1" :
- case "pos2" :
- case "pos3" :
- case "pos4" :
- case "pos5" :
- if( e.newvalue == "1" || e.newvalue == "Y" ){
- obj.setColumn(e.row, e.columnid, "Y");
- }else{
- obj.setColumn(e.row, e.columnid, "N");
- }
- break;
-
- default :
- break;
- }
-
-
- var icol = group3.grd_scorelist.currentcell; //currentcol 과 비교! - 셀병합시 다를 수 있다.
- var irow = group3.grd_scorelist.currentrow;
- var offset = 0;
- var MaxScore = 5; //최고 점수
-
- if( group3.grd_scorelist.getCellValue(irow, icol) == "Y" ) {
- for( var i = group3.grd_scorelist.getBindCellIndex("body", "pos1") ; i <= group3.grd_scorelist.getBindCellIndex("body", "pos5"); i++ ) {
- if( i == icol ) {
- ds_main_psninfo_scorelist.setColumn(irow, "score", MaxScore - offset);
- } else {
- var sColNM = group3.grd_scorelist.getCellProperty("Body", i, "text").replace("bind:", "");
- ds_main_psninfo_scorelist.setColumn(irow, sColNM, "N");
- }
- offset++;
- }
- } else {
- ds_main_psninfo_scorelist.setColumn(irow, "score", "");
- }
-
- //평점계를 계산하여 display
- fCalScore();
-
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group4_btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function group4_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fClickSaveBtn();
- }
- ]]></Script>
- </Form>
- </FDL>
|