123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAVT00110" position="absolute 0 0 820 380" titletext="수술환자조회" onload="SPAVT00110_onload">
- <Layouts>
- <Layout>
- <Static text="수술환자조회" position="absolute 0 2 102 18" align="align:center middle;" id="caption2" class="tit_2"/>
- <Shape position="absolute 7 61 798 67" linetype="horizontal" id="line3" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
- <Button position="absolute 678 351 734 373" id="btn_cfm" class="btn4" text="확인" onclick="btn_cfm_onclick"/>
- <Button position="absolute 735 351 791 373" id="btn_can" class="btn4" text="취소" onclick="btn_can_onclick"/>
- <Grid position="absolute 7 65 798 344" id="grd_srchlist" binddataset="ds_main_oplist_item" oncelldblclick="grd_srchlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="230"/>
- <Column size="230"/>
- <Column size="70"/>
- </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="수술방"/>
- </Band>
- <Band id="body">
- <Cell style="align:center middle;" text="bind:pid"/>
- <Cell col="1" style="align:center middle;" text="bind:hngnm"/>
- <Cell col="2" displaytype="date" style="align:center middle;" text="bind:opdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="3" style="align:left middle;" text="bind:diagengnm"/>
- <Cell col="4" style="align:left middle;" text="bind:opengnm"/>
- <Cell col="5" style="align:center middle;" text="bind:oproomnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp" taborder="1" position="absolute 5 21 800 56" class="div_SA2">
- <Layouts>
- <Layout>
- <Static id="caption3" text="등록번호 :" class="search_name" position="absolute 341 9 417 26" anchor="default"/>
- <Shape id="line1" linetype="vertical" position="absolute 712 7 718 29" anchor="default"/>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 727 7 783 29" anchor="default" onclick="grp_btn_search_onclick"/>
- <Static id="caption1" text="기 간 :" class="search_name" position="absolute 16 9 92 26" anchor="default"/>
- <Edit id="ipt_srchpid" taborder="2" class="input_search" position="absolute 422 8 528 27" anchor="default" onkeydown="grp_ipt_srchpid_onkeydown"/>
- <Calendar id="ipt_srchfromdd" taborder="3" class="input_essential" position="absolute 93 8 193 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Static id="lbl_~" text="~" class="search_no_b" position="absolute 198 9 208 26" anchor="default"/>
- <Calendar id="ipt_srchtodd" taborder="4" class="input_essential" position="absolute 213 8 313 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
- <Edit id="input1" taborder="5" class="input_search" position="absolute 530 8 636 27" anchor="default" onkeydown="grp_input1_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchfromdd" type="STRING" size="256"/>
- <Column id="srchtodd" type="STRING" size="256"/>
- <Column id="srchpid" type="STRING" size="256"/>
- <Column id="srchhngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchfromdd"/>
- <Col id="srchtodd"/>
- <Col id="srchpid"/>
- <Col id="srchhngnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_oplist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="등록정보"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호1"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="telno" type="STRING" size="256" sumtext="전화번호"/>
- <Column id="abo" type="STRING" size="256" sumtext="혈액형 ABO"/>
- <Column id="rh" type="STRING" size="256" sumtext="혈액형 RH"/>
- <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호1"/>
- <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호2"/>
- <Column id="zipcdseq" type="STRING" size="256" sumtext="우편번호 SEQ"/>
- <Column id="addr" type="STRING" size="256" sumtext="주소1"/>
- <Column id="address" type="STRING" size="256" sumtext="주소2"/>
- <Column id="opdd" type="STRING" size="256" sumtext="수술일자"/>
- <Column id="diagcd" type="STRING" size="256" sumtext="진단코드"/>
- <Column id="diaghngnm" type="STRING" size="256" sumtext="진단한글명"/>
- <Column id="diagengnm" type="STRING" size="256" sumtext="진단영문명"/>
- <Column id="opcd" type="STRING" size="256" sumtext="수술코드"/>
- <Column id="ophngnm" type="STRING" size="256" sumtext="수술한글명"/>
- <Column id="opengnm" type="STRING" size="256" sumtext="수술영문명"/>
- <Column id="opsdd" type="STRING" size="256" sumtext="수술시작일자"/>
- <Column id="opstm" type="STRING" size="256" sumtext="수술시작시간"/>
- <Column id="opedd" type="STRING" size="256" sumtext="수술종료일자"/>
- <Column id="opetm" type="STRING" size="256" sumtext="수술종료시간"/>
- <Column id="oproomcd" type="STRING" size="256" sumtext="수술방코드"/>
- <Column id="oproomnm" type="STRING" size="256" sumtext="수술방명"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="depthngnm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="perfdrid" type="STRING" size="256" sumtext="수술의ID"/>
- <Column id="usernm" type="STRING" size="256" sumtext="수술의명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp.ipt_srchfromdd" propid="value" datasetid="ds_send_srch" columnid="srchfromdd"/>
- <BindItem id="item1" compid="grp.ipt_srchtodd" propid="value" datasetid="ds_send_srch" columnid="srchtodd"/>
- <BindItem id="item2" compid="grp.ipt_srchpid" propid="value" datasetid="ds_send_srch" columnid="srchpid"/>
- <BindItem id="item3" compid="grp.input1" propid="value" datasetid="ds_send_srch" columnid="srchhngnm"/>
- </Bind>
- <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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /**
- * [request description]
- * @return {[type]} [description]
- */
- function request() {
- ds_main_oplist_item.clearData();
- var oParam = {};
- oParam.id = "TRAVT00103";
- oParam.service = "tissuebankapp.TissueBankProcess";
- oParam.method = "reqGetTissueBankOpList";
- oParam.inds = "req=ds_send_srch";
- oParam.outds = "ds_main_oplist_item=item";
- oParam.async = false;
- tranf_submit(oParam);
- }
- /**
- * [fSetOpener description]
- * @return {[type]} [description]
- */
- function fSetOpener() {
- if (frmf_checkOpener()) {
- opener.ds_temp.setColumn(0, "okflag", "ok");
- var idx = grd_srchlist.currentrow;
- // Opener Node에 복사
- dsf_copyColInfo(opener.ds_temp_templst_item, ds_main_oplist_item);;
- opener.ds_temp_templst_item.copyRow(opener.ds_temp_templst_item.addRow(), ds_main_oplist_item, idx);
- //trace(opener.ds_temp_templst_item.saveXML());
-
- this.close();
- }
- }
- /**
- * submit 후 호출 될 공통 콜백
- * @param {[type]} sSvcId [description]
- * @param {[type]} nErrorCode [description]
- * @param {[type]} sErrorMsg [description]
- * @return {Function} [description]
- */
- function callback(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /**
- * onload 이벤트 발생 시 호출
- * @param {[type]} obj:Form [description]
- * @param {[type]} e:LoadEventInfo [description]
- */
- function SPAVT00110_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
-
- // 일자 setting
- var curDD = utlf_getCurrentDate();
-
- ds_send_srch.setColumn(0, "srchfromdd", curDD); // 조회시작일자
- ds_send_srch.setColumn(0, "srchtodd", curDD); // 조회종료일자
- // 검색조건 설정
- var vpid = opener.frmf_getParameter("SPAVT00110_PID");
- ds_send_srch.setColumn(0, "srchpid", vpid);
- // 자동조회
- request();
- }
- /**
- * 등록번호 키보드 입력 이벤트
- * @param {[type]} obj: Edit [description]
- * @param {[type]} e: KeyEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_ipt_srchpid_onkeydown(obj: Edit, e: KeyEventInfo) {
- if (e.keycode == 13) {
- grp.btn_search.click();
- }
- }
- /**
- * 등록번호 키보드 입력 이벤트
- * @param {[type]} obj: Edit [description]
- * @param {[type]} e: KeyEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_input1_onkeydown(obj: Edit, e: KeyEventInfo) {
- if (e.keycode == 13) {
- grp.btn_search.click();
- }
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_btn_search_onclick(obj: Button, e: ClickEventInfo) {
- request();
- }
- /**
- * 그리드 셀 더블클릭 이벤트
- * @param {[type]} obj: Grid [description]
- * @param {[type]} e: GridClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grd_srchlist_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
- fSetOpener();
- }
- /**
- * 확인 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_cfm_onclick(obj: Button, e: ClickEventInfo) {
- fSetOpener();
- }
- /**
- * 취소 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_can_onclick(obj: Button, e: ClickEventInfo) {
- if (frmf_checkOpener()) {
- opener.ds_temp.setColumn(0, "okflag", "");
- }
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|