123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMQR04000" position="absolute 0 0 645 515" titletext="수술부위표지율" onload="SPMQR04000_onload">
- <Layouts>
- <Layout>
- <Static text="수술부위 표지율" position="absolute 0 0 134 21" id="caption3" class="tit_1"/>
- <Div position="absolute 0 21 645 79" id="roundrect1" type="roundrectangle" class="div_SA" anchor="left top right"/>
- <Static text="조회기간" position="absolute 5 30 91 47" id="caption1" class="search_name"/>
- <Calendar position="absolute 85 30 185 49" id="ipt_fromdd" class="input_essential" autoselect="true" dateformat="yyyy-MM-dd" value="null"/>
- <Static text="~" position="absolute 190 30 205 50" id="caption2"/>
- <Calendar position="absolute 210 30 310 49" id="ipt_todd" class="input_essential" autoselect="true" dateformat="yyyy-MM-dd"/>
- <Button position="absolute 583 30 639 52" id="btn_search" class="btn1" text="조회" onclick="btn_search_onclick" anchor="top right"/>
- <Grid position="absolute 0 88 645 515" id="grd_oppartrate" binddataset="ds_main_oppartinfo_oppartlist" selecttype="multirow" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="60"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="perfdeptcd" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="진료과" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="집도의" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="총인원" taborder="undefined"/>
- <Cell col="5" colspan="2" text="예" taborder="undefined"/>
- <Cell col="7" colspan="2" text="아니오" taborder="undefined"/>
- <Cell col="9" rowspan="2" text="해당없음" taborder="undefined"/>
- <Cell row="1" col="5" text="건수"/>
- <Cell row="1" col="6" text="비율"/>
- <Cell row="1" col="7" text="건수"/>
- <Cell row="1" col="8" text="비율"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" text="bind:perfdeptcd"/>
- <Cell col="2" celltype="head" text="bind:depthngnm" expr="expr:depthngnm == '소계' ? '' : depthngnm" suppress="1" suppressalign="middle,over"/>
- <Cell col="3" celltype="head" text="bind:usernm" suppress="2" suppressalign="middle,over"/>
- <Cell col="4" style="background:EXPR(seqno == '2' ? '#ffcc00' : '');background2:EXPR(seqno == '2' ? '#ffcc00' : '');" text="bind:totalcnt"/>
- <Cell col="5" style="background:EXPR(seqno == '2' ? '#ffcc00' : '');background2:EXPR(seqno == '2' ? '#ffcc00' : '');" text="bind:yescnt"/>
- <Cell col="6" style="background:EXPR(seqno == '2' ? '#ffcc00' : '');background2:EXPR(seqno == '2' ? '#ffcc00' : '');" text="bind:yesrate"/>
- <Cell col="7" style="background:EXPR(seqno == '2' ? '#ffcc00' : '');background2:EXPR(seqno == '2' ? '#ffcc00' : '');" text="bind:nocnt"/>
- <Cell col="8" style="background:EXPR(seqno == '2' ? '#ffcc00' : '');background2:EXPR(seqno == '2' ? '#ffcc00' : '');" text="bind:norate"/>
- <Cell col="9" style="background:EXPR(seqno == '2' ? '#ffcc00' : '');background2:EXPR(seqno == '2' ? '#ffcc00' : '');" text="bind:nothingcnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 83 645 89" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
- <Button position="absolute 564 55 639 74" id="button1" class="btn7" text="엑셀저장" onclick="button1_onclick" anchor="top right"/>
- <Static text="수술구분" position="absolute 5 55 90 72" id="caption4" class="search_name"/>
- <Combo position="absolute 85 55 185 74" id="combo1" innerdataset="@ds_init_op_opflag" datacolumn="cdnm" codecolumn="cdid"/>
- <Static text="단계별" position="absolute 190 55 275 72" id="caption5" class="search_name"/>
- <Combo position="absolute 255 55 355 74" id="combo2" enable="true" innerdataset="ds_init_op_stage" datacolumn="cdnm" codecolumn="cdid"/>
- <Static text="수술환자구분" position="absolute 320 30 430 47" id="caption6" class="search_name"/>
- <Combo position="absolute 425 30 525 49" id="combo3" innerdataset="@ds_init_op_oppatflag" datacolumn="cdnm" codecolumn="cdid"/>
- <Static text="수술장소" position="absolute 365 55 445 72" id="caption7" class="search_name"/>
- <Combo position="absolute 445 55 545 74" id="combo4" innerdataset="@ds_init_op_opplace" datacolumn="cdnm" codecolumn="cdid"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_oppartinfo_oppartlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="perfdeptcd" type="STRING"/>
- <Column id="depthngnm" type="STRING"/>
- <Column id="usernm" type="STRING"/>
- <Column id="totalcnt" type="STRING"/>
- <Column id="yescnt" type="STRING"/>
- <Column id="yesrate" type="STRING"/>
- <Column id="nocnt" type="STRING"/>
- <Column id="norate" type="STRING"/>
- <Column id="nothingcnt" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_op_opflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">-</Col>
- <Col id="cdnm">전체</Col>
- </Row>
- <Row>
- <Col id="cdid">1</Col>
- <Col id="cdnm">정규</Col>
- </Row>
- <Row>
- <Col id="cdid">2</Col>
- <Col id="cdnm">응급</Col>
- </Row>
- <Row>
- <Col id="cdid">3</Col>
- <Col id="cdnm">추가</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_op_stage" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">01</Col>
- <Col id="cdnm">간호단위</Col>
- </Row>
- <Row>
- <Col id="cdid">02</Col>
- <Col id="cdnm">대기실</Col>
- </Row>
- <Row>
- <Col id="cdid">03</Col>
- <Col id="cdnm">수술실</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_op_oppatflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">I</Col>
- <Col id="cdnm">병동</Col>
- </Row>
- <Row>
- <Col id="cdid">D</Col>
- <Col id="cdnm">외래(DSC)</Col>
- </Row>
- <Row>
- <Col id="cdid">-</Col>
- <Col id="cdnm">전체</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_op_opplace" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">-</Col>
- <Col id="cdnm">전체</Col>
- </Row>
- <Row>
- <Col id="cdid">01</Col>
- <Col id="cdnm">일일수술실</Col>
- </Row>
- <Row>
- <Col id="cdid">02</Col>
- <Col id="cdnm">중앙수술실</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_cond_oncolumnchanged">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="opflag" type="STRING" size="256"/>
- <Column id="stage" type="STRING" size="256"/>
- <Column id="oppatflag" type="STRING" size="256"/>
- <Column id="opplace" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="opflag"/>
- <Col id="stage"/>
- <Col id="oppatflag"/>
- <Col id="opplace"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item1" compid="ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
- <BindItem id="item2" compid="combo1" propid="value" datasetid="ds_main_cond" columnid="opflag"/>
- <BindItem id="item3" compid="combo2" propid="value" datasetid="ds_main_cond" columnid="stage"/>
- <BindItem id="item4" compid="combo3" propid="value" datasetid="ds_main_cond" columnid="oppatflag"/>
- <BindItem id="item5" compid="combo4" propid="value" datasetid="ds_main_cond" columnid="opplace"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- //include "emr_prcpmngtxp::MMO001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMQR04000
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SPMQR04000_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- ds_main_cond.enableevent = false;
- ipt_fromdd.value = utlf_getCurrentDate();
- ipt_todd.value = utlf_getCurrentDate();
- ds_main_cond.enableevent = true;
-
- ds_main_cond.setColumn(0, "opflag", "-"); //수술구분 전체 디폴트 선택
- ds_main_cond.setColumn(0, "oppatflag", "-"); //수술환자구분 전체 디폴트 선택
- ds_main_cond.setColumn(0, "stage", "01"); //단계 간호단위 디폴트 선택
- ds_main_cond.setColumn(0, "opplace", "-"); //수술장소 디폴트 선택
-
- }
- function ds_main_cond_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.columnid == "fromdd" ){
- if(!utlf_isNull(e.newvalue)) {
- if(e.newvalue > ipt_todd.value) {
- sysf_messageBox("종료일 이전 날자만 입력","I006");
- ipt_fromdd.value = utlf_getCurrentDate();
- }
- }
- }else if( e.columnid == "todd" ){
- if(!utlf_isNull(e.newvalue)) {
- if(ipt_fromdd.value > e.newvalue) {
- sysf_messageBox("시작일 이후 날자만 입력","I006");
- ipt_todd.value = utlf_getCurrentDate();
- }
- }
- }
- }
- function btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(ipt_todd.value) || utlf_isNull(ipt_fromdd.value)) {
- sysf_messageBox("날짜는", "I003");
- ds_main_cond.enableevent = false;
- ipt_todd.value = utlf_getCurrentDate();
- ipt_fromdd.value = utlf_getCurrentDate();
- ds_main_cond.enableevent = true;
- return;
- }
-
- var oParam = {};
- oParam.id = "TRMQR03001";
- oParam.service = "qiapp.QiActivityMngt";
- oParam.method = "reqGetOpBfCurePartInfo";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_oppartinfo_oppartlist=oppartlist";
- oParam.async = true;
- tranf_submit(oParam);
-
- // if (submit("TRMQR04001") ) {
- // for (i= 1; i < grd_oppartrate.rows; i++ ) {
- // if (model.getValue("/root/main/oppartinfo/oppartlist[" + i + "]/seqno") =="2") {
- // grd_oppartrate.rowStyle(parseInt(i)+ 1, "all", "background-color") = "#ffcc00";
- // }
- // }
- // }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var selectValue1 = true;
- var selectValue2 = 1;
- var today = utlf_getCurrentDate();
-
- grdf_exportExcel(grd_oppartrate, "수술부위표지율_"+today, "sheet1", true);
- }
- ]]></Script>
- </Form>
- </FDL>
|