123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAHR00400" position="absolute 0 0 518 489" titletext="결과예문선택" onload="SPAHR00400_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 517 460" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 517 40" align="align:center top;" id="group2" class="div_SA2" anchor="default">
- <Layouts>
- <Layout>
- <Edit position="absolute 230 10 420 29" id="ipt_rsltexmpnm" class="input_search" anchor="default" onkeyup="group3_group2_ipt_rsltexmpnm_onkeyup"/>
- <Edit position="absolute 67 10 157 29" id="ipt_rsltexmpcd" class="input_search" anchor="default" onkeyup="group3_group2_ipt_rsltexmpcd_onkeyup"/>
- <Shape position="absolute 430 9 436 31" linetype="vertical" id="line13" anchor="default"/>
- <Static text="내용 :" position="absolute 170 11 235 28" id="caption1" class="search_name" anchor="default"/>
- <Static text="코드 :" position="absolute 8 11 72 28" id="caption2" class="search_name" anchor="default"/>
- <Button position="absolute 447 9 503 31" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group3_group2_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 40 517 46" id="line1" class="line_10" anchor="default"/>
- <Grid position="absolute 0 45 517 460" id="grd_exmplst" binddataset="ds_main_rsltexmpcdlst_item" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="56"/>
- <Column size="382"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="V"/>
- <Cell col="2" text="예문코드"/>
- <Cell col="3" text="결과예문내용"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel"/>
- <Cell col="2" text="bind:rsltexmpcd"/>
- <Cell col="3" text="bind:rsltexmpcnts"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 458 517 485" id="grp_btn" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 402 5 458 27" id="btn_confirm" class="btn4" text="확인" anchor="default" onclick="grp_btn_btn_confirm_onclick"/>
- <Button position="absolute 461 5 517 27" id="btn_cancel" class="btn4" text="취소" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hidden"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchrsltexmpcd" type="STRING" size="256"/>
- <Column id="srchrsltexmpcnts" type="STRING" size="256"/>
- <Column id="srchinstcd" type="STRING" size="256"/>
- <Column id="srchhealexamflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchrsltexmpcd"/>
- <Col id="srchrsltexmpcnts"/>
- <Col id="srchinstcd"/>
- <Col id="srchhealexamflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_rsltexmpcdlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="sel" type="STRING" size="256"/>
- <Column id="rsltexmpcd" type="STRING" size="256"/>
- <Column id="rsltexmpcnts" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sel"/>
- <Col id="rsltexmpcd"/>
- <Col id="rsltexmpcnts"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="temp" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="init" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="init"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.ipt_rsltexmpnm" propid="value" datasetid="ds_send" columnid="srchrsltexmpcnts"/>
- <BindItem id="item1" compid="group3.group2.ipt_rsltexmpcd" propid="value" datasetid="ds_send" columnid="srchrsltexmpcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-12-04
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_healexamxp::AHA001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- /**
- * SPAHR00400_PARAM1: 다중선택여부(Y_N)
- * SPAHR00400_PARAM2: 목적노드Set
- * SPAHR00400_PARAM3: 코드 목적노드
- * SPAHR00400_PARAM4: 내용 목적노드
- * SPAHR00400_PARAM5: 검색코드
- * SPAHR00400_PARAM6: 검색내용
- * SPAHR00400_PARAM7: 건진구분
- */
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 초기화
- ****************************************************************************************/
- function fInit() {
- if( frmf_checkOpener() ){
- ds_send.setColumn( 0, "srchrsltexmpcd" ,opener.frmf_getParameter("SPAHR00400_PARAM5"));
- ds_send.setColumn( 0, "srchrsltexmpcnts" ,opener.frmf_getParameter("SPAHR00400_PARAM6"));
- ds_send.setColumn( 0, "srchhealexamflag" ,opener.frmf_getParameter("SPAHR00400_PARAM7"));
- if( utlf_isNull(ds_send.getColumn(0, "srchrsltexmpcd")) && utlf_isNull(ds_send.getColumn(0, "srchrsltexmpcnts")) ) {
- return ;
- }
- }
- fGetRsltExmpList();
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 결과예문(소견) 조회
- ****************************************************************************************/
- function fGetRsltExmpList(){
- ds_main_rsltexmpcdlst_item.clearData();
-
- ds_send.setColumn( 0, "srchinstcd", sysf_getUserInfo("dutplceinstcd"));
- var oParam = {};
- oParam.id = "TRAHB00701";
- oParam.service = "healexambaseapp.RexmCode";
- oParam.method = "reqGetRexmCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsltexmpcdlst_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAHB00701";
- tranf_submit(oParam);
- }
- function cf_TRAHB00701(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- dsf_setFixVal(ds_main_rsltexmpcdlst_item, "sel:N");
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 선택 결과문구 set(사용안함 미전환)
- ****************************************************************************************/
- function fSetData(){
- if( frmf_checkOpener() ){
- var vDestNodeSet = opener.javascript.frmf_getParameter("SPAHR00400_PARAM2"); //목적노드Set
- var vDestNodeCd = opener.javascript.frmf_getParameter("SPAHR00400_PARAM3"); //코드 목적노드
- var vDestNodeNm = opener.javascript.frmf_getParameter("SPAHR00400_PARAM4"); //내용 목적노드
- var vMulti = opener.javascript.frmf_getParameter("SPAHR00400_PARAM1");// 다중선택여부(Y_N)
- if( vMulti == "N" ){
- var idx = group3.grd_exmplst.row;
- if( idx < 1) return ;
- opener.model.setValue(vDestNodeCd , group3.grd_exmplst.valueMatrix(idx, 1)) ;
- opener.model.setValue(vDestNodeNm , group3.grd_exmplst.valueMatrix(idx, 2)) ;
- }
- else {
- var nodeList = instance1.selectNodes(group3.grd_exmplst.nodeset + "[sel='Y']");
- var rCSV = getNodeListCSV(nodeList);
- dsf_setCSVToDs("ds_temp", rCSV);
- copyNodeListType(vDestNodeSet, "ds_temp_list", "replace", opener.model , model);
- }
- dsf_makeValue( opener.ds_temp, "okflag", "string", "" );
- opener.ds_temp.setColumn( 0, "okflag", "ok");
- }
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAHR00400_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- grdf_setGridSort(group3.grd_exmplst);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fInit();
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 조회조건 입력 후 조회
- ****************************************************************************************/
- function group3_group2_ipt_rsltexmpnm_onkeyup(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- group3.group2.btn_search.click();
- }
- }
- function group3_group2_ipt_rsltexmpcd_onkeyup(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- group3.group2.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fGetRsltExmpList();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 확인
- ****************************************************************************************/
- function grp_btn_btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
- var idx = ds_main_rsltexmpcdlst_item.rowposition;
- dsf_makeValue( opener.ds_temp, "okflag", "string", "" );
- dsf_makeValue( opener.ds_temp, "value", "string", ds_main_rsltexmpcdlst_item.getColumn(idx,"rsltexmpcnts") );
- dsf_makeValue( opener.ds_temp, "rsltexmpcd", "string", ds_main_rsltexmpcdlst_item.getColumn(idx,"rsltexmpcd") );
- this.close();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 닫기
- ****************************************************************************************/
- function grp_btn_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
- dsf_makeValue( opener.ds_temp, "okflag", "string", "" );
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|