123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMB02500" position="absolute 0 0 241 515" titletext="시행부서" oninit="SPMMB02500_oninit" onload="SPMMB02500_onload">
- <Layouts>
- <Layout>
- <Static text="시행부서" position="absolute 0 0 126 20" align="align:center middle;" id="caption2" class="tit_2"/>
- <Grid position="absolute 0 19 241 515" id="grd_execdeptlist" binddataset="ds_execdeptlist" treeuseimage="false" autofittype="col" cellsizingtype="col" treeusecheckbox="false" oncelldblclick="grd_execdeptlist_oncelldblclick" oncellclick="grd_execdeptlist_oncellclick" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="191"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" autosizecol="limitmin"/>
- <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" treestartlevel="1" treelevel="bind:depth" autosizecol="limitmin"/>
- <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_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>
- <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>
- </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";
- function SPMMB02500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMMB02500_onload(obj:Form, e:LoadEventInfo)
- {
- fReqExecDeptList();
- }
- function grd_execdeptlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.col == 1) return;
-
- var useyn = ds_execdeptlist.getColumn(e.row, "useyn");
- if(useyn != "Y"){ //depth 1인 값을 선택한 경우
- var row = obj.getTreeRow(e.row);
- var status = obj.getTreeStatus(row);
- if(status == 0)
- obj.setTreeStatus(row, true);
- else if(status == 1)
- obj.setTreeStatus(row, false);
- return;
- }
- }
- function grd_execdeptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fSelectExecDeptList(grd_execdeptlist);
- }
- /**
- * @desc : 시행부서 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqExecDeptList(){
- ds_send_reqdata.setColumn(0, "stnddd", utlf_getCurrentDate());
-
- var oParam = {};
- oParam.id = "TRMMB02501";
- oParam.service = "prcpbaseapp.EnvInfoMngt";
- oParam.method = "reqGetExecDeptList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_execdeptlist=execdeptlist";
- oParam.async = true;
- tranf_submit(oParam);
- }
- /**
- * @desc : 시행부서 선택
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fSelectExecDeptList(grdobj){
- var currow = ds_execdeptlist.rowposition;
- if(currow < 0){
- return;
- }
- var useyn = ds_execdeptlist.getColumn(currow, "useyn");
- if(useyn != "Y"){ //depth 1인 값을 선택한 경우
- return;
- }
- var deptcd = ds_execdeptlist.getColumn(currow, "deptcd");
-
- opener.ds_orddept.copyData(ds_execdeptlist);
-
- if(opener.name == "div_prcpdetail") { // 처방상세화면을 처방아래에 열어두고 사용할 때 처방 데이타셋 이름이 다르다.
- opener.ds_main_detlprcplist.enableevent = false;
- opener.ds_main_detlprcplist.setColumn(0, "prcpexecdeptcd", deptcd);
- opener.ds_main_detlprcplist.enableevent = true;
- } else {
- opener.ds_main_prcplist.enableevent = false;
- opener.ds_main_prcplist.setColumn(0, "prcpexecdeptcd", deptcd);
- opener.ds_main_prcplist.enableevent = true;
- }
- close();
- }]]></Script>
- </Form>
- </FDL>
|