123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMRI01200" position="absolute 0 0 1200 782" titletext="미비현황조회" oninit="SMMRI01200_oninit" onload="SMMRI01200_onload">
- <Layouts>
- <Layout>
- <Div id="grp_sea" taborder="1" position="absolute 0 25 1195 85" anchor="left top right" class="div_SA">
- <Layouts>
- <Layout/>
- </Layouts>
- </Div>
- <Static text="미비현황조회" position="absolute 0 0 189 25" id="cap_title" class="tit_1"/>
- <Button position="absolute 1130 44 1186 66" id="btn_req" class="btn1" text="조회" anchor="top right" onclick="btn_req_onclick"/>
- <Shape position="absolute 1107 32 1113 77" linetype="vertical" id="line5" anchor="top right"/>
- <Static text="미비현황조회" position="absolute 0 98 108 120" id="caption20" class="tit_2"/>
- <Shape position="absolute 0 114 1195 120" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
- <Grid position="absolute 0 119 1195 774" id="grd_unpreplist" binddataset="ds_main_unpreplist_unpreplist" autoenter="select" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="60"/>
- </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="퇴원일"/>
- <Cell col="8" text="퇴원과"/>
- <Cell col="9" text="INDEX"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;padding:0 0 0 3;" text="bind:deptnm"/>
- <Cell col="1" style="align:left middle;padding:0 0 0 3;" text="bind:doctkindflag"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:unprepdrnm"/>
- <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:pid"/>
- <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:patnm"/>
- <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:cnt"/>
- <Cell col="6" displaytype="date" style="align:left middle;padding:0 0 0 3;" text="bind:indd" calendardisplaynulltype="nulltext"/>
- <Cell col="7" displaytype="date" style="align:left middle;padding:0 0 0 3;" text="bind:dschdd" calendardisplaynulltype="nulltext"/>
- <Cell col="8" style="align:left middle;padding:0 0 0 3;" text="bind:dschdept"/>
- <Cell col="9" style="align:left middle;padding:0 0 0 3;" text="bind:indx"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1145 95 1195 114" id="btn_ex" class="btn7" text="엑셀" anchor="top right" onclick="btn_ex_onclick"/>
- <Static text="퇴원과 :" position="absolute 358 60 428 77" id="caption7" class="search_name"/>
- <Static text="~" position="absolute 224 36 239 51" id="caption8"/>
- <Static text="미비입력일 :" position="absolute 30 35 129 52" id="caption9" class="search_name"/>
- <Static text="~" position="absolute 224 61 239 76" id="caption1"/>
- <Static text="퇴원일 :" position="absolute 30 60 129 77" id="caption2" class="search_name"/>
- <Static text="미비과 :" position="absolute 358 36 428 53" id="caption3" class="search_name"/>
- <Static text="미비의사 :" position="absolute 589 35 667 52" id="caption4" class="search_name"/>
- <Static text="의사구분 :" position="absolute 589 60 667 77" id="caption5" class="search_name"/>
- <Calendar position="absolute 122 34 220 53" id="ipt_fromdd" enable="false" autoselect="true" autoskip="true"/>
- <Calendar position="absolute 240 34 338 53" id="ipt_todd" enable="false" autoselect="true"/>
- <Calendar position="absolute 122 59 220 78" id="ipt_dschfromdd" enable="false" autoselect="true" autoskip="true"/>
- <Calendar position="absolute 240 59 338 78" id="ipt_dschtodd" enable="false" autoselect="true"/>
- <Combo position="absolute 427 34 570 53" id="cmb_unpredeptcd" class="combo_search" innerdataset="@ds_init_orddept_dept" datacolumn="depthngnm" codecolumn="deptcd" onitemchanged="cmb_unpredeptcd_onitemchanged"/>
- <Combo position="absolute 427 59 570 78" id="cmb_indschdeptcd" class="combo_search" innerdataset="@ds_init_orddept_dept" datacolumn="depthngnm" codecolumn="deptcd"/>
- <Combo position="absolute 671 33 814 52" id="cmb_unpredr" class="combo_search" innerdataset="@ds_init_userlist_usercombo" datacolumn="usernm" codecolumn="userid"/>
- <CheckBox position="absolute 9 33 29 53" id="chk_unpredd" truevalue="Y" onclick="chk_unpredd_onclick"/>
- <CheckBox position="absolute 9 58 29 78" id="chk_dschdd" truevalue="Y" onclick="chk_dschdd_onclick"/>
- <cp_checkboxList id="chk_drkind" titletext="CheckBox List" taborder="2" text="cp_checkboxList00" scrollbars="none" position="absolute 672 57 1001 82" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="unpredd" type="STRING" size="256"/>
- <Column id="dschdd" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="dschfromdd" type="STRING" size="256"/>
- <Column id="dschtodd" type="STRING" size="256"/>
- <Column id="unpredeptcd" type="STRING" size="256"/>
- <Column id="indschdeptcd" type="STRING" size="256"/>
- <Column id="unpredr" type="STRING" size="256"/>
- <Column id="drkind" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="unpredd"/>
- <Col id="dschdd"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="dschfromdd"/>
- <Col id="dschtodd"/>
- <Col id="unpredeptcd"/>
- <Col id="indschdeptcd"/>
- <Col id="unpredr"/>
- <Col id="drkind"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_unpreplist_unpreplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptnm" type="STRING" size="256" sumtext="미비과"/>
- <Column id="doctkindflag" type="STRING" size="256" sumtext="구분"/>
- <Column id="unprepdrnm" type="STRING" size="256" sumtext="의사명"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="cnt" type="STRING" size="256" sumtext="회차"/>
- <Column id="indd" type="STRING" size="256" sumtext="입원일"/>
- <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일"/>
- <Column id="dschdept" type="STRING" size="256" sumtext="퇴원과"/>
- <Column id="indx" type="STRING" size="256" sumtext="INDEX"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_userlist_usercombo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_unpredrkind_row" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm">Total</Col>
- <Col id="cdid">T</Col>
- </Row>
- <Row>
- <Col id="cdnm">Staff</Col>
- <Col id="cdid">St</Col>
- </Row>
- <Row>
- <Col id="cdnm">Resident</Col>
- <Col id="cdid">R</Col>
- </Row>
- <Row>
- <Col id="cdnm">Intern</Col>
- <Col id="cdid">I</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </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="ipt_dschtodd" propid="value" datasetid="ds_main_cond" columnid="dschtodd"/>
- <BindItem id="item3" compid="ipt_dschfromdd" propid="value" datasetid="ds_main_cond" columnid="dschfromdd"/>
- <BindItem id="item4" compid="cmb_indschdeptcd" propid="value" datasetid="ds_main_cond" columnid="indschdeptcd"/>
- <BindItem id="item5" compid="cmb_unpredeptcd" propid="value" datasetid="ds_main_cond" columnid="unpredeptcd"/>
- <BindItem id="item6" compid="cmb_unpredr" propid="value" datasetid="ds_main_cond" columnid="unpredr"/>
- <BindItem id="item7" compid="chk_dschdd" propid="value" datasetid="ds_main_cond" columnid="dschdd"/>
- <BindItem id="item8" compid="chk_unpredd" propid="value" datasetid="ds_main_cond" columnid="unpredd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMOCommon.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- function SMMRI01200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMRI01200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_unpreplist);
-
- var sProp="col=4,row=1,cellspacing=4,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
- chk_drkind.setInitComp(sProp, ds_init_unpredrkind_row,"cdid","cdnm","fn_cmpEvent");
-
- lf_mmbfGetDeptCodeComboList(ds_init_orddept_dept, "A");
- frmf_addComboItem("cmb_indschdeptcd", "전체", "-", "above");
- frmf_addComboItem("cmb_unpredr", "전체", "-", "above");
- ds_main_unpreplist_unpreplist.clearData();
- ds_main_cond.setColumn(0, "unpredeptcd", "-");
- ds_main_cond.setColumn(0, "indschdeptcd", "-");
- ds_main_cond.setColumn(0, "unpredr", "-");
- ds_main_cond.setColumn(0, "drkind", "T");
-
- var aData = new Array();
- aData[0] = "T";
- chk_drkind.setData(aData, "",false);
- }
- function fn_cmpEvent()
- {
- var drkind = chk_drkind.getData();
-
- if(String(drkind).indexOf("T") > -1)
- {
- ds_main_cond.setColumn(0, "drkind", "T");
-
- var aData = new Array();
- aData[0] = "T";
-
- var aFalse = new Array();
- aFalse[0] = "St"
- aFalse[1] = "R"
- aFalse[2] = "I"
- chk_drkind.setData(aData, aFalse,false);
- }
- else
- {
- var rtn = chk_drkind.getData();
- rtn = String(rtn).replace(",", "','");
- ds_main_cond.setColumn(0, "drkind", rtn);
- }
- }
- function chk_unpredd_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- var unpredd = obj.value;
- if(unpredd == "Y")
- {
- ipt_fromdd.enable = true;
- ipt_todd.enable = true;
- ds_main_cond.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_main_cond.setColumn(0, "todd", utlf_getCurrentDate());
- }
- else
- {
- ipt_fromdd.enable = false;
- ipt_todd.enable = false;
- ds_main_cond.setColumn(0, "fromdd", "");
- ds_main_cond.setColumn(0, "todd", "");
- ds_main_cond.setColumn(0, "unpredd", "");
- }
- }
- function chk_dschdd_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- var dschdd = obj.value;
- if(dschdd == "Y")
- {
- ipt_dschfromdd.enable = true;
- ipt_dschtodd.enable = true;
- ds_main_cond.setColumn(0, "dschfromdd", utlf_getCurrentDate());
- ds_main_cond.setColumn(0, "dschtodd", utlf_getCurrentDate());
- }
- else
- {
- ipt_dschfromdd.enable = false;
- ipt_dschtodd.enable = false;
- ds_main_cond.setColumn(0, "dschfromdd", "");
- ds_main_cond.setColumn(0, "dschtodd", "");
- ds_main_cond.setColumn(0, "dschdd", "");
- }
- }
- function cmb_unpredeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- lf_mmbfGetUserComboList(ds_init_userlist_usercombo, obj.value, "0330");
- frmf_addComboItem("cmb_unpredr", "전체", "-", "above");
- cmb_unpredr.value = "-";
- }
- function btn_req_onclick(obj:Button, e:ClickEventInfo)
- {
- var unpredd = ds_main_cond.getColumn(0, "unpredd");
- var dschdd = ds_main_cond.getColumn(0, "dschdd");
- var drkind = ds_main_cond.getColumn(0, "drkind");
- if(utlf_isNull(unpredd) && utlf_isNull(dschdd))
- {
- sysf_messageBox("조회기간을 ","C002");
- return false;
- }
- if(utlf_isNull(drkind))
- {
- sysf_messageBox("의사구분을 ","C002");
- return false;
- }
- var oParam = {};
- oParam.id = "TRMRI01200";
- oParam.service = "unprepmngtapp.ChrtUnprepMngt";
- oParam.method = "reqGetUnPrepPreStatList";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_unpreplist_unpreplist=unpreplist";
- oParam.async = false;
- //oParam.callback = "cf_TRMRI01200";
- tranf_submit(oParam);
- }
- function btn_ex_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_unpreplist, "excel", "Sheet1", "true", "", "");
- }
- ]]></Script>
- </Form>
- </FDL>
|