123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMR06003" position="absolute 0 0 1145 754" titletext="통계집계" oninit="SPMMR06003_oninit" onload="SPMMR06003_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 25 1145 61" id="roundrect3" class="div_SA" anchor="left top right"/>
- <Static text="수술일" position="absolute 15 35 76 53" id="caption2" class="search_name"/>
- <Static text="외상환자 수술대장" position="absolute 0 0 137 25" id="caption6" class="tit_1"/>
- <Static text="~" position="absolute 177 35 191 55" id="caption3"/>
- <Calendar position="absolute 80 34 174 53" align="align:center middle;" id="ipt_fromdd" class="input_search" taborder="1" mask="yyyy-mm-dd" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true"/>
- <Calendar position="absolute 192 34 286 53" align="align:center middle;" id="ipt_todd" class="input_search" taborder="1" mask="yyyy-mm-dd" dateformat="yyyy-MM-dd" autoselect="true" autoskip="true"/>
- <Button position="absolute 951 32 1007 54" id="button1" class="btn1" text="조회" onclick="button1_onclick" anchor="top right"/>
- <Button position="absolute 1073 32 1129 54" id="btn_excel" class="btn7" text="엑셀" onclick="btn_excel_onclick" anchor="top right"/>
- <Grid position="absolute 0 66 1145 754" align="align:center middle;" id="grd_list" binddataset="ds_main_opinfo" selecttype="multirow" cellsizingtype="col" anchor="all" cellsizebandtype="allband">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="59"/>
- <Column size="65"/>
- <Column size="53"/>
- <Column size="40"/>
- <Column size="68"/>
- <Column size="72"/>
- <Column size="52"/>
- <Column size="43"/>
- <Column size="175"/>
- <Column size="153"/>
- <Column size="69"/>
- <Column size="64"/>
- <Column size="82"/>
- <Column size="66"/>
- <Column size="76"/>
- <Column size="113"/>
- <Column size="106"/>
- </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="담당의"/>
- <Cell col="16" text="수술일시"/>
- <Cell col="17" text="입원일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="text" style="align:center;" text="bind:oproomcd"/>
- <Cell col="2" style="align:center top;padding:3 2 1 2;" text="bind:ward" wordwrap="char"/>
- <Cell col="3" text="bind:roomcd"/>
- <Cell col="4" text="bind:serflag"/>
- <Cell col="5" text="bind:pid"/>
- <Cell col="6" text="bind:hngnm"/>
- <Cell col="7" text="bind:sex"/>
- <Cell col="8" text="bind:age"/>
- <Cell col="9" displaytype="text" style="align:left top;padding:3 2 1 2;" text="bind:diagnm" wordwrap="char"/>
- <Cell col="10" displaytype="text" style="align:left top;padding:3 2 1 2;" text="bind:opnm" wordwrap="char"/>
- <Cell col="11" displaytype="text" style="align:left top;padding:3 2 1 2;" text="bind:perfdept" wordwrap="char"/>
- <Cell col="12" text="bind:perfdrnm"/>
- <Cell col="13" displaytype="text" style="align:left top;padding:3 2 1 2;" text="bind:orddeptnm" wordwrap="char"/>
- <Cell col="14" text="bind:medispcl"/>
- <Cell col="15" text="bind:atdoct"/>
- <Cell col="16" text="bind:opfromdt" mask="####-##-## ##:##"/>
- <Cell col="17" text="bind:indt" mask="####-##-## ##:##"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 630 32 686 54" id="button2" class="btn3" visible="false" text="배치" onclick="button2_onclick"/>
- <Static text="등록번호" position="absolute 325 35 410 52" id="caption1" class="search_name"/>
- <Edit position="absolute 400 34 500 53" id="input1" autoselect="true"/>
- <Button id="button7" taborder="2" text="출력" class="btn6" position="absolute 1012 32 1068 54" anchor="top right" onclick="button7_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_opinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="oproomcd" type="STRING"/>
- <Column id="ward" type="STRING"/>
- <Column id="roomcd" type="STRING"/>
- <Column id="serflag" type="STRING" size="0"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="sex" type="STRING"/>
- <Column id="age" type="STRING"/>
- <Column id="diagnm" type="STRING"/>
- <Column id="opnm" type="STRING"/>
- <Column id="perfdept" type="STRING"/>
- <Column id="perfdrnm" type="STRING"/>
- <Column id="orddeptnm" type="STRING"/>
- <Column id="medispcl" type="STRING"/>
- <Column id="atdoct" type="STRING"/>
- <Column id="opfromdt" type="STRING"/>
- <Column id="indt" type="STRING"/>
- </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="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="pid"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item1" compid="ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item2" compid="input1" propid="value" datasetid="ds_send" columnid="pid"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-05
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-05 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //include "com_basiccodexp::ZBC001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //var arErrorCode = new HashArray();
-
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 수술대장 조회
- ****************************************************************************************/
- function fSearch() {
- ds_main_opinfo.clearData();
- var oParam = {};
- oParam.id = "TRMMR04212";
- oParam.service = "anstrecapp.AnstRec";
- oParam.method = "reqGetTROPList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_opinfo=list";
- oParam.async = true;
- //oParam.callback = "cf_TRMMR04212";
- tranf_submit(oParam);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMMR06003
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SPMMR06003_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMMR06003
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SPMMR06003_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setGridSort(grd_list);
-
- ipt_fromdd.value = ((utlf_getCurrentDate().toDate()).getAddDate(-8,"D")).getDateFormat();
- ipt_todd.value = ((utlf_getCurrentDate().toDate()).getAddDate(-1,"D")).getDateFormat();
-
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회 버튼
- ****************************************************************************************/
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_excel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀 버튼
- ****************************************************************************************/
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_opinfo.rowcount == 0 ) return;
-
- grdf_exportExcel(grd_list, "excel" , "SheetName", true, "", "none", false);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 배치 버튼
- ****************************************************************************************/
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SPMMR06002", "SPMMR06002", null, null, null, null, null, null, null, null, null, null, "M");
- }
- function button7_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_makeValue(ds_send, "name", "string", "외상환자 수술대장");
-
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/opinfo/list", ds_main_opinfo); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "/root/send", ds_send); // 데이터셋 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(["RMMMR06003"],[objParam], option);
- }
- ]]></Script>
- </Form>
- </FDL>
|