123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNE01400" position="absolute 0 0 1197 779" titletext="인계용 Sheet" oninit="SMMNE01400_oninit" onload="SMMNE01400_onload" ontimer="SMMNE01400_ontimer">
- <Layouts>
- <Layout>
- <Div id="grp_btn" taborder="0" position="absolute 0 750 1195 777" class="div_SA2" anchor="left right bottom">
- <Layouts>
- <Layout>
- <Static id="caption41" text="상태 - ⓐ : 입원 / ⓓ : 퇴원예고 / ⓒ : 간호사 퇴원정리완료" position="absolute 13 4 506 24" anchor="default"/>
- <Static id="caption47" text="입원장 - 응급입원장: ◇ / 입원수속: ◈ / 병실배정: ◆ / 외래입원장: ◎" position="absolute 551 4 945 24" anchor="default"/>
- <Static id="caption1" text="[표]" position="absolute 1165 4 1195 24" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 75 1195 81" anchor="left top right"/>
- <Grid id="grd_patlist" class="datagrid2" taborder="1" binddataset="ds_main_nursemainlist" useinputpanel="false" position="absolute 0 81 1195 747" anchor="all" cellsizingtype="col" tooltiptype="hover">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="55"/>
- <Column size="30"/>
- <Column size="70"/>
- <Column size="75"/>
- <Column size="70"/>
- <Column size="45"/>
- <Column size="56"/>
- <Column size="54"/>
- <Column size="48"/>
- <Column size="49"/>
- <Column size="56"/>
- <Column size="60"/>
- <Column size="233"/>
- <Column size="50"/>
- <Column size="145"/>
- <Column size="145"/>
- <Column size="84"/>
- <Column size="56"/>
- </Columns>
- <Rows>
- <Row size="35" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="Bed"/>
- <Cell col="1" text="상태"/>
- <Cell col="2" text="입원장"/>
- <Cell col="3" text="등록번호"/>
- <Cell col="4" text="환자명"/>
- <Cell col="5" text="S/A"/>
- <Cell col="6" text="주진료과"/>
- <Cell col="7" text="담당교수"/>
- <Cell col="8" colspan="2" text="담당의" taborder="undefined"/>
- <Cell col="10" text="호출 진료과"/>
- <Cell col="11" text="호출의사"/>
- <Cell col="12" text="주호소"/>
- <Cell col="13" text="병실"/>
- <Cell col="14" text="Remark"/>
- <Cell col="15" text="Remark2"/>
- <Cell col="16" text="내원일자"/>
- <Cell col="17" text="내원시간"/>
- </Band>
- <Band id="body">
- <Cell text="bind:bedposcnts" tooltiptext="bind:bedposcnts"/>
- <Cell col="1" text="bind:stat" tooltiptext="bind:stat"/>
- <Cell col="2" text="bind:inreq" tooltiptext="bind:inreq"/>
- <Cell col="3" text="bind:pid" tooltiptext="bind:pid"/>
- <Cell col="4" text="bind:patnm" tooltiptext="bind:patnm"/>
- <Cell col="5" text="bind:grdrage" tooltiptext="bind:grdrage"/>
- <Cell col="6" text="bind:juorddeptcd" tooltiptext="bind:juorddeptcd"/>
- <Cell col="7" text="bind:juorddrid" tooltiptext="bind:juorddrid"/>
- <Cell col="8" text="bind:damorddrid" tooltiptext="bind:damorddrid"/>
- <Cell col="9" text="bind:dampdano" tooltiptext="bind:dampdano"/>
- <Cell col="10" text="bind:orddeptcd" tooltiptext="bind:orddeptcd"/>
- <Cell col="11" text="bind:orddrid" tooltiptext="bind:orddrid"/>
- <Cell col="12" style="align:left middle;" text="bind:cc" tooltiptext="bind:cc"/>
- <Cell col="13" text="bind:assgroom" tooltiptext="bind:assgroom"/>
- <Cell col="14" style="align:left;" text="bind:telrsrvrem" tooltiptext="bind:telrsrvrem"/>
- <Cell col="15" style="align:left;" text="bind:spcltest" tooltiptext="bind:spcltest"/>
- <Cell col="16" displaytype="expr:utlf_isNull(chosdd) ? 'normal' : 'date'" text="bind:chosdd" tooltiptext="bind:chosdd"/>
- <Cell col="17" text="bind:chostm" mask="expr:utlf_isNull(chostm) ? '' : '99:99'" tooltiptext="bind:chostm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp_sea" taborder="2" class="div_SA" position="absolute 0 25 1195 65" anchor="left top right">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1013 10 1069 32" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1002 10 1008 32" anchor="top right"/>
- <Static id="caption3" text="구역 :" class="search_name" position="absolute 16 14 61 26" anchor="default"/>
- <Combo id="cmb_section" taborder="4" innerdataset="ds_init_cmb_section" codecolumn="bedcd" datacolumn="bednm" visible="false" position="absolute 714 8 834 30" anchor="default"/>
- <Button id="btn_excelprint" taborder="6" text="엑셀" class="btn7" position="absolute 1127 10 1183 32" anchor="top right" onclick="grp_sea_btn_excelprint_onclick"/>
- <Button id="btn_print" taborder="7" text="출력" class="btn6" position="absolute 1070 10 1126 32" anchor="top right" onclick="grp_sea_btn_print_onclick"/>
- <cp_checkboxList id="checkbox1" taborder="8" text="cp_checkboxList00" scrollbars="none" position="absolute 64 9 684 28" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="인계용 sheet" class="tit_1" position="absolute 0 0 114 25"/>
- <Shape id="line00" class="line_10" position="absolute 0 76 1195 82" anchor="left top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_nursemainlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="bedposcnts" type="STRING"/>
- <Column id="stat" type="STRING"/>
- <Column id="inreq" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="patnm" type="STRING"/>
- <Column id="grdrage" type="STRING"/>
- <Column id="juorddeptcd" type="STRING"/>
- <Column id="juorddrid" type="STRING"/>
- <Column id="damorddrid" type="STRING"/>
- <Column id="dampdano" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="orddrid" type="STRING"/>
- <Column id="cc" type="STRING"/>
- <Column id="assgroom" type="STRING"/>
- <Column id="telrsrvrem" type="STRING"/>
- <Column id="spcltest" type="STRING"/>
- <Column id="chosdd" type="STRING"/>
- <Column id="chostm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="section" type="STRING" size="256"/>
- <Column id="todate" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="section">-</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_erbaselist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="bedcd" type="STRING" size="256"/>
- <Column id="bednm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.cmb_section" propid="value" datasetid="ds_main_cond" columnid="section"/>
- </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";
- /******************************************************************
- * Argument :
- * Description : 초기화
- ******************************************************************/
- function SMMNE01400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNE01400_onload(obj:Form, e:LoadEventInfo)
- {
- ds_main_cond.setColumn(0, "todate", utlf_getCurrentDate());
-
- ds_send.clearData();
- ds_send.addColumn("searchitem", "string", 256);
- var iRow = ds_send.addRow();
- ds_send.setColumn(iRow, "searchitem", "sheetbed");
- var oParam = {};
- oParam.id = "TRMNE00203";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetERBasetList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_erbaselist=bedinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRMNE00203";
- tranf_submit(oParam);
-
- // 구역
- var sProp1="col="+ds_init_erbaselist.rowcount+",row=1,cellspacing=5,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow=''";
- grp_sea.checkbox1.setInitComp(sProp1, ds_init_erbaselist, "bedcd", "bednm", "fn_setErbase");
- fn_getErbase();
-
- //속도개선
- this.setTimer(0, 100);
- //fSearchSheet();
- }
- /******************************************************************
- * Argument :
- * Description : 구역 bind set
- ******************************************************************/
- function fn_setErbase(code){
- var aValue = utlf_transNullToEmpty(grp_sea.checkbox1.getData());
- var nRow = String(aValue).indexOf("-");
- if( aValue.length > 1 && nRow > -1 ){
- grp_sea.checkbox1.setCheckAll(false);
- grp_sea.checkbox1.setData(["-"]);
- }
- var setData = String(grp_sea.checkbox1.getData()).replace(",", " ")
- ds_main_cond.setColumn(0, "section", setData);
- }
- /******************************************************************
- * Argument :
- * Description : 구역 DBget
- ******************************************************************/
- function fn_getErbase(){
- if(!utlf_isNull(ds_main_cond.getColumn(0, "section"))) {
- var getData = ds_main_cond.getColumn(0, "section").split(" ");
- grp_sea.checkbox1.setData(getData);
- }
- }
- /******************************************************************
- * Argument : fSearchSheet()
- * Description : 조회
- ******************************************************************/
- function fSearchSheet(){
- // ds_send.clear();
- // ds_send.addColumn("section", "string", 256);
- // var iRow = ds_send.addRow();
- // ds_send.setColumn(iRow, "section", ds_main_cond.getColumn(0, "section"));
- // trace(ds_send.saveXML());
- // dsf_createDsRow("ds_mainsearchinfo",
- // [{col:"test", type:"string", size:256, val:""}], true);
- //
- // var oParam = {};
- // oParam.id = "TRMNE00101";
- // oParam.service = "ercareapp.ERPatMngt";
- // oParam.method = "reqGetNurseMainInfo";
- // oParam.inds = "mainsearchinfo=ds_mainsearchinfo searchinfo=ds_send";
- // oParam.outds = "ds_main_nursemainlist=nursemaininfo";
- // oParam.async = false;
- // //oParam.callback = "cf_TRMNE00101";
- //
- // tranf_submit(oParam);
-
- var rendcd="";
- var chkdata=ds_main_cond.getColumn(0, "section");
- rendcd=ds_main_cond.getColumn(0, "section");
- var rendcdlist=rendcd.split(" ");
- if (chkdata.substr(0,1) != "-") {
- if (rendcd.length>0) {
- for (var i=0; i<rendcdlist.length;i++) {
- rendcd=rendcd.replace(" ","','");
- }
- rendcd="('" + rendcd + "')";
- }
- } else {
- rendcd = "-";
- }
- //model.makeValue("/root/main/cond/section",rendcd);
- var sSrchData = "";
- var sSrchHeader = "section▩";
- //var sSrchData = model.getValue("/root/main/cond/section")+"▩";
- sSrchData=rendcd ;
-
- ds_send.clear();
- ds_send.addColumn("section", "string", 256);
- var iRow = ds_send.addRow();
- ds_send.setColumn(iRow, "section", sSrchData);
-
- dsf_createDsRow("ds_mainsearchinfo",
- [{col:"test", type:"string", size:256, val:""}], true);
-
- var oParam = {};
- oParam.id = "TRMNE00101";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetNurseMainInfo";
- oParam.inds = "mainsearchinfo=ds_mainsearchinfo searchinfo=ds_send";
- oParam.outds = "ds_main_nursemainlist=nursemaininfo";
- oParam.async = false;
- //oParam.callback = "cf_TRMNE00101";
- tranf_submit(oParam);
- }
- /******************************************************************
- * Argument :
- * Description : 조회 button event
- ******************************************************************/
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearchSheet();
- }
- /******************************************************************
- * Argument :
- * Description : 출력 button event
- ******************************************************************/
- function grp_sea_btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/send/nursemainlist/nursemaininfo", ds_main_nursemainlist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "/root/send/cond", ds_main_cond); // 데이터셋 2
- //sysf_trace(objDOM.documentElement.source); // XML 내용출력
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;excel=1;";
- rptf_exeReportPreview30(["RPMNE01400"],[objParam], option, null, null);
- }
- /******************************************************************
- * Argument :
- * Description : 엑셀 button event
- ******************************************************************/
- function grp_sea_btn_excelprint_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_nursemainlist.rowcount > 0 ){
- grdf_exportExcel(grd_patlist, "인계용 Sheet", "인계용 Sheet", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- function SMMNE01400_ontimer(obj:Form, e:TimerEventInfo)
- {
- if (e.timerid == 0) {
- this.killTimer(0);
- fSearchSheet();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|