123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPIZ01100" position="absolute 0 0 580 560" titletext="확인코드조회" oninit="model1_oninit" onload="SPPIZ01100_onload">
- <Layouts>
- <Layout>
- <Div id="group3" position="absolute 5 69 574 536" anchor="default" positiontype="position" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static id="Static00" position="absolute 0 21 562 47" class="sta_DA_box" anchor="default"/>
- <Edit id="opt_code" class="input_default" position="absolute 76 24 560 44" anchor="default" imemode="alpha" ontextchanged="group3_opt_code_ontextchanged" positiontype="position" inputmode="upper"/>
- <Static id="caption1" class="tit_2" position="absolute 0 3 126 23" anchor="default" text="확인코드" positiontype="position"/>
- <Static id="caption2" class="cell_1" position="absolute 1 22 75 46" anchor="default" text="입력코드" positiontype="position"/>
- <Shape id="line1" class="line_3" position="absolute -2 44 568 44" anchor="default" linetype="horizontal" positiontype="position"/>
- <Shape id="line2" class="line_1" position="absolute -2 15 568 15" anchor="default" linetype="horizontal" positiontype="position"/>
- <Grid id="grd_codelist" position="absolute 1 49 563 462" anchor="default" binddataset="ds_grid_grd_codelist" oncelldblclick="grd_codelist_oncelldblclick" autofittype="col" cellsizingtype="col" oncellclick="group3_grd_codelist_oncellclick" positiontype="position">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="85"/>
- <Column size="147"/>
- <Column size="279"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <Cell col="1" text="코드"/>
- <Cell col="2" text="내역"/>
- <Cell col="3" text="영문"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chos"/>
- <Cell col="1" style="align:left middle;" text="bind:cdid"/>
- <Cell col="2" style="align:left middle;" text="bind:cdnm"/>
- <Cell col="3" style="align:left middle;" text="bind:detldesc"/>
- <Cell col="4"/>
- <Cell col="5"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="Static32" text="w74" class="sta_guide" visible="false" position="absolute 36 -41 110 -11" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line13" class="line_4" position="absolute 490 6 490 29" anchor="default" positiontype="position" linetype="vertical"/>
- <Button id="button1" taborder="6" text="취소" onlbuttonup="button1_onlbuttonup" class="btn4" position="absolute 453 534 509 554" positiontype="position" onclick="button1_onclick"/>
- <Button id="button42" taborder="7" text="입력" onlbuttonup="button42_onlbuttonup" class="btn4" position="absolute 395 534 451 554" positiontype="position" onclick="button42_onclick"/>
- <Div id="group5" taborder="8" style="align:center top;" class="div_SA" position="absolute 1 27 566 69">
- <Layouts>
- <Layout>
- <Static id="caption4" text="조회구분" class="search_name" position="absolute 15 11 101 28" anchor="default" positiontype="position"/>
- <Combo id="cmb_srchcond1" taborder="1" class="combo_s_default" position="absolute 94 10 194 30" anchor="default" codecolumn="value" datacolumn="label" innerdataset="@ds_init_cmb_srchcond1" onitemchanged="group5_cmb_srchcond1_onitemchanged" positiontype="position"/>
- <Radio id="rdo_srchcond2" taborder="2" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 218 10 318 30" anchor="default" onitemchanged="group5_rdo_srchcond2_onitemchanged" 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>
- </Radio>
- <Edit id="ipt_srchcond3" taborder="3" class="input_search" position="absolute 324 10 479 30" anchor="default" imemode="alpha" onkeydown="group5_ipt_srchcond3_onkeydown" inputmode="upper" inputtype="numberandenglish" positiontype="position"/>
- <Button id="btn_search" taborder="4" text="조회" onlbuttonup="btn_search_onlbuttonup" class="btn1" position="absolute 496 10 552 30" anchor="default" onclick="btn_search_onclick" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="확인코드조회" class="tit_1" position="absolute 1 0 178 26"/>
- <Button id="btn_confirm" taborder="9" text="닫기" onlbuttonup="button1_onlbuttonup" class="btn4" position="absolute 511 534 567 554" onclick="btn_confirm_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chos" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- <Column id="cdnm" type="STRING"/>
- <Column id="detldesc" type="STRING"/>
- <Column id="srchflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_srchcond1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">전체</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label">검체</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">부위</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">진료과</Col>
- <Col id="value">3</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_rdo_srchcond2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">코드</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">내역</Col>
- <Col id="value">2</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
-
- include "com_commonxp::comm_main.xjs";
- var code = "";
- function lf_Initialize() {
- group5.cmb_srchcond1.value = 0;
- group5.rdo_srchcond2.value = 1;
-
-
- ds_grid_grd_codelist.clearData();
-
- if( frmf_checkOpener () ) {
- // opener에 설정된 확인코드를 초기 입력코드 값으로 한다.
- code = sCode;
- if( utlf_isNull(code) ) {
- group3.opt_code.value = "";
- }
- else {
- var len = code.length;
- if( len > 0 ) {
- code = "/" + code;
- group3.opt_code.value = code;
- }
- }
- }
-
- // 팝업 화면으로 사용시 기본적으로 전체 조회 상태가 된다.
- btn_search_onclick();
-
- // 확인코드가 있는 상태로 팝업창이 열리면 코드 체크된 상태로 표시
- if( !utlf_isNull( code ) ) {
- var codeArr = new Array();
- codeArr = code.split("/");
- var cdid = "";
- var reqcdid = "";
- var rowCnt = ds_grid_grd_codelist.rowcount;
-
- for(i = 0 ; i < codeArr.length ; i++) {
- reqcdid = codeArr[i];
-
- for( j = 0 ; j < rowCnt; j++) {
- cdid = ds_grid_grd_codelist.getColumn(j, "cdid") ;
- if( reqcdid == cdid ) {
- ds_grid_grd_codelist.setColumn(j, "chos", 1);
- }
- }
- }
- }
- ds_grid_grd_codelist.rowposition = -1;
- group5.cmb_srchcond1.setFocus();
- }
- function lf_SetSelectedData()
- {
- // 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- if( frmf_checkOpener()) {
- var rtnObj = new Object();
- code = group3.opt_code.value;
- var len = code.length;
- if( len > 1 ) {
- var tmp = code.substring(0, 1);
- if( tmp == "/" ) {
- code = code.substring(1, len);
- }
- rtnObj.sCode = code;
- }
- rtnObj.sExit = "Y";
- this.close(rtnObj);
- }
- else {
- sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); // 없습니다.
- this.close();
- }
-
- }
-
- function SPPIZ01100_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- lf_Initialize(); // 화면을 초기화한다.
-
- //그리드 정렬
- grdf_initGrid(group3.grd_codelist);
-
- }
- function grd_codelist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var curRow = e.row;
- if (utlf_isNull(group3.opt_code.value)) {
- code = "";
- }
- // if( ds_grid_grd_codelist.getColumn(curRow, "chos") == 0 ) {
- // code = code + "/" + ds_grid_grd_codelist.getColumn(curRow, "cdid");
- // ds_grid_grd_codelist.setColumn(curRow, "chos", 1);
- // }
- // else {
- // var rowCnt = ds_grid_grd_codelist.rowcount;
- // code = "";
- // ds_grid_grd_codelist.setColumn(curRow, "chos", 0);
- // for( i = 0 ; i < rowCnt ; i++) {
- // if( ds_grid_grd_codelist.getColumn(i, "chos") == 1 ) {
- // code += "/" + ds_grid_grd_codelist.getColumn(i, "cdid");
- // }
- // }
- // }
- group3.opt_code.value += "/" + ds_grid_grd_codelist.getColumn(curRow, "cdid");
- }
- function button42_onclick(obj:Button, e:ClickEventInfo)
- {
- // 선택된 Message를 Opener 에 전달한다.
- lf_SetSelectedData();
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- group3.opt_code.value = "";
- var rowCnt = ds_grid_grd_codelist.rowcount;
- for( i = 0 ; i < rowCnt ; i++) {
- ds_grid_grd_codelist.setColumn(i, "chos", 0);
- }
- }
- function btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grid_grd_codelist.clearData();
-
- var str = group5.ipt_srchcond3.value;
- //flag: 내역으로 검색할 때 1이면 내역(한글)으로 정렬, 2이면 내역(영문)으로 정렬
- if( !utlf_isNull(str) ) {
- if( !utlf_isAlphabet( str.substring(0, 1) ) ) { //첫 글자가 영문이 아닐 때
- var flag = 1;
- }
- else {
- var flag = 2;
- }
- }
- else {
- var flag = "";
- }
-
- // TRPIZ01101
- var sInDs = dsf_createDsRow("ds_cond_TRPZZ00102"
- , [{col: "srchcond1", val: group5.rdo_srchcond2.value }
- , {col: "srchcond2", val: group5.ipt_srchcond3.value }
- , {col: "srchflag", val: group5.cmb_srchcond1.value }
- , {col: "flag" , val: flag}
- ]);
- var oParam = {};
- oParam.id = "TRPIZ01101";
- oParam.service = "insucomapp.CnfmCdSrch";
- oParam.method = "reqGetCnfmCdSrchList";
- oParam.inds = "req="+sInDs;
- oParam.outds = "ds_grid_grd_codelist=cnfmcdlist";
- oParam.async = false;
- oParam.callback = "cf_TRPIZ01101";
- tranf_submit(oParam);
- }
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function group5_cmb_srchcond1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- btn_search_onclick();
- }
- function group5_ipt_srchcond3_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ) {
- btn_search_onclick();
- }
- }
- function group3_opt_code_ontextchanged(obj:Edit, e:TextChangedEventInfo)
- {
- code = obj.value;
- }
- function group3_grd_codelist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.col == 0 ) {
- var curRow = e.row;
- if( ds_grid_grd_codelist.getColumn(curRow, "chos") == 0) {
- ds_grid_grd_codelist.setColumn(curRow, "chos", 0);
- }
- else {
- ds_grid_grd_codelist.setColumn(curRow, "chos", 1);
- }
-
- var rowCnt = ds_grid_grd_codelist.rowcount;
- code = "";
- for( i = 0 ; i < rowCnt ; i++) {
- if( ds_grid_grd_codelist.getColumn(i, "chos") == 1 ) {
- code += "/" + ds_grid_grd_codelist.getColumn(i, "cdid");
- }
- }
-
- group3.opt_code.value = code ;
- }
- }
- function cf_TRPIZ01101(aSvcId, nErrorCode, sErrorMsg) {
- if( nErrorCode < 0 ) {
- alert( sErrorMsg );
- }
- else {
- var rowCnt = ds_grid_grd_codelist.rowcount;
-
- ds_grid_grd_codelist.updatecontrol = false;
- for( i = 0 ; i < rowCnt ; i++) {
- if( ds_grid_grd_codelist.getColumn(i, "chos") == "true" ) {
- ds_grid_grd_codelist.setColumn(i, "chos", 1);
- }
- else {
- ds_grid_grd_codelist.setColumn(i, "chos", 0);
- }
- }
- ds_grid_grd_codelist.updatecontrol = true;
- }
- }
- function group5_rdo_srchcond2_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- switch(obj.value) {
- case "2" : //내역
- group5.ipt_srchcond3.imemode = "hangul"; //기본입력방식
- group5.ipt_srchcond3.inputmode = "normal"; //대소문자구분
- group5.ipt_srchcond3.inputtype = "normal"; //입력문자종류
- group5.ipt_srchcond3.value = "";
- break;
-
- case "1" : //코드
- default:
- group5.ipt_srchcond3.imemode = "alpha"; //기본입력방식
- group5.ipt_srchcond3.inputmode = "upper"; //대소문자구분
- group5.ipt_srchcond3.inputtype = "numberandenglish"; //입력문자종류
- group5.ipt_srchcond3.value = "";
- break;
- }
- }
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|