123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPASI04700" position="absolute 0 0 1200 800" titletext="병원체검사결과 기준자료" oninit="SPASI04700_oninit" onload="SPASI04700_onload">
- <Layouts>
- <Layout>
- <Button id="btn_excel" taborder="1" text="엑셀" class="btn7" position="absolute 946 773 1000 795" anchor="top right" onclick="btn_excel_onclick"/>
- <Grid id="grd_pathogenlist" taborder="2" binddataset="ds_main_pathogenlist" position="absolute 0 73 1186 770" anchor="all" autofittype="none" autoenter="select" cellsizingtype="col" cellclickbound="control" autoupdatetype="none" oncloseup="grd_pathogenlist_oncloseup" style="align:left middle;" scrollpixel="all" onenterdown="grd_pathogenlist_onenterdown" onexpandup="grd_pathogenlist_onexpandup">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="50"/>
- <Column size="100"/>
- <Column size="200"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="200"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="120"/>
- <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="시작일자"/>
- <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"/>
- <Cell col="1" displaytype="combo" edittype="combo" style="align:center;" text="bind:icdgrp" combodataset="ds_A0659" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:icdcd" combodataset="ds_A0657" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20"/>
- <Cell col="3" displaytype="combo" edittype="combo" text="bind:pthgogancd" combodataset="ds_A0658" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20"/>
- <Cell col="4" displaytype="date" edittype="date" text="bind:fromdd"/>
- <Cell col="5" displaytype="date" edittype="date" text="bind:todd"/>
- <Cell col="6" displaytype="combo" edittype="combo" style="align:center;" text="bind:testgn" combodataset="ds_testgn" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="7" displaytype="normal" edittype="normal" text="bind:prcpcd"/>
- <Cell col="8" style="align:left middle;" text="bind:prcpnm"/>
- <Cell col="9" edittype="expand" style="align:left middle;" text="bind:rsltval"/>
- <Cell col="10" edittype="expand" style="align:left middle;" text="bind:bacval"/>
- <Cell col="11" edittype="expand" style="align:left middle;" text="bind:antibioval"/>
- <Cell col="12" displaytype="normal" edittype="expand" text="bind:spmlist"/>
- <Cell col="13" edittype="normal" style="align:left middle;" text="bind:spmetc"/>
- <Cell col="14" displaytype="normal" edittype="expand" text="bind:inspctlist"/>
- <Cell col="15" edittype="normal" style="align:center middle;" text="bind:inspctetc"/>
- <Cell col="16" displaytype="normal" edittype="normal" style="align:left middle;" text="bind:rmk"/>
- <Cell col="17" displaytype="combo" edittype="combo" style="align:center;" text="bind:useyn" combodataset="ds_useyn" combocodecol="cdid" combodatacol="cdnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption6" text="병원체검사결과 기준자료" class="tit_1" position="absolute 0 0 224 25"/>
- <Button id="button1" taborder="3" text="저장" class="btn4" onclick="button1_onclick" anchor="right bottom" position="absolute 1073 773 1128 794" positiontype="position" tooltiptype="default"/>
- <Div id="Div00" anchor="left top right" taborder="4" class="div_SA" position="absolute 0 25 1186 65" scrollbars="none">
- <Layouts>
- <Layout>
- <Static id="caption2" text="감염병 :" class="search_name" position="absolute 210 11 308 31" anchor="default"/>
- <Shape id="line20" linetype="vertical" class="line_4" position="absolute 1097 10 1103 33" anchor="top right"/>
- <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 1116 11 1172 31" anchor="top right" onclick="Div00_btn_search_onclick"/>
- <Combo id="Combo00" taborder="7" text="Combo00" position="absolute 282 10 440 30" anchor="default" innerdataset="@ds_A0657" codecolumn="cdid" datacolumn="cdnm"/>
- <Static id="Static00" text="기준일 :" class="search_name" position="absolute 12 10 80 30" anchor="default"/>
- <Calendar id="cmb_orddd" taborder="8" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" onchanged="Div00_cmb_orddd_onchanged" position="absolute 83 10 176 30" style="align:center middle;" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_grdadd" taborder="5" text="행추가" class="btn2" visible="true" position="absolute 1005 773 1058 795" onclick="btn_grdadd_onclick"/>
- <Button id="btn_close" taborder="6" text="닫기" onclick="btn_close_onclick" class="btn4" position="absolute 1131 773 1186 794" anchor="right bottom"/>
- <CheckBox id="chk_unuse" taborder="7" text="미사용 포함" value="N" truevalue="Y" falsevalue="N" position="absolute 983 38 1067 58"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basedd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="icdcd" type="STRING" size="256" sumtext="처방명"/>
- <Column id="unuse" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_pathogenlist" 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="genrdd" type="STRING" size="256"/>
- <Column id="genrno" type="STRING" size="256"/>
- <Column id="icdgrp" type="STRING" size="256"/>
- <Column id="icdgrpnm" type="STRING" size="256"/>
- <Column id="icdcd" type="STRING" size="256"/>
- <Column id="icdcdnm" type="STRING" size="256"/>
- <Column id="pthgogancd" type="STRING" size="256"/>
- <Column id="pthgogancdnm" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="testgn" type="STRING" size="256"/>
- <Column id="testgnnm" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- <Column id="prcpnm" type="STRING" size="256"/>
- <Column id="spmlist" type="STRING" size="256"/>
- <Column id="spmetc" type="STRING" size="256"/>
- <Column id="inspctlist" type="STRING" size="256"/>
- <Column id="inspctetc" type="STRING" size="256"/>
- <Column id="rsltval" type="STRING" size="256"/>
- <Column id="bacval" type="STRING" size="256"/>
- <Column id="antibioval" type="STRING" size="256"/>
- <Column id="rmk" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_testgn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">A</Col>
- <Col id="cdnm">미생물</Col>
- </Row>
- <Row>
- <Col id="cdid">Z</Col>
- <Col id="cdnm">기타</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_A0657" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">-</Col>
- <Col id="cdnm">전체</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_useyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">Y</Col>
- <Col id="cdnm">Y</Col>
- </Row>
- <Row>
- <Col id="cdid">N</Col>
- <Col id="cdnm">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item3" compid="Div00.cmb_orddd" propid="value" datasetid="ds_cond" columnid="basedd"/>
- <BindItem id="item4" compid="chk_unuse" propid="value" datasetid="ds_cond" columnid="unuse"/>
- <BindItem id="item1" compid="Div00.Combo00" propid="value" datasetid="ds_cond" columnid="icdcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-12-18
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-12-18 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- function SPASI04700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grd_pathogenlist);
- }
- function SPASI04700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setToolTipBind(grd_pathogenlist);
- grdf_setRowTypeIcon(grd_pathogenlist, 0);
-
- appf_getCodeList([{dsNm: "ds_A0657", cdGrpId: "A0657"}
- , {dsNm: "ds_A0658", cdGrpId: "A0658"}
- , {dsNm: "ds_A0659", cdGrpId: "A0659"}], true);
-
- frmf_addComboItem("Div00.Combo00"); //질병명 콤보 전체항목 추가
-
- ds_cond.setColumn(0, "basedd", utlf_getCurrentDate());
- ds_cond.setColumn(0, "icdcd", "-"); // 전체
- ds_cond.setColumn(0, "unuse", "N");
-
- if(lf_ContainsHardCD("584", sysf_getUserInfo ("userid"))) { // 584 질별관리본부 자동신고체계 신고 사용자
- frmf_btnSetEnable(button1, true, ""); // 저장 버튼 활성화
- } else {
- frmf_btnSetEnable(button1, false, "저장을 권한이 없습니다. 감염관리실에 문의 하세요."); // 저장 버튼 비활성화
- }
-
- Div00.btn_search.onclick.fireEvent(Div00.btn_search, new ClickEventInfo());
- }
- function Div00_input5_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- Div00.btn_search.onclick.fireEvent(Div00.btn_search, new ClickEventInfo());
- }
- }
- function Div00_input6_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- Div00.btn_search.onclick.fireEvent(Div00.btn_search, new ClickEventInfo());
- }
- }
- function Div00_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- getPathogenList();
- }
- function getPathogenList() {
- var oParam = {};
- oParam.id = "TRASI04701";
- oParam.service = "infcmngtapp.LglyDisMngt";
- oParam.method = "reqGetPathogenList";
- oParam.inds = "req=ds_cond";
- oParam.outds = "ds_main_pathogenlist=pathogenlist";
- oParam.async = false;
-
- tranf_submit(oParam);
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_pathogenlist, "병원체 신고 기준", "SheetName");
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var oDsUpdate = grdf_getGridUpdateData(grd_pathogenlist);
- grdf_setStatusColumn(oDsUpdate, "m");
- ds_savedata.copyData(oDsUpdate, true);
- var oParam = {};
- oParam.id = "TXASI04701";
- oParam.service = "infcmngtapp.LglyDisMngt";
- oParam.method = "reqExePathogenList";
- oParam.inds = "savedata=ds_savedata";
- oParam.async = false;
- oParam.callback = "cf_TXASI04701";
- tranf_submit(oParam);
- }
- function cf_TXASI04701(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode != 0) {
- sysf_messageBox("병원체 신고 기준정보 저장에 실패 하였습니다.", "E");
- } else {
- sysf_messageBox( "저장 되었습니다.", "I999");
- getPathogenList();
- }
- }
- function ds_limantibiodruglist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chkflag") {
- obj.setColumn(e.row, e.columnid, (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
-
- if(e.newvalue == "Y" || e.newvalue == 1) {
- obj.setColumn(e.row, "valitodd", "99991231");
- } else {
- obj.setColumn(e.row, "valitodd", utlf_getCurrentDate() - 1);
- }
- }
- }
- function grd_pathogenlist_onenterdown(obj:Grid, e:GridEditEventInfo)
- {
- obj.showEditor(false);
- }
- function grd_pathogenlist_oncloseup(obj:Grid, e:GridEditEventInfo)
- {
- obj.showEditor(false);
- }
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- var nRow = ds_main_pathogenlist.addRow();
- grd_pathogenlist.setCellPos(nRow);
-
- ds_main_pathogenlist.setColumn(nRow, "fromdd", utlf_getCurrentDate());
- ds_main_pathogenlist.setColumn(nRow, "todd", "99991231");
- ds_main_pathogenlist.setColumn(nRow, "prcpcd", "-");
- ds_main_pathogenlist.setColumn(nRow, "testgn", "A");
- ds_main_pathogenlist.setColumn(nRow, "useyn", "Y");
- }
- function grd_pathogenlist_onexpandup(obj:Grid, e:GridMouseEventInfo)
- {
- var nRow = obj.currentrow;;
- var sGenrDd = ds_main_pathogenlist.getColumn(nRow, "genrdd");
- var sGenrNo = ds_main_pathogenlist.getColumn(nRow, "genrno");
-
- if( utlf_isNull(sGenrDd) || utlf_isNull(sGenrNo)) {
- sysf_messageBox ("병원체 기본정보를 저장후 진행 가능 합니다.", "E999" );
- return;
- }
-
- frmf_setParameter("SPASI04700_genrdd", sGenrDd);
- frmf_setParameter("SPASI04700_genrno", sGenrNo);
-
- // 검체유형 클릭시
- if( e.col == obj.getBindCellIndex("body", "spmlist")) {
- frmf_setParameter("SPASI04700_gubun", "1");
- frmf_modal("SPASI04710", "SPASI04710" ,"","","", "100", "100", "", "", "", "", "","M");
- }
-
- // 검사방법 클릭시
- if( e.col == obj.getBindCellIndex("body", "inspctlist")) {
- frmf_setParameter("SPASI04700_gubun", "2");
- frmf_modal("SPASI04720", "SPASI04720" ,"","","", "100", "100", "", "", "", "", "","M");
- }
-
-
- // 결과값 클릭시
- if( e.col == obj.getBindCellIndex("body", "rsltval")) {
- frmf_setParameter("SPASI04700_gubun", "3");
- frmf_modal("SPASI04730", "SPASI04730" ,"","","", "100", "100", "", "", "", "", "","M");
- }
-
- // 배양균 클릭시
- if( e.col == obj.getBindCellIndex("body", "bacval")) {
- frmf_setParameter("SPASI04700_gubun", "4");
- frmf_modal("SPASI04740", "SPASI04740" ,"","","", "100", "100", "", "", "", "", "","M");
- }
-
- // 내성항생제 클릭시
- if( e.col == obj.getBindCellIndex("body", "antibioval")) {
- frmf_setParameter("SPASI04700_gubun", "5");
- frmf_modal("SPASI04750", "SPASI04750" ,"","","", "100", "100", "", "", "", "", "","M");
- }
-
- frmf_clearParameter("SPASI04700_genrdd");
- frmf_clearParameter("SPASI04700_genrno");
- frmf_clearParameter("SPASI04700_gubun");
-
- getPathogenList();
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|