123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPASI04000" position="absolute 0 0 579 349" titletext="결핵 진단코드 조회" onload="SPASI04000_onload">
- <Layouts>
- <Layout>
- <Grid position="absolute 1 78 577 314" id="grd_diagcdlist" binddataset="ds_grid_grd_diagcdlist" positiontype="position" oncelldblclick="grd_diagcdlist_oncelldblclick" autofittype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="100"/>
- <Column size="222"/>
- <Column size="222"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="진단코드"/>
- <Cell col="2" text="영문명"/>
- <Cell col="3" text="한글명"/>
- <Cell col="4" text="caption1"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" style="align:left;" text="bind:dispdiagcd"/>
- <Cell col="2" style="align:left;" text="bind:engnm"/>
- <Cell col="3" style="align:left;" text="bind:hngnm"/>
- <Cell col="4" text="bind:termcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="결핵진단코드 [A150~A199 , U880(다제내성결핵)]" position="absolute -1 319 332 336" id="caption24" class="tit_2" positiontype="position" style="color:#003366ff;"/>
- <Static id="stt_titleText" class="tit_1" position="absolute 1 1 129 26" text="진단코드조회"/>
- <Div id="group2" taborder="2" style="align:center top;" class="div_SA" position="absolute 1 26 577 68">
- <Layouts>
- <Layout width="576" height="42">
- <Button id="btn_search" taborder="6" text="조회" onclick="group2_btn_search_onclick" class="btn1" position="absolute 508 12 564 32" anchor="default"/>
- <Edit id="ipt_search" taborder="7" imemode="hangul" class="input_search" position="absolute 173 12 483 32" anchor="default" onkeydown="group2_ipt_search_onkeydown"/>
- <Radio id="radio1" taborder="9" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 8 12 172 32" anchor="default" index="0" value="A" onitemchanged="group2_radio1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">C</Col>
- <Col id="datacolumn">코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">W</Col>
- <Col id="datacolumn">단어</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Button id="button10" taborder="3" text="선택" onclick="button10_onclick" class="btn4" position="absolute 461 319 517 339"/>
- <Button id="button9" taborder="4" text="닫기" class="btn4" position="absolute 520 319 576 339" onclick="Button00_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_diagcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dispdiagcd" type="STRING"/>
- <Column id="engnm" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="termcd" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_cond_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="reqflag" type="STRING" size="256"/>
- <Column id="reqdata" type="STRING" size="256"/>
- <Column id="srchflag" type="STRING" size="256"/>
- <Column id="wordflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind/>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-06-04
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-06-04 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /********************************************************************************
- * 설 명 : 조회
- * argument :
- ********************************************************************************/
- function lf_fReqDiagCD(){
- ds_cond_req.clearData();
- ds_cond_req.addRow();
-
- var reqdata = group2.ipt_search.value; // 검색어
-
- if(!utlf_isNull(reqdata)){ // 검색어가 있는 경우
- if(reqdata.charCodeAt(0) > 255){
- ds_cond_req.setColumn(0, "wordflag", "H"); // 단어 조회시 한글 모드
- }else{
- ds_cond_req.setColumn(0, "wordflag", "E"); // 단어 조회시 영어 모드
- reqdata = reqdata.toUpperCase();
- }
- }
- ds_cond_req.setColumn(0, "reqdata", reqdata);
- ds_cond_req.setColumn(0, "reqflag", "");
- ds_cond_req.setColumn(0, "srchflag", group2.radio1.value);
-
- var objParam = new Object();
- objParam.id = "TRASI04001";
- objParam.service = "infcmngtapp.LglyDisMngt";
- objParam.method = "reqGetTbLglyDiag";
- objParam.inds = "req=ds_cond_req";
- objParam.outds ="ds_grid_grd_diagcdlist=info";
- objParam.callback = "cbf_TRASI04001";
- tranf_submit(objParam);
- }
- function cbf_TRASI04001(strSvcID, nErrorCode, strErrorMsg){
- //에러 처리
- if(nErrorCode != 0){
- sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- }else{
- ds_grid_grd_diagcdlist.rowposition = -1 ;
- }
- }
- function SPASI04000_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
-
- lf_fReqDiagCD(); // 조회
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var srchStr = group2.ipt_search.value; // 검색어
-
- if(utlf_isNull(srchStr) ){
- sysf_messageBox("검색어를 ", "C001");
- return;
- }else if(utlf_getStringLength(srchStr) < 3 ){
- sysf_messageBox("2글자 이상 ", "C001");
- return;
- }else{
- lf_fReqDiagCD(); // 조회
- }
- }
- function button10_onclick(obj:Button, e:ClickEventInfo)
- {
- var iRow = ds_grid_grd_diagcdlist.rowposition;
-
- var cd = ds_grid_grd_diagcdlist.getColumn(iRow, "termcd"); // 진단코드
- var nm = ds_grid_grd_diagcdlist.getColumn(iRow, "hngnm"); // 진단명
-
- opener.frmf_setParameter("SPASI01800_diagcd", cd); //진단코드
- opener.frmf_setParameter("SPASI01800_diagnm", nm); //진단명
- close();
- }
- function grd_diagcdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- button10.click();
- }
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- close();
- }
- function group2_ipt_search_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == '13'){
- group2.btn_search.click();
- }
- }
- function group2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- group2.ipt_search.setFocus();
- }
- ]]></Script>
- </Form>
- </FDL>
|