1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SPPIJ01900" position="absolute 0 0 820 750" titletext="중증수술기간산정관리" onload="SPPIJ01900_onload">
- <Layouts>
- <Layout>
- <Div id="group3" scrollbars="autoboth" position="absolute 0 0 800 705" style="">
- <Layouts>
- <Layout>
- <Static id="caption1" class="tit_2" position="absolute 559 10 814 23" style="" text="수술일자별 기간/ 급여총액" />
- <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 553 27 791 30" style="" anchor="default" />
- <Grid id="grd_esscterm" binddataset="ds_main_list1_ownbamtlist" position="absolute 553 31 793 340" style="" oncellclick="group3_grd_esscterm_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="70" />
- <Column size="70" />
- <Column size="75" />
- </Columns>
- <Rows>
- <Row size="25" band="head" />
- <Row size="25" />
- </Rows>
- <Band id="head">
- <Cell text="시작일" />
- <Cell col="1" text="종료일" />
- <Cell col="2" text="급여총액" />
- </Band>
- <Band id="body">
- <Cell text="bind:fromdd" />
- <Cell col="1" text="bind:todd" />
- <Cell col="2" text="bind:ownbamt" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line2" class="line_1" linetype="horizontal" position="absolute 0 26 548 29" style="" anchor="default" />
- <Grid id="grd_operlist" binddataset="ds_main_list2_opcdlist" position="absolute 0 31 550 340" style="" ontextchanged="group3_grd_operlist_ontextchanged">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="60" />
- <Column size="148" />
- <Column size="71" />
- <Column size="86" />
- <Column size="78" />
- <Column size="80" />
- <Column size="60" />
- </Columns>
- <Rows>
- <Row size="25" band="head" />
- <Row size="25" />
- </Rows>
- <Band id="head">
- <Cell text="수술코드" />
- <Cell col="1" text="코드명칭" />
- <Cell col="2" text="수술일자" />
- <Cell col="3" text="적용시작일자" />
- <Cell col="4" text="적용종료일자" />
- <Cell col="5" text="급여총액" />
- <Cell col="6" text="적용여부" />
- <Cell col="7" text="" />
- </Band>
- <Band id="body">
- <Cell text="bind:snglcalcscorcd" />
- <Cell col="1" text="bind:hngnm" />
- <Cell col="2" text="bind:execdd" />
- <Cell col="3" text="bind:fromdd" />
- <Cell col="4" text="bind:todd" />
- <Cell col="5" text="bind:payamt" />
- <Cell col="6" text="bind:flag" />
- <Cell col="7" text="bind:applyop" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption2" class="tit_2" position="absolute 2 10 152 23" style="" text="수술코드 및 수술일자" />
- <Static id="caption3" class="tit_2" position="absolute 5 471 215 484" style="" text="기간별 본인부담율 적용 내역" />
- <Shape id="line3" class="line_1" linetype="horizontal" position="absolute 0 486 792 489" style="" anchor="default" />
- <Grid id="grd_appterm" binddataset="ds_hidden_list1_insulist" position="absolute 0 493 792 675" style="" ontextchanged="group3_grd_appterm_ontextchanged">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="70" />
- <Column size="60" />
- <Column size="70" />
- <Column size="70" />
- <Column size="60" />
- <Column size="87" />
- <Column size="85" />
- <Column size="85" />
- <Column size="83" />
- <Column size="60" />
- <Column size="95" />
- <Column size="100" />
- </Columns>
- <Rows>
- <Row size="25" band="head" />
- <Row size="25" />
- </Rows>
- <Band id="head">
- <Cell text="환자번호" />
- <Cell col="1" text="환자이름" />
- <Cell col="2" text="입원일자" />
- <Cell col="3" text="적용일자" />
- <Cell col="4" text="보험유형" />
- <Cell col="5" text="유형보조" />
- <Cell col="6" text="시작일자" />
- <Cell col="7" text="종료일자" />
- <Cell col="8" text="본인부담율" />
- <Cell col="9" text="instcd" />
- <Cell col="10" text="유형종료예정일" />
- <Cell col="11" text="caption1" />
- </Band>
- <Band id="body">
- <Cell text="bind:pid" />
- <Cell col="1" text="bind:hngnm" />
- <Cell col="2" text="bind:indd" />
- <Cell col="3" text="bind:appdd" />
- <Cell col="4" text="bind:insukind" />
- <Cell col="5" text="bind:col01" />
- <Cell col="6" text="bind:fromdd" />
- <Cell col="7" text="bind:todd" />
- <Cell col="8" text="bind:ownbrate" />
- <Cell col="9" text="bind:instcd" />
- <Cell col="10" text="bind:opertodd" />
- <Cell col="11" text="bind:cretno" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_insulist" binddataset="ds_main_list3_insulist" position="absolute 0 381 792 465" style="">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="70" />
- <Column size="60" />
- <Column size="70" />
- <Column size="70" />
- <Column size="60" />
- <Column size="60" />
- <Column size="85" />
- <Column size="85" />
- <Column size="83" />
- <Column size="60" />
- <Column size="95" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- </Columns>
- <Rows>
- <Row size="25" band="head" />
- <Row size="25" />
- </Rows>
- <Band id="head">
- <Cell text="환자번호" />
- <Cell col="1" text="환자이름" />
- <Cell col="2" text="입원일자" />
- <Cell col="3" text="적용일자" />
- <Cell col="4" text="보험유형" />
- <Cell col="5" text="유형보조" />
- <Cell col="6" text="시작일자" />
- <Cell col="7" text="종료일자" />
- <Cell col="8" text="본인부담율" />
- <Cell col="9" text="instcd" />
- <Cell col="10" text="유형종료예정일" />
- <Cell col="11" text="청구여부" />
- <Cell col="12" text="seqno" />
- <Cell col="13" text="mskind" />
- <Cell col="14" text="cretno" />
- </Band>
- <Band id="body">
- <Cell text="bind:pid" />
- <Cell col="1" text="bind:hngnm" />
- <Cell col="2" text="bind:indd" />
- <Cell col="3" text="bind:appdd" />
- <Cell col="4" text="bind:insukind" />
- <Cell col="5" text="bind:suppkind" />
- <Cell col="6" text="bind:fromdd" />
- <Cell col="7" text="bind:todd" />
- <Cell col="8" text="bind:ownbrate" />
- <Cell col="9" text="bind:instcd" />
- <Cell col="10" text="bind:opertodd" />
- <Cell col="11" text="bind:clamflag" />
- <Cell col="12" text="bind:seqno" />
- <Cell col="13" text="bind:mskind" />
- <Cell col="14" text="bind:cretno" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption4" class="tit_2" position="absolute 5 361 170 374" style="" text="현재보험정보" />
- <Shape id="line4" class="line_1" linetype="horizontal" position="absolute 0 376 792 379" style="" anchor="default" />
- <Shape id="roundrect1" anchor="default" class="roundrect_example" type="roundrectangle" position="absolute 554 351 792 374" style="" />
- <Calendar id="ipt_pid" class="input_default" position="absolute 648 353 739 372" style="" anchor="default" />
- <Static id="caption5" position="absolute 557 356 646 371" style="font:,8,8pt;" text="유형종료예정일 :" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="group1" position="absolute 0 709 800 736" style="">
- <Layouts>
- <Layout>
- <Button id="btn_apply" class="btn4_letter2" position="absolute 676 5 732 27" style="" text="확정" onclick="group1_btn_apply_onclick" />
- <Button id="button2" class="btn4_letter2" position="absolute 736 5 792 27" style="" text="닫기" onclick="group1_button2_onclick" />
- <Shape id="line32" class="line_6" linetype="horizontal" position="absolute 0 0 799 3" style="" anchor="default" />
- <Button id="btn_opapply" class="btn4_letter4" position="absolute 593 5 673 27" style="" text="기간적용" onclick="group1_btn_opapply_onclick" />
- <Button id="btn_iphsrebuild" class="btn4_letter4" position="absolute 510 5 590 27" style="" text="유형복원" onclick="group1_btn_iphsrebuild_onclick" />
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_save" class="btn5_letter2" position="absolute 747 353 789 372" style="" text="저장" onclick="btn_save_onclick" />
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_list3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_list2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_list5" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_list4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pmbminsu" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pmbminsu"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_list5" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_hidden_list4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" />
- <Column id="mskind" type="STRING" size="256" />
- <Column id="calcbasedd" type="STRING" size="256" />
- <Column id="instcd" type="STRING" size="256" />
- <Column id="cretno" type="STRING" size="256" />
- <Column id="indd" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"></Col>
- <Col id="mskind"></Col>
- <Col id="calcbasedd"></Col>
- <Col id="instcd"></Col>
- <Col id="cretno"></Col>
- <Col id="indd"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_list1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_hidden_list3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="opcdlist" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="opcdlist"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_list2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="rslt" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_list1_insulist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" />
- <Column id="hngnm" type="STRING" size="256" />
- <Column id="indd" type="STRING" size="256" />
- <Column id="appdd" type="STRING" size="256" />
- <Column id="insukind" type="STRING" size="256" />
- <Column id="col01" type="STRING" size="256" />
- <Column id="fromdd" type="STRING" size="256" />
- <Column id="todd" type="STRING" size="256" />
- <Column id="ownbrate" type="STRING" size="256" />
- <Column id="instcd" type="STRING" size="256" />
- <Column id="opertodd" type="STRING" size="256" />
- <Column id="mskind" type="STRING" size="256" />
- <Column id="cretno" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"></Col>
- <Col id="hngnm"></Col>
- <Col id="indd"></Col>
- <Col id="appdd"></Col>
- <Col id="insukind"></Col>
- <Col id="col01"></Col>
- <Col id="fromdd"></Col>
- <Col id="todd"></Col>
- <Col id="ownbrate"></Col>
- <Col id="instcd"></Col>
- <Col id="opertodd"></Col>
- <Col id="mskind"></Col>
- <Col id="cretno"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_newoperddsend" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="newoperdd" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="newoperdd"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_hidden_list5_kindlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256" />
- <Column id="todd" type="STRING" size="256" />
- <Column id="suppkind" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"></Col>
- <Col id="todd"></Col>
- <Col id="suppkind"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="temp" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_uptoperdd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" />
- <Column id="indd" type="STRING" size="256" />
- <Column id="cretno" type="STRING" size="256" />
- <Column id="instcd" type="STRING" size="256" />
- <Column id="insukind" type="STRING" size="256" />
- <Column id="suppkind" type="STRING" size="256" />
- <Column id="fromdd" type="STRING" size="256" />
- <Column id="todd" type="STRING" size="256" />
- <Column id="mskind" type="STRING" size="256" />
- <Column id="newoperdd" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"></Col>
- <Col id="indd"></Col>
- <Col id="cretno"></Col>
- <Col id="instcd"></Col>
- <Col id="insukind"></Col>
- <Col id="suppkind"></Col>
- <Col id="fromdd"></Col>
- <Col id="todd"></Col>
- <Col id="mskind"></Col>
- <Col id="newoperdd"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list5_payamtperday" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="execdd" type="STRING" size="256" />
- <Column id="payamt" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="execdd"></Col>
- <Col id="payamt"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_list2_insulist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="iphs_status" type="STRING" size="256" />
- <Column id="iphs_pid" type="STRING" size="256" />
- <Column id="iphs_indd" type="STRING" size="256" />
- <Column id="iphs_cretno" type="STRING" size="256" />
- <Column id="iphs_mskind" type="STRING" size="256" />
- <Column id="iphs_fromdd" type="STRING" size="256" />
- <Column id="iphs_seqno" type="STRING" size="256" />
- <Column id="iphs_todd" type="STRING" size="256" />
- <Column id="iphs_instcd" type="STRING" size="256" />
- <Column id="iphs_insukind" type="STRING" size="256" />
- <Column id="iphs_suppkind" type="STRING" size="256" />
- <Column id="iphs_opertodd" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="iphs_status"></Col>
- <Col id="iphs_pid"></Col>
- <Col id="iphs_indd"></Col>
- <Col id="iphs_cretno"></Col>
- <Col id="iphs_mskind"></Col>
- <Col id="iphs_fromdd"></Col>
- <Col id="iphs_seqno"></Col>
- <Col id="iphs_todd"></Col>
- <Col id="iphs_instcd"></Col>
- <Col id="iphs_insukind"></Col>
- <Col id="iphs_suppkind"></Col>
- <Col id="iphs_opertodd"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list3_insulist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" />
- <Column id="hngnm" type="STRING" size="256" />
- <Column id="indd" type="STRING" size="256" />
- <Column id="appdd" type="STRING" size="256" />
- <Column id="insukind" type="STRING" size="256" />
- <Column id="suppkind" type="STRING" size="256" />
- <Column id="fromdd" type="STRING" size="256" />
- <Column id="todd" type="STRING" size="256" />
- <Column id="ownbrate" type="STRING" size="256" />
- <Column id="instcd" type="STRING" size="256" />
- <Column id="opertodd" type="STRING" size="256" />
- <Column id="clamflag" type="STRING" size="256" />
- <Column id="seqno" type="STRING" size="256" />
- <Column id="mskind" type="STRING" size="256" />
- <Column id="cretno" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"></Col>
- <Col id="hngnm"></Col>
- <Col id="indd"></Col>
- <Col id="appdd"></Col>
- <Col id="insukind"></Col>
- <Col id="suppkind"></Col>
- <Col id="fromdd"></Col>
- <Col id="todd"></Col>
- <Col id="ownbrate"></Col>
- <Col id="instcd"></Col>
- <Col id="opertodd"></Col>
- <Col id="clamflag"></Col>
- <Col id="seqno"></Col>
- <Col id="mskind"></Col>
- <Col id="cretno"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" />
- <Column id="indd" type="STRING" size="256" />
- <Column id="cretno" type="STRING" size="256" />
- <Column id="mskind" type="STRING" size="256" />
- <Column id="instcd" type="STRING" size="256" />
- <Column id="vcode" type="STRING" size="256" />
- <Column id="brateflag" type="STRING" size="256" />
- <Column id="brthdd" type="STRING" size="256" />
- <Column id="saveyn" type="STRING" size="256" />
- <Column id="ownbrate" type="STRING" size="256" />
- <Column id="cfe" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"></Col>
- <Col id="indd"></Col>
- <Col id="cretno"></Col>
- <Col id="mskind"></Col>
- <Col id="instcd"></Col>
- <Col id="vcode"></Col>
- <Col id="brateflag"></Col>
- <Col id="brthdd"></Col>
- <Col id="saveyn"></Col>
- <Col id="ownbrate"></Col>
- <Col id="cfe"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list2_opcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="snglcalcscorcd" type="STRING" size="256" />
- <Column id="hngnm" type="STRING" size="256" />
- <Column id="execdd" type="STRING" size="256" />
- <Column id="fromdd" type="STRING" size="256" />
- <Column id="todd" type="STRING" size="256" />
- <Column id="payamt" type="STRING" size="256" />
- <Column id="flag" type="STRING" size="256" />
- <Column id="applyop" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="snglcalcscorcd"></Col>
- <Col id="hngnm"></Col>
- <Col id="execdd"></Col>
- <Col id="fromdd"></Col>
- <Col id="todd"></Col>
- <Col id="payamt"></Col>
- <Col id="flag"></Col>
- <Col id="applyop"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" />
- <Column id="indd" type="STRING" size="256" />
- <Column id="cretno" type="STRING" size="256" />
- <Column id="mskind" type="STRING" size="256" />
- <Column id="brateflag" type="STRING" size="256" />
- <Column id="brthdd" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"></Col>
- <Col id="indd"></Col>
- <Col id="cretno"></Col>
- <Col id="mskind"></Col>
- <Col id="brateflag"></Col>
- <Col id="brthdd"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_newoperddresult" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_list1_ownbamtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256" />
- <Column id="todd" type="STRING" size="256" />
- <Column id="ownbamt" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"></Col>
- <Col id="todd"></Col>
- <Col id="ownbamt"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_newoperddresult_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="inpt_count" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_list1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.ipt_pid" propid="value" datasetid="ds_hidden_newoperddsend" columnid="newoperdd" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[function SPPIJ01900_onload(obj:Form, e:LoadEventInfo) {
- // [자연분만, 중증질환 기간산정 유형변경 처리유형]
- //
- // 1. 한개의 유형 30일 안넘은 경우
- // (AS-IS의경우 처음부터 기간을 미리 적용해놓음)
- // => (넘겨줄파라미터)
- // iphs key , insukind, suppkind, fromdd, todd
- // 예) 입원일 : 20070101, 현재일자 :20070115
- // =>파라미터 :Fromdd : 20070101, Todd : 20070130
- // insukind : 11, suppkind : 05
- // => 결과 : 20070101-20070130 (11:05)
- // 20070131-99991231 (11:00)
- // 2개 발생되어야함.
- //
- // 2. 한개의 유형 30일 초과의 경우 중간에 끊는경우
- // => (넘겨줄파라미터)
- // iphs key , insukind, suppkind, fromdd, todd
- // 예) 입월일 :20070101, 현재일자 20070331
- // =>파라미터 :Fromdd : 20070131, Todd : 20070228
- // insukind : 11, suppkind : 05
- // => 결과 : 20070101-20070130 (11:00)
- // 20070131-20070228 (11:05)
- // 20070301-99991231 (11:00)
- // 3개 발생되어야함.
- //
- // 3. 유형이 두개(11, 22) 존재하고 기간을 걸쳐서 중증일자를 적용하는경우
- // => (넘겨줄파라미터) : 유형별로 각각 호출한다.
- // iphs key , insukind, suppkind, fromdd, todd
- // 예)입원일자 :20070101, 현재일자 20070501
- // 유형별 기간 11:00 => 20070101- 20070331
- // 22:00 => 20070401 - 99991231
- // 이상태에서 중증기간을 20070315 - 20070413 으로 적용할경우
- // 첫번째 호출 :
- // =>파라미터 :Fromdd : 20070315, Todd : 20070331
- // insukind : 11, suppkind : 05
- // => 결과 : 20070101-20070315 (11:00)
- // 20070316-20070331 (11:05)
- // 2개 발생되어야함.
- // 두번째 호출 :
- // =>파라미터 :Fromdd : 20070315, Todd : 20070331
- // insukind : 22, suppkind : 05
- // => 결과 : 20070401-20070413 (22:05)
- // 20070414-99991231 (22:00)
- // 2개 발생되어야함.
- // fInitialize();
- }
- function SPPIJ01900_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fInitialize();
- }
- include '../../.._com_commonweb_js_common.js'
- include '../../.._com_commonweb_js_numericHelper.js'
- include '../../.._com_commonweb_js_dateHelper.js'
- include '../../.._com_commonweb_js_stringHelper.js'
- include '../../.._com_commonweb_js_tfHelper.js'
- include '../../.._com_basiccodeweb_js_ZBC001.js'
- include '../../.._pam_pamcomnweb_js_PAM.js'
- // 화면 open시(와 초기화 버튼 클릭시) 화면 초기화 기능을 수행한다.
- function fInitialize() {
- ds_main.clearData();
- //ds_hidden.clearData();
- // 심사마감이나 퇴원이 되었을때는 조작을 할 수 없게 한다. - 20080924 박창원
- var saveyn = ds_send_cond.getColumn(0, "saveyn");
- if (saveyn == "Y") {
- sysf_messageBox("마감이나 퇴원, 중간청구,부적절한 유형적용,읽기전용 모드 상태입니다. 조작은 할 수","E001");
- group1.btn_iphsrebuild.enable = false;
- group1.btn_opapply.enable = false;
- group1.btn_apply.enable = false;
- }
- // if (submit("TRPIJ01901")) {
- var oParam = {};
- oParam.id = "TRPIJ01901";
- oParam.service = "bfjudgapp.SerDiagOpTermEstm";
- oParam.method = "reqGetEssc";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=opcdlist ds_=insulist ds_=pmbminsu ds_=payamtperday";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ01901";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ01901(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ01901(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ01901") > -1
- arErrorCode.pop("TRPIJ01901") < 0
- */
- //var opcdcnt = ds_main_list2_opcdlist.rowcount;
- var opcdcnt = ds_main_list2_opcdlist.rowcount;
- var todd = "";
- opcdcnt = parseInt(opcdcnt);
- // 수술기간을 판단하여 금액을 산정한다.
- fOpPeriodAmt();
- // 첫번째 수술의 가장 많은 금액의 기간을 첫번째 수술의 기본적인 적용 시작일, 종료일로 해준다.
- group3.grd_esscterm.colSort(group3.grd_esscterm.colRef("ownbamt"))="desc";
- group3.grd_esscterm.sort(1, 1, group3.grd_esscterm.rows, 3)="usersort";
- group3.grd_esscterm.gridToInstance();
- //model.refresh();
- ds_main_list2.setColumn( 0, "opcdlist[1]_fromdd", ds_main_list1_ownbamtlist.getColumn(1, "fromdd"));
- ds_main_list2.setColumn( 0, "opcdlist[1]_todd", ds_main_list1_ownbamtlist.getColumn(1, "todd"));
- // 첫번째 수술에 급여총액 산출
- ds_main_list2.setColumn( 0, "opcdlist[1]_payamt", ds_main_list1_ownbamtlist.getColumn(1, "ownbamt"));
- group3.grd_esscterm.colsort(1)="asc";
- group3.grd_esscterm.sort(1, 1, group3.grd_esscterm.rows, 3)="usersort";
- group3.grd_esscterm.gridToInstance();
- //model.refresh();
- if (opcdcnt > 1) {
- // 두번째 수술부터는 수술일로 부터 일괄적으로 30일을 적용한다.
- for (i=2;i<=opcdcnt;i++) {
- var execdd = ds_main_list2_opcdlist.getColumn(i, "execdd");
- // 첫번째 수술과 수술일이 같은 경우는 날짜를 동일하게 맞춰준다. - 20090326 박창원
- var fstexecdd = ds_main_list2_opcdlist.getColumn(1, "execdd");
- if (execdd == fstexecdd) {
- ds_main_list2.setColumn( i , "fromdd", ds_main_list2_opcdlist.getColumn(1, "fromdd"));
- ds_main_list2.setColumn( i , "todd", ds_main_list2_opcdlist.getColumn(1, "todd"));
- }else {
- ds_main_list2.setColumn( i , "fromdd", execdd);
- thisYear = execdd.substring(0,4); // 현재 입력된 연
- thisMonth = execdd.substring(4,6); // 현재 입력된 월
- thisDay = execdd.substring(6,8); // 현재 입력된 일
- nextDate = new Date(thisYear, (thisMonth - 1), thisDay );
- nextDate.setDate(nextDate.getDate() + 29); // 30일 뒤인 다음날 날짜를 구한다.
- todd = "";
- todd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- todd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- todd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- todd += "0" + nextDate.getDate();
- } else {
- todd += nextDate.getDate();
- }
- ds_main_list2.setColumn( i , "todd", todd);
- }
- ds_main_list2.setColumn( i , "flag", "Y");
- // model.makeNode("ds_main_list2_opcdlist[" + i + "]_hfromdd");
- // ds_main_list2.setColumn( i , "hfromdd", execdd);
- // 급여금액 계산
- // fCalcPayment(i,execdd,todd);
- //
- //model.refresh();
- }
- for (j=2;j<=opcdcnt;j++) {
- var row = j;
- var payexecdd = ds_main_list2_opcdlist.getColumn(j, "fromdd");
- var paytodd = ds_main_list2_opcdlist.getColumn(j, "todd");
- fCalcPayment(row,payexecdd,paytodd);
- }
- //model.refresh();
- }
- //submit("TRPIJ01903"); // 입원일부터 일자별로 급여 총액을 가져온다. 20080728 박창원
- //model.refresh();
- }
- }
- // 수술기간을 판단하여 첫번째 수술의 금액을 산정하여 디스플레이한다. - 20080729 박창원
- function fOpPeriodAmt() {
- var sum_fromdd = new Array();
- var sum_todd = new Array();
- var sum_payamt = new Array();
- var opdd = new Array();
- var lowstartdd;
- var maxstartdd;
- var fromdd;
- var todd;
- var payamtsum = 0;
- var payamt = 0;
- var cnt = 0;
- var opcnt = 0;
- var indd = ds_send_cond.getColumn(0, "indd");
- // 수술일자를 setting
- for(i=1; i<=group3.grd_operlist.rows; i++) {
- opdd[i] = ds_main_list2_opcdlist.getColumn(i, "execdd");
- }
- // 무조건 오른쪽 리스트는 제1수술만 보여준다.
- // maxstartdd는 무조건 수술일
- maxstartdd = opdd[1];
- // 수술일과 입원일의 차이를 계산해서 29일 이내 이면 입원일이 lowstartdd이다.
- var interval = utlf_getDateInterval(indd,opdd[1]);
- if (interval < "29") {
- lowstartdd = indd;
- }
- else { // 29일 이내가 아니면 수술일로 부터 29일전이 lowstartdd이다.
- var tempdd;
- tempdd = opdd[1].toDate("YYYYMMDD");
- tempdd = tempdd.getAddDate(-29);
- lowstartdd = tempdd.getDateFormat();
- }
- //
- // 나눠진 lowstartdd, MaxStart기준으로 금액을 산정하여 합한다.
- for(i=1; i < 31;i++) {
- fromdd = lowstartdd;
- basedd = fromdd;
- // todd는 시작일로부터 29일을 더한다.
- todd = fromdd.toDate("YYYYMMDD");
- todd = todd.getAddDate(29);
- todd = todd.getDateFormat();
- // 금액을 합한다.
- for(j=1; j<31; j++) {
- payamt = model.getValue("ds_main_list5_payamtperday[execdd = " + basedd + "]_payamt");
- if (payamt == "") {
- payamt = 0;
- }
- if (isNaN(payamt) != true) {
- payamt = parseInt(payamt);
- payamtsum = payamtsum + payamt;
- }
- // basedd를 증가시킨다(하루씩)
- basedd = basedd.toDate("YYYYMMDD");
- basedd = basedd.getAddDate(1);
- basedd = basedd.getDateFormat();
- // basedd가 todd보다 클경우 빠져나간다.
- if (basedd > todd) {
- continue;
- }
- }
- // lowstartdd가 opdd보다 클경우 빠져나간다.
- if (fromdd > opdd[1]) {
- continue;
- }
- // 한 사이클의 시작종료에 대한 금액의 sum을 저장
- sum_fromdd[i] = fromdd;
- sum_todd[i] = todd;
- sum_payamt[i] = payamtsum;
- payamtsum = 0;
- cnt = cnt + 1;
- // lowstartdd를 증가시킨다(하루씩)
- lowstartdd = lowstartdd.toDate("YYYYMMDD");
- lowstartdd = lowstartdd.getAddDate(1);
- lowstartdd = lowstartdd.getDateFormat();
- }
- ds_main_list1_ownbmtlist.clearData();
- for (i=1;i<cnt + 1;i++) {
- ds_main_list1_ownbamtlist.setColumn( i, "fromdd", sum_fromdd[i]);
- ds_main_list1_ownbamtlist.setColumn( i, "todd", sum_todd[i]);
- ds_main_list1_ownbamtlist.setColumn( i, "ownbamt", sum_payamt[i]);
- }
- /* // 수술이 두개일경우
- else if (group3.grd_operlist.rows == 3) {
- // 두수술의 날짜가 30일 이상나는지 판단함
- // 첫번째 수술일과 두번째 수술일의 차이를 계산
- var interval = utlf_getDateInterval(opdd[2],opdd[1]);
- // 첫번째 수술일과 입원일의 차이를 계산
- var interval1 = utlf_getDateInterval(opdd[1],indd);
- // 두번째 수술일과 입원일의 차이를 계산
- var interval2 = utlf_getDateInterval(opdd[2],indd);
- // 명백하게 기간이 겹치기 때문에 합쳐야 되는 경우
- if (interval < "29" && interval1 < "29" && interval2 < "30") {
- fromdd = indd; // 시작일은 입원일이 된다.
- basedd = fromdd;
- // todd는 마지막수술일 + 29
- var lastopdd = opdd[2].toDate("YYYYMMDD");
- todd = lastopdd.getAddDate(29);
- todd = todd.getDateFormat();
- var period = utlf_getDateInterval(todd,fromdd);
- // 시작일 부터 종료일 까지 금액 함산
- for (i = 1; i<period; i++) {
- basedd = fromdd;
- payamt = model.getValue("ds_main_list5_payamtperday[execdd = " + basedd + "]_payamt");
- if (payamt == "") {
- payamt = 0;
- }
- if (isNaN(payamt) != true) {
- payamt = parseInt(payamt);
- payamtsum = payamtsum + payamt;
- }
- // basedd를 증가시킨다(하루씩)
- basedd = basedd.toDate("YYYYMMDD");
- basedd = basedd.getAddDate(1);
- basedd = basedd.getDateFormat();
- // 한 사이클의 시작종료에 대한 금액의 sum을 저장
- sum_fromdd[i] = fromdd;
- sum_todd[i] = todd;
- sum_payamt[i] = payamtsum;
- payamtsum = 0;
- cnt = cnt + 1;
- } // for i
- ds_main_list1_ownbmtlist.clearData();
- for (i=1;i<cnt + 1;i++) {
- ds_main_list1_ownbamtlist.setColumn( i, "fromdd", sum_fromdd[i]);
- ds_main_list1_ownbamtlist.setColumn( i, "todd", sum_todd[i]);
- ds_main_list1_ownbamtlist.setColumn( i, "ownbamt", sum_payamt[i]);
- }
- } // if (interval < "29" && interval1 < "29" && interval2 < "30")
- } // else if (group3.grd_operlist.rows == 2) */
- //model.refresh();
- }
- // fromdd와 todd에 다른 급여 총액을 계산해서 수술코드 및 일자에 디스플레이
- function fCalcPayment(inptrow,fromdd,todd) {
- var row = inptrow;
- // 날짜에 따른 금액을 산정한다
- var payment = 0;
- var payfromdd = fromdd;
- var paytodd = todd;
- // 시작일과 종료일간의 차를 구함
- var period = utlf_getDateInterval(payfromdd, paytodd);
- // 시작일부터 종료일까지 금액산정
- for (i=1; i <= period + 1; i++) {
- var payexecdd = model.getValue("ds_main_list5_payamtperday[execdd =" + payfromdd + "]_payamt");
- if (payexecdd == "") {
- payexecdd = 0;
- }
- if (isNaN(payexecdd) != true) {
- payexecdd = parseInt(payexecdd);
- payment = payment + payexecdd;
- }
- // payfromdd 를 증가시킨다(하루씩)
- payfromdd = payfromdd.toDate("YYYYMMDD");
- payfromdd = payfromdd.getAddDate(1);
- payfromdd = payfromdd.getDateFormat();
- // payfromdd가 todd보다 클경우 빠져나간다.
- if (payfromdd > paytodd) {
- continue;
- }
- } //for i
- ds_main_list2.setColumn( row , "payamt", payment);
- }
- //유형적용 완료후 소급처리 한다.
- function fReCalc() {
- // 입원일 부터 현재까지 계산한다(일일단위로 loop)
- var fromdd = ds_send_cond.getColumn(0, "indd");
- var curdd = utlf_getCurrentDate();
- var period = utlf_getDateInterval(fromdd, curdd);
- // fromdd부터 currentdate까지 loop
- for (i=1; i<= period + 1; i++) {
- dsf_makeValue( ds_hidden_list4_insulist, "pid", "string", "" );
- dsf_makeValue( ds_hidden_list4_insulist, "indd", "string", "" );
- dsf_makeValue( ds_hidden_list4_insulist, "mskind", "string", "" );
- dsf_makeValue( ds_hidden_list4_insulist, "calcbasedd", "string", "" );
- dsf_makeValue( ds_hidden_list4_insulist, "cretno", "string", "" );
- ds_hidden_list4_insulist.setColumn( 0, "pid", ds_send_cond.getColumn(0, "pid"));
- ds_hidden_list4_insulist.setColumn( 0, "indd", ds_send_cond.getColumn(0, "indd"));
- ds_hidden_list4_insulist.setColumn( 0, "mskind", ds_send_cond.getColumn(0, "mskind"));
- ds_hidden_list4_insulist.setColumn( 0, "cretno", ds_send_cond.getColumn(0, "cretno"));
- ds_hidden_list4_insulist.setColumn( 0, "calcbasedd", fromdd);
- // submit("TXPIJ00205");
- var oParam = {};
- oParam.id = "TXPIJ00205";
- oParam.service = "bfjudgapp.InHospJudgTrgtMan";
- oParam.method = "reqInCalculation";
- oParam.inds = "req=ds_";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPIJ00205";
- tranf_submit(oParam);
- /*
- function cf_TXPIJ00205(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPIJ00205(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPIJ00205") > -1
- arErrorCode.pop("TXPIJ00205") < 0
- */
- // fromdd를 증가시킨다(하루씩)
- fromdd = fromdd.toDate("YYYYMMDD");
- fromdd = fromdd.getAddDate(1);
- fromdd = fromdd.getDateFormat();
- }
- }
- function group3_grd_esscterm_oncellclick(obj:Grid, e:GridClickEventInfo) {
- var torow = group3.grd_operlist.row;
- var fromrow = group3.grd_esscterm.row;
- if (group3.grd_esscterm.isCell(event.target) && group3.grd_esscterm.row >= group3.grd_esscterm.fixedRows) {
- if ( group3.grd_operlist.row >= group3.grd_operlist.fixedRows) {
- var execdd = ds_main_list2_opcdlist.getColumn(torow, "execdd"));
- var fromdd = ds_main_list1_ownbamtlist.getColumn(fromrow, "fromdd"));
- var todd = ds_main_list1_ownbamtlist.getColumn(fromrow, "todd"));
- ds_main_list2.setColumn( torow , "fromdd",ds_main_list1_ownbamtlist.getColumn(fromrow, "fromdd")));
- ds_main_list2.setColumn( torow , "todd",ds_main_list1_ownbamtlist.getColumn(fromrow, "todd")));
- ds_main_list2.setColumn( torow , "flag","Y");
- }
- }
- //model.refresh();
- }
- function group3_grd_operlist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
- var row = group3.grd_operlist.row;
- var col = group3.grd_operlist.col;
- var indd = ds_send_cond.getColumn(0, "indd");
- var fromdd = ds_main_list2_opcdlist.getColumn(row, "fromdd"));
- var todd = ds_main_list2_opcdlist.getColumn(row, "todd"));
- var chkopdd = ds_main_list2_opcdlist.getColumn(row, "execdd"));
- var chktodd = ds_main_list2_opcdlist.getColumn(row, "fromdd"));
- var applyop = ds_main_list2_opcdlist.getColumn(row, "applyop"));
- // 이미 적용된 날짜와 기간이 겹치지 않게 하기 위해 20080915 박창원
- var maxv191192todd = "";
- var maxclamtodd = "";
- var oprows = group3.grd_operlist.rows;
- for(i=1; i < oprows; i++) {
- if(ds_main_list2_opcdlist.getColumn(i, "applyop") == "Y") {
- maxv191192todd = ds_main_list2_opcdlist.getColumn(i, "todd");
- }
- }
- chktodd = chktodd.toDate("YYYYMMDD");
- chktodd = chktodd.getAddDate(29);
- chktodd = chktodd.getDateFormat();
- // 이미 적용되어잇는 보조유형의 날자를 지정하면 알럿 20080915 박창원
- if(applyop == "Y") {
- sysf_messageBox("이미 유형적용이 된 수술입니다. 유형복원 후 처리","I006");
- todd = todd.toDate("YYYYMMDD");
- todd = todd.getAddDate(-29);
- fromdd = todd.getDateFormat();
- ds_main_list2.setColumn( row , "fromdd", fromdd);
- return;
- }
- // 이미적용되어있는 보조유형의 날짜를 침범하면 error 20080915 박창원
- if (fromdd < maxv191192todd) {
- sysf_messageBox("이미 적용되어있는 수술기간과 겹치게 선택","E001");
- todd = todd.toDate("YYYYMMDD");
- todd = todd.getAddDate(-29);
- fromdd = todd.getDateFormat();
- ds_main_list2.setColumn( row , "fromdd", fromdd);
- return;
- }
- // 적용시작일자가 입원일보다 작으면 ERROR
- if (fromdd < indd) {
- sysf_messageBox("적용시작일을 입원일 이전으로 선택","E001");
- todd = todd.toDate("YYYYMMDD");
- todd = todd.getAddDate(-29);
- fromdd = todd.getDateFormat();
- ds_main_list2.setColumn( row , "fromdd", fromdd);
- return;
- } else if((fromdd > chkopdd) || (chktodd < chkopdd)) { // 수술일자는 적용기간내에 있어야 한다.
- sysf_messageBox("적용기간은 수술일을 제외하여 선택","E001");
- todd = todd.toDate("YYYYMMDD");
- todd = todd.getAddDate(-29);
- fromdd = todd.getDateFormat();
- ds_main_list2.setColumn( row , "fromdd", fromdd);
- return;
- }
- var beforefromdd = "";
- var todd = "";
- if (row > 1) {
- var beforerow = eval(row) - 1;
- var beforefromdd = ds_main_list2_opcdlist.getColumn(beforerow, "fromdd"));
- if (beforefromdd > fromdd) {
- sysf_messageBox("이전 수술에 대한 적용시작일자 보다 이전일 적용시작일자로 선택","E001");
- ds_main_list2.setColumn( row , "fromdd", ds_main_list2_opcdlist.getColumn(row, "hfromdd")));
- return;
- }
- }
- if (row >= 1) {
- thisYear = fromdd.substring(0,4); // 현재 입력된 연
- thisMonth = fromdd.substring(4,6); // 현재 입력된 월
- thisDay = fromdd.substring(6,8); // 현재 입력된 일
- nextDate = new Date(thisYear, (thisMonth - 1), thisDay );
- nextDate.setDate(nextDate.getDate() + 29); // 30일 뒤인 다음날 날짜를 구한다.
- todd = "";
- todd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- todd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- todd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- todd += "0" + nextDate.getDate();
- } else {
- todd += nextDate.getDate();
- }
- ds_main_list2.setColumn( row , "fromdd", fromdd);
- ds_main_list2.setColumn( row , "todd", todd);
- ds_main_list2.setColumn( row , "flag", "Y");
- }
- // 날짜에 따른 금액을 산정한다
- if (col == group3.grd_operlist.colRef("fromdd")) {
- fCalcPayment(row,fromdd,todd);
- } // if (col == group3.grd_operlist.colRef("fromdd"))
- //model.refresh();
- }
- function group3_grd_appterm_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
- var row = group3.grd_appterm.row;
- var insukind = ds_hidden_list1_insulist.getColumn(row, "insukind"));
- for (var i=1; i<group3.grd_appterm.rows; i++) {
- group3.grd_appterm.cellComboNodeset(i,6) = "ds_main_list4_pmbminsu[insukind = '"+insukind+"']";
- }
- }
- function group1_btn_apply_onclick(obj:Button, e:ClickEventInfo) {
- // for(i = 0; i < group3.grd_insulist.rows; i++){
- // var chk = ds_main_list3_insulist.getColumn(i, "suppkind");
- // if(chk == "05"){
- // sysf_messageBox("이미 적용된 중증기간이 있습니다. 원무팀에 연락하여 변경처리 전에는 작업 ","E001");
- // return;
- // }
- // }
- // 자료수집이 되었거나 이미 적용이된 수술유형의 경우를 판별해서 해당 유형의 종료일 + 1을 소급계산의 시작일로 하여야 하고
- // 유형변경시에도 제외되어야 한다(자료수집이나 중증 수술 유형적용이 된 환자는 입원일로 부터 소급계산) 20080915 박창원
- var chkv191192 = "N";
- var chkclam = "N";
- var maxv191192todd = "19000101";
- var maxclamtodd = "19000101";
- var maxdate;
- var insurows = group3.grd_insulist.rows;
- for(i=1; i < insurows; i++) {
- if(ds_main_list3_insulist.getColumn(i, "clamflag") == "Y") {
- maxclamtodd = ds_main_list3_insulist.getColumn(i, "todd");
- }
- // 20090325 차상위 2종 적용 - 박창원
- if((ds_main_list3_insulist.getColumn(i, "suppkind") == "05") || (ds_main_list3_insulist.getColumn(i, "suppkind") == "39")){
- maxv191192todd = ds_main_list3_insulist.getColumn(i, "todd");
- }
- if(maxclamtodd >= maxv191192todd) {
- maxdate = maxclamtodd;
- }else{
- maxdate = maxv191192todd;
- }
- }
- var tmp = sysf_messageBox("기간별 본인부담율 적용내역으로 유형번경 처리를", "Q004");
- if(tmp != 6){
- return;
- }
- var pre_fromdd = "";
- var pre_todd = "";
- //필수값들을 체크한다.
- for (var i = 1; i < group3.grd_appterm.rows; i++) {
- var fromdd = ds_hidden_list1_insulist.getColumn(i, "fromdd");
- var todd = ds_hidden_list1_insulist.getColumn(i, "todd");
- var opertodd = ds_hidden_list1_insulist.getColumn(i, "opertodd");
- if(i == 1){
- if(fromdd > todd){
- sysf_messageBox("유형시작일자가 종료일자보다 클 수 없습니다. 변경처리를","E001");
- return;
- }
- }else{
- if(fromdd > todd){
- sysf_messageBox("유형시작일자가 종료일자보다 클 수 없습니다. 변경처리를","E001");
- return;
- }
- /* if(pre_todd >= fromdd){
- sysf_messageBox("적용시작일자가 이전유형 종료일자 보다 작거나 같을수 없습니다. 변경처리를","E001");
- return;
- } */
- //유형종료 예정일이 없는경우는 체크 하지 않기 위해서 todd로 셋팅해준다.
- if(opertodd == ""){
- opertodd = todd;
- }
- if(opertodd > todd ){
- sysf_messageBox("유형종료예정일이 종료일자보다 클수 없습니다. 변경처리를","E001");
- return;
- }
- }
- pre_fromdd = fromdd;
- pre_todd = todd;
- }
- //기간별 본인부담 적용율 내역갯수만큼 돌면서 10%구간을 체크하여 유형번경 로직을 호출한다.
- for (var i = 1; i < group3.grd_appterm.rows; i++) {
- var fromdate = ds_hidden_list1_insulist.getColumn(i, "fromdd");
- var ownbrate = ds_hidden_list1_insulist.getColumn(i, "ownbrate");
- if(ownbrate == "10" && (fromdate > maxv191192todd) ){ // 조건추가 이미 수술로 인해 적용된 유형이 있으면 제외하고 함. 20080915 박창원
- var pid = ds_hidden_list1_insulist.getColumn(i, "pid");
- var indd = ds_hidden_list1_insulist.getColumn(i, "indd");
- var cretno = ds_main_list3_insulist.getColumn(1, "cretno");
- var fromdd = ds_hidden_list1_insulist.getColumn(i, "fromdd");
- var seqno = model.getValue("ds_main_list3_insulist[" + (group3.grd_insulist.rows - 1) + "]_seqno");
- var mskind = ds_main_list3_insulist.getColumn(1, "mskind");
- var todd = ds_hidden_list1_insulist.getColumn(i, "todd");
- var insukind = ds_hidden_list1_insulist.getColumn(i, "insukind");
- var suppkind = ds_hidden_list1_insulist.getColumn(i, "col01");
- var instcd = ds_hidden_list1_insulist.getColumn(i, "instcd");
- var opertodd = ds_hidden_list1_insulist.getColumn(i, "todd");
- ds_hidden_list2_insulist.clearData(); ds_hidden_list2_insulist.addRow();
- var cNode = instance1.selectSingleNode("ds_hidden_list2_insulist");
- if(cNode == null){
- if(pid){
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_status", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_pid", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_indd", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_cretno", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_fromdd", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_seqno", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_mskind", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_todd", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_insukind", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_suppkind", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_instcd", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_opertodd", "string", "" );
- ds_hidden_list2_insulist.setColumn( 0, "iphs_status","B");
- ds_hidden_list2_insulist.setColumn( 0, "iphs_pid",pid);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_indd",indd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_cretno",cretno);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_fromdd",fromdd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_seqno",seqno);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_mskind",mskind);
- // 20100423 JHP 개심개두 종료일자를 무조건 99991231에서 변경함. 현재일자 기준 종료일이 이전이면 todd, 같거나 크면 99991231로 변경 시작
- // ds_hidden_list2_insulist.setColumn( 0, "iphs_todd", "99991231"); // 이전
- var getcurdd = utlf_getCurrentDate();
- if(getcurdd > todd){
- ds_hidden_list2_insulist.setColumn( 0, "iphs_todd", todd);
- }else{
- ds_hidden_list2_insulist.setColumn( 0, "iphs_todd", "99991231");
- }
- // 20100423 JHP 개심개두 종료일자를 무조건 99991231에서 변경함. 현재일자 기준 종료일이 이전이면 todd, 같거나 크면 99991231로 변경 끝
- ds_hidden_list2_insulist.setColumn( 0, "iphs_insukind",insukind);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_suppkind",suppkind);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_instcd",instcd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_opertodd",opertodd);
- }
- }else{
- if(pid){
- ds_hidden_list2_insulist.setColumn( 0, "iphs_status","B");
- ds_hidden_list2_insulist.setColumn( 0, "iphs_pid",pid);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_indd",indd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_cretno",cretno);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_fromdd",fromdd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_seqno",seqno);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_mskind",mskind);
- // 20100423 JHP 개심개두 종료일자를 무조건 99991231에서 변경함. 현재일자 기준 종료일이 이전이면 todd, 같거나 크면 99991231로 변경 시작
- // ds_hidden_list2_insulist.setColumn( 0, "iphs_todd", "99991231"); // 이전
- var getcurdd = utlf_getCurrentDate();
- if(getcurdd > todd){
- ds_hidden_list2_insulist.setColumn( 0, "iphs_todd", todd);
- }else{
- ds_hidden_list2_insulist.setColumn( 0, "iphs_todd", "99991231");
- }
- // 20100423 JHP 개심개두 종료일자를 무조건 99991231에서 변경함. 현재일자 기준 종료일이 이전이면 todd, 같거나 크면 99991231로 변경 끝
- ds_hidden_list2_insulist.setColumn( 0, "iphs_insukind",insukind);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_suppkind",suppkind);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_instcd",instcd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_opertodd",opertodd);
- }
- }
- ds_hidden_list2_rslt.clearData();
- // submit("TXPIJ01902");
- var oParam = {};
- oParam.id = "TXPIJ01902";
- oParam.service = "ipatmngtapp.InhospUpdt";
- oParam.method = "reqSetInhospUpdt4";
- oParam.inds = "s_iphs=ds_";
- oParam.outds = "ds_=result";
- oParam.async = false;
- oParam.callback = "cf_TXPIJ01902";
- tranf_submit(oParam);
- /*
- function cf_TXPIJ01902(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPIJ01902(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPIJ01902") > -1
- arErrorCode.pop("TXPIJ01902") < 0
- */
- //model.refresh();
- }
- }
- if(sysf_messageBox("유형변경이 완료 되었습니다. 변경된 내역의 소급처리를", "Q004") == 6){
- var sWindowMsg = "수가계산중입니다...";
- callLoadingWindow(sWindowMsg);
- fReCalc() ;
- removeLoadingWindow();
- }
- sysf_messageBox("소급계산이", "I002");
- //opener.model.refresh();
- opener.javascript.fGetItemInfo();
- activateOpener(); // (common.js)에서 제공하는 함수로 opener를 activate한다.
- window.close(); // F5 실행시 IE를 종료시킨다.
- // ds_main.clearData();
- // submit("TRPIJ01901");
- //
- //model.refresh();
- }
- function group1_button2_onclick(obj:Button, e:ClickEventInfo) {
- window.close(); // F5 실행시 IE를 종료시킨다.
- }
- function group1_btn_opapply_onclick(obj:Button, e:ClickEventInfo) {
- // 모든수술이 기간적용이 되어 있을 경우 기간적용 버튼을 조작 하면 알럿
- // 모든수술이 전부 적용되었는지 확인 - 20080926 박창원
- var rows = group3.grd_operlist.rows;
- var apply = "Y"
- for (i=1; i< rows; i++) {
- var applyop = ds_main_list2_opcdlist.getColumn(i, "applyop");
- if (applyop == "N") {
- apply = "N";
- }
- }
- if (applyop == "Y") {
- sysf_messageBox("모든 수술이 유형적용 되어있습니다. 복원후에","C003");
- return;
- }
- // loop : 입원일로 부터 현재일까지 날짜와 보조유형(수술일 지정체크) 해서 보조유형을 담아 놓는다.
- var days = new Array();
- var daysuppkind = new Array();
- var indd = ds_send_cond.getColumn(0, "indd");
- var curdd = utlf_getCurrentDate();
- var pid = ds_send_cond.getColumn(0, "pid");
- var hngnm = ds_main_list3_insulist.getColumn(1, "hngnm");
- var insukind = ds_main_list3_insulist.getColumn(1, "insukind");
- var ownbrate = ds_send_cond.getColumn(0, "ownbrate");
- var lastoptodd = ds_main_list2_opcdlist.getColumn((group3.grd_operlist.rows-1), "todd");
- var cretno = ds_send_cond.getColumn(0, "cretno");
- var cfe = ds_send_cond.getColumn(0, "cfe");
- // 추가 : 20091029 JHP 기간적용시 instcd가 없어서 이후 중증요율 적용시 inpt의 suppkind가 변경이 없다. 하여 보험정보에서 추가함.
- var instcd = ds_main_list3_insulist.getColumn(1, "instcd");
- temptodd = lastoptodd.toDate("YYYYMMDD");
- temptodd = temptodd.getAddDate(1);
- temptodd = temptodd.getDateFormat();
- // ds_hidden_list5_kindlist.clearData();
- // model.makeNode("ds_hidden_list5_kindlist[1]_fromdd");
- // model.makeNode("ds_hidden_list5_kindlist[1]_todd");
- // model.makeNode("ds_hidden_list5_kindlist[1]_suppkind");
- // loop의 범위는 입원일로 부터 마지막 수술적용일자 + 1 까지이다.
- var period = utlf_getDateInterval(indd,temptodd);
- // alert(period);
- var applydate = indd;
- for(i=1; i<= period; i++) {
- // 지정된 수술일자를 판단하여 해당일에 대한 보조유형을 산출
- for(j=1; j< group3.grd_operlist.rows;j++) {
- var opfromdd = ds_main_list2_opcdlist.getColumn(j, "fromdd");
- var optodd = ds_main_list2_opcdlist.getColumn(j, "todd");
- if ((applydate >= opfromdd) && (applydate <= optodd)) {
- days[i] = applydate;
- // 20090325 차상위적용
- if (cfe == "E" || cfe == "F") {
- daysuppkind[i] = "39";
- }else {
- daysuppkind[i] = "05";
- }
- //alert(applydate);
- } // if ((applydate >= fromdd) && (applydate <= todd))
- else {
- if (daysuppkind[i] != "05" && daysuppkind[i] != "39") {
- //alert("a" + applydate);
- days[i] = applydate;
- if (cfe == "E" || cfe == "F") {
- daysuppkind[i] = "33";
- } else {
- daysuppkind[i] = "00";
- }
- } // if (daysuppkind[i] != "05")
- } // else
- } // for j
- // applydate를 하루씩 증가
- // alert(days[i] + " " + daysuppkind[i]);
- applydate = applydate.toDate("YYYYMMDD");
- applydate = applydate.getAddDate(1);
- applydate = applydate.getDateFormat();
- } // for i
- // 유형의 기본 자료를 생성한다.
- var kindcnt = 1;
- var kindchange = "N";
- for (k=1; k<= period; k++) {
- var beforefromdd;
- var basisdd;
- var todd;
- var suppkind;
- var basissuppkind;
- if(k == 1) {
- fromdd = days[k];
- basisdd = days[k];
- suppkind = daysuppkind[k];
- basissuppkind = daysuppkind[k];
- kindchage = "N";
- } else {
- if (kindchange == "Y") {
- fromdd = days[k];
- suppkind = daysuppkind[k];
- kindchange = "N";
- }
- basisdd = days[k];
- basissuppkind = daysuppkind[k];
- }
- if (suppkind != basissuppkind) {
- todd = days[k];
- todd = todd.toDate("YYYYMMDD");
- todd = todd.getAddDate(-1);
- todd = todd.getDateFormat();
- if (kindcnt == 1) {
- ds_hidden_list1.setColumn( kindcnt , "pid", pid);
- ds_hidden_list1.setColumn( kindcnt , "hngnm", hngnm);
- ds_hidden_list1.setColumn( kindcnt , "indd", indd);
- ds_hidden_list1.setColumn( kindcnt , "appdd", fromdd);
- ds_hidden_list1.setColumn( kindcnt , "insukind", insukind);
- ds_hidden_list1.setColumn( kindcnt , "col01", suppkind);
- ds_hidden_list1.setColumn( kindcnt , "fromdd", fromdd);
- ds_hidden_list1.setColumn( kindcnt , "todd", todd);
- ds_hidden_list1.setColumn( kindcnt , "cretno", cretno);
- if (suppkind == "00") {
- ds_hidden_list1.setColumn( kindcnt , "ownbrate", 20);
- } else if (suppkind == "33") {
- ds_hidden_list1.setColumn( kindcnt , "ownbrate", 14);
- } else {
- ds_hidden_list1.setColumn( kindcnt , "ownbrate", "10");
- ds_hidden_list1.setColumn( kindcnt , "opertodd", todd);
- }
- // 추가 : 20091029 JHP 기간적용시 instcd가 없어서 이후 중증요율 적용시 inpt의 suppkind가 변경이 없다. 하여 보험정보에서 추가함.
- ds_hidden_list1.setColumn( kindcnt , "instcd", instcd);
- /* ds_hidden_list5.setColumn( kindcnt , "fromdd", fromdd);
- ds_hidden_list5.setColumn( kindcnt , "todd", todd);
- ds_hidden_list5.setColumn( kindcnt , "suppkind", suppkind); */
- kindcnt++;
- kindchange = "Y";
- } else {
- group3.grd_appterm.addRow(true, true);
- fromdd = ds_hidden_list1_insulist.getColumn((kindcnt-1), "todd").toDate("YYYYMMDD");
- fromdd = fromdd.getAddDate(1);
- fromdd = fromdd.getDateFormat();
- ds_hidden_list1.setColumn( kindcnt , "pid", pid);
- ds_hidden_list1.setColumn( kindcnt , "hngnm", hngnm);
- ds_hidden_list1.setColumn( kindcnt , "indd", indd);
- ds_hidden_list1.setColumn( kindcnt , "appdd", fromdd);
- ds_hidden_list1.setColumn( kindcnt , "insukind", insukind);
- ds_hidden_list1.setColumn( kindcnt , "col01", suppkind);
- ds_hidden_list1.setColumn( kindcnt , "fromdd", fromdd);
- ds_hidden_list1.setColumn( kindcnt , "todd", todd);
- ds_hidden_list1.setColumn( kindcnt , "cretno", cretno);
- if (suppkind == "00") {
- ds_hidden_list1.setColumn( kindcnt , "ownbrate", 20);
- } else if (suppkind == "33") {
- ds_hidden_list1.setColumn( kindcnt , "ownbrate", 14);
- } else {
- ds_hidden_list1.setColumn( kindcnt , "ownbrate", "10");
- ds_hidden_list1.setColumn( kindcnt , "opertodd", todd);
- }
- // 추가 : 20091029 JHP 기간적용시 instcd가 없어서 이후 중증요율 적용시 inpt의 suppkind가 변경이 없다. 하여 보험정보에서 추가함.
- ds_hidden_list1.setColumn( kindcnt , "instcd", instcd);
- kindcnt++;
- kindchange = "Y";
- }
- }
- if (k == period) {
- if(suppkind == "05" || suppkind == "39") {
- todd = lastoptodd;
- if(kindcnt != 1) {
- fromdd = ds_hidden_list1_insulist.getColumn((kindcnt-1), "todd").toDate("YYYYMMDD");
- fromdd = fromdd.getAddDate(1);
- fromdd = fromdd.getDateFormat();
- }
- group3.grd_appterm.addRow(true, true);
- ds_hidden_list1.setColumn( kindcnt , "pid", pid);
- ds_hidden_list1.setColumn( kindcnt , "hngnm", hngnm);
- ds_hidden_list1.setColumn( kindcnt , "indd", indd);
- ds_hidden_list1.setColumn( kindcnt , "appdd", fromdd);
- ds_hidden_list1.setColumn( kindcnt , "insukind", insukind);
- ds_hidden_list1.setColumn( kindcnt , "col01", suppkind);
- ds_hidden_list1.setColumn( kindcnt , "fromdd", fromdd);
- ds_hidden_list1.setColumn( kindcnt , "todd", todd);
- ds_hidden_list1.setColumn( kindcnt , "ownbrate", "10");
- ds_hidden_list1.setColumn( kindcnt , "opertodd", todd);
- ds_hidden_list1.setColumn( kindcnt , "cretno", cretno);
- // 추가 : 20091029 JHP 기간적용시 instcd가 없어서 이후 중증요율 적용시 inpt의 suppkind가 변경이 없다. 하여 보험정보에서 추가함.
- ds_hidden_list1.setColumn( kindcnt , "instcd", instcd);
- kindcnt ++;
- var lastfromdd = lastoptodd.toDate("YYYYMMDD");
- lastfromdd = lastfromdd.getAddDate(1);
- lastfromdd = lastfromdd.getDateFormat();
- todd = "99991231";
- group3.grd_appterm.addRow(true, true);
- ds_hidden_list1.setColumn( kindcnt , "pid", pid);
- ds_hidden_list1.setColumn( kindcnt , "hngnm", hngnm);
- ds_hidden_list1.setColumn( kindcnt , "indd", indd);
- ds_hidden_list1.setColumn( kindcnt , "appdd", lastfromdd);
- ds_hidden_list1.setColumn( kindcnt , "insukind", insukind);
- ds_hidden_list1.setColumn( kindcnt , "fromdd", lastfromdd);
- ds_hidden_list1.setColumn( kindcnt , "todd", todd);
- if (cfe == "E" || cfe == "F") {
- ds_hidden_list1.setColumn( kindcnt , "col01","33");
- } else {
- ds_hidden_list1.setColumn( kindcnt , "col01","00");
- }
- ds_hidden_list1.setColumn( kindcnt , "cretno", cretno);
- var suppkindcd = ds_hidden_list1_insulist.getColumn(kindcnt, "col01"));
- if (suppkindcd == "00") {
- ds_hidden_list1.setColumn( kindcnt , "ownbrate", 20);
- } if (suppkindcd == "33") {
- ds_hidden_list1.setColumn( kindcnt , "ownbrate", 14);
- }else {
- ds_hidden_list1.setColumn( kindcnt , "ownbrate", ownbrate);
- }
- // 추가 : 20091029 JHP 기간적용시 instcd가 없어서 이후 중증요율 적용시 inpt의 suppkind가 변경이 없다. 하여 보험정보에서 추가함.
- ds_hidden_list1.setColumn( kindcnt , "instcd", instcd);
- kindcnt++;
- } else {
- if (kindcnt != 1) {
- fromdd = ds_hidden_list1_insulist.getColumn((kindcnt-1), "todd").toDate("YYYYMMDD");
- // alert(fromdd);
- fromdd = fromdd.getAddDate(1);
- fromdd = fromdd.getDateFormat();
- // alert(fromdd);
- }
- todd = "99991231";
- group3.grd_appterm.addRow(true, true);
- ds_hidden_list1.setColumn( kindcnt , "pid", pid);
- ds_hidden_list1.setColumn( kindcnt , "hngnm", hngnm);
- ds_hidden_list1.setColumn( kindcnt , "indd", indd);
- ds_hidden_list1.setColumn( kindcnt , "appdd", fromdd);
- ds_hidden_list1.setColumn( kindcnt , "insukind", insukind);
- if (cfe == "E" || cfe == "F") {
- ds_hidden_list1.setColumn( kindcnt , "col01","33");
- } else {
- ds_hidden_list1.setColumn( kindcnt , "col01","00");
- }
- ds_hidden_list1.setColumn( kindcnt , "fromdd", fromdd);
- ds_hidden_list1.setColumn( kindcnt , "todd", todd);
- ds_hidden_list1.setColumn( kindcnt , "cretno", cretno);
- var suppkindcd = ds_hidden_list1_insulist.getColumn(kindcnt, "col01"));
- if (suppkindcd == "00") {
- ds_hidden_list1.setColumn( kindcnt , "ownbrate", 20);
- } if (suppkindcd == "33") {
- ds_hidden_list1.setColumn( kindcnt , "ownbrate", 14);
- }else {
- ds_hidden_list1.setColumn( kindcnt , "ownbrate", ownbrate);
- }
- // 추가 : 20091029 JHP 기간적용시 instcd가 없어서 이후 중증요율 적용시 inpt의 suppkind가 변경이 없다. 하여 보험정보에서 추가함.
- ds_hidden_list1.setColumn( kindcnt , "instcd", instcd);
- kindcnt++;
- }
- }
- } // for k
- /* var insulist = instance1.selectSingleNode("ds_main_list2_opcdlist");
- var new_todd = "";
- var thisYear = ""; // 현재 입력된 연
- var thisMonth = ""; // 현재 입력된 월
- var thisDay = ""; // 현재 입력된 일
- var nextDate = "";
- var nextfromdd = "";
- var beforefromdd = "";
- var nexttodd = "";
- var maxtodd = "";
- var row = 0;
- if(insulist != null){
- ds_hidden_list3.clearData();
- var vcode = ds_send_cond.getColumn(0, "vcode");
- var opcdcnt = ds_main_list2_opcdlist.rowcount;
- if (opcdcnt == 1) {
- dsf_makeValue( ds_hidden_list3_opcdlist, "fromdd", "string", "" );
- dsf_makeValue( ds_hidden_list3_opcdlist, "todd", "string", "" );
- ds_hidden_list3.setColumn( opcdcnt , "fromdd",ds_main_list2_opcdlist.getColumn(opcdcnt, "fromdd")));
- ds_hidden_list3.setColumn( opcdcnt , "todd",ds_main_list2_opcdlist.getColumn(opcdcnt, "todd")));
- } else {
- opcdcnt = eval(opcdcnt) +1;
- var vfromdd = "";
- var vtodd = "";
- var vflag = "";
- var pfromdd = "";
- var ptodd = "";
- for (i=1; i<opcdcnt; i++) {
- row = row + 1;
- vfromdd = ds_main_list2_opcdlist.getColumn(row, "fromdd"));
- vtodd = ds_main_list2_opcdlist.getColumn(row, "todd"));
- vflag = ds_main_list2_opcdlist.getColumn(row, "flag"));
- if (vfromdd == "") {
- sysf_messageBox("적용시작일자는","I003");
- return;
- }
- if (vtodd == "") {
- sysf_messageBox("적용종료일자는","I003");
- return;
- }
- if (row == 1) {
- pfromdd = vfromdd;
- ptodd = vtodd;
- model.makeNode("ds_hidden_list3_opcdlist[" + row + " ]_fromdd");
- model.makeNode("ds_hidden_list3_opcdlist[" + row + " ]_todd");
- model.makeNode("ds_hidden_list3_opcdlist[" + row + " ]_flag");
- ds_hidden_list3.setColumn( row , "fromdd",vfromdd);
- ds_hidden_list3.setColumn( row , "todd",vtodd);
- ds_hidden_list3.setColumn( row , "flag",vflag);
- } else {
- if (ptodd > vfromdd) {
- row = row -1;
- ds_hidden_list3.setColumn( row , "todd",vtodd);
- row = row +1;
- } else {
- var beforefromdd = "";
- var nexttodd = "";
- thisYear = ptodd.substring(0,4); // 현재 입력된 연
- thisMonth = ptodd.substring(4,6); // 현재 입력된 월
- thisDay = ptodd.substring(6,8); // 현재 입력된 일
- nextDate = new Date(thisYear, (thisMonth - 1), thisDay);
- nextDate.setHours(24); // 24시간 뒤인 다음날 날짜를 구한다.
- beforefromdd = "";
- beforefromdd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- beforefromdd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- beforefromdd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- beforefromdd += "0" + nextDate.getDate();
- }
- else {
- beforefromdd += nextDate.getDate();
- }
- thisYear = vfromdd.substring(0,4); // 현재 입력된 연
- thisMonth = vfromdd.substring(4,6); // 현재 입력된 월
- thisDay = vfromdd.substring(6,8); // 현재 입력된 일
- nextDate = new Date(thisYear, (thisMonth - 1), thisDay);
- nextDate.setHours(24); // 24시간 뒤인 다음날 날짜를 구한다. vv
- nexttodd = "";
- nexttodd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- nexttodd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- nexttodd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- nexttodd += "0" + nextDate.getDate();
- }
- else {
- nexttodd += nextDate.getDate();
- }
- pfromdd = vfromdd;
- ptodd = vtodd;
- // 적용 수술 건 중 적용기간 사이 기간을 새로운 기간으로 생성
- model.makeNode("ds_hidden_list3_opcdlist[" + row + " ]_fromdd");
- model.makeNode("ds_hidden_list3_opcdlist[" + row + " ]_todd");
- model.makeNode("ds_hidden_list3_opcdlist[" + row + " ]_flag");
- ds_hidden_list3.setColumn( row , "fromdd",beforefromdd);
- ds_hidden_list3.setColumn( row , "todd",nexttodd);
- ds_hidden_list3.setColumn( row , "flag","N");
- // 해당 수술 건의 적용 기간 설정
- row = row +1;
- model.makeNode("ds_hidden_list3_opcdlist[" + row + " ]_fromdd");
- model.makeNode("ds_hidden_list3_opcdlist[" + row + " ]_todd");
- model.makeNode("ds_hidden_list3_opcdlist[" + row + " ]_flag");
- ds_hidden_list3.setColumn( row , "fromdd",vfromdd);
- ds_hidden_list3.setColumn( row , "todd",vtodd);
- ds_hidden_list3.setColumn( row , "flag",vflag);
- }
- }
- }
- }
- }
- //model.refresh();
- var rowcnt = ds_hidden_list3_opcdlist.rowcount;
- ds_hidden_list1.clearData();
- ds_hidden_list2.clearData();
- //model.refresh();
- for (m=0; m<rowcnt; m++) {
- var vcode = ds_send_cond.getColumn(0, "vcode");
- var row = m+1;
- var fromdd = ds_hidden_list3_opcdlist.getColumn(row, "fromdd"));
- var todd = ds_hidden_list3_opcdlist.getColumn(row, "todd"));
- var flag = ds_hidden_list3_opcdlist.getColumn(row, "flag"));
- var insucnt = group3.grd_insulist.rows;
- // 시작일자와 현재일자까지 30일 미만인 경우
- if (utlf_getDateInterval(fromdd,utlf_getCurrentDate()) < 30 ) {
- //보험정보 갯수 만큼 돌면서 체크한다.
- for (var i = 1; i < insucnt; i++) {
- var fromdd_term = ds_main_list3_insulist.getColumn(i, "fromdd");
- var todd_term = ds_main_list3_insulist.getColumn(i, "todd");
- var clamflag = ds_main_list3_insulist.getColumn(i, "clamflag");
- if(fromdd_term < fromdd && todd_term == '99991231' && clamflag == 'N'){
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- thisYear = fromdd.substring(0,4); // 현재 입력된 연
- thisMonth = fromdd.substring(4,6); // 현재 입력된 월
- thisDay = fromdd.substring(6,8); // 현재 입력된 일
- nextDate = new Date(thisYear, (thisMonth - 1), thisDay);
- nextDate.setHours(-24); // 24시간 뒤인 다음날 날짜를 구한다.
- nextfromdd = "";
- nextfromdd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- nextfromdd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- nextfromdd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- nextfromdd += "0" + nextDate.getDate();
- }
- else {
- nextfromdd += nextDate.getDate();
- }
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_todd",nextfromdd);
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_opertodd",nextfromdd);
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- if(vcode == "V191"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }else if(vcode == "V192"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_opertodd",todd);
- }else if(todd_term != '99991231' && clamflag == 'Y'){
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- }else{
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- if(vcode == "V191"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }else if(vcode == "V192"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }
- if(todd_term > todd){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_opertodd",todd);
- }
- }
- }
- } else {
- //보험정보 갯수 만큼 돌면서 체크한다.
- for (var i = 1; i < insucnt; i++) {
- var fromdd_term = ds_main_list3_insulist.getColumn(i, "fromdd");
- var todd_term = ds_main_list3_insulist.getColumn(i, "todd");
- //원유형 시작일자가, 적용 종료기간 보다 크면 해당 없음.
- if(fromdd_term > todd){
- continue;
- }
- maxtodd = ds_hidden_list1_insulist.getColumn(group3.grd_appterm.row, "todd");
- // 이전에 생성된 기간별 본인 부담율 적용 내역의 종료일자 이후 일 경우에만 추가 생성
- if (todd_term > maxtodd) {
- //해당유형의 Fromdd 기 심사자 선택한 기간보다 작은경우 선택한 기간이전 유형을 하나더 발생시킨다.
- if(fromdd_term < fromdd){
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- thisYear = fromdd.substring(0,4); // 현재 입력된 연
- thisMonth = fromdd.substring(4,6); // 현재 입력된 월
- thisDay = fromdd.substring(6,8); // 현재 입력된 일
- nextDate = new Date(thisYear, (thisMonth - 1), thisDay);
- nextDate.setHours(-24); // 24시간 뒤인 다음날 날짜를 구한다.
- nextfromdd = "";
- nextfromdd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- nextfromdd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- nextfromdd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- nextfromdd += "0" + nextDate.getDate();
- }
- else {
- nextfromdd += nextDate.getDate();
- }
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_todd",nextfromdd);
- maxtodd = nextfromdd;
- //해당유형의 Todd 기 심사자 선택한 기간보다 작은경우 선택한 기간이후 유형을 하나더 발생시킨다.
- if(todd_term > todd){
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_fromdd", fromdd);
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_todd", todd);
- if(vcode == "V191"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }else if(vcode == "V192"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- new_todd = todd;
- thisYear = new_todd.substring(0,4); // 현재 입력된 연
- thisMonth = new_todd.substring(4,6); // 현재 입력된 월
- thisDay = new_todd.substring(6,8); // 현재 입력된 일
- nextDate = new Date(thisYear, (thisMonth - 1), thisDay);
- nextDate.setHours(24); // 24시간 뒤인 다음날 날짜를 구한다.
- nextfromdd = "";
- nextfromdd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- nextfromdd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- nextfromdd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- nextfromdd += "0" + nextDate.getDate();
- }
- else {
- nextfromdd += nextDate.getDate();
- }
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_fromdd", nextfromdd);
- }else if(todd_term == todd){
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_fromdd", fromdd);
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_todd", todd);
- if(vcode == "V191"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }else if(vcode == "V192"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }
- //심사자가 선택한 Todd가 기존데이터 보다 큰경우는 미래 날짜로 미리 유형을 하나 더 만들어 놓는다.
- }else{
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_fromdd", fromdd);
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_opertodd", todd);
- if(vcode == "V191"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }else if(vcode == "V192"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }
- }
- }else if(fromdd_term == fromdd){
- if(todd_term > todd){
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_fromdd", fromdd);
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_todd", todd);
- if(vcode == "V191"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }else if(vcode == "V192"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- new_todd = todd;
- thisYear = new_todd.substring(0,4); // 현재 입력된 연
- thisMonth = new_todd.substring(4,6); // 현재 입력된 월
- thisDay = new_todd.substring(6,8); // 현재 입력된 일
- nextDate = new Date(thisYear, (thisMonth - 1), thisDay);
- nextDate.setHours(24); // 24시간 뒤인 다음날 날짜를 구한다.
- nextfromdd = "";
- nextfromdd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- nextfromdd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- nextfromdd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- nextfromdd += "0" + nextDate.getDate();
- }
- else {
- nextfromdd += nextDate.getDate();
- }
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_fromdd", nextfromdd);
- //심사자가 선택한 Todd가 기존데이터 보다 큰경우는 미래 날짜로 미리 유형을 하나 더 만들어 놓는다.
- }else{
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_todd", todd);
- maxtodd = todd;
- if(vcode == "V191"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }else if(vcode == "V192"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- new_todd = todd;
- thisYear = new_todd.substring(0,4); // 현재 입력된 연
- thisMonth = new_todd.substring(4,6); // 현재 입력된 월
- thisDay = new_todd.substring(6,8); // 현재 입력된 일
- nextDate = new Date(thisYear, (thisMonth - 1), thisDay);
- nextDate.setHours(24); // 24시간 뒤인 다음날 날짜를 구한다.
- nextfromdd = "";
- nextfromdd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- nextfromdd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- nextfromdd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- nextfromdd += "0" + nextDate.getDate();
- }
- else {
- nextfromdd += nextDate.getDate();
- }
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_fromdd", nextfromdd);
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_todd", "99991211");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_opertodd", todd);
- }
- }else{
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_todd",todd);
- //해당유형의 Todd가 심사자 선택한 기간보다 작은경우 선택한 기간이후 유형을 하나더 발생시킨다.
- if(todd_term > todd){
- new_todd = todd;
- thisYear = new_todd.substring(0,4); // 현재 입력된 연
- thisMonth = new_todd.substring(4,6); // 현재 입력된 월
- thisDay = new_todd.substring(6,8); // 현재 입력된 일
- nextDate = new Date(thisYear, (thisMonth - 1), thisDay);
- nextDate.setHours(24); // 24시간 뒤인 다음날 날짜를 구한다.
- nextfromdd = "";
- nextfromdd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- nextfromdd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- nextfromdd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- nextfromdd += "0" + nextDate.getDate();
- }
- else {
- nextfromdd += nextDate.getDate();
- }
- if ( fromdd_term < todd && todd_term > todd ) {
- if (flag == "Y") {
- if(vcode == "V191"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }else if(vcode == "V192"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }
- }
- }
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_fromdd", nextfromdd);
- //심사자가 선택한 Todd가 기존데이터 보다 큰경우는 미래 날짜로 미리 유형을 하나 더 만들어 놓는다.
- }else{
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_todd", todd);
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_opertodd", todd);
- }
- }
- } else {
- // 수술일자가 적용 기간에 포함 되지 않을 경우 이면서 마지막 수술건을 경우
- if ( todd >= nextfromdd && todd_term > todd ) {
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_todd", todd);
- group3.grd_appterm.addrow();
- model.copyNode("ds_hidden_list1_insulist[" + group3.grd_appterm.row + " ]", "ds_main_list3_insulist[" + i + " ]");
- new_todd = todd;
- thisYear = new_todd.substring(0,4); // 현재 입력된 연
- thisMonth = new_todd.substring(4,6); // 현재 입력된 월
- thisDay = new_todd.substring(6,8); // 현재 입력된 일
- nextDate = new Date(thisYear, (thisMonth - 1), thisDay);
- nextDate.setHours(24); // 24시간 뒤인 다음날 날짜를 구한다.
- nextfromdd = "";
- nextfromdd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- nextfromdd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- nextfromdd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- nextfromdd += "0" + nextDate.getDate();
- }
- else {
- nextfromdd += nextDate.getDate();
- }
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_fromdd", nextfromdd);
- } else {
- if (flag == "Y") {
- if(vcode == "V191"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }else if(vcode == "V192"){
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_suppkind", "05");
- ds_hidden_list1.setColumn( 0, "insulist[" + group3.grd_appterm.row + " ]_ownbrate", "10");
- }
- }
- }
- } // end fi
- } // end for
- } // end for
- } */
- //보험유형에 따른 유형보조의 콤보값을 셋팅해준다.
- for (var i=1; i<group3.grd_appterm.rows; i++) {
- var insukind = ds_hidden_list1_insulist.getColumn(i, "insukind");
- group3.grd_appterm.cellComboNodeset(i,6) = "ds_main_list4_pmbminsu[insukind = '"+insukind+"']";
- }
- //model.refresh();
- }
- function group1_btn_iphsrebuild_onclick(obj:Button, e:ClickEventInfo) {
- // 2008.08.12 박창원
- // 유형복원은 자료수집이 되었을때는 안된다.
- // 유형복원은 현재 보험유형에서 선택된 row에 대해서만 작업한다.
- // 유형복원은 보조유형을 정상으로 바꾸고 똑같은 유형끼리 합친다.(이부분은 추가 확인이 필요)
- // 유형이 05 유형 하나밖에 없을 때에는 00으로 변경한다 - 20080926 박창원
- var count = group3.grd_insulist.rows;
- if (count == 2) {
- // 유형을 정상유형으로 -> 이부분은 다른 케이스가 있는지 찾아봐야함
- ds_hidden_list2_insulist.clearData(); ds_hidden_list2_insulist.addRow();
- var pid = ds_main_list3_insulist.getColumn(1, "pid");
- var indd = ds_main_list3_insulist.getColumn(1, "indd");
- var cretno = ds_main_list3_insulist.getColumn(1, "cretno");
- var fromdd = ds_main_list3_insulist.getColumn(1, "fromdd");
- var seqno = ds_main_list3_insulist.getColumn(1, "seqno");
- var mskind = ds_main_list3_insulist.getColumn(1, "mskind");
- var todd = ds_main_list3_insulist.getColumn(1, "todd");
- var insukind = ds_main_list3_insulist.getColumn(1, "insukind");
- var instcd = ds_main_list3_insulist.getColumn(1, "instcd");
- var cfe = ds_send_cond.getColumn(0, "cfe");
- if (cfe == "E" || cfe == "F") {
- suppkind = "33";
- } else {
- suppkind = "00";
- }
- var cNode = instance1.selectSingleNode("ds_hidden_list2_insulist");
- if(cNode == null){
- if(pid){
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_status", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_pid", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_indd", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_cretno", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_fromdd", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_seqno", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_mskind", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_todd", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_insukind", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_suppkind", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_instcd", "string", "" );
- ds_hidden_list2_insulist.setColumn( 0, "iphs_status","B");
- ds_hidden_list2_insulist.setColumn( 0, "iphs_pid",pid);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_indd",indd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_cretno",cretno);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_fromdd",fromdd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_seqno",seqno);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_mskind",mskind);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_todd",todd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_instcd",instcd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_insukind",insukind);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_suppkind",suppkind);
- }
- }else{
- if(pid){
- ds_hidden_list2_insulist.setColumn( 0, "iphs_status","B");
- ds_hidden_list2_insulist.setColumn( 0, "iphs_pid",pid);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_indd",indd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_cretno",cretno);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_fromdd",fromdd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_seqno",seqno);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_mskind",mskind);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_todd",todd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_instcd",instcd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_insukind",insukind);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_suppkind",suppkind);
- }
- }
- ds_hidden_list2_rslt.clearData();
- // if (submit("TXPIJ01902")) { // 유형변경
- var oParam = {};
- oParam.id = "TXPIJ01902";
- oParam.service = "ipatmngtapp.InhospUpdt";
- oParam.method = "reqSetInhospUpdt4";
- oParam.inds = "s_iphs=ds_";
- oParam.outds = "ds_=result";
- oParam.async = false;
- oParam.callback = "cf_TXPIJ01902";
- tranf_submit(oParam);
- /*
- function cf_TXPIJ01902(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPIJ01902(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPIJ01902") > -1
- arErrorCode.pop("TXPIJ01902") < 0
- */
- ds_main_list3_insulist.clearData();
- // ds_main_list3_insulist.clearData(); ds_main_list3_insulist.addRow();
- // submit("TRPIJ01903") // 유형 다시로드
- var oParam = {};
- oParam.id = "TRPIJ01903";
- oParam.service = "bfjudgapp.SerDiagOpTermEstm";
- oParam.method = "reqGetEssc";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=insulist";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ01903";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ01903(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ01903(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ01903") > -1
- arErrorCode.pop("TRPIJ01903") < 0
- */
- //model.refresh();
- if(sysf_messageBox("유형복원이 완료 되었습니다. 변경된 내역의 소급처리를", "Q004") == 6){
- var sWindowMsg = "수가계산중입니다...";
- callLoadingWindow(sWindowMsg);
- fReCalc() ;
- removeLoadingWindow();
- }
- //opener.model.refresh();
- opener.javascript.fGetItemInfo();
- sysf_messageBox("소급계산이", "I002");
- fInitialize();
- return;
- } else {
- return;
- }
- }
- // 선택된 유형의 자료수집여부를 판단하여 자료수집된 경우에는 유형복원 불가
- var row = group3.grd_insulist.row;
- var clamflag = ds_main_list3_insulist.getColumn(row, "clamflag"));
- if (clamflag == "Y") {
- sysf_messageBox("자료수집이 되어 유형변경을 ","E001");
- return;
- }
- var suppkind = ds_main_list3_insulist.getColumn(row, "suppkind"));
- if (suppkind != "05" && suppkind != "39") {
- sysf_messageBox(" 개두개심술 외에는 유형변경을 ","E001");
- return;
- }
- // 유형을 정상유형으로 -> 이부분은 다른 케이스가 있는지 찾아봐야함
- ds_hidden_list2_insulist.clearData(); ds_hidden_list2_insulist.addRow();
- var pid = ds_main_list3_insulist.getColumn(row, "pid"));
- var indd = ds_main_list3_insulist.getColumn(row, "indd"));
- var cretno = ds_main_list3_insulist.getColumn(row, "cretno"));
- var fromdd = ds_main_list3_insulist.getColumn(row, "fromdd"));
- var seqno = ds_main_list3_insulist.getColumn(row, "seqno"));
- var mskind = ds_main_list3_insulist.getColumn(row, "mskind"));
- var todd = ds_main_list3_insulist.getColumn(row, "todd"));
- var insukind = ds_main_list3_insulist.getColumn(row, "insukind"));
- var instcd = ds_main_list3_insulist.getColumn(1, "instcd");
- suppkind = "00"
- var cNode = instance1.selectSingleNode("ds_hidden_list2_insulist");
- if(cNode == null){
- if(pid){
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_status", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_pid", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_indd", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_cretno", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_fromdd", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_seqno", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_mskind", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_todd", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_insukind", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_suppkind", "string", "" );
- dsf_makeValue( ds_hidden_list2_insulist, "iphs_instcd", "string", "" );
- ds_hidden_list2_insulist.setColumn( 0, "iphs_status","B");
- ds_hidden_list2_insulist.setColumn( 0, "iphs_pid",pid);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_indd",indd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_cretno",cretno);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_fromdd",fromdd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_seqno",seqno);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_mskind",mskind);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_todd",todd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_insukind",insukind);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_suppkind",suppkind);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_instcd",instcd);
- }
- }else{
- if(pid){
- ds_hidden_list2_insulist.setColumn( 0, "iphs_status","B");
- ds_hidden_list2_insulist.setColumn( 0, "iphs_pid",pid);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_indd",indd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_cretno",cretno);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_fromdd",fromdd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_seqno",seqno);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_mskind",mskind);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_todd",todd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_insukind",insukind);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_suppkind",suppkind);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_instcd",instcd);
- }
- }
- ds_hidden_list2_rslt.clearData();
- // submit("TXPIJ01902"); // 유형변경
- var oParam = {};
- oParam.id = "TXPIJ01902";
- oParam.service = "ipatmngtapp.InhospUpdt";
- oParam.method = "reqSetInhospUpdt4";
- oParam.inds = "s_iphs=ds_";
- oParam.outds = "ds_=result";
- oParam.async = false;
- oParam.callback = "cf_TXPIJ01902";
- tranf_submit(oParam);
- /*
- function cf_TXPIJ01902(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPIJ01902(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPIJ01902") > -1
- arErrorCode.pop("TXPIJ01902") < 0
- */
- ds_main_list3_insulist.clearData();
- // ds_main_list3_insulist.clearData(); ds_main_list3_insulist.addRow();
- // submit("TRPIJ01903") // 유형 다시로드
- var oParam = {};
- oParam.id = "TRPIJ01903";
- oParam.service = "bfjudgapp.SerDiagOpTermEstm";
- oParam.method = "reqGetEssc";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=insulist";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ01903";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ01903(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ01903(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ01903") > -1
- arErrorCode.pop("TRPIJ01903") < 0
- */
- //model.refresh();
- // 여기서부터는 유형 합치기
- // 합치기 위한 시작일자와 종료일자를 선정한다.(보험유형과 보조유형이 같으면 합치기 단, 자료수집이 된 유형은 합치는 대상에서 제외)
- var curmskind = ds_main_list3_insulist.getColumn(row, "mskind"));
- if (row == 1) {
- var nextsuppkind = ds_main_list3_insulist.getColumn((row + 1), "suppkind"));
- var nexttodd = ds_main_list3_insulist.getColumn((row + 1), "todd"));
- var nextmskind = ds_main_list3_insulist.getColumn((row + 1), "mskind"));
- var instcd = ds_main_list3_insulist.getColumn(1, "instcd");
- if (nextsuppkind == "00" && (curmskind == nextmskind)) {
- todd = nexttodd;
- ds_hidden_list2_insulist.setColumn( 0, "iphs_todd",todd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_instcd",instcd); // 임시
- } else {
- ds_hidden_list2_insulist.setColumn( 0, "iphs_todd",todd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_instcd",instcd); // 임시
- }
- // if(submit("TXPIJ01904")){
- var oParam = {};
- oParam.id = "TXPIJ01904";
- oParam.service = "ipatmngtapp.InhospUpdt";
- oParam.method = "reqExeIphsMerge";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=result";
- oParam.async = false;
- oParam.callback = "cf_TXPIJ01904";
- tranf_submit(oParam);
- /*
- function cf_TXPIJ01904(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPIJ01904(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPIJ01904") > -1
- arErrorCode.pop("TXPIJ01904") < 0
- */
- ds_main_list3_insulist.clearData();
- // submit("TRPIJ01903") // 유형 다시로드
- var oParam = {};
- oParam.id = "TRPIJ01903";
- oParam.service = "bfjudgapp.SerDiagOpTermEstm";
- oParam.method = "reqGetEssc";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=insulist";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ01903";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ01903(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ01903(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ01903") > -1
- arErrorCode.pop("TRPIJ01903") < 0
- */
- //model.refresh();
- if(sysf_messageBox("유형복원이 완료 되었습니다. 변경된 내역의 소급처리를", "Q004") == 6){
- var sWindowMsg = "수가계산중입니다...";
- callLoadingWindow(sWindowMsg);
- fReCalc() ;
- removeLoadingWindow();
- }
- //opener.model.refresh();
- opener.javascript.fGetItemInfo();
- sysf_messageBox("소급계산이", "I002");
- fInitialize();
- // activateOpener(); // (common.js)에서 제공하는 함수로 opener를 activate한다.
- // window.close(); // F5 실행시 IE를 종료시킨다.
- }
- } else if (row > 1) {
- var prevsuppkind = model.getValue("ds_main_list3_insulist[" + (row - 1) + "]_suppkind");
- var prevfromdd = model.getValue("ds_main_list3_insulist[" + (row - 1) + "]_fromdd");
- var prevmskind = model.getValue("ds_main_list3_insulist[" + (row - 1) + "]_mskind");
- var prevclamflag = ds_main_list3_insulist.getColumn(row, "clamflag"));
- var nextsuppkind = ds_main_list3_insulist.getColumn((row + 1), "suppkind"));
- var nexttodd = ds_main_list3_insulist.getColumn((row + 1), "todd"));
- var nextclamflag = ds_main_list3_insulist.getColumn((row + 1), "clamflag"));
- var nextmskind = ds_main_list3_insulist.getColumn((row + 1), "mskind"));
- var instcd = ds_main_list3_insulist.getColumn(1, "instcd");
- if (prevsuppkind == "00" && prevclamflag == "N" && (curmskind == prevmskind)) {
- fromdd = prevfromdd;
- ds_hidden_list2_insulist.setColumn( 0, "iphs_fromdd",fromdd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_instcd",instcd); // 임시
- }
- if (nextsuppkind == "00"&& nextclamflag == "N" && (curmskind == nextmskind)) {
- todd = nexttodd;
- ds_hidden_list2_insulist.setColumn( 0, "iphs_todd",todd);
- ds_hidden_list2_insulist.setColumn( 0, "iphs_instcd",instcd); // 임시
- }
- // if(submit("TXPIJ01904")){
- var oParam = {};
- oParam.id = "TXPIJ01904";
- oParam.service = "ipatmngtapp.InhospUpdt";
- oParam.method = "reqExeIphsMerge";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=result";
- oParam.async = false;
- oParam.callback = "cf_TXPIJ01904";
- tranf_submit(oParam);
- /*
- function cf_TXPIJ01904(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPIJ01904(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPIJ01904") > -1
- arErrorCode.pop("TXPIJ01904") < 0
- */
- ds_main_list3_insulist.clearData();
- // submit("TRPIJ01903") // 유형 다시로드
- var oParam = {};
- oParam.id = "TRPIJ01903";
- oParam.service = "bfjudgapp.SerDiagOpTermEstm";
- oParam.method = "reqGetEssc";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=insulist";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ01903";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ01903(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ01903(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ01903") > -1
- arErrorCode.pop("TRPIJ01903") < 0
- */
- //model.refresh();
- if(sysf_messageBox("유형복원이 완료 되었습니다. 변경된 내역의 소급처리를", "Q004") == 6){
- var sWindowMsg = "수가계산중입니다...";
- callLoadingWindow(sWindowMsg);
- fReCalc() ;
- removeLoadingWindow();
- }
- //opener.model.refresh();
- opener.javascript.fGetItemInfo();
- sysf_messageBox("소급계산이", "I002");
- // activateOpener(); // (common.js)에서 제공하는 함수로 opener를 activate한다.
- // window.close(); // F5 실행시 IE를 종료시킨다.
- }
- }
- /*ds_hidden_list2_insulist.setColumn( 0, "iphs_fromdd","20080715");
- ds_hidden_list2_insulist.setColumn( 0, "iphs_todd","99991231");
- ds_hidden_list2_insulist.setColumn( 0, "iphs_instcd","012");
- // submit("TXPIJ01904"); */
- var oParam = {};
- oParam.id = "TXPIJ01904";
- oParam.service = "ipatmngtapp.InhospUpdt";
- oParam.method = "reqExeIphsMerge";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=result";
- oParam.async = false;
- oParam.callback = "cf_TXPIJ01904";
- tranf_submit(oParam);
- /*
- function cf_TXPIJ01904(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPIJ01904(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPIJ01904") > -1
- arErrorCode.pop("TXPIJ01904") < 0
- */
- ds_main_list3_insulist.clearData();
- // submit("TRPIJ01903") // 유형 다시로드
- var oParam = {};
- oParam.id = "TRPIJ01903";
- oParam.service = "bfjudgapp.SerDiagOpTermEstm";
- oParam.method = "reqGetEssc";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=insulist";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ01903";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ01903(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ01903(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ01903") > -1
- arErrorCode.pop("TRPIJ01903") < 0
- */
- //model.refresh();
- /* ds_hidden_source.clearData(); ds_hidden_source.addRow();
- dsf_makeValue( ds_hidden_source, "pid", "string", ds_send_cond.getColumn(0, "pid"));
- dsf_makeValue( ds_hidden_source, "indd", "string", ds_send_cond.getColumn(0, "indd"));
- dsf_makeValue( ds_hidden_source, "cretno", "string", ds_send_cond.getColumn(0, "cretno"));
- dsf_makeValue( ds_hidden_source, "mskind", "string", ds_send_cond.getColumn(0, "mskind"));
- frmf_modal("../../.._pam_ipatmngtweb_xrw_SMPMI00400", "SMPMI00400", "ds_hidden_source""-"ds_hidden_source"", "", "1", "50", "50", "", "", "", "", "", "M"); */
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo) {
- var arow = group3.grd_insulist.rows;
- var hrow = group3.grd_insulist.row;
- if (hrow <= "0"){
- sysf_messageBox("변경할 유형이력을","C002");
- }else{
- var newoperdd = ds_hidden_newoperddsend.getColumn(0, "newoperdd");
- if(newoperdd == ""){
- sysf_messageBox("변경할 유형종료예정일을","C001");
- }else{
- var pid = ds_main_list3_insulist.getColumn(hrow, "pid"));
- var indd = ds_main_list3_insulist.getColumn(hrow, "indd"));
- var cretno = ds_main_list3_insulist.getColumn(hrow, "cretno"));
- var instcd = ds_main_list3_insulist.getColumn(hrow, "instcd"));
- var insukind = ds_main_list3_insulist.getColumn(hrow, "insukind"));
- var suppkind = ds_main_list3_insulist.getColumn(hrow, "suppkind"));
- var fromdd = ds_main_list3_insulist.getColumn(hrow, "fromdd"));
- var todd = ds_main_list3_insulist.getColumn(hrow, "todd"));
- var mskind = ds_main_list3_insulist.getColumn(hrow, "mskind"));
- ds_send_uptoperdd.setColumn( 0, "pid",pid);
- ds_send_uptoperdd.setColumn( 0, "indd",indd);
- ds_send_uptoperdd.setColumn( 0, "cretno",cretno);
- ds_send_uptoperdd.setColumn( 0, "instcd",instcd);
- ds_send_uptoperdd.setColumn( 0, "insukind",insukind);
- ds_send_uptoperdd.setColumn( 0, "suppkind",suppkind);
- ds_send_uptoperdd.setColumn( 0, "fromdd",fromdd);
- ds_send_uptoperdd.setColumn( 0, "todd",todd);
- ds_send_uptoperdd.setColumn( 0, "mskind",mskind);
- ds_send_uptoperdd.setColumn( 0, "newoperdd",newoperdd);
- // submit("TXPIJ01905");
- var oParam = {};
- oParam.id = "TXPIJ01905";
- oParam.service = "bfjudgapp.InHospJudg";
- oParam.method = "reqExeInptOperToddSet";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=result";
- oParam.async = false;
- oParam.callback = "cf_TXPIJ01905";
- tranf_submit(oParam);
- /*
- function cf_TXPIJ01905(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPIJ01905(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPIJ01905") > -1
- arErrorCode.pop("TXPIJ01905") < 0
- */
- var result = ds_hidden_newoperddresult_result.getColumn(0, "inpt_count");
- if(result == "완료"){
- sysf_messageBox("유형종료예정일 저장이","I002");
- fInitialize();
- }else {
- sysf_messageBox("유형종료예정일 저장에","E009");
- }
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|