123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLLF10500" position="absolute 0 0 791 716" titletext="통합검체코드조회" onload="SPLLF10500_onload">
- <Layouts>
- <Layout>
- <Div id="grp_sea" taborder="2" position="absolute 1 25 787 67" anchor="left top right" class="div_SA2">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="0" text="검색" class="btn1" position="absolute 718 10 774 30" anchor="default" onclick="grp_sea_btn_search_onclick" positiontype="position"/>
- <Edit id="ipt_refflag" taborder="1" class="input_search" position="absolute 184 10 294 30" anchor="default" imemode="hangul" positiontype="position"/>
- <Combo id="cmb_srchflag" taborder="2" class="combo_search" position="absolute 81 10 181 30" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" index="1" value="2" text="검체명" positiontype="position">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">검체코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">검체명</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption4" text="검색구분" class="search_name" position="absolute 8 10 82 30" anchor="default" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_add" taborder="3" text="추가" class="btn2" position="absolute 744 70 788 90" onclick="btn_add_onclick"/>
- <Grid id="grd_spc" taborder="4" binddataset="ds_grid_grd_spc" useinputpanel="false" autofittype="col" position="absolute 2 93 788 713">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="25"/>
- <Column size="85"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2" text="검체코드"/>
- <Cell col="3" text="검체명"/>
- <Cell col="4" text="검체명(화면)"/>
- <Cell col="5" text="검체명(약어)"/>
- <Cell col="6" text="검체명(출력)"/>
- <Cell col="7" text="검체명(라벨)"/>
- <Cell col="8" text="검체유형"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" displaytype="normal" edittype="none" style="align:left middle;" text="bind:spccd"/>
- <Cell col="3" displaytype="normal" edittype="none" style="align:left middle;" text="bind:spcnm"/>
- <Cell col="4" displaytype="normal" edittype="none" style="align:left middle;" text="bind:spcscrnnm"/>
- <Cell col="5" displaytype="normal" edittype="none" style="align:left middle;" text="bind:spcabbrnm"/>
- <Cell col="6" displaytype="normal" edittype="none" style="align:left middle;" text="bind:spcprntnm"/>
- <Cell col="7" displaytype="normal" edittype="none" style="align:left middle;" text="bind:spclblnm"/>
- <Cell col="8" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:spckind" combodataset="ds_init_spckind" combocodecol="cd" combodatacol="nm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" text="통합검체코드목록" class="tit_2" position="absolute 3 5 131 21"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_spc" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- <Column id="spcnm" type="STRING"/>
- <Column id="spcscrnnm" type="STRING"/>
- <Column id="spcabbrnm" type="STRING"/>
- <Column id="spcprntnm" type="STRING"/>
- <Column id="spclblnm" type="STRING"/>
- <Column id="spckind" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_spckind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING"/>
- <Column id="nm" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd">0</Col>
- <Col id="nm">기타검체</Col>
- </Row>
- <Row>
- <Col id="cd">1</Col>
- <Col id="nm">일반검체</Col>
- </Row>
- <Row>
- <Col id="cd">2</Col>
- <Col id="nm">미생물검체</Col>
- </Row>
- <Row>
- <Col id="cd">3</Col>
- <Col id="nm">혈액용량</Col>
- </Row>
- <Row>
- <Col id="cd">4</Col>
- <Col id="nm">방사면역검체</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_grid_grd_select" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- <Column id="spcnm" type="STRING"/>
- <Column id="spcscrnnm" type="STRING"/>
- <Column id="spcabbrnm" type="STRING"/>
- <Column id="spcprntnm" type="STRING"/>
- <Column id="spclblnm" type="STRING"/>
- <Column id="spckind" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-09
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-09 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LLZ001.xjs";
- function SPLLF10500_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
- lf_getDbDeptcd("0000|");
-
- //그리드 Sort
- grdf_setGridSort(grd_spc);
- //검체리스트 조회
- lf_getSpcList();
- }
- //검색조건 없을 시 검체조회
- function lf_getSpcimen(){
- var sInDsName = dsf_createDsRow("in_ds_search"
- , [{col: "searchgbn", val: grp_sea.cmb_srchflag.value}
- , {col: "searchtext", val: grp_sea.ipt_refflag.value}
- , {col: "deptflag", val: lgv_sUserdeptflagcd}]);
-
-
- var oParam = {};
- oParam.id = "TRLLF00302";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetUnitySpcListRef";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_spc=getUnitySpcListRef";
- oParam.async = false;
- oParam.callback = "cbf_SPLLF10500";
- tranf_submit(oParam);
- }
- //검색조건 있을 시 검체조회
- function lf_getSpcList(){
- var sInDsName = dsf_createDsRow("in_ds_search"
- , [{col: "cond1", val: "1"}
- , {col: "deptflag", val: lgv_sUserdeptflagcd}]);
-
- var oParam = {};
- oParam.id = "TRLLF00301";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetUnitySpcList";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_spc=getUnitySpcList";
- oParam.async = false;
- oParam.callback = "cbf_SPLLF10500";
- tranf_submit(oParam);
- }
- //콜백함수
- function cbf_SPLLF10500(strSvcID, nErrorCode, strErrorMag){
- if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- }
- //통합검체 중 등록된 검체 검색
- function lf_checkSpccd(nRow){
- var nFindRow=0;
- nFindRow=opener.ds_grid_grd_spc.findRow("spccd",ds_grid_grd_spc.getColumn(nRow,"spccd"));
- return nFindRow;
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- close();
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if (grp_sea.ipt_refflag.value == ""){
- lf_getSpcList();
- } else {
- lf_getSpcimen();
- }
- }
- function btn_add_onclick(obj:Button, e:ClickEventInfo)
- {
- var strXML = ds_grid_grd_spc.saveXML("ds_grid_grd_spc","u");
- opener.ds_grid_grd_select.loadXML(strXML);
- btn_close_onclick();
- }
- ]]></Script>
- </Form>
- </FDL>
|