123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLPC02200" position="absolute 0 0 345 610" titletext="검체코드 리스트" onload="SPLPC02200_onload" class="frm_POP">
- <Layouts>
- <Layout>
- <Div id="div_biz" taborder="0" layoutselecttype="inner,width" position="absolute 0 0 343 608">
- <Layouts>
- <Layout>
- <Div id="div_sea" taborder="6" class="div_SA" position="absolute 12 46 333 88" anchor="default"/>
- <Static id="caption1" text="검체코드 리스트" class="tit_2" position="absolute 12 91 161 111" anchor="default"/>
- <Button id="btn_cls" taborder="1" text="닫기" onclick="div_biz_btn_cls_onclick" class="btn5" position="absolute 289 578 333 598" anchor="default"/>
- <Button id="btn_cfm" taborder="2" text="확인" onclick="btn_cfm_onclick" class="btn5" position="absolute 233 578 277 598" anchor="default"/>
- <Static id="cap_spcnm" text="검체명" class="search_name" position="absolute 21 57 82 77" anchor="default"/>
- <Edit id="edt_spcnm" taborder="3" onkeydown="div_biz_edt_spcnm_onkeydown" class="input_search" position="absolute 81 57 201 77" anchor="default"/>
- <Button id="btn_syts_ref" taborder="4" text="조회" onclick="div_biz_btn_syts_ref_onclick" class="btn1" position="absolute 266 57 322 77" anchor="default"/>
- <Grid id="grd_spccdlist" class="CSS::lis.css" taborder="5" useinputpanel="false" oncelldblclick="div_biz_grd_spccdlist_oncelldblclick" position="absolute 12 112 333 575" anchor="default" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="90"/>
- <Column size="190"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="기관코드"/>
- <Cell col="2" text="검체코드"/>
- <Cell col="3" text="검체명"/>
- <Cell col="4" text="검체약어"/>
- <Cell col="5" text="대표검체"/>
- <Cell col="6" text="대표검체명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" text="bind:instcd"/>
- <Cell col="2" text="bind:spccd"/>
- <Cell col="3" style="align:left middle;" text="bind:spcnm"/>
- <Cell col="4" text="bind:spcabbr"/>
- <Cell col="5" text="bind:reprspccd"/>
- <Cell col="6" text="bind:reprspcnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_1" position="absolute 12 109 333 113" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
- <Static id="stt_titleText" text="검체코드 리스트" class="sta_POP_title" position="absolute 12 8 161 28" anchor="default"/>
- <Button id="btn_close" taborder="7" onclick="div_biz_btn_close_onclick" class="btn_POP_cls" position="absolute 319 12 333 25" anchor="default"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 240 55 248 78" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_hidden_scrndata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_rslt_spccdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="병원코드"/>
- <Column id="spccd" type="STRING" size="256" sumtext="검체코드"/>
- <Column id="spcnm" type="STRING" size="256" sumtext="검체명"/>
- <Column id="spcabbr" type="STRING" size="256" sumtext="검체약어"/>
- <Column id="reprspccd" type="STRING" size="256" sumtext="대표검체코드"/>
- <Column id="reprspcnm" type="STRING" size="256" sumtext="대표검체명"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * File Name : SPLPC02200_검체코드팝업.xfdl
- * Creator :
- * Make Date : 2014-03-11
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LPZ001.xjs";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /**********************************************************************************
- * Name : lf_ExeInitialize
- * Description : 초기화 Function
- * Argument : null
- * return Type : null
- * Author : Autumn
- **********************************************************************************/
- function lf_ExeInitialize()
- {
- dsf_createDs("ds_rslt_spccdlist");
- lf_GetRefData();
- }
- /**********************************************************************************
- * Name : lf_GetRefData
- * Description : 기초코드조회
- * Argument : null
- * return Type : null
- * Author : Autumn
- **********************************************************************************/
- function lf_GetRefData()
- {
- var sInstCd = sysf_getUserInfo("dutplcecd");
- var sSpcNm = div_biz.edt_spcnm.value;
- var sInDsName = "";
- // plgv_sScrnFlagCd
- // BASE : 대표검체만 조회
- // ACPT : 대표검체별 세부검체만 조회
-
- if (ds_hidden_scrndata.getColumn(0,"scrnflagcd") == "BASE"){
- sInDsName = dsf_createDsRow("ds_temp_search", [{col: "instcd" , val: sInstCd }
- , {col: "spccd" , val: "" }
- , {col: "spcnm" , val: sSpcNm }
- , {col: "spcflagcd", val: "0" }
- , {col: "delflagcd", val: "0" }
- , {col: "reprspccd", val: "" }]);
- } else if (ds_hidden_scrndata.getColumn(0,"scrnflagcd") == "ACPT"){
- sInDsName = dsf_createDsRow("ds_temp_search", [{col: "instcd" , val: sInstCd }
- , {col: "spccd" , val: "" }
- , {col: "spcnm" , val: sSpcNm }
- , {col: "spcflagcd", val: "1" }
- , {col: "delflagcd", val: "0" }
- , {col: "reprspccd", val: opener.ds_hidden_scrndata.getColumn(0,"reprspccd")}]);
- }
- tranf_submit({
- id: "TRLPC02201"
- , service: "plgycomnusemngtapp.BaseInfoCode"
- , method: "reqGetSpecimenCodeList"
- , inds : "refData="+sInDsName
- , outds: "ds_rslt_spccdlist=spccdlistinfo"
- , callback: "cbf_SPLPC02200"
- , async: false
- });
- div_biz.grd_spccdlist.binddataset = ds_rslt_spccdlist;
- }
- /**********************************************************************************
- * Name : cbf_SPLPC02200
- * Description : 콜백함수.
- * Argument : string:strSvcID, string:nErrorCode, string:strErrorMag
- * return Type : Null
- * Author : Autumn
- **********************************************************************************/
- function cbf_SPLPC02200(strSvcID, nErrorCode, strErrorMag){
- if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SPMPJ01500
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면로드
- ****************************************************************************************/
- function SPLPC02200_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
- ds_hidden_scrndata.copyData(arg_ds_hidden_scrndata);
- lf_ExeInitialize();
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_close
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면닫기
- ****************************************************************************************/
- function div_biz_btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- /****************************************************************************************
- * Components :
- * Components ID : div_biz
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 검체코드선택
- ****************************************************************************************/
- function div_biz_grd_spccdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var row = opener.ds_spcinfo.rowposition;
- //ds_hidden_scrndata.rowposition
- //var row = ds_rslt_choispclist.rowposition;
- opener.ds_spcinfo.setColumn(row,"reprspccd", ds_rslt_spccdlist.getColumn(e.row,"spccd"));
- //opener.ds_spcinfo.setColumn(row,"slidno", "0");
- opener.ds_spcinfo.setColumn(row,"reprspcnm", ds_rslt_spccdlist.getColumn(e.row,"spcnm"));
- this.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)
- {
- //var row = opener.ds_rslt_choispclist.rowposition;
- var row = ds_rslt_choispclist.rowposition;
- //trace("row="+row);
- opener.ds_rslt_choispclist.setColumn(row,"reprspccd", ds_rslt_spccdlist.getColumn(ds_rslt_spccdlist.rowposition,"spccd"));
- opener.ds_rslt_choispclist.setColumn(row,"slidno", "0");
- opener.ds_rslt_choispclist.setColumn(row,"reprspcnm", ds_rslt_spccdlist.getColumn(ds_rslt_spccdlist.rowposition,"spcnm"));
- //this.close();
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_syts
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 기초코드조회
- ****************************************************************************************/
- function div_biz_btn_syts_ref_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_GetRefData();
- }
- /****************************************************************************************
- * Components :
- * Components ID : edt_spcnm
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 기초코드조회
- ****************************************************************************************/
- function div_biz_edt_spcnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode==13) lf_GetRefData();
- }
- function div_biz_btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|