123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMZHA20502" position="absolute 0 0 1140 760" titletext="부서장조회" oninit="SMZHA20502_oninit" onload="SMZHA20502_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1140 70" id="grp_search" class="div_SA2">
- <Layouts>
- <Layout>
- <Static text="검색조건" position="absolute 23 38 91 58" id="caption20" class="search_name"/>
- <Edit position="absolute 198 38 358 58" id="ipt_searchitem"/>
- <Button position="absolute 1065 24 1121 44" id="btn_search" class="btn1" text="조회" onclick="grp_search_btn_search_onclick"/>
- <Combo position="absolute 103 38 193 58" id="combo1" class="combo_search" innerdataset="@ds_init_flag" datacolumn="label" codecolumn="value" onitemchanged="grp_search_combo1_onitemchanged"/>
- <Combo position="absolute 198 38 462 58" id="cmb_searchitem" class="combo_search" taborder="1" visible="false" innerdataset="ds_init_cmb_searchitem" datacolumn="cdnm" codecolumn="cdid"/>
- <Static text="부 서" position="absolute 492 38 544 58" id="caption1" class="search_name"/>
- <Button position="absolute 648 38 668 58" id="btn_deptcd" class="icon_search" text="" onclick="grp_search_btn_deptcd_onclick"/>
- <Edit position="absolute 672 38 892 58" id="ipt_deptnm" enable="false"/>
- <Edit position="absolute 552 38 647 58" id="ipt_deptcd" taborder="2"/>
- <Combo position="absolute 103 13 238 33" id="cmb_gubun" class="combo_search" innerdataset="ds_init_cmb_gubun" datacolumn="cdnm" codecolumn="cdid"/>
- <Static text="결재분류" position="absolute 23 13 91 33" id="caption2" class="search_name"/>
- <Static text="기 관" position="absolute 492 13 544 33" id="caption3" class="search_name"/>
- <Combo position="absolute 552 13 702 33" id="cmb_instcd" class="combo_search" innerdataset="ds_init_cmb_instcd" datacolumn="cdnm" codecolumn="cdid"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid position="absolute 0 100 1140 760" id="grd_deptmgrlist" binddataset="ds_main_deptmgrinfo" autofittype="col" cellsizingtype="col" selecttype="multirow" oncelldblclick="grd_deptmgrlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="100"/>
- <Column size="110"/>
- <Column size="130"/>
- <Column size="170"/>
- <Column size="76"/>
- <Column size="161"/>
- <Column size="78"/>
- <Column size="170"/>
- <Column size="120"/>
- </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" colspan="2" text="인사근무지부서" taborder="undefined"/>
- <Cell col="7" text="결재가능부서"/>
- <Cell col="8" text="결재가능부서"/>
- <Cell col="9" text="결재부서구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" text="bind:emplno" suppress="1" suppressalign="middle,over"/>
- <Cell col="2" text="bind:name" suppress="1" suppressalign="middle,over"/>
- <Cell col="3" text="bind:jobkindnm" suppress="2" suppressalign="middle,over"/>
- <Cell col="4" text="bind:jobposnm" suppress="2" suppressalign="middle,over"/>
- <Cell col="5" text="bind:dutplcedeptcd" suppress="2" suppressalign="middle,over"/>
- <Cell col="6" displaytype="text" text="bind:dutplcedeptnm" suppress="2" suppressalign="middle,over"/>
- <Cell col="7" text="bind:deptcd" suppress="2" suppressalign="middle,over"/>
- <Cell col="8" displaytype="text" text="bind:deptnm" suppress="2" suppressalign="middle,over"/>
- <Cell col="9" displaytype="combo" text="bind:trgtdeptgb" suppress="2" suppressalign="middle,over" combodataset="ds_init_trgtdept" combocodecol="value" combodatacol="label"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="부서장리스트" position="absolute 0 82 111 102" align="align:center middle;" id="caption9" class="tit_2"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_searchdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_searchdata_oncolumnchanged">
- <ColumnInfo>
- <Column id="flag" type="STRING" size="256" sumtext="검색구분"/>
- <Column id="searchitem" type="STRING" size="256" sumtext="검색값"/>
- <Column id="gubun" type="STRING" size="256" sumtext="구분"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_deptmgrinfo" 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="name" type="STRING" size="256" sumtext="이름"/>
- <Column id="jobkindcd" type="STRING" size="256" sumtext="직종코드"/>
- <Column id="jobkindnm" type="STRING" size="256" sumtext="직종명"/>
- <Column id="jobposcd" type="STRING" size="256" sumtext="직위코드"/>
- <Column id="jobposnm" type="STRING" size="256" sumtext="직위명"/>
- <Column id="trgtdeptgb" type="STRING" size="256" sumtext="대상부서"/>
- <Column id="trgtdeptgbnm" type="STRING" size="256" sumtext="대상부서"/>
- <Column id="gubun" type="STRING" size="256" sumtext="구분"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="dutplcedeptcd" type="STRING" size="256" sumtext="인사근무부서코드"/>
- <Column id="dutplcedeptnm" type="STRING" size="256" sumtext="인사근무부서명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">사번</Col>
- <Col id="value">sabun</Col>
- </Row>
- <Row>
- <Col id="label">이름</Col>
- <Col id="value">name</Col>
- </Row>
- <Row>
- <Col id="label">직종</Col>
- <Col id="value">jobkindcd</Col>
- </Row>
- <Row>
- <Col id="label">직위</Col>
- <Col id="value">jobposcd</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_trgtdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">인사근무지</Col>
- <Col id="value">B</Col>
- </Row>
- <Row>
- <Col id="label">해당부서</Col>
- <Col id="value">C</Col>
- </Row>
- <Row>
- <Col id="label">특별허용</Col>
- <Col id="value">D</Col>
- </Row>
- <Row>
- <Col id="label">근무지부서</Col>
- <Col id="value">E</Col>
- </Row>
- <Row>
- <Col id="label">인사팀하위</Col>
- <Col id="value">F</Col>
- </Row>
- <Row>
- <Col id="label">하위부서</Col>
- <Col id="value">G</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_search.cmb_gubun" propid="value" datasetid="ds_send_searchdata" columnid="gubun"/>
- <BindItem id="item1" compid="grp_search.combo1" propid="value" datasetid="ds_send_searchdata" columnid="flag"/>
- <BindItem id="item2" compid="grp_search.cmb_searchitem" propid="value" datasetid="ds_send_searchdata" columnid="searchitem"/>
- <BindItem id="item3" compid="grp_search.cmb_instcd" propid="value" datasetid="ds_send_searchdata" columnid="instcd"/>
- <BindItem id="item4" compid="grp_search.ipt_deptcd" propid="value" datasetid="ds_send_searchdata" columnid="deptcd"/>
- <BindItem id="item5" compid="grp_search.ipt_deptnm" propid="value" datasetid="ds_send_searchdata" columnid="deptnm"/>
- <BindItem id="item6" compid="grp_search.ipt_searchitem" propid="value" datasetid="ds_send_searchdata" columnid="searchitem"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-12-09
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-12-09 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- function SMZHA20502_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMZHA20502_onload(obj:Form, e:LoadEventInfo)
- {
- misfComboComCdList("C0117" , grp_search.cmb_gubun, "N"); //구분
- misfComboComCdList("C0048" , grp_search.cmb_instcd, "N"); //기관
-
- if(frmf_checkOpener()){
- var initgubun = opener.frmf_getParameter("SMZHA20502_PARM_gubun");
- var initdeptcd = opener.frmf_getParameter("SMZHA20502_PARM_deptcd");
- var initdeptnm = opener.frmf_getParameter("SMZHA20502_PARM_deptnm");
- var initinstcd = opener.frmf_getParameter("SMZHA20502_PARM_instcd");
-
- if(!utlf_isNull(initdeptcd)){
- ds_send_searchdata.setColumn(0, "gubun",initgubun);
- ds_send_searchdata.setColumn(0, "deptcd",initdeptcd);
- ds_send_searchdata.setColumn(0, "deptnm",initdeptnm);
- ds_send_searchdata.setColumn(0, "instcd",initinstcd);
-
- grp_search.ipt_deptcd.enable = false;
- grp_search.ipt_deptnm.enable = false;
- grp_search.cmb_gubun.enable = false;
- grp_search.cmb_instcd.enable = false;
-
- grp_search.btn_search.click();
- }
- }else{
- ds_send_searchdata.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
-
- grp_search.ipt_deptcd.setFocus();
- }
- }
- function grp_search_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var flag = obj.value;
-
- ds_send_searchdata.setColumn(0, "searchitem", "");
-
- if(flag == "sabun" || flag == "name"){
- grp_search.ipt_searchitem.visible = true;
- grp_search.cmb_searchitem.visible = false;
- }else if(flag == "jobposcd"){
- grp_search.ipt_searchitem.visible = false;
- grp_search.cmb_searchitem.visible = true;
- misfComboComCdList("R0062" , grp_search.cmb_searchitem, "Y");
- }else if(flag == "jobkindcd"){
- grp_search.ipt_searchitem.visible = false;
- grp_search.cmb_searchitem.visible = true;
- misfComboComCdList("R0061" , grp_search.cmb_searchitem, "Y");
- }
- }
- function grp_search_btn_deptcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var recv_list = "deptcd,deptnm";
- misfOpenPopUpList("02", ds_send_searchdata, "", recv_list, ds_send_searchdata.getColumn(0, "instcd"), "instcd");
- }
- function ds_send_searchdata_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "deptnm") {
- if(utlf_isNull(e.newvalue))
- obj.setColumn(0, "deptcd", "");
- }
- }
- function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(ds_send_searchdata.getColumn(0, "gubun"))){
- sysf_messageBox("결제분류를","C002");
- return;
- }
- var oParam = {};
- oParam.id = "TRZHA20503";
- oParam.service = "reqprgmapp.ReqPrgm";
- oParam.method = "reqGetDeptMgrList";
- oParam.inds = "req=ds_send_searchdata";
- oParam.outds = "ds_main_deptmgrinfo=deptmgrlist";
- oParam.async = true;
- tranf_submit(oParam);
- }
- function grd_deptmgrlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(frmf_checkOpener() && opener.frmf_getParameter("SMZHA20502_PARM_accptyn") == "Y"){
- opener.frmf_setParameter("SMZHA20502_PARM_deptmgrid", ds_main_deptmgrinfo.getColumn(e.row, "emplno"));
- opener.frmf_setParameter("SMZHA20502_PARM_deptmgrnm", ds_main_deptmgrinfo.getColumn(e.row, "name"));
- this.close();
- }
- }]]></Script>
- </Form>
- </FDL>
|