123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLPC02100" position="absolute 0 0 326 358" titletext="세부파트" onload="SPLPC02100_onload">
- <Layouts>
- <Layout>
- <Grid id="grd_detlpartlist" taborder="1" useinputpanel="false" position="absolute 1 0 322 330" binddataset="ds_grid_grd_detlpartlist" positiontype="position" ondbclick="grd_detlpartlist_ondbclick" autofittype="col" oncelldblclick="grd_detlpartlist_oncelldblclick" class="CSS::lis.css">
- <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:detlpartcd"/>
- <Cell col="3" text="bind:detlpartnm"/>
- <Cell col="4"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_cfm" taborder="3" text="확인" onclick="btn_cfm_onclick" class="btn2" position="absolute 198 336 242 356" positiontype="position"/>
- <Button id="btn_cfm00" taborder="4" text="닫기" class="btn2" position="absolute 262 336 306 356" onclick="btn_cfm00_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_detlpartlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hospcd" type="STRING"/>
- <Column id="detlpartcd" type="STRING"/>
- <Column id="detlpartnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_scrndata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name : SPLPC02100_세부파트팝업.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()
- {
- //var sBaseCd = opener.ds_rslt_ptnoinfo.getColumn(0,"basepartcd");
- var sBaseCd = opener.ds_hidden_scrndata.getColumn(0,"basepartcd");
-
- if(utlf_isNull(sBaseCd)){
- sysf_messageBox("기본파트를 먼저", "C002");
- close();
- }
- /*
- dsf_createDsRow("ds_send"
- , [{col: "delflag" , val: "0"}
- , {col: "instcd" , val: sysf_getUserInfo("dutplceinstcd")}
- ]);
-
- dsf_createDsRow("ds_send"
- , [{col: "delflag" , val: "0"}
- , {col: "instcd" , val: sysf_getUserInfo("dutplceinstcd")}
- , {col: "instcd" , val: opener.ds_data_exmpinfo.getColumn(0,"instcd")}
- , {col: "instcd" , val: opener.ds_rslt_ptnoinfo.getColumn(0,"instcd")}
- , {col: "basepartcd", val: sBaseCd}
- ]);
- */
-
- dsf_createDsRow("ds_send"
- , [{col: "delflag" , val: "0"}
- , {col: "instcd" , val: sysf_getUserInfo("dutplceinstcd")}
- , {col: "basepartcd", val: sBaseCd}
- ]);
- ds_grid_grd_detlpartlist.clearData();
-
- // 서브밋호출
- var oParam = {};
- oParam.id = "TRLPC02101";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetDetailPartCodeList";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_grid_grd_detlpartlist=refrslt";
- oParam.async = false;
- oParam.callback = "cbf_SPLPC02100";
- tranf_submit(oParam);
-
- }
- //콜백함수
- function cbf_SPLPC02100(strSvcID, nErrorCode, strErrorMag){
- if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- }
- // 세부파트코드, 세부파트명칭 보내기
- function lf_ExeChoidetlPart(){
-
- var nRow = ds_grid_grd_detlpartlist.rowposition;
-
- // opener.ds_data_exmpinfo.setColumn(0,"detlpartcd", ds_grid_grd_detlpartlist.getColumn(nRow, "detlpartcd"));
- // opener.ds_data_exmpinfo.setColumn(0,"detlpartnm", ds_grid_grd_detlpartlist.getColumn(nRow, "detlpartnm"));
- opener.ds_hidden_scrndata.setColumn(0,"detlpartcd",ds_grid_grd_detlpartlist.getColumn(nRow, "detlpartcd"));
- opener.ds_hidden_scrndata.setColumn(0,"detlpartnm",ds_grid_grd_detlpartlist.getColumn(nRow, "detlpartnm"));
- // opener.ds_rslt_ptnoinfo.setColumn(0,"detlpartcd", ds_grid_grd_detlpartlist.getColumn(nRow, "detlpartcd"));
- // opener.ds_rslt_ptnoinfo.setColumn(0,"detlpartnm", ds_grid_grd_detlpartlist.getColumn(nRow, "detlpartnm"));
- this.close();
- }
-
-
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SPLPC02100
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SPLPC02100_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_cls
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- // 확인버튼
- function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_ExeChoidetlPart();
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_cls
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- // 데이터 더블클릭
- function grd_detlpartlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- lf_ExeChoidetlPart();
- }
- function btn_cfm00_onclick(obj:Button, e:ClickEventInfo)
- {
- close();
- }
- ]]></Script>
- </Form>
- </FDL>
|