123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMC05300" position="absolute 0 0 1196 787" titletext="입원약정서조회" onload="SMPMC05300_onload">
- <Layouts>
- <Layout>
- <Div id="group1" position="absolute 0 0 1195 25" style="">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 0 140 25" style="" text="입원약정서조회" anchor="left top"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group3" position="absolute 0 13 1195 757" style="" anchor="all">
- <Layouts>
- <Layout>
- <Div id="group2" position="absolute 0 12 1194 52" style="" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line2" class="line_4" linetype="vertical" position="absolute 1108 9 1111 31" style="border: solid #ffe4bb #ffe4bb;" anchor="top right"/>
- <Static id="caption17" class="search_name" position="absolute 5 13 91 30" style="" text="조회조건 :" anchor="left top"/>
- <Button id="btn_ref" class="btn1" position="absolute 1123 10 1179 32" style="" text="조회" onclick="group3_group2_btn_ref_onclick" anchor="top right"/>
- <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_condition" position="absolute 95 11 195 30" style="" onitemclick="group3_group2_cmb_condition_onitemclick" anchor="left top">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">전체(재원)</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">환자번호</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">환자성명</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">입원일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">5</Col>
- <Col id="datacolumn">퇴원일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">주민번호</Col>
- </Row>
- <Row>
- <Col id="codecolumn">6</Col>
- <Col id="datacolumn">진료과</Col>
- </Row>
- <Row>
- <Col id="codecolumn">7</Col>
- <Col id="datacolumn">보험유형</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit id="ipt_cond1" visible="false" position="absolute 212 11 312 30" style="" anchor="default" onkeypress="group3_group2_ipt_cond1_onkeypress"/>
- <Edit id="ipt_cond2" visible="false" position="absolute 321 11 421 30" style="" anchor="left top" onkeypress="group3_group2_ipt_cond2_onkeypress"/>
- <Calendar id="ipt_date" visible="false" position="absolute 212 11 312 30" style="" anchor="default"/>
- <Combo innerdataset="" datacolumn="nm" codecolumn="cd" columncount="-1" rowcount="-1" id="cmb_cond" visible="false" position="absolute 212 11 312 30" style="" onitemclick="group3_group2_cmb_cond_onitemclick" anchor="left top"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption2" class="tit_2" position="absolute 0 60 75 76" style="align:left middle;font:Dotum,9,bold;" text="환자목록" anchor="left top"/>
- <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 77 1194 81" style="" anchor="left top right"/>
- <Div id="grp_report" position="absolute 865 50 930 65" style="" anchor="default"/>
- <Button id="btn_print" class="btn6" visible="false" position="absolute 987 54 1037 76" style="" text="출력" onclick="group3_btn_print_onclick" anchor="top right"/>
- <Button id="btn_excel" class="btn7" position="absolute 1116 54 1194 76" style="" text="엑셀저장" onclick="group3_btn_excel_onclick" anchor="top right"/>
- <Grid id="grd_inpatientlist" binddataset="ds_main_inpatientlist" class="datagrid2" position="absolute 0 81 1194 743" style="" oncelldblclick="group3_grd_inpatientlist_oncelldblclick" autofittype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="38"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="110"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="120"/>
- <Column size="80"/>
- <Column size="120"/>
- <Column size="90"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="26" band="head"/>
- <Row size="23"/>
- </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="h_treatno"/>
- <Cell col="16" text="h_indd"/>
- <Cell col="17" text="h_cretno"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow + 1"/>
- <Cell col="1" text="bind:scanyn"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:pid"/>
- <Cell col="3" style="align:left middle;" text="bind:hngnm"/>
- <Cell col="4" text="bind:rrgstno" mask="######-#######" maskchar=" "/>
- <Cell col="5" text="bind:sex"/>
- <Cell col="6" text="bind:age"/>
- <Cell col="7" displaytype="combo" style="align:left middle;" text="bind:insukind" combodataset="ds_hidden_init_insukind" combocodecol="cd" combodatacol="nm"/>
- <Cell col="8" displaytype="date" style="align:left middle;" text="bind:pamindd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="9" displaytype="date" style="align:left middle;" text="bind:dschdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="10" style="align:left middle;" text="bind:orddeptnm"/>
- <Cell col="11" style="align:left middle;" text="bind:medispclnm"/>
- <Cell col="12" displaytype="combo" text="bind:wardcd" combodataset="ds_hidden_init_wardcd" combocodecol="cd" combodatacol="nm"/>
- <Cell col="13" style="align:left middle;" text="bind:roomcd"/>
- <Cell col="14" text="bind:scanyn"/>
- <Cell col="15" text="bind:treatno"/>
- <Cell col="16" text="bind:indd"/>
- <Cell col="17" text="bind:cretno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_view" class="btn2" position="absolute 1039 54 1114 76" style="" text="약정서보기" onclick="group3_btn_view_onclick" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group5" position="absolute 0 757 1195 784" style="" anchor="left right bottom">
- <Layouts>
- <Layout>
- <Button id="button2" class="btn4" position="absolute 1126 4 1194 26" style="" text="초기화" onclick="group5_button2_onclick" anchor="right bottom"/>
- <Shape id="line32" class="line_6" linetype="horizontal" position="absolute 0 0 1194 3" style="" anchor="left right bottom"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_P0149list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_send_iemr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="treatno" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="docucd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="cmc_cretno" type="STRING" size="256"/>
- <Column id="cmc_spcid" type="STRING" size="256"/>
- <Column id="cmc_orddate" type="STRING" size="256"/>
- <Column id="cmc_orderseqno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="treatno"/>
- <Col id="orddeptcd"/>
- <Col id="indd"/>
- <Col id="docucd"/>
- <Col id="ioflag"/>
- <Col id="cmc_cretno"/>
- <Col id="cmc_spcid"/>
- <Col id="cmc_orddate"/>
- <Col id="cmc_orderseqno"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_inpatientlist" 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/>
- </Dataset>
- <Dataset id="ds_init_P0016list_P0016" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_send_data0" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="sess_posinstcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="ioflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="refcond" type="STRING" size="256"/>
- <Column id="cond1" type="STRING" size="256"/>
- <Column id="cond2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refcond">0</Col>
- <Col id="cond1"/>
- <Col id="cond2"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_P0149list_P0149" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" 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>
- </Dataset>
- <Dataset id="ds_init_P0016list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_hidden_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_wardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_printtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_vipinpatlist_vipinpatspec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.cmb_condition" propid="value" datasetid="ds_send_data1" columnid="refcond"/>
- <BindItem id="item1" compid="group3.group2.ipt_cond1" propid="value" datasetid="ds_send_data1" columnid="cond1"/>
- <BindItem id="item2" compid="group3.group2.ipt_cond2" propid="value" datasetid="ds_send_data1" columnid="cond2"/>
- <BindItem id="item3" compid="group3.group2.ipt_date" propid="value" datasetid="ds_send_data1" columnid="cond1"/>
- <BindItem id="item4" compid="group3.group2.cmb_cond" propid="value" datasetid="ds_send_data1" columnid="cond1"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
- include "com_basiccodexp::ZBC001.xjs"
- var arErrorCode = new HashArray();
- function SMPMC05300_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(group3.grd_inpatientlist);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- var arrParam = [
- {dsNm: "ds_init_P0149list_P0149", cdGrpId: "P0149"},
- {dsNm: "ds_init_P0016list_P0016", cdGrpId: "P0016"}
- ];
-
- appf_getCodeList(arrParam );
- ds_send_data0.setColumn( 0, "ioflag", "I"); // 입원진료과명을 가져오기 위함
- ds_send_data0.setColumn(0, "sess_posinstcd", sysf_getUserInfo("dutplceinstcd"));
- //submit("TRPMI00106");
- var oParam = {};
- oParam.id = "TRPMI00106";
- oParam.service = "pamcomnapp.PamComn";
- oParam.method = "reqGetComCD";
- oParam.inds = "req=ds_send_data0";
- oParam.outds = "ds_hidden_init_disccd=disccd " +
- "ds_hidden_init_insukind=insukind " +
- "ds_hidden_init_suppkind=suppkind " +
- "ds_hidden_init_suppkindhist=suppkindhist " +
- "ds_hidden_init_orddeptcd=orddeptcd " +
- "ds_hidden_init_orddrid=orddrid " +
- "ds_hidden_init_wardcd=wardcd " +
- "ds_hidden_init_roomcd=roomcd " +
- "ds_hidden_init_bedcd=bedcd " +
- "ds_hidden_init_roomgrdecd=roomgrdecd " +
- "ds_hidden_init_roomgrdelist=roomgrdelist " +
- "ds_hidden_init_roomtypecd=roomtypecd " +
- "ds_hidden_init_flag=flag " +
- "ds_hidden_init_proccd=proccd " +
- "ds_hidden_init_centcd=centcd " +
- "ds_hidden_init_hospgrde=hospgrde " +
- "ds_hidden_init_naticd=naticd " +
- "ds_hidden_init_erorddrid=erorddrid " +
- "ds_hidden_init_insucd=insucd " +
- "ds_hidden_init_uncocd=uncocd";
- oParam.async = false;
- tranf_submit(oParam);
- //makeReportPreview(0, 0, 10, 10, "group3.grp_report");
- fInitialize();
- //model.refresh();
- }
- function fInitialize() {
- ds_main_inpatientlist.clearData(); ds_main_inpatientlist.addRow();
- ds_send.clearData(); ds_send.addRow();
- ds_send_data1.setColumn( 0, "refcond","0");
- //fSelectRefItem();
- //model.refresh();
- }
- function fSelectRefItem()
- {
- // 0. 전체 1.환자번호 2.환자성명 3.주민번호 4.입원일자 5.퇴원일자 6.진료과 7.보험유형
- var sRefCond = ds_send_data1.getColumn(0, "refcond");
- ds_send_data1.setColumn( 0, "cond1", "");
- ds_send_data1.setColumn( 0, "cond2", "");
- switch(sRefCond) {
- case '0' :
- group3.group2.ipt_cond1.visible = false;
- group3.group2.ipt_cond2.visible = false;
- group3.group2.ipt_date.visible = false;
- group3.group2.cmb_cond.visible = false;
- group3.group2.btn_ref.click();
- break;
- case '1' :
- group3.group2.ipt_cond1.maxlength = 10;
- group3.group2.ipt_cond1.visible = true;
- group3.group2.ipt_cond2.visible = false;
- group3.group2.ipt_date.visible = false;
- group3.group2.cmb_cond.visible = false;
- group3.group2.ipt_cond1.setFocus();
- break;
- case '2' :
- group3.group2.ipt_cond1.maxlength = 50;
- group3.group2.ipt_cond1.visible = true;
- group3.group2.ipt_cond2.visible = false;
- group3.group2.ipt_date.visible = false;
- group3.group2.cmb_cond.visible = false;
- group3.group2.ipt_cond1.setFocus();
- break;
- case '3' :
- group3.group2.ipt_cond1.maxlength = 6;
- group3.group2.ipt_cond1.visible = true;
- group3.group2.ipt_cond2.visible = true;
- group3.group2.ipt_date.visible = false;
- group3.group2.cmb_cond.visible = false;
- group3.group2.ipt_cond1.setFocus();
- break;
- case '4' :
- ds_send_data1.setColumn( 0, "cond1", utlf_getCurrentDate());
- group3.group2.ipt_cond1.visible = false;
- group3.group2.ipt_cond2.visible = false;
- group3.group2.ipt_date.visible = true;
- group3.group2.cmb_cond.visible = false;
- group3.group2.ipt_date.setFocus();
- break;
- case '5' :
- ds_send_data1.setColumn( 0, "cond1", utlf_getCurrentDate());
- group3.group2.ipt_cond1.visible = false;
- group3.group2.ipt_cond2.visible = false;
- group3.group2.ipt_date.visible = true;
- group3.group2.cmb_cond.visible = false;
- group3.group2.ipt_date.setFocus();
- break;
- case '6' :
- group3.group2.cmb_cond.innerdataset = "ds_hidden_init_orddeptcd";
- group3.group2.ipt_cond1.visible = false;
- group3.group2.ipt_cond2.visible = false;
- group3.group2.ipt_date.visible = false;
- group3.group2.cmb_cond.visible = true;
- group3.group2.cmb_cond.setFocus();
- break;
- case '7' :
- group3.group2.cmb_cond.innerdataset = "ds_hidden_init_insukind";
- group3.group2.ipt_cond1.visible = false;
- group3.group2.ipt_cond2.visible = false;
- group3.group2.ipt_date.visible = false;
- group3.group2.cmb_cond.visible = true;
- group3.group2.cmb_cond.setFocus();
- break;
- default :
- group3.group2.ipt_cond1.visible = false;
- group3.group2.ipt_cond2.visible = false;
- group3.group2.ipt_date.visible = false;
- group3.group2.cmb_cond.visible = false;
- break;
- }
- //model.refresh();
- }
- // 조회조건에 따른 값 체크
- function fCheckRefCondition() {
- // 1. 전체 2.환자번호 4.진료과 5.병동
- var sRefCond = String(ds_send_data1.getColumn(0, "refcond"));
- var sCond1 = ds_send_data1.getColumn(0, "cond1");
- var sCond2 = ds_send_data1.getColumn(0, "cond2");
- var bResult = false;
- switch(sRefCond) {
- case '0' :
- bResult = true;
- break;
- case '1' :
- if (utlf_isNull(sCond1)) {
- sysf_messageBox("환자번호를 입력 후 조회하십시오!!", "I");
- bResult = false;
- } else {
- bResult = true;
- }
- break;
- case '2' :
- if (utlf_isNull(sCond1)) {
- sysf_messageBox("환자번호를 입력 후 조회하십시오!!", "I");
- bResult = false;
- } else if (!utlf_isNull(sCond1) && sCond1.length < 2) {
- sysf_messageBox("성명은 2자 이상 입력하십시오!!", "I");
- bResult = false;
- } else {
- bResult = true;
- }
- break;
- case '3' :
- if (utlf_isNull(sCond1)) {
- sysf_messageBox("주민번호 앞자리를 입력하십시오!!", "I");
- bResult = false;
- } else if (!utlf_isNull(sCond1) && sCond1.length != 6) {
- sysf_messageBox("주민번호 앞자리는 6자리를 입력하십시오!!", "I");
- bResult = false;
- } else {
- bResult = true;
- }
- break;
- case '4' :
- if (utlf_isNull(sCond1)) {
- sysf_messageBox("입원일자를 입력하십시오!!", "I");
- bResult = false;
- } else {
- bResult = true;
- }
- break;
- case '5' :
- if (utlf_isNull(sCond1)) {
- sysf_messageBox("퇴원일자를 입력하십시오!!", "I");
- bResult = false;
- } else {
- bResult = true;
- }
- break;
- case '6' :
- if (utlf_isNull(sCond1)) {
- sysf_messageBox("진료과를 선택하십시오!!", "I");
- bResult = false;
- } else {
- bResult = true;
- }
- break;
- case '7' :
- if (utlf_isNull(sCond1)) {
- sysf_messageBox("보험유형을 선택하십시오!!", "I");
- bResult = false;
- } else {
- bResult = true;
- }
- break;
- default :
- break;
- }
- return bResult;
- }
- function fPrint(pCond) {
- var sPrintYN = "false";
- var sAutoCloseYN = "false";
- var sViewYN = "";
- if (pCond == "PREVIEW") {
- sPrintYN = "false";
- sAutoCloseYN = "false";
- sViewYN = "";
- }
- if (pCond == "PRINT") {
- sPrintYN = "true";
- sAutoCloseYN = "false";
- sViewYN = "group3.grp_report";
- }
- var iCount = ds_main_vipinpatlist_vipinpatspec.rowcount;
- if (iCount > 0) {
- var sPrintFromdd = ds_send.getColumn(0, "fromdd");
- var sPrinttodd = ds_send.getColumn(0, "todd");
- sPrintFromdd = sPrintFromdd.substr(0, 4) + "-" + sPrintFromdd.substr(4, 2) + "-" + sPrintFromdd.substr(6, 4);
- dsf_makeValue( ds_hidden_printtype, "printkind", "string", "VIP재원");
- dsf_makeValue( ds_hidden_printtype, "printfromdd", "string", sPrintFromdd);
- dsf_makeValue( ds_hidden_printtype, "printtodd", "string", sPrinttodd);
-
- var objDOM = rptf_createDOM();
- var objParam = new Object();
- rptf_setNodeListToDOM(objDOM, "root/main/vipinpatlist/vipinpatspec" , ds_main_vipinpatlist_vipinpatspec);
- rptf_setNodeListToDOM(objDOM, "root/hidden/printtype" , ds_hidden_printtype);
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
- rptf_exeReportPreview30(["RPPMI03601"],[objParam], option);
-
- } else {
- sysf_messageBox("출력할 내용이 없습니다!!", "I");
- }
- }
- function group3_group2_btn_ref_onclick(obj:Button, e:ClickEventInfo) {
- // 조회 구분별로 체크 로직 추가....
- var bOK = fCheckRefCondition();
- if (bOK == true) {
-
- //submit("TRPMC05301");
- var oParam = {};
- oParam.id = "TRPMC05301";
- oParam.service = "patinfomngtapp.InPatScan";
- oParam.method = "reqGetInPatScanList";
- oParam.inds = "req=ds_send_data1";
- oParam.outds = "ds_main_inpatientlist=list";
- oParam.async = false;
- tranf_submit(oParam);
- var iCount = ds_main_inpatientlist.rowcount;
- if (iCount == 0) {
- sysf_messageBox("조회 결과가 없습니다.", "I");
- }
- }
- }
- function group3_group2_cmb_condition_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
- fSelectRefItem();
- }
- function group3_group2_ipt_cond1_onkeydown(obj:Edit, e:KeyEventInfo) {
- // enter key
- frmf_inputEnterKey("group3.group2.btn_ref", "onclick", new ClickEventInfo);
- }
- function group3_group2_ipt_cond2_onkeydown(obj:Edit, e:KeyEventInfo) {
- // enter key
- frmf_inputEnterKey("group3.group2.btn_ref", "onclick", new ClickEventInfo);
- }
- function group3_group2_cmb_cond_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
- // 콤보 선택 시 자동 조회
- group3.group2.btn_ref.click();
- }
- function group3_btn_print_onclick(obj:Button, e:ClickEventInfo) {
- fPrint("PRINT");
- }
- function group3_btn_excel_onclick(obj:Button, e:ClickEventInfo) {
- // var fileName = window.fileDialog("save", ",", false, utlf_getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- //
- // if (fileName != "")
- // {
- grdf_exportExcel(group3.grd_inpatientlist, "Sheet1", "입원약정서조회", false, "" , 'user' , true);
- // }
- }
- function group3_grd_inpatientlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if(e.row >= 0 && e.col >= 0 && e.col != 2) {
- group3.btn_view.click();
- }
- }
- function group3_btn_view_onclick(obj:Button, e:ClickEventInfo) {
- //================================================================================================
- //pid : 환자번호
- //orddeptcd : 진료과 코드
- //indd : 입(내)원일
- //docucd : 서식코드
- //ioflag : 입원_외래
- //================================================================================================
- var iIndex = ds_main_inpatientlist.rowposition;
- var sPid = ds_main_inpatientlist.getColumn(iIndex, "pid");
- var sTreatNo = ds_main_inpatientlist.getColumn(iIndex, "treatno");
- //var sTreatNo = ds_main_inpatientlist.getColumn(0, "treatno");
- if (utlf_isNull(sPid)) {
- sysf_messageBox("환자를 선택하십시오!!", "I");
- return;
- }
- if (utlf_isNull(sTreatNo)) {
- sysf_messageBox("스캔된 약정서가 없습니다!!", "I");
- return;
- }
- ds_send_iemr.clearData(); ds_send_iemr.addRow();
- ds_send_iemr.setColumn( 0, "pid", sPid);
- ds_send_iemr.setColumn( 0, "treatno", sTreatNo);
- // ds_send_iemr.setColumn( 0, "pid", "3844");
- // ds_send_iemr.setColumn( 0, "orddeptcd", "2230000000");
- // ds_send_iemr.setColumn( 0, "indd", "20071004");
- // ds_send_iemr.setColumn( 0, "docucd", "0000002015");
- // ds_send_iemr.setColumn( 0, "ioflag", "O");
- // ds_send_iemr.setColumn( 0, "cmc_cretno", "1");
- // ds_send_iemr.setColumn( 0, "prcpdd", "");
- // ds_send_iemr.setColumn( 0, "execprcpuniqno", "");
- // ds_send_iemr.setColumn( 0, "instcd", "");searchChart("ds_hidden_temp");
- var objForm = frmf_findChildWindow("SSMRC03130");
- if(utlf_isNull(objForm))
- {
- //window.load("SSMRC03130.xrw", "modeless", "imgemrviewer", "", "ds_send_iemr", "ds_hidden_temp");
-
- var objArg = new Object();
- objArg.arg_ds_hidden_temp = ds_send_iemr;
-
- frmf_open("SSMRC03130","SSMRC03130", objArg, "", "", "", "", "", "", "", "", "", "M");
-
- //중요!!!!!!!!!!!!!!! 3차 리허설 이후 주석
- // window.children.item("imgemrviewer").document.title = "Image EMR Viewer";
- // window.children.item("imgemrviewer").javaScript.searchChart("ds_hidden_temp");
- // window.children.item("imgemrviewer").javaScript.downloadChart();
- // window.children.item("imgemrviewer").javaScript.setupChart("ChartView");
- }
- else
- {
- // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
- // var iemrNode = instance1.selectSingleNode("ds_send_iemr");
- // window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
- // // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
- // window.children.item("imgemrviewer").modelesstopmost = true;
- // window.children.item("imgemrviewer").modelesstopmost = false;
-
- var iemrNode = ds_send_iemr;
- objForm.reloadChart(iemrNode);
- }
- }
- function group5_button2_onclick(obj:Button, e:ClickEventInfo) {
- fInitialize();
- }
- ]]></Script>
- </Form>
- </FDL>
|