123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMI03600" position="absolute 0 0 1196 787" titletext="VIP재원환자조회" onload="SMPMI03600_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="VIP재원환자조회" class="tit_1" position="absolute 0 0 160 25"/>
- <Div id="div" taborder="1" position="absolute 0 25 1194 60" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout width="1194" height="35">
- <Edit id="ipt_text" taborder="1" class="input_search" visible="false" position="absolute 435 8 550 27" anchor="default" onkeydown="div_ipt_text_onkeydown"/>
- <Button id="button1" taborder="2" text="조회" class="btn1" position="absolute 1123 6 1179 28" anchor="top right" onclick="div_button1_onclick"/>
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1105 6 1111 28" anchor="top right"/>
- <Static id="caption17" text="조회일자 :" class="search_name" position="absolute 5 9 91 26" anchor="default"/>
- <Static id="caption3" text="조회항목 :" class="search_name" position="absolute 215 9 301 26" anchor="default"/>
- <Combo id="cmb_srchcond" taborder="3" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 302 8 417 27" anchor="default" onitemchanged="div_cmb_srchcond_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <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>
- </Rows>
- </Dataset>
- </Combo>
- <Calendar id="ipt_infromdd" taborder="4" class="input_search" position="absolute 87 8 187 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Combo id="cmb_sex" taborder="5" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" visible="false" position="absolute 435 8 550 27" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">M</Col>
- <Col id="datacolumn">남</Col>
- </Row>
- <Row>
- <Col id="codecolumn">F</Col>
- <Col id="datacolumn">여</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="cmb_orddeptcd" taborder="6" innerdataset="@ds_hidden_init_orddeptcd" codecolumn="cd" datacolumn="nm" class="combo_search" visible="false" position="absolute 435 8 550 27" anchor="default"/>
- <Combo id="cmb_wardcd" taborder="7" innerdataset="ds_hidden_init_wardcd" codecolumn="cd" datacolumn="nm" class="combo_search" visible="false" position="absolute 435 8 550 27" anchor="default"/>
- <Combo id="cmb_disccd" taborder="8" innerdataset="@ds_hidden_init_disccd" codecolumn="cd" datacolumn="nm" class="combo_search" visible="false" position="absolute 435 8 550 27" anchor="default"/>
- <Edit id="ipt_pid" taborder="9" class="input_default" position="absolute 826 8 903 27" anchor="default" onkeydown="div_ipt_pid_onkeydown"/>
- <Edit id="opt_hngnm" taborder="10" readonly="true" position="absolute 905 8 970 27" anchor="default" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;"/>
- <Button id="btn_pid" taborder="11" class="icon_search" position="absolute 1077 9 1093 25" anchor="default" onclick="div_btn_pid_onclick"/>
- <Static id="caption1" text="등록번호 :" class="search_name" position="absolute 749 9 835 26" anchor="default"/>
- <Edit id="opt_rrgstno1" taborder="12" readonly="true" position="absolute 972 8 1018 27" anchor="default" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;"/>
- <Edit id="opt_rrgstno2" taborder="13" readonly="true" position="absolute 1020 8 1072 27" anchor="default" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;"/>
- <CheckBox id="checkbox1" taborder="14" position="absolute 570 10 638 25" anchor="default" falsevalue="N" truevalue="Y" text="응급제외"/>
- <CheckBox id="checkbox2" taborder="15" position="absolute 645 10 741 25" anchor="default" falsevalue="N" truevalue="Y" text="당일입원 제외"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption2" text="VIP재원환자내역" class="tit_2" position="absolute 0 67 124 83"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 83 1194 89" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Button id="button3" taborder="2" text="엑셀저장" class="btn7" position="absolute 1119 64 1194 83" onclick="button3_onclick" anchor="top right"/>
- <Grid id="grd_vipinpatspec" class="datagrid2" taborder="3" binddataset="ds_main_vipinpatlist" useinputpanel="false" position="absolute 0 88 1194 757" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="69"/>
- <Column size="80"/>
- <Column size="78"/>
- <Column size="80"/>
- <Column size="68"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="100"/>
- <Column size="66"/>
- <Column size="71"/>
- <Column size="242"/>
- <Column size="259"/>
- <Column size="57"/>
- <Column size="66"/>
- </Columns>
- <Rows>
- <Row size="30" 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="VIP내용"/>
- <Cell col="13" text="계정"/>
- <Cell col="14" text="종교"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="align:center middle;" text="bind:pid" enable="false"/>
- <Cell col="2" displaytype="date" style="align:center middle;" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none" enable="false"/>
- <Cell col="3" style="align:center middle;" text="bind:hngnm" enable="false"/>
- <Cell col="4" style="align:center middle;color:red;color2:red;" text="bind:privacyyn" enable="false"/>
- <Cell col="5" style="align:center middle;" text="bind:incnt" enable="false"/>
- <Cell col="6" style="align:center middle;" text="bind:sex" enable="false"/>
- <Cell col="7" style="align:center middle;" text="bind:age" enable="false"/>
- <Cell col="8" style="align:left middle;" text="bind:depthngnm" enable="false"/>
- <Cell col="9" style="align:left middle;" text="bind:orddrnm" enable="false"/>
- <Cell col="10" style="align:left middle;" text="bind:roomcd" enable="false"/>
- <Cell col="11" style="align:left middle;" text="bind:diagnosisnm" enable="false"/>
- <Cell col="12" displaytype="text" edittype="text" style="align:left middle;" class="gridinput" text="bind:vipcnts"/>
- <Cell col="13" style="align:left middle;" text="bind:disccd" enable="false"/>
- <Cell col="14" text="bind:religncd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button4" taborder="4" text="출력" class="btn6" position="absolute 1063 64 1114 83" onclick="button4_onclick" anchor="top right"/>
- <Button id="button5" taborder="5" text="미리보기" class="btn2" position="absolute 994 64 1058 83" onclick="button5_onclick" anchor="top right"/>
- <Div id="grp_report" taborder="6" visible="false" position="absolute 865 66 930 81"/>
- <Button id="button2" taborder="7" text="초기화" class="btn4" position="absolute 1126 761 1194 783" onclick="button2_onclick" anchor="right bottom"/>
- <Shape id="line32" class="line_6" position="absolute 0 756 1195 762" anchor="left right bottom"/>
- <Button id="button6" taborder="8" text="저장" class="btn4" position="absolute 1068 761 1124 783" onclick="button6_onclick" anchor="right bottom"/>
- </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="srchcond" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="data1" type="STRING" size="256"/>
- <Column id="sess_posinstcd" type="STRING" size="256"/>
- <Column id="erexptyn" type="STRING" size="256"/>
- <Column id="tdayinexptyn" type="STRING" size="256"/>
- <Column id="data2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchcond"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="data1"/>
- <Col id="sess_posinstcd"/>
- <Col id="erexptyn"/>
- <Col id="tdayinexptyn"/>
- <Col id="data2"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_P0149list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0016list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_disccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- <Column id="up" type="STRING" size="256"/>
- <Column id="io" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- <Column id="dp" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_init_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prestdd" type="STRING" size="256"/>
- <Column id="mskindflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchcond" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="rrgstno1" type="STRING" size="256"/>
- <Column id="rrgstno2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchcond"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="rrgstno1"/>
- <Col id="rrgstno2"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_vipinpatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
- <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자성명"/>
- <Column id="privacyyn" type="STRING" size="256" sumtext="사생활보호"/>
- <Column id="incnt" type="STRING" size="256" sumtext="입원횟수"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="depthngnm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="담당교수명"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="diagnosisnm" type="STRING" size="256" sumtext="상병명"/>
- <Column id="vipcnts" type="STRING" size="256" sumtext="VIP내용"/>
- <Column id="disccd" type="STRING" size="256" sumtext="할인계정"/>
- <Column id="religncd" type="STRING" size="256" sumtext="종교"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_printtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="div.ipt_infromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item1" compid="div.cmb_srchcond" propid="value" datasetid="ds_send" columnid="srchcond"/>
- <BindItem id="item2" compid="div.ipt_text" propid="value" datasetid="ds_send" columnid=""/>
- <BindItem id="item3" compid="div.cmb_sex" propid="value" datasetid="ds_send" columnid=""/>
- <BindItem id="item4" compid="div.cmb_orddeptcd" propid="value" datasetid="ds_send" columnid=""/>
- <BindItem id="item5" compid="div.cmb_wardcd" propid="value" datasetid="ds_send" columnid=""/>
- <BindItem id="item6" compid="div.cmb_disccd" propid="value" datasetid="ds_send" columnid=""/>
- <BindItem id="item7" compid="div.checkbox2" propid="value" datasetid="ds_send" columnid="tdayinexptyn"/>
- <BindItem id="item8" compid="div.checkbox1" propid="value" datasetid="ds_send" columnid="erexptyn"/>
- <BindItem id="item9" compid="div.opt_rrgstno2" propid="value" datasetid="ds_patinfolist" columnid=""/>
- <BindItem id="item10" compid="div.opt_rrgstno1" propid="value" datasetid="ds_patinfolist" columnid=""/>
- <BindItem id="item11" compid="div.opt_hngnm" propid="value" datasetid="ds_patinfolist" columnid=""/>
- <BindItem id="item12" compid="div.ipt_pid" propid="value" datasetid="ds_patinfolist" columnid="pid"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /**
- * [fSelectRefItem description]
- * @param {[type]} refitem [description]
- * @return {[type]} [description]
- */
- function fSelectRefItem(refitem) {
- // 1. 전체 2.환자번호 4.진료과 5.병동
- ds_send.setColumn(0, "data1", "");
- if (refitem == '1') {
- div.caption1.visible = false;
- div.ipt_pid.visible = false;
- div.opt_hngnm.visible = false;
- div.opt_rrgstno1.visible = false;
- div.opt_rrgstno2.visible = false;
- div.btn_pid.visible = false;
- div.ipt_text.visible = false;
- div.cmb_orddeptcd.visible = false;
- div.cmb_wardcd.visible = false;
- div.cmb_disccd.visible = false;
- div.cmb_sex.visible = false;
- }
- else if (refitem == '2') {
- div.caption1.visible = true;
- div.ipt_pid.visible = true;
- div.opt_hngnm.visible = true;
- div.opt_rrgstno1.visible = true;
- div.opt_rrgstno2.visible = true;
- div.btn_pid.visible = true;
- div.ipt_text.visible = true;
- div.cmb_orddeptcd.visible = false;
- div.cmb_wardcd.visible = false;
- div.cmb_disccd.visible = false;
- div.cmb_sex.visible = false;
- model.setFocus("ipt_text");
- }
- else if (refitem == '4') {
- div.caption1.visible = false;
- div.ipt_pid.visible = false;
- div.opt_hngnm.visible = false;
- div.opt_rrgstno1.visible = false;
- div.opt_rrgstno2.visible = false;
- div.btn_pid.visible = false;
- div.ipt_text.visible = false;
- div.cmb_orddeptcd.visible = true;
- div.cmb_wardcd.visible = false;
- div.cmb_disccd.visible = false;
- div.cmb_sex.visible = false;
- }
- else if (refitem == '5') {
- div.caption1.visible = false;
- div.ipt_pid.visible = false;
- div.opt_hngnm.visible = false;
- div.opt_rrgstno1.visible = false;
- div.opt_rrgstno2.visible = false;
- div.btn_pid.visible = false;
- div.ipt_text.visible = false;
- div.cmb_orddeptcd.visible = false;
- div.cmb_wardcd.visible = true;
- div.cmb_disccd.visible = false;
- div.cmb_sex.visible = false;
- }
- }
- /**
- * [fInitialize description]
- * @return {[type]} [description]
- */
- function fInitialize() {
- // model.resetInstanceNode("/root/main/vipinptlist/vipinddschspec");
- ds_send.clearData();
- ds_send.addRow();
- ds_main_vipinpatlist.clearData();
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- ds_send.setColumn(0, "srchcond", "1");
- fSelectRefItem("1")
- }
- /**
- * [fPrint description]
- * @param {[type]} pCond [description]
- * @return {[type]} [description]
- */
- function fPrint(pCond) {
- var sPrintYN = "print=";
- var sAutoCloseYN = "false";
- var sViewYN = "";
- if (pCond == "PREVIEW") {
- sPrintYN += "0";
- // sAutoCloseYN = "false";
- sViewYN = "";
- }
- if (pCond == "PRINT") {
- sPrintYN += "1";
- sAutoCloseYN = "false";
- // sViewYN = "grp_report";
- }
- sPrintYN += ';'
- var iCount = ds_main_vipinpatlist.rowcount;
- if (iCount > 0) {
- var sPrintFromdd = String(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(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "root/main/vipinpatlist/vipinpatspec" , ds_main_vipinpatlist);
- rptf_setNodeListToDOM(objDOM, "root/hidden/printtype" , ds_hidden_printtype);
- var option = "open=1;save=1;directprint=1;printdialog=0;zoom=0";
- option += sPrintYN;
- rptf_exeReportPreview30(["RPPMI03601"],[{ xml_data_XML1 : objDOM.documentElement.source }], option);
- }
- else {
- sysf_messageBox("출력할 내용이 없습니다!!", "I");
- }
- }
- /**
- * submit 후 호출 될 공통 콜백
- * @param {[type]} sSvcId [description]
- * @param {[type]} nErrorCode [description]
- * @param {[type]} sErrorMsg [description]
- * @return {Function} [description]
- */
- function callback(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /**
- * onload 이벤트 발생 시 호출
- * @param {[type]} obj:Form [description]
- * @param {[type]} e:LoadEventInfo [description]
- */
- function SMPMI03600_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
-
- appf_getCodeList([
- { dsNm: 'ds_init_P0149list', cdGrpId: 'P0149' },
- { dsNm: 'ds_init_P0016list', cdGrpId: 'P0016' }
- ]);
- // dsf_createDsRow('ds_send_data4', [
- // { col: 'sess_posinstcd', type: 'string', size: 256, val: ds_hidden_session.getColumn(0, 'sess_posinstcd') },
- // { col: 'ioflag', type: 'string', size: 256, val: '' },
- // { col: 'dridsorttype', type: 'string', size: 256, val: '' }
- // ], false);
- var oParam = {};
- oParam.id = "TRPMI00106";
- oParam.service = "pamcomnapp.PamComn";
- oParam.method = "reqGetComCD";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_hidden_init_disccd=disccd ds_hidden_init_insukind=insukind ds_hidden_init_suppkind=suppkind "
- + "ds_hidden_init_orddeptcd=orddeptcd ds_hidden_init_orddrid=orddrid ds_hidden_init_flag=flag";
- oParam.async = false;
- tranf_submit(oParam);
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "todd", '99991231');
- ds_send.setColumn(0, "srchcond", "1");
- div.caption1.visible = false;
- div.ipt_pid.visible = false;
- div.opt_hngnm.visible = false;
- div.opt_rrgstno1.visible = false;
- div.opt_rrgstno2.visible = false;
- div.btn_pid.visible = false;
- }
- /**
- * [div_cmb_srchcond_onitemchanged description]
- * @param {[type]} obj: Combo [description]
- * @param {[type]} e: ItemChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function div_cmb_srchcond_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
- fSelectRefItem(ds_send.getColumn(0, 'srchcond'));
- }
- /**
- * ipt_text 키보드 입력 이벤트
- * @param {[type]} obj: Edit [description]
- * @param {[type]} e: KeyEventInfo [description]
- * @return {[type]} [description]
- */
- function div_ipt_text_onkeydown(obj: Edit, e: KeyEventInfo) {
- if (e.keycode == 13) {
- obj.updateToDataset();
-
- div.button1.click();
- }
- }
- /**
- * 등록번호 ipt_pid 키보드 입력 이벤트
- * @param {[type]} obj: Edit [description]
- * @param {[type]} e: KeyEventInfo [description]
- * @return {[type]} [description]
- */
- function div_ipt_pid_onkeydown(obj: Edit, e: KeyEventInfo) {
- if (e.keycode == 8) {
- ds_send.clearData();
- ds_send.addRow();
- fInitialize();
- }
- if (e.keycode == 13) {
- obj.updateToDataset();
- vcheck_pid = utlf_transNullToEmpty(ds_patinfolist.getColumn(0, 'pid'));
- //환자번호 null체크
- if (vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- sysf_messageBox("환자등록번호가 입력되지", "E007");
- return;
- }
- //환자번호 조건으로 인적정보 조회
- ds_source.setColumn(0, "srchcond", "1");
- ds_source.setColumn(0, "pid", vcheck_pid);
- //환자기본정보 node clear
- ds_patinfolist.clearData();
- dsf_createDsRow('ds_req', [
- { col: 'srchcond', type: 'string', size: 256, val: '' },
- { col: 'checkfnexam', type: 'string', size: 256, val: '' },
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'hngnm', type: 'string', size: 256, val: '' },
- { col: 'rrgstno1', type: 'string', size: 256, val: '' },
- { col: 'rrgstno2', type: 'string', size: 256, val: '' },
- { col: 'acptdd', type: 'string', size: 256, val: '' },
- { col: 'instcd', type: 'string', size: 256, val: '' },
- { col: 'insukind', type: 'string', size: 256, val: '' },
- { col: 'inhospyn', type: 'string', size: 256, val: '' }
- ], false);
- ds_req.copyRow(0, ds_source, 0);
- dsf_setTypeFormat(ds_req, "srchcond:INT^checkfnexam:INT");
- var oParam = {};
- oParam.id = "TRPMC02500";
- oParam.service = "patinfomngtapp.PatBaseInfo";
- oParam.method = "reqGetPatInfo";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_patinfolist=patinfolist";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- //환자등록번호 체크
- if (arErrorCode.pop("TRPMC02500") > -1) {
- var vcheck_pid = utlf_transNullToEmpty(ds_patinfolist.getColumn(0, "pid"));
- if (vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- //조회내역 체크
- sysf_messageBox("존재하지 않는 등록번호", "E008"); //E008=입니다
- fInitialize();
- return;
- }
- //조회되는 항목들 clear
- // model.resetInstanceNode("/root/main/baseinfo");
- ds_send.setColumn(0, "data1", ds_patinfolist.getColumn(0, "pid"));
- div.button1.click();
- }
- else {
- sysf_messageBox("존재하지 않는 등록번호", "E008"); //E008=입니다
- div.ipt_pid.setFocus();
- return;
- }
- }
- }
- /**
- * 등록번호 검색 아이콘 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function div_btn_pid_onclick(obj: Button, e: ClickEventInfo) {
- frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_sed: ds_send }, "", "", "", "", "", "", "", "", "", "M");
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function div_button1_onclick(obj: Button, e: ClickEventInfo) {
- var sCond = ds_send.getColumn(0, "indschacptstat");
- ds_main_vipinpatlist.clearData();
- dsf_createDsRow('ds_req', [
- { col: 'srchcond', type: 'string', size: 256, val: '' },
- { col: 'data1', type: 'string', size: 256, val: '' },
- { col: 'fromdd', type: 'string', size: 256, val: '' },
- { col: 'todd', type: 'string', size: 256, val: '' },
- { col: 'erexptyn', type: 'string', size: 256, val: '' },
- { col: 'tdayinexptyn', type: 'string', size: 256, val: '' }
- ], false);
- ds_req.copyRow(0, ds_send, 0);
- var oParam = {};
- oParam.id = "TRPMI03601";
- oParam.service = "ipatmngtapp.IPatRef";
- oParam.method = "reqGetVipInPatRef";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_vipinpatlist=vipinpatspec";
- oParam.async = false;
- if (sCond == "2" || sCond == "3" || sCond == "7") {
- var sText = ds_send.getColumn(0, "data1");
- if (!utlf_isNull(sText)) {
- tranf_submit(oParam);
- if (ds_main_vipinpatlist.rowcount == 0) {
- sysf_messageBox("조회 결과가 없습니다.", "I");
- }
- }
- else {
- sysf_messageBox("검색할 단어를 입력하십시오!", "I");
- div.ipt_text.setFocus();
- }
- }
- else {
- tranf_submit(oParam);
- if (ds_main_vipinpatlist.rowcount == 0) {
- sysf_messageBox("조회 결과가 없습니다.", "I");
- }
- }
- }
- /**
- * 미리보기 버튼 클릭 이벤트
- * @param {[type]} obj:Button [description]
- * @param {[type]} e:ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button5_onclick(obj: Button, e: ClickEventInfo) {
- fPrint("PREVIEW");
- }
- /**
- * 출력 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button4_onclick(obj: Button, e: ClickEventInfo) {
- fPrint("PRINT");
- }
- /**
- * 엑셀저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button3_onclick(obj: Button, e: ClickEventInfo) {
- grdf_exportExcel(grd_vipinpatspec, "", "SheetName");
- }
- /**
- * 저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button6_onclick(obj: Button, e: ClickEventInfo) {
- dsf_createDs('ds_req');
- var updated = grdf_getGridUpdateData(grd_vipinpatspec, "all");
- ds_req.setColumn(0, "data2", updated);
- ds_req.updateColID('vipcnts', 'disccdrem');
- dsf_createDs('ds_res');
- var oParam = {};
- oParam.id = "TXPMI03601";
- oParam.service = "ipatmngtapp.IPatRef";
- oParam.method = "reqSetDiscCdRem";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_res=result";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXPMI03601") > -1) {
- // 재조회
- div.button1.click();
- }
- }
- /**
- * 초기화 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button2_onclick(obj: Button, e: ClickEventInfo) {
- fInitialize();
- }
- ]]></Script>
- </Form>
- </FDL>
|