123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLPC02000" position="absolute 0 0 345 410" titletext="기본파트" class="frm_POP" onload="SPLPC02000_onload">
- <Layouts>
- <Layout>
- <Static id="stt_titleText" text="기본파트" class="sta_POP_title" position="absolute 12 8 161 28"/>
- <Grid id="grd_basepartlist" taborder="1" useinputpanel="false" position="absolute 12 46 334 376" binddataset="ds_grid_grd_basepartlist" positiontype="position" ondbclick="grd_basepartlist_ondbclick" autofittype="col" oncelldblclick="grd_basepartlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="30"/>
- <Column size="100"/>
- <Column size="200"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="병원코드"/>
- <Cell col="1"/>
- <Cell col="2" text="기본파트코드"/>
- <Cell col="3" text="기본파트명칭"/>
- </Band>
- <Band id="body">
- <Cell text="bind:hospcd"/>
- <Cell col="1" celltype="head" expr="expr:currow+1"/>
- <Cell col="2" text="bind:basepartcd"/>
- <Cell col="3" text="bind:basepartnm"/>
- <Cell col="4"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_cfm" taborder="2" text="확인" onclick="btn_cfm_onclick" class="btn5" position="absolute 289 379 333 399" positiontype="position"/>
- <Button id="btn_cls00" taborder="4" onclick="btn_cls_onclick" class="btn_POP_cls" position="absolute 319 12 333 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_basepartlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hospcd" type="STRING"/>
- <Column id="basepartcd" type="STRING"/>
- <Column id="basepartnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name : SPLPC02000_기본파트팝업.xfdl
- * Creator :
- * Make Date : 2015-12-10
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function lf_GetRefData(){
-
- /*
- dsf_createDsRow("ds_send"
- , [{col: "delflag" , val: "0"}
- , {col: "instcd" , val: opener.ds_hidden_userinfo.getColumn(0,"instcd")}
- ]);
- */
- dsf_createDsRow("ds_send"
- , [{col: "delflag" , val: "0"}
- , {col: "instcd" , val: sysf_getUserInfo("dutplceinstcd")}
- ]);
-
- ds_grid_grd_basepartlist.clearData();
-
-
- // 서브밋호출
- var oParam = {};
- oParam.id = "TRLPC02001";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetBasisPartCodeList";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_grid_grd_basepartlist=refrslt";
- oParam.async = false;
- oParam.callback = "cbf_SPLPC02000";
- tranf_submit(oParam);
-
- }
- //콜백함수
- function cbf_SPLPC02000(strSvcID, nErrorCode, strErrorMag){
- if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- }
- // 기본파트코드, 기본파트명칭 보내기
- function lf_ExeChoiBasePart(){
-
-
- opener.ds_hidden_scrndata.setColumn(0,"basepartcd",ds_grid_grd_basepartlist.getColumn(ds_grid_grd_basepartlist.rowposition, "basepartcd"));
- opener.ds_hidden_scrndata.setColumn(0,"basepartnm",ds_grid_grd_basepartlist.getColumn(ds_grid_grd_basepartlist.rowposition, "basepartnm"));
- // opener.ds_rslt_ptnoinfo.setColumn(0,"basepartcd",ds_grid_grd_basepartlist.getColumn(ds_grid_grd_basepartlist.rowposition, "basepartcd"));
- // opener.ds_rslt_ptnoinfo.setColumn(0,"basepartnm",ds_grid_grd_basepartlist.getColumn(ds_grid_grd_basepartlist.rowposition, "basepartnm"));
-
- this.close();
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SPLPC02000
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SPLPC02000_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
- lf_GetRefData();
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_cls_
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- // 닫기
- function btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- close();
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_cfm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- // 확인
- function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_ExeChoiBasePart();
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_basepartlist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- // 데이터 더블클릭
- function grd_basepartlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- lf_ExeChoiBasePart();
- }
- ]]></Script>
- </Form>
- </FDL>
|