12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMRI01800" position="absolute 0 0 1197 800" titletext="의사별 미비리스트" oninit="SMMRI01800_oninit" onload="SMMRI01800_onload" ontimer="SMMRI01800_ontimer">
- <Layouts>
- <Layout>
- <Static id="Static00" position="absolute 0 112 93 134" class="tit_2" style="background:URL('theme://images/icon_tit_bullet2.png') left top;padding:2 0 0 20;" text="미비리스트"/>
- <Static text="의사별 미비리스트" position="absolute 0 0 145 25" id="caption6" class="tit_1"/>
- <Div position="absolute 0 25 1195 105" id="roundrect1" type="roundrectangle" anchor="left top right" class="div_SA">
- <Layouts>
- <Layout>
- <Static id="caption15" text="날짜조회" position="absolute 114 56 164 76" anchor="default"/>
- <Button id="button3" taborder="1" text="의사별미비현황" class="btn1" position="absolute 1030 55 1146 77" anchor="top right" onclick="roundrect1_button3_onclick"/>
- <Static id="caption26" text="인증미비제외" class="search_name" visible="false" position="absolute 860 8 962 25" anchor="default"/>
- <CheckBox id="bool2" taborder="2" visible="false" position="absolute 959 8 994 23" anchor="default" truevalue="Y" falsevalue="N"/>
- <Button id="button7" taborder="3" text="상세조회" class="btn1" position="absolute 1111 6 1191 28" anchor="top right" onclick="roundrect1_button7_onclick"/>
- <Combo id="combo1" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 465 8 572 27" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">01</Col>
- <Col id="datacolumn">미비의사</Col>
- </Row>
- <Row>
- <Col id="codecolumn">02</Col>
- <Col id="datacolumn">전문의</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="cmb_deptflag" taborder="5" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 15 8 122 27" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">01</Col>
- <Col id="datacolumn">미비과</Col>
- </Row>
- <Row>
- <Col id="codecolumn">02</Col>
- <Col id="datacolumn">재(퇴)원과</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <CheckBox id="chk_complete" taborder="6" position="absolute 492 32 597 52" anchor="default" truevalue="F" text="미비정리완료"/>
- <Static id="caption5" text="미비분과 :" class="search_name" position="absolute 240 8 329 25" anchor="default"/>
- <Combo id="cmb_detldept" taborder="7" innerdataset="ds_init_cmb_detldept" codecolumn="cdid" datacolumn="cdnm" class="combo_search" enable="false" position="absolute 331 8 431 27" anchor="default"/>
- <Combo id="cmb_doctkindflag" taborder="8" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_essential" position="absolute 772 8 847 27" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">-</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">St</Col>
- <Col id="datacolumn">스태프</Col>
- </Row>
- <Row>
- <Col id="codecolumn">R</Col>
- <Col id="datacolumn">레지던트</Col>
- </Row>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">인턴</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="cmb_itemcd" taborder="9" innerdataset="ds_init_cmb_itemcd" codecolumn="unprepitemcd" datacolumn="unprepitemnm" class="combo_search" position="absolute 830 54 980 73" anchor="default"/>
- <Static id="caption7" text="미비구분 :" class="search_name" position="absolute 10 32 96 49" anchor="default"/>
- <Static id="caption14" text="미비항목명 :" class="search_name" position="absolute 730 55 860 72" anchor="default"/>
- <Static id="caption13" text="미비서식명 :" class="search_name" position="absolute 473 56 603 73" anchor="default"/>
- <Button id="btn_req" taborder="10" text="미비조회" class="btn1" position="absolute 1030 6 1110 28" anchor="top right" onclick="roundrect1_btn_req_onclick"/>
- <Static id="caption12" text="의사구분 :" class="search_name" position="absolute 685 8 776 25" anchor="default"/>
- <Radio id="rdo_inoutflag" taborder="11" columncount="6" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 95 32 481 52" anchor="default" onitemchanged="roundrect1_rdo_inoutflag_onitemchanged" style="textpadding:0 0 0 3;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">D</Col>
- <Col id="datacolumn">퇴원미비</Col>
- </Row>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">재원미비</Col>
- </Row>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">외래미비</Col>
- </Row>
- <Row>
- <Col id="codecolumn">E</Col>
- <Col id="datacolumn">응급실미비</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1021 5 1027 75" anchor="top right"/>
- <CheckBox id="bool1" taborder="12" position="absolute 90 54 120 74" anchor="default" truevalue="Y" falsevalue="N" onchanged="roundrect1_bool1_onchanged"/>
- <Combo id="cmb_inoutddflag" taborder="13" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 170 55 245 74" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">dschdd</Col>
- <Col id="datacolumn">퇴원일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">indd</Col>
- <Col id="datacolumn">입원일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">formrecdd</Col>
- <Col id="datacolumn">진료일자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="cmb_deptcd" taborder="14" innerdataset="ds_init_cmb_deptcd" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 128 8 228 27" anchor="default" onitemchanged="roundrect1_cmb_deptcd_onitemchanged"/>
- <Button id="button2" taborder="15" text="StaffSign미비조회" class="btn1" position="absolute 1030 30 1170 52" anchor="top right" onclick="roundrect1_button2_onclick"/>
- <Combo id="cmb_formcd" taborder="16" innerdataset="ds_init_cmb_formcd" codecolumn="formcd" datacolumn="formnm" class="combo_search" position="absolute 573 54 708 73" anchor="default" onitemchanged="roundrect1_cmb_formcd_onitemchanged"/>
- <Edit id="ipt_unprepdrnm" taborder="17" position="absolute 576 8 676 27" anchor="default" onkeydown="roundrect1_ipt_unprepdrnm_onkeydown" onkillfocus="roundrect1_ipt_unprepdrnm_onkillfocus"/>
- <Calendar id="ipt_fromdd" taborder="18" enable="false" position="absolute 250 55 348 74" anchor="default"/>
- <Calendar id="ipt_todd" taborder="19" enable="false" position="absolute 360 55 458 74" anchor="default"/>
- <Static id="cap_reqflag" text="조회구분 :" class="search_name" position="absolute 10 56 96 73" anchor="default"/>
- <Static id="caption11" text="~" position="absolute 349 60 363 70" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 128 1194 134" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
- <Button position="absolute 1144 108 1194 128" id="btn_ex" class="btn7" text="엑셀" anchor="top right" onclick="btn_ex_onclick"/>
- <Static text="미비환자수 :" position="absolute 646 110 745 127" id="caption2" class="search_name" anchor="default"/>
- <Static text="미비기록건수 :" position="absolute 781 110 893 127" id="caption8" class="search_name" anchor="default"/>
- <Edit readonly="true" position="absolute 743 109 773 128" id="opt_pid" anchor="default"/>
- <Edit readonly="true" position="absolute 893 109 923 128" id="opt_formcd" anchor="default"/>
- <Static text="전달사항 From 의사(보기 전용)" position="absolute 600 740 809 763" id="caption10" class="tit_2" anchor="left bottom"/>
- <TextArea position="absolute 600 759 1194 797" id="textarea1" anchor="left bottom" scrollbars="autovert" wordwrap="both"/>
- <Static text="전달사항 From 의무기록실(보기전용)" position="absolute 0 740 244 763" id="caption9" class="tit_2" anchor="left bottom"/>
- <Grid position="absolute 0 133 1195 679" id="grd_unpreplist" binddataset="ds_grd_unpreplist" anchor="all" onexpanddown="grd_unpreplist_onexpanddown" onheadclick="grd_unpreplist_onheadclick" oncelldblclick="grd_unpreplist_oncelldblclick" ontextchanged="grd_unpreplist_ontextchanged" onvscroll="grd_unpreplist_onvscroll" onrbuttondown="grd_unpreplist_onrbuttondown" cellsizingtype="col" selecttype="multirow" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="25"/>
- <Column size="80"/>
- <Column size="54"/>
- <Column size="0"/>
- <Column size="75"/>
- <Column size="72"/>
- <Column size="73"/>
- <Column size="55"/>
- <Column size="0"/>
- <Column size="75"/>
- <Column size="95"/>
- <Column size="58"/>
- <Column size="75"/>
- <Column size="0"/>
- <Column size="116"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="45"/>
- <Column size="148"/>
- <Column size="138"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="150"/>
- <Column size="150"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell celltype="none"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="시간경과(h)"/>
- <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="unprepno"/>
- <Cell col="10" text="전문의"/>
- <Cell col="11" text="미비의사"/>
- <Cell col="12" text="의사구분"/>
- <Cell col="13" text="입원일"/>
- <Cell col="14" text="서식코드"/>
- <Cell col="15" text="서식명"/>
- <Cell col="16" text="unprepitemcd"/>
- <Cell col="17" text="항목명"/>
- <Cell col="18" text="진료일자"/>
- <Cell col="19" text="재미비"/>
- <Cell col="20" text="전달사항 From 의무기록실"/>
- <Cell col="21" text="전달사항 From 의사"/>
- <Cell col="22" text="발생번호"/>
- <Cell col="23" text="서식기록순번"/>
- <Cell col="24" text="최종수정자"/>
- <Cell col="25" text="최종수정일시"/>
- <Cell col="26" text="의사확인일시"/>
- <Cell col="27" text="suppress"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" displaytype="normal" style="align:center;background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");color:EXPR(overchk > 24 ? "#FF0000" : "#000000");color2:EXPR(overchk > 24 ? "#FF0000" : "#000000");" text="bind:overchk"/>
- <Cell col="3" style="align:left;background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:unprepdeptnm"/>
- <Cell col="4" style="align:left;background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:detldeptnm"/>
- <Cell col="5" style="background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:pid" suppress="1" suppressalign="middle,over" suppressedit="false"/>
- <Cell col="6" style="background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:hngnm" suppress="2" suppressalign="middle,over"/>
- <Cell col="7" style="background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:dschdd" mask="expr:utlf_isNull(dschdd) ? '' : dschdd.length == 8 ? '####-##-##' : ''" suppress="3" suppressalign="middle,over"/>
- <Cell col="8" style="background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:dschdeptnm" suppress="5" suppressalign="middle,over"/>
- <Cell col="9" style="background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:unprepno"/>
- <Cell col="10" style="background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:medispclnm" suppress="4" suppressalign="middle,over"/>
- <Cell col="11" style="align:left;background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:unprepdrnm"/>
- <Cell col="12" style="align:left;background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:doctkindflag"/>
- <Cell col="13" style="background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:indd" mask="expr:utlf_isNull(indd) ? '' : '####-##-##'"/>
- <Cell col="14" style="background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:formcd"/>
- <Cell col="15" style="align:left top;padding:5 2 0 2;background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:formnm" wordwrap="word"/>
- <Cell col="16" style="background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:unprepitemcd"/>
- <Cell col="17" style="background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:unprepitemnm"/>
- <Cell col="18" style="background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:formrecdd" mask="expr:utlf_isNull(formrecdd) ? '' : '####-##-##'"/>
- <Cell col="19" style="background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:reunprepflag"/>
- <Cell col="20" displaytype="text" edittype="textarea" style="align:left top;padding:5 2 0 2;background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:medirecalertcnts" wordwrap="word" expandshow="show"/>
- <Cell col="21" displaytype="text" edittype="textarea" style="align:left top;padding:5 2 0 2;background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:dralertcnts" wordwrap="word" expandshow="show"/>
- <Cell col="22" style="align:left;background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:cretno"/>
- <Cell col="23" style="background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:formrecseq"/>
- <Cell col="24" style="align:left;background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:lastupdtrnm"/>
- <Cell col="25" style="align:left;background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##'"/>
- <Cell col="26" style="align:left;background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:drcnfmdt" mask="expr:utlf_isNull(drcnfmdt) ? '' : '####-##-## ##:##'"/>
- <Cell col="27" style="align:left;background:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");background2:EXPR(suppress%2 == 0 ? "#FFFFFF" : "#FFFFCC");" text="bind:suppress"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1093 108 1143 128" id="button1" class="btn6" text="출력" anchor="top right" onclick="button1_onclick"/>
- <Static text="미비과 :" position="absolute 275 111 350 128" id="caption3" class="search_name" anchor="default"/>
- <Static text="미비의사 :" position="absolute 370 111 459 128" id="caption4" class="search_name" anchor="default"/>
- <Button position="absolute 508 108 536 128" id="button4" text="" anchor="default" onclick="button4_onclick" class="icon_right"/>
- <Button position="absolute 480 108 508 128" id="button5" text="" anchor="default" onclick="button5_onclick" class="icon_left"/>
- <Edit readonly="true" position="absolute 1047 109 1077 128" id="output1" anchor="default"/>
- <Static text="미비완료건수 :" position="absolute 932 111 1044 128" id="caption16" class="search_name" anchor="default"/>
- <Button position="absolute 94 109 169 128" id="button6" class="btn2" text="labor note" anchor="default" onclick="button6_onclick"/>
- <CheckBox position="absolute 195 110 275 130" id="chk_merge" visible="false" anchor="default" text="셀머지" truevalue="1" falsevalue="0" onchanged="chk_merge_onchanged" value="1"/>
- <Static text="미비 서식별 세부건수" position="absolute 0 683 175 706" id="caption17" class="tit_2" anchor="left bottom"/>
- <Div position="absolute 3 705 1194 733" id="grp_formcnt" anchor="left bottom">
- <Layouts>
- <Layout>
- <Edit readonly="true" position="absolute 545 4 575 23" id="opt_0000003169" anchor="left bottom"/>
- <Edit readonly="true" position="absolute 261 4 291 23" id="opt_0000000003" anchor="left bottom"/>
- <Edit readonly="true" position="absolute 385 4 415 23" id="opt_0000000004" anchor="left bottom"/>
- <Edit readonly="true" position="absolute 827 4 857 23" id="opt_0000000676" anchor="left bottom"/>
- <Static text="경과기록 :" position="absolute 297 6 384 23" id="caption20" class="search_name" anchor="left bottom"/>
- <Static text="Brief OP Note :" position="absolute 422 6 545 23" id="caption21" class="search_name" anchor="left bottom"/>
- <Static text="Expired Note :" position="absolute 580 6 698 23" id="caption22" class="search_name" anchor="left bottom"/>
- <Static text="수술기록 :" position="absolute 740 6 828 23" id="caption23" class="search_name" anchor="left bottom"/>
- <Static text="Discharge Note :" position="absolute 865 6 999 23" id="caption24" class="search_name" anchor="left bottom"/>
- <Static text="Post Op Note :" position="absolute 1035 6 1159 23" id="caption25" class="search_name" anchor="left bottom"/>
- <Edit readonly="true" position="absolute 1157 4 1187 23" id="opt_0800003416" anchor="left bottom"/>
- <Edit readonly="true" position="absolute 997 4 1027 23" id="opt_0000001592" anchor="left bottom"/>
- <Static text="입원초진기록 :" position="absolute 147 6 259 23" id="caption18" class="search_name" anchor="left bottom"/>
- <Edit readonly="true" position="absolute 110 4 140 23" id="opt_0000000680" anchor="left bottom"/>
- <Edit readonly="true" position="absolute 702 4 732 23" id="opt_0000001594" anchor="left bottom"/>
- <Static text="입퇴원요약 :" position="absolute 7 6 106 23" id="caption19" class="search_name" anchor="left bottom"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="※ 24시간이 경과된(빨간색) 서식지가 처방제어대상입니다." position="absolute 175 680 881 700" align="align:left middle;" id="cap_infomsg" anchor="left bottom" style="color:#0000ffff;font:Dotum,9,bold;"/>
- <PopupMenu id="popupmenu_menulist" position="absolute 1198 0 1303 25" innerdataset="@ds_popupmenu_menulist" levelcolumn="level" idcolumn="hardcd" captioncolumn="hardcdnm" onmenuclick="popupmenu_menulist_onmenuclick"/>
- <TextArea id="textarea2" taborder="1" scrollbars="autovert" wordwrap="both" position="absolute 0 758 591 796" anchor="left bottom"/>
- <Button id="btn_stf_multi" taborder="2" text="StaffSign 미비 간편확인" position="absolute 1048 1 1194 22" onclick="Button00_onclick" class="btn2" visible="false"/>
- <Button position="absolute 1 110 93 130" id="caption1" anchor="default" ondblclick="grp_biz_caption1_ondblclick" style="background:transparent;border:2 none #33bbbbff #effcfbff;color:transparent;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_unpreplist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" onrowposchanged="ds_grd_unpreplist_onrowposchanged" oncolumnchanged="ds_grd_unpreplist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chk" type="STRING" size="256"/>
- <Column id="unprepstat" type="STRING" size="256" sumtext="미비상태"/>
- <Column id="unprepdeptnm" type="STRING" size="256" sumtext="미비과명"/>
- <Column id="doctkindflag" type="STRING" size="256" sumtext="의사구분"/>
- <Column id="unprepdrid" type="STRING" size="256" sumtext="미비의사id"/>
- <Column id="unprepdrnm" type="STRING" size="256" sumtext="미비의사"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일자"/>
- <Column id="dschdeptnm" type="STRING" size="256" sumtext="퇴원과명"/>
- <Column id="unprepno" type="STRING" size="256" sumtext="미비번호"/>
- <Column id="medispclnm" type="STRING" size="256" sumtext="주치의"/>
- <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
- <Column id="formnm" type="STRING" size="256" sumtext="서식명"/>
- <Column id="unprepitemcd" type="STRING" size="256" sumtext="항목코드"/>
- <Column id="unprepitemnm" type="STRING" size="256" sumtext="항목명"/>
- <Column id="formrecdd" type="STRING" size="256" sumtext="진료일자"/>
- <Column id="orddd" type="STRING" size="256" sumtext="기록일자"/>
- <Column id="reunprepflag" type="STRING" size="256" sumtext="재미비구분"/>
- <Column id="medirecalertcnts" type="STRING" size="256" sumtext="의무기록전달사항"/>
- <Column id="dralertcnts" type="STRING" size="256" sumtext="의사전달사항"/>
- <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="formrecseq" type="STRING" size="256" sumtext="서식기록순번"/>
- <Column id="oprsrvno" type="STRING" size="256" sumtext="수술예약번호"/>
- <Column id="drcnfmdt" type="STRING" size="256" sumtext="의사확인일시"/>
- <Column id="ordtype" type="STRING" size="256" sumtext="진료형태"/>
- <Column id="srcformcd" type="STRING" size="256" sumtext="기준서식코드"/>
- <Column id="detldeptnm" type="STRING" size="256" sumtext="미비분과명"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료부서코드"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정시각"/>
- <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종수정자"/>
- <Column id="overchk" type="STRING" size="256" sumtext=""/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_formcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="formnm" type="STRING"/>
- <Column id="formcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_deptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_itemcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="unprepitemnm" type="STRING"/>
- <Column id="unprepitemcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_detldept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- </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="unprepdeptcd" type="STRING" size="256"/>
- <Column id="unprepdeptnm" type="STRING" size="256"/>
- <Column id="unprepdrnm" type="STRING" size="256"/>
- <Column id="unprepdrid" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="indschflagnm" type="STRING" size="256"/>
- <Column id="indschflag" type="STRING" size="256"/>
- <Column id="dateflagnm" type="STRING" size="256"/>
- <Column id="dateflag" type="STRING" size="256"/>
- <Column id="doctkindflag" type="STRING" size="256"/>
- <Column id="checkflag" type="STRING" size="256"/>
- <Column id="formcd" type="STRING" size="256"/>
- <Column id="formnm" type="STRING" size="256"/>
- <Column id="unprepitemcd" type="STRING" size="256"/>
- <Column id="unprepitemnm" type="STRING" size="256"/>
- <Column id="unprepsign" type="STRING" size="256"/>
- <Column id="orderby" type="STRING" size="256"/>
- <Column id="detldeptcd" type="STRING" size="256"/>
- <Column id="completeflag" type="STRING" size="256"/>
- <Column id="deptflag" type="STRING" size="256"/>
- <Column id="drflag" type="STRING" size="256"/>
- <Column id="xsignmibi" type="STRING" size="256"/>
- <Column id="patcnt" type="STRING" size="256"/>
- <Column id="reccnt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="indschflag">D</Col>
- <Col id="dateflag">dschdd</Col>
- <Col id="doctkindflag">-</Col>
- <Col id="checkflag">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_alertinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="doccnts" type="STRING" size="256"/>
- <Column id="medcnts" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_openday" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_M0501" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_M0502" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_M0503" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_cnfmcmplcnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cnfmcmplcnt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cnfmcmplcnt">0</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_formcnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cnt_0000000680" type="STRING" size="256"/>
- <Column id="cnt_0000000003" type="STRING" size="256"/>
- <Column id="cnt_0000000004" type="STRING" size="256"/>
- <Column id="cnt_0000003169" type="STRING" size="256"/>
- <Column id="cnt_0000001594" type="STRING" size="256"/>
- <Column id="cnt_0000000676" type="STRING" size="256"/>
- <Column id="cnt_0000001592" type="STRING" size="256"/>
- <Column id="cnt_0800003416" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_unpreplistcnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_unprepiteminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_unprepdrinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="checkflag" type="STRING" size="256" sumtext="check구분"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="deptabbrnm" type="STRING" size="256" sumtext="부서약어명"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의id"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의명"/>
- <Column id="jobposcd" type="STRING" size="256" sumtext="직종코드"/>
- <Column id="jobposnm" type="STRING" size="256" sumtext="직종명"/>
- <Column id="drstate" type="STRING" size="256" sumtext="진료상태"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_popupmenu_menulist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hardcd" type="STRING" size="256"/>
- <Column id="hardcdnm" type="STRING" size="256"/>
- <Column id="level" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hardcd">callUnprepDtPopMenu</Col>
- <Col id="hardcdnm">미비상세리스트</Col>
- <Col id="level">0</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_formcnt_formcnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="col1" type="STRING" size="256"/>
- <Column id="col2" type="STRING" size="256"/>
- <Column id="col3" type="STRING" size="256"/>
- <Column id="col4" type="STRING" size="256"/>
- <Column id="col5" 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="scrnidx" 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"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_stfauth" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item3" compid="textarea2" propid="value" datasetid="ds_temp_alertinfo" columnid="medcnts"/>
- <BindItem id="item0" compid="opt_pid" propid="value" datasetid="ds_main_cond" columnid="patcnt"/>
- <BindItem id="item1" compid="opt_formcd" propid="value" datasetid="ds_main_cond" columnid="reccnt"/>
- <BindItem id="item2" compid="textarea1" propid="value" datasetid="ds_temp_alertinfo" columnid="doccnts"/>
- <BindItem id="item4" compid="roundrect1.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
- <BindItem id="item5" compid="roundrect1.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item6" compid="roundrect1.ipt_unprepdrnm" propid="value" datasetid="ds_main_cond" columnid="unprepdrnm"/>
- <BindItem id="item7" compid="roundrect1.cmb_formcd" propid="value" datasetid="ds_main_cond" columnid="formcd"/>
- <BindItem id="item8" compid="roundrect1.cmb_deptcd" propid="value" datasetid="ds_main_cond" columnid="unprepdeptcd"/>
- <BindItem id="item9" compid="roundrect1.cmb_inoutddflag" propid="value" datasetid="ds_main_cond" columnid="dateflag"/>
- <BindItem id="item10" compid="roundrect1.bool1" propid="value" datasetid="ds_main_cond" columnid="checkflag"/>
- <BindItem id="item11" compid="roundrect1.rdo_inoutflag" propid="value" datasetid="ds_main_cond" columnid="indschflag"/>
- <BindItem id="item12" compid="roundrect1.cmb_itemcd" propid="value" datasetid="ds_main_cond" columnid="unprepitemcd"/>
- <BindItem id="item13" compid="roundrect1.cmb_doctkindflag" propid="value" datasetid="ds_main_cond" columnid="doctkindflag"/>
- <BindItem id="item14" compid="output1" propid="value" datasetid="ds_main_cnfmcmplcnt" columnid="cnfmcmplcnt"/>
- <BindItem id="item15" compid="roundrect1.cmb_detldept" propid="value" datasetid="ds_main_cond" columnid="detldeptcd"/>
- <BindItem id="item16" compid="grp_formcnt.opt_0000003169" propid="value" datasetid="ds_main_formcnt" columnid="cnt_0000003169"/>
- <BindItem id="item17" compid="grp_formcnt.opt_0000000003" propid="value" datasetid="ds_main_formcnt" columnid="cnt_0000000003"/>
- <BindItem id="item18" compid="grp_formcnt.opt_0000000004" propid="value" datasetid="ds_main_formcnt" columnid="cnt_0000000004"/>
- <BindItem id="item19" compid="grp_formcnt.opt_0000000676" propid="value" datasetid="ds_main_formcnt" columnid="cnt_0000000676"/>
- <BindItem id="item20" compid="grp_formcnt.opt_0800003416" propid="value" datasetid="ds_main_formcnt" columnid="cnt_0800003416"/>
- <BindItem id="item21" compid="grp_formcnt.opt_0000001592" propid="value" datasetid="ds_main_formcnt" columnid="cnt_0000001592"/>
- <BindItem id="item22" compid="grp_formcnt.opt_0000000680" propid="value" datasetid="ds_main_formcnt" columnid="cnt_0000000680"/>
- <BindItem id="item23" compid="grp_formcnt.opt_0000001594" propid="value" datasetid="ds_main_formcnt" columnid="cnt_0000001594"/>
- <BindItem id="item24" compid="roundrect1.chk_complete" propid="value" datasetid="ds_main_cond" columnid="completeflag"/>
- <BindItem id="item25" compid="roundrect1.cmb_deptflag" propid="value" datasetid="ds_main_cond" columnid="deptflag"/>
- <BindItem id="item26" compid="roundrect1.combo1" propid="value" datasetid="ds_main_cond" columnid="drflag"/>
- <BindItem id="item27" compid="roundrect1.bool2" propid="value" datasetid="ds_main_cond" columnid="xsignmibi"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-10-10
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-10-10 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "emr_unprepmngtxp::SMMRI01800.xjs"
- include "emr_prcpmngtxp::MMOCommon.xjs"
- include "emr_medirecxp::MMR01100.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : 01.sKey : 코드아이디
- * : 02.sValue : 코드명
- * Description : 공통코드를 가져온다.
- ****************************************************************************************/
- //=======================================================================================
- // Transaction Callback
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : 01.sSvcId : 서비스 ID
- * : 02.nErrorCode : 에러코드
- * : 03.sErrorMsg : 에러메시지
- * Description : tr_getCodeList의 콜백함수
- ****************************************************************************************/
- function cf_TXMRI01802(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- arErrorCode.push(sSvcId, nErrorCode);
- utlf_addLog("***** cf_TXMRI01802*****");
- }
- function cf_TRMRI02902(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- arErrorCode.push(sSvcId, nErrorCode);
- utlf_addLog("***** cf_TRMRI02902 *****");
- }
- function cf_TRMRI01804(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- arErrorCode.push(sSvcId, nErrorCode);
- utlf_addLog("***** cf_TRMRI01804 *****");
- frmf_addComboItem( "roundrect1.cmb_formcd", "전체" , "-" , "above" );
- }
-
- function cf_TRMMB04101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- arErrorCode.push(sSvcId, nErrorCode);
- utlf_addLog("***** cf_TRMMB04101*****");
-
- dsf_copyDs(ds_init_cmb_deptcd, ds_hidden_mmb_orddept);
- dsf_deleteDs("ds_hidden_mmb_orddept");
-
- }
- function cf_TRMRI01805(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- arErrorCode.push(sSvcId, nErrorCode);
- utlf_addLog("***** cf_TRMRI01805*****");
-
- frmf_addComboItem("roundrect1.cmb_itemcd", "전체", "-" , "above");
-
- }
-
- function cf_TRMRI02901(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- arErrorCode.push(sSvcId, nErrorCode);
- utlf_addLog("***** cf_TRMRI02901 *****");
- // utlf_addLog(ds_temp_userinfo.saveXML());
- }
- function cf_TRMRI01801(sSvcId, nErrorCode, sErrorMsg) {
- utlf_addLog("***** cf_TRMRI01801 *****");
- if(nErrorCode < 0) return;
- arErrorCode.push(sSvcId, nErrorCode);
-
- ds_grd_unpreplist.addColumn("suppress", "string");
-
- //xp code add : col id change!!!
- ds_grd_unpreplist.updateColID("deptengabbr", "unprepdeptnm");
- //all column default value setting
- dsf_setDefaultVal(ds_grd_unpreplist, "all");
-
- if( ds_grd_unpreplist.rowcount > 0 )
- ds_grd_unpreplist.rowposition = 0;
-
-
- }
- function cf_TRMRI01801_append(sSvcId, nErrorCode, sErrorMsg) {
- utlf_addLog("***** cf_TRMRI01801_append *****");
- if(nErrorCode < 0) return;
- arErrorCode.push(sSvcId, nErrorCode);
-
- ds_grd_unpreplist_temp.addColumn("suppress", "string");
- //xp code add : col id change!!!
- ds_grd_unpreplist_temp.updateColID("deptengabbr", "unprepdeptnm");
- //all column default value setting
- dsf_setDefaultVal(ds_grd_unpreplist_temp, "all");
-
- // dataset copy
- ds_grd_unpreplist.enableevent = false;
- ds_grd_unpreplist.appendData(ds_grd_unpreplist_temp, true);
- ds_grd_unpreplist.enableevent = false;
-
- //temp dataset delete
- dsf_deleteDs("ds_grd_unpreplist_temp");
-
- }
- function cf_TRMRI02604(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- arErrorCode.push(sSvcId, nErrorCode);
- utlf_addLog("***** cf_TRMRI02604 *****");
- // utlf_addLog(ds_temp_unprepdrinfo.saveXML());
- }
- function cf_TRMRI01703(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- arErrorCode.push(sSvcId, nErrorCode);
- utlf_addLog("***** cf_TRMRI01703 *****");
- //utlf_addLog(ds_main_unprepiteminfo.saveXML());
-
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : button5
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SMMRI01800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMRI01800_onload(obj:Form, e:LoadEventInfo)
- {
- //grdf_setGridSort(grd_unpreplist);
- grdf_initGrid(grd_unpreplist);
-
- //grd_unpreplist.backColorAlternate = "#ffffff";
- grd_unpreplist.setRealColSize(grd_unpreplist.getBindCellIndex("body", "unprepdrnm"), 0, false);
- grd_unpreplist.setRealColSize(grd_unpreplist.getBindCellIndex("body", "doctkindflag"), 0, false);
- grd_unpreplist.setRealColSize(grd_unpreplist.getBindCellIndex("body", "indd"), 0, false);
-
- ds_grd_unpreplist.clearData();
-
- fGetDeptCodeComboList("A", utlf_getCurrentDate());
- frmf_addComboItem( "roundrect1.cmb_deptcd", "전체" , "-" , "above" );
- frmf_addComboItem( "roundrect1.cmb_deptcd", "호스피스과", "3100000000", "below" );
-
- var arrParam = new Array();
- arrParam.push({bizId:"M0037", cdGrpId:"M0546", dsNm:"ds_init_openday", sortField:"cdnm", sortMehotd:"desc"});
- appf_getKindCodeList(arrParam);
- //utlf_addLog(ds_init_openday.saveXML());
-
- var fDate = utlf_getCurrentDate();
- var fgetdd = fDate.toDate();
- var isDate = fgetdd.getAddDate(-1);
- ds_main_cond.setColumn(0, "fromdd", isDate.getDateFormat());
- ds_main_cond.setColumn(0, "todd", utlf_getCurrentDate());
- ds_main_cond.setColumn(0, "dateflag" , "dschdd");
- ds_main_cond.setColumn(0, "unprepdeptcd" , "-");
-
- ds_main_cond.setColumn(0, "deptflag" , "01");
- ds_main_cond.setColumn(0, "drflag" , "01");
-
- fReqGetFormList(); //서식명 조회
- ds_main_cond.setColumn(0, "formcd" ,"-");
-
- fReqGetFormItemList(roundrect1.cmb_formcd.value); //항목명 조회
- ds_main_cond.setColumn(0, "unprepitemcd" ,"-");
-
-
- if(sysf_getUserInfo("jobkindcd").substring(0, 2) == "03")
- {
- if(!utlf_isNull(opener) && opener.frmf_getParameter("SMMMO04900") == "Y")
- {
- //2010.01.20 이남익 추가 : 진료 현황판에 미비구분 연동을 위한 추가
- var indschflag = opener.frmf_getParameter("SMMRI01800_Indschflag");
- ds_main_cond.setColumn(0, "indschflag", indschflag);
- // end 2010.01.20
- var xsignmibi = opener.frmf_getParameter("SMMRI01800_xsignmibi");
- ds_main_cond.setColumn(0, "xsignmibi", xsignmibi);
- if(indschflag == "A"){
- roundrect1.rdo_inoutflag.index = 0;
- }else if(indschflag =="D"){
- roundrect1.rdo_inoutflag.index = 1;
- }else if(indschflag =="I"){
- roundrect1.rdo_inoutflag.index = 2;
- }else if(indschflag =="O"){
- roundrect1.rdo_inoutflag.index = 3;
- }
-
- var orddeptcd = opener.frmf_getParameter("SMMRI01800_Orddeptcd");
- ds_main_cond.setColumn(0, "unprepdeptcd", orddeptcd);
-
- if(opener.frmf_getParameter("SMMRI01800_Orddrid") != "-")
- {
- ds_main_cond.setColumn(0, "unprepdrnm", sysf_getUserInfo("usernm"));
- ds_main_cond.setColumn(0, "unprepdrid", sysf_getUserInfo("userid"));
- }
-
- if(opener.frmf_getParameter("SMMRI01800_StaffYn") == "Y")
- {
- var e = new ClickEventInfo;
- frmf_inputEnterKey("roundrect1.button2", "onclick", e ); //Staff Sign미비조회
- }
- else
- {
- var e = new ClickEventInfo;
- frmf_inputEnterKey("roundrect1.btn_req", "onclick", e ); //미비조회
- }
- }
- else
- {
- // 2010.06.07 이은영.. REA (14313).. 의사샘이 의사별미비리스트 로딩시 디폴트 전체로 함.
- var instcd = sysf_getUserInfo("dutplceinstcd");
- if (instcd == "012") {
- ds_main_cond.setColumn(0, "indschflag", "A");
- roundrect1.rdo_inoutflag.index = 0;
- }
-
- ds_main_cond.setColumn(0, "unprepdrnm", sysf_getUserInfo("usernm"));
- ds_main_cond.setColumn(0, "unprepdrid", sysf_getUserInfo("userid"));
-
- var e = new ClickEventInfo;
- frmf_inputEnterKey("roundrect1.button2", "onclick", e ); //Staff Sign미비조회
- }
- }
-
- //깜빡이 기능
- gTimeCnt = 1;
- //fviewinfomsg();
- this.setTimer(1, gIntervalTime);
-
- var arrParam = new Array();
- arrParam.push({dsNm: "ds_init_M0501", cdGrpId: "M0501", sortField: "cdid", sortMehotd: "desc", showValue:false});
- arrParam.push({dsNm: "ds_init_M0502", cdGrpId: "M0502", sortField: "cdid", sortMehotd: "desc", showValue:false});
- arrParam.push({dsNm: "ds_init_M0503", cdGrpId: "M0503", sortField: "cdid", sortMehotd: "desc", showValue:false});
- appf_getCodeList(arrParam);
-
- //zbcfGetCodeList(new Array("M0501", "M0502", "M0503"), new Array("/root/init/M0501", "/root/init/M0502", "/root/init/M0503"));
-
- // [요청번호:20160721010] 미비기록 관련(입퇴원요약기록, 수술기록 일괄 인증저장)
- // Hardcd 9978 [미비] StaffSign 미비 간편확인 기능 사용자 구분으로 기능 활성화
- lf_getHardCDList("N", 9978, null, ds_init_stfauth);
- if( ds_init_stfauth.findRow("hardcd", sysf_getUserInfo("userid")) > -1){
- btn_stf_multi.visible = true;
- }
- }
- function SMMRI01800_ontimer(obj:Form, e:TimerEventInfo)
- {
- if (e.timerid == 1 ){
- fviewinfomsg();
- }
- }
- function grp_biz_caption1_ondblclick(obj:Button, e:MouseEventInfo)
- {
- if(chk_merge.visible == false)
- {
- chk_merge.visible = true;
- return;
- }
-
- if(chk_merge.visible == true)
- {
- chk_merge.visible = false;
- return;
- }
- }
- function btn_ex_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveExcel();
- }
- function grd_unpreplist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- var currow = ds_grd_unpreplist.rowposition;
-
- if(e.col == grd_unpreplist.getBindCellIndex("body", "medirecalertcnts")){
- var medirecalertcnts = ds_grd_unpreplist.getColumn(currow, "medirecalertcnts");
- frmf_setParameter("SPMRI01900_scrnflag" , "m");
- frmf_setParameter("SPMRI01900_alertcnts", medirecalertcnts);
- frmf_modal("SPMRI01900", "SPMRI01900", null, null, null, null, null, null, null, null, null, null, "M");
-
- }else if(e.col == grd_unpreplist.getBindCellIndex("body", "dralertcnts")){
- var dralertcnts = ds_grd_unpreplist.getColumn(currow, "dralertcnts");
- frmf_setParameter("SPMRI01900_scrnflag" , "d");
- frmf_setParameter("SPMRI01900_alertcnts", dralertcnts);
- frmf_modal("SPMRI01900", "SPMRI01900", null, null, null, null, null, null, null, null, null, null, "M");
-
- if(frmf_getParameter("SPMRI01900_useyn") == "Y"){
- utlf_addLog("***** frmf_getParameter(SPMRI01900_useyn) == Y *****");
- // dataset 의 oncolumnchange event 호출로 인해 하위 로직 불필요.
- ds_grd_unpreplist.setColumn(currow, "dralertcnts", frmf_getParameter("SPMRI01900_alertcnts"));
- }
-
- // dsf_deleteDs("ds_send_savedata");
- // dsf_createDs("ds_send_savedata");
- // var nRow = ds_send_savedata.addRow();
- // var bSucc = ds_send_savedata.copyRow(nRow, ds_grd_unpreplist, currow);
- // if( bSucc == false) utlf_addLog("ds_send_savedata.copyRow(nRow, ds_grd_unpreplist, currow) FAIL!!!");
- // ds_send_savedata.addColumn("setuseflag", "string");
- // ds_send_savedata.setColumn(nRow, "setuseflag", "dr");
- //
- //
- // var oParam = {};
- // oParam.id = "TXMRI01802";
- // oParam.service = "unprepmngtapp.ChrtUnprepMngt";
- // oParam.method = "reqSetUnPrepAlertCnts";
- // oParam.inds = "req=ds_send_savedata";
- // //oParam.outds = "ds_=unpreplist";
- // oParam.async = true;
- // oParam.callback = "cf_TXMRI01802";
- //
- // tranf_submit(oParam);
-
- }
- }
- function ds_grd_unpreplist_onrowposchanged(obj:Dataset, e:DSRowPosChangeEventInfo)
- {
- var total = ds_grd_unpreplist.rowcount;
- if(total < 1){
- return;
- }
- var currow = e.newrow;
- var medcnts = ds_grd_unpreplist.getColumn(currow , "medirecalertcnts");
- var doccnts = ds_grd_unpreplist.getColumn(currow , "dralertcnts");
-
- ds_temp_alertinfo.setColumn(0, "medcnts", medcnts);
- ds_temp_alertinfo.setColumn(0, "doccnts", doccnts);
- }
- function grd_unpreplist_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- trace(e.col);
- var objDs = this.objects[obj.binddataset];
- if( objDs.rowcount < 1 || e.col < 2) return;
-
- var curcol = e.col;
- if(sORDERBY == "desc"){
- sORDERBY = "asc";
- }else{
- sORDERBY = "desc";
- }
-
- var orderby = lf_getBindCellName(grd_unpreplist, curcol) + " " + sORDERBY;//grd_unpreplist.colAttribute(curcol, "ref") + " " + sORDERBY;
- utlf_addLog("***** grd_unpreplist_onheadclick orderby : " + orderby + " *****");
- ds_main_cond.setColumn(0, "orderby", orderby);
- var unprepsign = ds_main_cond.getColumn(0, "unprepsign");
- unprepsign = utlf_isNull(unprepsign) ? "" : unprepsign;
- fReqGetUnPrepDrClsList(unprepsign);
- }
- function grd_unpreplist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var grdDS = this.objects[obj.binddataset];
- var currow = grdDS.rowposition;
-
-
- if(e.col == obj.getBindCellIndex("body", "dralertcnts")){
- utlf_addLog("***** oncelldblclick dralertcnts *****");
- grd_unpreplist.showEditor(true); //grd_unpreplist.editCell();
- }else{
- utlf_addLog("***** oncelldblclick *****");
- //활성화된 검사결과 화면 로드
- //검사결과화면이 있는 경우 환자를 변경함
- curExamRsltObj = frmf_findPopup("SMAER00800");//getOpenWindow("SMAER00800");
-
- if(curExamRsltObj != null){
- var sPid = ds_grd_unpreplist.getColumn(currow, "pid");
-
- curExamRsltObj.ds_singdata.setColumn(0, "srchpid", sPid );
- curExamRsltObj.group3.grp_sea.btn_srch.onclick.fireEvent(curExamRsltObj.group3.grp_sea.btn_srch, new ClickEventInfo());
- }
-
- curExamRsltObj = frmf_findPopup("SMMMI00100");//getOpenWindow("SMMMI00100");
-
- if(curExamRsltObj != null){
- var sPid = ds_grd_unpreplist.getColumn(currow, "pid");
- curExamRsltObj.ds_singdata.setColumn(0, "srchpid", sPid );
- curExamRsltObj.group3.grp_sea.btn_srch.onclick.fireEvent(curExamRsltObj.group3.grp_sea.btn_srch, new ClickEventInfo());
- }
-
- //이윤주추가-20140310
-
- //열려있는 미비 상세 화면
- var MibiDetlObj = frmf_findPopup("SPMRI03800");//getOpenWindow("SPMRI03800");
-
- if(MibiDetlObj != null){
- MibiDetlObj.close();
- }
-
-
- var unprepitemcd = ds_grd_unpreplist.getColumn(currow, "unprepitemcd");
- var srcformcd = ds_grd_unpreplist.getColumn(currow, "srcformcd");
- var pid = ds_grd_unpreplist.getColumn(currow, "pid");
- var indd = ds_grd_unpreplist.getColumn(currow, "indd");
- var cretno = ds_grd_unpreplist.getColumn(currow, "cretno");
- // 2015.09.16 opener error 주석
- //var staffyn = opener.frmf_getParameter("SMMRI01800_StaffYn");
-
-
- ds_send_reqdata.clearData();
- ds_send_reqdata.addColumn("pid", "string");
- ds_send_reqdata.addColumn("indd", "string");
- ds_send_reqdata.addColumn("cretno", "string");
- ds_send_reqdata.addColumn("srcformcd", "string");
- var nRow = ds_send_reqdata.addRow();
-
- ds_send_reqdata.setColumn(nRow, "pid", pid);
- ds_send_reqdata.setColumn(nRow, "indd", indd);
- ds_send_reqdata.setColumn(nRow, "cretno", cretno);
- ds_send_reqdata.setColumn(nRow, "srcformcd", srcformcd);
-
- if (unprepitemcd == "000000002") {
-
- // create temp dataset
- dsf_createDs("ds_hidden_mibiinfo", {col: "mibicnt", type:"string", size:256});
-
- var oParam = {};
- oParam.id = "TRMRI02902";
- oParam.service = "unprepmngtapp.ChrtUnprepMngt";
- oParam.method = "reqGetUnPrepRecDetlCnt";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_hidden_mibiinfo=datainfo";
- oParam.async = false;
- oParam.callback = "cf_TRMRI02902";
- tranf_submit(oParam);
-
- var mibicnt = ds_hidden_mibiinfo.getColumn(0, "mibicnt");
- if ( mibicnt > 0 ) {
- if (6 != sysf_messageBox("전공의 미비완료후 Staff sign이 가능합니다.\n미비상세조회 확인하시기 바랍니다.\n문의:의무기록파트 본원:5232~3, 칠곡:2402~3 \n계속 진행할까요?","Q999") ) {
- return;
- }
- }
-
- if(arErrorCode.pop("TRMRI02902") > -1){
- // delete temp dataset
- dsf_deleteDs("ds_hidden_mibiinfo");
- }
- }
- //미비기록을 로드
- fLoadUnPrepRec();
- }
-
- }
- function grd_unpreplist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo)
- {
- // utlf_addLog("***** grd_unpreplist_ontextchanged *****");
- //
- // var dralertcnt = ds_grd_unpreplist.getColumn(e.row, e.col);
- // if(!utlf_isNull(dralertcnt)){
- // dsf_deleteDs("ds_send_savedata");
- // dsf_createDs("ds_send_savedata");
- // var nRow = ds_send_savedata.addRow();
- // var bSucc = ds_send_savedata.copyRow(nRow, ds_grd_unpreplist, e.row);
- // if( bSucc == false) utlf_addLog("ds_send_savedata.copyRow(nRow, ds_grd_unpreplist, currow) FAIL!!!");
- // ds_send_savedata.addColumn("setuseflag", "string");
- // ds_send_savedata.setColumn(nRow, "setuseflag", "dr");
- //
- //
- //
- // var oParam = {};
- // oParam.id = "TXMRI01802";
- // oParam.service = "unprepmngtapp.ChrtUnprepMngt";
- // oParam.method = "reqSetUnPrepAlertCnts";
- // oParam.inds = "req=ds_send_savedata";
- // //oParam.outds = "ds_=unpreplist";
- // oParam.async = true;
- // oParam.callback = "cf_TXMRI01802";
- //
- // tranf_submit(oParam);
- // }
- }
- function grd_unpreplist_onvscroll(obj:Grid, e:ScrollEventInfo)
- {
- fSubmitOnScroll();
- }
- function grd_unpreplist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- if( e.row < 0 ) return;
- oDs = this.objects[obj.binddataset];
- oDs.rowposition = e.row;
- popupmenu_menulist.trackPopup(e.screenX,e.screenY);//setPopupMenu("grd_unpreplist", false, "/root/popupmenu/menulist/item", "name", "func");
- }
- function roundrect1_ipt_unprepdrnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- ds_main_cond.setColumn(0, "unprepdrnm", roundrect1.ipt_unprepdrnm.text);
- var unprepdrnm = roundrect1.ipt_unprepdrnm.text;
-
- if(isNumber(unprepdrnm.charAt(0)) == "Y"){
- fReqGetUnPrepDrSmplList("id", unprepdrnm);
- }else{
- fReqGetUnPrepDrSmplList("nm", unprepdrnm);
-
- }
- var userinfoCnt = ds_temp_userinfo.rowcount;
- if(userinfoCnt == 0){
- sysf_messageBox("의사 정보가", "I004");
- return;
- }else if(userinfoCnt == 1){
- ds_main_cond.setColumn(0, "unprepdrid", ds_temp_userinfo.getColumn(0, "userid"));
- ds_main_cond.setColumn(0, "unprepdrnm", ds_temp_userinfo.getColumn(0, "usernm"));
- }else if(userinfoCnt > 1){
- frmf_setParameter("SPMRI02900_stnddd" , utlf_getCurrentDate());
- frmf_setParameter("SPMRI02900_orddrnm", unprepdrnm);
- frmf_modal("SPMRI02900", "SPMRI02900", null, null, null, null, null, null, null, null, null, null, "M");// 미비의사선택
- if(frmf_getParameter("SPMRI02900_useyn")=="Y"){
- var doctinfo = frmf_getParameter("SPMRI02900_rtnparam");
- utlf_addLog("***** frmf_getParameter(SPMRI02900_rtnparam) : " + doctinfo + " *****");
- doctinfo = doctinfo.split("^");
- ds_main_cond.setColumn(0, "unprepdrid", doctinfo[3]);
- ds_main_cond.setColumn(0, "unprepdrnm", doctinfo[4]);
- }
-
- }else{
- var temp_orddrid = ds_temp_unprepdrinfo.getColumn(0, "orddrid");
- var temp_orddrnm = ds_temp_unprepdrinfo.getColumn(0, "orddrnm");
- temp_orddrid = utlf_isNull(temp_orddrid) ? "" : temp_orddrid;
- temp_orddrnm = utlf_isNull(temp_orddrnm) ? "" : temp_orddrnm;
- ds_main_cond.setColumn(0, "unprepdrid", temp_orddrid);
- ds_main_cond.setColumn(0, "unprepdrnm", temp_orddrnm);
- }
- }
- }
- function roundrect1_ipt_unprepdrnm_onkillfocus(obj:Edit, e:KillFocusEventInfo)
- {
- utlf_addLog("***** roundrect1_ipt_unprepdrnm_onkillfocus *****");
-
- if(utlf_isNull(roundrect1.ipt_unprepdrnm.value)){
- ds_main_cond.setColumn(0, "unprepdrnm", "");
- ds_main_cond.setColumn(0, "unprepdrid", "");
- }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fPrntUnPrepInfo();
- }
- function roundrect1_cmb_formcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- utlf_addLog("***** roundrect1_cmb_formcd_onitemchanged e.posvalue : " + e.postvalue + " *****");
- if(e.postvalue != "-"){ //전체로 변경된 경우, 미비항목코드 조회하지 않음
- fReqGetFormItemList(e.postvalue);
- }
- }
- function roundrect1_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fStaffMibi();
- }
- function roundrect1_cmb_deptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- // 외과, 소아청소년과, 산부인과 세부 분과 활성화함.
- var orddeptcd = ds_main_cond.getColumn(0, "unprepdeptcd");
-
- if(orddeptcd == "2040000000"
- || orddeptcd == "2110000000"
- || orddeptcd == "2100000000")
- {
- roundrect1.cmb_detldept.enable = true;
-
- //미비과에 따라 미비분과 combo정보를 변경
- if(orddeptcd == "2040000000"){ //외과
- roundrect1.cmb_detldept.innerdataset = "ds_init_M0501";
- //cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0501/M0501";
- }else if(orddeptcd == "2100000000"){ //산부인과
- roundrect1.cmb_detldept.innerdataset = "ds_init_M0502";
- //cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0502/M0502";
- }else if(orddeptcd == "2110000000"){ //소아과
- roundrect1.cmb_detldept.innerdataset = "ds_init_M0503";
- //cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0503/M0503";
- }
- frmf_addComboItem("roundrect1.cmb_detldept", "전체", "ALL", "above");
- roundrect1.cmb_detldept.index = 0;
- }
- else
- {
- roundrect1.cmb_detldept.enable = false;
- }
- }
- function roundrect1_btn_req_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearchMibi();
- }
- function roundrect1_bool1_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- if(roundrect1.bool1.value == "Y"){
- roundrect1.cmb_inoutddflag.enable = true;
- roundrect1.ipt_fromdd.enable = true;
- roundrect1.ipt_todd.enable = true;
- }else{
- roundrect1.cmb_inoutddflag.enable = false;
- roundrect1.ipt_fromdd.enable = false;
- roundrect1.ipt_todd.enable = false;
- }
- }
- function roundrect1_rdo_inoutflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- var indschflag = ds_main_cond.getColumn(0, "indschflag");
-
- if(indschflag == "D"){ //퇴원미비인 경우
- ds_main_cond.setColumn(0, "dateflag", "dschdd");
-
- }else if(indschflag == "I"){ //재원미비인 경우
- ds_main_cond.setColumn(0, "dateflag", "indd");
- }else if(indschflag == "O"){ //외래미비인 경우
- ds_main_cond.setColumn(0, "dateflag", "formrecdd");
-
- }else if(indschflag == "E"){ //응급미비인 경우
- ds_main_cond.setColumn(0, "dateflag", "dschdd");
- }
- roundrect1.btn_req.enable = true;
- roundrect1.button2.enable = true;
- roundrect1.button3.enable = true;
-
- }
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- grd_unpreplist.setRealColSize(grd_unpreplist.getBindCellIndex("body", "unprepdrnm"), 95, false);
- grd_unpreplist.setRealColSize(grd_unpreplist.getBindCellIndex("body", "doctkindflag"), 58, false);
- grd_unpreplist.setRealColSize(grd_unpreplist.getBindCellIndex("body", "indd"), 75, false);
- }
- function button5_onclick(obj:Button, e:ClickEventInfo)
- {
- grd_unpreplist.setRealColSize(grd_unpreplist.getBindCellIndex("body", "unprepdrnm"), 0, false);
- grd_unpreplist.setRealColSize(grd_unpreplist.getBindCellIndex("body", "doctkindflag"), 0, false);
- grd_unpreplist.setRealColSize(grd_unpreplist.getBindCellIndex("body", "indd"), 0, false);
- }
- function roundrect1_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SMMRI00300", "SMMRI00300", null, null, null, null, null, null, null, null, null, null, "M");
- }
- function button6_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_setParameter("unprepflag", "Y");
- frmf_open("SPMRF05200", "SPMRF05200", null, null, null, null, null, null, null, null, null, null, "M");
- }
- function chk_merge_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- if(obj.value == 1) fDoMergeUnPrepDrClsList();
- else fDoUnMergeUnPrepDrClsList();
- }
- function roundrect1_button7_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_cond.setColumn(0, "deptflag", "02");
- ds_main_cond.setColumn(0, "drflag", "02");
- fSearchMibi();
-
- var e = new ClickEventInfo;
- frmf_inputEnterKey("button4", "onclick", e );//펼쳐보기
- }
- function popupmenu_menulist_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
- {
- eval(e.id + "()");
- }
- function ds_grd_unpreplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- //utlf_addLog("***** ds_grd_unpreplist_oncolumnchanged *****");
- if( e.columnid != "dralertcnts" ) return;
-
- var dralertcnt = ds_grd_unpreplist.getColumn(e.row, e.col);
-
- if(!utlf_isNull(dralertcnt)){
- dsf_deleteDs("ds_send_savedata");
- dsf_createDs("ds_send_savedata");
- dsf_copyColInfo(ds_send_savedata, ds_grd_unpreplist);
- var nRow = ds_send_savedata.addRow();
- var bSucc = ds_send_savedata.copyRow(nRow, ds_grd_unpreplist, e.row);
- utlf_addLog(ds_send_savedata.saveXML());
- if( bSucc == false) sysf_trace("ds_send_savedata.copyRow(nRow, ds_grd_unpreplist, currow) FAIL!!!");
- ds_send_savedata.addColumn("setuseflag", "string");
- ds_send_savedata.setColumn(nRow, "setuseflag", "dr");
-
- utlf_addLog(ds_send_savedata.saveXML());
- //utlf_addLog(ds_grd_unpreplist.saveXML());
- var oParam = {};
- oParam.id = "TXMRI01802";
- oParam.service = "unprepmngtapp.ChrtUnprepMngt";
- oParam.method = "reqSetUnPrepAlertCnts";
- oParam.inds = "req=ds_send_savedata";
- //oParam.outds = "ds_=unpreplist";
- oParam.async = true;
- oParam.callback = "cf_TXMRI01802";
- tranf_submit(oParam);
- }
- }
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
-
- var objExt = new ExtCommon;
- var arrChk = objExt.findRows(ds_grd_unpreplist, "chk", "1");
- if( arrChk.length == 0 || arrChk.length == undefined){
- sysf_messageBox("선택한 기록이 없습니다.", "I");
- return;
- }
-
- for(var i=0; i<arrChk.length; i++){
-
- var currow = arrChk[i];
-
- var pid = ds_grd_unpreplist.getColumn(currow, "pid");
- var indd = ds_grd_unpreplist.getColumn(currow, "indd");
- var cretno = ds_grd_unpreplist.getColumn(currow, "cretno");
- var ioflag = ds_grd_unpreplist.getColumn(currow, "ordtype");
- var formcd = ds_grd_unpreplist.getColumn(currow, "formcd");
- var srcformcd = ds_grd_unpreplist.getColumn(currow, "srcformcd");
- var orddeptcd = ds_grd_unpreplist.getColumn(currow, "orddeptcd");
- var formrecdd = ds_grd_unpreplist.getColumn(currow, "formrecdd");
- var dschdd = ds_grd_unpreplist.getColumn(currow, "dschdd");
- var formrecseq = ds_grd_unpreplist.getColumn(currow, "formrecseq");
- var oprsrvno = ds_grd_unpreplist.getColumn(currow, "oprsrvno");
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var unprepitemcd = ds_grd_unpreplist.getColumn(currow, "unprepitemcd");
- var unprepno = ds_grd_unpreplist.getColumn(currow, "unprepno");
- var opendd = ds_init_openday.getColumn("cdid"); // 병원별 오픈일
- opendd = utlf_isNull(opendd) ? "" : opendd;
- //2009-07-08 오후 8:03:43 강지훈 수정 : 20091002로 하드코딩된 내역을 공통코드 "M0546" 유형코드 "M0037" 로 관리
- var preopendd = opendd.toDate().getAddDate(-1, "D").getDateFormat();
- var preOpenMonth = preopendd.substring(4,6);
- var preOpenDay = preopendd.substring(6,8);
- //2010-01-04 이남익 수정 : 응급실미비 조회를 위한 ordertype 구분
- var ordtype = ds_grd_unpreplist.getColumn(currow, "ordtype");
- var dutplcecd = sysf_getUserInfo("dutplcecd"); //사용자부서
- // 2015.09.16 opener error 주석
- //var staffyn = opener.frmf_getParameter("SMMRI01800_StaffYn");
-
- // 인증미비만 기록 확인
- if (unprepitemcd != "000000002") {
- continue;
- }
-
- var param = "";
- if(srcformcd == "0000000676"){ // 수술기록
-
- param = "T" + "▦" + // ioflag
- pid + "▦" + // pid
- formrecdd + "▦" + // opcnfmdd
- cretno + "▦" + // cretno
- instcd + "▦" + // instcd
- "" + "▦" + // perfdeptcd
- "" + "▦" + // perfdrid
- "I" + "▦" + // patflag
- "F" + "▦" + // procflag
- oprsrvno + "▦" + // oprsrvno
- "" + "▦" + // ophistno
- dschdd; // srchdd
- }else if(srcformcd == "0000000680"){ //입퇴원요약기록
- if(ordtype!="E"){
- ordtype = "I";
- }
-
- param = ordtype + "▦" +
- pid + "▦" +
- indd + "▦" +
- cretno + "▦" +
- instcd + "▦" +
- dschdd;
- }else{
- continue;
- }
-
-
-
- //if (unprepitemcd == "000000002") {
-
- dsf_createDsRow("ds_cond_TRMRI02902", [{col: "pid", type:"string", size:256, val:pid}
- , {col: "indd", type:"string", size:256, val:indd}
- , {col: "cretno", type:"string", size:256, val:cretno}
- , {col: "srcformcd", type:"string", size:256, val:srcformcd}]);
-
- // create temp dataset
- dsf_createDs("ds_hidden_mibiinfo", {col: "mibicnt", type:"string", size:256});
-
- var oParam = {};
- oParam.id = "TRMRI02902";
- oParam.service = "unprepmngtapp.ChrtUnprepMngt";
- oParam.method = "reqGetUnPrepRecDetlCnt";
- oParam.inds = "req=ds_cond_TRMRI02902";
- oParam.outds = "ds_hidden_mibiinfo=datainfo";
- oParam.async = false;
- oParam.callback = "cf_TRMRI02902";
- tranf_submit(oParam);
-
- var mibicnt = ds_hidden_mibiinfo.getColumn(0, "mibicnt");
- if ( mibicnt > 0 ) {
- if (6 != sysf_messageBox("전공의 미비완료후 Staff sign이 가능합니다.\n미비상세조회 확인하시기 바랍니다.\n문의:의무기록파트 본원:5232~3, 칠곡:2402~3 \n계속 진행할까요?","Q999") ) {
- return;
- }
- }
- if(arErrorCode.pop("TRMRI02902") > -1){
- // delete temp dataset
- dsf_deleteDs("ds_cond_TRMRI02902");
- dsf_deleteDs("ds_hidden_mibiinfo");
- }
- //}
-
-
-
-
- if(formrecdd <= preopendd){
- sysf_messageBox(preOpenMonth+"월 "+preOpenDay+"일까지 발생된 미비기록은 구OCS프로그램과 종이에 작성", "I008");
- return;
- }
-
- //작성미비된 기록인 경우, formrecseq값을 삭제함
- if(formrecseq == -1){
- formrecseq = "";
- }
- if((srcformcd != "0000002022")){
- if(utlf_isNull(formrecseq)){
- if(unprepitemcd == "0000000057" || unprepitemcd == "000000002"){
- sysf_messageBox("기록지와 연동되지 않아 인증", "E001");
- return;
- }
- }
- }
-
- var today = utlf_getCurrentDate();
- if(dschdd > today) {
- dschdd = today;
- }
-
- var path = "";
- var objArg = new Object();
- var vFormKind = "rec";
-
- if( utlf_isNull(formrecseq) ){
- vFormKind = "new";
- indd = indd;
- }else{
- formcd = formrecseq;
- }
-
- var sID = "SSMMR01100";
- var scrnidx = "";
- var popup = application.popupframes[sID];
- if (!utlf_isNull(popup)) {
- //if(popup.name != this.getOwnerFrame().form.name != popup.form.opener.name) {
- for(var k = 0; k < application.popupframes.length; k++) {
- if(utlf_isNull(application.popupframes[sID + "_" + k])) {
- scrnidx = k;
- break;
- }
- }
- //}
- }
- dsf_createDsRow("ds_cond_formdata", [{col:"formcd", type:"STRING", size:"256", val:formcd}
- , {col:"formkind", type:"STRING", size:"256", val:vFormKind}
- , {col:"pid", type:"STRING", size:"256", val:pid}
- , {col:"orddd", type:"STRING", size:"256", val:formrecdd}
- , {col:"cretno", type:"STRING", size:"256", val:cretno}
- , {col:"btnvisible", type:"STRING", size:"256", val:true}
- , {col:"btnenable", type:"STRING", size:"256", val:""}
- , {col:"unpreprec", type:"STRING", size:"256", val:"Y"}
- , {col:"modalyn", type:"STRING", size:"256", val:"N"}
- , {col:"orddeptcd", type:"STRING", size:"256", val:orddeptcd}
- , {col:"ioflag", type:"STRING", size:"256", val:ioflag}
- , {col:"topyn", type:"STRING", size:"256", val:"N"}
- , {col:"scrnidx", type:"STRING", size:"256", val:scrnidx}
- , {col:"paminfo", type:"STRING", size:"256", val:param}
- , {col:"monitor", type:"STRING", size:"256", val:"1"}
- , {col:"left", type:"STRING", size:"256", val:"0"}
- , {col:"top", type:"STRING", size:"256", val:"0"}]);
-
- objArg.ds_cond_formdata = removeChild("ds_cond_formdata");
- // var obj = new Object();
- // obj.copyInfoDs = removeChild("ds_send");
-
- lf_loadSMMMR01100(true, objArg, path);
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|