123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMI06400" position="absolute 0 0 1280 1024" titletext="상해외인 환자 현황" onload="SMPMI06400_onload">
- <Layouts>
- <Layout>
- <Div id="grp" taborder="7" position="absolute 0 25 1195 60" class="div_SA">
- <Layouts>
- <Layout width="1195" height="35">
- <Button id="btn_search" taborder="0" text="조회" onclick="btn_search_onclick" class="btn1" position="absolute 1130 7 1186 29"/>
- <Static id="caption1" text="입원일 :" class="search_name" position="absolute 5 9 80 26"/>
- <Calendar id="ipt_fromdd" taborder="1" class="input_search" position="absolute 71 8 161 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar id="ipt_todd" taborder="2" class="input_search" position="absolute 182 8 272 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
- <Static id="caption2" text="~" position="absolute 166 8 177 28" style="align:center ;"/>
- <Shape id="line13" linetype="vertical" position="absolute 1120 4 1123 31" style="border: solid #FFD799 #FFD799;"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="cap_title" class="tit_1" position="absolute 0 0 160 25" style="align:left middle;font:Dotum,9,bold;" text="상해 외인 환자 현황"/>
- <Static id="caption7" class="tit_2" position="absolute 0 67 85 83" style="font:,,bold;" text="조회 내역"/>
- <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 87 1195 90" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
- <Button id="btn_excel" class="btn2" position="absolute 1131 65 1195 84" text="엑셀저장" onclick="btn_excel_onclick"/>
- <Grid id="grd_ijor" binddataset="ds_main_ijorlist" position="absolute 0 89 1195 764" style="align:center ;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="55"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="90"/>
- <Column size="75"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="75"/>
- <Column size="0"/>
- <Column size="120"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="300"/>
- <Column size="0"/>
- <Column size="180"/>
- </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="상병(한글)"/>
- <Cell col="19" text="진단일련번호"/>
- <Cell col="20" text="상담내용"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:pid" suppress="1" suppressalign="middle,over"/>
- <Cell col="2" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:hngnm" suppress="2" suppressalign="middle,over"/>
- <Cell col="3" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:hometel"/>
- <Cell col="4" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:mpphontel" suppress="2" suppressalign="middle,over"/>
- <Cell col="5" displaytype="date" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:indd" mask="yyyy-MM-dd" suppress="3" suppressalign="middle,over" calendardisplaynulltype="none"/>
- <Cell col="6" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:cretno"/>
- <Cell col="7" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:mskind"/>
- <Cell col="8" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:insukind"/>
- <Cell col="9" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:insukindnm" suppress="4" suppressalign="middle,over"/>
- <Cell col="10" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:suppkind"/>
- <Cell col="11" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:suppkindnm" suppress="5" suppressalign="middle,over"/>
- <Cell col="12" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:dschdd"/>
- <Cell col="13" displaytype="date" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:diagdd" mask="yyyy-MM-dd" suppress="6" suppressalign="middle,over" calendardisplaynulltype="none"/>
- <Cell col="14" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:orddeptcd"/>
- <Cell col="15" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:depthngnm" suppress="7" suppressalign="middle,over"/>
- <Cell col="16" style="align:left middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:diagcd"/>
- <Cell col="17" style="align:left middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:termengnm"/>
- <Cell col="18" style="align:left middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:termhngnm"/>
- <Cell col="19" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:diagno"/>
- <Cell col="20" style="align:left middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:cnslttxt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_ijorlist" 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="hometel" type="STRING" size="256" sumtext="집전화번호"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
- <Column id="indd" type="STRING" size="256" sumtext="입원일"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="mskind" type="STRING" size="256" sumtext="주유형"/>
- <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
- <Column id="insukindnm" type="STRING" size="256" sumtext="보험유형"/>
- <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
- <Column id="suppkindnm" type="STRING" size="256" sumtext="보조유형"/>
- <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일"/>
- <Column id="diagdd" type="STRING" size="256" sumtext="진단일"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
- <Column id="depthngnm" type="STRING" size="256" sumtext="진료과"/>
- <Column id="diagcd" type="STRING" size="256" sumtext="상병코드"/>
- <Column id="termengnm" type="STRING" size="256" sumtext="상병(영문)"/>
- <Column id="termhngnm" type="STRING" size="256" sumtext="상병(한글)"/>
- <Column id="diagno" type="STRING" size="256" sumtext="진단일련번호"/>
- <Column id="cnslttxt" type="STRING" size="256" sumtext="상담내용"/>
- <Column id="bgColor" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item1" compid="grp.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[//=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /**
- * 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 SMPMI06400_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
- // grd_ijor.rowHeightMin = 23;
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- // ipt_fromdd.refresh();
- // ipt_todd.refresh();
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_search_onclick(obj: Button, e: ClickEventInfo) {
- ds_main_ijorlist.clearData();
- var oParam = {};
- oParam.id = "TRPMI01705";
- oParam.service = "ipatmngtapp.InhospPat";
- oParam.method = "reqGetInjuryOtherReasonList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_ijorlist=ijor";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- ds_main_ijorlist.addColumn('bgColor', 'string');
- if (ds_main_ijorlist.rowcount < 1) {
- return;
- }
- var prevpid = ds_main_ijorlist.getColumn(0, "pid");
- var color = "transparent";
- for (var i = 0; i < ds_main_ijorlist.rowcount; i++) {
- var pid = ds_main_ijorlist.getColumn(i, "pid");
- if (pid != prevpid) {
- color = (color == "#f4f4f4") ? "transparent" : "#f4f4f4";
- prevpid = pid;
- }
- ds_main_ijorlist.setColumn(i, "bgColor", color);
- }
- }
- /**
- * 엑셀저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_excel_onclick(obj: Button, e: ClickEventInfo) {
- grdf_exportExcel(grd_ijor, "상해 외인 환자 현황", "상해외인환자현황", true, "", "user", true);
- sysf_messageBox("엑셀 저장이 완료되었습니다.", "I999");
- }
- ]]></Script>
- </Form>
- </FDL>
|