123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAHR00300" position="absolute 0 0 533 484" titletext="종합판정문구선택" onload="SPAHR00300_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 453 518 480" 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" onclick="grp_btn_btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 0 518 460" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 517 40" align="align:center top;" id="group2" class="div_SA2">
- <Layouts>
- <Layout>
- <Static text="코드 :" position="absolute 16 11 102 28" id="caption2" class="search_name" anchor="default"/>
- <Button position="absolute 445 9 501 31" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group3_group2_btn_search_onclick"/>
- <Shape position="absolute 426 9 432 31" linetype="vertical" id="line13" anchor="default"/>
- <Edit position="absolute 290 10 410 29" id="ipt_judgnm" class="input_search" anchor="default"/>
- <Edit position="absolute 80 10 200 29" id="ipt_judgcd" class="input_search" anchor="default" onkeyup="group3_group2_ipt_judgcd_onkeyup"/>
- <Static text="내용 :" position="absolute 215 11 301 28" id="caption1" class="search_name" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 40 517 46" id="line1" class="line_10"/>
- <Grid position="absolute 0 45 517 455" id="grd_judglst" binddataset="ds_main_judgexmpcdlst_item" cellclickbound="cell" oncelldblclick="group3_grd_judglst_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="31"/>
- <Column size="64"/>
- <Column size="200"/>
- <Column size="0"/>
- <Column size="300"/>
- <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="판정내용(영)"/>
- <Cell col="5" text="판정내용"/>
- <Cell col="6" text="caption2"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:(sel=="Y"||sel==1)?1:0"/>
- <Cell col="2" text="bind:judgexmpcd"/>
- <Cell col="3" style="align:left middle;" text="bind:judghangshrtcnts"/>
- <Cell col="4" text="bind:judgengshrtcnts"/>
- <Cell col="5" style="align:left middle;" text="bind:judghangcnts"/>
- <Cell col="6" text="bind:judgengcnts"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </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="srchjudgexmpcd" type="STRING" size="256"/>
- <Column id="srchjudgexmpcnts" type="STRING" size="256"/>
- <Column id="srchinstcd" type="STRING" size="256"/>
- <Column id="srchhealexamflag" type="STRING" size="256"/>
- <Column id="srchhealexamdetlflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchjudgexmpcd"/>
- <Col id="srchjudgexmpcnts"/>
- <Col id="srchinstcd"/>
- <Col id="srchhealexamflag"/>
- <Col id="srchhealexamdetlflag"/>
- </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_main_judgexmpcdlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_judgexmpcdlst_item_oncolumnchanged">
- <ColumnInfo>
- <Column id="sel" type="STRING" size="256"/>
- <Column id="judgexmpcd" type="STRING" size="256"/>
- <Column id="judghangshrtcnts" type="STRING" size="256"/>
- <Column id="judgengshrtcnts" type="STRING" size="256"/>
- <Column id="judghangcnts" type="STRING" size="256"/>
- <Column id="judgengcnts" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sel"/>
- <Col id="judgexmpcd"/>
- <Col id="judghangshrtcnts"/>
- <Col id="judgengshrtcnts"/>
- <Col id="judghangcnts"/>
- <Col id="judgengcnts"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_target" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="code" type="STRING" size="256"/>
- <Column id="name" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="grid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="code"/>
- <Col id="name"/>
- <Col id="flag"/>
- <Col id="grid"/>
- </Row>
- </Rows>
- </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_judgnm" propid="value" datasetid="ds_send" columnid="srchjudgexmpcnts"/>
- <BindItem id="item1" compid="group3.group2.ipt_judgcd" propid="value" datasetid="ds_send" columnid="srchjudgexmpcd"/>
- </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";
- include "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- /**
- * SPAHR00300_PARAM1: 다중선택여부(Y_N)
- * SPAHR00300_PARAM2: 목적노드Set
- * SPAHR00300_PARAM3: 종합판정문구코드 목적노드
- * SPAHR00300_PARAM4: 종합판정문구내용 목적노드
- * SPAHR00300_PARAM5: 종합판정문구검색코드
- * SPAHR00300_PARAM6: 종합판정문구검색내용
- * SPAHR00300_PARAM7: 건진구분
- * SPAHR00300_PARAM8: 공단건진 1,2차 구분
- */
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 초기화
- ****************************************************************************************/
- function fInit(){
- if( frmf_checkOpener() ){
- opener.dsf_createDs("ds_temp_SPAHR00300");
- dsf_makeValue( opener.ds_temp_SPAHR00300, "okflag", "string", "" );
- ds_send.setColumn( 0, "srchjudgexmpcd" ,opener.frmf_getParameter("SPAHR00300_PARAM5"));
- ds_send.setColumn( 0, "srchjudgexmpcnts" ,opener.frmf_getParameter("SPAHR00300_PARAM6"));
- ds_send.setColumn( 0, "srchhealexamflag" ,opener.frmf_getParameter("SPAHR00300_PARAM7"));
-
- if (opener.frmf_getParameter("SPAHR00300_PARAM7") == "G" ) {
- dsf_makeValue( ds_send, "srchjudgexmpcd", "string", opener.frmf_getParameter("SPAHR00300_PARAM8"));
- }
- var vMulti = opener.frmf_getParameter("SPAHR00300_PARAM1");// 다중선택여부(Y_N)
- if( vMulti == "N" ) group3.grd_judglst.setFormatColProperty( 1, "size", 0);
- if( utlf_isNull(ds_send.getColumn(0, "srchjudgexmpcd")) && utlf_isNull(ds_send.getColumn(0, "srchjudgexmpcnts")) ){
- return ;
- }
-
- if (ds_send.getColumn(0, "srchjudgexmpcd")>="G012") {
- misfColHidden(group3.grd_judglst, "judgengshrtcnts,judgengcnts", true);
- misfColHidden(group3.grd_judglst, "judghangcnts", false);
- group3.grd_judglst.setRealColSize(3, 80);
- } else {
- misfColHidden(group3.grd_judglst, "judghangcnts,judgengcnts", true);
- misfColHidden(group3.grd_judglst, "judgengshrtcnts", false);
- group3.grd_judglst.setRealColSize(3, 200);
- }
- }
-
- fGetJudgExmpList();
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 종합판정문구 조회
- ****************************************************************************************/
- function fGetJudgExmpList(){
- ds_main_judgexmpcdlst_item.clearData();
- ds_send.setColumn( 0, "srchinstcd", sysf_getUserInfo("dutplceinstcd"));
- var oParam = {};
- oParam.id = "TRAHB00801";
- oParam.service = "healexambaseapp.CmtCode";
- oParam.method = "reqGetCmtCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_judgexmpcdlst_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAHB00801";
- tranf_submit(oParam);
- }
- function cf_TRAHB00801(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_main_judgexmpcdlst_item.updatecontrol = false;
- dsf_setFixVal(ds_main_judgexmpcdlst_item, "sel:N");
- ds_main_judgexmpcdlst_item.updatecontrol = true;
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 선택 종합판정문구 set
- ****************************************************************************************/
- function fSetData(){
- if( frmf_checkOpener() ){
- var vDestNodeSet = opener.frmf_getParameter("SPAHR00300_PARAM2"); //목적노드Set
- var vDestNodeCd = opener.frmf_getParameter("SPAHR00300_PARAM3").split("/"); //종합판정문구코드 목적노드
- var vDestNodeNm = opener.frmf_getParameter("SPAHR00300_PARAM4").split("/"); //종합판정문구내용 목적노드
- var vMulti = opener.frmf_getParameter("SPAHR00300_PARAM1");// 다중선택여부(Y_N)
- if( vMulti == "N" ){
- var idx = ds_main_judgexmpcdlst_item.rowposition;
- if( idx < 0) return ;
- opener.objects[vDestNodeCd[0]].setColumn(parseInt(vDestNodeCd[1]), vDestNodeCd[2], ds_main_judgexmpcdlst_item.getColumn(idx, 2)) ;
- if (ds_send.getColumn(0, "srchjudgexmpcd")>="G012") {
- opener.objects[vDestNodeNm[0]].setColumn(parseInt(vDestNodeNm[1]), vDestNodeNm[2], ds_main_judgexmpcdlst_item.getColumn(idx, 5)) ;
- } else {
- opener.objects[vDestNodeNm[0]].setColumn(parseInt(vDestNodeNm[1]), vDestNodeNm[2], ds_main_judgexmpcdlst_item.getColumn(idx, 3)) ;
- }
- }
- else {
- ds_main_judgexmpcdlst_item.filter("sel=='Y'");
- opener.objects[vDestNodeSet].copyData(ds_main_judgexmpcdlst_item, true);
- ds_main_judgexmpcdlst_item.filter("");
- }
- opener.ds_temp_SPAHR00300.setColumn( 0, "okflag", "ok");
- }
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAHR00300_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- grdf_setGridSort(group3.grd_judglst);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fInit();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 확인
- ****************************************************************************************/
- function grp_btn_btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
- fSetData();
- this.close();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fGetJudgExmpList();
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 조회조건 입력 후 조회
- ****************************************************************************************/
- function group3_group2_ipt_judgcd_onkeyup(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- group3.group2.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 더블클릭시 다중선택여부가 N 이라면 해당행만 전달
- ****************************************************************************************/
- function group3_grd_judglst_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- var vMulti = opener.frmf_getParameter("SPAHR00300_PARAM1");// 다중선택여부(Y_N)
- if( vMulti == "N" ){
- fSetData();
- this.close();
- }
- }
- function ds_main_judgexmpcdlst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid=="sel") {
- obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 닫기
- ****************************************************************************************/
- function grp_btn_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|