123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMB02600" position="absolute 0 0 240 495" titletext="발행부서" onload="SPMMB02600_onload" oninit="SPMMB02600_oninit">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 16 240 22" linetype="horizontal" id="line6" class="line_10"/>
- <Static text="발행부서" position="absolute 0 0 126 15" align="align:center middle;" id="caption2" class="tit_2"/>
- <Grid position="absolute 0 21 240 495" id="grd_execdeptlist" binddataset="ds_execdeptlist" oncelldblclick="grd_execdeptlist_oncelldblclick" treeusecheckbox="false" treeuseimage="false" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="54"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="192"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2" text="deptcd"/>
- <Cell col="3" text="useyn"/>
- <Cell col="4" text="부서"/>
- </Band>
- <Band id="body">
- <Cell text="bind:depth"/>
- <Cell col="1" displaytype="tree" edittype="tree" text="bind:outline" treelevel="bind:depth"/>
- <Cell col="2" text="bind:deptcd"/>
- <Cell col="3" text="bind:useyn"/>
- <Cell col="4" style="align:left middle;" text="bind:depthngnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_execdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depth" type="STRING" size="256" sumtext="depth"/>
- <Column id="outline" type="STRING" size="256" sumtext="outline"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="depthngnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="cdgrupid" type="STRING" size="256" sumtext="그룹코드"/>
- <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
- </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="stnddd" type="STRING" size="256" sumtext="기준일자"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-12-10
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-12-10 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- var arErrorCode = new HashArray();
- function SPMMB02600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMMB02600_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize_SPMMB02600();
- fReqPubDeptList();
- }
- function grd_execdeptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fSelectPubDeptList(grd_execdeptlist);
- }
- /**
- * @desc : 화면 초기화
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fInitialize_SPMMB02600(){
-
- ds_execdeptlist.clearData();
- }
- /**
- * @desc : 발행부서 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqPubDeptList(){
- //model.removeNodeset("/root/send/reqdata");
- ds_send_reqdata.setColumn(0, "stnddd", utlf_getCurrentDate());
- var oParam = {};
- oParam.id = "TRMMB02601";
- oParam.service = "prcpbaseapp.EnvInfoMngt";
- oParam.method = "reqGetPubDeptList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_execdeptlist=pubdeptlist";
- oParam.async = false;
-
- tranf_submit(oParam);
-
- }
- /**
- * @desc : 발행부서 선택
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fSelectPubDeptList(grdobj){
- var currow = ds_execdeptlist.rowposition;
- if(currow < 0){
- return;
- }
-
- var useyn = ds_execdeptlist.getColumn(currow, "useyn");
- if(useyn != "Y"){ //depth 1인 값을 선택한 경우
- return;
- }
-
- var sTRGTNODE_PATH = opener.frmf_getParameter("SPMMB02600_trgtnode_path");
- var deptcd = ds_execdeptlist.getColumn(currow, "deptcd");
- if(utlf_isNull(sTRGTNODE_PATH)){
- opener.ds_root.setColumn(0,"issdept", deptcd);
- }else{
- if(sTRGTNODE_PATH == "ds_main_tranempinfo_startposcd"){
- opener.ds_main_tranempinfo.setColumn(0,"startposcd", deptcd);
- }else if(sTRGTNODE_PATH == "ds_main_tranempinfo_arvposcd"){
- opener.ds_main_tranempinfo.setColumn(0,"arvposcd", deptcd);
- }else if(sTRGTNODE_PATH == "ds_main_cond_dept"){
- opener.ds_main_cond.setColumn(0,"dept", deptcd);
- }else{
- opener.ds_init.setColumn(0,"issdept", deptcd);
- }
- }
- close();
- }]]></Script>
- </Form>
- </FDL>
|