123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEA08000" position="absolute 0 0 1192 777" titletext="외래 초음파 예약현황조회" onload="SMAEA08000_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="외래 초음파 예약현황조회" class="tit_1" position="absolute 0 0 180 25"/>
- <Div id="group2" taborder="1" class="div_SA" position="absolute 0 25 1180 65" anchor="left top right">
- <Layouts>
- <Layout width="1180" height="35">
- <Shape id="line1" linetype="vertical" position="absolute 1092 8 1098 32" anchor="top right"/>
- <Static id="caption2" text="진료과 :" class="search_name" position="absolute 289 12 353 29"/>
- <Combo id="cmb_orddeptcd" taborder="2" innerdataset="@ds_init_orddept" codecolumn="deptcd" datacolumn="depthngnm" position="absolute 359 11 473 30"/>
- <Calendar id="torsrvdd" taborder="1" class="input_default" position="absolute 187 11 277 30" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar id="frrsrvdd" taborder="0" class="input_default" position="absolute 92 11 182 30" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
- <Static id="caption11" text="예약일자 :" class="search_name" position="absolute 10 12 87 29"/>
- <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1110 10 1166 32" onclick="group2_btn_sea_onclick" anchor="top right"/>
- <Static id="caption1" text="환자번호 :" class="search_name" position="absolute 485 12 561 29"/>
- <Edit id="input1" taborder="4" position="absolute 567 11 667 30" onkeydown="group2_input1_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="button2" taborder="2" text="엑셀" class="btn7" position="absolute 1130 68 1180 87" onclick="button2_onclick" anchor="top right"/>
- <Shape id="line2" linetype="horizontal" class="line_1" position="absolute 0 87 1180 93" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Grid id="datagrid1" taborder="3" binddataset="ds_main_rsrvsonolist" useinputpanel="false" position="absolute 0 92 1180 762" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="120"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="230"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="100"/>
- </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="주상병코드"/>
- <Cell col="7" text="처방코드"/>
- <Cell col="8" text="처방명"/>
- <Cell col="9" text="처방급비"/>
- <Cell col="10" text="계산급비"/>
- <Cell col="11" text="처방수량"/>
- <Cell col="12" text="처방일자"/>
- <Cell col="13" text="예약일자"/>
- <Cell col="14" text="예약시간"/>
- <Cell col="15" text="처방의사"/>
- <Cell col="16" text="선택의사"/>
- <Cell col="17" text="시행의사"/>
- <Cell col="18" text="비고"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="align:left middle;padding:0 0 0 2;" text="bind:orddeptnm"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 2;" text="bind:pid"/>
- <Cell col="3" style="align:center middle;" text="bind:pname"/>
- <Cell col="4" style="align:left middle;padding:0 0 0 2;" text="bind:insukind"/>
- <Cell col="5" style="align:left middle;padding:0 0 0 2;" text="bind:suppkind"/>
- <Cell col="6" style="align:left middle;padding:0 0 0 2;" text="bind:diagcd"/>
- <Cell col="7" style="align:left middle;padding:0 0 0 2;" text="bind:prcpcd"/>
- <Cell col="8" style="align:left top;padding:5 2 3 2;" text="bind:prcpnm" wordwrap="char"/>
- <Cell col="9" style="align:center middle;" text="bind:payflagcd"/>
- <Cell col="10" style="align:center middle;" text="bind:calcpayflag"/>
- <Cell col="11" style="align:center middle;" text="bind:ordqty"/>
- <Cell col="12" style="align:center middle;" text="bind:prcpdd"/>
- <Cell col="13" style="align:center middle;" text="bind:rsrvdd"/>
- <Cell col="14" displaytype="date" style="align:center middle;" text="bind:rsrvtm" mask="hh:mm" calendardisplaynulltype="none"/>
- <Cell col="15" style="align:center middle;" text="bind:orddrid"/>
- <Cell col="16" text="bind:specdrid"/>
- <Cell col="17" text="bind:execrid"/>
- <Cell col="18" text="bind:remark"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btnprint" taborder="4" text="출력" class="btn6" position="absolute 1078 68 1128 87" onclick="btnprint_onclick" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvfromdd" type="STRING" size="256"/>
- <Column id="rsrvtodd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rsrvfromdd"/>
- <Col id="rsrvtodd"/>
- <Col id="orddeptcd"/>
- <Col id="pid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_rsrvsonolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="pname" type="STRING" size="256" sumtext="환자명"/>
- <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
- <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
- <Column id="diagcd" type="STRING" size="256" sumtext="주상병코드"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
- <Column id="payflagcd" type="STRING" size="256" sumtext="처방급비"/>
- <Column id="calcpayflag" type="STRING" size="256" sumtext="계산급비"/>
- <Column id="ordqty" type="STRING" size="256" sumtext="수량"/>
- <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
- <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
- <Column id="rsrvtm" type="STRING" size="256" sumtext="예약일자"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="처방의사"/>
- <Column id="specdrid" type="STRING" size="256" sumtext="선택의사"/>
- <Column id="execrid" type="STRING" size="256" sumtext="시행의사"/>
- <Column id="remark" type="STRING" size="256" sumtext="비고"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.input1" propid="value" datasetid="ds_send" columnid="pid"/>
- <BindItem id="item1" compid="group2.cmb_orddeptcd" propid="value" datasetid="ds_send" columnid="orddeptcd"/>
- <BindItem id="item2" compid="group2.torsrvdd" propid="value" datasetid="ds_send" columnid="rsrvtodd"/>
- <BindItem id="item3" compid="group2.frrsrvdd" propid="value" datasetid="ds_send" columnid="rsrvfromdd"/>
- </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
- //---------------------------------------------------------------------------------------
- /**
- * 출력 메서드
- */
- function lf_printGrid() {
- dsf_makeValue(ds_main_rsrvsonolist, "rsrvfromdd", 'string', ds_send.getColumn(0, "rsrvfromdd"));
- dsf_makeValue(ds_main_rsrvsonolist, "rsrvtodd", 'string', ds_send.getColumn(0, "rsrvtodd"));
- // DOM 객체 설정
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/main/rsrvsonolist", ds_main_rsrvsonolist);
- var option = "open=1;save=1;directprint=0;printdialog=0;print=1;zoom=0";
- rptf_exeReportPreview30(["RPAEA08000"], [{ xml_data_XML1: objDOM.documentElement.source }], option);
- }
- /**
- * 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 SMAEA08000_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
-
- grdf_setGridSort(datagrid1);
- appf_getDeptCodeList(sysf_getUserInfo("dutplceinstcd"), "orduseyn", "D", "depthngnm", "", "", "", "", "ds_init_orddept", false, "");
- if (ds_init_orddept.rowcount > 0) {
- dsf_addDsItem(ds_init_orddept, "deptcd", "depthngnm", "전체", "", "above");
- }
- ds_send.setColumn(0, "rsrvfromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "rsrvtodd", utlf_getCurrentDate());
- }
- /**
- * 환자번호 키보드 입력 이벤트
- * @param {*} obj
- * @param {*} e
- */
- function group2_input1_onkeydown(obj: Edit, e: KeyEventInfo) {
- if (e.keycode == 13) {
- group2.btn_sea.click();
- }
- }
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- submit("TRAEA08000", true);
- }
- /**
- * 조회버튼 클릭 이벤트
- * @param {*} obj
- * @param {*} e
- */
- function group2_btn_sea_onclick(obj: Button, e: ClickEventInfo) {
- var oParam = {};
- oParam.id = "TRAEA08000";
- oParam.service = "examcurersrvapp.RsrvRef";
- oParam.method = "reqgetOpdSonoRsrvList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsrvsonolist=rsrvsonolist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- /**
- * 출력 버튼 클릭 이벤트
- * @param {*} obj
- * @param {*} e
- */
- function btnprint_onclick(obj: Button, e: ClickEventInfo) {
- lf_printGrid();
- }
- /**
- * 엑셀 버튼 클릭 이벤트
- * @param {*} obj
- * @param {*} e
- */
- function button2_onclick(obj: Button, e: ClickEventInfo) {
- if (ds_main_rsrvsonolist.rowcount < 1) {
- return;
- }
- grdf_exportExcel(datagrid1, "excel", "SheetName", false, "", "user", false);
- sysf_messageBox("EXCEL 저장이 완료되었습니다.", "I999");
- }
- ]]></Script>
- </Form>
- </FDL>
|