123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAHA04011" position="absolute 0 0 523 561" titletext="코드조회" oninit="SPAHA04011_oninit" onload="SPAHA04011_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" text="패키지별 주의사항 설명" class="tit_2" position="absolute 0 0 165 22"/>
- <Shape id="line1" class="line_10" position="absolute 0 16 517 22"/>
- <Grid id="grd_cautlst" taborder="1" binddataset="ds_main_cautlst_item" useinputpanel="false" position="absolute 0 21 517 531" autoenter="select" autofittype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="395"/>
- <Column size="67"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="pid"/>
- <Cell col="1" text="rsrvdd"/>
- <Cell col="2" text="caucd"/>
- <Cell col="3" text="주의사항"/>
- <Cell col="4" text="설명여부"/>
- </Band>
- <Band id="body">
- <Cell text="bind:pid"/>
- <Cell col="1" text="bind:rsrvdd"/>
- <Cell col="2" text="bind:caucd"/>
- <Cell col="3" text="bind:caucnts"/>
- <Cell col="4" displaytype="checkbox" edittype="checkbox" text="bind:qestyn" expr="expr:qestyn == 'Y' ? 1 : 0"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" taborder="2" text="취소" class="btn4" visible="false" position="absolute 341 534 397 556" onclick="button1_onclick"/>
- <Button id="btn_cfm" taborder="3" text="확인" class="btn4" position="absolute 400 534 456 556" onclick="btn_cfm_onclick"/>
- <Button id="btn_cls" taborder="4" text="닫기" class="btn4" position="absolute 459 534 515 556" onclick="btn_cls_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_cautlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_cautlst_item_oncolumnchanged">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="rsrvdd" type="STRING" size="256" sumtext="등록일"/>
- <Column id="caucd" type="STRING" size="256" sumtext="주의사항코드"/>
- <Column id="caucnts" type="STRING" size="256" sumtext="주의사항내용"/>
- <Column id="qestyn" type="STRING" size="256" sumtext="설명여부"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="pkgcd" type="STRING" size="256"/>
- <Column id="rsrvdd" type="STRING" size="256"/>
- <Column id="cautlst" type="STRING" size="256"/>
- <Column id="gndrflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="pkgcd"/>
- <Col id="rsrvdd"/>
- <Col id="cautlst"/>
- <Col id="gndrflag"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SPAHA04011_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPAHA04011_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_cautlst);
-
- ds_send.setColumn(0, "pid", opener.ds_tmp_caut.getColumn(0, "pid"));
- ds_send.setColumn(0, "pkgcd", opener.ds_tmp_caut.getColumn(0, "pkgcd"));
- ds_send.setColumn(0, "rsrvdd", opener.ds_tmp_caut.getColumn(0, "rsrvdd"));
- ds_send.setColumn(0, "gndrflag", opener.ds_tmp_caut.getColumn(0, "gndrflag"));
-
- var oParam = {};
- oParam.id = "TRAHA04017";
- oParam.service = "healthexambaseapp.CautCode";
- oParam.method = "reqGetPidCautCodeList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_cautlst_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHA04017";
- tranf_submit(oParam);
- }
- function ds_main_cautlst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "qestyn")
- {
- obj.setColumn(e.row, "qestyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_cautlst_item.applyChange();
-
- for(var i = 0; i < ds_main_cautlst_item.rowcount; i++)
- {
- ds_main_cautlst_item.updatecontrol = false;
- ds_main_cautlst_item.setRowType(i, "i");
- ds_main_cautlst_item.updatecontrol = true;
- }
-
- var oParam = {};
- oParam.id = "TXAHA00108";
- oParam.service = "healthexambaseapp.CautCode";
- oParam.method = "reqExePidCautCodeList";
- oParam.inds = "cautlst=ds_main_cautlst_item:u";
- oParam.outds = "";
- oParam.typeStr = "m";
- oParam.async = false;
- oParam.callback = "cf_TXAHA00108";
- tranf_submit(oParam);
- }
- function cf_TXAHA00108(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- this.close();
- }
- }
- function btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|