123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNW14310" position="absolute 0 0 1211 768" titletext="환자경험평가" oninit="SMMNW14310_oninit" onload="SMMNW14310_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 18 491 69" align="align:center top;" id="grp_sea" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="병동 :" position="absolute 11 8 91 25" id="caption2" class="search_name"/>
- <Button position="absolute 425 15 481 37" id="button1" class="btn1" taborder="4" text="조회" onclick="grp_sea_button1_onclick"/>
- <Shape position="absolute 406 15 412 37" linetype="vertical" id="line13" class="line_4"/>
- <Combo position="absolute 89 7 194 26" id="cmb_wardcd" class="combo_essential" enable="true" innerdataset="@ds_init_ward" datacolumn="wardnm" codecolumn="wardcd" onitemchanged="grp_sea_cmb_wardcd_onitemchanged"/>
- <Static text="업무일자 :" position="absolute 10 30 85 47" id="caption9" class="search_name"/>
- <Calendar position="absolute 89 29 194 48" id="ipt_fromdd" class="input_essential" onchanged="grp_sea_ipt_orddd_onchanged" autoselect="true" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar id="ipt_todd" taborder="5" autoselect="true" dateformat="yyyy-MM-dd" onchanged="grp_sea_ipt_orddd_onchanged" class="input_essential" position="absolute 217 29 322 48"/>
- <Static id="caption4" text="~" position="absolute 197 36 217 43" style="align:center middle;" align="align:center middle;"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="환자리스트" position="absolute 0 79 97 95" id="caption1" class="tit_2"/>
- <Shape position="absolute 0 95 491 101" linetype="horizontal" id="line1" class="line_10"/>
- <Div position="absolute 495 32 1200 764" id="ivw_loader" url="emr_medirecxp::SSMMR01100_서식로더.xfdl" anchor="all"/>
- <Button position="absolute 1136 4 1200 23" id="btn_signsave" class="btn5" text="인증저장" onclick="btn_signsave_onclick" anchor="top right"/>
- <Button position="absolute 1068 4 1132 23" id="button2" class="btn2" text="기록삭제" onclick="button2_onclick" anchor="top right"/>
- <Shape position="absolute 495 24 1200 30" linetype="horizontal" id="line2" class="line_10" anchor="left top right"/>
- <Static text="기록작성" position="absolute 495 8 606 24" id="caption7" class="tit_2"/>
- <Static text="환자경험평가" position="absolute 0 0 163 20" id="cpt_title" class="tit_1"/>
- <Edit id="opt_patinfo" taborder="1" readonly="true" class="edt_transbg" position="absolute 569 6 829 24" anchor="left top" style="font:Dotum,9,bold;"/>
- <Button id="btn_ininfo" taborder="2" text="입원정보" onclick="group3_btn_ininfo_onclick" class="btn2" position="absolute 270 75 334 94"/>
- <Button id="btn_dschinfo" taborder="3" text="퇴원정보" onclick="group3_btn_dschinfo_onclick" class="btn2" position="absolute 337 75 401 94"/>
- <Button id="btn_record" taborder="4" text="통합기록조회" onclick="group3_btn_record_onclick" class="btn2" position="absolute 404 75 490 94"/>
- <Button id="btn_excel" taborder="6" text="엑셀" onclick="btn_excel_onclick" class="btn7" position="absolute 215 75 267 94"/>
- <Button id="btn_zoom" taborder="7" text="확대하기" onclick="group3_btn_zoom_onclick" class="btn5" position="absolute 149 75 213 94"/>
- <Grid id="grd_wardpatlist" class="datagrid2" taborder="8" binddataset="ds_main_wardpatinfo_wardpatlist" scrollpixel="all" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" oncelldblclick="grd_wardpatlist_oncelldblclick" position="absolute 0 100 491 764" anchor="left top bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="42"/>
- <Column size="55"/>
- <Column size="54"/>
- <Column size="40"/>
- <Column size="42"/>
- <Column size="72"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- </Columns>
- <Rows>
- <Row size="26" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" rowspan="2" text="병실" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="등록번호" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="환자명" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="기록 여부" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="S/A" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="진료과" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="입원일자" taborder="undefined"/>
- <Cell col="8" rowspan="2" text="퇴원일자" taborder="undefined"/>
- <Cell col="9" text="cretno"/>
- <Cell col="10" text="instcd"/>
- <Cell col="11" text="ordtype"/>
- <Cell col="12" text="orddeptcd"/>
- <Cell col="13" text="hd"/>
- <Cell col="14" colspan="6" text="1) 입원중 간호사의 의료서비스" taborder="undefined"/>
- <Cell col="20" colspan="6" text="2) 입원 중 의사의 진료서비스" taborder="undefined"/>
- <Cell col="26" colspan="7" text="3) 투약 및 치료과정" taborder="undefined"/>
- <Cell col="33" colspan="4" text="4) 병원 환경" taborder="undefined"/>
- <Cell col="37" colspan="6" text="5) 환자권리보장" taborder="undefined"/>
- <Cell col="43" colspan="4" text="6) 전반적 평가" taborder="undefined"/>
- <Cell col="47" colspan="3" text="7) 개인 특성" taborder="undefined"/>
- <Cell row="1"/>
- <Cell row="1" col="9"/>
- <Cell row="1" col="10"/>
- <Cell row="1" col="11"/>
- <Cell row="1" col="12"/>
- <Cell row="1" col="13"/>
- <Cell row="1" col="14" text="1. 존중/예의 항목"/>
- <Cell row="1" col="15" text="2. 이야기 경청"/>
- <Cell row="1" col="16" text="3. 병원생활 설명"/>
- <Cell row="1" col="17" text="4. 도움 처리 노력"/>
- <Cell row="1" col="18" text="합계"/>
- <Cell row="1" col="19" text="평균"/>
- <Cell row="1" col="20" text="5. 존중/예의 항목"/>
- <Cell row="1" col="21" text="6. 이야기 경청"/>
- <Cell row="1" col="22" text="7. 병원생활 설명"/>
- <Cell row="1" col="23" text="8. 도움 처리 노력"/>
- <Cell row="1" col="24" text="합계"/>
- <Cell row="1" col="25" text="평균"/>
- <Cell row="1" col="26" text="9. 이유 설명"/>
- <Cell row="1" col="27" text="10. 부작용 설명"/>
- <Cell row="1" col="28" text="11. 통증조치"/>
- <Cell row="1" col="29" text="12. 위로, 공감"/>
- <Cell row="1" col="30" text="13. 치료계획 정보"/>
- <Cell row="1" col="31" text="합계"/>
- <Cell row="1" col="32" text="평균"/>
- <Cell row="1" col="33" text="14. 깨끗함"/>
- <Cell row="1" col="34" text="15. 안전함"/>
- <Cell row="1" col="35" text="합계"/>
- <Cell row="1" col="36" text="평균"/>
- <Cell row="1" col="37" text="16. 공평한 대우"/>
- <Cell row="1" col="38" text="17. 불만사항 토로"/>
- <Cell row="1" col="39" text="18. 검사/치료 결정 참여"/>
- <Cell row="1" col="40" text="19. 수치감 배려"/>
- <Cell row="1" col="41" text="합계"/>
- <Cell row="1" col="42" text="평균"/>
- <Cell row="1" col="43" text="20. 입원 경험 평가"/>
- <Cell row="1" col="44" text="21. 추천 평가"/>
- <Cell row="1" col="45" text="합계"/>
- <Cell row="1" col="46" text="평균"/>
- <Cell row="1" col="47" text="22. 응급실 경유 입원"/>
- <Cell row="1" col="48" text="23. 현 건강 상태"/>
- <Cell row="1" col="49" text="24. 최종학력"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="align:left;" text="bind:roomcd"/>
- <Cell col="2" style="align:left;" text="bind:pid"/>
- <Cell col="3" style="align:left;" text="bind:patnm"/>
- <Cell col="4" style="align:left;" text="bind:formrecseq"/>
- <Cell col="5" style="align:left;" text="bind:sexage"/>
- <Cell col="6" style="align:left top;padding:4 2 2 2;" text="bind:orddeptnm" wordwrap="word"/>
- <Cell col="7" displaytype="date" style="align:left;" text="bind:indd" calendardisplaynulltype="none"/>
- <Cell col="8" displaytype="date" style="align:left;" text="bind:dschdd" calendardisplaynulltype="none"/>
- <Cell col="9" text="bind:cretno"/>
- <Cell col="10" text="bind:instcd"/>
- <Cell col="11" text="bind:ordtype"/>
- <Cell col="12" text="bind:orddeptcd"/>
- <Cell col="13" text="bind:hd"/>
- <Cell col="14" text="bind:formrec1"/>
- <Cell col="15" text="bind:formrec2"/>
- <Cell col="16" text="bind:formrec3"/>
- <Cell col="17" text="bind:formrec4"/>
- <Cell col="18" text="bind:sum1"/>
- <Cell col="19" text="bind:avg1"/>
- <Cell col="20" text="bind:formrec5"/>
- <Cell col="21" text="bind:formrec6"/>
- <Cell col="22" text="bind:formrec7"/>
- <Cell col="23" text="bind:formrec8"/>
- <Cell col="24" text="bind:sum2"/>
- <Cell col="25" text="bind:avg2"/>
- <Cell col="26" text="bind:formrec9"/>
- <Cell col="27" text="bind:formrec10"/>
- <Cell col="28" text="bind:formrec11"/>
- <Cell col="29" text="bind:formrec12"/>
- <Cell col="30" text="bind:formrec13"/>
- <Cell col="31" text="bind:sum3"/>
- <Cell col="32" text="bind:avg3"/>
- <Cell col="33" text="bind:formrec14"/>
- <Cell col="34" text="bind:formrec15"/>
- <Cell col="35" text="bind:sum4"/>
- <Cell col="36" text="bind:avg4"/>
- <Cell col="37" text="bind:formrec16"/>
- <Cell col="38" text="bind:formrec17"/>
- <Cell col="39" text="bind:formrec18"/>
- <Cell col="40" text="bind:formrec19"/>
- <Cell col="41" text="bind:sum5"/>
- <Cell col="42" text="bind:avg5"/>
- <Cell col="43" text="bind:formrec20"/>
- <Cell col="44" text="bind:formrec21"/>
- <Cell col="45" text="bind:sum6"/>
- <Cell col="46" text="bind:avg6"/>
- <Cell col="47" text="bind:formrec22"/>
- <Cell col="48" text="bind:formrec23"/>
- <Cell col="49" text="bind:formrec24"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </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="wardcd" type="STRING" size="256" sumtext="병동코드"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="indschacptstat" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
- <Column id="wardnm" type="STRING" size="256" sumtext="병동명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="depthngnm" type="STRING" size="256" sumtext="부서명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_settingrn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="settingrnid" type="STRING" size="256" sumtext="세팅간호사ID"/>
- <Column id="settingrnnm" type="STRING" size="256" sumtext="세팅간호사명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_wardpatinfo_wardpatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실번호"/>
- <Column id="bedcd" type="STRING" size="256" sumtext="병상번호"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="sexage" type="STRING" size="256" sumtext="성별나이"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
- <Column id="hd" type="STRING" size="256" sumtext="재원일"/>
- <Column id="indd" type="STRING" size="256" sumtext="입원일"/>
- <Column id="dschdd" type="STRING" size="256" sumtext="퇴실일"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="formrecseq" type="STRING" size="256" sumtext="기록정보"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="inrecflag" type="STRING" size="256"/>
- <Column id="dschrecflag" type="STRING" size="256"/>
- <Column id="formrec1" type="STRING" size="256"/>
- <Column id="formrec2" type="STRING" size="256"/>
- <Column id="formrec3" type="STRING" size="256"/>
- <Column id="formrec4" type="STRING" size="256"/>
- <Column id="formrec5" type="STRING" size="256"/>
- <Column id="formrec6" type="STRING" size="256"/>
- <Column id="formrec7" type="STRING" size="256"/>
- <Column id="formrec8" type="STRING" size="256"/>
- <Column id="formrec9" type="STRING" size="256"/>
- <Column id="formrec10" type="STRING" size="256"/>
- <Column id="formrec11" type="STRING" size="256"/>
- <Column id="formrec12" type="STRING" size="256"/>
- <Column id="formrec13" type="STRING" size="256"/>
- <Column id="formrec14" type="STRING" size="256"/>
- <Column id="formrec15" type="STRING" size="256"/>
- <Column id="formrec16" type="STRING" size="256"/>
- <Column id="formrec17" type="STRING" size="256"/>
- <Column id="formrec18" type="STRING" size="256"/>
- <Column id="formrec19" type="STRING" size="256"/>
- <Column id="formrec20" type="STRING" size="256"/>
- <Column id="formrec21" type="STRING" size="256"/>
- <Column id="formrec22" type="STRING" size="256"/>
- <Column id="formrec23" type="STRING" size="256"/>
- <Column id="formrec24" type="STRING" size="256"/>
- <Column id="avg1" type="STRING" size="256"/>
- <Column id="avg2" type="STRING" size="256"/>
- <Column id="avg3" type="STRING" size="256"/>
- <Column id="avg4" type="STRING" size="256"/>
- <Column id="avg5" type="STRING" size="256"/>
- <Column id="avg6" type="STRING" size="256"/>
- <Column id="sum1" type="STRING" size="256"/>
- <Column id="sum2" type="STRING" size="256"/>
- <Column id="sum3" type="STRING" size="256"/>
- <Column id="sum4" type="STRING" size="256"/>
- <Column id="sum5" type="STRING" size="256"/>
- <Column id="sum6" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="indschacptstat" type="STRING" size="256"/>
- <Column id="recflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_cond_formdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="formcd" type="STRING" size="256"/>
- <Column id="formkind" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="btnvisible" type="STRING" size="256"/>
- <Column id="btnenable" type="STRING" size="256"/>
- <Column id="unpreprec" type="STRING" size="256"/>
- <Column id="modalyn" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="topyn" type="STRING" size="256"/>
- <Column id="formrecddenable" type="STRING" size="256"/>
- <Column id="formrecdd" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="formkind"/>
- <Col id="formcd"/>
- <Col id="pid"/>
- <Col id="orddd"/>
- <Col id="cretno"/>
- <Col id="btnvisible"/>
- <Col id="orddeptcd"/>
- <Col id="modalyn"/>
- <Col id="unpreprec"/>
- <Col id="btnenable"/>
- <Col id="ioflag"/>
- <Col id="topyn"/>
- <Col id="formrecdd"/>
- <Col id="formrecddenable"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.cmb_wardcd" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
- <BindItem id="item1" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item2" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_wardcarexp -> SMMNW14310
- * Creator : ENR
- * Make Date : 2017-04-20
- * Description : 최초개발
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-04-20 ENR XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_medirecxp::MMR01100.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description :
- ****************************************************************************************/
- function fSearch(nFlag) {
-
- ds_send.setColumn(0, "wardcd", ds_main_cond.getColumn(0, "wardcd"));
- ds_send.setColumn(0, "indschacptstat", ds_main_cond.getColumn(0, "indschacptstat"));
- //ds_send.setColumn(0, "orddd", ds_main_cond.getColumn(0, "orddd"));
- ds_send.setColumn(0, "fromdd", ds_main_cond.getColumn(0, "fromdd"));
- ds_send.setColumn(0, "todd", ds_main_cond.getColumn(0, "todd"));
-
- var deptcd = ds_send.getColumn(0, "wardcd");
- var fromdd = ds_send.getColumn(0, "fromdd");
- var todd = ds_send.getColumn(0, "todd");
-
- var diff = utlf_getDateInterval(fromdd, todd, "dd") + 1;
- if (utlf_isNull(deptcd)) {
- sysf_messageBox("병동을 다시 설정 후 조회하십시오.", "E999");
- return;
- }
- if (utlf_isNull(fromdd) || utlf_isNull(todd)) {
- sysf_messageBox("조회 일자를 다시 설정 후 조회하십시오 .", "E999");
- return;
- }
- if (fromdd > todd) {
- sysf_messageBox("조회 일자를 다시 설정 후 조회하십시오.", "E999");
- return;
- }
- if (diff > 32) {
- sysf_messageBox("조회 기간을 한 달 이하로 수정 후 조회하십시오.", "E999");
- return;
- }
-
- //ds_send.clearData();
- //ds_send_reqdata.clearData();
- //ds_send_reqdata.copyData(ds_cond);
-
- var oParam = {};
- //oParam.id = "TRMNW30001";
- oParam.service = "wardcareapp.TranMngt";
- oParam.method = "reqGetCnstPatAsmtInfoList";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_wardpatinfo_wardpatlist=cnstlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNW30001";
- tranf_submit(oParam);
-
- ds_main_wardpatinfo_wardpatlist.rowposition = -1;
-
- if( utlf_isNull(nFlag) ){
- ivw_loader.ivw_base.url = "";
- lf_SetPatInfo(-1);
- }
-
- }
- function fRecordsearch() {
- // 16.12.07_프로그램 내에서 환자 기본정보에 대한 Parameter을 넘기더라도 우선적으로 상단정보를 가져가는 것을 막기위함.
-
- var nRow = ds_main_wardpatinfo_wardpatlist.rowposition;
-
- var instcd = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "instcd");
- var pid = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "pid");
- var indd = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "indd");
- var cretno = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "cretno");
- var recflag = ds_main_cond.getColumn(0, "recflag");
-
- //var searchdd = ds_main_cond.getColumn(0, "orddd");
- //var searchdd = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "indd");
-
- var wardcd = ds_main_cond.getColumn(0, "wardcd");
- var formrecseq = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "formrecseq");
- var formcd = '1700019281'; //2017.04.21_퇴원환자경험평가표 서식
- var orddeptcd = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "orddeptcd");
- var ordtype = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "ordtype");
- if( utlf_isNull(pid) || utlf_isNull(indd) || utlf_isNull(cretno) ){
- sysf_messageBox("환자가 선택되지 " , "E007");
- return;
- }
-
- //2017.06.05_상단정보 셋팅 로직 추가
-
- var ordtype = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "ordtype");
-
- var param = ordtype + "▦" + pid
- + "▦" + indd
- + "▦" + cretno
- + "▦" + instcd
- + "▦" + ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "dschdd");
- sysf_trace(param);
- appf_initPatientInfo(param);
-
- //
-
- ivw_loader.ivw_base.url = "";
-
- // 서식 로드
- // frmf_setParameter("SSMMR01100_recsavechk", "Y");
- var objArg = new Object();
- var vFormKind = "new";
- if(formrecseq != "N"){
- vFormKind = "rec";
- formcd = formrecseq;
- searchdd = "";
- }
-
- ds_cond_formdata.clearData();
- ds_cond_formdata.addRow();
- ds_cond_formdata.setColumn(0, "formcd", formcd); // 서식목록 - linkcd, 기록목록 - formrecseq 컬럼값.
- ds_cond_formdata.setColumn(0, "formkind", vFormKind); // 서식목록 탭 - new , 기록목록 - rec
- ds_cond_formdata.setColumn(0, "btnvisible", false);
- ds_cond_formdata.setColumn(0, "pid", pid);
- ds_cond_formdata.setColumn(0, "orddd", indd);
- ds_cond_formdata.setColumn(0, "cretno", cretno);
- ds_cond_formdata.setColumn(0, "orddeptcd", orddeptcd);
- ds_cond_formdata.setColumn(0, "ioflag", ordtype); //인증서 관련 처리 필요
- ds_cond_formdata.setColumn(0, "topyn", "N");
- ds_cond_formdata.setColumn(0, "formrecddenable", "N");
- //ds_cond_formdata.setColumn(0, "formrecdd", searchdd);
- ds_cond_formdata.setColumn(0, "wardcd", wardcd);
-
- sysf_trace("###wardcd1####"+wardcd);
-
- objArg.ds_cond_formdata = ds_cond_formdata;
-
- lf_loadSMMMR01100(false, objArg);
-
- lf_SetPatInfo(nRow);
-
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW14310
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMNW14310_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW14310
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMNW14310_onload(obj:Form, e:LoadEventInfo)
- {
- var sWardcd = sysf_getUserInfo("dutplcecd");
- ds_main_cond.setColumn(0, "wardcd", sWardcd);
-
- ds_main_cond.setColumn(0, "indschacptstat", "1");
- ds_main_cond.setColumn(0, "recflag", "1");
-
- grdf_setGridSort(grd_wardpatlist);
-
- var wid = parseInt(ivw_loader.position.width);
- var hei = parseInt(ivw_loader.position.height);
-
- //공통코드 로드
- var arrParam = [{dsNm: "ds_tmp_M0068list_M0068", cdGrpId: "M0068"}
- ,{dsNm: "ds_tmp_M0069list_M0068", cdGrpId: "M0069"}
- ,{dsNm: "ds_tmp_P0157list_M0068", cdGrpId: "P0157"}
- ,{dsNm: "ds_tmp_M0206list_M0068", cdGrpId: "M0206"}]
- appf_getCodeList(arrParam);
-
- var oParam = {};
- oParam.id = "TRMNW00101";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetWMInitData";
- oParam.inds = "reqcond=ds_main_cond";
- oParam.outds = "ds_init_ward=ward ds_init_dept=dept ds_init_settingrn=settingrn";
- oParam.async = false;
- //oParam.callback = "cf_TRMNW00101";
- tranf_submit(oParam);
-
- ds_main_cond.setColumn(0, "wardcd", sysf_getUserInfo("dutplcecd"));
- ds_main_cond.setColumn(0, "todd", utlf_getCurrentDate());
-
- //ds_main_cond.setColumn(0, "fromdd", ds_main_cond.getColumn(0,"todd")-7 );
- //var vFromdd = ds_main_cond.getColumn(0,"todd");
- ds_main_cond.setColumn(0, "fromdd", utlf_addDate(ds_main_cond.getColumn(0,"todd"), -7) );
-
-
-
-
- //ivw_loader.grup_btn.visible = false;
-
- fSearch();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : cmb_wardcd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 콤보 값 변경시
- ****************************************************************************************/
- function grp_sea_cmb_wardcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fSearch();
- }
- /****************************************************************************************
- * Components : Calendar
- * Components ID : ipt_orddd
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 달력 값 변경시
- ****************************************************************************************/
- function grp_sea_ipt_orddd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- //fSearch();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_wardpatlist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function grd_wardpatlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fRecordsearch();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_signsave
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 인증저장버튼 클릭시
- ****************************************************************************************/
- function btn_signsave_onclick(obj:Button, e:ClickEventInfo)
- {
- var grd_row = grd_wardpatlist.currentrow;
- if (grd_row >= 0) {
- if( utlf_isNull(ivw_loader.ivw_base.url) ){
- sysf_messageBox("선택한 기록이 존재하지 않습니다." , "E");
- return;
- }
- if( ivw_loader.fClickSave("Y") ) {
- fSearch(true);
- ds_main_wardpatinfo_wardpatlist.selectRow(grd_row);
- ds_main_wardpatinfo_wardpatlist.rowposition = grd_row;
- fRecordsearch();
- }
-
- } else {
- sysf_messageBox("환자를 선택하지" , "E007");
- return;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 기록삭제버튼 클릭시
- ****************************************************************************************/
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- if( utlf_isNull(ivw_loader.ivw_base.url) ){
- sysf_messageBox("선택한 기록이 존재하지 않습니다." , "E");
- return;
- }
-
- ivw_loader.grup_btn.btn_del.click();
- fSearch();
- }
- /****************************************************************************************
- * Argument : 01.nRow : Grid rowposition
- * Description : 선택한 기록에 대한 환자정보
- ****************************************************************************************/
- function lf_SetPatInfo(nRow){
- if( !utlf_isNull(nRow) ){
- if( nRow == -1 ){
- opt_patinfo.value = "";
- return;
- }
- var grdDs = this.objects["ds_main_wardpatinfo_wardpatlist"];
- var nPid = grdDs.getColumn(nRow, "pid");
- var nPatnm = grdDs.getColumn(nRow, "patnm");
- var nSa = grdDs.getColumn(nRow, "sexage");
- var nRoomcd = grdDs.getColumn(nRow, "roomcd");
-
- opt_patinfo.value = "- " + nPid + " " + nPatnm + "(" + nSa + ") " + nRoomcd;
- }
- }
- function group3_btn_ininfo_onclick(obj:Button, e:ClickEventInfo)
- {
- var pid = ds_main_wardpatinfo_wardpatlist.getColumn(ds_main_wardpatinfo_wardpatlist.rowposition, "pid");
- var instcd = ds_main_wardpatinfo_wardpatlist.getColumn(ds_main_wardpatinfo_wardpatlist.rowposition, "instcd");
-
- if( utlf_isNull(pid) ) {
- sysf_messageBox("환자를 선택해주십시오.", "I");
- return;
- }
- var inrecflag = ds_main_wardpatinfo_wardpatlist.getColumn(ds_main_wardpatinfo_wardpatlist.rowposition, "inrecflag");
- if( inrecflag == "01"){ // 병동
- if(instcd == "032"){
- frmf_open("SMMNW03100","SMMNW03100","","",1,50,250,"","","","","","M");
- }else{
- frmf_open("SMMNW04100","SMMNW04100","","",1,50,250,"","","","","","M");
- }
-
- }else if( inrecflag == "02"){ // 정신과
-
- frmf_open("SMMNW03400","SMMNW03400","","",1,50,250,"","","","","","M");
-
- }else if( inrecflag == "03"){ // 산모
-
- frmf_open("SMMNN00300","SMMNN00300","","",1,50,250,"","","","","","M");
-
- }else if( inrecflag == "04"){ // 소아청소년
-
- frmf_open("SMMNW03200","SMMNW03200","","",1,50,250,"","","","","","M");
-
- }else if( inrecflag == "05"){ // BMT
-
- frmf_open("SMMNW03500","SMMNW03500","","",1,50,250,"","","","","","M");
-
- }else if( inrecflag == "06" || inrecflag == "07" ){ // 신생아
-
- frmf_open("SMMNN00400","SMMNN00400","","",1,50,250,"","","","","","M");
-
- }else if( inrecflag == "10"){ // 응급
-
- frmf_open("SMMNE04300","SMMNE04300","","",1,50,250,"","","","","","M");
-
- }else {
- sysf_messageBox("간호정보 조사지가 없습니다.", "I");
- return;
- }
- }
- function group3_btn_dschinfo_onclick(obj:Button, e:ClickEventInfo)
- {
- var pid = ds_main_wardpatinfo_wardpatlist.getColumn(ds_main_wardpatinfo_wardpatlist.rowposition, "pid");
- var instcd = ds_main_wardpatinfo_wardpatlist.getColumn(ds_main_wardpatinfo_wardpatlist.rowposition, "instcd");
-
- if( utlf_isNull(pid) ) {
- sysf_messageBox("환자를 선택해주십시오.", "I");
- return;
- }
- var dschrecflag = ds_main_wardpatinfo_wardpatlist.getColumn(ds_main_wardpatinfo_wardpatlist.rowposition, "dschrecflag");
- if( dschrecflag == "01"){ // 병동
- frmf_open("SMMNW03600","SMMNW03600","","",1,50,250,"","","","","","M");
-
- }else if( dschrecflag == "02"){ // 소아
-
- frmf_open("SMMNW05800","SMMNW05800","","",1,50,250,"","","","","","M");
-
- }else if( dschrecflag == "03"){ // 정신과
-
- frmf_open("SMMNW05900","SMMNW05900","","",1,50,250,"","","","","","M");
-
- }else if( dschrecflag == "04"){ // BMT
-
- frmf_open("SMMNW03800","SMMNW03800","","",1,50,250,"","","","","","M");
-
- }else if( dschrecflag == "05"){ // 산모
-
- frmf_open("SMMNN00500","SMMNN00500","","",1,50,250,"","","","","","M");
-
- }else if( dschrecflag == "06"){ // 신생아
-
- frmf_open("SMMNN00600","SMMNN00600","","",1,50,250,"","","","","","M");
-
- }else {
-
- sysf_messageBox("퇴원정보 조사지가 없습니다.", "I");
- return;
-
- }
- }
- function group3_btn_record_onclick(obj:Button, e:ClickEventInfo)
- {
- var pid = ds_main_wardpatinfo_wardpatlist.getColumn(ds_main_wardpatinfo_wardpatlist.rowposition, "pid");
-
- if( utlf_isNull(pid) ) {
- sysf_messageBox("환자를 선택해주십시오.", "I");
- return;
- }
-
- frmf_setParameter("SMMRI00400_param_pid", pid);
- frmf_open("SMMRI00400","SMMRI00400","","","","","","","","","","","M");
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_wardpatinfo_wardpatlist.rowcount > 0 ){
- grdf_exportExcel(grd_wardpatlist, "환자경험평가 리스트", "환자경험평가 리스트", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- function group3_btn_zoom_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( btn_zoom.text == "확대하기" ) {
- btn_zoom.text = "축소하기";
- grd_wardpatlist.position.left = 0;
- grd_wardpatlist.position.width = 1200;
- } else {
- btn_zoom.text = "확대하기";
- grd_wardpatlist.position.left = 0;
- grd_wardpatlist.position.width = 491;
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|