123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAHB01200" position="absolute 0 0 1195 773" titletext="근무자/실시자 관리" onload="SMAHB01200_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="근무자/실시자 관리" class="tit_1" position="absolute 0 0 160 25"/>
- <Div id="grp_sea" taborder="2" position="absolute 0 25 1194 65" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 10 1110 32" anchor="top right"/>
- <Button id="btn_sea" taborder="4" text="조회" class="btn1" position="absolute 1123 10 1179 32" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
- <Static id="caption2" text="실시자코드 :" class="search_name" position="absolute 15 12 127 29" anchor="default"/>
- <Button id="button61" taborder="5" class="icon_search" position="absolute 270 13 286 29" anchor="default" onclick="grp_sea_button61_onclick" visible="false"/>
- <Edit id="ipt_basecd" taborder="6" class="input_search" position="absolute 130 11 265 30" anchor="default" onkeydown="grp_sea_ipt_basecd_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_gedadd" taborder="3" text="행추가" class="btn2" position="absolute 1085 67 1138 89" onclick="btn_gedadd_onclick" anchor="top right"/>
- <Button id="btn_grddel" taborder="4" text="행삭제" class="btn2" position="absolute 1141 67 1194 89" onclick="btn_grddel_onclick" anchor="top right"/>
- <Static id="caption1" text="실시자관리" class="tit_2" position="absolute 0 73 120 90"/>
- <Shape id="line1" class="line_10" position="absolute 0 89 1194 95" anchor="left top right"/>
- <Grid id="grd_execrlst" taborder="5" binddataset="ds_main_dutplst_item" useinputpanel="false" position="absolute 0 94 1194 744" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="71"/>
- <Column size="97"/>
- <Column size="139"/>
- <Column size="858"/>
- <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="원본사원번호"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:seqno"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:basecd"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:basenm"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:remfact"/>
- <Cell col="5" text="bind:deptcd"/>
- <Cell col="6" text="bind:orgbasecd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_save" taborder="6" text="저장" class="btn4" position="absolute 1138 747 1194 769" onclick="btn_save_onclick" anchor="right bottom"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_savedutp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="srchinstcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basecd"/>
- <Col id="srchinstcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_dutplst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_dutplst_item_oncolumnchanged">
- <ColumnInfo>
- <Column id="seqno" type="STRING" size="256"/>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="basenm" type="STRING" size="256"/>
- <Column id="remfact" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="orgbasecd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="seqno"/>
- <Col id="basecd"/>
- <Col id="basenm"/>
- <Col id="remfact"/>
- <Col id="deptcd"/>
- <Col id="orgbasecd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="deptcd"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_basecd" propid="value" datasetid="ds_send" columnid="basecd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-12-04
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 조회
- ****************************************************************************************/
- function call_TRAHB01201() {
- var oParam = {};
- oParam.id = "TRAHB01201";
- oParam.service = "healexambaseapp.DutpCode";
- oParam.method = "reqGetExecrList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_dutplst_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAHB01201";
- tranf_submit(oParam);
- }
- function cf_TRAHB01201(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
-
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 부서설정
- ****************************************************************************************/
- function fSetSuppDeptcd() {
- var dutplcecd = sysf_getUserInfo("dutplcecd");
- //var selectplcecd = getScreenPrestDeptCd();
- ds_init.setColumn( 0, "deptcd" , dutplcecd);
- ds_send.setColumn( 0, "srchinstcd" , sysf_getUserInfo("dutplceinstcd"));
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 저장
- ****************************************************************************************/
- function fSaveExer() {
- var dsUpdate = grdf_getGridUpdateData(grd_execrlst, "all");
- grdf_setStatusColumn(dsUpdate, "m");
- ds_send_savedutp.copyData(dsUpdate, true);
- //trace(ds_send_savedutp.saveXML());
- var oParam = {};
- oParam.id = "TXAHB01201";
- oParam.service = "healexambaseapp.DutpCode";
- oParam.method = "reqExeExecrCode";
- oParam.inds = "req=ds_send base=ds_send_savedutp";
- oParam.outds = "ds_main_dutplst_item=item";
- oParam.async = false;
- //oParam.typeStr = "m"
- //oParam.callback = "cf_TXAHB01201";
- tranf_submit(oParam);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAHB01200_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- grdf_setRowTypeIcon(grd_execrlst, 0);
- fSetSuppDeptcd();
- call_TRAHB01201();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo) {
- call_TRAHB01201();
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 조회조건 입력 후 조회
- ****************************************************************************************/
- function grp_sea_ipt_basecd_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- grp_sea.btn_sea.click();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 행추가
- ****************************************************************************************/
- function btn_gedadd_onclick(obj:Button, e:ClickEventInfo) {
- var addRow = ds_main_dutplst_item.addRow();
- ds_main_dutplst_item.setColumn(addRow , "deptcd", ds_init.getColumn(0, "deptcd"));
- }
- /****************************************************************************************
- * Components : Button
- * Description : 행삭제
- ****************************************************************************************/
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
- var cRow = ds_main_dutplst_item.rowposition;
-
- if( ds_main_dutplst_item.getRowType(cRow) == 2 ) {
- ds_main_dutplst_item.deleteRow(cRow);
- }else{
- grdf_setStatus(grd_execrlst, "D", [cRow]);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 저장
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo) {
- fSaveExer();
- }
- /****************************************************************************************
- * Components : Dataset
- * Description : 데이터 입력시
- ****************************************************************************************/
- function ds_main_dutplst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- var col = e.col;
- var row = e.row;
- if(e.columnid == "basecd") {
- var count = -1;
- var chkRow = 0;
- var baseCd = obj.getColumn(row, col);
- //선행검사 중복체크
- for(var i = 0 ; i < obj.rowcount ; i++) {
- if(i != e.row && obj.getColumn(i, col) == baseCd) {
- sysf_messageBox("사번이 ","E006");
- obj.setColumn(row, col, "");
- return;
- }
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|