123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPIZ01000" position="absolute 0 0 235 421" titletext="심사수정 사유관리" scrollbars="none" onload="SPPIZ01000_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" text="수정사유" class="tit_2" position="absolute 1 33 86 53" positiontype="position"/>
- <Grid id="grd_judgresn0127" taborder="2" useinputpanel="false" onkeydown="grd_judgresn0127_onkeydown" position="absolute 1 53 228 239" autofittype="col" anchor="left top right" binddataset="ds_grid_grd_judgresn0127" positiontype="position" oncelldblclick="grd_judgresn0127_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="45"/>
- <Column size="180"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="코드"/>
- <Cell col="1" text="사후 수정사유 명칭"/>
- </Band>
- <Band id="body">
- <Cell text="bind:cdid"/>
- <Cell col="1" text="bind:cdnm"/>
- <Cell col="2"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_judgresn0153" taborder="3" useinputpanel="false" onkeydown="grd_judgresn0153_onkeydown" position="absolute 1 53 228 239" autofittype="col" anchor="left top right" binddataset="ds_grid_grd_judgresn0153" positiontype="position" oncelldblclick="grd_judgresn0153_oncelldblclick" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="45"/>
- <Column size="180"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="코드"/>
- <Cell col="1" text="사전 수정사유 명칭"/>
- </Band>
- <Band id="body">
- <Cell text="bind:cdid"/>
- <Cell col="1" text="bind:cdnm"/>
- <Cell col="2"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption4" text="수정세부사유" class="tit_2" position="absolute 1 243 104 263" positiontype="position"/>
- <TextArea id="textarea1" taborder="4" position="absolute 1 263 228 411" style="align:left top;" anchor="all" imemode="hangul" positiontype="position" scrollbars="autovert" wordwrap="word"/>
- <Static id="caption00" text="심사수정사유관리" class="tit_1" position="absolute 1 0 178 26"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_judgresn0153" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING"/>
- <Column id="cdnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_judgresn0127" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING"/>
- <Column id="cdnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_openValue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdcls" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="adjtresndesc" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- // 화면을 초기화한다.
- function lf_Initialize() {
- // 공통코드를 조회한다.
- appf_getCodeListSubmit([{cdGrpId: "P0153", dsNm: "ds_grid_grd_judgresn0153"}], false, false, "");
- appf_getCodeListSubmit([{cdGrpId: "P0127", dsNm: "ds_grid_grd_judgresn0127"}], false, false, "");
-
- if( frmf_checkOpener () ) {
- var selectedCd = sCdid;
- var cdcls = sCdCls;
- var desc = sAdjtresndesc;
- if( cdcls == "aftin"){ //opener가 사후 입원이면 P0127
- grd_judgresn0153.visible = false;
- grd_judgresn0127.visible = true;
-
- if( !utlf_isNull(selectedCd) ) {// 기존에 선택된 사유
- for(i = 0 ; i < ds_grid_grd_judgresn0127.rowcount; i++) {
- if( selectedCd == ds_grid_grd_judgresn0127.getColumn(i, "cdid") ) {
- ds_grid_grd_judgresn0127.rowposition = i;
- i = ds_grid_grd_judgresn0127.rowcount;
- }
- }
- textarea1.value = desc;
- }
-
- }
-
- // 현재는 사후입원과 사후외래가 동일한 수정사유(같은 공통코드)를 사용하나,
- // 추후 변경될 수 있으므로 로직을 분리함
- else if(cdcls == "aftout") { //opener가 사후 외래이면 P0127
- grd_judgresn0153.visible = false;
- grd_judgresn0127.visible = true;
-
- if( !utlf_isNull(selectedCd) ) {// 기존에 선택된 사유
- for(i = 0 ; i < ds_grid_grd_judgresn0127.rowcount; i++) {
- if( selectedCd == ds_grid_grd_judgresn0127.getColumn(i, "cdid") ) {
- ds_grid_grd_judgresn0127.rowposition = i;
- i = ds_grid_grd_judgresn0127.rowcount;
- }
- }
- textarea1.value = desc;
- }
-
- }
- else { //opener가 사전이면 P0153
- grd_judgresn0153.visible = true;
- grd_judgresn0127.visible = false;
-
- if( !utlf_isNull(selectedCd) ) {// 기존에 선택된 사유
- for(i = 0 ; i < ds_grid_grd_judgresn0153.rowcount; i++) {
- if( selectedCd == ds_grid_grd_judgresn0153.getColumn(i, "cdid") ) {
- ds_grid_grd_judgresn0153.rowposition = i;
- i = ds_grid_grd_judgresn0153.rowcount;
- }
- }
- textarea1.value = desc;
- }
- }
- }
- }
-
- function SPPIZ01000_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- lf_Initialize(); // 화면을 초기화한다
-
- //그리드 정렬
- grdf_initGrid(grd_judgresn0127);
-
- }
- function grd_judgresn0153_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- // 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- if ( frmf_checkOpener()) {
- var judgresn = ds_grid_grd_judgresn0153.getColumn(e.row, "cdid");
- var adjtresndesc = textarea1.text;
-
- var objArg = new Object();
- objArg.sCdid = judgresn;
- objArg.sAdjtresndesc = adjtresndesc; //기존 심사수정사유
- this.close(objArg);
- }
- }
- function grd_judgresn0127_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- // 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- if ( frmf_checkOpener()) {
- var judgresn = ds_grid_grd_judgresn0127.getColumn(e.row, "cdid");
- var adjtresndesc = textarea1.text; //기존 심사수정사유
-
- var objArg = new Object();
- objArg.sCdid = judgresn;
- objArg.sAdjtresndesc = adjtresndesc;
- this.close(objArg);
- }
- }
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|