123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMANT01000" position="absolute 0 0 1164 805" titletext="환자별식사력조회" oninit="model1_oninit" onload="SMANT01000_onload" ontimer="SMANT01000_ontimer">
- <Layouts>
- <Layout>
- <Static id="caption13" text="환자별식사력조회" class="tit_1" position="absolute 0 4 137 29"/>
- <Static id="caption10" text="환자선택" class="tit_2" position="absolute 0 102 97 122"/>
- <Button id="btn_excel1" taborder="3" text="엑셀" onclick="btn_excel1_onclick" onlbuttonup="btn_excel1_onlbuttonup" class="btn7" position="absolute 296 99 345 119"/>
- <Button id="btn_excel2" taborder="2" text="엑셀" onclick="btn_excel2_onclick" onlbuttonup="btn_excel2_onlbuttonup" class="btn7" position="absolute 1107 99 1156 119" anchor="top right"/>
- <Div id="roundrect1" anchor="left top right" taborder="9" applystyletype="apply" style="align:center top;transformation:0,0 ;" scrollbars="none" class="div_SA" position="absolute 0 29 1156 96">
- <Layouts>
- <Layout>
- <Static id="caption4" text="처방일자" class="search_name" position="absolute 8 10 76 30" anchor="default"/>
- <Calendar id="ipt_fromdd" taborder="34" dateformat="yyyy-MM-dd" class="input_s_essential" position="absolute 77 10 177 30" anchor="default" autoselect="true"/>
- <Static id="caption7" text="병동" class="search_name" position="absolute 8 35 70 55" anchor="default"/>
- <Combo id="cmb_ward" taborder="35" innerdataset="@ds_init_cmb_ward" codecolumn="deptcd" datacolumn="depthngnm" onitemchanged="roundrect1_cmb_ward_onitemchanged" class="combo_s_essential" position="absolute 77 35 177 55" anchor="default"/>
- <Static id="caption2" text="병실" class="search_name" position="absolute 206 35 248 55" anchor="default"/>
- <Combo id="cmb_room" taborder="36" innerdataset="@ds_init_cmb_room" codecolumn="wardroomcdid" datacolumn="wardroomcdnm" class="combo_s_essential" position="absolute 248 35 329 55" anchor="default" onitemchanged="roundrect1_cmb_room_onitemchanged"/>
- <Calendar id="ipt_todd" taborder="37" dateformat="yyyy-MM-dd" class="input_s_essential" position="absolute 193 10 293 30" anchor="default" autoselect="true"/>
- <Static id="caption11" text="재원구분" class="search_name" position="absolute 347 10 415 30" anchor="default"/>
- <Radio id="rdo_patflag" taborder="38" columncount="4" rowcount="0" index="0" codecolumn="codecolumn" datacolumn="datacolumn" value="0" onitemclick="roundrect1_rdo_patflag_onitemclick" class="radio_search" position="absolute 413 10 613 30" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </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">3</Col>
- <Col id="datacolumn">신환</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption5" text="진료과" class="search_name" position="absolute 347 35 433 55" anchor="default"/>
- <Combo id="cmb_orddept" taborder="39" innerdataset="@ds_init_cmb_orddept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_s_essential" position="absolute 413 35 538 55" anchor="default"/>
- <Static id="caption3" text="식사" class="search_name" position="absolute 647 35 707 55" anchor="default"/>
- <Combo id="cmb_diet" taborder="40" innerdataset="@ds_init_cmb_diet" codecolumn="cdid" datacolumn="cdnm" class="combo_s_essential" position="absolute 721 35 826 55" anchor="default"/>
- <Button id="btn_search" taborder="44" text="조회" onclick="btn_search_onclick" class="btn1" position="absolute 1093 10 1149 30" anchor="top right"/>
- <Static id="caption6" text="~" position="absolute 177 10 193 30" style="align:center middle;" anchor="default"/>
- <Static id="stt_pid" text="등록번호/환자명" class="search_name" position="absolute 648 9 764 29" anchor="left top"/>
- <Edit id="edt_pid" taborder="45" inputtype="number" maxlength="9" position="absolute 759 8 857 28" onkeydown="roundrect1_edt_pid_onkeydown" autoselect="true"/>
- <Edit id="edt_patnm" taborder="46" imemode="hangul" position="absolute 870 8 968 28" onkeydown="roundrect1_edt_patnm_onkeydown" autoselect="true"/>
- <Button id="btn_hngnm" taborder="47" class="icon_search" position="absolute 971 8 991 28" onclick="roundrect1_btn_hngnm_onclick"/>
- <Static id="Static00" text="/" position="absolute 860 10 873 26"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_diet" taborder="10" binddataset="ds_grid_grd_diet" useinputpanel="false" cellsizingtype="col" position="absolute 352 125 1157 805" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="67"/>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="74"/>
- <Column size="79"/>
- <Column size="80"/>
- <Column size="40"/>
- <Column size="151"/>
- <Column size="126"/>
- <Column size="100"/>
- <Column size="68"/>
- <Column size="72"/>
- <Column size="73"/>
- <Column size="52"/>
- <Column size="66"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="22"/>
- </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="remark"/>
- <Cell col="11" text="입원일자"/>
- <Cell col="12" text="최종변경일자"/>
- <Cell col="13" text="최종수정자"/>
- <Cell col="14" text="담당교수"/>
- <Cell col="15" text="진료과"/>
- <Cell col="16" text="prcphistcd"/>
- <Cell col="17" text="remark"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="combo" text="bind:ward" combodataset="ds_init_cmb_ward" combocodecol="deptcd" combodatacol="depthngnm"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:room"/>
- <Cell col="3" text="bind:pid"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:procermealyn"/>
- <Cell col="6" displaytype="date" edittype="date" style="align:left middle;padding:0 0 0 3;" text="bind:mealdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="7" displaytype="combo" edittype="none" style="align:left middle;padding:0 0 0 3;" text="bind:dietmeal" combodataset="ds_radio1" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="8" style="align:left middle;padding:0 0 0 3;" text="bind:dietcd"/>
- <Cell col="9" style="align:left middle;padding:0 0 0 3;" text="bind:prcpdelivefact"/>
- <Cell col="10" style="align:left middle;padding:0 0 0 3;" text="bind:remark"/>
- <Cell col="11" displaytype="date" style="align:left middle;padding:0 0 0 3;" text="bind:orddd" calendardisplaynulltype="none"/>
- <Cell col="12" displaytype="date" style="align:left middle;padding:0 0 0 3;" text="bind:lastupdtdd" calendardisplaynulltype="none"/>
- <Cell col="13" style="align:left middle;padding:0 0 0 3;" text="bind:lastupdtnm"/>
- <Cell col="14" style="align:left middle;padding:0 0 0 3;" text="bind:atdoct"/>
- <Cell col="15" style="align:left middle;padding:0 0 0 3;" text="bind:orddept"/>
- <Cell col="16" text="bind:prcphistcd"/>
- <Cell col="17" text="bind:remark"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_patlist" taborder="11" binddataset="ds_grid_grd_patlist" useinputpanel="false" cellsizingtype="col" autosizingtype="none" oncellclick="grd_patlist_oncellclick" position="absolute 0 125 345 805" anchor="left top bottom" style="align:center middle;" onclick="grd_patlist_onclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="42"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="100"/>
- <Column size="156"/>
- <Column size="68"/>
- <Column size="71"/>
- <Column size="68"/>
- <Column size="52"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="22"/>
- </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="재원상태"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" text="bind:room" autosizecol="limitmin"/>
- <Cell col="2" style="align:left middle;" text="bind:hngnm" autosizecol="limitmin"/>
- <Cell col="3" displaytype="text" style="align:center;" text="bind:pid" autosizecol="limitmin"/>
- <Cell col="4" displaytype="combo" edittype="none" text="bind:orddeptcd" combodataset="ds_init_cmb_orddept" combocodecol="deptcd" combodatacol="depthngnm" autosizecol="limitmin"/>
- <Cell col="5" text="bind:diagnm"/>
- <Cell col="6" text="bind:indd"/>
- <Cell col="7" text="bind:dschdd"/>
- <Cell col="8" displaytype="combo" edittype="none" text="bind:ward" combodataset="ds_init_cmb_ward" combocodecol="deptcd" combodatacol="depthngnm" autosizecol="limitmin"/>
- <Cell col="9" displaytype="normal" text="bind:indschacptstat" combodataset="ds_init_patflag" combocodecol="cdid" combodatacol="cdnm" autosizecol="limitmin"/>
- <Cell col="10"/>
- </Band>
- </Format>
- <Format id="format_copy"/>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_1" position="absolute 0 120 346 126" style="strokepen:3 solid #33bbbbff;"/>
- <Shape id="line00" class="line_1" position="absolute 351 120 1157 126" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_patlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="ward" type="STRING"/>
- <Column id="room" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="prcpdd" type="STRING"/>
- <Column id="execprcpuniqno" type="STRING"/>
- <Column id="indd" type="STRING"/>
- <Column id="dschdd" type="STRING"/>
- <Column id="ward" type="STRING"/>
- <Column id="patflag" type="STRING"/>
- <Column id="h_indschacptstat" type="STRING"/>
- <Column id="indschacptstat" type="STRING" size="256"/>
- <Column id="diagnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_diet" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256"/>
- <Column id="ward" type="STRING" size="256"/>
- <Column id="room" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="procermealyn" type="STRING" size="256"/>
- <Column id="mealdd" type="STRING" size="256"/>
- <Column id="dietmeal" type="STRING" size="256"/>
- <Column id="dietcd" type="STRING" size="256"/>
- <Column id="prcpdelivefact" type="STRING" size="256"/>
- <Column id="clinccmtcnts" type="STRING" size="256"/>
- <Column id="tfdtlcd" type="STRING" size="256"/>
- <Column id="remark" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="lastupdtdd" type="STRING" size="256"/>
- <Column id="lastupdtnm" type="STRING" size="256"/>
- <Column id="atdoct" type="STRING" size="256"/>
- <Column id="orddept" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="check"/>
- <Col id="ward"/>
- <Col id="room"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="procermealyn"/>
- <Col id="mealdd"/>
- <Col id="dietmeal"/>
- <Col id="dietcd"/>
- <Col id="prcpdelivefact"/>
- <Col id="clinccmtcnts"/>
- <Col id="tfdtlcd"/>
- <Col id="remark"/>
- <Col id="orddd"/>
- <Col id="lastupdtdd"/>
- <Col id="lastupdtnm"/>
- <Col id="atdoct"/>
- <Col id="orddept"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_cmb_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_cmb_diet" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_room" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardroomcdid" type="STRING" size="256"/>
- <Column id="wardroomcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_radio1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_patflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">A</Col>
- <Col id="cdnm">재원</Col>
- </Row>
- <Row>
- <Col id="cdid">D</Col>
- <Col id="cdnm">퇴원</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_receivedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * File Name : SMANT01000_환자별식사력조회.xfdl
- * Creator :
- * Make Date : 2014-05-13
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_commonxp::AST.xjs";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function lf_initDataSet(){
- // cmb_ward의 INIT Dataset
- this.cmb_ward.innerdataset = "ds_init_cmb_ward";
- this.cmb_ward.codecolumn = "deptcd";
- this.cmb_ward.datacolumn = "depthngnm";
- // cmb_diet의 INIT Dataset
- this.cmb_diet.innerdataset = "ds_init_cmb_diet";
- this.cmb_diet.codecolumn = "cdid";
- this.cmb_diet.datacolumn = "cdnm";
- // cmb_room의 INIT Dataset
- this.cmb_room.innerdataset = "ds_init_cmb_room";
- this.cmb_room.codecolumn = "cdid";
- this.cmb_room.datacolumn = "cdnm";
- // cmb_orddept의 INIT Dataset
- this.cmb_orddept.innerdataset = "ds_init_cmb_orddept";
- this.cmb_orddept.codecolumn = "deptcd";
- this.cmb_orddept.datacolumn = "depthngnm";
- }
- // 병실 조회
- function submit_TRANT01004() {
- dsf_createDsRow("ds_send",
- [{col:"wardcd", val:roundrect1.cmb_ward.value}
- ,{col:"initflag", val:"2"}
- ]);
- var objParam = new Object();
- objParam.id = "TRANT01004";
- objParam.service = "dietsumapp.DietSum";
- objParam.method = "reqGetRoom";
- objParam.inds = "req=ds_send";
- objParam.outds ="ds_init_cmb_room=ret";
- objParam.callback = "cbf_TRANT01004";
-
- tranf_submit(objParam);
- }
- function cbf_TRANT01004(sSvcId, objErrorCode, objErrorMsg){
- roundrect1.cmb_room.index = 0;
- }
- // 환자선택 조회
- function submit_TRANT01001() {
- dsf_createDsRow("ds_send",
- [{col:"fromdd", val:roundrect1.ipt_fromdd.value}
- ,{col:"todd", val:roundrect1.ipt_todd.value}
- ,{col:"patflag", val:roundrect1.rdo_patflag.value}
- ,{col:"pid", val:utlf_transNullToEmpty(roundrect1.edt_pid.value)}
- ,{col:"hngnm", val:utlf_transNullToEmpty(roundrect1.edt_patnm.value)}
- ,{col:"orddept", val:roundrect1.cmb_orddept.value}
- ,{col:"ward", val:roundrect1.cmb_ward.value}
- ,{col:"room", val:roundrect1.cmb_room.value}
- ,{col:"diet", val:roundrect1.cmb_diet.value}
- ]);
-
- var objParam = new Object();
- objParam.id = "TRANT01001";
- objParam.service = "dietsumapp.DietSum";
- objParam.method = "reqGetDietPrcpPat";
- objParam.inds = "req=ds_send";
- objParam.outds ="ds_grid_grd_patlist=ret";
- objParam.callback = "cbf_TRANT01001";
-
- tranf_submit(objParam);
- }
- function cbf_TRANT01001(strSvcID, nErrorCode, strErrorMsg){
-
- //에러 처리
- if(nErrorCode == 0){
- ds_grid_grd_patlist.addColumn("patflag", "string"); //추가 삭제시 필요한 컬럼 추가
- ds_grid_grd_patlist.applyChange(); //상태값 normal로
- ds_grid_grd_patlist.rowposition = -1; //조회시 선택된 row 없도록
- }else{
-
- }
- }
- function finit() {
- // 화면open시 공통코드 setting
- appf_getCodeListSubmit([{cdGrpId: "A0047", dsNm: "ds_init_cmb_diet", sortField: "cdid", sortMethod: "desc"}]
- , false // 최소 컬럼 조회여부
- , false // 비동기 여부
- , "");
- appf_getCodeListSubmit([{cdGrpId: "M0042", dsNm: "ds_radio1", sortField: "cdnm", sortMethod: "desc"}]
- , false
- , true
- , "");
-
- appf_getCodeListSubmit([{cdGrpId: "A0355", dsNm: "ds_grid_grd_data", sortField: "", sortMethod: ""}]
- , false
- , true
- , "");
-
-
- //병동콤보
- appf_getWardDeptList(sysf_getUserInfo("dutplceinstcd"), "depthngnm", "asc", utlf_getCurrentDate(), "after", "ds_init_cmb_ward", "", "");
- frmf_addComboItem("roundrect1.cmb_ward", "- 전 체 -", "", ""); //상태
- roundrect1.cmb_ward.index = 0;
- //2.진료과 세팅
- var instcd = sysf_getUserInfo("dutplceinstcd");
- appf_getDeptCodeList(instcd, "orduseyn", "D", "", "", "", "", "", "ds_init_cmb_orddept", false);
- frmf_addComboItem("roundrect1.cmb_orddept", "- 전 체 -", "", "");
- roundrect1.cmb_orddept.index = 0;
-
- frmf_addComboItem("roundrect1.cmb_diet", "- 전 체-", "", "");
- roundrect1.cmb_diet.index = 0;
-
- }
- // 식사력 조회
- function fGetPatientDietList1()
- {
- if (grd_patlist.rowcount > 0)
- {
- var pid = ds_grid_grd_patlist.getColumn(ds_grid_grd_patlist.rowposition, "pid");
- var prcpdd =ds_grid_grd_patlist.getColumn(ds_grid_grd_patlist.rowposition, "prcpdd") ;
- var indd = ds_grid_grd_patlist.getColumn(ds_grid_grd_patlist.rowposition, "indd");
- var orddeptcd = ds_grid_grd_patlist.getColumn(ds_grid_grd_patlist.rowposition, "orddeptcd");
- var pid = ds_grid_grd_patlist.getColumn(ds_grid_grd_patlist.rowposition, "pid");
- dsf_createDsRow("ds_send",
- [{col:"fromdd", val:roundrect1.ipt_fromdd.value}
- ,{col:"todd", val:roundrect1.ipt_todd.value}
- ,{col:"ordflag", val:"DIET"}
- ,{col:"pid", val:pid}
- ,{col:"prcpdd", val:prcpdd}
- ,{col:"indd", val:indd}
- ,{col:"orddeptcd", val:orddeptcd}
- ,{col:"pid", val:pid}
- ]);
- var objParam = new Object();
- objParam.id = "TRANT01002";
- objParam.service = "dietsumapp.DietSum";
- objParam.method = "reqGetPatDietHist";
- objParam.inds = "req=ds_send";
- objParam.outds ="ds_grid_grd_diet=ret";
- objParam.callback = "cbf_TRANT01002";
-
- tranf_submit(objParam);
- }
- }
- function cbf_TRANT01002(strSvcID, nErrorCode, strErrorMsg){
-
- //에러 처리
- if(nErrorCode == 0){
- ds_grid_grd_diet.rowposition = -1; //조회시 선택된 row 없도록
- }else{
-
- }
- }
- function lf_callBack_SearchPatInfo(){
- roundrect1.btn_search.click();
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SMANT01000
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SMANT01000_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
-
- try{
- ds_main_receivedata.copyData(arg_ds_main_receivedata);
- }catch(e){
- sysf_catchTrace(e);
- }
- // //팝업으로 쓰일 때 값 세팅 - 20140703 홍다빈
- // if( frmf_getOpenerUID() == "top" ){ //상단에서 열 경우
- // var sdate = utlf_getCurrentDate();
- // roundrect1.ipt_fromdd.value = sdate;
- // roundrect1.ipt_todd.value = sdate;
- //
- // }else{
- // if( frmf_checkOpener() )
- // {
- // var a, b, c;
- // try{ a = pid; } catch(e){};
- // try{ b = fromdd; } catch(e){};
- // try{ c = todd; } catch(e){};
- //
- // roundrect1.edt_pid.value = a;
- // roundrect1.ipt_fromdd.value = b;
- // roundrect1.ipt_todd.value = c;
- //
- // var ev = new ClickEventInfo;
- // frmf_inputEnterKey("roundrect1.btn_search", "onclick", ev );
- // }
- // }
- // finit();
- //
- // roundrect1.btn_search.enable = frmf_checkAuth("R");
- // btn_excel1.enable = frmf_checkAuth("P");
- // btn_excel2.enable = frmf_checkAuth("P");
- //
- // //간호사가 로그인했을 경우 로그인한 간호사의 소속병동으로 셋팅후 자동조회
- // var dutplcecd = sysf_getUserInfo("dutplcecd") ; //소속부서코드
- //
- // if ( !frmf_checkOpener() ) {
- // roundrect1.edt_pid.value = opener.getOwnerFrame.sArg02; //pid
- // roundrect1.ipt_fromdd.value = opener.getOwnerFrame.sArg03; //fromdd
- // roundrect1.ipt_todd.value = opener.getOwnerFrame.sArg04; //todd
- // }
- //
- //
- // if ( dutplcecd.substr(0,3) != "325") {
- // if( dutplcecd.substr(0,4) != "1000" && dutplcecd.substr(0,4) != "4070") {
- // //alert("간호에서 들어온것으로 판단");
- // ds_send.setColumn(0, "ward", dutplcecd);
- // var ev = new ClickEventInfo;
- // frmf_inputEnterKey("roundrect1.btn_search", "onclick", ev );
- // }else{
- // //전달받은 파라미터 그대로 조회 실행
- // var ev = new ClickEventInfo;
- // frmf_inputEnterKey("roundrect1.btn_search", "onclick", ev );
- // }
- //
- // }
- this.setTimer(0, 100);
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var fromdd = roundrect1.ipt_fromdd.value;
- var todd = roundrect1.ipt_todd.value;
-
- if (fromdd > todd) {
- sysf_messageBox("처방 시작일은 종료일보다 클 수", "I004");
- return;
- } else {
- //model.resetInstanceNode("/root/main/diethist/data"); //오른쪽 식사력 그리드 초기화
- //submit("TRANT01001");
- ds_grid_grd_diet.clearData();
- submit_TRANT01001();
-
- //조회 후 재원상태 표시
- for ( i=1; i<grd_patlist.rowcount; i++) {
- var indd = ds_grid_grd_patlist.getColumn(i, "indd");
- var indschacptstat = ds_grid_grd_patlist.getColumn(i, "indschacptstat");
- if ( indschacptstat == "D" ) {
- ds_grid_grd_patlist.setColumn(i, "patflag", "퇴원");
- } else if ( (indschacptstat == "A") && (indd == utlf_getCurrentDate()) ) {
- ds_grid_grd_patlist.setColumn(i, "patflag", "신환");
- } else if ( (indschacptstat == "A") && (indd < utlf_getCurrentDate()) ) {
- ds_grid_grd_patlist.setColumn(i, "patflag","재원");
- }
- }
- }
- }
-
- /****************************************************************************************
- * Components :
- * Components ID : grd_patlist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_patlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fGetPatientDietList1();
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_excel1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_excel1_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_patlist, "환자명단_환자별식사력", "grd_patlist"); //파일 다이얼로그로 저장위치 저장
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_excel2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_excel2_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_diet, "환자별식사력리스트", "grd_diethist"); //파일 다이얼로그로 저장위치 저장
-
- }
- function roundrect1_cmb_ward_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- submit_TRANT01004();
- }
- function roundrect1_edt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("roundrect1.btn_search", "onclick", ev );
- }
- }
- function roundrect1_btn_hngnm_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SPPMC02500", "SPPMC02500", null, null, null, 200, 200, null, null, null, null, null, "M");
- if(!utlf_isNull(this.objects["ds_patinfolist"])) {
- var sPid = ds_patinfolist.getColumn(0, "pid");
- var sHngnm = ds_patinfolist.getColumn(0, "hngnm");
- roundrect1.edt_pid.value = sPid;
- roundrect1.edt_patnm.value = sHngnm;
- }
- }
- function roundrect1_edt_patnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("roundrect1.btn_search", "onclick", ev );
- }
- }
- function SMANT01000_ontimer(obj:Form, e:TimerEventInfo)
- {
- if( e.timerid == 0 ){
- this.killTimer(0);
-
- //팝업으로 쓰일 때 값 세팅 - 20140703 홍다빈
- if( frmf_getOpenerUID() == "top" ){ //상단에서 열 경우
- var sdate = utlf_getCurrentDate();
- roundrect1.ipt_fromdd.value = sdate;
- roundrect1.ipt_todd.value = sdate;
-
- }else{
- if( frmf_checkOpener() )
- {
- var a, b, c, d, e, f, g;
- try{ a = pid; } catch(e){};
- try{ b = fromdd; } catch(e){};
- try{ c = todd; } catch(e){};
- try{ d = hngnm; } catch(e){};
- try{ e = ward; } catch(e){};
- try{ f = room; } catch(e){};
- try{ g = patflag; } catch(e){};
-
- roundrect1.edt_pid.value = a;
- roundrect1.ipt_fromdd.value = b;
- roundrect1.ipt_todd.value = c;
- roundrect1.edt_patnm.value = d;
- roundrect1.cmb_ward.value = e;
- roundrect1.cmb_room.value = f;
- roundrect1.rdo_patflag.value = "0";//g;
-
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("roundrect1.btn_search", "onclick", ev );
- }
- }
- finit();
-
- roundrect1.btn_search.enable = frmf_checkAuth("R");
- btn_excel1.enable = frmf_checkAuth("P");
- btn_excel2.enable = frmf_checkAuth("P");
-
- //간호사가 로그인했을 경우 로그인한 간호사의 소속병동으로 셋팅후 자동조회
- var dutplcecd = sysf_getUserInfo("dutplcecd") ; //소속부서코드
- if( frmf_getOpenerUID() != "top" ){ //상단에서 열 경우
- if ( frmf_checkOpener() ) {
- roundrect1.edt_pid.value = ds_main_receivedata.getColumn(0, "pid"); //pid
- roundrect1.ipt_fromdd.value = ds_main_receivedata.getColumn(0, "prcpdd"); //fromdd
- roundrect1.ipt_todd.value = ds_main_receivedata.getColumn(0, "prcpdd"); //todd
- }
- }
-
- if ( dutplcecd.substr(0,3) != "325") {
- if( dutplcecd.substr(0,4) != "1000" && dutplcecd.substr(0,4) != "4070") {
- //alert("간호에서 들어온것으로 판단");
- ds_send.setColumn(0, "ward", dutplcecd);
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("roundrect1.btn_search", "onclick", ev );
- }else{
- //전달받은 파라미터 그대로 조회 실행
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("roundrect1.btn_search", "onclick", ev );
- }
- }
-
- //식사처방출력 화면에서 호출된 경우 자동 조회
- if (!utlf_isNull(ds_main_receivedata.getColumn(0, "flag"))) {
- ds_send.setColumn(0, "pid", ds_main_receivedata.getColumn(0, "pid"));
- ds_send.setColumn(0, "fromdd", ds_main_receivedata.getColumn(0, "prcpdd"));
- ds_send.setColumn(0, "todd", ds_main_receivedata.getColumn(0, "prcpdd"));
- btn_search_onclick();
- ds_send.setColumn(0, "pid", "");
- }
- }
- }
- function roundrect1_cmb_room_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- roundrect1.btn_search.click();
- }
- ]]></Script>
- </Form>
- </FDL>
|