123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMO26100" position="absolute 0 0 1030 709" titletext="입원결정" oninit="SPMMO26100_oninit" onload="SPMMO26100_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 25 1010 65" align="align:center top;" id="gp1" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="조회일자:" position="absolute 635 11 725 28" id="caption2" class="search_name" visible="false" anchor="default"/>
- <Button position="absolute 875 9 931 31" id="btn_sear" class="btn1" text="조회" anchor="default" onclick="gp1_btn_sear_onclick"/>
- <Shape position="absolute 862 7 868 32" linetype="vertical" id="line16" anchor="default"/>
- <Calendar position="absolute 725 12 835 31" align="align:center middle;" id="ipt_workdd" class="input_search" visible="false" anchor="default" dateformat="yyyy-MM-dd" value="null" type="normal" autoselect="true"/>
- <Static text="구 분:" position="absolute 20 11 110 28" id="caption1" class="search_name" anchor="default"/>
- <Button position="absolute 932 9 988 31" id="button1" class="btn4" text="저장" onclick="gp1_button1_onclick"/>
- <cp_checkboxList id="chk_gbn" taborder="1" scrollbars="none" position="absolute 96 10 436 30" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid position="absolute 0 75 1010 670" id="grd_decnlist" class="datagrid2" binddataset="ds_grd_decnlist" autofittype="col" onheadclick="grd_decnlist_onheadclick" onenterdown="grd_decnlist_onenterdown" oncellclick="grd_decnlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="130"/>
- <Column size="50"/>
- <Column size="105"/>
- <Column size="65"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="105"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="73"/>
- <Column size="42"/>
- <Column size="0"/>
- <Column size="0"/>
- </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" colspan="2" text="내원일시" taborder="undefined"/>
- <Cell col="14" text="orddd"/>
- <Cell col="15" text="cretno"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:adflag"/>
- <Cell col="2" displaytype="text" edittype="text" style="align:center middle;" text="bind:decnseq"/>
- <Cell col="3" displaytype="date" style="align:left middle;" text="bind:decndt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="none"/>
- <Cell col="4" style="align:left middle;" text="bind:pid"/>
- <Cell col="5" style="align:left middle;" text="bind:hngnm"/>
- <Cell col="6" text="bind:sa"/>
- <Cell col="7" text="bind:bedposcnts"/>
- <Cell col="8" style="align:left middle;" text="bind:deptnm"/>
- <Cell col="9" style="align:left middle;" text="bind:drnm"/>
- <Cell col="10" style="align:left middle;" text="bind:resnm"/>
- <Cell col="11" style="align:left middle;" text="bind:erdrnm"/>
- <Cell col="12" displaytype="date" style="align:left middle;" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="13" displaytype="date" style="align:left middle;" text="bind:intm" mask="HH:mm" calendardisplaynulltype="none"/>
- <Cell col="14" text="bind:orddd"/>
- <Cell col="15" text="bind:cretno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="응급실 입원 결정 대상자 리스트" position="absolute 0 0 225 25" id="caption6" class="tit_1"/>
- <Shape position="absolute 0 70 1010 76" linetype="horizontal" id="line3" class="line_10"/>
- <Static text="[표]" position="absolute 910 674 1010 694" align="align:right middle;" id="caption3"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_decnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="이름"/>
- <Column id="sa" type="STRING" size="256" sumtext="성별/나이"/>
- <Column id="bedposcnts" type="STRING" size="256" sumtext="위치"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="진료과"/>
- <Column id="drnm" type="STRING" size="256" sumtext="주치의"/>
- <Column id="resnm" type="STRING" size="256" sumtext="담당의"/>
- <Column id="erdrnm" type="STRING" size="256" sumtext="응급진료의"/>
- <Column id="indd" type="STRING" size="256" sumtext="내원일"/>
- <Column id="intm" type="STRING" size="256" sumtext="내원시간"/>
- <Column id="adflag" type="STRING" size="256" sumtext="결정구분"/>
- <Column id="decnseq" type="STRING" size="256" sumtext="우선순위"/>
- <Column id="decndt" type="STRING" size="256" sumtext="결정일시"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_chk_gbn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="value">C</Col>
- <Col id="label">병실입원(응급입원실)</Col>
- </Row>
- <Row>
- <Col id="value">B</Col>
- <Col id="label">병실입원(EICU)</Col>
- </Row>
- <Row>
- <Col id="value">A</Col>
- <Col id="label">병실입원</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_req_TXMMO26101" 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="orddd" type="STRING" size="256" sumtext="내원일"/>
- <Column id="cretno" type="STRING" size="256" sumtext="cretno"/>
- <Column id="decnseq" type="STRING" size="256" sumtext="우선순위"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <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 workdd;
- function fSearch(){
- var gbn = new String(gp1.chk_gbn.getData());
-
- if(gbn.length < 1){
- sysf_messageBox('구분을 반드시 1개 이상 선택하십시요', 'E999');
- return;
- }
-
- if(gbn.length > 1){
- var list = gbn.split(',');
- gbn = '';
- for(var i = 0; i < list.length; i++){
- if(i > 0){
- gbn += "','";
- }
- gbn += list[i];
- }
- }
-
- gbn = "('" + gbn + "')";
-
- dsf_createDsRow('ds_req',[
- { col: 'workdd', type: 'string', size: 256, val: workdd },
- { col: 'gbn', type: 'string', size: 256, val: gbn }
- ],
- false);
-
- var oParam = {};
- oParam.id = "TRMMO26101";
- oParam.service = "prcpmngtapp.ErMngt";
- oParam.method = "reqGetErDecnList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_grd_decnlist=decnlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMMO26101";
- tranf_submit(oParam);
-
- // var workdd = model.getValue("/root/cond/workdd");
- // var gbn = model.getValue("/root/cond/gbn");
- // var gbnlist = gbn.split(" ");
- //
- // if (gbn.length>0) {
- // for (var i=0; i<gbnlist.length;i++) {
- // gbn = gbn.replace(" ","','");
- // }
- // gbn = "('" + gbn + "')";
- // } else {
- // messageBox("구분을 반드시 1개 이상 선택하십시오", "E999");
- // return;
- // }
- //
- // model.removeNodeset("/root/send/reqdata");
- // model.makeValue("/root/send/reqdata/workdd", workdd);
- // model.makeValue("/root/send/reqdata/gbn", gbn);
- //
- // submit("TRMMO26101");
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /******************************************************************
- * Argument :
- * Description : oninit 메서드 호출
- ******************************************************************/
- function SPMMO26100_oninit(obj:Form, e:InitEventInfo){
-
- }
- var rows, cols;
- /******************************************************************
- * Argument :
- * Description : oninit 메서드 호출
- ******************************************************************/
- function SPMMO26100_onload(obj:Form, e:LoadEventInfo){
- // 화면공통
- frmf_initForm(obj);
-
- grdf_setRowTypeIcon(grd_decnlist, 0);
-
- // ipt_workdd 의 visible 이 false 이므로..
- //gp1.ipt_workdd.value = utlf_getcurrentDate();
- workdd = utlf_getCurrentDate();
- // 체크박스 설정
- var sProp = "col=3, row=1, cellspacing=14, vcellspacing=0, itemWidth=-1, itemHeight=20, overflow='visible'";
- gp1.chk_gbn.setInitComp(sProp, ds_init_chk_gbn, 'value', 'label', '');
- gp1.chk_gbn.setData(['C']);
- //ds_cond.setColumn(0, "gbn", String(gp1.chk_gbn.getData()).replace(","," "));
- }
- /******************************************************************
- * Argument :
- * Description : 조회버튼 클릭
- ******************************************************************/
- function gp1_btn_sear_onclick(obj:Button, e:ClickEventInfo){
- fSearch();
- }
- /******************************************************************
- * Argument :
- * Description : 컬럼 헤드 클릭 이벤트
- ******************************************************************/
- function grd_decnlist_onheadclick(obj:Grid, e:GridClickEventInfo){
- grdf_gridSort(obj, e);
- }
- function grd_decnlist_onenterdown(obj:Grid, e:GridEditEventInfo){
- // numbering and merged cell
- // var cnt = obj.getCellCount('head') - 2;
- // sysf_trace('cols: ' + obj.getCellCount('head'));
- // for(var i = 0; i < cnt; i++){
- // obj.moveToNextCell();
- // }
- obj.moveToNextCell();
- return true;
- }
- function gp1_button1_onclick(obj:Button, e:ClickEventInfo){
- ds_req_TXMMO26101.clearData();
-
- for(var i = 0; i < ds_grd_decnlist.rowcount; i++){
- ds_req_TXMMO26101.addRow();
- ds_req_TXMMO26101.copyRow(i, ds_grd_decnlist, i, 'pid=pid,orddd=orddd,cretno=cretno,decnseq=decnseq');
- }
-
- dsf_createDsRow('ds_item', [{col: 'cnt', type: 'string', size: 256, val: '' }], false);
-
- var oParam = {};
- oParam.id = "TXMMO26101";
- oParam.service = "prcpmngtapp.ErMngt";
- oParam.method = "reqSetErDecnSeq";
- oParam.inds = "req=ds_req_TXMMO26101";
- oParam.outds = "ds_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TXMMO26101";
- tranf_submit(oParam);
-
- fSearch();
- }
- ]]></Script>
- </Form>
- </FDL>
|