123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNP00301" position="absolute 0 0 750 495" titletext="수술장비 목록" oninit="SPMNP00301_oninit" onload="SPMNP00301_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 5 6 745 489" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static text="장비 목록" position="absolute 0 54 158 70" id="caption1" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 70 740 76" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
- <Grid position="absolute 0 75 740 483" id="grd_opeqmtlist" binddataset="ds_main_opeqmtlist" anchor="default" oncellclick="grp_biz_grd_opeqmtlist_oncellclick" cellsizingtype="col" tooltiptype="hover" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="237"/>
- <Column size="105"/>
- <Column size="80"/>
- <Column size="85"/>
- <Column size="75"/>
- <Column size="110"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <Cell col="1" text="장비명"/>
- <Cell col="2" text="모델"/>
- <Cell col="3" text="제조원"/>
- <Cell col="4" text="Serial No."/>
- <Cell col="5" text="취득일"/>
- <Cell col="6" text="설치장소"/>
- <Cell col="7"/>
- <Cell col="8"/>
- <Cell col="9"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:check" tooltiptext="bind:check"/>
- <Cell col="1" style="align:left;" text="bind:goodflagengnm" tooltiptext="bind:goodflagengnm"/>
- <Cell col="2" style="align:left;" text="bind:goodmodel" tooltiptext="bind:goodmodel"/>
- <Cell col="3" style="align:left;" text="bind:prodcmpynm" tooltiptext="bind:prodcmpynm"/>
- <Cell col="4" style="align:left;" text="bind:mngtno" tooltiptext="bind:mngtno"/>
- <Cell col="5" displaytype="date" style="align:left;" text="bind:possndd" calendardisplaynulltype="none" tooltiptext="bind:possndd"/>
- <Cell col="6" displaytype="combo" style="align:left;" text="bind:installplcecd" combodataset="ds_init_installplcelist_installplceinfo" combocodecol="installplcecd" combodatacol="installplcenm" tooltiptext="bind:installplcecd" enable="false"/>
- <Cell col="7" text="bind:fixasetcd"/>
- <Cell col="8" text="bind:goodspec"/>
- <Cell col="9" text="bind:prodcmpy"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div position="absolute 0 0 740 35" id="group2" class="div_SA" anchor="default">
- <Layouts>
- <Layout>
- <Static text="수술방 :" position="absolute 5 10 66 27" id="caption3" class="search_name" anchor="default"/>
- <Combo position="absolute 66 8 205 27" id="cmb_installplcecd" innerdataset="@ds_init_installplcelist_installplceinfo" datacolumn="installplcenm" codecolumn="installplcecd" anchor="default" onitemchanged="grp_biz_group2_cmb_installplcecd_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 684 47 740 69" id="btn_select" class="btn4" text="선택" anchor="default" onclick="grp_biz_btn_select_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sendflag" type="STRING" size="256" sumtext="수술회복구분"/>
- <Column id="installplcecd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_installplcelist_installplceinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="installplcecd" type="STRING" size="256" sumtext="장비설치위치코드"/>
- <Column id="installplcenm" type="STRING" size="256" sumtext="장비설치위치명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_opeqmtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256"/>
- <Column id="fixasetcd" type="STRING" size="256" sumtext="수술장비코드 "/>
- <Column id="goodflagengnm" type="STRING" size="256" sumtext="수술장비명 "/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext="수술장비제조원명"/>
- <Column id="goodspec" type="STRING" size="256" sumtext="수술장비규격명 "/>
- <Column id="goodmodel" type="STRING" size="256" sumtext="수술장비모델 "/>
- <Column id="installplcecd" type="STRING" size="256" sumtext="장비설치위치코드"/>
- <Column id="possndd" type="STRING" size="256" sumtext="취득일자 "/>
- <Column id="mngtno" type="STRING" size="256" sumtext="장비SerialNo "/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="installplcecd" type="STRING" size="256"/>
- <Column id="sendflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.group2.cmb_installplcecd" propid="value" datasetid="ds_init_cond" columnid="installplcecd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_opanstxp -> SPMNP00301
- * Creator : yjh
- * Make Date : 2016-12-06
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-12-06 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNP00301
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPMNP00301_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNP00301
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPMNP00301_onload(obj:Form, e:LoadEventInfo)
- {
- ds_main_opeqmtlist.clearData();
- ds_init_installplcelist_installplceinfo.clearData();
-
- var sParam = opener.frmf_getParameter("SPMNP00300_searchFlag");
- var oproomdept = opener.frmf_getParameter("SPMNP00300_oproomdept");
- ds_init_cond.setColumn(0, "installplcecd", oproomdept);
- opener.frmf_setParameter("SPMNP00300_searchFlag", "");
- if(!utlf_isNull(sParam)){
- ds_init_cond.setColumn(0, "sendflag",sParam);
- //model.setValue("/root/send/sendflag",sParam);
- }else{
- ds_init_cond.setColumn(0, "sendflag", "OP");
- //model.setValue("/root/send/sendflag", "OP");
- }
- ds_send.setColumn(0, "sendflag", ds_init_cond.getColumn(0, "sendflag"));
-
- //2010.04.08 taebum 마취간호기록에서 장비 팝업 호출시 마취수술방이 조회되도록 sqlmap 에서 ANSTGIROK 용도 쿼리 추가
- var oParam = {};
- oParam.id = "TRMNP00307";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqGetInstallPlceList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_installplcelist_installplceinfo=installplceinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP00307";
- tranf_submit(oParam);
-
- frmf_addComboItem("grp_biz.group2.cmb_installplcecd", "전 체", "", "above" );
- grp_biz.group2.cmb_installplcecd.value = "";
-
- ds_send.setColumn(0, "installplcecd", ds_init_cond.getColumn(0, "installplcecd"));
-
- var oParam = {};
- oParam.id = "TRMNP00306";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqGetOPEqmtList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_opeqmtlist=opeqmtlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP00306";
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_main_opeqmtlist.getColumnInfo("check")) ){
- ds_main_opeqmtlist.addColumn("check", "string");
- }
-
- ds_main_opeqmtlist.rowposition = -1;
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_opeqmtlist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function grp_biz_grd_opeqmtlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var iRow = grp_biz.grd_opeqmtlist.currentrow;
- var sCheck = "0";
-
- if(grp_biz.grd_opeqmtlist.currentcol != 0 ){
- if(iRow < 0) return;
- sCheck = ds_main_opeqmtlist.getColumn(iRow, "check");
- if(sCheck == "1"){
- ds_main_opeqmtlist.setColumn(iRow, "check", "0");
- }else{
- ds_main_opeqmtlist.setColumn(iRow, "check", "1");
- }
- }
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : cmb_installplcecd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 콤보 값 변경시
- ****************************************************************************************/
- function grp_biz_group2_cmb_installplcecd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_send.setColumn(0, "installplcecd", ds_init_cond.getColumn(0, "installplcecd"));
-
- //마취간호기록에서 전체 선택시 마취방 장비만 조회되도록 수정_20100518_SMY
- var sendflag = ds_init_cond.getColumn(0, "sendflag");
- if(sendflag == "ANSTGIROK"){
- ds_send.setColumn(0, "sendflag", sendflag);
- }
-
- var oParam = {};
- oParam.id = "TRMNP00306";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqGetOPEqmtList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_opeqmtlist=opeqmtlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP00306";
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_main_opeqmtlist.getColumnInfo("check")) ){
- ds_main_opeqmtlist.addColumn("check", "string");
- }
-
- ds_main_opeqmtlist.rowposition = -1;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_select
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 선택버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_select_onclick(obj:Button, e:ClickEventInfo)
- {
- var sMsg = "opeqmtcd▦opeqmtnm▩";
- for(var iRow = 0; iRow < grp_biz.grd_opeqmtlist.rowcount; iRow++){
- if(ds_main_opeqmtlist.getColumn(iRow, "check") == "1"){
- sMsg += ds_main_opeqmtlist.getColumn(iRow, "fixasetcd" ) + "▦"
- + ds_main_opeqmtlist.getColumn(iRow, "goodflagengnm") + "▩";
- }
- }
- opener.frmf_setParameter("SPMNP00300_Return", sMsg);
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|