123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMMO05800" position="absolute 0 0 1195 784" titletext="수술장부조회" oninit="SMMMO05800_oninit" onload="SMMMO05800_onload">
- <Layouts>
- <Layout>
- <Button id="btn_reqpatinfo" taborder="2" visible="false" position="absolute 438 81 478 101" onclick="btn_reqpatinfo_onclick" anchor="top"/>
- <Static text="수술장부조회" position="absolute 0 0 200 24" id="caption6" class="tit_1"/>
- <Static text="수술장부" position="absolute 1 99 148 115" id="caption25" class="tit_2"/>
- <Button position="absolute 600 82 700 102" id="btn_diagnm" visible="false" text="button2" onclick="btn_diagnm_onclick" anchor="top"/>
- <Button position="absolute 898 81 998 101" id="btn_op" visible="false" text="button2" onclick="btn_op_onclick" anchor="top"/>
- <Grid position="absolute 0 117 1194 783" id="grd_opschelist" binddataset="ds_main_opreclist" cellsizingtype="col" anchor="all" selecttype="multirow" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="50" band="left"/>
- <Column size="60" band="left"/>
- <Column size="60" band="left"/>
- <Column size="40" band="left"/>
- <Column size="70" band="left"/>
- <Column size="0"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="95"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="30"/>
- <Column size="55"/>
- <Column size="40"/>
- <Column size="40"/>
- </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="S/A"/>
- <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="Assistant1"/>
- <Cell col="14" text="마취방법"/>
- <Cell col="15" text="협진"/>
- <Cell col="16" text="소요시간"/>
- <Cell col="17" text="입실"/>
- <Cell col="18" text="퇴실"/>
- </Band>
- <Band id="body">
- <Cell style="background:URL('theme://images/bg_gridHead.png') stretch 3,3;background2:URL('theme://images/bg_gridHead.png') stretch 3,3;" text="expr:currow+1"/>
- <Cell col="1" style="align:left;" text="bind:roomcd"/>
- <Cell col="2" text="bind:hngnm"/>
- <Cell col="3" text="bind:pid"/>
- <Cell col="4" text="bind:sa"/>
- <Cell col="5" displaytype="date" text="bind:opcnfmdd"/>
- <Cell col="6" text="bind:opfromtm" mask="hh:nn"/>
- <Cell col="7" style="align:left middle;padding:0 3 0 3;" text="bind:diagnm"/>
- <Cell col="8" style="align:left middle;padding:0 3 0 3;" text="bind:opnm"/>
- <Cell col="9" style="align:left middle;padding:0 3 0 3;" text="bind:diagnm2"/>
- <Cell col="10" style="align:left middle;padding:0 3 0 3;" text="bind:opnm2"/>
- <Cell col="11" style="align:left middle;padding:0 3 0 3;" text="bind:perfdeptnm"/>
- <Cell col="12" text="bind:perfdrnm"/>
- <Cell col="13" text="bind:assistant1"/>
- <Cell col="14" displaytype="combo" edittype="combo" text="bind:anstmthdcd" combodataset="ds_init_M0017" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="15" text="bind:cnstopflag"/>
- <Cell col="16" text="bind:durtime" mask="expr:grdf_setCellMask(durtime,"##:##")"/>
- <Cell col="17" text="bind:patinroomdt" mask="expr:grdf_setCellMask(patinroomdt,"##:##")"/>
- <Cell col="18" text="bind:patoutroomdt" mask="expr:grdf_setCellMask(patoutroomdt,"##:##")"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1129 95 1190 114" id="button1" class="btn7" text="Excel" onclick="button1_onclick" anchor="top right"/>
- <Div id="grp_srch" taborder="1" position="absolute 0 24 1194 90" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption2" text="집 도 의 :" class="search_name" position="absolute 818 11 891 28" anchor="default"/>
- <Static id="caption3" text="등록번호 :" class="search_name" position="absolute 9 38 90 55" anchor="default"/>
- <Static id="caption1" text="~" position="absolute 386 10 401 30" anchor="default"/>
- <Shape id="line3" linetype="vertical" position="absolute 1120 7 1126 60" anchor="top right"/>
- <Static id="caption4" text="집 도 과 :" class="search_name" position="absolute 521 11 592 28" anchor="default"/>
- <Static id="caption5" text="총 : 명" class="search_name" position="absolute 10 11 107 28" anchor="default"/>
- <Static id="caption7" text="수술기간 :" class="search_name" position="absolute 194 11 267 28" anchor="default"/>
- <Static id="caption9" text="성 명 :" class="search_name" position="absolute 194 38 267 55" anchor="default"/>
- <Button id="btn_prcpclsnm" taborder="2" class="icon_search" position="absolute 379 39 395 55" anchor="default" onclick="grp_srch_btn_prcpclsnm_onclick"/>
- <Static id="caption10" text="진 단 명 :" class="search_name" position="absolute 521 38 592 55" anchor="default"/>
- <Edit id="input4" taborder="3" position="absolute 600 37 804 56" anchor="default" onkeydown="grp_srch_input4_onkeydown" oneditclick="grp_srch_input4_oneditclick" imemode="hangul"/>
- <Static id="caption11" text="수 술 명 :" class="search_name" position="absolute 818 38 889 55" anchor="default"/>
- <Edit id="input5" taborder="4" position="absolute 896 37 1100 56" anchor="default" onkeydown="grp_srch_input5_onkeydown" oneditclick="grp_srch_input5_oneditclick" imemode="hangul"/>
- <Edit id="ipt_pid" taborder="5" position="absolute 97 37 181 56" anchor="default" onkeydown="grp_srch_ipt_pid_onkeydown" autoselect="true"/>
- <Edit id="ipt_hngnm" taborder="6" enable="false" position="absolute 275 37 375 56" anchor="default"/>
- <Calendar id="ipt_fromdd" taborder="7" class="input" position="absolute 275 10 381 29" anchor="default" autoselect="true"/>
- <Calendar id="ipt_todd" taborder="8" class="input" position="absolute 400 10 506 29" anchor="default" autoselect="true"/>
- <Combo id="cmb_perfdeptcd" taborder="9" innerdataset="@ds_init_orddept" codecolumn="deptcd" datacolumn="depthngnm" position="absolute 600 10 700 29" anchor="default" onitemchanged="grp_srch_cmb_perfdeptcd_onitemchanged"/>
- <Combo id="cmb_perfdrid" taborder="10" position="absolute 896 10 996 29" anchor="default" codecolumn="userid" innerdataset="ds_init_userlist" datacolumn="usernm"/>
- <Button id="btn_req" taborder="11" text="조회" class="btn1" position="absolute 1132 22 1188 44" anchor="top right" onclick="grp_srch_btn_req_onclick"/>
- <CheckBox id="cb_cnstopflag" taborder="13" position="absolute 1016 9 1091 29" anchor="default" text="협진포함" truevalue="Y"/>
- <Static id="output1" position="absolute 65 10 85 27" style="align:right middle;"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="usernm" type="STRING"/>
- <Column id="userid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_opreclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="roomcd" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="sa" type="STRING"/>
- <Column id="opcnfmdd" type="STRING"/>
- <Column id="opfromtm" type="STRING"/>
- <Column id="diagnm" type="STRING"/>
- <Column id="opnm" type="STRING"/>
- <Column id="opnm2" type="STRING"/>
- <Column id="perfdeptnm" type="STRING"/>
- <Column id="perfdrnm" type="STRING"/>
- <Column id="assistant1" type="STRING"/>
- <Column id="anstmthdcd" type="STRING"/>
- <Column id="cnstopflag" type="STRING"/>
- <Column id="durtime" type="STRING"/>
- <Column id="patinroomdt" type="STRING"/>
- <Column id="patoutroomdt" 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="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="perfdeptcd" type="STRING" size="256"/>
- <Column id="perfdrid" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="diagcd" type="STRING" size="256"/>
- <Column id="diaghngnm" type="STRING" size="256"/>
- <Column id="opcd" type="STRING" size="256"/>
- <Column id="ophngnm" type="STRING" size="256"/>
- <Column id="cnstopflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_patnm" 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_main_totcnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="totcnt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_M0017" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_srch.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item1" compid="grp_srch.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
- <BindItem id="item2" compid="grp_srch.cmb_perfdeptcd" propid="value" datasetid="ds_main_cond" columnid="perfdeptcd"/>
- <BindItem id="item3" compid="grp_srch.cmb_perfdrid" propid="value" datasetid="ds_main_cond" columnid="perfdrid"/>
- <BindItem id="item4" compid="grp_srch.cb_cnstopflag" propid="value" datasetid="ds_main_cond" columnid="cnstopflag"/>
- <BindItem id="item5" compid="grp_srch.ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
- <BindItem id="item6" compid="grp_srch.ipt_hngnm" propid="value" datasetid="ds_main_cond" columnid="hngnm"/>
- <BindItem id="item7" compid="grp_srch.input4" propid="value" datasetid="ds_main_cond" columnid="diaghngnm"/>
- <BindItem id="item8" compid="grp_srch.input5" propid="value" datasetid="ds_main_cond" columnid="ophngnm"/>
- <BindItem id="item9" compid="grp_srch.output1" propid="text" datasetid="ds_main_totcnt" columnid="totcnt"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-02-10
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-02-10 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "emr_prcpmngtxp::MMO001.xjs"
- include "emr_prcpmngtxp::MMOCommon.xjs"
- include "emr_prcpmngtxp::SMMMO05800.xjs"
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMMO05800
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 열릴때 초기화 실행
- ****************************************************************************************/
- function SMMMO05800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMMO05800
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면오픈시 폼load이후 실행
- ****************************************************************************************/
- function SMMMO05800_onload(obj:Form, e:LoadEventInfo)
- {
- //Grid Init
- grdf_setGridSort(grd_opschelist);
- grdf_setToolTipBind(grd_opschelist);
-
- fInitialize_SMMMO05800();
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : grp_srch.cmb_perfdeptcd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 집도과 변경시 집도의 조회
- ****************************************************************************************/
- function grp_srch_cmb_perfdeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var orddept = ds_main_cond.getColumn(0,"perfdeptcd");
- if(orddept != "-"){
- lf_mmbfGetUserComboList(ds_init_userlist, orddept, "0330", "", "", "", "", "", "", "");
-
- //dsf_addDsItem( ds_init_userlist, "userid", "usernm", "전체", "-", "above"); //의사콤보(담당교수) 전체항목 추가
- frmf_addComboItem("grp_srch.cmb_perfdrid"); //의사콤보 전체항목 추가
- grp_srch.cmb_perfdrid.value = "-";
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_srch.ipt_pid
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 환자번호 입력후 엔터로 환자정보 조회
- ****************************************************************************************/
- function grp_srch_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- ds_main_cond.setColumn(0, "pid", grp_srch.ipt_pid.value);
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("btn_reqpatinfo", "onclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_reqpatinfo
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 환자조회
- ****************************************************************************************/
- function btn_reqpatinfo_onclick(obj:Button, e:ClickEventInfo)
- {
- var pid = ds_main_cond.getColumn(0,"pid");
- if(utlf_isNull(pid)){
- return;
- }
-
- if(lf_reqPatInfo(ds_init_patnm,"pid","ptbs",pid)==true){
- var hngnm = ds_init_patnm.getColumn(0,"hngnm");
- ds_main_cond.setColumn(0,"hngnm", hngnm);
- fReqOpRecInfo();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_srch.btn_prcpclsnm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 환자조회 팝업 오픈
- ****************************************************************************************/
- function grp_srch_btn_prcpclsnm_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SPPMC02500", "SPPMC02500", "", "", "", "", "", "", "", "", "", "", "M");
- var sPid = ds_patinfolist.getColumn(0,"pid");
- var sHngnm = ds_patinfolist.getColumn(0,"hngnm");
- ds_main_cond.setColumn(0,"pid",sPid);
- ds_main_cond.setColumn(0,"hngnm",sHngnm);
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_srch.input4
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단명 입력후 엔터로 진단검색
- ****************************************************************************************/
- function grp_srch_input4_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- ds_main_cond.setColumn(0, "diaghngnm", grp_srch.input4.value);
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("btn_diagnm", "onclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_srch.input4
- * Event : oneditclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단명 입력하려 클릭시 입력란 초기화
- ****************************************************************************************/
- function grp_srch_input4_oneditclick(obj:Edit, e:EditClickEventInfo)
- {
- ds_main_cond.setColumn(0,"diagcd" , "");
- ds_main_cond.setColumn(0,"diaghngnm", "");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_diagnm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단명 조회
- ****************************************************************************************/
- function btn_diagnm_onclick(obj:Button, e:ClickEventInfo)
- {
- fSrchDiag();
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_srch.input5
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 수술명 입력후 엔터로 수술검색
- ****************************************************************************************/
- function grp_srch_input5_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- ds_main_cond.setColumn(0, "ophngnm", grp_srch.input5.value);
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("btn_op", "onclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_srch.input5
- * Event : oneditclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 수술명 입력하려 클릭시 입력란 초기화
- ****************************************************************************************/
- function grp_srch_input5_oneditclick(obj:Edit, e:EditClickEventInfo)
- {
- ds_main_cond.setColumn(0,"opcd" , "");
- ds_main_cond.setColumn(0,"ophngnm" , "");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_op
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 수술명 조회
- ****************************************************************************************/
- function btn_op_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearchOpTermCD();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_srch.btn_req
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 수술장부 조회
- ****************************************************************************************/
- function grp_srch_btn_req_onclick(obj:Button, e:ClickEventInfo)
- {
- fReqOpRecInfo();
- }
- /****************************************************************************************
- * 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)
- {
- if(ds_main_opreclist.rowcount > 0) {
- grdf_exportExcel(grd_opschelist,"excel","sheet1");
- sysf_messageBox("저장이 ", "I002");
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|