123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNW15300" position="absolute 0 0 1200 785" titletext="정맥염 발생보고" oninit="SMMNW15300_oninit" onload="SMMNW15300_onload" scrollbars="none">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1211 749" id="group5" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 24 1195 64" align="align:center top;" id="grp_sea" anchor="default">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 1195 40" id="roundrect3" class="roundrect_search" type="roundrectangle" anchor="default"/>
- <Static text="병 동 :" position="absolute 10 11 75 28" id="caption11" class="search_name" anchor="default"/>
- <Static text="보고일자 :" position="absolute 260 11 331 28" id="caption17" class="search_name" anchor="default"/>
- <Combo position="absolute 75 10 200 29" id="cmb_ward" class="combo_search" innerdataset="@ds_init_dept_dept" datacolumn="depthngnm" codecolumn="deptcd" anchor="default" displayrowcount="40" type="search"/>
- <Calendar position="absolute 335 10 440 29" id="ipt_genrdd" class="input_search" anchor="default" autoselect="true"/>
- <Button position="absolute 1005 10 1061 32" id="button1" class="btn1" text="조회" anchor="default" onclick="group5_grp_sea_button1_onclick"/>
- <Shape position="absolute 992 10 998 30" linetype="vertical" id="line1" class="line_4" anchor="default"/>
- <Static text="~" position="absolute 445 10 460 30" id="caption4" anchor="default"/>
- <Calendar position="absolute 460 10 565 29" id="input1" class="input_search" anchor="default" autoselect="true"/>
- <Button position="absolute 1121 10 1177 32" id="button2" class="btn6" taborder="9" text="출력" anchor="default" onclick="group5_grp_sea_button2_onclick"/>
- <Button position="absolute 1063 10 1119 32" id="button3" class="btn7" taborder="8" text="엑셀" anchor="default" onclick="group5_grp_sea_button3_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="정맥염 발생보고" position="absolute 0 0 137 25" id="caption6" class="tit_1" anchor="default"/>
- <Grid position="absolute 0 99 1195 749" id="grd_veingruplist" binddataset="ds_main_veingrupinfo_veingruplist" anchor="default" cellsizingtype="both" autosizingtype="row" extendsizetype="row" cellsizebandtype="allband">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="145"/>
- <Column size="90"/>
- <Column size="50"/>
- <Column size="75"/>
- <Column size="100"/>
- <Column size="130"/>
- <Column size="50"/>
- <Column size="150"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <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" text="단계"/>
- <Cell col="13" text="중재"/>
- <Cell col="14" text="등록자"/>
- <Cell col="15" text="recrid"/>
- <Cell col="16" text="genrplceid"/>
- <Cell col="17" text="causeid"/>
- <Cell col="18" text="stageid"/>
- <Cell col="19" text="interventionid"/>
- <Cell col="20" text="grupcd"/>
- <Cell col="21" text="instcd"/>
- <Cell col="22" text="indd"/>
- <Cell col="23" text="cretno"/>
- <Cell col="24" text="veifrecseq"/>
- <Cell col="25" text="signno"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" displaytype="combo" edittype="none" text="bind:wardcd" suppress="1" suppressalign="middle,over" combodataset="ds_init_dept_dept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
- <Cell col="2" style="align:center middle;" text="bind:pid" suppress="1" suppressalign="middle,over"/>
- <Cell col="3" style="align:left middle;" text="bind:patnm" suppress="1" suppressalign="middle,over"/>
- <Cell col="4" style="align:center middle;" text="bind:sex" suppress="2" suppressalign="middle,over"/>
- <Cell col="5" style="align:right middle;" text="bind:age" taborder="3" suppress="3" suppressalign="middle,over"/>
- <Cell col="6" displaytype="normal" edittype="none" style="align:left middle;" text="bind:veifpartnm" suppress="4" suppressalign="middle,over"/>
- <Cell col="7" displaytype="date" edittype="none" style="align:center middle;" text="bind:genrdd" suppress="5" suppressalign="middle,over" calendardisplaynulltype="none"/>
- <Cell col="8" displaytype="normal" edittype="none" style="align:center middle;" text="bind:genrtm" mask="expr:utlf_isNull(genrtm) ? '' : '##:##'" suppress="6" suppressalign="middle,over"/>
- <Cell col="9" displaytype="normal" edittype="none" style="align:left middle;" text="bind:genrplce" suppress="7" suppressalign="middle,over"/>
- <Cell col="10" displaytype="combo" edittype="none" style="padding:0 0 0 2;" text="bind:genrplcewardcd" suppress="8" suppressalign="middle,over" combodataset="ds_tmp_deptinfo_deptlist" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
- <Cell col="11" displaytype="normal" edittype="none" style="align:left middle;" text="bind:cause" suppress="9" suppressalign="middle,over"/>
- <Cell col="12" style="align:center middle;" text="bind:stage" suppress="10" suppressalign="middle,over"/>
- <Cell col="13" style="align:left middle;padding:3 2 3 2;" text="bind:intervention" wordwrap="both" suppress="11" suppressalign="middle,over" autosizerow="limitmin"/>
- <Cell col="14" style="align:left middle;" text="bind:recrnm" suppress="12" suppressalign="middle,over"/>
- <Cell col="15" text="bind:recrid"/>
- <Cell col="16" text="bind:genrplceid"/>
- <Cell col="17" text="bind:causeid"/>
- <Cell col="18" text="bind:stageid"/>
- <Cell col="19" text="bind:interventionid"/>
- <Cell col="20" text="bind:grupcd"/>
- <Cell col="21" text="bind:instcd"/>
- <Cell col="22" text="bind:indd"/>
- <Cell col="23" text="bind:cretno"/>
- <Cell col="24" text="bind:veifrecseq"/>
- <Cell col="25" text="bind:signno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 95 1195 101" linetype="horizontal" id="line4" class="line_10" anchor="default"/>
- <Static text="정맥염 발생보고" position="absolute 0 79 144 95" align="align:center middle;" id="caption1" class="tit_2" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static position="absolute 0 749 1000 779" id="caption2"/>
- <Div position="absolute 0 756 1200 783" id="grp_btn">
- <Layouts>
- <Layout>
- <Static text="[표]" position="absolute 1160 0 1190 20" id="caption3"/>
- </Layout>
- </Layouts>
- </Div>
- </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="wardcd" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="wardcd"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_veingrupinfo_veingruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_tmp_deptinfo_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_dept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_printdata_veingrupinfo_veingruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group5.grp_sea.cmb_ward" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
- <BindItem id="item1" compid="group5.grp_sea.ipt_genrdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item2" compid="group5.grp_sea.input1" propid="value" datasetid="ds_main_cond" columnid="todd"/>
- </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";
- function SMMNW15300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNW15300_onload(obj:Form, e:LoadEventInfo)
- {
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'W';
- var rslt_ref = "ds_init_dept_dept";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- var dt = utlf_getCurrentDate();
-
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, dt, "", "",rslt_ref ,false, "");
- frmf_addComboItem("group5.grp_sea.cmb_ward", "전 체", "", "above" );
- //발생장소(원내) 부서 코드 조회
- var oParam = {};
- oParam.id = "TRMNW11001";
- oParam.service = "wardorderapp.NursPrcpMngt";
- oParam.method = "reqGetDeptListInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_tmp_deptinfo_deptlist=deptlist";
- oParam.async = false;
-
- tranf_submit(oParam);
- dsf_makeValue(ds_main_cond,"fromdd", "string", dt);
- dsf_makeValue(ds_main_cond,"todd", "string", dt);
- }
- function group5_grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_reqdata.clearData();
- ds_send_reqdata.copyData(ds_main_cond);
- var oParam = {};
- oParam.id = "TRMNW15300";
- oParam.service = "wardcareapp.WardCareRec";
- oParam.method = "reqGetVeingrupList";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_main_veingrupinfo_veingruplist=veingruplist";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_main_veingrupinfo_veingruplist.rowposition = -1;
- }
- function group5_grp_sea_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_printdata_veingrupinfo_veingruplist.clearData();
- ds_send_printdata_veingrupinfo_veingruplist.copyData(ds_main_veingrupinfo_veingruplist); // 리스트copy
- for(var i=0 ; i< ds_send_printdata_veingrupinfo_veingruplist.rowcount;i++){
-
- // 병동 value -> label값으로 변경
- var wardnm = group5.grd_veingruplist.getCellText(i, group5.grd_veingruplist.getBindCellIndex("body","wardcd"));
- dsf_makeValue(ds_send_printdata_veingrupinfo_veingruplist,"wardnm", "string", wardnm, i);
-
- // 발생장소(원내) value -> label값으로 변경
- var genrplcewardnm = group5.grd_veingruplist.getCellText(i, group5.grd_veingruplist.getBindCellIndex("body","genrplcewardcd"));
- dsf_makeValue(ds_send_printdata_veingrupinfo_veingruplist,"genrplcewardnm", "string", genrplcewardnm, i);
- }
-
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/send/printdata/veingrupinfo/veingruplist", ds_send_printdata_veingrupinfo_veingruplist);// 데이터셋 1
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
- rptf_exeReportPreview30(["RPMNW15300"],[objParam], option);
- }
- function group5_grp_sea_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(group5.grd_veingruplist, "정맥염발생보고_" + utlf_getCurrentDate(), "SheetName1" , true, "" , "" , true);
- }
- ]]></Script>
- </Form>
- </FDL>
|