123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPMI03500" position="absolute 0 0 592 411" titletext="선택신청서명 - 확인" onload="SPPMI03500_onload">
- <Layouts>
- <Layout>
- <Static id="caption26" text="선택신청서명 - 확인" class="tit_1" position="absolute 0 0 160 25"/>
- <Static id="caption1" text="선택서명리스트 submit("TRPMI00121"); " class="tit_2" position="absolute 0 30 118 46"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 46 587 52" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="grd_patappinfo" taborder="1" binddataset="ds_main_patappinfo" useinputpanel="false" position="absolute 0 51 587 368" autofittype="col" oncelldblclick="grd_patappinfo_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="84"/>
- <Column size="99"/>
- <Column size="132"/>
- <Column size="100"/>
- <Column size="54"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="환자번호"/>
- <Cell col="1" text="입원희망일"/>
- <Cell col="2" text="진료과"/>
- <Cell col="3" text="진료의"/>
- <Cell col="4" text="선택여부"/>
- <Cell col="5" text="선택신청일"/>
- <Cell col="6" text="예약일"/>
- <Cell col="7" text="fromdd"/>
- </Band>
- <Band id="body">
- <Cell style="align:center middle;" text="bind:pid"/>
- <Cell col="1" displaytype="date" edittype="date" style="align:center middle;" text="bind:orddd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:orddeptcd" combodataset="ds_init_orddeptcd" combocodecol="cd" combodatacol="nm"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:orddrid" combodataset="ds_init_orddrid" combocodecol="cd" combodatacol="nm"/>
- <Cell col="4" displaytype="normal" style="align:center middle;" text="bind:specordyn"/>
- <Cell col="5" displaytype="date" edittype="date" style="align:center middle;" text="bind:elctappdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="6" displaytype="date" edittype="date" text="bind:rsrvdd"/>
- <Cell col="7" displaytype="date" edittype="date" text="bind:fromdd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_confirm" taborder="2" text="수정" class="btn4" position="absolute 473 376 529 398" onclick="btn_confirm_onclick"/>
- <Button id="btn_cancel" taborder="3" text="닫기" class="btn4" position="absolute 531 376 587 398" onclick="btn_cancel_onclick"/>
- <Shape id="line32" linetype="horizontal" class="line_6" position="absolute 0 367 587 373"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_patappinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
- <Column id="orddd" type="STRING" size="256" sumtext="입원일"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의"/>
- <Column id="specordyn" type="STRING" size="256" sumtext="선택여부"/>
- <Column id="elctappdd" type="STRING" size="256" sumtext="신청일"/>
- <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_P0018list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_P0032list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_P0059list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_P0002list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="nm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="deptengabbr" type="STRING" size="256" sumtext="영문약어"/>
- <Column id="deptengabbr2" type="STRING" size="256" sumtext="영문약어"/>
- <Column id="reqdeptno" type="STRING" size="256" sumtext="과번호"/>
- <Column id="orddeptflag" type="STRING" size="256" sumtext="처방사용구분"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256" sumtext="진료의사ID"/>
- <Column id="nm" type="STRING" size="256" sumtext="진료의사명"/>
- <Column id="dp" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="sp" type="STRING" size="256" sumtext="선택진료"/>
- <Column id="nmspecyn" type="STRING" size="256" sumtext="이름 선택진료여부"/>
- <Column id="drengabbr" type="STRING" size="256" sumtext="의사영문약어"/>
- <Column id="jobposcd" type="STRING" size="256" sumtext="직위"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_patappinfo_patappinfo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description :
- ****************************************************************************************/
- //=======================================================================================
- // callback
- //---------------------------------------------------------------------------------------
- function callback(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description : onload
- ****************************************************************************************/
- function SPPMI03500_onload(obj:Form, e:LoadEventInfo){
- // 폼 초기화
- frmf_initForm(obj);
-
- try{
- ds_send_patappinfo_patappinfo1.copyData(arg_ds_send_patappinfo_patappinfo1);
- }catch(e){}
-
- // 선택진료신청서 출력시 코드에 맞게 출력하기 위해 원무공통코드조회
- pamfGetCodeList([
- { dsNm: 'ds_init_P0018list', cdGrpId: 'P0018' },
- { dsNm: 'ds_init_P0059list', cdGrpId: 'P0059' },
- { dsNm: 'ds_init_P0032list', cdGrpId: 'P0032' }
- ]);
-
- // 공통코드조회
- appf_getCodeList([{ dsNm: 'ds_init_P0002list', cdGrpId: 'P0002' }]);
-
- ds_init_orddeptcd.addRow();
- ds_init_orddrid.addRow();
-
- dsf_createDsRow('ds_req', [
- { col: 'sess_posinstcd', type: 'string', size: 256, val: '' },
- { col: 'ioflag', type: 'string', size: 256, val: '' },
- { col: 'dridsorttype', type: 'string', size: 256, val: '' }
- ], false);
-
- // 기본사항조회(진료과,진료의등등)
- var oParam = {};
- oParam.id = "TRPMI00106";
- oParam.service = "pamcomnapp.PamComn";
- oParam.method = "reqGetComCD";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_orddeptcd=orddeptcd ds_init_orddrid=orddrid";
- oParam.async = false;
- //oParam.callback = "cf_TRPMI00106";
-
- tranf_submit(oParam);
-
- dsf_createDsRow('ds_send', [
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'ordtype', type: 'string', size: 256, val: '' },
- { col: 'orddd', type: 'string', size: 256, val: '' },
- { col: 'orddeptcd', type: 'string', size: 256, val: '' },
- { col: 'orddrid', type: 'string', size: 256, val: '' },
- { col: 'specordyn', type: 'string', size: 256, val: '' },
- { col: 'fromdd', type: 'string', size: 256, val: '' },
- { col: 'flag', type: 'string', size: 256, val: '' }
- ], false);
-
- ds_main_patappinfo.clearData();
- ds_main_patappinfo.addRow();
-
- if(ds_send_patappinfo_patappinfo1.rowcount > 0) {
- ds_send.copyData(ds_send_patappinfo_patappinfo1);
- }
-
- oParam = {};
- oParam.id = "TRPMI00121";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqGetSpecOrdInInfolist";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_patappinfo=infolist";
- oParam.async = false;
- //oParam.callback = "cf_TRPMI00121";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Argument :
- * Description : 그리드 셀 더블 클릭 이벤트
- ****************************************************************************************/
- function grd_patappinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo){
- btn_confirm.onclick();
- }
- /****************************************************************************************
- * Argument :
- * Description : 수정 버튼 클릭 클릭 이벤트
- ****************************************************************************************/
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo){
- var row = grd_patappinfo.currentrow;
-
- if(row >= 0){
- dsf_createDsRow('ds_req', [
- { col: 'pid', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'pid') },
- { col: 'orddd', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'orddd') },
- { col: 'orddeptcd', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'orddeptcd') },
- { col: 'orddrid', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'orddrid') },
- { col: 'specordyn', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'specordyn') },
- { col: 'elctappdd', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'elctappdd') },
- { col: 'rsrvdd', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'rsrvdd') },
- { col: 'fromdd', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'fromdd') },
- { col: 'ordtype', type: 'string', size: 256, val: 'I' }
- ], false);
-
- var oParam = {};
- oParam.id = "TXPMI00107";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqSetSpecOrddd";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_=result";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TXPMI00107") > -1){
- sysf_messageBox('선택변경', 'I002');
- }
- }
-
- this.close();
- }
- /****************************************************************************************
- * Argument :
- * Description : 수정 버튼 클릭 클릭 이벤트
- ****************************************************************************************/
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo){
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|