123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNE05501" position="absolute 0 0 1229 906" titletext="환자상태 변화 시 보고체계" oninit="SMMNE05500_oninit" onload="SMMNE05500_onload" ontimer="SMMNE05500_ontimer">
- <Layouts>
- <Layout>
- <Static text="환자상태 변화 시 보고체계" position="absolute 0 0 1219 30" align="align:center middle;" id="caption6" style="align:center middle;font:dorum,16,bold;" onclick="caption6_onclick"/>
- <Shape id="line3" class="line_1" position="absolute 0 77 1220 88" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="grd_workerlist1" taborder="1" binddataset="ds_grd_workerlist1" useinputpanel="false" position="absolute 0 82 1222 900" autosizemergetype="nomerge" fillareatype="none" style="font:Dotum,9,bold;" cellsizingtype="row" scrollbars="autoboth" oncelldblclick="grd_workerlist1_oncelldblclick" extendsizetype="none" autosizingtype="none">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="123"/>
- <Column size="100"/>
- <Column size="180"/>
- <Column size="210"/>
- <Column size="180"/>
- <Column size="210"/>
- <Column size="200"/>
- </Columns>
- <Rows>
- <Row size="25" band="head"/>
- <Row size="27" band="head"/>
- <Row size="27" band="head"/>
- <Row size="24"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" rowspan="3" style="font:dotum,12,bold;" text="진료과" taborder="undefined"/>
- <Cell col="2" rowspan="3" style="font:dotum,12,bold;" text="과장" taborder="undefined"/>
- <Cell col="3" colspan="5" style="font:dotum,12,bold;" text="응급상황 발생 시 보고 체계" taborder="undefined"/>
- <Cell row="1" rowspan="2" style="font:dotum,12,bold;" text="일자" taborder="undefined"/>
- <Cell row="1" col="3" colspan="2" style="font:dotum,12,bold;" text="1차" taborder="undefined"/>
- <Cell row="1" col="5" colspan="2" style="font:dotum,12,bold;" text="2차" taborder="undefined"/>
- <Cell row="1" col="7" rowspan="2" style="font:dotum,12,bold;" text="3차" taborder="undefined"/>
- <Cell row="2" col="3" style="font:dotum,12,bold;" text="정규"/>
- <Cell row="2" col="4" style="font:dotum,12,bold;" text="야간 및 공휴일"/>
- <Cell row="2" col="5" style="font:dotum,12,bold;" text="정규"/>
- <Cell row="2" col="6" style="font:dotum,12,bold;" text="야간 및 공휴일"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" rowspan="2" celltype="body" style="align:left;font:dotun,10,bold;" text="bind:deptnm" taborder="undefined"/>
- <Cell col="2" rowspan="2" celltype="body" style="font:dotum,9,bold;" text="bind:docname1" taborder="undefined"/>
- <Cell col="3" celltype="body" style="padding:2 2 2 2;" text="bind:cdnm2"/>
- <Cell col="4" celltype="body" text="bind:cdnm3"/>
- <Cell col="5" celltype="body" text="bind:cdnm4"/>
- <Cell col="6" celltype="body" text="bind:cdnm5" suppress="0"/>
- <Cell col="7" celltype="body" text="bind:cdnm6"/>
- <Cell row="1"/>
- <Cell row="1" col="3" style="align:left;padding:2 2 2 2;" text="bind:docname2" autosizerow="default"/>
- <Cell row="1" col="4" style="align:left;" text="bind:docname3"/>
- <Cell row="1" col="5" style="align:left;" text="bind:docname4"/>
- <Cell row="1" col="6" style="align:left;" text="bind:docname5" suppress="0" suppressalign="first"/>
- <Cell row="1" col="7" style="align:left;" text="bind:docname6"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="group2" taborder="2" class="div_SA" position="absolute 0 35 1221 75">
- <Layouts>
- <Layout>
- <Shape id="line20" linetype="vertical" class="line_4" position="absolute 1131 10 1137 33" anchor="default"/>
- <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 1150 10 1206 32" onclick="group2_btn_search_onclick" anchor="default"/>
- <Static id="caption52" text="조회일자 :" class="search_name" position="absolute 14 11 100 28" anchor="default"/>
- <Calendar id="int_outdt" taborder="4" position="absolute 112 11 223 30" dateformat="yyyy-MM-dd" value="null" autoselect="true" oneditclick="group2_int_outdt_oneditclick" style="align:center middle;" anchor="default"/>
- <CheckBox id="CheckBox00" taborder="5" text="의사보기" position="absolute 294 10 394 30" onchanged="group2_CheckBox00_onchanged"/>
- <CheckBox id="CheckBox01" taborder="6" text="재생성" position="absolute 1049 14 1108 34" onclick="group2_CheckBox01_onclick" visible="false"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line00" class="line_1" position="absolute 0 899 1222 905" style="strokepen:3 solid #33bbbbff;"/>
- <Button id="btn_bfday" taborder="4" onclick="group4_btn_bfmonth_onclick" class="icon_pre" position="absolute 92 47 108 63"/>
- <Button id="btn_afday" taborder="5" onclick="group4_btn_afmonth_onclick" class="icon_next" position="absolute 225 47 241 63"/>
- <Grid id="grd_workerlist2" taborder="6" binddataset="ds_grd_workerlist1" useinputpanel="false" cellsizingtype="row" oncelldblclick="grd_workerlist1_oncelldblclick" position="absolute 0 82 1222 900" style="font:Dotum,9,bold;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="123"/>
- <Column size="100"/>
- <Column size="180"/>
- <Column size="210"/>
- <Column size="180"/>
- <Column size="210"/>
- <Column size="200"/>
- </Columns>
- <Rows>
- <Row size="25" band="head"/>
- <Row size="27" band="head"/>
- <Row size="27" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" rowspan="3" style="font:dotum,12,bold;" text="진료과" taborder="undefined"/>
- <Cell col="2" rowspan="3" style="font:dotum,12,bold;" text="과장" taborder="undefined"/>
- <Cell col="3" colspan="5" style="font:dotum,12,bold;" text="응급상황 발생 시 보고 체계" taborder="undefined"/>
- <Cell row="1" rowspan="2" style="font:dotum,12,bold;" text="일자" taborder="undefined"/>
- <Cell row="1" col="3" colspan="2" style="font:dotum,12,bold;" text="1차" taborder="undefined"/>
- <Cell row="1" col="5" colspan="2" style="font:dotum,12,bold;" text="2차" taborder="undefined"/>
- <Cell row="1" col="7" rowspan="2" style="font:dotum,12,bold;" text="3차" taborder="undefined"/>
- <Cell row="2" col="3" style="font:dotum,12,bold;" text="정규"/>
- <Cell row="2" col="4" style="font:dotum,12,bold;" text="야간 및 공휴일"/>
- <Cell row="2" col="5" style="font:dotum,12,bold;" text="정규"/>
- <Cell row="2" col="6" style="font:dotum,12,bold;" text="야간 및 공휴일"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" celltype="body" style="align:left;font:dotun,10,bold;" text="bind:deptnm" taborder="undefined"/>
- <Cell col="2" celltype="body" style="font:dotum,9,bold;" text="bind:docname1" taborder="undefined"/>
- <Cell col="3" celltype="body" style="padding:2 2 2 2;" text="bind:cdnm2"/>
- <Cell col="4" celltype="body" text="bind:cdnm3"/>
- <Cell col="5" celltype="body" text="bind:cdnm4"/>
- <Cell col="6" celltype="body" text="bind:cdnm5" suppress="0"/>
- <Cell col="7" celltype="body" text="bind:cdnm6"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_workerlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="docname1" type="STRING" size="256"/>
- <Column id="docname2" type="STRING" size="256"/>
- <Column id="docname3" type="STRING" size="256"/>
- <Column id="docname4" type="STRING" size="256"/>
- <Column id="docname5" type="STRING" size="256"/>
- <Column id="docname6" type="STRING" size="256"/>
- <Column id="bigo" type="STRING" size="256"/>
- <Column id="cdnm1" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="workdd" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="workdd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="dutycd" type="STRING" size="256"/>
- <Column id="dutycdnm" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item1" compid="group2.int_outdt" propid="value" datasetid="ds_send" columnid="workdd"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fSearch(){
-
-
- var oParam = {};
- oParam.id = "TRMNE05503";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetReportWorkScheList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_grd_workerlist1=workerinfolist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNE05501";
- tranf_submit(oParam);
- //trace(ds_grd_workerlist1.saveXML());
-
- var docname1 = ds_grd_workerlist1.getColumn(0,"docname1");
- if(ds_grd_workerlist1.rowcount < 0 || utlf_isNull(docname1) ) {
- var oParam = {};
- oParam.id = "TRMNE05507";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetReportWorkScheList5";
- oParam.inds = "req=ds_send";
- oParam.outds = "";
- oParam.async = false;
-
- tranf_submit(oParam);
-
-
- var oParam = {};
- oParam.id = "TRMNE05503";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetReportWorkScheList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_grd_workerlist1=workerinfolist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNE05501";
- tranf_submit(oParam);
- }
-
- }
- function fSearch2(){
-
- var oParam = {};
- oParam.id = "TRMNE05507";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetReportWorkScheList5";
- oParam.inds = "req=ds_send";
- oParam.outds = "";
- oParam.async = false;
-
- tranf_submit(oParam);
-
-
- var oParam = {};
- oParam.id = "TRMNE05503";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetReportWorkScheList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_grd_workerlist1=workerinfolist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNE05501";
- tranf_submit(oParam);
-
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /******************************************************************
- * Argument :
- * Description : oninit 메서드
- ******************************************************************/
- function SMMNE05500_oninit(obj:Form, e:InitEventInfo){
-
- }
- /******************************************************************
- * Argument :
- * Description : onload 메서드
- ******************************************************************/
- function SMMNE05500_onload(obj:Form, e:LoadEventInfo){
- // 화면공통
- frmf_initForm(obj);
-
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var srchdd = utlf_getCurrentDate();
-
- ds_send.setColumn(0,"instcd",instcd);
- ds_send.setColumn(0,"workdd",srchdd);
-
-
-
-
- grdf_setToolTipBind(grd_workerlist1); //내용풍선으로 보이기
- grdf_setToolTipBind(grd_workerlist2); //내용풍선으로 보이기
-
- var mGrupCd = sysf_getGlobalVariable("menugroupcd");
- //MG01800000 //간호부서장용
- //MG02260000 //간호 superuser용
- var userid = sysf_getUserInfo("userid");
-
-
- if (userid == "EMR" || userid == "ENR" || mGrupCd == "MG01800000" || mGrupCd == "MG02260000" ) {
- group2.CheckBox01.visible = true;
- }
- grd_workerlist1.visible = false;
- this.setTimer(0, 100);
- //fSearch();
-
-
- }
- /******************************************************************
- * Argument :
- * Description : 조회 버튼 클릭
- ******************************************************************/
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo){
- fSearch();
- }
- function SMMNE05500_ontimer(obj:Form, e:TimerEventInfo)
- {
- if (e.timerid == 0) {
- this.killTimer(0);
- fSearch();
- }
- }
- function grd_workerlist1_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var objArg = new Object();
- ds_send_cond.clearData();
- ds_send_cond.addRow();
- var dutycd = "";
- var dutycdnm = "";
-
- if (e.col == 3 || e.col == 4 || e.col == 5 || e.col == 6 || e.col == 7 || e.col == 8 ) {
- if (e.col == 3) {
- dutycd = '10';
- dutycdnm = ds_grd_workerlist1.getColumn(ds_grd_workerlist1.rowposition,"cdnm2")
- }else if (e.col == 4) {
- dutycd = '11';
- dutycdnm = ds_grd_workerlist1.getColumn(ds_grd_workerlist1.rowposition,"cdnm3")
- }else if (e.col == 5) {
- dutycd = '20';
- dutycdnm = ds_grd_workerlist1.getColumn(ds_grd_workerlist1.rowposition,"cdnm4")
- }else if (e.col == 6) {
- dutycd = '21';
- dutycdnm = ds_grd_workerlist1.getColumn(ds_grd_workerlist1.rowposition,"cdnm5")
- }else if (e.col == 7) {
- dutycd = '30';
- dutycdnm = ds_grd_workerlist1.getColumn(ds_grd_workerlist1.rowposition,"cdnm6")
- }else if (e.col == 8) {
- dutycd = '99';
- dutycdnm = ds_grd_workerlist1.getColumn(ds_grd_workerlist1.rowposition,"cdnm7")
- }
- ds_send_cond.setColumn(0,"instcd",ds_send.getColumn(0,"instcd"));
- ds_send_cond.setColumn(0,"workdd",ds_send.getColumn(0,"workdd"));
- ds_send_cond.setColumn(0,"orddeptcd",ds_grd_workerlist1.getColumn(ds_grd_workerlist1.rowposition,"deptcd"));
- ds_send_cond.setColumn(0,"dutycd",dutycd);
- ds_send_cond.setColumn(0,"dutycdnm",dutycdnm);
- objArg.arg_cond = ds_send_cond;
-
- frmf_modal("SMMNE05502", "SMMNE05502", objArg, null, null,null,null, null, null, null, null, null, "M");
- }
- }
- function group4_btn_afyear_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- function fClkArrowBtn(objName){
- var basedd = ds_send.getColumn(0,"workdd");
- var sNewdd = "";
-
- //trace(objName);
-
- if(objName == "btn_bfday") {
- sNewdd = basedd.toDate("YYYYMMDD").getAddDate(-1, "D").getDateFormat();
- } else if(objName == "btn_bfmonth") {
- sNewdd = basedd.toDate("YYYYMMDD").getAddDate(-1, "M").getDateFormat();
- } else if(objName == "btn_afmonth") {
- sNewdd = basedd.toDate("YYYYMMDD").getAddDate(1, "M").getDateFormat();
- } else if(objName == "btn_afday"){
- sNewdd = basedd.toDate("YYYYMMDD").getAddDate(1, "D").getDateFormat();
- }
-
- if (!utlf_isNull(sNewdd)) {
- ds_send.setColumn(0,"workdd", sNewdd);
- fSearch();
- }
- }
- function group4_btn_afmonth_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- function group4_btn_bfmonth_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- function group2_CheckBox00_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- check_yn = obj.value;
- if (check_yn == true) {
- grd_workerlist1.visible = true;
- grd_workerlist2.visible = false;
- }else {
- grd_workerlist2.visible = true;
- grd_workerlist1.visible = false;
- }
-
- }
- function group2_CheckBox01_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- check_yn = obj.value;
- if (check_yn == true) {
- fSearch2();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|