1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNW04820" position="absolute 0 0 877 900" titletext="통증관리기록" oninit="SMMNW04820_oninit" onload="SMMNW04820_onload">
- <Layouts>
- <Layout>
- <Edit id="opt_patinfo" taborder="1" readonly="true" class="edt_transbg" position="absolute 81 70 341 88" anchor="left top" style="font:Dotum,9,bold;" visible="false"/>
- <Div position="absolute 0 18 872 93" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout width="792" height="75">
- <Shape position="absolute 548 31 554 53" linetype="vertical" id="line13" class="line_4" anchor="top right" visible="false"/>
- <Static text="기록일자 :" position="absolute 10 54 85 71" id="caption9" class="search_name" anchor="default"/>
- <Calendar position="absolute 89 53 194 72" id="ipt_fromdd" class="input_essential" onchanged="grp_sea_ipt_orddd_onchanged" autoselect="true" dateformat="yyyy-MM-dd" value="null" anchor="default"/>
- <Calendar id="ipt_todd" taborder="5" autoselect="true" dateformat="yyyy-MM-dd" onchanged="grp_sea_ipt_orddd_onchanged" class="input_essential" position="absolute 217 53 322 72" anchor="default"/>
- <Static id="caption4" text="~" position="absolute 197 60 217 67" style="align:center middle;" align="align:center middle;" anchor="default"/>
- <Button id="btn_formrecupdt_bk1" taborder="6" text="수정" class="btn2" position="absolute 817 -2 859 17" anchor="top right" onclick="grp_sea_btn_formrecupdt_onclick" visible="false"/>
- <Static id="caption00" text="진료과 :" class="search_name" position="absolute 634 8 698 25" anchor="default" visible="false"/>
- <Combo id="cmb_dept" taborder="9" autoselect="true" innerdataset="@ds_init_dept" codecolumn="deptcd" datacolumn="depthngnm" type="filter" onitemchanged="group3_cmb_dept_onitemchanged" position="absolute 697 6 869 27" enable="false" anchor="default" visible="false"/>
- <Button position="absolute 462 31 545 53" id="button1" class="btn1" taborder="4" text="기록조회" onclick="grp_sea_button1_onclick" anchor="top right" visible="false"/>
- <Button id="btn_formrecupdt_bk2" taborder="14" text="수정" class="btn2" position="absolute 825 54 867 73" anchor="top right" onclick="grp_sea_btn_formrecupdt01_onclick" visible="false"/>
- <Static id="ctn_ward" text="병 동 :" class="search_name" position="absolute 10 7 65 24" anchor="default"/>
- <Combo id="cmb_wardcd" taborder="15" innerdataset="@ds_init_cmb_wardcd" codecolumn="wardcd" datacolumn="wardnm" onitemchanged="grp_sea_cmb_wardcd_onitemchanged" class="combo_s_essential" position="absolute 68 5 207 25" anchor="default"/>
- <Static id="ctn_room" text="병 실 :" class="search_name" position="absolute 224 7 283 24" anchor="default"/>
- <Combo id="cmb_roomcd" taborder="16" innerdataset="ds_data_roomcdgruplist" codecolumn="roomcd" datacolumn="roomnm" onitemchanged="grp_sea_cmb_roomcd_onitemchanged" class="combo_search" position="absolute 282 5 358 25" anchor="default"/>
- <Combo id="cmb_zone" taborder="17" innerdataset="@ds_temp_zoneinfo_zonelist" codecolumn="bedcd" datacolumn="bednm" onitemchanged="grp_sea_cmb_zone_onitemchanged" class="combo_search" visible="false" position="absolute 282 5 358 25" anchor="default"/>
- <Static id="ctn_pid" text="환자명/등록번호 :" class="search_name" position="absolute 10 31 127 48" anchor="default"/>
- <Combo id="cmb_patientnm" taborder="18" innerdataset="ds_data_patientgruplist" codecolumn="pid" datacolumn="patientnm" onitemchanged="grp_sea_cmb_patientnm_onitemchanged" class="combo_search" position="absolute 130 29 251 48" anchor="default"/>
- <Edit id="ipt_pid" taborder="19" onkeyup="grp_sea_ipt_pid_onkeyup" class="input_search" position="absolute 257 29 327 48" anchor="default"/>
- <Button id="btn_patSearch" taborder="20" onclick="grp_sea_btn_patSearch_onclick" class="icon_search" position="absolute 339 31 355 48" anchor="default"/>
- <Combo id="cmb_erpat" taborder="21" innerdataset="ds_data_patientgruplist" codecolumn="pid" datacolumn="etcinfo" onitemchanged="grp_sea_cmb_erpat_onitemchanged" class="combo_s_essential" visible="false" position="absolute 130 29 358 49" anchor="default"/>
- <Button id="btn_formrecupdt_new" taborder="22" text="새로기록" onclick="grp_sea_btn_formrecupdt00_onclick" class="btn2" position="absolute 661 32 725 51" anchor="top right" visible="false"/>
- <Button id="btn_formrecupdt_del" taborder="23" text="기록삭제" onclick="button2_onclick" class="btn2" position="absolute 731 32 795 51" anchor="top right"/>
- <Button id="btn_signsave" taborder="24" text="인증저장" onclick="btn_signsave_onclick" class="btn5" position="absolute 800 32 864 51" anchor="top right"/>
- <Button id="btn_formrecupdt_newhis" taborder="25" text="새이름으로저장" class="btn2" position="absolute 556 32 656 51" anchor="top right" onclick="grp_sea_btn_formrecupdt_newhis_onclick" visible="false"/>
- <Static id="cap_mypatlist" text="내환자 정보 :" class="search_name" position="absolute 371 7 460 24"/>
- <Combo id="cmb_mypatlist" taborder="26" innerdataset="ds_temp_cond_settingpatient_settingpatientlist" codecolumn="pid" datacolumn="patnm" class="combo_s_essential" position="absolute 466 5 581 25" onitemchanged="grp_sea_cmb_mypatlist_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 94 874 589" id="ivw_loader" url="emr_medirecxp::SSMMR01100_서식로더.xfdl" anchor="left top right" asyncmode="true"/>
- <Static text="통증관리기록" position="absolute 0 0 163 20" id="cpt_title" class="tit_1"/>
- <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 566 872 899" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="55"/>
- <Column size="70"/>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="35"/>
- <Column size="80"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="85"/>
- <Column size="80"/>
- <Column size="70"/>
- </Columns>
- <Rows>
- <Row size="26" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="구분" taborder="undefined"/>
- <Cell col="2" colspan="2" text="평가시간" taborder="undefined"/>
- <Cell col="4" text="통증유무" taborder="undefined"/>
- <Cell col="5" text="부위" taborder="undefined"/>
- <Cell col="6" text="평가도구" taborder="undefined"/>
- <Cell col="7" text="강도" taborder="undefined"/>
- <Cell col="8" text="양상" taborder="undefined"/>
- <Cell col="9" text="빈도" taborder="undefined"/>
- <Cell col="10" text="cretno"/>
- <Cell col="11" text="instcd"/>
- <Cell col="12" text="ordtype"/>
- <Cell col="13" text="orddeptcd"/>
- <Cell col="14" text="hd"/>
- <Cell col="15" text="지속기간" taborder="undefined"/>
- <Cell col="16" text="약물중재" taborder="undefined"/>
- <Cell col="17" text="비약물중재" taborder="undefined"/>
- <Cell col="18" text="작성자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="align:center;" text="bind:gubun"/>
- <Cell col="2" style="align:center;" text="bind:formrecdd" mask="expr:utlf_isNull(formrecdd) ? '' : '####-##-##'" maskchar=" "/>
- <Cell col="3" text="bind:formrechm" mask="expr:!utlf_isNull(formrechm) ? '##:##' : ''" maskchar=" "/>
- <Cell col="4" style="align:center;" text="bind:painyn"/>
- <Cell col="5" style="align:left;" text="bind:part"/>
- <Cell col="6" style="align:left;" text="bind:apptool"/>
- <Cell col="7" style="align:center;padding:4 2 2 2;" text="bind:str" wordwrap="word"/>
- <Cell col="8" style="align:left;" text="bind:aspt" calendardisplaynulltype="none"/>
- <Cell col="9" style="align:center;" text="bind:frqcy" calendardisplaynulltype="none"/>
- <Cell col="10" text="bind:cretno"/>
- <Cell col="11" text="bind:instcd"/>
- <Cell col="12" text="bind:ordtype"/>
- <Cell col="13" text="bind:orddeptcd"/>
- <Cell col="14" text="bind:hd"/>
- <Cell col="15" style="align:center;" text="bind:sustime" calendardisplaynulltype="none"/>
- <Cell col="16" style="align:left;" text="bind:mediarbt" calendardisplaynulltype="none"/>
- <Cell col="17" style="align:left;" text="bind:arbt" calendardisplaynulltype="none"/>
- <Cell col="18" text="bind:formrecuseridnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line134" class="line_10" position="absolute -1 560 872 570" anchor="left top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_del" 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_cmb_wardcd" 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="pid" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="chosflag" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="gubun" type="STRING" size="256"/>
- <Column id="painyn" type="STRING" size="256"/>
- <Column id="part" type="STRING" size="256"/>
- <Column id="apptool" type="STRING" size="256"/>
- <Column id="str" type="STRING" size="256"/>
- <Column id="aspt" type="STRING" size="256"/>
- <Column id="frqcy" type="STRING" size="256"/>
- <Column id="sustime" type="STRING" size="256"/>
- <Column id="arbt" type="STRING" size="256"/>
- <Column id="mediarbt" type="STRING" size="256"/>
- <Column id="formprogflag" type="STRING" size="256"/>
- <Column id="lastupdtrid" type="STRING" size="256"/>
- <Column id="formrecdd" type="STRING" size="256"/>
- <Column id="formrechm" type="STRING" size="256"/>
- <Column id="formrecuseridnm" 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="roomcd" type="STRING" size="256"/>
- <Column id="zonecd" type="STRING" size="256"/>
- <Column id="patientnm" 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"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="dschdd" type="STRING" size="256"/>
- <Column id="ordtype" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="orgorddd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="searchflag" 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>
- <Dataset id="ds_main_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_data_roomcdgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="roomnm" type="STRING"/>
- <Column id="roomcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_zoneinfo_zonelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="bednm" type="STRING"/>
- <Column id="bedcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_data_patientgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="patientnm" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="ordtype" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="patientnm"/>
- <Col id="pid"/>
- <Col id="indd"/>
- <Col id="cretno"/>
- <Col id="ordtype"/>
- <Col id="instcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="popupendflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_patinfo_patinfolist" 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="roomcd" type="STRING" size="256" sumtext="병실코드"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="indd" type="STRING" size="256" sumtext="입원일"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일자"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
- <Column id="medispclid" type="STRING" size="256" sumtext="주치의"/>
- <Column id="ordtype" type="STRING" size="256" sumtext="ioflag"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_refCond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_cond_settingpatient_settingpatientlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <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"/>
- <BindItem id="item50" compid="grp_sea.cmb_dept" propid="value" datasetid="ds_main_cond" columnid="orddeptcd"/>
- <BindItem id="item0" compid="grp_sea.cmb_wardcd" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
- <BindItem id="item3" compid="grp_sea.cmb_roomcd" propid="value" datasetid="ds_main_cond" columnid="roomcd"/>
- <BindItem id="item4" compid="grp_sea.cmb_zone" propid="value" datasetid="ds_main_cond" columnid="zonecd"/>
- <BindItem id="item6" compid="grp_sea.cmb_patientnm" propid="value" datasetid="ds_main_cond" columnid="patientnm"/>
- <BindItem id="item7" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
- <BindItem id="item9" compid="grp_sea.cmb_erpat" propid="value" datasetid="ds_main_cond" columnid="patientnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_wardcarexp -> SMMNW04820
- * Creator : ENR
- * Make Date : 2019-03-25
- * Description : 최초개발
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2019-03-25 ENR XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_medirecxp::MMR01100.xjs";
- include "emr_medirecxp::MMR00100.xjs";
- include "emr_carecomxp::CareCom.xjs";
- include "emr_carerecxp::CareRec.xjs";
- include "emr_wardcarexp::SMMNW4800.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //응급실
- var eERFLAG = "";
- var eERDEPTCD = "";
- //가정간호
- var HC_homecarecd = '';
- var HC_ioflag = '';
- var HC_isHomeCare = '';
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 초기화
- ****************************************************************************************/
- function finit(){
- //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");
-
- //var wid = parseInt(ivw_loader.position.width);
- //var hei = parseInt(ivw_loader.position.height);
-
-
- dsf_createDsRow("ds_send"
- , [{col: "cdgpid", val: "T30"}
- ,{col: "wardcd", val: ds_main_cond.getColumn(0,"wardcd")}
- ]);
-
-
- var oParam = {};
- oParam.id = "TRMNW04001";
- oParam.service = "carerecapp.AsesRec";
- oParam.method = "reqGetICUWardList";
- oParam.inds = "refCond=ds_send";
- oParam.outds = "ds_data_icucdgruplist=icucdgruplist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNW04001";
- tranf_submit(oParam);
-
- //사용자 직급구분에 따른 화면 제어 플래그 설정
- sJobKindCD = sysf_getUserInfo("jobkindcd"); // 직급코드
- sUserDeptCd = sysf_getUserInfo("dutplcecd");
- sUserId = sysf_getUserInfo("userid");
- //---------(20101204) 경북대
- //추가
- //var sJobKindCD = getUserInfo("jobkindcd"); // 직급코드
- var ssflag = "";
- if( sJobKindCD.substring(0, 2) == "03"){
- ssflag = "Y";
- }else{
- ssflag = "N";
- }
-
-
- //----------------------------
- //응급의료센터 부서코드 추출_ 경북대 (2011.03.16 Ahn)
- dsf_createDsRow("ds_send"
- , [{col: "cdgrupid", val: "'002','220'"}
- ,{col: "srchdd", val: utlf_getCurrentDate()} // 조회기준일자
- ]);
- var oParam = {};
- oParam.id = "TRMNW00001";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetNursHardCdInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_codelist=codelist";
- oParam.async = false;
- oParam.callback = "cf_TRMNW00001";
- tranf_submit(oParam);
-
- //원본:의사의 경우만
- //if(sJobKindCD == "0330" || sJobKindCD == "0310" ){
- // if(ssflag=="Y") {
- // grp_sea.btn_formrecupdt_del.visible = false;
- // grp_sea.btn_formrecupdt_new.visible = false;
- // grp_sea.btn_signsave.visible = false;
- // }else{
- // grp_sea.btn_formrecupdt_del.visible = true;
- // grp_sea.btn_formrecupdt_new.visible = true;
- // grp_sea.btn_signsave.visible = true;
- // }
-
- //병동 조회
- var oParam = {};
- oParam.id = "TRMNW04705";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetWMInitData";
- oParam.inds = "reqcond=ds_main_cond";
- oParam.outds = "ds_init_cmb_wardcd=ward ds_init_settingrn=settingrn";
- oParam.async = false;
- oParam.callback = "cf_TRMNW04705";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRMNW04705") < 0){
- sysf_messageBox('화면 초기화를', 'E009');
- return;
- }
-
-
- 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"), -30) );
- //alert("a---------------");
- var isOpener = fSetPatInfo();
-
- fGetSettingPatientList_type4(pFlag,flag);
-
-
- //가정간호 parameter 세팅
- if(frmf_checkOpener()){
- //처리해야됨
- //HC_isHomeCare = fSetHomeCareParamter();
-
- }
-
-
- //상단정보가 있으면 바로 조회
- if(isOpener || HC_isHomeCare){
- // fSearch();
- fSearch(); //ds_main_detlgrup_detlgruplist를 받아옴
- //조회후 그리드의 발생부위, 발생일자를 머지
- //fMergeGenrAreaDD(); //그리드 suppress로 대체
-
- }else{
- ds_main_cond.setColumn(0, "wardcd", sysf_getUserInfo("dutplcecd"));
-
- // 응급실인 경우 (2011.03.16 Ahn)
- fGetWardChngInfo("N");
-
- //병실정보 조회
- fSearchRoomcd();
- grp_sea.cmb_roomcd.setFocus();
-
- if(eERFLAG == "Y"){
- grp_sea.cmb_roomcd.value = ds_data_roomcdgruplist.getColumn(0, "roomcd");
- //선택한 병실에 해당하는 환자리스트 조회
- fGetCareComPatList(cmb_wardcd.value, grp_sea.cmb_roomcd.value, grp_sea.cmb_zone.value); //ds_data_patientgruplist를 받아옴
- ds_data_patientgruplist.addColumn("orddrid", "string");
-
- grp_sea.cmb_erpat.setFocus();
- }
- }
-
- var pFlag = null;
- var flag = 'SMMNW04800';
-
- }
- function cf_TRMNW00001(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- eERDEPTCD = ds_codelist.lookup("cdgrupid","002","cdid");
- //trace("eERDEPTCD : " + eERDEPTCD);
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 기록 이력 조회
- ****************************************************************************************/
- function fSearch(nFlag) {
-
- ds_main_cond.setColumn(0, "searchflag", "N"); // 신규조회 구분
-
- var deptcd = ds_main_cond.getColumn(0, "wardcd");
- var fromdd = ds_main_cond.getColumn(0, "fromdd");
- var todd = ds_main_cond.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;
- }
- */
-
- /*
- var oParam = {};
- oParam.id = "SMMNW04820";
- oParam.service = "wardcareapp.WardPainCareMngt";
- oParam.method = "reqGetPainMngtRecList";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_wardpatinfo_wardpatlist=painmngtreclist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNW04802";
- tranf_submit(oParam);
-
- */
- fRecordListsearch();
-
- ds_main_wardpatinfo_wardpatlist.rowposition = -1;
-
- if( utlf_isNull(nFlag) ){
- ivw_loader.ivw_base.url = "";
- lf_SetPatInfo(-1);
- }
-
-
- fRecordsearch();
-
-
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 기록 리스트 조회
- ****************************************************************************************/
- function fRecordListsearch() {
- var oParam = {};
- oParam.id = "SMMNW04820";
- oParam.service = "wardcareapp.WardPainCareMngt";
- oParam.method = "reqGetPainMngtRecList";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_wardpatinfo_wardpatlist=painmngtreclist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNW04802";
- tranf_submit(oParam);
- }
-
- /****************************************************************************************
- * Argument : N/A
- * Description : 기록 세부 조회
- ****************************************************************************************/
- function fRecordsearch() {
- // 16.12.07_프로그램 내에서 환자 기본정보에 대한 Parameter을 넘기더라도 우선적으로 상단정보를 가져가는 것을 막기위함.
- var nRow = ds_main_wardpatinfo_wardpatlist.rowposition;
- if( nRow > 0 ){
- var recflag = ds_main_cond.getColumn(0, "recflag");
- var formrecseq = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "formrecseq");
-
- var instcd = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "instcd");
- var pid = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "pid");
- var cretno = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "cretno");
- var ordtype = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "chosflag");
- var orddeptcd = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "orddeptcd");
- var orddd = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "orddd");
- var dschdd = "99991231";
-
-
- }else{
- var instcd = ds_main_cond.getColumn(0, "instcd");
- var pid = ds_main_cond.getColumn(0, "pid");
- var cretno = ds_main_cond.getColumn(0, "cretno");
- var dschdd = ds_main_cond.getColumn(0, "dschdd");
- var wardcd = ds_main_cond.getColumn(0, "wardcd");
-
- var ordtype = ds_main_cond.getColumn(0, "ordtype");
- var orddeptcd= ds_main_cond.getColumn(0, "orddeptcd");
- var orddd= ds_main_cond.getColumn(0, "orddd");
- var formrecseq = "N";
-
- }
-
- var formcd = '1900023241'; //2019.03.25_통증관리기록 서식
-
- /*
- if(ordtype != "O"){
- fSearchRoomcd(wardcd);
- }
- */
-
-
- /*
- if( utlf_isNull(pid) || utlf_isNull(indd) || utlf_isNull(cretno) ){
- sysf_messageBox("환자가 선택되지 " , "E007");
- return;
- }
- */
- //병실 셋팅
-
-
- //2017.06.05_상단정보 셋팅 로직 추가
- //fGetCareComRoomList(wardcd); //ds_data_roomcdgruplist를 받아옴
- var dschdd = ds_main_cond.getColumn(0, "dschdd");
- var wardcd = ds_main_cond.getColumn(0, "wardcd");
-
- var param = ordtype + "▦" + pid
- + "▦" + orddd
- + "▦" + cretno
- + "▦" + instcd
- + "▦" + dschdd;
- /*
- if(ordtype =="O"){
- var param = ordtype + "▦" + pid
- + "▦" + orddd
- + "▦" + cretno
- + "▦" + instcd
- ;
- }else{
- //fGetCareComRoomList(wardcd); //ds_data_roomcdgruplist를 받아옴
- var dschdd = ds_main_cond.getColumn(0, "dschdd");
- var wardcd = ds_main_cond.getColumn(0, "wardcd");
-
- var param = ordtype + "▦" + pid
- + "▦" + orddd
- + "▦" + cretno
- + "▦" + instcd
- + "▦" + dschdd;
- }
- */
-
- //sysf_trace("상단 param : " + param);
- //appf_initPatientInfo(param);
- //trace("상단end");
- //
-
- 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 = "";
- }
-
- /*
- trace("--------------------------------------------");
- trace("formcd : " + formcd);
- trace("vFormKind : " + vFormKind);
- trace("pid : " + pid);
- trace("orddd : " + orddd);
- trace("cretno : " + cretno);
- trace("orddeptcd : " + orddeptcd);
- trace("ordtype : " + ordtype);
- trace("wardcd : " + wardcd);
- */
-
- 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", orddd);
- 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", "Y"); // 기준일자 활성화 여부
- //ds_cond_formdata.setColumn(0, "formrecdd", searchdd);
- ds_cond_formdata.setColumn(0, "wardcd", wardcd);
- //ds_cond_formdata.setColumn(0, "orddeptcd", orddeptcd);
-
- sysf_trace("###wardcd1####"+wardcd);
-
- objArg.ds_cond_formdata = ds_cond_formdata;
- //trace(ds_cond_formdata.saveXML());
- lf_loadSMMMR01100(false, objArg);
-
- lf_SetPatInfo(nRow);
- //alert("c");
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 기록수정셋팅
- ****************************************************************************************/
- function fModifyForm(btnenable) {
- utlf_addLog("***** fModifyForm() *****");
- var formprogflag = "";
- var nRow = ds_main_wardpatinfo_wardpatlist.rowposition;
- //var cnfmyn = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "cnfmyn");
- var formcd = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "formcd");
- var formrecseq = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "formrecseq");
- //var type = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "type");
-
- var cnfmyn ="Y";
- var type ="B";
-
- var formprogflag = "";
- var formprogflag = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "formprogflag");
- var formprogflag = "";
- trace("::::::::::::" + formprogflag);
-
- if (nRow > -1) {
- if (type == "A") {
- sysf_messageBox("진료기록 화면에서 수정할 수 없는 서식입니다", "I999");
- return;
- }
- if (cnfmyn == "Y") {
- //fOpenRecForm(formcd, formrecseq);
- lf_openRecForm(formrecseq, formprogflag, btnenable);
- } else {
- sysf_messageBox("OCS에서 작성한 기록은 수정할 수 없습니다.", "I008");
- return;
- }
- }
-
-
-
-
- /*
- if (grp_base.swt_left.tabindex == 0){
- var nRow = ds_main_wardpatinfo_wardpatlist.rowposition;
- var cnfmyn = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "cnfmyn");
- var formcd = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "formcd");
- var formrecseq = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "formrecseq");
- var type = ds_main_wardpatinfo_wardpatlist.getColumn(nRow, "type");
-
-
- formprogflag = ds_grd_medireclist.getColumn(nRow, "formprogflag");
-
- if (nRow > -1) {
- if (type == "A") {
- sysf_messageBox("진료기록 화면에서 수정할 수 없는 서식입니다", "I999");
- return;
- }
- if (cnfmyn == "Y") {
- //fOpenRecForm(formcd, formrecseq);
- lf_openRecForm(formrecseq, formprogflag, btnenable);
- } else {
- sysf_messageBox("OCS에서 작성한 기록은 수정할 수 없습니다.", "I008");
- return;
- }
- }
- } else if (grp_base.swt_left.tabindex == 1) {
- var formcd = frmf_getParameter("SSMMR01200_Param_formcd");
- var formrecseq = frmf_getParameter("SSMMR01200_Param_recseq");
- var cnfmyn = frmf_getParameter("SSMMR01200_Param_cnfmyn");
- var formprogflag = frmf_getParameter("SSMMR01200_Param_formprogflag");
-
- frmf_clearParameter("SSMMR01200_Param_formcd");
- frmf_clearParameter("SSMMR01200_Param_recseq");
- frmf_clearParameter("SSMMR01200_Param_cnfmyn");
- frmf_clearParameter("SSMMR01200_Param_formprogflag");
-
- if(!utlf_isNull(formrecseq)) {
- if (cnfmyn == "Y") {
- //fOpenRecForm(formcd, formrecseq);
- lf_openRecForm(formrecseq, formprogflag, btnenable);
- } else {
- sysf_messageBox("OCS에서 작성한 기록은 수정할 수 없습니다.", "I008");
- return;
- }
- }
- }
- */
-
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 상단정보 셋팅
- ****************************************************************************************/
- function fpatinfoset(){
- ds_paminfo.clearData();
- var node = sysf_getGlobalVariable("paminfo");
- dsf_setCSVToDs("ds_paminfo", node);
-
- var vOrdtype = appf_getPatientInfoDetail('ioflag');
- //팝업화면이 아닐경우 상단에 환자 정보가 있는지 여부를 확인하고
- if ( !utlf_isNull(ds_paminfo.getColumn(0,"pid"))) { //상단정보에 환자가 셋팅되어 있을 경우
- ds_main_cond.setColumn(0, "instcd", ds_paminfo.getColumn(0, "instcd"));
- ds_main_cond.setColumn(0, "pid", ds_paminfo.getColumn(0, "pid"));
- ds_main_cond.setColumn(0, "cretno", ds_paminfo.getColumn(0, "cretno"));
- ds_main_cond.setColumn(0, "orddeptcd", ds_paminfo.getColumn(0, "orddeptcd"));
- ds_main_cond.setColumn(0, "hngnm", ds_paminfo.getColumn(0, "hngnm"));
- ds_main_cond.setColumn(0, "ordtype", vOrdtype);
-
- ds_main_cond.setColumn(0, "orddd", ds_paminfo.getColumn(0, "indd")); //기록조회용으로 쓰임
- ds_main_cond.setColumn(0, "indd", ds_paminfo.getColumn(0, "indd")); //
- ds_main_cond.setColumn(0, "wardcd", ds_paminfo.getColumn(0, "wardcd"));
- ds_main_cond.setColumn(0, "roomcd", ds_paminfo.getColumn(0, "roomcd"));
- ds_main_cond.setColumn(0, "dschdd", ds_paminfo.getColumn(0, "dschdd"));
-
- /*
- // 외래/ 입원 / 응급 / 항암
- if( !utlf_isNull(vOrdtype) && vOrdtype == "O" ){
- ds_main_cond.setColumn(0, "orddd", ds_main_paminfo.getColumn(0, "orddd"));
- //ds_main_cond.setColumn(0, "indd", ds_main_paminfo.getColumn(0, "orddd"));//입원이력 베이스로 indd 셋팅
- }else{
- //ds_main_cond.setColumn(0, "indd", ds_main_paminfo.getColumn(0, "indd"));
- ds_main_cond.setColumn(0, "orddd", ds_main_paminfo.getColumn(0, "indd")); //입원이력 베이스로 indd 셋팅
- ds_main_cond.setColumn(0, "wardcd", ds_main_paminfo.getColumn(0, "wardcd"));
- ds_main_cond.setColumn(0, "roomcd", ds_main_paminfo.getColumn(0, "roomcd"));
- ds_main_cond.setColumn(0, "dschdd", ds_main_paminfo.getColumn(0, "dschdd"));
- }
- */
-
-
- } else {
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 병동 roomcd 셋팅
- ****************************************************************************************/
- function fSearchRoomcd(wardcd){
- //병실정보 clear
- ds_main_cond.setColumn(0,"roomcd", "");
- ds_data_roomcdgruplist.clearData();
- //해당 병실 환자정보 clear
- ds_main_cond.setColumn(0,"patientnm", "");
- ds_main_cond.setColumn(0,"pid", "");
-
- ds_data_patientgruplist.clearData();
- grp_sea.cmb_patientnm.enable = true;
- //선택한 병동에 해당되는 병실 조회
- if(utlf_isNull(wardcd)){
- wardcd = ds_main_cond.getColumn(0,"wardcd");
- ds_paminfo.clearData();
- fInitTopInfo();
- }
- fGetCareComRoomList(wardcd);
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 병실코드에 해당되는 환자정보 조회
- ****************************************************************************************/
- function fSearchPatInfo(wardcd, roomcd){
- //해당 병실 환자정보 clear
- ds_main_cond.setColumn(0,"patientnm", "");
- ds_main_cond.setColumn(0,"pid", "");
- ds_data_patientgruplist.clearData();
- //선택한 병동, 병실에 해당되는 환자 조회
- if(utlf_isNull(wardcd)){
- wardcd = ds_main_cond.getColumn(0,"wardcd");
- grp_sea.cmb_patientnm.enable = true;
- ds_paminfo.clear();
- fInitTopInfo();
-
- }
- if(utlf_isNull(roomcd))
- roomcd = ds_main_cond.getColumn(0,"roomcd");
- fGetCareComPatList(wardcd, roomcd);
-
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 환자정보 셋팅
- ****************************************************************************************/
- function fSetPatInfo(){
- //var xPamInfoPath = '/root/temp/paminfo'
- var node = appf_getPatientInfoDetails(ds_paminfo) ;
- var pid = ''; var hngnm = ''; var wardcd = ''; var roomcd = '';
- // 응급실 구역정보 (2011.03.16 ahn)
- var sectioncd = "";
- var isOpener = false;
- if(frmf_checkOpener()){
- pid = appf_getPatientInfoDetail('pid');
- hngnm = appf_getPatientInfoDetail('hngnm');
- wardcd = appf_getPatientInfoDetail('wardcd');
- roomcd = appf_getPatientInfoDetail('roomcd');
- sectioncd = appf_getPatientInfoDetail('basetypecd'); // 응급실 구역정보 (2011.03.16 ahn)
- if( !utlf_isNull(pid) ){
- isOpener = true;
- }
- }
- if( !utlf_isNull(pid) && !utlf_isNull(hngnm) && !utlf_isNull(wardcd) && !utlf_isNull(roomcd) ){
- // 응급실일 경우 (2011.03.16 Ahn)
- //alert(sectioncd);
- fGetWardChngInfo("Y", wardcd, sectioncd);
-
- //콤보에서 끌고 오기 위한 병실, 환자정보 조회
- fSearchRoomcd(wardcd);
-
- if(eERFLAG == "Y"){ // 응급실 환자 조회 (2011.03.15 Ahn)
- fGetCareComPatList(wardcd, roomcd, grp_sea.cmb_zone.value); //ds_data_patientgruplist를 받아옴
- ds_data_patientgruplist.addColumn("orddrid", "string");
- }else{
- fSearchPatInfo(wardcd, roomcd);
- }
- //상단정보를 세팅
- ds_main_cond.setColumn(0, "wardcd", wardcd);
- ds_main_cond.setColumn(0, "roomcd", roomcd);
-
- //퇴원환자의 경우 환자이름에 조회되지 않으므로 콤보아이템을 추가
- if ( utlf_isNull(ds_data_patientgruplist.getColumn(ds_data_patientgruplist.findRow("pid", pid), "patientnm")) ){
- frmf_addComboItem( "grp_sea.cmb_patientnm", appf_getPatientInfoDetail('hngnm'), pid, "above" );
- ds_main_cond.setColumn(0, "patientnm", pid);
- ds_data_patientgruplist.setColumn(0, "indd", appf_getPatientInfoDetail('indd'));
- ds_data_patientgruplist.setColumn(0, "cretno", appf_getPatientInfoDetail('cretno'));
- ds_data_patientgruplist.setColumn(0, "orddeptcd", appf_getPatientInfoDetail('orddeptcd'));
- ds_data_patientgruplist.setColumn(0, "orddrid", appf_getPatientInfoDetail('medispclid'));
- ds_data_patientgruplist.setColumn(0, "ordtype", appf_getPatientInfoDetail('ioflag'));
-
- grp_sea.cmb_patientnm.enable = false;
- }else{
- ds_main_cond.setColumn(0, "patientnm", pid);
- grp_sea.cmb_patientnm.enable = true;
- }
-
- ds_main_cond.setColumn(0, "pid", pid);
-
-
- }
- return isOpener;
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 구역정보 조회 (응급실인 경우)
- ****************************************************************************************/
- function fGetWardChngInfo(initFlag, wardCd, sectionCd){
- if(initFlag=="Y") {
- var sWardCD = wardCd;
- }
- else{
- var sWardCD = ds_main_cond.getColumn(0, "wardcd");
- }
-
- if ( sWardCD == eERDEPTCD) {
- eERFLAG = "Y";
- }else{
- eERFLAG = "";
- }
-
- //응급실인 경우 구역정보 추가조회
- if(eERFLAG == "Y"){ // 응급실
- fGetZoneList();
- grp_sea.ctn_room.text = "구 역 :";
- grp_sea.cmb_roomcd.visible = false;
- grp_sea.cmb_erpat.visible = true;
- grp_sea.cmb_patientnm.visible = false;
- grp_sea.cmb_zone.visible = true;
- grp_sea.cap_mypatlist.visible = false;
- grp_sea.cmb_mypatlist.visible = false;
-
- // group5.switch1.rec.grp_sea.ipt_pid.position.left = 755; // 위치 변경
- // group5.switch1.rec.grp_sea.ipt_pid.position.top = 15;
- // group5.switch1.rec.grp_sea.btn_patSearch.position.left = 830; // 위치 변경
- // group5.switch1.rec.grp_sea.btn_patSearch.position.top = 16; // 위치 변경
- //group5.switch1.rec.grp_sea.cap_mypatlist.position.left = 645;
- // group5.switch1.rec.grp_sea.cap_mypatlist.position.top = 40;
- //group5.switch1.rec.grp_sea.cmb_mypatlist.position.left = 755;
- //group5.switch1.rec.grp_sea.cmb_mypatlist.position.top = 40;
-
- grp_sea.ipt_pid.position = "absolute 369 29 439 48";
- grp_sea.btn_patSearch.position = "absolute 451 31 467 48";
-
- if(initFlag=="Y"){ // 처음 상단 정보로 화면 열릴 때
- ds_main_cond.setColumn(0, "zonecd", (utlf_isNull(sectionCd) ? "-" : sectionCd));
- }else{
- ds_main_cond.setColumn(0, "zonecd", "-"); // 'All'로 default
- }
-
-
- }else{
- grp_sea.ctn_room.text = "병 실 :";
- grp_sea.cmb_roomcd.visible = true;
- grp_sea.cmb_erpat.visible = false;
- grp_sea.cmb_patientnm.visible = true;
- grp_sea.cmb_zone.visible = false;
-
- grp_sea.cap_mypatlist.visible = true;
- grp_sea.cmb_mypatlist.visible = true;
-
- grp_sea.ipt_pid.position = "absolute 257 29 327 48";
- grp_sea.btn_patSearch.position = "absolute 339 31 355 48";
-
- ds_main_cond.setColumn(0, "zonecd", "");
-
- }
- }
- /****************************************************************************************
- * Argument : 01.nRow : Grid rowposition
- * Description : 선택한 기록에 대한 환자정보
- ****************************************************************************************/
- function lf_SetPatInfo(nRow){
- //alert("a");
- 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;
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW04820
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMNW04820_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW04820
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMNW04820_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setToolTipBind(grd_wardpatlist);
- grdf_setGridSort(grd_wardpatlist);
-
- fpatinfoset();
- //상단정보 END
-
- //초기화
- finit();
- }
- /****************************************************************************************
- * 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 : 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();
- //ds_init_tmp.setColumn(0,"fstload","N");
- ds_main_cond.setColumn(0, "searchflag", "Y"); // 'All'로 default
- fModifyForm(true);
- }
- /****************************************************************************************
- * 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)
- {
- if( ivw_loader.fClickSave("Y") ) {
- fSearch(true);
- //ds_main_wardpatinfo_wardpatlist.selectRow(grd_row);
- //ds_main_wardpatinfo_wardpatlist.rowposition = grd_row;
- //fRecordsearch(); //2019.09.24 중복로딩제거
- }
- /*
- 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();
- }
- //임시테스트용
- function grp_sea_btn_formrecupdt_onclick(obj:Button, e:ClickEventInfo)
- {
- //ds_init_tmp.setColumn(0,"fstload","N");
- fModifyForm(true);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW04820
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 신규 버튼
- ****************************************************************************************/
- function grp_sea_btn_formrecupdt00_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- //임시테스트용
- function grp_sea_btn_formrecupdt01_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_setParameter("SMMNW04830_vRecFlag", "O");
- var rtnArg = frmf_modal("SMMNW04830","SMMNW04830","","","","","","","","","","","M");
- }
- /****************************************************************************************
- * 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)
- {
- obj.updateToDataset();
- // 응급실인 경우 (2011.03.16 Ahn)
- fGetWardChngInfo("N");
- //병실정보 조회
- fSearchRoomcd();
- grp_sea.cmb_roomcd.setFocus();
-
- if(eERFLAG == "Y"){
- grp_sea.cmb_roomcd.value = ds_data_roomcdgruplist.getColumn(0,"roomcd");
- //선택한 병실에 해당하는 환자리스트 조회
- fGetCareComPatList(grp_sea.cmb_wardcd.value, grp_sea.cmb_roomcd.value, grp_sea.cmb_zone.value);
- grp_sea.cmb_erpat.setFocus();
- }
-
- //fSearch();
-
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW04820
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 병동 room 콤보
- ****************************************************************************************/
- function grp_sea_cmb_roomcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- obj.updateToDataset();
- //해당병실의 환자를 조회
- fSearchPatInfo();
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW04820
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 병동 환자 콤보
- ****************************************************************************************/
- function grp_sea_cmb_patientnm_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- obj.updateToDataset();
- //통증기록조회
- var pid = obj.value;
-
- if(utlf_isNull(pid)){
- pid = grp_sea.ipt_pid.value;
- }else{
- //병실내 환자정보 선택시 환자등록번호 setting
- grp_sea.ipt_pid.value = pid;
-
- }
-
- var sPid = grp_sea.ipt_pid.value;
- var sOrdtype = ds_data_patientgruplist.lookup("pid",sPid,"ordtype" );
- var sIndd = ds_data_patientgruplist.lookup("pid",sPid,"indd" );
- var sCretno = ds_data_patientgruplist.lookup("pid",sPid,"cretno" );
- var sInstcd = ds_data_patientgruplist.lookup("pid",sPid,"instcd" );
- var sOrddeptcd = ds_data_patientgruplist.lookup("pid",sPid,"orddeptcd" );
- var sWardcd = ds_data_patientgruplist.lookup("pid",sPid,"wardcd" );
-
- fpatinfoset();
- //상단정보 END
- param = sOrdtype + "▦"
- + sPid + "▦"
- + sIndd + "▦"
- + sCretno + "▦"
- + sInstcd + "▦"
- + "▦" ;
- //trace("======상단= :" + param);
- frmf_setParameter("condparam", param);
- appf_initPatientInfo(param);
- //modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- var node = appf_getPatientInfoDetails(ds_paminfo) ;
- //trace(ds_paminfo.saveXML());
- if( utlf_isNull(ds_paminfo.getColumnInfo("sectioncd")) ){
- ds_paminfo.addColumn("sectioncd", "string");
- ds_paminfo.setColumn(0, "sectioncd", ds_paminfo.getColumn(0, "basetypecd"));
- }
-
- //
- if( !utlf_isNull(sPid) ){
- ds_main_cond.setColumn(0, "pid", sPid);
- ds_main_cond.setColumn(0, "ordtype", sOrdtype);
- ds_main_cond.setColumn(0, "orddd", sIndd);
- ds_main_cond.setColumn(0, "indd", sIndd);
- ds_main_cond.setColumn(0, "cretno", sCretno);
- ds_main_cond.setColumn(0, "instcd", sInstcd);
- ds_main_cond.setColumn(0, "orddeptcd", sOrddeptcd);
- ds_main_cond.setColumn(0, "wardcd", sWardcd);
- }
-
- ivw_loader.setFocus();
- finit();
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW04820
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 응급실 구역 콤보
- ****************************************************************************************/
- function grp_sea_cmb_zone_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- //해당 병실 환자정보 clear
- obj.updateToDataset();
- ds_main_cond.setColumn(0,"patientnm","");
-
- ds_main_cond.setColumn(0,"pid", "");
- ds_data_patientgruplist.clearData();
- // 응급실정보 추가 (2011.03.16 Ahn)
- //alert(cmb_room.value);
- fGetCareComPatList(grp_sea.cmb_wardcd.value, grp_sea.cmb_roomcd.value, grp_sea.cmb_zone.value);
- grp_sea.cmb_erpat.setFocus();
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW04820
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 응급실 환자 콤보
- ****************************************************************************************/
- function grp_sea_cmb_erpat_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- // 선택 시 구역정보 기억
- eSECTIONCD = ds_main_cond.getColumn(0,"zonecd");
-
- //통증기록조회
- var pid = grp_sea.cmb_erpat.value;
- if(utlf_isNull(pid)){
- pid = grp_sea.ipt_pid.value;
- }else{
- //병실내 환자정보 선택시 환자등록번호 setting
- grp_sea.ipt_pid.value = pid;
-
-
- }
-
-
- var sPid = grp_sea.ipt_pid.value;
- var sOrdtype = ds_data_patientgruplist.lookup("pid",sPid,"ordtype" );
- var sIndd = ds_data_patientgruplist.lookup("pid",sPid,"indd" );
- var sCretno = ds_data_patientgruplist.lookup("pid",sPid,"cretno" );
- var sInstcd = ds_data_patientgruplist.lookup("pid",sPid,"instcd" );
- var sOrddeptcd = ds_data_patientgruplist.lookup("pid",sPid,"orddeptcd" );
- var sWardcd = ds_data_patientgruplist.lookup("pid",sPid,"wardcd" );
-
- param = sOrdtype + "▦"
- + sPid + "▦"
- + sIndd + "▦"
- + sCretno + "▦"
- + sInstcd + "▦"
- + "▦" ;
-
- frmf_setParameter("condparam", param);
-
- appf_initPatientInfo(param);
- //modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- //model.makeNode(xPamInfoPath);
- var node = appf_getPatientInfoDetails("ds_paminfo") ;
-
- if( utlf_isNull(ds_paminfo.getColumnInfo("sectioncd")) ){
- ds_paminfo.addColumn("sectioncd", "string");
- ds_paminfo.setColumn(0, "sectioncd", ds_paminfo.getColumn(0, "basetypecd"));
- }
-
- if( !utlf_isNull(sPid) ){
- ds_main_cond.setColumn(0, "pid", sPid);
- ds_main_cond.setColumn(0, "ordtype", sOrdtype);
- ds_main_cond.setColumn(0, "orddd", sIndd);
- ds_main_cond.setColumn(0, "indd", sIndd);
- ds_main_cond.setColumn(0, "cretno", sCretno);
- ds_main_cond.setColumn(0, "instcd", sInstcd);
- ds_main_cond.setColumn(0, "orddeptcd", sOrddeptcd);
- ds_main_cond.setColumn(0, "wardcd", sWardcd);
- }
-
- ivw_loader.setFocus();
-
- finit();
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW04820
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 병동 환자검색
- ****************************************************************************************/
- function grp_sea_btn_patSearch_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SPPMC02500","SPPMC02500","","",1,"150","150","","","","","","M");
-
- ds_main.setColumn(0, "popupendflag", frmf_getParameter("SPPMC02500_popupendflag"));
-
- //환자번호 copy
- var popupendflag = ds_main.getColumn(0, "popupendflag");
-
- if (popupendflag == "ok"){
- ds_main_patinfo_patinfolist.copyData(ds_patinfolist);
-
- ds_main_cond.setColumn(0, "pid", ds_main_patinfo_patinfolist.getColumn(0, "pid"));
- ds_main_cond.setColumn(0, "patientnm", ds_main_patinfo_patinfolist.getColumn(0, "pid"));
- }
- var pid = ds_main_cond.getColumn(0, "pid");
- //환자번호를 가지고 병동, 병실을 조회하여 조회조건에 세팅한다.
- fGetPidWardInfo(pid);
- //통증 기록 조회
- fSearch();
-
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 등록번호만 입력된 상태일때는 병동, 병실정보를 알수 없으므로
- * 해당 등록번호의 환자의 병동정보를 조회해온다.
- ****************************************************************************************/
- function fGetPidWardInfo(pid, zoneflag){
- if( !utlf_isNull(pid) ){
- ds_main_patinfo_patinfolist.clearData();
- ds_send.clearData();
- ds_send.addRow();
- ds_send.addColumn("pid", "string");
- ds_send.setColumn(0, "pid", ds_main_cond.getColumn(0, "pid"));
- if ( appf_getPatientInfoDetail('indschacptstat') == "D" || appf_getPatientInfoDetail('indschacptstat') == "T" ){
- ds_send.setColumn(0, "indd", appf_getPatientInfoDetail('indd'));
- }
-
- var oParam = {};
- oParam.id = "TRMNW04707";
- oParam.service = "wardcareapp.WardCareRec";
- oParam.method = "reqGetPatWardInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRMNW04707";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TRMNW04707") < 0 ){
- sysf_messageBox('환자정보 조회를', 'E009');
- return;
- }else{
- var wardcd = ds_main_patinfo_patinfolist.getColumn(0, "wardcd"); //병동코드,
- var roomcd = ds_main_patinfo_patinfolist.getColumn(0, "roomcd"); //병실코드
- var pid = ds_main_patinfo_patinfolist.getColumn(0, "pid"); //등록번호
-
- //가정간호의 경우는 상단정보가 아닌 parameter에서 받아온다
- if(HC_isHomeCare){
- wardcd = opener.frmf_getParameter('wardcd');
- roomcd = opener.frmf_getParameter('roomcd');
- pid = opener.frmf_getParameter('pid');
- }
-
-
- ds_main_cond.setColumn(0, "pid", ds_main_patinfo_patinfolist.getColumn(0, "pid"));
- ds_main_cond.setColumn(0, "indd", ds_main_patinfo_patinfolist.getColumn(0, "indd"));
- ds_main_cond.setColumn(0, "orddd", ds_main_patinfo_patinfolist.getColumn(0, "indd"));
- ds_main_cond.setColumn(0, "cretno", ds_main_patinfo_patinfolist.getColumn(0, "cretno"));
- ds_main_cond.setColumn(0, "dschdd", ds_main_patinfo_patinfolist.getColumn(0, "dschdd"));
- ds_main_cond.setColumn(0, "ordtype", ds_main_patinfo_patinfolist.getColumn(0, "ordtype"));
- ds_main_cond.setColumn(0, "hngnm", ds_main_patinfo_patinfolist.getColumn(0, "hngnm"));
- ds_main_cond.setColumn(0, "orddeptcd", ds_main_patinfo_patinfolist.getColumn(0, "orddeptcd"));
-
-
- //pid를 가지고 병실, 병동 정보를 찾는다.
- fSetWardRoomPidInfo(wardcd, roomcd, pid, zoneflag);
- }
-
- }
- }
- function cf_TRMNW04707(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : pid를 가지고 병실, 병동 정보를 찾아서 조회영역에
- * 병동, 병실, 환자명, 등록번호를 세팅한다.
- ****************************************************************************************/
- function fSetWardRoomPidInfo(wardcd, roomcd, pid, zoneflag){
-
- grp_sea.cmb_wardcd.value = wardcd; //병동코드 세팅
- fSearchRoomcd(wardcd); //병동에 해당되는 병실조회
- grp_sea.cmb_roomcd.value = roomcd; //병실코드 세팅
-
- fGetWardChngInfo("N");
-
- // 응급실일 경우 응급실 환자 조회 (2011.03.16 ahn)
- if(eERFLAG == "Y"){
- fGetCareComPatList(wardcd, roomcd, grp_sea.cmb_zone.value, eRECFLAG); //ds_data_patientgruplist를 받아옴
- ds_data_patientgruplist.addColumn("orddrid", "string");
-
- // 해당 환자의 section 정보로 재설정
- var sectioncd = ds_data_patientgruplist.getColumn(ds_data_patientgruplist.findRow("pid", pid), "zonecd");
- if(zoneflag== "Chg"){
- //model.setValue("/root/cond/zonecd", "-");
- ds_main_cond.setColumn(0, "zonecd", (utlf_isNull(sectioncd) ? "-" : sectioncd));
- frmf_inputEnterKey("grp_sea.cmb_zone", "onitemchanged", new ItemChangeEventInfo ); //180328_AYS_Combo_강제이벤트_사용시
- //group5.switch1.rec.grp_sea.cmb_zone.onitemchanged.fireEvent(group5.switch1.rec.grp_sea.cmb_zone, new ItemChangeEventInfo); //180328_AYS_Combo_강제이벤트_사용시(다른 방법)
- //group5_switch1_rec_grp_sea_cmb_zone_onitemchanged();
- }else if(zoneflag== "NoChg"){
- ds_main_cond.setColumn(0, "zonecd", eSECTIONCD);
- frmf_inputEnterKey("grp_sea.cmb_zone", "onitemchanged", new ItemChangeEventInfo ); //180328_AYS_Combo_강제이벤트_사용시
- //group5.switch1.rec.grp_sea.cmb_zone.onitemchanged.fireEvent(group5.switch1.rec.grp_sea.cmb_zone, new ItemChangeEventInfo); //180328_AYS_Combo_강제이벤트_사용시(다른 방법)
- //group5_switch1_rec_grp_sea_cmb_zone_onitemchanged();
- }
-
- grp_sea.cmb_erpat.value = pid;
-
- }else{
- fSearchPatInfo(wardcd, roomcd); //병실에 해당되는 환자조회
- }
- //퇴원환자의 경우 환자이름에 조회되지 않으므로 콤보아이템을 추가
- if ( utlf_isNull(ds_data_patientgruplist.getColumn(ds_data_patientgruplist.findRow("pid", pid), "patientnm")) ){
- frmf_addComboItem( "grp_sea.cmb_patientnm", appf_getPatientInfoDetail('hngnm'), pid, "above" );
- ds_main_cond.setColumn(0, "patientnm", pid);
- ds_data_patientgruplist.setColumn(0, "indd", appf_getPatientInfoDetail('indd'));
- ds_data_patientgruplist.setColumn(0, "cretno", appf_getPatientInfoDetail('cretno'));
- ds_data_patientgruplist.setColumn(0, "orddeptcd", appf_getPatientInfoDetail('orddeptcd'));
- ds_data_patientgruplist.setColumn(0, "orddrid", appf_getPatientInfoDetail('medispclid'));
- ds_data_patientgruplist.setColumn(0, "ordtype", appf_getPatientInfoDetail('ioflag'));
- grp_sea.cmb_patientnm.enable = false;
- }else{
- // 응급실일 경우 응급실 환자 조회 (2011.03.16 ahn)
- if(eERFLAG == "Y"){
- grp_sea.cmb_erpat.value = pid;
- }else{
- grp_sea.cmb_patientnm.value = pid; //등록번호 세팅
- grp_sea.cmb_patientnm.enable = true;
- }
- }
- grp_sea.ipt_pid.value = pid; //등록번호 세팅
-
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 새이름으로 저장.
- ****************************************************************************************/
- function grp_sea_btn_formrecupdt_newhis_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_cond.getColumn(0, "searchflag") =="N" ) {
- sysf_messageBox('기록 이력 조회 후 저장하세요');
- return;
- }
- ivw_loader.grup_btn.btn_signsaveasnew.click();
-
- //기록 리스트 조회
- fRecordListsearch();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : Duty별 통증기록 유무 내환자 세팅 환자 목록에 표기
- ****************************************************************************************/
- function fGetSettingPatientList_type4(pFlag,flag){
- var sRefresh = "true";
- if( !utlf_isNull(pFlag)){
- sRefresh = pFlag
- }
- if( !utlf_isNull(flag) ){
- ds_send_refCond.setColumn(0, "flag", flag);
- }
-
- var oParam = {};
- oParam.id = "TRMNR00921";
- oParam.service = "carerecapp.ClincObsRec";
- oParam.method = "reqGetsettinpatlist_type4";
- oParam.inds = "refCond=ds_send_refCond";
- oParam.outds = "ds_temp_cond_settingpatient_settingpatientlist=settingpatientlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNR00921";
- tranf_submit(oParam);
-
- if(ds_temp_cond_settingpatient_settingpatientlist.rowcount >0){
- grp_sea.cmb_mypatlist.value = ds_main_cond.getColumn(0,"pid");
- }
- }
- function grp_sea_cmb_mypatlist_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- //grp_sea_cmb_patientnm_onitemchanged
- trace(grp_sea.cmb_mypatlist.value);
- var sPid = grp_sea.cmb_mypatlist.value;
- var sOrdtype = ds_temp_cond_settingpatient_settingpatientlist.getColumn(ds_temp_cond_settingpatient_settingpatientlist.findRow("pid", sPid), "ordtype");
- var sIndd = ds_temp_cond_settingpatient_settingpatientlist.getColumn(ds_temp_cond_settingpatient_settingpatientlist.findRow("pid", sPid), "indd");
- var sCretno = ds_temp_cond_settingpatient_settingpatientlist.getColumn(ds_temp_cond_settingpatient_settingpatientlist.findRow("pid", sPid), "cretno");
- var sInstcd = ds_temp_cond_settingpatient_settingpatientlist.getColumn(ds_temp_cond_settingpatient_settingpatientlist.findRow("pid", sPid), "instcd");
-
- param = sOrdtype + "▦"
- + sPid + "▦"
- + sIndd + "▦"
- + sCretno + "▦"
- + sInstcd + "▦"
- + "▦" ;
-
- //setParameter("condparam", param);
- trace(param);
- //frmf_modal("SPMMO08900","SPMMO08900","","",1,"","","","","","","","M");
- appf_initPatientInfo(param); //상단정보 셋팅
-
- var node = appf_getPatientInfoDetails(xPamInfoPath) ;
- fpatinfoset();
-
- ivw_loader.setFocus();
- finit();
- }
- ]]></Script>
- </Form>
- </FDL>
|