123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SPPIJ03700" position="absolute 0 0 960 660" titletext="수술 예방적 항생제 사유조회" onload="SPPIJ03700_onload">
- <Layouts>
- <Layout>
- <Div id="grp_tle" position="absolute 0 0 865 13" style="">
- <Layouts>
- <Layout>
- <Static id="cap_title" class="tit_1" position="absolute 0 0 216 15" style="" text="수술 예방적 항생제 사유조회" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_biz" scrollbars="autoboth" position="absolute 0 19 942 628" style="">
- <Layouts>
- <Layout>
- <Grid id="grd_drgalist" binddataset="ds_main_optanti_optantilist" class="datagrid3" visible="true" position="absolute 0 92 940 606" style="">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="55" />
- <Column size="49" />
- <Column size="70" />
- <Column size="70" />
- <Column size="35" />
- <Column size="99" />
- <Column size="33" />
- <Column size="52" />
- <Column size="75" />
- <Column size="31" />
- <Column size="49" />
- <Column size="70" />
- <Column size="70" />
- <Column size="32" />
- <Column size="210" />
- </Columns>
- <Rows>
- <Row size="23" band="head" />
- <Row size="23" />
- </Rows>
- <Band id="head">
- <Cell text="환자번호" />
- <Cell col="1" text="환자명" />
- <Cell col="2" text="입원일자" />
- <Cell col="3" text="퇴원일자" />
- <Cell col="4" text="진료과" />
- <Cell col="5" text="진료과명" />
- <Cell col="6" text="주치의ID" />
- <Cell col="7" text="주치의" />
- <Cell col="8" text="처방코드" />
- <Cell col="9" text="처방자ID" />
- <Cell col="10" text="처방자" />
- <Cell col="11" text="처방일자" />
- <Cell col="12" text="등록일자" />
- <Cell col="13" text="퇴
원" />
- <Cell col="14" text="사유" />
- </Band>
- <Band id="body">
- <Cell text="bind:pid" />
- <Cell col="1" text="bind:patnm" />
- <Cell col="2" text="bind:orddd" />
- <Cell col="3" text="bind:dschdd" />
- <Cell col="4" text="bind:orddeptcd" />
- <Cell col="5" text="bind:orddeptnm" />
- <Cell col="6" text="bind:medispclid" />
- <Cell col="7" text="bind:medispclnm" />
- <Cell col="8" text="bind:calcscorcd" />
- <Cell col="9" text="bind:rgstrid" />
- <Cell col="10" text="bind:rgstrnm" />
- <Cell col="11" text="bind:prcpdd" />
- <Cell col="12" text="bind:rgstdd" />
- <Cell col="13" text="bind:dscdrug" />
- <Cell col="14" text="bind:resncnts" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="cap_judgtrgtman" class="tit_2" position="absolute 4 71 238 84" style="" text="수술 예방적 항생제 사유조회 리스트" />
- <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 87 940 90" style="" anchor="default" />
- <Div id="group1" position="absolute 0 5 940 60" style="align: top;">
- <Layouts>
- <Layout>
- <Shape id="roundrect3" anchor="default" type="roundrectangle" position="absolute 0 0 940 53" style="" />
- <Button id="btn_select" class="btn1_letter2" taborder="32" position="absolute 875 10 931 32" style="" text="조회" onclick="grp_biz_group1_btn_select_onclick" />
- <Shape id="line3" class="line_4" linetype="vertical" position="absolute 860 5 863 38" style="" anchor="default" />
- <Static id="caption30" class="search_name" position="absolute 8 6 103 23" style="" text="환자번호 :" />
- <Edit id="ipt_personalsearch" class="input_search" position="absolute 95 5 185 24" style="" anchor="default" onkeypress="grp_biz_group1_ipt_personalsearch_onkeypress" onlbuttonup="grp_biz_group1_ipt_personalsearch_onlbuttonup" />
- <Static id="caption1" class="search_name" position="absolute 8 29 103 46" style="" text="입원일자 :" />
- <Calendar id="ipt_fromdate" class="input_search" mask="yyyy-mm-dd" position="absolute 95 27 185 46" style="" anchor="default" />
- <Combo innerdataset="ds_init_list1_deptlist" datacolumn="depthngnm" codecolumn="deptcd" columncount="-1" rowcount="-1" id="cmb_orddeptcd" class="combo_search" position="absolute 329 6 450 25" style="" onitemchanged="grp_biz_group1_cmb_orddeptcd_onitemchanged" />
- <Static id="caption9" class="search_name" position="absolute 245 7 331 24" style="" text="진료과:" />
- <Combo innerdataset="ds_hidden_list2_atdoctlist" datacolumn="atdocthngnm" codecolumn="atdoctid" columncount="-1" rowcount="-1" id="cmb_orddrid" class="combo_search" position="absolute 330 28 410 47" style="" />
- <Static id="caption8" class="search_name" position="absolute 244 27 330 44" style="" text="주치의:" />
- <Edit id="ipt_cd" class="input_search" position="absolute 560 5 672 24" style="" anchor="default" onlbuttonup="grp_biz_group1_ipt_cd_onlbuttonup" />
- <Static id="caption2" class="search_name" position="absolute 469 6 555 23" style="" text="코드조회 :" />
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_excelsave" class="btn2_letter4" position="absolute 875 67 939 86" style="" text="엑셀저장" onclick="grp_biz_btn_excelsave_onclick" />
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_cancel" class="btn4_letter2" position="absolute 884 633 940 655" style="" text="종료" />
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_temp_picmmech" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="picmmech_calcscorcd" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_optanti" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="optantilist" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="optantilist"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_patinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_sppmc02500_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchcond" type="STRING" size="256" />
- <Column id="pid" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchcond"></Col>
- <Col id="pid"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="drgno" type="STRING" size="256" />
- <Column id="cd_name" type="STRING" size="256" />
- <Column id="instcd" type="STRING" size="256" />
- <Column id="opkind" type="STRING" size="256" />
- <Column id="pid" type="STRING" size="256" />
- <Column id="orddd" type="STRING" size="256" />
- <Column id="orddeptcd" type="STRING" size="256" />
- <Column id="medispclid" type="STRING" size="256" />
- <Column id="calcscorcd" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="drgno"></Col>
- <Col id="cd_name"></Col>
- <Col id="instcd">031</Col>
- <Col id="opkind">A</Col>
- <Col id="pid"></Col>
- <Col id="orddd"></Col>
- <Col id="orddeptcd"></Col>
- <Col id="medispclid"></Col>
- <Col id="calcscorcd"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_sppmc02500" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_hidden_smpic00200_judgsrch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="con2_gsflag" type="STRING" size="256" />
- <Column id="con3_search1" type="STRING" size="256" />
- <Column id="con4_search2" type="STRING" size="256" />
- <Column id="con1_dd" type="STRING" size="256" />
- <Column id="con5_insu" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="con2_gsflag"></Col>
- <Col id="con3_search1"></Col>
- <Col id="con4_search2"></Col>
- <Col id="con1_dd"></Col>
- <Col id="con5_insu"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_smpic00200" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="init" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="init"></Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.group1.ipt_personalsearch" propid="value" datasetid="ds_send" columnid="pid" />
- <BindItem id="item1" compid="grp_biz.group1.ipt_fromdate" propid="value" datasetid="ds_send" columnid="orddd" />
- <BindItem id="item2" compid="grp_biz.group1.cmb_orddeptcd" propid="value" datasetid="ds_send" columnid="orddeptcd" />
- <BindItem id="item3" compid="grp_biz.group1.cmb_orddrid" propid="value" datasetid="ds_send" columnid="medispclid" />
- <BindItem id="item4" compid="grp_biz.group1.ipt_cd" propid="value" datasetid="ds_send" columnid="calcscorcd" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[function SPPIJ03700_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- // 화면을 초기화한다.
- fInitialize();
- }
- include '../../.._com_commonweb_js_common.js'
- include '../../.._com_commonweb_js_dateHelper.js'
- include '../../.._com_commonweb_js_numericHelper.js'
- include '../../.._com_commonweb_js_stringHelper.js'
- include '../../.._com_commonweb_js_tfHelper.js'
- include '../../.._com_basiccodeweb_js_ZBC001.js'
- // -----------------------
- // ▶ 화면초기화
- // -----------------------
- function fInitialize() {
- //ds_send.setColumn( 0, "orddd", utlf_getCurrentDate());
- //model.refresh();
- // submit("TRPIJ00203");
- var oParam = {};
- oParam.id = "TRPIJ00203";
- oParam.service = "bfjudgapp.InHospJudgTrgtMan";
- oParam.method = "reqGetDeptList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=deptlist";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ00203";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ00203(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ00203(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ00203") > -1
- arErrorCode.pop("TRPIJ00203") < 0
- */
- //grp_biz.group1.btn_select.dispatch("DOMActivate");
- }
- // ----------------------------------------------------------------------
- // ▶ 동일진료일 명세서조회
- // ----------------------------------------------------------------------
- function fGetDocuList() {
- var chk = true;
- // if (ds_send.getColumn(0, "orddd") == "") {
- // chk = false;
- // sysf_messageBox("기준년월은", "I003"); //I003=필수입력입니다.
- // ipt_orddd.setFocus();
- // }
- if (chk == true) {
- // submit("TRPIJ03700");
- var oParam = {};
- oParam.id = "TRPIJ03700";
- oParam.service = "bfjudgapp.InHospJudg";
- oParam.method = "reqGetOptAntiResnList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=rslt";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ03700";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ03700(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ03700(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ03700") > -1
- arErrorCode.pop("TRPIJ03700") < 0
- */
- }
- }
- // 화면을 초기화한다.
- function fSpclGridInsertRow(){
- grp_biz.grd_drgalist.AddRow();
- grp_biz.grd_drgalist.bottomRow = grp_biz.grd_drgalist.rows;
- }
- function fSpclGridDeleteRow(){
- for (var i = 0; i < grp_biz.grd_drgalist.selectedRows; i++) {
- var sel = grp_biz.grd_drgalist.selectedRow(i);
- grp_biz.grd_drgalist.rowstatus(sel) = "4";
- }
- }
- function grp_biz_group1_btn_select_onclick(obj:Button, e:ClickEventInfo) {
- fGetDocuList();
- }
- function grp_biz_group1_ipt_personalsearch_onkeydown(obj:Edit, e:KeyEventInfo) {
- if (event.keyCode == '13') { // Enter 입력 시에
- if (grp_biz.group1.ipt_personalsearch.text.length > 1) { // 2글자 이상이면
- obj.updateToDataset(); // (tfHelper.js) 현재 인풋값 노드 반영
- fGetDocuList();
- }
- }
- }
- function grp_biz_group1_ipt_personalsearch_onlbuttonup(obj:Edit, e:MouseEventInfo) {
- var ipt_pid = ds_send.getColumn(0, "pid");
- if (ipt_pid) {
- ds_hidden_sppmc02500_cond.setColumn( 0, "srchcond", "1"); // 검색조건 : 등록번호로 설정
- ds_hidden_sppmc02500_cond.setColumn( 0, "pid", ipt_pid);
- } else {
- ds_hidden_sppmc02500_cond.clearData(); ds_hidden_sppmc02500_cond.addRow();
- }
- frmf_modal("SPPMC02500", "SPPMC02500", "ds_hidden_sppmc02500_cond""-"ds_send"", "", "1", "150", "150", "", "", "", "", "", "M");
- var srch_pid = ds_main_patinfo_patinfolist.getColumn(0, "pid");
- if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
- ds_main_patinfo_patinfolist.clearData(); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
- dsf_makeValue( ds_main_patinfo, "patinfolist", "string", "" ); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
- ds_send.setColumn( 0, "pid", srch_pid);
- }
- //model.refresh();
- }
- function grp_biz_group1_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
- ds_hidden_list2.clearData();
- // submit("TRPIJ00204");
- var oParam = {};
- oParam.id = "TRPIJ00204";
- oParam.service = "bfjudgapp.InHospJudgTrgtMan";
- oParam.method = "reqGetAtdoctList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=atdoctlist";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ00204";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ00204(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ00204(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ00204") > -1
- arErrorCode.pop("TRPIJ00204") < 0
- */
- }
- function grp_biz_group1_ipt_cd_onlbuttonup(obj:Edit, e:MouseEventInfo) {
- // 처방시작일 또는 종료일이 입력된 경우 해당 날짜를 수가조회 기준일자로 설정
- ds_hidden_smpic00200_judgsrch.setColumn( 0, "con2_gsflag", "S");
- ds_hidden_smpic00200_judgsrch.setColumn( 0, "con3_search1", ds_send.getColumn(0, "choicdsrch"));
- ds_hidden_smpic00200_judgsrch.setColumn( 0, "con4_search2", ds_send.getColumn(0, "calcscorcd")); // SMPIC00200_수가조회 용
- ds_hidden_smpic00200_judgsrch.setColumn( 0, "con1_dd", utlf_getCurrentDate());
- var insukindcd = ds_send.getColumn(0, "insukindcd");
- if (insukindcd == "11") {
- ds_hidden_smpic00200_judgsrch.setColumn( 0, "con5_insu", "insu");
- }
- else if (insukindcd == "21" || insukindcd == "22") {
- ds_hidden_smpic00200_judgsrch.setColumn( 0, "con5_insu", "proc");
- }
- else if (insukindcd == "31") {
- ds_hidden_smpic00200_judgsrch.setColumn( 0, "con5_insu", "indus");
- }
- else if (insukindcd == "41") {
- ds_hidden_smpic00200_judgsrch.setColumn( 0, "con5_insu", "autm");
- }
- ds_hidden_smpic00200_rslt_mech.clearData(); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
- ds_hidden_smpic00200_rslt_picmmech.clearData(); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
- frmf_modal("SMPIC00200", "SMPIC00200", "root_hidden_smpic00200""-"ds_temp"", "", "1", "150", "150", "", "", "", "", "", "M");
- ds_send.setColumn( 0, "calcscorcd", ds_temp_picmmech.getColumn(0, "picmmech_calcscorcd"));
- //model.refresh();
- }
- function grp_biz_btn_excelsave_onclick(obj:Button, e:ClickEventInfo) {
- grp_biz.grd_drgalist.gridToInstance();
- if (grp_biz.grd_drgalist.rows > 1) {
- var fileName = window.fileDialog("save", "", false, grp_tle.cap_title.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grp_biz.grd_drgalist.saveExcel(fileName, "sheetname:;colhiddenextend:true;rowhiddenextend:false;col_3:label;col_4:label;col_5:label;col_6:label;", true, true, "", "", true);
- }
- } else {
- sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|