1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>자보환자관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <search>
- <reference/>
- <reference1/>
- <suppkind/>
- <histstat/>
- <endstat/>
- <reference2/>
- <reference3/>
- <fromdd/>
- <todd/>
- <useyn/>
- </search>
- <save/>
- <save1>
- </save1>
- <cancel>
- <pid/>
- <mngtno/>
- <seqno/>
- </cancel>
- <airasend>
- <pid/>
- <mngtno/>
- <instcd/>
- <insukind/>
- </airasend>
- <search1>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- </search1>
- <SMPAI0020>
- <ipatflag/>
- <pid/>
- <indd/>
- <dschdd/>
- <fromdd/>
- <todd/>
- <cretno/>
- <instcd/>
- <mskind/>
- <sess_posinstcd/>
- </SMPAI0020>
- <search2>
- <pid/>
- <instcd/>
- <aprvfromdd/>
- <aprvtodd/>
- <srchdd/>
- </search2>
- <data1>
- <pid/>
- <remfact/>
- <inpt_instcd/>
- </data1>
- </send>
- <main>
- <condition2>
- <reference>0</reference>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <tel/>
- <acddd/>
- <insucd/>
- <mngtno/>
- <carno/>
- <date1/>
- <date2/>
- <suppkind/>
- <histstat>1</histstat>
- <endstat>1</endstat>
- <term/>
- </condition2>
- <condition>
- <reference>6</reference>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <tel/>
- <acddd/>
- <insucd/>
- <suppkind/>
- <mngtno/>
- <carno/>
- <date1/>
- <date2/>
- <histstat>1</histstat>
- <endstat>1</endstat>
- </condition>
- <ptbspatinfo>
- <hngnm/>
- <rrgstno/>
- <hometel/>
- <mpphontel/>
- <zipcode1/>
- <zipcode2/>
- <zipcdseq/>
- <zipcdaddr/>
- <detladdr/>
- <remfact/>
- <sex/>
- <age/>
- <insucdnm/>
- <ordopendd/>
- <acddd/>
- <mngtno/>
- <oldmngtno/>
- <autmbinsuseqno/>
- <suppkind/>
- <carno/>
- <chrgrnm/>
- <chrgrtel/>
- <aprvfromdd/>
- <aprvtodd/>
- <paylimamt/>
- <chospathcd>
- </chospathcd>
- <endflag>N</endflag>
- <endresncd/>
- <agreenddd/>
- <autmbinsurem/>
- <seqno/>
- <pid/>
- <insertid/>
- <chrgrfaxno/>
- </ptbspatinfo>
- <aipmgrdlist>
- <gridaipmptbs>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <insucdnm/>
- <agreenddd/>
- <ordopendd/>
- <acddd/>
- <mngtno/>
- <aprvfromdd/>
- <aprvtodd/>
- <suppkind/>
- <paylimamt/>
- <carno/>
- <chospathcd/>
- <endflag/>
- <endresncd/>
- <chrgrnm/>
- <chrgrtel/>
- <autmbinsurem/>
- <hometel/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <mpphontel/>
- <detladdr/>
- <remfact/>
- <autmbinsuseqno/>
- <brthdd/>
- <sex/>
- <seqno/>
- <insucd/>
- <histstat/>
- </gridaipmptbs>
- </aipmgrdlist>
- <aipmgrd>
- <gridInsurance>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <insucdnm/>
- <agreenddd/>
- <ordopendd/>
- <acddd/>
- <mngtno/>
- <oldmngtno/>
- <aprvfromdd/>
- <aprvtodd/>
- <suppkind/>
- <paylimamt/>
- <carno/>
- <chospathcd/>
- <endflag/>
- <endresncd/>
- <chrgrnm/>
- <chrgrtel/>
- <chrgrfaxno/>
- <autmbinsurem/>
- <hometel/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <mpphontel/>
- <detladdr/>
- <remfact/>
- <autmbinsuseqno/>
- <brthdd/>
- <sex/>
- <seqno/>
- <insucd/>
- <histstat/>
- <outorddd/>
- <inadrvdd/>
- </gridInsurance>
- </aipmgrd>
- <aimtgrd>
- <gridaimtsearch>
- <update/>
- <state/>
- <pid/>
- <mngtno/>
- <mtrtseqno/>
- <seqno/>
- <instcd/>
- <histstat/>
- <ordflag/>
- <orddeptcd/>
- <orddeptnm/>
- <specordyn/>
- <ordopendd/>
- <ordtodd/>
- <autmbinsutermrem/>
- <orgspecordyn/>
- </gridaimtsearch>
- </aimtgrd>
- <paygrntgrd>
- <paygrntinfo>
- <update/>
- <state/>
- <pid/>
- <mngtno/>
- <mtrtseqno/>
- <seqno/>
- <instcd/>
- <histstat/>
- <paygrntno/>
- <ordopendd/>
- <ordtodd/>
- <paygrntrem/>
- </paygrntinfo>
- </paygrntgrd>
- <otptgrd>
- <otptinfo>
- <update/>
- <state/>
- <pid/>
- <orddd/>
- <orddeptcd/>
- <orddeptnm/>
- <insucd/>
- </otptinfo>
- </otptgrd>
- <profcertgrd>
- <grdprofcertinfo>
- <chosflag/>
- <prntkind/>
- <orddd/>
- <orddept/>
- <doctnm/>
- <issdd/>
- <freeissresn/>
- </grdprofcertinfo>
- </profcertgrd>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- <autolimit>
- <aipm_insucdnm/>
- <aipm_aprvfromdd/>
- <aipm_aprvtodd/>
- <aipm_paylimamt/>
- <aipm_intotuseamt/>
- <aipm_outtotuseamt/>
- <aipm_bal/>
- </autolimit>
- <paygrntgrd/>
- </main>
- <hidden>
- <ptbspatinfo>
- <pid/>
- <rrgstno/>
- <hngnm/>
- <hometel/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <mpphontel/>
- <detladdr/>
- <remfact/>
- <sex/>
- <brthdd/>
- </ptbspatinfo>
- <popupmenu>
- <gridmenu>
- <item>
- <name>추가</name>
- <func>fGridAddRow</func>
- </item>
- <item>
- <name>삽입</name>
- <func>fGridInsertRow</func>
- </item>
- <item>
- <name>삭제</name>
- <func>fGridDeleteRow</func>
- </item>
- <item>
- <name>엑셀저장</name>
- <func>fGridSaveExcel</func>
- </item>
- </gridmenu>
- </popupmenu>
- <session/>
- <rcv/>
- </hidden>
- <init>
- <insucd>
- <cd/>
- <nm/>
- </insucd>
- <orddeptcd>
- <cd/>
- <nm/>
- <deptengabbr/>
- <io/>
- </orddeptcd>
- <suppkind>
- <up/>
- <cd/>
- <nm/>
- <io/>
- </suppkind>
- <endresncd>
- <cd/>
- <nm/>
- </endresncd>
- <instcd>012</instcd>
- <sess_posinstcd>012</sess_posinstcd>
- </init>
- <temp>
- <chospathcd>
- <items>
- <cd>1</cd>
- <nm>외래</nm>
- </items>
- <items>
- <cd>2</cd>
- <nm>응급실</nm>
- </items>
- <items>
- <cd>3</cd>
- <nm>전원</nm>
- </items>
- </chospathcd>
- <endresncd>
- <items>
- <nm>계속</nm>
- <cd>1</cd>
- </items>
- <items>
- <nm>합의</nm>
- <cd>2</cd>
- </items>
- <items>
- <nm>사망</nm>
- <cd>3</cd>
- </items>
- <items>
- <nm>중지</nm>
- <cd>4</cd>
- </items>
- <items>
- <nm>전원</nm>
- <cd>5</cd>
- </items>
- </endresncd>
- <autmbinsuamtlist>
- <aipm_pid/>
- <aipm_hngnm/>
- <aipm_instcd/>
- <aipm_insukind/>
- <aipm_suppkind/>
- <aipm_autmbinsuseqno/>
- <aipm_insucmpycd/>
- <aipm_insucdnm/>
- <aipm_ordopendd/>
- <aipm_aprvfromdd/>
- <aipm_aprvtodd/>
- <aipm_paylimamt/>
- <aipm_orddd/>
- <aipm_ordtype/>
- <aipm_totamt/>
- <aipm_insuamt/>
- <aipm_ownamt/>
- <aipm_acmlamt/>
- <aipm_balamt/>
- <aipm_percent/>
- </autmbinsuamtlist>
- <checkendflag/>
- </temp>
- <init1>
- <P0101list>
- <P0101>
- <cdnm/>
- <cdid/>
- </P0101>
- </P0101list>
- <P0028list>
- <P0028>
- <cdnm/>
- <cdid/>
- </P0028>
- </P0028list>
- <P0038list>
- <P0038>
- <cdnm/>
- <cdid/>
- </P0038>
- </P0038list>
- </init1>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXPAI02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/hidden/rcv"/>
- <!--
- <submission id="TRPAI02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search2" replace="instance" resultref="/root/main/autolimit"/>
- -->
- <submission id="TRPMC02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/aipmgrd"/>
- <submission id="TRPMC02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/instcd" resultref="/root/init"/>
- <submission id="TRPMC02603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/ptbspatinfo/pid" resultref="/root/main/profcertgrd"/>
- <submission id="TRPMC02604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save1" resultref="/root/main/aimtgrd"/>
- <submission id="TRPMC02605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/hidden"/>
- <submission id="TRPMC02606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/aipmgrdlist"/>
- <submission id="TRPMC02607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search2" resultref="/root/temp/autmbinsuamtlist"/>
- <submission id="TRPMC02608" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save1" resultref="/root/main/paygrntgrd"/>
- <submission id="TRPMC02610" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save1" resultref="/root/main/otptgrd"/>
- <submission id="TRPMC02611" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save1" resultref="/root/temp/undoexeclist"/>
- <submission id="TXPMC02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save"/>
- <submission id="TXPMC02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cancel"/>
- <submission id="TXPMC02603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save1"/>
- <submission id="TXPMC02604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save1"/>
- <submission id="TXPMC02605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save1"/>
- <submission id="TXPMC02606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //2014/08/29 이정택 추가
- ipt_fromdd.value=getCurrentDate();
- ipt_todd.value=getCurrentDate();
- rdo_useyn.value="N";
- //2014/08/29 이정택 추가
-
- fGetUserInfosSampling(); //세션정보
-
- zbcfGetCodeList(new Array("P0101","P0028","P0038"),new Array("/root/init1/P0101list","/root/init1/P0028list","/root/init1/P0038list"));
- model.setValue("/root/main/ptbspatinfo/endresncd" , "1");
- model.setValue("/root/main/condition/endstat" , "1");
- model.setValue("/root/main/condition/histstat" , "1");
-
- cmb_endresncd.disabled = true;
-
- submit("TRPMC02602");
-
- // 화면 오픈 시 개인자보관리 탭이 기본으로 열리도록 수정
- btn_mngt.selected= true;
- btn_mngt.dispatch("xforms-activate");
-
- ipt_pid1.visible = false;
- ipt_date1.visible = false;
- ipt_date2.visible = false;
- ipt_carno1.visible = false;
- ipt_mngtno1.visible = false;
- cmb_insucd1.visible = false;
- ipt_acddd1.visible = false;
- caption1.visible= false;
- ipt_hngnm1.visible = false;
- ipt_rrgstno1.visible = false;
- ipt_tel1.visible = false;
- //2008.03.14 추가
- ipt_pid2.visible = false;
- ipt_date3.visible = false;
- ipt_date4.visible = false;
- ipt_carno2.visible = false;
- ipt_mngtno2.visible = false;
- cmb_insucd2.visible = false;
- ipt_acddd2.visible = false;
- caption8.visible= false;
- ipt_hngnm2.visible = false;
- ipt_rrgstno2.visible = false;
- ipt_tel2.visible = false;
- bool6.visible = false;
- caption41.visible = false;
-
- //2007-10-16 이동식 추가 - 다른화면에서 호출시 자동환자정보조회
- if (checkOpener()){ //팝업화면으로 사용될 때
- //RSRVFLAG, ETCORDFLAG 를 받아온다.
- var pid = opener.javascript.getParameter("SMPMC02600_pid");
- if( pid == '' || pid == ' ' || pid == '-' ){
- model.setValue("/root/main/condition/reference", "6"); //보험회사
- cmb_reference.dispatch("xforms-select");
- }else{
- model.setValue("/root/main/condition/reference", "1"); //환자번호
- cmb_reference.dispatch("xforms-select");
- model.setValue("/root/main/condition/pid", pid);
- btn_search.dispatch("DOMActivate");
- }
-
- // model.setValue("/root/main/condition/reference", "0");
- // cmb_reference.refresh();
- // ipt_pid1.visible = false;
- //
- // btn_mngt.selected= true;
- // btn_mngt.dispatch("xforms-activate");
- } else {
- // 기본으로 환자번호 조건 설정
- model.setValue("/root/main/condition/reference", "6");
- cmb_reference.refresh();
- cmb_reference.dispatch("xforms-select");
- //ipt_carno1.visible = true;
- //model.setFocus("ipt_pid1");
- }
- //END..
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /*
- * Byte 수를 저장할 변수 체크
- */
- function fGetOracleByteLength(pValue){
- var rtnValue = 0;
- for(var i=0; i < pValue.length; i++){
- (pValue.charCodeAt(i) > 255) ? rtnValue += 3 : rtnValue += 1; //한글이 들어오면 255보다 크다
- }
- return rtnValue;
- }
-
- /*
- * 세션정보
- */
- function fGetUserInfosSampling(){
- var sUserInfosS = getUserInfos();
- sUserInfosS = sUserInfosS + "|";
- var UserInfosS_Array = sUserInfosS.split("|");
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- var posinstcd = UserInfosS_Array[2]; //소속기관코드
- var posinstnm = UserInfosS_Array[3]; //소속기관명
- var posdeptcd = UserInfosS_Array[4]; //소속부서코드
- var posdeptnm = UserInfosS_Array[5]; //소속부서명
- model.makeNode("/root/hidden/session/" + "userid");
- model.makeNode("/root/hidden/session/" + "usernm");
- model.makeNode("/root/hidden/session/" + "posinstcd");
- model.makeNode("/root/hidden/session/" + "posinstnm");
- model.makeNode("/root/hidden/session/" + "posdeptcd");
- model.makeNode("/root/hidden/session/" + "posdeptnm")
- if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
- if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "012";
- model.setValue("/root/hidden/session/userid",userid);
- model.setValue("/root/hidden/session/usernm",usernm);
- model.setValue("/root/hidden/session/posinstcd",posinstcd);
- model.setValue("/root/hidden/session/posinstnm",posinstnm);
- model.setValue("/root/hidden/session/posdeptcd",posdeptcd);
- model.setValue("/root/hidden/session/posdeptnm",posdeptnm);
- model.refresh();
- }
-
- function condition_initialize(){
- model.setValue("/root/main/condition/pid", "");
- model.setValue("/root/main/condition/hngnm", "");
- model.setValue("/root/main/condition/rrgstno", "");
- model.setValue("/root/main/condition/tel", "");
- model.setValue("/root/main/condition/acddd", "");
- model.setValue("/root/main/condition/insucd", "");
- model.setValue("/root/main/condition/suppkind", "");
- model.setValue("/root/main/condition/mngtno", "");
- model.setValue("/root/main/condition/carno", "");
- model.setValue("/root/main/condition/date1", "");
- model.setValue("/root/main/condition/date2", "");
- model.refresh();
- }
-
- function condition2_initialize(){
- model.setValue("/root/main/condition2/pid", "");
- model.setValue("/root/main/condition2/hngnm", "");
- model.setValue("/root/main/condition2/rrgstno", "");
- model.setValue("/root/main/condition2/tel", "");
- model.setValue("/root/main/condition2/acddd", "");
- model.setValue("/root/main/condition2/insucd", "");
- model.setValue("/root/main/condition2/suppkind", "");
- model.setValue("/root/main/condition2/mngtno", "");
- model.setValue("/root/main/condition2/carno", "");
- model.setValue("/root/main/condition2/date1", "");
- model.setValue("/root/main/condition2/date2", "");
- model.refresh();
- }
-
- function fInitialize(){
- model.resetInstanceNode("/root/main/ptbspatinfo"); //인적사항import clear
- //그 외에 화면 초기화
- model.resetInstanceNode("/root/main/ptbspatinfo/pid");
- model.resetInstanceNode("/root/main/ptbspatinfo/rrgstno");
- model.resetInstanceNode("/root/hidden/ptbspatinfo");
- model.resetInstanceNode("/root/send/save");
- model.resetInstanceNode("/root/send/save1");
- model.resetInstanceNode("/root/send/cancel");
- model.resetInstanceNode("/root/send/airasend");
- model.removeNodeset("/root/main/aipmgrd/gridInsurance");
- model.removeNodeset("/root/main/aimtgrd/gridaimtsearch");
- model.removeNodeset("/root/main/aimtgrd/grdprofcertinfo");
- model.removeNodeset("/root/main/paygrntgrd/paygrntinfo");
- // model.setValue("/root/send/srchcond","AA"); //조회조건 [전체]로 세팅
- // model.setValue("/root/main/ptbspatinfo/autmbinsuseqno", getCurrentDate());
- model.refresh();
- }
-
- function fGridAddRow() {
- grd_aimtSearch.addRow(grd_aimtSearch.row, true);
- grd_aimtSearch.cellStyle("background-image", grd_aimtSearch.row, 1) = "../../../com/commonweb/images/icon_i.gif";
- // model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/state", "I");
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/pid", model.getvalue("/root/main/ptbspatinfo/pid"));
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mngtno", model.getvalue("/root/main/ptbspatinfo/mngtno"));
- if (grd_aimtSearch.row <= grd_aimtSearch.rows-1) {
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.row);
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.row);
- } else {
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.rows-1);
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.rows-1);
- }
- //model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", "1");
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/instcd", model.getValue("/root/hidden/session/posinstcd"));
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/histstat", "Y");
-
- grd_aimtSearch.refresh();
- }
-
- function fGridInsertRow() {
- if(grd_aimtSearch.row != -1) {
- grd_aimtSearch.insertRow(grd_aimtSearch.row, true);
- grd_aimtSearch.cellStyle("background-image", grd_aimtSearch.row, 1) = "../../../com/commonweb/images/icon_i.gif";
- // model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/state", "I");
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/pid", model.getvalue("/root/main/ptbspatinfo/pid"));
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mngtno", model.getvalue("/root/main/ptbspatinfo/mngtno"));
- if (grd_aimtSearch.row <= grd_aimtSearch.rows-1) {
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.row);
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.row);
- } else {
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.rows-1);
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.rows-1);
- }
- //model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", "1");
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/instcd", model.getValue("/root/hidden/session/posinstcd"));
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/histstat", "Y");
-
- grd_aimtSearch.refresh();
- }
- }
-
- function fGridDeleteRow() {
- grd_aimtSearch.addStatus(grd_aimtSearch.row, "delete");
- grd_aimtSearch.cellStyle("background-image", grd_aimtSearch.row, 1) = "../../../com/commonweb/images/icon_d.gif";
- }
-
- /*
- * 2008.03.20 최병진 - 자보한도액, 발생금액 비교(80% 초과 체크)
- */
- function fGetAutmbInsuLimAmt(gridID, data){
- var gridObj = document.all(gridID);
- gridObj.allstyle("all", "background-color") = "#ffffff";
-
- for(var idx=gridObj.fixedRows; idx<gridObj.rows; idx++){
- /*
- * 보조유형 체크
- * 18-자손/책임/무보험
- * 91-자손/책임/무보험 안전띠미착용20% - 201307005
- */
- var sSuppkind = model.getValue("/root/main/aipmgrdlist/gridaipmptbs[" + idx +"]/suppkind");
- if (sSuppkind == "18" || sSuppkind == "91"){
- model.setValue("/root/send/search2/pid" , model.getValue("/root/main/aipmgrdlist/gridaipmptbs[" + idx +"]/pid"));
- model.setValue("/root/send/search2/instcd" , getUserInfo("posinstcd"));
- model.setValue("/root/send/search2/aprvfromdd" , model.getValue("/root/main/aipmgrdlist/gridaipmptbs[" + idx +"]/aprvfromdd"));
- model.setValue("/root/send/search2/aprvtodd" , model.getValue("/root/main/aipmgrdlist/gridaipmptbs[" + idx +"]/aprvtodd"));
- model.setValue("/root/send/search2/srchdd" , "");
- submit("TRPMC02607");
-
- var rows = getNodesetCount("/root/temp/autmbinsuamtlist");
- if (rows > 0) {
- for (var i = 1 ; i <= rows ; i++) {
- var tPercent = model.getValue("/root/temp/autmbinsuamtlist[" + i + "]/aipm_percent");
- if (parseFloat(tPercent) >= parseFloat(data)) {
- gridObj.rowstyle( idx , "data" , "background-color" ) = "#ffe79d";
- break;
- }
- }
- }
- }
- }
- model.refresh();
- }
-
- /*
- * 보조유형 체크
- * 18-자손/책임/무보험
- * 91-자손/책임/무보험 안전띠미착용20% - 201307005
- */
- function fCheckAutmbInsuLimAmt(){
- var sSuppkind = model.getValue("/root/main/ptbspatinfo/suppkind");
- var iPayLimAmt = Number(model.getValue("/root/main/ptbspatinfo/paylimamt"));
- if(sSuppkind == "18" || sSuppkind == "91"){
- if(iPayLimAmt <= 0){
- messageBox("보조유형과 지불한도액을 확인하세요!", "I000");
- return false;
- }
- }else if(iPayLimAmt > 0){
- messageBox("보조유형과 지불한도액을 확인하세요!", "I000");
- return false;
- }
- return true;
- }
-
- /*
- * 보험이력 체크
- */
- function fCheckAipm(){
- var insucdnm = model.getValue("/root/main/ptbspatinfo/insucdnm");
- var acddd = model.getValue("/root/main/ptbspatinfo/acddd");
- var mngtno = model.getValue("/root/main/ptbspatinfo/mngtno");
- var returnValue = "true";
-
- while(i<=grd_Insurance.rows-1){
- if(model.getValue("/root/main/aipmgrd/gridInsurance[" + i + "]/insucdnm") == insucdnm
- && model.getValue("/root/main/aipmgrd/gridInsurance[" + i + "]/acddd") == acddd
- && model.getValue("/root/main/aipmgrd/gridInsurance[" + i + "]/mngtno") == mngtno){
- messageBox("[" + i + "]번째 중복된 보험이력이 존재합니다. "+ insucdnm + "(" + acddd + " " +mngtno + ")", "I000");
- returnValue = "false";
- break;
- }
- i++;
- }
- return returnValue;
- }
-
- /*
- * 종결처리 시 미시행 처방 체크
- */
- function fCheckUndoExec(){
- copyNodeType("/root/send/save1", "/root/main/ptbspatinfo", "replace");
-
- submit("TRPMC02611");
- var rows = getNodesetCount("/root/temp/undoexeclist");
- if(rows > 0){
- var orddd = model.getValue("/root/temp/undoexeclist/orddd");
- var orddeptnm = model.getValue("/root/temp/undoexeclist/orddeptnm");
- var orddrnm = model.getValue("/root/temp/undoexeclist/orddrnm");
- var msg = "[진료일자 : " + orddd + " " + orddeptnm + "(" + orddrnm + ")]";
- if(messageBox("미시행 처방이 존재합니다."+msg+" 계속", "Q002", "") != 6 ){
- return false;
- }
- return true;
- }
- return true;
- }
-
- /*
- * 세부정보 조회
- * 기간관리, 지급보증번호, 진료이력관리
- */
- function fGetDetInfo(){
- copyNodeType("/root/send/save1", "/root/main/ptbspatinfo", "replace");
- model.removeNodeset("/root/main/aimtgrd/gridaimtsearch");
- model.removeNodeset("/root/main/aimtgrd/grdprofcertinfo");
- model.removeNodeset("/root/main/paygrntgrd/paygrntinfo");
- model.removeNodeset("/root/main/otpgrd/otptinfo");
- grd_aimtSearch.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
- grd_profcertinfo.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
- grd_paygrnt.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
- grd_otpt.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
- submit("TRPMC02604"); //자보 기간관리 조회
- submit("TRPMC02608"); //자보 지급보증번호 조회
- submit("TRPMC02610"); //자보 진료이력 조회
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:98px; ">자보환자관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <switch id="swt_aipmmngt" style="left:0px; top:26px; width:1194px; height:713px; ">
- <case id="aipmlist">
- <group id="group5" style="left:10px; top:10px; width:1172px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1172px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_mngtno2" ref="/root/main/condition2/mngtno" class="input_search" style="left:199px; top:9px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // btn_search.dispatch("DOMActivate");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_rrgstno2" ref="/root/main/condition2/rrgstno" class="input_search" maxlength="14" format="999999-9999999" style="left:199px; top:9px; width:150px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // inputEnterKey("btn_search", "DOMActivate");
- setInputNodeCurText();
- var rrgstno = model.getValue("/root/main/condition/rrgstno");
-
- model.setValue("/root/send/search1/rrgstno1", rrgstno.substring(0,6));
- model.setValue("/root/send/search1/rrgstno2", rrgstno.substring(7,14));
- model.setValue("/root/send/search1/srchcond","3");
- modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
- // ipt_rrgstno1.visible = "hidden";
- model.setValue("/root/main/condition/reference", "1");
- model.setValue("/root/main/condition/rrgstno", "");
- model.setValue("/root/main/condition/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- inputEnterKey("btn_search", "DOMActivate");
- ipt_pid1.visible = false;
- ipt_hngnm1.visible = false;
- ipt_rrgstno1.visible = false;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_carno2" ref="/root/main/condition2/carno" class="input_search" maxlength="20" style="left:199px; top:9px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // btn_search.dispatch("DOMActivate");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_insucd2" ref="/root/main/condition2/insucd" class="combo_search" appearance="minimal" style="left:199px; top:34px; width:236px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/insucd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- // inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption8" style="left:312px; top:10px; width:15px; height:20px; ">~</caption>
- <input id="ipt_acddd2" ref="/root/main/condition2/acddd" class="input_search" inputtype="date" style="left:199px; top:9px; width:111px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // btn_search.dispatch("DOMActivate");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_pid2" ref="/root/main/condition2/pid" class="input_search" imemode="numeric" maxlength="10" format="9999999999" style="left:199px; top:9px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // inputEnterKey("btn_search", "DOMActivate");
- setInputNodeCurText();
- model.setValue("/root/send/search1/pid",model.getValue("/root/main/condition/pid"));
- model.setValue("/root/send/search1/srchcond","1");
- modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
- model.setValue("/root/main/condition/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- inputEnterKey("btn_search", "DOMActivate");
- ipt_pid1.visible = false;
- ipt_hngnm1.visible = false;
- ipt_rrgstno1.visible = false;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_tel2" ref="/root/main/condition2/tel" class="input_search" imemode="numeric" maxlength="13" style="left:199px; top:9px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // btn_search.dispatch("DOMActivate");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_hngnm2" ref="/root/main/condition2/hngnm" class="input_search" imemode="hangul" maxlength="50" style="left:199px; top:9px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // inputEnterKey("btn_search", "DOMActivate");
- setInputNodeCurText();
- model.setValue("/root/send/search1/hngnm",model.getValue("/root/main/condition/hngnm"));
- model.setValue("/root/send/search1/srchcond","2");
- modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
- model.setValue("/root/main/condition/reference", "1");
- model.setValue("/root/main/condition/hngnm", "");
- model.setValue("/root/main/condition/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- inputEnterKey("btn_search", "DOMActivate");
- ipt_pid1.visible = false;
- ipt_hngnm1.visible = false;
- ipt_rrgstno1.visible = false;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption39" class="search_name" style="left:18px; top:9px; width:86px; height:17px; ">조회조건</caption>
- <select1 id="cmb_reference2" ref="/root/main/condition2/reference" class="combo_search" appearance="minimal" style="left:104px; top:9px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>환자번호</label>
- <value>1</value>
- </item>
- <item>
- <label>환자성명</label>
- <value>2</value>
- </item>
- <item>
- <label>주민번호</label>
- <value>3</value>
- </item>
- <item>
- <label>전화번호</label>
- <value>4</value>
- </item>
- <item>
- <label>사고일시</label>
- <value>5</value>
- </item>
- <item>
- <label>보험회사</label>
- <value>6</value>
- </item>
- <item>
- <label>접수번호</label>
- <value>7</value>
- </item>
- <item>
- <label>차량번호</label>
- <value>8</value>
- </item>
- <item>
- <label>외래일자</label>
- <value>9</value>
- </item>
- <item>
- <label>입원일자</label>
- <value>10</value>
- </item>
- <item>
- <label>진료개시일</label>
- <value>11</value>
- </item>
- <item>
- <label>승인시작일</label>
- <value>12</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- condition_initialize();
- // fInitialize();
-
- var referenceValue = cmb_reference2.value;
-
- if (referenceValue == "10") {
- model.setValue("/root/main/condition2/histstat", "2"); // 재원구분 '재원'으로 설정
- rdo_histstat2.refresh();
- }
-
- switch (referenceValue){
- case "0":
- ipt_pid2.visible = false;
- ipt_date3.visible = false;
- ipt_date4.visible = false;
- ipt_carno2.visible = false;
- ipt_mngtno2.visible = false;
- cmb_insucd2.visible = false;
- ipt_acddd2.visible = false;
- caption8.visible= false;
- ipt_hngnm2.visible = false;
- ipt_rrgstno2.visible = false;
- ipt_tel2.visible = false;
- bool6.visible = false;
- caption41.visible = false;
- break;
- case "1":
- ipt_pid2.visible = true;
- ipt_date3.visible = false;
- ipt_date4.visible = false;
- ipt_carno2.visible = false;
- ipt_mngtno2.visible = false;
- cmb_insucd2.visible = false;
- ipt_acddd2.visible = false;
- caption8.visible= false;
- ipt_hngnm2.visible = false;
- ipt_rrgstno2.visible = false;
- ipt_tel2.visible = false;
- bool6.visible = false;
- caption41.visible = false;
- ipt_pid2.refresh();
- model.setFocus("ipt_pid2");
- break;
- case "2":
- ipt_hngnm2.visible = true;
- ipt_date3.visible = false;
- ipt_date4.visible = false;
- ipt_carno2.visible = false;
- ipt_mngtno2.visible = false;
- cmb_insucd2.visible = false;
- ipt_acddd2.visible = false;
- caption8.visible= false;
- ipt_pid2.visible=false;
- ipt_rrgstno2.visible = false;
- ipt_tel2.visible = false;
- ipt_rrgstno2.visible = false;
- bool6.visible = false;
- caption41.visible = false;
- ipt_hngnm2.refresh();
- model.setFocus("ipt_hngnm2");
- break;
- case "3":
- ipt_rrgstno2.visible = true;
- ipt_date3.visible = false;
- ipt_date4.visible = false;
- ipt_carno2.visible = false;
- ipt_mngtno2.visible = false;
- cmb_insucd2.visible = false;
- ipt_acddd2.visible = false;
- ipt_hngnm2.visible=false;
- ipt_pid2.visible=false;
- caption8.visible= false;
- ipt_tel2.visible = false;
- bool6.visible = false;
- caption41.visible = false;
- ipt_rrgstno2.refresh();
- model.setFocus("ipt_rrgstno2");
- break;
- case "4":
- ipt_tel2.visible = true;
- ipt_date3.visible = false;
- ipt_date4.visible = false;
- ipt_carno2.visible = false;
- ipt_mngtno2.visible = false;
- cmb_insucd2.visible = false;
- ipt_acddd2.visible = false;
- ipt_rrgstno2.visible = false;
- ipt_hngnm2.visible=false;
- ipt_pid2.visible=false;
- caption8.visible= false;
- bool6.visible = false;
- caption41.visible = false;
- ipt_tel2.refresh();
- model.setFocus("ipt_tel2");
- break;
- case "5":
- ipt_acddd2.visible = true;
- ipt_date3.visible = false;
- ipt_date4.visible = false;
- ipt_carno2.visible = false;
- ipt_mngtno2.visible = false;
- cmb_insucd2.visible = false;
- ipt_tel2.visible = false;
- ipt_rrgstno2.visible = false;
- ipt_hngnm2.visible=false;
- ipt_pid2.visible=false;
- caption8.visible= false;
- bool6.visible = false;
- caption41.visible = false;
- ipt_acddd2.refresh();
- model.setFocus("ipt_acddd2");
- break;
- case "6":
- cmb_insucd2.visible = true;
- ipt_date3.visible = true;
- ipt_date4.visible = true;
- ipt_carno2.visible = false;
- ipt_mngtno2.visible = false;
- ipt_acddd2.visible = false;
- ipt_tel2.visible = false;
- ipt_rrgstno2.visible = false;
- ipt_hngnm2.visible=false;
- ipt_pid2.visible=false;
- caption8.visible= true;
- bool6.visible = true;
- caption41.visible = true;
- cmb_insucd2.refresh();
- model.setFocus("cmb_insucd2");
- break;
- case "7":
- ipt_mngtno2.visible = true;
- ipt_date3.visible = false;
- ipt_date4.visible = false;
- ipt_carno2.visible = false;
- cmb_insucd2.visible = false;
- ipt_acddd2.visible = false;
- ipt_tel2.visible = false;
- ipt_rrgstno2.visible = false;
- ipt_hngnm2.visible=false;
- ipt_pid2.visible=false;
- caption8.visible= false;
- bool6.visible = false;
- caption41.visible = false;
- ipt_mngtno2.refresh();
- model.setFocus("ipt_mngtno2");
- break;
- case "8":
- ipt_carno2.visible = true;
- ipt_date3.visible = false;
- ipt_date4.visible = false;
- ipt_mngtno2.visible = false;
- cmb_insucd2.visible = false;
- ipt_acddd2.visible = false;
- ipt_tel2.visible = false;
- ipt_rrgstno2.visible = false;
- ipt_hngnm2.visible=false;
- ipt_pid2.visible=false;
- caption8.visible= false;
- bool6.visible = false;
- caption41.visible = false;
- ipt_carno2.refresh();
- model.setFocus("ipt_carno2");
- break;
- case "9":
- ipt_date3.visible = true;
- ipt_date4.visible = true;
- caption8.visible= true;
- ipt_carno2.visible = false;
- cmb_insucd2.visible = false;
- ipt_mngtno2.visible = false;
- ipt_acddd2.visible = false;
- ipt_tel2.visible = false;
- ipt_rrgstno2.visible = false;
- ipt_hngnm2.visible=false;
- ipt_pid2.visible=false;
- bool6.visible = false;
- caption41.visible = false;
- ipt_date3.refresh();
- ipt_date4.refresh();
- model.setFocus("ipt_date3");
- break;
- case "10":
- ipt_date3.visible = true;
- ipt_date4.visible = true;
- caption8.visible= true;
- ipt_carno2.visible = false;
- cmb_insucd2.visible = false;
- ipt_mngtno2.visible = false;
- ipt_acddd2.visible = false;
- ipt_tel2.visible = false;
- ipt_rrgstno2.visible = false;
- ipt_hngnm2.visible=false;
- ipt_pid2.visible=false;
- bool6.visible = false;
- caption41.visible = false;
- ipt_date3.refresh();
- ipt_date4.refresh();
- caption8.refresh();
- model.setFocus("ipt_date3");
- break;
- case "11":
- ipt_date3.visible = true;
- ipt_date4.visible = true;
- caption8.visible= true;
- ipt_carno2.visible = false;
- cmb_insucd2.visible = false;
- ipt_mngtno2.visible = false;
- ipt_acddd2.visible = false;
- ipt_tel2.visible = false;
- ipt_rrgstno2.visible = false;
- ipt_hngnm2.visible=false;
- ipt_pid2.visible=false;
- bool6.visible = false;
- caption41.visible = false;
- ipt_date3.refresh();
- ipt_date4.refresh();
- model.setFocus("ipt_date3");
- break;
- case "12":
- ipt_date3.visible = true;
- ipt_date4.visible = true;
- caption8.visible= true;
- ipt_carno2.visible = false;
- cmb_insucd2.visible = false;
- ipt_mngtno2.visible = false;
- ipt_acddd2.visible = false;
- ipt_tel2.visible = false;
- ipt_rrgstno2.visible = false;
- ipt_hngnm2.visible=false;
- ipt_pid2.visible=false;
- bool6.visible = false;
- caption41.visible = false;
- ipt_date3.refresh();
- ipt_date4.refresh();
- model.setFocus("ipt_date3");
- break;
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_date3" ref="/root/main/condition2/date1" class="input_search" inputtype="date" style="left:199px; top:9px; width:111px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- model.setFocus("ipt_date2");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_date4" ref="/root/main/condition2/date2" class="input_search" inputtype="date" style="left:324px; top:9px; width:111px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // btn_search.dispatch("DOMActivate");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_search2" class="btn1_letter2" style="left:1096px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
-
- var flag = true;
- var referenceValue = cmb_reference2.value;
- model.setValue("/root/send/search/reference", referenceValue);
-
- switch (referenceValue){
- case "0":
- model.setValue("/root/send/search/reference", "0");
- model.setValue("/root/send/search/reference1", "");
- model.setValue("/root/send/search/reference2", "");
- model.setValue("/root/send/search/reference3", "");
- break;
- case "1":
- if (model.getValue("/root/main/condition2/pid") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/pid"));
- model.setValue("/root/send/search/reference2", "");
- model.setValue("/root/send/search/reference3", "");
- break;
- case "2":
- // model.setValue("/root/send/search1/srchcond","2");
- // model.setValue("/root/send/search1/hngnm", model.getValue("/root/main/condition/hngnm"));
- // modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/search1", "/root/send");
- // model.resetInstanceNode("/root/send/search1");
- if (model.getValue("/root/main/condition2/hngnm") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/hngnm"));
- model.setValue("/root/send/search/reference2", "");
- model.setValue("/root/send/search/reference3", "");
- break;
- case "3":
- if (model.getValue("/root/main/condition2/rrgstno") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/rrgstno"));
- model.setValue("/root/send/search/reference2", "");
- model.setValue("/root/send/search/reference3", "");
- break;
- case "4":
- if (model.getValue("/root/main/condition2/tel") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/tel"));
- model.setValue("/root/send/search/reference2", "");
- model.setValue("/root/send/search/reference3", "");
- break;
- case "5":
- if (model.getValue("/root/main/condition2/acddd") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/acddd"));
- model.setValue("/root/send/search/reference2", "");
- model.setValue("/root/send/search/reference3", "");
- break;
- case "6":
- if (model.getValue("/root/main/condition2/insucd") == "") {
- flag = false;
- }
- var terms = model.getValue("/root/main/condition2/term");
- if(terms=="Y" ){
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/insucd"));
- model.setValue("/root/send/search/reference2", "");
- model.setValue("/root/send/search/reference3", "");
- }
- else {
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/insucd"));
- model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition2/date1"));
- model.setValue("/root/send/search/reference3", model.getValue("/root/main/condition2/date2"));
- }
- break;
- case "7":
- if (model.getValue("/root/main/condition2/mngtno") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/mngtno"));
- model.setValue("/root/send/search/reference2", "");
- model.setValue("/root/send/search/reference3", "");
- break;
- case "8":
- if (model.getValue("/root/main/condition2/carno") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/carno"));
- model.setValue("/root/send/search/reference2", "");
- model.setValue("/root/send/search/reference3", "");
- break;
- case "9":
- if (model.getValue("/root/main/condition2/date1") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/date1"));
- model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition2/date2"));
- model.setValue("/root/send/search/reference3", "");
- break;
- case "10":
- if (model.getValue("/root/main/condition2/date1") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/date1"));
- model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition2/date2"));
- model.setValue("/root/send/search/reference3", "");
- break;
- case "11":
- if (model.getValue("/root/main/condition2/date1") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/date1"));
- model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition2/date2"));
- model.setValue("/root/send/search/reference3", "");
- break;
- case "12":
- if (model.getValue("/root/main/condition2/date1") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/date1"));
- model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition2/date2"));
- model.setValue("/root/send/search/reference3", "");
- break;
- }
-
- model.setValue("/root/send/search/suppkind", model.getValue("/root/main/condition2/suppkind"));
- model.setValue("/root/send/search/histstat", model.getValue("/root/main/condition2/histstat"));
- model.setValue("/root/send/search/endstat", model.getValue("/root/main/condition2/endstat"));
-
- if (flag == true) {
- // submission 추가해야함
- submit("TRPMC02606"); /* 보험이력조회 */
-
- // 2009.07.11 - 조회 후 조회조건 초기화 하지 않음 - 성가 요청
- //model.setValue("/root/main/condition2/reference", "0");
- //model.setValue("/root/main/condition2/endstat","1");
- //model.setValue("/root/main/condition2/histstat","1");
- //cmb_reference2.dispatch("xforms-select");
- //condition2_initialize();
-
- // 자보한도액이 80%이상인 환자는 컬러 변경
- fGetAutmbInsuLimAmt("grd_aipmptbslist", "80");
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_suppkind2" ref="/root/main/condition2/suppkind" class="combo_search" visibility="visible" appearance="minimal" style="left:620px; top:9px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/suppkind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("rdo_histstat2");
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "13") {
- model.setFocus("rdo_histstat2");
- }
- ]]>
- </script>
- </select1>
- <select1 id="rdo_endstat2" ref="/root/main/condition2/endstat" class="radio_search" visibility="visible" appearance="full" cols="3" overflow="visible" style="left:850px; top:35px; width:139px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>1</value>
- </item>
- <item>
- <label>계속</label>
- <value>2</value>
- </item>
- <item>
- <label>종결</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("btn_search2", "DOMActivate");
- }
- ]]>
- </script>
- </select1>
- <caption id="caption33" class="search_name" visibility="visible" style="left:761px; top:9px; width:81px; height:17px; ">재원구분 :</caption>
- <caption id="caption35" class="search_name" visibility="visible" style="left:529px; top:9px; width:81px; height:17px; ">보조유형 :</caption>
- <caption id="caption38" class="search_name" visibility="visible" style="left:762px; top:35px; width:86px; height:17px; ">종결구분</caption>
- <select1 id="rdo_histstat2" ref="/root/main/condition2/histstat" class="radio_search" visibility="visible" appearance="full" cols="3" overflow="visible" style="left:850px; top:9px; width:141px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>1</value>
- </item>
- <item>
- <label>재원</label>
- <value>2</value>
- </item>
- <item>
- <label>외래</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- model.setFocus("rdo_endstat2");
- }
- ]]>
- </script>
- </select1>
- <bool id="bool6" checkvalue="Y,N" ref="/root/main/condition2/term" style="left:439px; top:9px; width:20px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(bool6.value == 'Y'){
- ipt_date3.visible = false;
- ipt_date4.visible = false;
- caption8.visible = false;
- }else{
- ipt_date3.visible = true;
- ipt_date4.visible = true;
- caption8.visible = true;
- }
- model.refresh();
- ]]>
- </script>
- <hint>
- <![CDATA[전체조회]]>
- </hint>
- </bool>
- <caption id="caption41" style="left:456px; top:9px; width:55px; height:20px; ">전체조회</caption>
- </group>
- <line id="line19" class="line_1" style="x1:10px; y1:105px; x2:1182px; y2:105px; "/>
- <caption id="caption40" class="tit_2" style="left:10px; top:90px; width:124px; height:13px; ">자보환자현황</caption>
- <datagrid id="grd_aipmptbslist" nodeset="/root/main/aipmgrdlist/gridaipmptbs" caption="환자번호^성명^주민번호^보험회사^합의종결일^진료개시일^사고일자^접수번호^연번호^승인시작일^승인종료일^보조유형^지불한도액^차량번호^내원경로^종결구분^종결사유^담당자^담당자연락처^호실^참고사항^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8" colsep="^" colwidth="57, 67, 99, 170, 75, 75, 75, 160, 60, 75, 75, 80, 75, 80, 55, 55, 60, 58, 80, 45, 277, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" defaultrows="1" explorerbar="sort" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:10px; top:110px; width:1172px; height:600px; ">
- <col disabled="true" ref="pid"/>
- <col disabled="true" ref="hngnm"/>
- <col disabled="true" ref="rrgstno" format="999999-9999999" style="left:233px; top:25px; width:49px; height:30px; text-align:center; "/>
- <col disabled="true" ref="insucdnm"/>
- <col disabled="true" ref="agreenddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="ordopendd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="acddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="mngtno"/>
- <col ref="autmbinsuseqno"/>
- <col disabled="true" ref="aprvfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="aprvtodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="suppkind" type="combo">
- <choices>
- <itemset nodeset="/root/init/suppkind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="paylimamt" format="#,###" style="text-align:right; "/>
- <col disabled="true" ref="carno"/>
- <col disabled="true" ref="chospathcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init1/P0028list/P0028">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="endflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init1/P0038list/P0038">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="endresncd" type="combo">
- <choices>
- <itemset nodeset="/root/temp/endresncd/items">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="chrgrnm"/>
- <col disabled="true" ref="chrgrtel"/>
- <col disabled="true" ref="roomcd" style="text-align:center; "/>
- <col disabled="true" ref="autmbinsurem"/>
- <col disabled="true" ref="hometel"/>
- <col disabled="true" ref="zipcd1" style="text-align:center; "/>
- <col disabled="true" ref="zipcd2" style="text-align:center; "/>
- <col disabled="true" ref="zipcdseq" style="text-align:center; "/>
- <col disabled="true" ref="mpphontel"/>
- <col disabled="true" ref="detladdr"/>
- <col disabled="true" ref="remfact"/>
- <col disabled="true" ref="autmbinsuseqno"/>
- <col disabled="true" ref="brthdd"/>
- <col disabled="true" ref="sex"/>
- <col disabled="true" ref="seqno"/>
- <col disabled="true" ref="insucd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- //sorting 시 인스턴스 구조를 재구성
- grd_aipmptbslist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var currow = grd_aipmptbslist.row;
-
- model.setValue("/root/main/condition/reference", "1");
- cmb_reference.refresh();
- cmb_reference.dispatch("xforms-select");
-
- model.setValue("/root/main/condition/pid", model.getValue("/root/main/aipmgrdlist/gridaipmptbs[" + currow +"]/pid"));
-
- ipt_pid1.refresh();
- btn_search.dispatch("DOMActivate");
-
- model.setValue("/root/main/condition/reference", "0");
- cmb_reference.refresh();
- ipt_pid1.visible = false;
-
- btn_mngt.selected= true;
- btn_mngt.dispatch("xforms-activate");
- ]]>
- </script>
- </datagrid>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:1118px; top:85px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_aipmptbslist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- </case>
- <case id="aipminfo" class="sw_box" selected="true" style="left:0px; top:0px; width:1194px; height:753px; ">
- <line id="line9" class="line_3" style="x1:10px; y1:122px; x2:1184px; y2:122px; "/>
- <input id="ipt_pid" ref="/root/main/ptbspatinfo/pid" class="input_s_essential" maxlength="10" style="left:78px; top:76px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- var pid = model.getValue("/root/main/ptbspatinfo/pid");
-
- fInitialize();
- model.setValue("/root/main/ptbspatinfo/pid", pid);
-
- model.setValue("/root/send/search/reference", "1");
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/ptbspatinfo/pid"));
- model.setValue("/root/send/search/reference2", "");
- submit("TRPMC02601");
- if (grd_Insurance.rows >= 2) {
- model.setvalue("/root/main/ptbspatinfo/pid",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/pid"));
- model.setvalue("/root/main/ptbspatinfo/hngnm", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hngnm"));
- model.setvalue("/root/main/ptbspatinfo/rrgstno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/rrgstno"));
- model.setvalue("/root/main/ptbspatinfo/sex",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/sex"));
- model.setvalue("/root/main/ptbspatinfo/hometel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hometel"));
- model.setvalue("/root/main/ptbspatinfo/mpphontel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mpphontel"));
- model.setvalue("/root/main/ptbspatinfo/zipcode1",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd1"));
- model.setvalue("/root/main/ptbspatinfo/zipcode2",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd2"));
- model.setvalue("/root/main/ptbspatinfo/zipcdseq",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcdseq"));
- model.setvalue("/root/main/ptbspatinfo/zipcdaddr",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcdaddr"));
- model.setvalue("/root/main/ptbspatinfo/detladdr",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/detladdr"));
- model.setvalue("/root/main/ptbspatinfo/remfact",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/remfact"));
- var birthdd = model.getValue("/root/main/aipmgrd/gridInsurance/brthdd");
- if(birthdd != "" || birthdd != null){
- if (isValidDateTime(birthdd,"YYYYMMDD") == true)
- model.setvalue("/root/main/ptbspatinfo/age",getFullAge(birthdd));
- }
- model.setvalue("/root/main/ptbspatinfo/insucdnm",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/insucd"));
- model.setvalue("/root/main/ptbspatinfo/acddd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/acddd"));
- model.setvalue("/root/main/ptbspatinfo/mngtno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
- model.setvalue("/root/main/ptbspatinfo/oldmngtno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
- model.setvalue("/root/main/ptbspatinfo/autmbinsuseqno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsuseqno"));
- model.setvalue("/root/main/ptbspatinfo/suppkind",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/suppkind"));
- model.setvalue("/root/main/ptbspatinfo/carno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/carno"));
- model.setvalue("/root/main/ptbspatinfo/chrgrnm",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrnm"));
- model.setvalue("/root/main/ptbspatinfo/chrgrtel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrtel"));
- model.setvalue("/root/main/ptbspatinfo/chrgrfaxno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrfaxno"));
- model.setvalue("/root/main/ptbspatinfo/autmbinsurem",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsurem"));
- model.setvalue("/root/main/ptbspatinfo/ordopendd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/ordopendd"));
- model.setvalue("/root/main/ptbspatinfo/aprvfromdd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvfromdd"));
- model.setvalue("/root/main/ptbspatinfo/aprvtodd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvtodd"));
- model.setvalue("/root/main/ptbspatinfo/paylimamt", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/paylimamt"));
- model.setvalue("/root/main/ptbspatinfo/chospathcd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chospathcd"));
- model.setvalue("/root/main/ptbspatinfo/endflag",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endflag"));
- model.setvalue("/root/main/ptbspatinfo/endresncd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endresncd"));
- model.setvalue("/root/main/ptbspatinfo/agreenddd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/agreenddd"));
- model.setvalue("/root/main/ptbspatinfo/seqno", parseInt(model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/seqno"))+1);
-
- fGetDetInfo();
- model.refresh();
-
- model.toggle("case1");
- button66.selected= true;
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_rrgstno" ref="/root/main/ptbspatinfo/rrgstno" class="input_s_essential" disabled="true" maxlength="14" format="999999-9999999" style="left:247px; top:76px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- var rrgstno = model.getValue("/root/main/ptbspatinfo/rrgstno");
-
- fInitialize();
- model.setValue("/root/main/ptbspatinfo/rrgstno", rrgstno);
-
- model.setValue("/root/send/search/reference", "11");
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/ptbspatinfo/rrgstno"));
- model.setValue("/root/send/search/reference2", "");
- submit("TRPMC02601");
- if (grd_Insurance.rows >= 2) {
- model.setvalue("/root/main/ptbspatinfo/pid",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/pid"));
- model.setvalue("/root/main/ptbspatinfo/hngnm", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hngnm"));
- model.setvalue("/root/main/ptbspatinfo/rrgstno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/rrgstno"));
- model.setvalue("/root/main/ptbspatinfo/sex",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/sex"));
- model.setvalue("/root/main/ptbspatinfo/hometel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hometel"));
- model.setvalue("/root/main/ptbspatinfo/mpphontel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mpphontel"));
- model.setvalue("/root/main/ptbspatinfo/zipcode1",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd1"));
- model.setvalue("/root/main/ptbspatinfo/zipcode2",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd2"));
- model.setvalue("/root/main/ptbspatinfo/zipcdseq",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcdseq"));
- model.setvalue("/root/main/ptbspatinfo/detladdr",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/detladdr"));
- model.setvalue("/root/main/ptbspatinfo/remfact",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/remfact"));
- var birthdd = model.getValue("/root/main/aipmgrd/gridInsurance/brthdd");
- if(birthdd != "" || birthdd != null){
- if (isValidDateTime(birthdd,"YYYYMMDD") == true){
- model.setvalue("/root/main/ptbspatinfo/age",getFullAge(birthdd));
- }
- }
- model.setvalue("/root/main/ptbspatinfo/insucdnm",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/insucd"));
- model.setvalue("/root/main/ptbspatinfo/acddd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/acddd"));
- model.setvalue("/root/main/ptbspatinfo/mngtno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
- model.setvalue("/root/main/ptbspatinfo/oldmngtno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
- model.setvalue("/root/main/ptbspatinfo/autmbinsuseqno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsuseqno"));
- model.setvalue("/root/main/ptbspatinfo/suppkind",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/suppkind"));
- model.setvalue("/root/main/ptbspatinfo/carno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/carno"));
- model.setvalue("/root/main/ptbspatinfo/chrgrnm",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrnm"));
- model.setvalue("/root/main/ptbspatinfo/chrgrtel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrtel"));
- model.setvalue("/root/main/ptbspatinfo/chrgrfaxno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrfaxno"));
- model.setvalue("/root/main/ptbspatinfo/autmbinsurem",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsurem"));
- model.setvalue("/root/main/ptbspatinfo/ordopendd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/ordopendd"));
- model.setvalue("/root/main/ptbspatinfo/aprvfromdd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvfromdd"));
- model.setvalue("/root/main/ptbspatinfo/aprvtodd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvtodd"));
- model.setvalue("/root/main/ptbspatinfo/paylimamt", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/paylimamt"));
- model.setvalue("/root/main/ptbspatinfo/chospathcd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chospathcd"));
- model.setvalue("/root/main/ptbspatinfo/endflag",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endflag"));
- model.setvalue("/root/main/ptbspatinfo/endresncd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endresncd"));
- model.setvalue("/root/main/ptbspatinfo/agreenddd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/agreenddd"));
- model.setvalue("/root/main/ptbspatinfo/seqno", parseInt(model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/seqno"))+1);
-
- fGetDetInfo();
- model.refresh();
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption30" class="cell_1" style="left:181px; top:99px; width:63px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <caption id="caption31" class="cell_1" style="left:10px; top:75px; width:65px; height:23px; text-align:left; vertical-align:middle; ">환자번호</caption>
- <caption id="caption32" class="cell_1" style="left:181px; top:75px; width:63px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption10" class="cell_1" style="left:550px; top:99px; width:75px; height:23px; vertical-align:middle; ">상세주소</caption>
- <textarea id="tar_remfact" ref="/root/main/ptbspatinfo/remfact" editable="true" imemode="hangul" style="left:983px; top:76px; width:200px; height:43px; "/>
- <input id="ipt_detladdr" ref="/root/main/ptbspatinfo/detladdr" disabled="true" editable="false" style="left:628px; top:100px; width:283px; height:19px; "/>
- <input id="ipt_zipcode1" ref="/root/main/ptbspatinfo/zipcode1" disabled="true" editable="false" style="left:628px; top:76px; width:30px; height:19px; "/>
- <caption id="caption12" class="cell_1" style="left:350px; top:99px; width:75px; height:23px; vertical-align:middle; ">휴대폰</caption>
- <caption id="caption23" class="cell_1" style="left:350px; top:75px; width:75px; height:23px; vertical-align:middle; ">연락처</caption>
- <input id="ipt_hngnm" ref="/root/main/ptbspatinfo/hngnm" class="input_s_essential" style="left:78px; top:100px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- var hngnm = model.getValue("/root/main/ptbspatinfo/hngnm");
-
- fInitialize();
- model.setValue("/root/main/ptbspatinfo/hngnm", hngnm);
-
- model.setValue("/root/send/search/reference", "2");
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/ptbspatinfo/hngnm"));
- model.setValue("/root/send/search/reference2", "");
- submit("TRPMC02601");
- if (grd_Insurance.rows >= 2) {
- model.setvalue("/root/main/ptbspatinfo/pid",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/pid"));
- model.setvalue("/root/main/ptbspatinfo/hngnm", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hngnm"));
- model.setvalue("/root/main/ptbspatinfo/rrgstno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/rrgstno"));
- model.setvalue("/root/main/ptbspatinfo/sex",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/sex"));
- model.setvalue("/root/main/ptbspatinfo/hometel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hometel"));
- model.setvalue("/root/main/ptbspatinfo/mpphontel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mpphontel"));
- model.setvalue("/root/main/ptbspatinfo/zipcode1",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd1"));
- model.setvalue("/root/main/ptbspatinfo/zipcode2",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd2"));
- model.setvalue("/root/main/ptbspatinfo/zipcdseq",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcdseq"));
- model.setvalue("/root/main/ptbspatinfo/detladdr",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/detladdr"));
- model.setvalue("/root/main/ptbspatinfo/remfact",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/remfact"));
- var birthdd = model.getValue("/root/main/aipmgrd/gridInsurance/brthdd");
- if(birthdd != "" || birthdd != null){
- if(isValidDateTime(birthdd,"YYYYMMDD") == true){
- model.setvalue("/root/main/ptbspatinfo/age",getFullAge(birthdd));
- }
- }
- model.setvalue("/root/main/ptbspatinfo/insucdnm",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/insucd"));
- model.setvalue("/root/main/ptbspatinfo/acddd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/acddd"));
- model.setvalue("/root/main/ptbspatinfo/mngtno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
- model.setvalue("/root/main/ptbspatinfo/oldmngtno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
- model.setvalue("/root/main/ptbspatinfo/autmbinsuseqno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsuseqno"));
- model.setvalue("/root/main/ptbspatinfo/suppkind",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/suppkind"));
- model.setvalue("/root/main/ptbspatinfo/carno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/carno"));
- model.setvalue("/root/main/ptbspatinfo/chrgrnm",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrnm"));
- model.setvalue("/root/main/ptbspatinfo/chrgrtel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrtel"));
- model.setvalue("/root/main/ptbspatinfo/chrgrfaxno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrfaxno"));
- model.setvalue("/root/main/ptbspatinfo/autmbinsurem",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsurem"));
- model.setvalue("/root/main/ptbspatinfo/ordopendd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/ordopendd"));
- model.setvalue("/root/main/ptbspatinfo/aprvfromdd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvfromdd"));
- model.setvalue("/root/main/ptbspatinfo/aprvtodd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvtodd"));
- model.setvalue("/root/main/ptbspatinfo/paylimamt", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/paylimamt"));
- model.setvalue("/root/main/ptbspatinfo/chospathcd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chospathcd"));
- model.setvalue("/root/main/ptbspatinfo/endflag",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endflag"));
- model.setvalue("/root/main/ptbspatinfo/endresncd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endresncd"));
- model.setvalue("/root/main/ptbspatinfo/agreenddd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/agreenddd"));
- model.setvalue("/root/main/ptbspatinfo/seqno", parseInt(model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/seqno"))+1);
-
- fGetDetInfo();
- model.refresh();
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_age" ref="/root/main/ptbspatinfo/age" disabled="true" editable="false" style="left:293px; top:100px; width:54px; height:19px; "/>
- <input id="ipt_zipcode2" ref="/root/main/ptbspatinfo/zipcode2" disabled="true" editable="false" style="left:661px; top:76px; width:30px; height:19px; "/>
- <input id="ipt_hometel" ref="/root/main/ptbspatinfo/hometel" disabled="true" editable="false" style="left:428px; top:76px; width:119px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:914px; top:74px; width:66px; height:48px; vertical-align:middle; ">참고사항</caption>
- <line id="line2" class="line_1" style="x1:10px; y1:70px; x2:1184px; y2:70px; "/>
- <caption id="caption15" class="cell_1" style="left:550px; top:75px; width:75px; height:23px; vertical-align:middle; ">주소</caption>
- <input id="ipt_mpphontel" ref="/root/main/ptbspatinfo/mpphontel" disabled="true" editable="false" style="left:428px; top:100px; width:119px; height:19px; "/>
- <input id="ipt_zipcdseq" ref="/root/main/ptbspatinfo/zipcdaddr" disabled="true" editable="false" style="left:694px; top:76px; width:217px; height:19px; "/>
- <caption id="caption29" class="cell_1" style="left:10px; top:99px; width:65px; height:23px; text-align:left; vertical-align:middle; ">성명</caption>
- <input id="ipt_sex" ref="/root/main/ptbspatinfo/sex" disabled="true" editable="false" style="left:247px; top:100px; width:43px; height:19px; "/>
- <button id="btn_cancel" class="btn5_letter2" style="left:432px; top:126px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var msg = "【 " + model.getValue("/root/main/ptbspatinfo/hngnm") + " 】님의 보험이력을"
-
- model.setValue("/root/send/cancel/pid",model.getValue("/root/main/ptbspatinfo/pid"));
- model.setValue("/root/send/cancel/mngtno",model.getValue("/root/main/ptbspatinfo/mngtno"));
- model.setValue("/root/send/cancel/seqno",model.getValue("/root/main/ptbspatinfo/seqno"));
-
- if (messageBox(msg, "Q001") == "6") {
- submit("TXPMC02602");
- fInitialize();
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_suppkind1" ref="/root/main/ptbspatinfo/suppkind" class="combo_default" appearance="minimal" style="left:107px; top:251px; width:178px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/suppkind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sPid = model.getValue("/root/main/ptbspatinfo/pid");
- if (sPid == null || sPid == "" || sPid == " ") {
- return;
- }
-
- //보조유형 체크
- if(!fCheckAutmbInsuLimAmt()){
- return;
- }
- /* 보조유형에 따라서 지불한도액 초기화 및 disable되도록 설정
- if (sSuppkind == "00" || sSuppkind == "01") {
- var sPayLimAmt = model.getValue("/root/main/ptbspatinfo/paylimamt");
- if (sPayLimAmt != "0") {
- var msgResult = messageBox("지불한도액이 존재합니다.", "Q003");
- if (msgResult == "6") { // YES
- model.setValue("/root/main/ptbspatinfo/paylimamt", "0");
- ipt_paylimamt.disabled = true;
- ipt_paylimamt.refresh();
- } else { // NO
- model.setValue("/root/main/ptbspatinfo/suppkind", "18");
- return false;
- }
- } else {
- ipt_paylimamt.disabled = true;
- ipt_paylimamt.refresh();
- }
- } else {
- ipt_paylimamt.disabled = false;
- ipt_paylimamt.refresh();
- }
- */
- ]]>
- </script>
- </select1>
- <line id="line8" class="line_1" style="x1:10px; y1:147px; x2:474px; y2:147px; "/>
- <datagrid id="grd_Insurance" nodeset="/root/main/aipmgrd/gridInsurance" caption="환자번호^성명^주민번호^보험회사^합의종결일^진료개시일^사고일자^접수번호^연번호^승인시작일^승인종료일^보조유형^지불한도액^차량번호^내원경로^종결구분^종결사유^담당자^담당자연락처^담당자FAX번호^참고사항^외래예약^입원예약^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8" colsep="^" colwidth="57, 67, 92, 150, 70, 70, 70, 150, 80, 70, 70, 84, 75, 80, 55, 55, 60, 60, 100, 100, 280, 150, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100" dataheight="25" defaultrows="1" explorerbar="sort" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:484px; top:152px; width:700px; height:244px; ">
- <col disabled="true" ref="pid"/>
- <col disabled="true" ref="hngnm"/>
- <col disabled="true" ref="rrgstno" format="999999-9999999" style="left:233px; top:25px; width:49px; height:30px; text-align:center; "/>
- <col disabled="true" ref="insucdnm"/>
- <col disabled="true" ref="agreenddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="ordopendd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="acddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="mngtno"/>
- <col disabled="true" ref="autmbinsuseqno"/>
- <col disabled="true" ref="aprvfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="aprvtodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="suppkind" type="combo">
- <choices>
- <itemset nodeset="/root/init/suppkind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="paylimamt" format="#,###" style="text-align:right; "/>
- <col disabled="true" ref="carno"/>
- <col disabled="true" ref="chospathcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init1/P0028list/P0028">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="endflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init1/P0038list/P0038">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="endresncd" type="combo">
- <choices>
- <itemset nodeset="/root/temp/endresncd/items">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="chrgrnm" visibility="hidden"/>
- <col disabled="true" ref="chrgrtel"/>
- <col disabled="true" ref="chrgrfaxno"/>
- <col disabled="true" ref="autmbinsurem"/>
- <col ref="outorddd"/>
- <col ref="inadrvdd"/>
- <col disabled="true" ref="hometel" visibility="hidden"/>
- <col disabled="true" ref="mpphontel" visibility="hidden"/>
- <col disabled="true" ref="zipcd1" visibility="hidden" style="text-align:center; "/>
- <col disabled="true" ref="zipcd2" visibility="hidden" style="text-align:center; "/>
- <col disabled="true" ref="zipcdseq" visibility="hidden" style="text-align:center; "/>
- <col disabled="true" ref="zipcdaddr" visibility="hidden"/>
- <col disabled="true" ref="detladdr" visibility="hidden"/>
- <col disabled="true" ref="remfact" visibility="hidden"/>
- <col disabled="true" ref="autmbinsuseqno" visibility="hidden"/>
- <col disabled="true" ref="brthdd" visibility="hidden"/>
- <col disabled="true" ref="seqno" visibility="hidden"/>
- <col disabled="true" ref="insucd" visibility="hidden"/>
- <col disabled="true" ref="histstat" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( isDataCell() ){
- var row = grd_Insurance.row;
- if (row >= grd_Insurance.fixedrows){
- model.setvalue("/root/main/ptbspatinfo/pid", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/pid"));
- model.setvalue("/root/main/ptbspatinfo/hngnm", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/hngnm"));
- model.setvalue("/root/main/ptbspatinfo/rrgstno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/rrgstno"));
- model.setvalue("/root/main/ptbspatinfo/sex", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/sex"));
- model.setvalue("/root/main/ptbspatinfo/hometel", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/hometel"));
- model.setvalue("/root/main/ptbspatinfo/mpphontel", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/mpphontel"));
- model.setvalue("/root/main/ptbspatinfo/zipcode1", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/zipcd1"));
- model.setvalue("/root/main/ptbspatinfo/zipcode2", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/zipcd2"));
- model.setvalue("/root/main/ptbspatinfo/zipcdseq", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/zipcdseq"));
- model.setvalue("/root/main/ptbspatinfo/zipcdaddr", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/zipcdaddr"));
- model.setvalue("/root/main/ptbspatinfo/detladdr", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/detladdr"));
- model.setvalue("/root/main/ptbspatinfo/remfact", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/remfact"));
- var birthdd = model.getValue("/root/main/aipmgrd/gridInsurance[" + row + "]/brthdd");
- if(birthdd != "" || birthdd != null){
- if(isValidDateTime(birthdd,"YYYYMMDD") == true){
- model.setvalue("/root/main/ptbspatinfo/age",getFullAge(birthdd));
- }
- }
- model.setvalue("/root/main/ptbspatinfo/insucdnm", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/insucd"));
- //model.setvalue("/root/init/insucd/cdnm", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/insucd"));
- model.setvalue("/root/main/ptbspatinfo/acddd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/acddd"));
- model.setvalue("/root/main/ptbspatinfo/mngtno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/mngtno"));
- model.setvalue("/root/main/ptbspatinfo/oldmngtno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/mngtno"));
- model.setvalue("/root/main/ptbspatinfo/autmbinsuseqno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/autmbinsuseqno"));
- model.setvalue("/root/main/ptbspatinfo/suppkind", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/suppkind"));
- model.setvalue("/root/main/ptbspatinfo/carno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/carno"));
- model.setvalue("/root/main/ptbspatinfo/chrgrnm", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/chrgrnm"));
- model.setvalue("/root/main/ptbspatinfo/chrgrtel", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/chrgrtel"));
- model.setvalue("/root/main/ptbspatinfo/chrgrfaxno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/chrgrfaxno"));
- model.setvalue("/root/main/ptbspatinfo/autmbinsurem", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/autmbinsurem"));
- model.setvalue("/root/main/ptbspatinfo/ordopendd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/ordopendd"));
- model.setvalue("/root/main/ptbspatinfo/aprvfromdd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/aprvfromdd"));
- model.setvalue("/root/main/ptbspatinfo/aprvtodd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/aprvtodd"));
- model.setvalue("/root/main/ptbspatinfo/paylimamt", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/paylimamt"));
- model.setvalue("/root/main/ptbspatinfo/chospathcd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/chospathcd"));
- model.setvalue("/root/main/ptbspatinfo/endflag", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/endflag"));
- model.setvalue("/root/main/ptbspatinfo/endresncd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/endresncd"));
- model.setvalue("/root/main/ptbspatinfo/agreenddd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/agreenddd"));
- model.setvalue("/root/main/ptbspatinfo/seqno", parseInt(model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/seqno"))+1);
-
- // submit("TRPMC02603");
-
- fGetDetInfo();
- model.refresh();
- }
- cmb_suppkind1.dispatch("xforms-value-changed");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- //sorting 시 인스턴스 구조를 재구성
- grd_Insurance.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button9" class="btn2_letter4" style="left:875px; top:125px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_Insurance.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false;");
- }
- ]]>
- </script>
- </button>
- <button id="button16" class="btn2_letter5" style="left:941px; top:125px; width:75px; height:19px; ">
- <caption>보험사관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMPMB00100", "3", "", "", "", "", "/root/send/airasend", "/root/send");
- ]]>
- </script>
- </button>
- <input id="ipt_aprvfromdd" ref="/root/main/ptbspatinfo/aprvfromdd" class="input_default" navindex="4" inputtype="date" style="left:378px; top:177px; width:96px; height:19px; "/>
- <select1 id="cmb_endflag" ref="/root/main/ptbspatinfo/endflag" class="combo_default" navindex="12" appearance="minimal" style="left:378px; top:276px; width:96px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init1/P0038list/P0038">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (model.getValue("/root/main/ptbspatinfo/endflag") == "N"){
- model.setValue("/root/main/ptbspatinfo/endresncd","1");
- model.setValue("/root/main/ptbspatinfo/agreenddd", "");
- cmb_endresncd.disabled = true;
- cmb_endresncd.refresh();
- ipt_agreenddd.refresh();
- } else {
- cmb_endresncd.disabled = false;
- model.setValue("/root/main/ptbspatinfo/endresncd","Y");
- model.setValue("/root/main/ptbspatinfo/agreenddd", getCurrentDate());
- cmb_endresncd.refresh();
- ipt_agreenddd.refresh();
- }
- ]]>
- </script>
- </select1>
- <button id="btn_roomamt" class="btn2_letter7" style="left:1084px; top:125px; width:97px; height:19px; ">
- <caption>병실료차액기간</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getvalue("/root/main/ptbspatinfo/mngtno") != "") {
- model.setvalue("/root/send/airasend/pid", model.getvalue("/root/main/ptbspatinfo/pid"));
- model.setvalue("/root/send/airasend/mngtno", model.getvalue("/root/main/ptbspatinfo/mngtno"));
- model.setvalue("/root/send/airasend/instcd", getUserInfo("dutplceinstcd"));
- model.setvalue("/root/send/airasend/insukind", "31");
- modal("SMPMC03400_자보병실차액", "", "400", "300", "", "/root/send/airasend", "/root/send/airareceive");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_agreenddd" ref="/root/main/ptbspatinfo/agreenddd" class="input_default" navindex="16" inputtype="date" style="left:378px; top:324px; width:96px; height:19px; "/>
- <line id="line10" class="line_2" style="x1:10px; y1:246px; x2:473px; y2:246px; "/>
- <select1 id="cmb_insucd" ref="/root/main/ptbspatinfo/insucdnm" navindex="1" appearance="minimal" showvalue="true" style="left:107px; top:153px; width:178px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/insucd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_aprvtodd" ref="/root/main/ptbspatinfo/aprvtodd" class="input_default" navindex="6" inputtype="date" style="left:378px; top:202px; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var rows=getNodesetCount("/root/main/aimtgrd/gridaimtsearch");
- if (rows>0){
- for (var i = 1; i <= rows;i++) {
- // var iRowStatus = grd_aimtSearch.rowStatus(i);
- // if (iRowStatus > 0) { // 0은 변경없음
-
- grd_aimtSearch.addStatus(i, "update");
- grd_aimtSearch.cellStyle("background-image", i, 1) = "../../../com/commonweb/images/icon_u.gif";
- model.setvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/state", "U");
- model.setValue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordtodd",model.getValue("/root/main/ptbspatinfo/aprvtodd") );
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_mngtno" ref="/root/main/ptbspatinfo/mngtno" class="input_essential" navindex="5" imemode="hangul" style="left:107px; top:202px; width:178px; height:19px; "/>
- <line id="line11" class="line_1" style="x1:484px; y1:147px; x2:1184px; y2:147px; "/>
- <line id="line12" class="line_2" style="x1:10px; y1:271px; x2:473px; y2:271px; "/>
- <caption id="caption20" class="tit_2" style="left:489px; top:132px; width:124px; height:13px; ">보험이력조회</caption>
- <input id="ipt_chrgrnm" ref="/root/main/ptbspatinfo/chrgrtel" class="input_default" navindex="13" imemode="hangul" style="left:107px; top:300px; width:178px; height:19px; "/>
- <caption id="caption21" class="cell_1" style="left:288px; top:274px; width:88px; height:23px; vertical-align:middle; ">종결구분</caption>
- <input id="ipt_seqno" ref="/root/main/ptbspatinfo/seqno" visibility="hidden" style="left:440px; top:340px; width:25px; height:19px; "/>
- <line id="line14" class="line_2" style="x1:10px; y1:296px; x2:473px; y2:296px; "/>
- <input id="ipt_paylimamt" ref="/root/main/ptbspatinfo/paylimamt" class="input_default" navindex="8" format="#,###" style="left:378px; top:226px; width:96px; height:19px; text-align:right; "/>
- <caption id="caption2" class="tit_2" style="left:11px; top:132px; width:74px; height:13px; ">보험사항</caption>
- <caption id="caption11" class="cell_1" style="left:288px; top:152px; width:88px; height:23px; vertical-align:middle; ">진료개시일</caption>
- <line id="line15" class="line_2" style="x1:10px; y1:320px; x2:473px; y2:320px; "/>
- <caption id="caption4" class="cell_1" style="left:10px; top:176px; width:95px; height:23px; vertical-align:middle; ">사고일자</caption>
- <caption id="caption13" class="cell_1" style="left:288px; top:249px; width:88px; height:23px; vertical-align:middle; ">내원경로</caption>
- <line id="line16" class="line_2" style="x1:10px; y1:345px; x2:473px; y2:345px; "/>
- <input id="ipt_chrgrtel" ref="/root/main/ptbspatinfo/chrgrfaxno" class="input_default" navindex="15" style="left:107px; top:325px; width:178px; height:19px; "/>
- <caption id="caption24" class="cell_1" style="left:10px; top:225px; width:95px; height:23px; vertical-align:middle; ">연번호</caption>
- <line id="line17" class="line_2" style="x1:10px; y1:199px; x2:473px; y2:199px; "/>
- <select1 id="cmb_chospathcd" ref="/root/main/ptbspatinfo/chospathcd" class="combo_default" navindex="10" appearance="minimal" style="left:378px; top:251px; width:96px; height:19px; ">
- <choices>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <caption id="caption36" class="cell_1" style="left:11px; top:348px; width:94px; height:47px; vertical-align:middle; ">참고사항</caption>
- <caption id="caption14" class="cell_1" style="left:10px; top:201px; width:95px; height:23px; vertical-align:middle; ">접수번호</caption>
- <line id="line1" class="line_2" style="x1:10px; y1:198px; x2:230px; y2:198px; "/>
- <input id="ipt_acddd" ref="/root/main/ptbspatinfo/acddd" class="input_default" navindex="3" inputtype="date" style="left:107px; top:177px; width:178px; height:19px; "/>
- <caption id="caption26" class="cell_1" style="left:288px; top:176px; width:88px; height:48px; vertical-align:middle; ">
- <![CDATA[승인기간
- (From~To)]]>
- </caption>
- <line id="line3" class="line_2" style="x1:10px; y1:222px; x2:473px; y2:222px; "/>
- <caption id="caption16" class="cell_1" style="left:288px; top:323px; width:88px; height:23px; vertical-align:middle; ">합의종결일</caption>
- <caption id="caption7" class="cell_1" style="left:288px; top:225px; width:88px; height:23px; vertical-align:middle; ">지불한도액</caption>
- <caption id="caption27" class="cell_1" style="left:10px; top:249px; width:95px; height:23px; vertical-align:middle; ">보조유형</caption>
- <input id="ipt_carno" ref="/root/main/ptbspatinfo/carno" class="input_default" navindex="11" imemode="hangul" style="left:107px; top:276px; width:178px; height:19px; "/>
- <caption id="caption28" class="cell_1" style="left:10px; top:152px; width:95px; height:23px; vertical-align:middle; ">보험회사</caption>
- <button id="btn_save" class="btn5_letter2" style="left:385px; top:126px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var flag = true;
-
- if (model.getvalue("/root/main/ptbspatinfo/insucdnm") == "") {
- messageBox("보험회사는 필히 선택해주셔야 합니다.", "I000");
- flag = false;
- }
- if (model.getvalue("/root/main/ptbspatinfo/suppkind") == "") {
- messageBox("보조유형은 필히 선택해주셔야 합니다.", "I000");
- flag = false;
- }
- if (model.getvalue("/root/main/ptbspatinfo/mngtno") == "") {
- messageBox("접수번호는 필히 입력해주셔야 합니다.", "I000");
- flag = false;
- }
- if (model.getvalue("/root/main/ptbspatinfo/aprvfromdd") == ""
- || model.getvalue("/root/main/ptbspatinfo/aprvtodd") == "") {
- messageBox("승인기간은 필히 입력해주셔야 합니다.", "I000");
- flag = false;
- }
-
- //보조유형 체크
- if(!fCheckAutmbInsuLimAmt()){
- flag = false;
- }
-
- //보험이력 체크 - 보류 20130711
- // if(!fCheckAipm()){
- // flag = false;
- // }
-
- //종결구분 - 계속(N), 종결(Y)
- if(model.getvalue("/root/main/ptbspatinfo/endflag") == "Y") {
- //종결처리 시 미시행 처방 체크
- if(!fCheckUndoExec()){
- flag = false;
- }
- }
-
- // 2009.10.05 - 연번호 자동발생 로직 복원에 따른 체크로직 주석처리
- /*
- if (model.getvalue("/root/main/ptbspatinfo/autmbinsuseqno") == "") {
- messageBox("연번호는 필히 입력해 주셔야 합니다.", "I000");
- model.setFocus("ipt_autmbinsuseqno");
- flag = false;
- }
- */
- if (flag == true){
- var pid = model.getValue("/root/main/ptbspatinfo/pid");
- model.setvalue("/root/main/ptbspatinfo/mngtno", model.getvalue("/root/main/ptbspatinfo/mngtno").removeMask('\n'));
- copyNodeType("/root/send/save", "/root/main/ptbspatinfo", "replace");
-
- if(submit("TXPMC02601")){
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption18" class="cell_1" style="left:288px; top:299px; width:88px; height:23px; vertical-align:middle; ">종결사유</caption>
- <textarea id="tar_autmbinsurem" ref="/root/main/ptbspatinfo/autmbinsurem" navindex="17" imemode="hangul" maxlength="150" style="left:107px; top:349px; width:368px; height:44px; "/>
- <caption id="caption9" class="cell_1" style="left:10px; top:274px; width:95px; height:23px; vertical-align:middle; ">차량번호</caption>
- <button id="button13" class="btn2_letter4" style="left:1018px; top:125px; width:64px; height:19px; ">
- <caption>면담관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getvalue("/root/main/ptbspatinfo/mngtno") != ""){
- model.setvalue("/root/send/airasend/pid", model.getvalue("/root/main/ptbspatinfo/pid"));
- model.setvalue("/root/send/airasend/mngtno", model.getvalue("/root/main/ptbspatinfo/mngtno"));
- model.setvalue("/root/send/airasend/instcd", getUserInfo("dutplceinstcd"));
- model.setvalue("/root/send/airasend/insukind", "31");
-
- modal("SMPMC03500_산재자보면담내역", "1", "400", "300", "", "/root/send/airasend", "/root/send/iaiwreceive");
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_endresncd" ref="/root/main/ptbspatinfo/endresncd" class="combo_default" navindex="14" appearance="minimal" style="left:378px; top:300px; width:96px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/endresncd/items">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (model.getValue("/root/main/ptbspatinfo/endresncd") != "2"){
- model.setValue("/root/main/ptbspatinfo/agreenddd", getCurrentDate());
- //ipt_agreenddd.disabled = true;
- ipt_agreenddd.refresh();
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_ordopendd" ref="/root/main/ptbspatinfo/ordopendd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:378px; top:153px; width:96px; height:19px; "/>
- <line id="line6" class="line_3" style="x1:10px; y1:395px; x2:474px; y2:395px; "/>
- <input id="ipt_autmbinsuseqno" ref="/root/main/ptbspatinfo/autmbinsuseqno" navindex="7" maxlength="10" style="left:107px; top:226px; width:178px; height:19px; ">
- <hint>
- <![CDATA[입력하지 않으면 자동발생 됨]]>
- </hint>
- </input>
- <line id="line7" class="line_2" style="x1:10px; y1:173px; x2:474px; y2:173px; "/>
- <button id="button66" class="btn_sw" group="tab" selected="true" style="left:10px; top:405px; width:70px; height:22px; ">
- <caption>기간관리</caption>
- <toggle case="case1" ev:event="onclick"/>
- </button>
- <button id="button67" class="btn_sw" group="tab" selected="false" style="left:79px; top:405px; width:82px; height:22px; ">
- <caption>증명서관리</caption>
- <toggle case="case2" ev:event="onclick"/>
- </button>
- <button id="button1" class="btn_sw" group="tab" selected="false" style="left:160px; top:405px; width:96px; height:22px; ">
- <caption>지급보증번호</caption>
- <toggle case="case3" ev:event="onclick"/>
- </button>
- <group id="group4" scroll="auto" style="left:11px; top:675px; width:1171px; height:30px; ">
- <button id="button8" class="btn3_letter5" style="left:0px; top:5px; width:92px; height:22px; ">
- <caption>진료비내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sPid = model.getValue("/root/main/ptbspatinfo/pid");
- //기간관리 선택여부 체크
- var currentRow = grd_aimtSearch.row;
- if (currentRow < 1) {
- return false;
- } else {
- var sOrdFlag = model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + currentRow + "]/ordflag");
- //외래, 응급 수납조회 팝업 SMPAO00300, 파라미터 환자번호 : SMPAO00300_PARM2
- if (sOrdFlag == "O" || sOrdFlag == "E") {
- var pid = model.getValue("/root/main/ptbspatinfo/pid");
- var param = pid + "▦";
- setParameter("SMPAO00300_PARM2", param);
- modal("SMPAO00300");
- }
- // 입원 진료비상세내역 팝업 SMPAI00200 파라미터 없음
- if (sOrdFlag == "I") {
- model.setValue("/root/send/SMPAI0020/pid", model.getValue("/root/main/ptbspatinfo/pid"));
- modal("SMPAI00200", "3", "", "", "", "", "/root/send/SMPAI0020", "/root/send");
- }
- }
- ]]>
- </script>
- </button>
- <button id="button15" class="btn3_letter6" style="left:94px; top:5px; width:104px; height:22px; ">
- <caption>신환환자등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMPMC01400", "3", "", "", "", "", "/root/main/ptbspatinfo/pid", "/root/send/pid");
- ]]>
- </script>
- </button>
- <button id="button17" class="btn3_letter5" style="left:200px; top:5px; width:92px; height:22px; ">
- <caption>컨설트조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/ptbspatinfo/pid");
- var param = pid + "▦▦▦▦▦▦";
- setParameter("SMMMR05000_param_userdept", "doctor");
- setParameter("SMMMR05000_param_pinfo", param);
- modal("SMMMR05000");
- ]]>
- </script>
- </button>
- <button id="button19" class="btn3_letter7" style="left:294px; top:5px; width:116px; height:22px; ">
- <caption>증명서발행내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 제증명리스트 화면 팝업
- modal("SMMMR02300");
- ]]>
- </script>
- </button>
- <button id="button23" class="btn3_letter4" style="left:412px; top:5px; width:80px; height:22px; ">
- <caption>내원내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/search1/srchcond", 1);
- model.setValue("/root/send/search1/pid",model.getValue("/root/main/ptbspatinfo/pid"));
- modal("../../patinfomngtweb/xrw/SMPMC01900_환자상세내역조회", "", "100", "100", "SMPMC01900","/root/send/search1","/root/source");
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1167px; y2:0px; "/>
- <button id="btn_clear" class="btn4_letter3" style="left:1102px; top:5px; width:68px; height:22px; font-size:11px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/ptbspatinfo");
- model.removeNodeset("/root/main/aipmgrd/gridInsurance");
- model.removeNodeset("/root/main/aimtgrd/gridaimtsearch");
- model.resetInstanceNode("/root/hidden/ptbspatinfo");
- model.resetInstanceNode("/root/send/search");
- model.resetInstanceNode("/root/send/cancel");
- model.resetInstanceNode("/root/send/airasend");
- model.resetInstanceNode("/root/send/save");
- model.resetInstanceNode("/root/send/save1");
- model.resetInstanceNode("/root/main/condition");
- model.setValue("/root/main/condition/reference", "0");
-
- ipt_pid1.visible = false;
- ipt_date1.visible = false;
- ipt_date2.visible = false;
- ipt_carno1.visible = false;
- ipt_mngtno1.visible = false;
- cmb_insucd1.visible = false;
- ipt_acddd1.visible = false;
- caption1.visible= false;
- ipt_hngnm1.visible = false;
- ipt_rrgstno1.visible = false;
- ipt_tel1.visible = false;
-
- model.setValue("/root/main/condition/endstat","1");
- model.setValue("/root/main/condition/histstat","1");
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:10px; top:10px; width:1065px; height:55px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1065px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:995px; top:15px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
-
- var flag = true;
- var referenceValue = cmb_reference.value;
- model.setValue("/root/send/search/reference", referenceValue);
-
- switch (referenceValue){
- case "0":
- model.setValue("/root/send/search/reference", "0");
- model.setValue("/root/send/search/reference1", "");
- model.setValue("/root/send/search/reference2", "");
- break;
- case "1":
- if (model.getValue("/root/main/condition/pid") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/pid"));
- model.setValue("/root/send/search/reference2", "");
- break;
- case "2":
- // model.setValue("/root/send/search1/srchcond","2");
- // model.setValue("/root/send/search1/hngnm", model.getValue("/root/main/condition/hngnm"));
- // modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/search1", "/root/send");
- // model.resetInstanceNode("/root/send/search1");
- if (model.getValue("/root/main/condition/hngnm") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/hngnm"));
- model.setValue("/root/send/search/reference2", "");
- break;
- case "3":
- if (model.getValue("/root/main/condition/rrgstno") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/rrgstno"));
- model.setValue("/root/send/search/reference2", "");
- break;
- case "4":
- if (model.getValue("/root/main/condition/tel") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/tel"));
- model.setValue("/root/send/search/reference2", "");
- break;
- case "5":
- if (model.getValue("/root/main/condition/acddd") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/acddd"));
- model.setValue("/root/send/search/reference2", "");
- break;
- case "6":
- if (model.getValue("/root/main/condition/insucd") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/insucd"));
- model.setValue("/root/send/search/reference2", "");
- break;
- case "7":
- if (model.getValue("/root/main/condition/mngtno") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/mngtno"));
- model.setValue("/root/send/search/reference2", "");
- break;
- case "8":
- if (model.getValue("/root/main/condition/carno") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/carno"));
- model.setValue("/root/send/search/reference2", "");
- break;
- case "9":
- if (model.getValue("/root/main/condition/date1") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/date1"));
- model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition/date2"));
- break;
- case "10":
- if (model.getValue("/root/main/condition/date1") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/date1"));
- model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition/date2"));
- break;
- case "11":
- if (model.getValue("/root/main/condition/date1") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/date1"));
- model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition/date2"));
- break;
- case "12":
- if (model.getValue("/root/main/condition/date1") == "") {
- flag = false;
- }
- model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/date1"));
- model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition/date2"));
- break;
- }
- model.setValue("/root/send/search/suppkind", model.getValue("/root/main/condition/suppkind"));
- model.setValue("/root/send/search/histstat", model.getValue("/root/main/condition/histstat"));
- model.setValue("/root/send/search/endstat", model.getValue("/root/main/condition/endstat"));
-
- if (flag == true) {
- submit("TRPMC02601"); /* 보험이력조회 */
- if (grd_Insurance.rows == 1) {
- var currentdate = getCurrentDate();
-
- if (cmb_reference.value == "1" || cmb_reference.value == "2" || cmb_reference.value == "3" || cmb_reference.value == "4") {
- submit("TRPMC02605"); /*환자인적사항조회 */
-
- model.setvalue("/root/main/ptbspatinfo/pid" , model.getvalue("/root/hidden/ptbspatinfo/pid"));
- model.setvalue("/root/main/ptbspatinfo/rrgstno" , model.getvalue("/root/hidden/ptbspatinfo/rrgstno"));
- model.setvalue("/root/main/ptbspatinfo/hometel" , model.getvalue("/root/hidden/ptbspatinfo/hometel"));
- model.setvalue("/root/main/ptbspatinfo/zipcode1" , model.getvalue("/root/hidden/ptbspatinfo/zipcd1"));
- model.setvalue("/root/main/ptbspatinfo/zipcode2" , model.getvalue("/root/hidden/ptbspatinfo/zipcd2"));
- model.setvalue("/root/main/ptbspatinfo/zipcdseq" , model.getvalue("/root/hidden/ptbspatinfo/zipcdseq"));
- model.setvalue("/root/main/ptbspatinfo/hngnm" , model.getvalue("/root/hidden/ptbspatinfo/hngnm"));
- model.setvalue("/root/main/ptbspatinfo/sex" , model.getvalue("/root/hidden/ptbspatinfo/sex"));
- model.setvalue("/root/main/ptbspatinfo/age" , model.getvalue("/root/main/aipmgrd/gridInsurance/brthdd"));
- model.setvalue("/root/main/ptbspatinfo/mpphontel" , model.getvalue("/root/hidden/ptbspatinfo/mpphontel"));
- model.setvalue("/root/main/ptbspatinfo/zipcdaddr" , model.getvalue("/root/hidden/ptbspatinfo/zipcdaddr"));
- model.setvalue("/root/main/ptbspatinfo/detladdr" , model.getvalue("/root/hidden/ptbspatinfo/detladdr"));
- model.setvalue("/root/main/ptbspatinfo/remfact" , model.getvalue("/root/hidden/ptbspatinfo/remfact"));
-
- if (model.getValue("/root/main/ptbspatinfo/pid") != "") {
- model.setvalue("/root/main/ptbspatinfo/insertid" , model.getValue("/root/hidden/session/posinstcd"));
- model.setvalue("/root/main/ptbspatinfo/seqno" , "1");
- model.setvalue("/root/main/ptbspatinfo/ordopendd" , currentdate);
- model.setvalue("/root/main/ptbspatinfo/aprvfromdd" , currentdate);
- model.setvalue("/root/main/ptbspatinfo/aprvtodd" , "99991231");
- model.setvalue("/root/main/ptbspatinfo/chospathcd" , "O");
- model.setvalue("/root/main/ptbspatinfo/endflag" , "N");
- model.setvalue("/root/main/ptbspatinfo/paylimamt" , "0");
- model.setValue("/root/main/ptbspatinfo/endresncd" , "1");
- model.refresh();
- }
- }
- }
- if (grd_Insurance.rows >= 2) {
- model.setvalue("/root/main/ptbspatinfo/pid" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/pid"));
- model.setvalue("/root/main/ptbspatinfo/hngnm" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hngnm"));
- model.setvalue("/root/main/ptbspatinfo/rrgstno" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/rrgstno"));
- model.setvalue("/root/main/ptbspatinfo/sex" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/sex"));
- model.setvalue("/root/main/ptbspatinfo/hometel" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hometel"));
- model.setvalue("/root/main/ptbspatinfo/mpphontel" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mpphontel"));
- model.setvalue("/root/main/ptbspatinfo/zipcode1" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd1"));
- model.setvalue("/root/main/ptbspatinfo/zipcode2" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd2"));
- model.setvalue("/root/main/ptbspatinfo/zipcdaddr" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcdaddr"));
- model.setvalue("/root/main/ptbspatinfo/zipcdseq" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcdseq"));
- model.setvalue("/root/main/ptbspatinfo/detladdr" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/detladdr"));
- model.setvalue("/root/main/ptbspatinfo/remfact" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/remfact"));
- var birthdd = model.getValue("/root/main/aipmgrd/gridInsurance/brthdd");
- if(birthdd != "" || birthdd != null){
- if (isValidDateTime(birthdd,"YYYYMMDD") == true){
- model.setvalue("/root/main/ptbspatinfo/age",getFullAge(birthdd));
- }
- }
- model.setvalue("/root/main/ptbspatinfo/insucdnm" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/insucd"));
- model.setvalue("/root/main/ptbspatinfo/acddd" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/acddd"));
- model.setvalue("/root/main/ptbspatinfo/mngtno" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
- model.setvalue("/root/main/ptbspatinfo/oldmngtno" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
- model.setvalue("/root/main/ptbspatinfo/autmbinsuseqno" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsuseqno"));
- model.setvalue("/root/main/ptbspatinfo/suppkind" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/suppkind"));
- model.setvalue("/root/main/ptbspatinfo/carno" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/carno"));
- model.setvalue("/root/main/ptbspatinfo/chrgrnm" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrnm"));
- model.setvalue("/root/main/ptbspatinfo/chrgrtel" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrtel"));
- model.setvalue("/root/main/ptbspatinfo/chrgrfaxno" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrfaxno"));
- model.setvalue("/root/main/ptbspatinfo/autmbinsurem" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsurem"));
- model.setvalue("/root/main/ptbspatinfo/ordopendd" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/ordopendd"));
- model.setvalue("/root/main/ptbspatinfo/aprvfromdd" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvfromdd"));
- model.setvalue("/root/main/ptbspatinfo/aprvtodd" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvtodd"));
- model.setvalue("/root/main/ptbspatinfo/paylimamt" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/paylimamt"));
- model.setvalue("/root/main/ptbspatinfo/chospathcd" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chospathcd"));
- model.setvalue("/root/main/ptbspatinfo/endflag" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endflag"));
- model.setvalue("/root/main/ptbspatinfo/endresncd" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endresncd"));
- model.setvalue("/root/main/ptbspatinfo/agreenddd" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/agreenddd"));
- model.setvalue("/root/main/ptbspatinfo/seqno" , parseInt(model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/seqno"))+1);
-
- fGetDetInfo();
- model.refresh();
- }
-
- // 2009.07.11 - 조회 후 조회조건 초기화 하지 않음 - 성가 요청
- //model.setValue("/root/main/condition/reference", "0");
- //model.setValue("/root/main/condition/endstat","1");
- //model.setValue("/root/main/condition/histstat","1");
- //condition_initialize();
-
- //cmb_reference.dispatch("xforms-select");
- cmb_suppkind1.dispatch("xforms-value-changed");
- }
- ]]>
- </script>
- </button>
- <line id="line5" class="line_4" style="x1:985px; y1:15px; x2:985px; y2:37px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption19" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
- <caption id="caption22" class="search_name" style="left:15px; top:33px; width:90px; height:17px; ">재원구분 :</caption>
- <caption id="caption25" class="search_name" style="left:440px; top:33px; width:86px; height:17px; ">종결구분 :</caption>
- <select1 id="cmb_reference" ref="/root/main/condition/reference" class="combo_search" appearance="minimal" style="left:103px; top:9px; width:97px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>환자번호</label>
- <value>1</value>
- </item>
- <item>
- <label>환자성명</label>
- <value>2</value>
- </item>
- <item>
- <label>주민번호</label>
- <value>3</value>
- </item>
- <item>
- <label>전화번호</label>
- <value>4</value>
- </item>
- <item>
- <label>사고일시</label>
- <value>5</value>
- </item>
- <item>
- <label>보험회사</label>
- <value>6</value>
- </item>
- <item>
- <label>접수번호</label>
- <value>7</value>
- </item>
- <item>
- <label>차량번호</label>
- <value>8</value>
- </item>
- <item>
- <label>외래일자</label>
- <value>9</value>
- </item>
- <item>
- <label>입원일자</label>
- <value>10</value>
- </item>
- <item>
- <label>진료개시일</label>
- <value>11</value>
- </item>
- <item>
- <label>승인시작일</label>
- <value>12</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- condition_initialize();
- //fInitialize();
-
- var referenceValue = cmb_reference.value;
- if (referenceValue == "10") {
- model.setValue("/root/main/condition/histstat", "2"); // 재원구분 '재원'으로 설정
- rdo_histstat.refresh();
- }
-
- switch (referenceValue){
- case "0":
- ipt_pid1.visible = false;
- ipt_date1.visible = false;
- ipt_date2.visible = false;
- ipt_carno1.visible = false;
- ipt_mngtno1.visible = false;
- cmb_insucd1.visible = false;
- ipt_acddd1.visible = false;
- caption1.visible= false;
- ipt_hngnm1.visible = false;
- ipt_rrgstno1.visible = false;
- ipt_tel1.visible = false;
- break;
- case "1":
- ipt_pid1.visible = true;
- ipt_date1.visible = false;
- ipt_date2.visible = false;
- ipt_carno1.visible = false;
- ipt_mngtno1.visible = false;
- cmb_insucd1.visible = false;
- ipt_acddd1.visible = false;
- caption1.visible= false;
- ipt_hngnm1.visible = false;
- ipt_rrgstno1.visible = false;
- ipt_tel1.visible = false;
- ipt_pid1.refresh();
- model.setFocus("ipt_pid1");
- break;
- case "2":
- ipt_hngnm1.visible = true;
- ipt_date1.visible = false;
- ipt_date2.visible = false;
- ipt_carno1.visible = false;
- ipt_mngtno1.visible = false;
- cmb_insucd1.visible = false;
- ipt_acddd1.visible = false;
- caption1.visible= false;
- ipt_pid1.visible=false;
- ipt_rrgstno1.visible = false;
- ipt_tel1.visible = false;
- ipt_rrgstno1.visible = false;
- ipt_hngnm1.refresh();
- model.setFocus("ipt_hngnm1");
- break;
- case "3":
- ipt_rrgstno1.visible = true;
- ipt_date1.visible = false;
- ipt_date2.visible = false;
- ipt_carno1.visible = false;
- ipt_mngtno1.visible = false;
- cmb_insucd1.visible = false;
- ipt_acddd1.visible = false;
- ipt_hngnm1.visible=false;
- ipt_pid1.visible=false;
- caption1.visible= false;
- ipt_tel1.visible = false;
- ipt_rrgstno1.refresh();
- model.setFocus("ipt_rrgstno1");
- break;
- case "4":
- ipt_tel1.visible = true;
- ipt_date1.visible = false;
- ipt_date2.visible = false;
- ipt_carno1.visible = false;
- ipt_mngtno1.visible = false;
- cmb_insucd1.visible = false;
- ipt_acddd1.visible = false;
- ipt_rrgstno1.visible = false;
- ipt_hngnm1.visible=false;
- ipt_pid1.visible=false;
- caption1.visible= false;
- ipt_tel1.refresh();
- model.setFocus("ipt_tel1");
- break;
- case "5":
- ipt_acddd1.visible = true;
- ipt_date1.visible = false;
- ipt_date2.visible = false;
- ipt_carno1.visible = false;
- ipt_mngtno1.visible = false;
- cmb_insucd1.visible = false;
- ipt_tel1.visible = false;
- ipt_rrgstno1.visible = false;
- ipt_hngnm1.visible=false;
- ipt_pid1.visible=false;
- caption1.visible= false;
- ipt_acddd1.refresh();
- model.setFocus("ipt_acddd1");
- break;
- case "6":
- cmb_insucd1.visible = true;
- ipt_date1.visible = false;
- ipt_date2.visible = false;
- ipt_carno1.visible = false;
- ipt_mngtno1.visible = false;
- ipt_acddd1.visible = false;
- ipt_tel1.visible = false;
- ipt_rrgstno1.visible = false;
- ipt_hngnm1.visible=false;
- ipt_pid1.visible=false;
- caption1.visible= false;
- cmb_insucd1.refresh();
- model.setFocus("cmb_insucd1");
- break;
- case "7":
- ipt_mngtno1.visible = true;
- ipt_date1.visible = false;
- ipt_date2.visible = false;
- ipt_carno1.visible = false;
- cmb_insucd1.visible = false;
- ipt_acddd1.visible = false;
- ipt_tel1.visible = false;
- ipt_rrgstno1.visible = false;
- ipt_hngnm1.visible=false;
- ipt_pid1.visible=false;
- caption1.visible= false;
- ipt_mngtno1.refresh();
- model.setFocus("ipt_mngtno1");
- break;
- case "8":
- ipt_carno1.visible = true;
- ipt_date1.visible = false;
- ipt_date2.visible = false;
- ipt_mngtno1.visible = false;
- cmb_insucd1.visible = false;
- ipt_acddd1.visible = false;
- ipt_tel1.visible = false;
- ipt_rrgstno1.visible = false;
- ipt_hngnm1.visible=false;
- ipt_pid1.visible=false;
- caption1.visible= false;
- ipt_carno1.refresh();
- model.setFocus("ipt_carno1");
- break;
- case "9":
- ipt_date1.visible = true;
- ipt_date2.visible = true;
- caption1.visible= true;
- ipt_carno1.visible = false;
- cmb_insucd1.visible = false;
- ipt_mngtno1.visible = false;
- ipt_acddd1.visible = false;
- ipt_tel1.visible = false;
- ipt_rrgstno1.visible = false;
- ipt_hngnm1.visible=false;
- ipt_pid1.visible=false;
- ipt_date1.refresh();
- ipt_date2.refresh();
- model.setFocus("ipt_date1");
- break;
- case "10":
- ipt_date1.visible = true;
- ipt_date2.visible = true;
- caption1.visible= true;
- ipt_carno1.visible = false;
- cmb_insucd1.visible = false;
- ipt_mngtno1.visible = false;
- ipt_acddd1.visible = false;
- ipt_tel1.visible = false;
- ipt_rrgstno1.visible = false;
- ipt_hngnm1.visible=false;
- ipt_pid1.visible=false;
-
- ipt_date1.refresh();
- ipt_date2.refresh();
- caption1.refresh();
- model.setFocus("ipt_date1");
- break;
- case "11":
- ipt_date1.visible = true;
- ipt_date2.visible = true;
- caption1.visible= true;
- ipt_carno1.visible = false;
- cmb_insucd1.visible = false;
- ipt_mngtno1.visible = false;
- ipt_acddd1.visible = false;
- ipt_tel1.visible = false;
- ipt_rrgstno1.visible = false;
- ipt_hngnm1.visible=false;
- ipt_pid1.visible=false;
- ipt_date1.refresh();
- ipt_date2.refresh();
- model.setFocus("ipt_date1");
- break;
- case "12":
- ipt_date1.visible = true;
- ipt_date2.visible = true;
- caption1.visible= true;
- ipt_carno1.visible = false;
- cmb_insucd1.visible = false;
- ipt_mngtno1.visible = false;
- ipt_acddd1.visible = false;
- ipt_tel1.visible = false;
- ipt_rrgstno1.visible = false;
- ipt_hngnm1.visible=false;
- ipt_pid1.visible=false;
- ipt_date1.refresh();
- ipt_date2.refresh();
- model.setFocus("ipt_date1");
- break;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_suppkind" ref="/root/main/condition/suppkind" class="combo_search" appearance="minimal" style="left:529px; top:9px; width:141px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/suppkind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("rdo_histstat");
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "13") {
- model.setFocus("rdo_histstat");
- }
- ]]>
- </script>
- </select1>
- <select1 id="rdo_endstat" ref="/root/main/condition/endstat" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:530px; top:33px; width:139px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>1</value>
- </item>
- <item>
- <label>계속</label>
- <value>2</value>
- </item>
- <item>
- <label>종결</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </select1>
- <caption id="caption34" class="search_name" style="left:440px; top:9px; width:85px; height:17px; ">보조유형 :</caption>
- <select1 id="rdo_histstat" ref="/root/main/condition/histstat" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:104px; top:33px; width:141px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>1</value>
- </item>
- <item>
- <label>재원</label>
- <value>2</value>
- </item>
- <item>
- <label>외래</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- model.setFocus("rdo_endstat");
- }
- ]]>
- </script>
- </select1>
- <caption id="caption1" visibility="hidden" style="left:310px; top:10px; width:15px; height:20px; ">~</caption>
- <input id="ipt_pid1" ref="/root/main/condition/pid" class="input_search" visibility="hidden" imemode="numeric" maxlength="10" style="left:205px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // inputEnterKey("btn_search", "DOMActivate");
- // setInputNodeCurText();
- // model.setValue("/root/send/search1/pid",model.getValue("/root/main/condition/pid"));
- // model.setValue("/root/send/search1/srchcond","1");
- // modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
- // model.setValue("/root/main/condition/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- inputEnterKey("btn_search", "DOMActivate");
- // ipt_pid1.visible = true;
- // ipt_hngnm1.visible = false;
- // ipt_rrgstno1.visible = false;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_hngnm1" ref="/root/main/condition/hngnm" class="input_search" visibility="hidden" imemode="hangul" maxlength="50" style="left:205px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // inputEnterKey("btn_search", "DOMActivate");
- setInputNodeCurText();
- model.setValue("/root/send/search1/hngnm",model.getValue("/root/main/condition/hngnm"));
- model.setValue("/root/send/search1/srchcond","2");
- modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
- model.setValue("/root/main/condition/reference", "1");
- model.setValue("/root/main/condition/hngnm", "");
- model.setValue("/root/main/condition/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- inputEnterKey("btn_search", "DOMActivate");
- ipt_pid1.visible = true;
- ipt_hngnm1.visible = false;
- ipt_rrgstno1.visible = false;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_rrgstno1" ref="/root/main/condition/rrgstno" class="input_search" visibility="hidden" maxlength="14" format="999999-9999999" style="left:205px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // inputEnterKey("btn_search", "DOMActivate");
- setInputNodeCurText();
- var rrgstno = model.getValue("/root/main/condition/rrgstno");
-
- model.setValue("/root/send/search1/rrgstno1", rrgstno.substring(0,6));
- model.setValue("/root/send/search1/rrgstno2", rrgstno.substring(7,14));
- model.setValue("/root/send/search1/srchcond","3");
- modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
- // ipt_rrgstno1.visible = "hidden";
- model.setValue("/root/main/condition/reference", "1");
- model.setValue("/root/main/condition/rrgstno", "");
- model.setValue("/root/main/condition/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- inputEnterKey("btn_search", "DOMActivate");
- ipt_pid1.visible = true;
- ipt_hngnm1.visible = false;
- ipt_rrgstno1.visible = false;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_tel1" ref="/root/main/condition/tel" class="input_search" visibility="hidden" imemode="numeric" maxlength="13" style="left:205px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // btn_search.dispatch("DOMActivate");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_acddd1" ref="/root/main/condition/acddd" class="input_search" visibility="hidden" inputtype="date" style="left:205px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // btn_search.dispatch("DOMActivate");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_insucd1" ref="/root/main/condition/insucd" class="combo_search" visibility="hidden" appearance="minimal" style="left:205px; top:9px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/insucd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- // inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_mngtno1" ref="/root/main/condition/mngtno" class="input_search" visibility="hidden" style="left:205px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // btn_search.dispatch("DOMActivate");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_carno1" ref="/root/main/condition/carno" class="input_search" visibility="hidden" maxlength="20" style="left:205px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // btn_search.dispatch("DOMActivate");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_date1" ref="/root/main/condition/date1" class="input_search" visibility="hidden" inputtype="date" style="left:205px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- model.setFocus("ipt_date2");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_date2" ref="/root/main/condition/date2" class="input_search" visibility="hidden" inputtype="date" style="left:325px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // btn_search.dispatch("DOMActivate");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:685px; top:10px; width:85px; height:17px; ">검색기간:</caption>
- <input id="ipt_fromdd" ref="/root/send/search/fromdd" inputtype="date" style="left:770px; top:10px; width:90px; height:19px; "/>
- <caption id="caption46" style="left:865px; top:10px; width:15px; height:20px; ">~</caption>
- <input id="ipt_todd" ref="/root/send/search/todd" inputtype="date" style="left:880px; top:10px; width:90px; height:19px; "/>
- <caption id="caption47" class="search_name" style="left:685px; top:33px; width:145px; height:17px; ">검색기간사용여부 :</caption>
- <select1 id="rdo_useyn" ref="/root/send/search/useyn" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:825px; top:33px; width:105px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- </group>
- <switch id="swt_term" style="left:10px; top:426px; width:1173px; height:244px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" class="sw_box" selected="true" style="left:0px; top:0px; width:1173px; height:244px; ">
- <line id="line4" class="line_1" style="x1:0px; y1:26px; x2:1172px; y2:26px; "/>
- <datagrid id="grd_aimtSearch" nodeset="/root/main/aimtgrd/gridaimtsearch" caption="^^등록번호^관리번호^요양일련번호^일련번호^기관코드^이력상태^진료구분^진료과코드^선택진료여부^진료개시일자^진료종료일자^자보기간 참고사항" colsep="^" colwidth="25, 0, 0, 0, 0, 0, 0, 0, 100, 100, 100, 100, 100, 600" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1171px; height:212px; ">
- <col class="update_n" ref="update"/>
- <col ref="state"/>
- <col ref="pid"/>
- <col ref="mngtno"/>
- <col ref="mtrtseqno"/>
- <col ref="seqno"/>
- <col ref="instcd"/>
- <col ref="histstat"/>
- <col ref="ordflag" type="combo" style="left:626px; top:25px; width:100px; height:27px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init1/P0028list/P0028">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <!--<col ref="orddeptnm"/>-->
- <col ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="specordyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="ordopendd" type="inputdate" style="text-align:center; "/>
- <col ref="ordtodd" type="inputdate" style="text-align:center; "/>
- <col imemode="hangul" ref="autmbinsutermrem" type="input"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (event.button == 3) { // 3 : 오른쪽 버튼
- if (grd_aimtSearch.isCell(event.target) && grd_aimtSearch.mouseRow >= grd_aimtSearch.fixedrows) {
- window.setPopupMenu(true, "/root/hidden/popupmenu/gridmenu/item", "name", "func", false);
- } else {
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- // window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 2008.09.30 최병진 - 진료형태에 따른 진료과코드 맵핑
- var sOrdFlag = model.getValue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/ordflag");
- if (sOrdFlag == "E") {
- sOrdFlag = "I";
- }
- if (grd_aimtSearch.col == 9){
- grd_aimtSearch.cellComboNodeset(grd_aimtSearch.row, 10) = "/root/init/orddeptcd[io = '" + sOrdFlag + "' ]";
- grd_aimtSearch.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/state") != "I"){
- grd_aimtSearch.addStatus(grd_aimtSearch.row, "update");
- grd_aimtSearch.cellStyle("background-image", grd_aimtSearch.row, 1) = "../../../com/commonweb/images/icon_u.gif";
- model.setvalue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/state", "U");
- }
-
- // 2008.03.17 최병진 - 진료구분(입원,외래)에 따른 진료종료일자 자동설정. 승인종료일자를 기본으로 설정
- var sOrdFlag = model.getValue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/ordflag");
- var sOrdTodd = model.getValue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/ordtodd");
- if(sOrdTodd == "" && sOrdFlag == "O") {
- model.setValue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/ordtodd", model.getValue("/root/main/ptbspatinfo/aprvtodd") );
- }
- if(sOrdTodd == "" && sOrdFlag == "I") {
- model.setValue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/ordtodd", model.getValue("/root/main/ptbspatinfo/aprvtodd") );
- }
- if(sOrdTodd == "" && sOrdFlag == "E") {
- model.setValue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/ordtodd", model.getValue("/root/main/ptbspatinfo/aprvtodd") );
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_addRow" class="btn2_letter3" style="left:892px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_aimtSearch.addRow();
- grd_aimtSearch.cellStyle("background-image", grd_aimtSearch.row, 1) = "../../../com/commonweb/images/icon_i.gif";
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/state", "I");
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/pid", model.getvalue("/root/main/ptbspatinfo/pid"));
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mngtno", model.getvalue("/root/main/ptbspatinfo/mngtno"));
- if (grd_aimtSearch.row <= grd_aimtSearch.rows-1) {
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.row);
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.row);
- } else {
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.rows-1);
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.rows-1);
- }
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/ordflag", "2");
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/specordyn", "Y");
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/instcd", model.getValue("/root/hidden/session/posinstcd"));
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/histstat", "Y");
- model.setValue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/ordopendd", model.getValue("/root/main/ptbspatinfo/aprvfromdd"));
- model.setValue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/ordtodd", model.getValue("/root/main/ptbspatinfo/aprvtodd"));
-
- grd_aimtSearch.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_deleteRow" class="btn2_letter3" style="left:948px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_aimtSearch.row >= 1) {
- grd_aimtSearch.addStatus(grd_aimtSearch.row, "delete");
- grd_aimtSearch.cellStyle("background-image", grd_aimtSearch.row, 1) = "../../../com/commonweb/images/icon_d.gif";
- model.setvalue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row +"]/state", "D");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_insertRow" class="btn2_letter3" style="left:1004px; top:5px; width:53px; height:19px; ">
- <caption>행삽입</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_aimtSearch.rows >= 2) {
- grd_aimtSearch.insertRow(grd_aimtSearch.row, "below", false);
- grd_aimtSearch.cellStyle("background-image", grd_aimtSearch.row, 1) = "../../../com/commonweb/images/icon_i.gif";
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/state", "I");
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/pid", model.getvalue("/root/main/ptbspatinfo/pid"));
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mngtno", model.getvalue("/root/main/ptbspatinfo/mngtno"));
- if (grd_aimtSearch.row <= grd_aimtSearch.rows-1) {
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.row);
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.row);
- } else {
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.rows-1);
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.rows-1);
- }
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/ordflag", "2");
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/specordyn", "Y");
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/instcd", model.getValue("/root/hidden/session/posinstcd"));
- model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/histstat", "Y");
-
- model.setValue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/ordopendd", model.getValue("/root/main/ptbspatinfo/aprvfromdd"));
- model.setValue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/ordtodd", model.getValue("/root/main/ptbspatinfo/aprvtodd"));
- grd_aimtSearch.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_aimtsave" class="btn5_letter2" style="left:1127px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var i = 1;
- var flag = true;
- var status = 0;
- while ( i <= grd_aimtSearch.rows-1) {
- status = grd_aimtSearch.rowStatus(i);
- if (status == 0) { // 0은 변경없음
- i++;
- continue;
- }
-
- if (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordflag") == "" && model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/state") != "D") {
- messageBox("진료구분은 필히 선택해주셔야 합니다.", "I000");
- flag = false;
- break;
- }
- if (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/orddeptcd") == "" && model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/state") != "D") {
- messageBox("진료과는 필히 선택해주셔야 합니다.", "I000");
- flag = false;
- break;
- }
- if (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/specordyn") == "" && model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/state") != "D") {
- messageBox("선택진료여부는 필히 선택해주셔야 합니다.", "I000");
- flag = false;
- break;
- }
- if (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordopendd") == "" && model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/state") != "D") {
- messageBox("진료개시일자는 필히 입력해주셔야 합니다.", "I000");
- flag = false;
- break;
- }
- // if (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordtodd") == "" && model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/state") != "D") {
- // messageBox("진료종료일자는 필히 입력해주셔야 합니다.", "I000");
- // flag = false;
- // break;
- // }
- if (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordtodd") < model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordopendd") && (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordtodd")) != "") {
- messageBox("진료개시일자는 진료종료일자보다 클 수 없습니다.", "I000");
- flag = false;
- break;
- }
-
- //2008.03.17 최병진 - 승인기간안에 진료개시일자가 유효한지 검사
- if (model.getValue("/root/main/ptbspatinfo/aprvfromdd") > model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordopendd")
- || model.getValue("/root/main/ptbspatinfo/aprvtodd") < model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordopendd")) {
- messageBox("[" + i + "]번째 행의 진료개시일자가 승인기간 안에 포함되지 않습니다.!!", "I000");
- flag = false;
- break;
- }
-
- //2008.03.17 최병진 - 승인기간안에 진료종료일자가 유효한지 검사
- if (model.getValue("/root/main/ptbspatinfo/aprvfromdd") > model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordtodd")
- || model.getValue("/root/main/ptbspatinfo/aprvtodd") < model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordtodd")) {
- messageBox("[" + i + "]번째 행의 진료종료일자가 승인기간 안에 포함되지 않습니다.!!", "I000");
- flag = false;
- break;
- }
- i++;
- }
- if (flag == true) {
- model.resetInstanceNode("/root/send/save1");
- for (var i = 1; i <= grd_aimtSearch.rows-1;i++){
- var iRowStatus = grd_aimtSearch.rowStatus(i);
- if (iRowStatus > 0) { // 0은 변경없음
- copyNodeType("/root/send/save1", "/root/main/aimtgrd/gridaimtsearch[" + i + "]", "replace");
- if (submit("TXPMC02603")) {
- model.resetInstanceNode("/root/send/save1");
- }
- }
- }
- grd_aimtSearch.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
- fGetDetInfo();
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_aimtexcelsave" class="btn2_letter4" style="left:1060px; top:5px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_aimtSearch.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <caption id="caption45" class="tit_2" style="left:0px; top:10px; width:95px; height:15px; ">기간관리</caption>
- </case>
- <case id="case2" style="left:0px; top:0px; width:1171px; height:242px; ">
- <line id="line18" class="line_1" style="x1:0px; y1:26px; x2:1171px; y2:26px; "/>
- <datagrid id="grd_profcertinfo" nodeset="/root/main/profcertgrd/grdprofcertinfo" caption="내원구분^증명구분^진료일^진료과^진료의^발급일^무료발급사유" colsep="^" colwidth="100, 150, 130, 130, 120, 130, 408" dataheight="25" defaultrows="1" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:30px; width:1171px; height:212px; ">
- <col disabled="true" ref="chosflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init1/P0028list/P0028">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="prntkind" style="text-align:center; "/>
- <col disabled="true" ref="orddd" type="inputdate" style="text-align:center; "/>
- <col disabled="true" ref="orddept" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd" style="text-align:center;">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="doctnm" style="text-align:center; "/>
- <col disabled="true" ref="issdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="freeissresn" style="text-align:center; "/>
- </datagrid>
- <caption id="caption42" class="tit_2" style="left:0px; top:10px; width:95px; height:15px; ">증명서관리</caption>
- </case>
- <case id="case3" class="sw_box" style="left:0px; top:0px; width:1173px; height:244px; ">
- <line id="line13" class="line_1" style="x1:0px; y1:26px; x2:1172px; y2:26px; "/>
- <datagrid id="grd_paygrnt" nodeset="/root/main/paygrntgrd/paygrntinfo" caption="^^등록번호^관리번호^요양일련번호^일련번호^기관코드^이력상태^지급보증번호^진료개시일자^진료종료일자^지급보증 참고사항" colsep="^" colwidth="25, 0, 0, 0, 0, 0, 0, 0, 180, 100, 100, 720" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1171px; height:212px; ">
- <col class="update_n" ref="update"/>
- <col ref="state"/>
- <col ref="pid"/>
- <col ref="mngtno"/>
- <col ref="mtrtseqno"/>
- <col ref="seqno"/>
- <col ref="instcd"/>
- <col ref="histstat"/>
- <col ref="paygrntno" type="input"/>
- <col ref="ordopendd" type="inputdate" style="text-align:center; "/>
- <col ref="ordtodd" type="inputdate" style="text-align:center; "/>
- <col ref="paygrntrem" type="input"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + grd_paygrnt.row + "]/state") != "I"){
- grd_paygrnt.addStatus(grd_paygrnt.row, "update");
- grd_paygrnt.cellStyle("background-image", grd_paygrnt.row, 1) = "../../../com/commonweb/images/icon_u.gif";
- model.setvalue("/root/main/paygrntgrd/paygrntinfo[" + grd_paygrnt.row + "]/state", "U");
- }
-
- var sOrdTodd = model.getValue("/root/main/paygrntgrd/paygrntinfo[" + grd_paygrnt.row + "]/ordtodd");
- if(sOrdTodd == "") {
- model.setValue("/root/main/paygrntgrd/paygrntinfo[" + grd_paygrnt.row + "]/ordtodd", model.getValue("/root/main/ptbspatinfo/aprvtodd") );
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn2_letter3" style="left:892px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_paygrnt.addRow();
- grd_paygrnt.cellStyle("background-image", grd_paygrnt.row, 1) = "../../../com/commonweb/images/icon_i.gif";
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/state" , "I");
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/pid" , model.getvalue("/root/main/ptbspatinfo/pid"));
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/mngtno" , model.getvalue("/root/main/ptbspatinfo/mngtno"));
- if(grd_paygrnt.row <= grd_paygrnt.rows-1) {
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/mtrtseqno" , grd_paygrnt.row);
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/seqno" , grd_paygrnt.row);
- }else{
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/mtrtseqno" , grd_paygrnt.rows-1);
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/seqno" , grd_paygrnt.rows-1);
- }
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/instcd" , model.getValue("/root/hidden/session/posinstcd"));
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/histstat" , "Y");
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/ordopendd" , getCurrentDate());
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/ordtodd" , model.getValue("/root/main/ptbspatinfo/aprvtodd"));
- grd_paygrnt.refresh();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" style="left:948px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_paygrnt.row >= 1) {
- grd_paygrnt.addStatus(grd_paygrnt.row, "delete");
- grd_paygrnt.cellStyle("background-image", grd_paygrnt.row, 1) = "../../../com/commonweb/images/icon_d.gif";
- model.setvalue("/root/main/paygrntgrd/paygrntinfo[" + grd_paygrnt.row +"]/state", "D");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" style="left:1004px; top:5px; width:53px; height:19px; ">
- <caption>행삽입</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_paygrnt.rows >= 2) {
- grd_paygrnt.insertRow(grd_paygrnt.row, "below", false);
- grd_paygrnt.cellStyle("background-image", grd_paygrnt.row, 1) = "../../../com/commonweb/images/icon_i.gif";
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/state" , "I");
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/pid" , model.getvalue("/root/main/ptbspatinfo/pid"));
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/mngtno" , model.getvalue("/root/main/ptbspatinfo/mngtno"));
- if (grd_paygrnt.row <= grd_paygrnt.rows-1) {
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/mtrtseqno" , grd_paygrnt.row);
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/seqno" , grd_paygrnt.row);
- } else {
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/mtrtseqno" , grd_paygrnt.rows-1);
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/seqno" , grd_paygrnt.rows-1);
- }
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/instcd" , model.getValue("/root/hidden/session/posinstcd"));
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/histstat" , "Y");
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/ordopendd" , getCurrentDate());
- model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/ordtodd" , model.getValue("/root/main/ptbspatinfo/aprvtodd"));
- grd_paygrnt.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn5_letter2" style="left:1127px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var i = 1;
- var flag = true;
- var status = 0;
- while(i <= grd_paygrnt.rows-1){
- status = grd_paygrnt.rowStatus(i);
- if (status == 0) { // 0은 변경없음
- i++;
- continue;
- }
-
- if(model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/state") != "D"){
- if (model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/paygrntno") == ""){
- messageBox("지급보증번호는 필히 입력해주셔야 합니다.", "I000");
- flag = false;
- break;
- }
- if (model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordopendd") == ""){
- messageBox("진료개시일자는 필히 입력해주셔야 합니다.", "I000");
- flag = false;
- break;
- }
- if (model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd") == ""){
- messageBox("진료종료일자는 필히 입력해주셔야 합니다.", "I000");
- flag = false;
- break;
- }
- if (model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd") < model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordopendd") && (model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd")) != ""){
- messageBox("진료개시일자는 진료종료일자보다 클 수 없습니다.", "I000");
- flag = false;
- break;
- }
- //2008.03.17 최병진 - 승인기간안에 진료개시일자가 유효한지 검사
- if (model.getValue("/root/main/ptbspatinfo/aprvfromdd") > model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordopendd") || model.getValue("/root/main/ptbspatinfo/aprvtodd") < model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordopendd")){
- messageBox("[" + i + "]번째 행의 진료개시일자가 승인기간 안에 포함되지 않습니다.!!", "I000");
- flag = false;
- break;
- }
- //2008.03.17 최병진 - 승인기간안에 진료종료일자가 유효한지 검사
- if (model.getValue("/root/main/ptbspatinfo/aprvfromdd") > model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd") || model.getValue("/root/main/ptbspatinfo/aprvtodd") < model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd")){
- messageBox("[" + i + "]번째 행의 진료종료일자가 승인기간 안에 포함되지 않습니다.!!", "I000");
- flag = false;
- break;
- }
-
- var j = 1;
- while(j <= grd_paygrnt.rows-1){
- if(i != j){
- if(model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + j + "]/state") != "D"){
- if(model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordopendd") == model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + j + "]/ordopendd")){
- messageBox("[" + i + "]번째 행은 [" + j + "]번째 행의 진료개시일자가 중복입니다.!!", "I000");
- flag = false;
- break;
- }
- if(model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd") == model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + j + "]/ordtodd")){
- messageBox("[" + i + "]번째 행은 [" + j + "]번째 행의 진료종료일자가 중복입니다.!!", "I000");
- flag = false;
- break;
- }
- if(model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordopendd") > model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + j + "]/ordopendd") && model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordopendd") < model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + j + "]/ordtodd")){
- messageBox("[" + i + "]번째 행은 [" + j + "]번째 행의 진료기간이 중복입니다.!!", "I000");
- flag = false;
- break;
- }
- if(model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd") < model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + j + "]/ordtodd") && model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd") > model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + j + "]/ordopendd")){
- messageBox("[" + i + "]번째 행은 [" + j + "]번째 행의 진료기간이 중복입니다.!!", "I000");
- flag = false;
- break;
- }
- }
- }
- j++;
- }
- if(flag == false){
- break;
- }
- }
- i++;
- }
- if(flag == true){
- model.resetInstanceNode("/root/send/save1");
- for (var i = 1; i <= grd_paygrnt.rows-1;i++){
- var iRowStatus = grd_paygrnt.rowStatus(i);
- if (iRowStatus > 0) { // 0은 변경없음
- copyNodeType("/root/send/save1", "/root/main/paygrntgrd/paygrntinfo[" + i + "]", "replace");
- if (submit("TXPMC02604")){
- model.resetInstanceNode("/root/send/save1");
- }
- }
- }
- grd_paygrnt.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
- fGetDetInfo();
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter4" style="left:1060px; top:5px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_paygrnt.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <caption id="caption37" class="tit_2" style="left:0px; top:10px; width:95px; height:15px; ">지급보증번호</caption>
- </case>
- <case id="case4" class="sw_box" style="left:0px; top:0px; width:1173px; height:244px; ">
- <line id="line20" class="line_1" style="x1:0px; y1:26px; x2:1172px; y2:26px; "/>
- <datagrid id="grd_otpt" nodeset="/root/main/otptgrd/otptinfo" caption="^^환자번호^진료일자^생성번호^진료과^보험회사" colsep="^" colwidth="25, 0, 10, 85, 10, 120, 200" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1171px; height:212px; ">
- <col class="update_n" ref="update"/>
- <col ref="state"/>
- <col ref="pid" visibility="hidden"/>
- <col disabled="true" ref="orddd"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="orddeptnm"/>
- <!-- 치과개설에 따른 프로그램 수정(2016/06/01)
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- -->
- <col ref="insucd" type="combo">
- <choices>
- <itemset nodeset="/root/init/insucd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getvalue("/root/main/otptgrd/otptinfo[" + grd_otpt.row + "]/state") != "I"){
- grd_otpt.addStatus(grd_otpt.row, "update");
- grd_otpt.cellStyle("background-image", grd_otpt.row, 1) = "../../../com/commonweb/images/icon_u.gif";
- model.setvalue("/root/main/otptgrd/otptinfo[" + grd_otpt.row + "]/state", "U");
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="button11" class="btn5_letter2" style="left:1127px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/save1");
- var exeCnt = 0;
- for(var i=1; i<=grd_otpt.rows-1; i++){
- var iRowStatus = grd_otpt.rowStatus(i);
- if(iRowStatus > 0){ // 0은 변경없음
- copyNodeType("/root/send/save1", "/root/main/otptgrd/otptinfo[" + i + "]", "replace");
- if(submit("TXPMC02605", false)){
- model.resetInstanceNode("/root/send/save1");
- exeCnt++;
- }
- }
- }
- if(exeCnt > 0){
- grd_otpt.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
- fGetDetInfo();
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="caption17" class="tit_2" style="left:0px; top:10px; width:95px; height:15px; ">진료이력관리</caption>
- </case>
- </switch>
- <button id="btn_limitamt" class="btn2_letter5" style="left:295px; top:227px; width:75px; height:19px; ">
- <caption>지불한도액</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var tPid = model.getValue("/root/main/ptbspatinfo/pid");
- if (tPid == null || tPid == "" || tPid == " ") {
- messageBox("환자번호가", "I004");
- return;
- }
-
- /*
- * 보조유형 체크하여 지불한도액 입력가능
- * 18-자손/책임/무보험
- * 91-자손/책임/무보험 안전띠미착용20%
- */
- var tSuppkind = model.getValue("/root/main/ptbspatinfo/suppkind");
- if(tSuppkind == "18" || tSuppkind == "91"){
- model.setValue("/root/send/search2/pid" , model.getValue("/root/main/ptbspatinfo/pid")); // 환자번호
- model.setValue("/root/send/search2/instcd" , getUserInfo("posinstcd")); // 기관코드
- model.setValue("/root/send/search2/aprvfromdd" , model.getValue("/root/main/ptbspatinfo/aprvfromdd")); // 승인시작일자
- model.setValue("/root/send/search2/aprvtodd" , model.getValue("/root/main/ptbspatinfo/aprvtodd")); // 승인종료일자
- model.setValue("/root/send/search2/srchdd" , ""); // 조회일자(indd or orddd)
- modal("SPPMC04500" ,"", "10", "10", "SPPMC04500", "/root/send/search2", "/root/send");
- } else {
- model.alert("보조유형이 [자손/책임/무보험]일 때만 조회할 수 있습니다.!!");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="button14" class="btn5_letter6" style="left:1095px; top:28px; width:86px; height:19px; ">
- <caption>참고사항저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sPid = model.getValue("/root/main/ptbspatinfo/pid");
- if (isNull(sPid)) {
- messageBox("환자가 조회되지 않았습니다!!", "I");
- return;
- }
-
- var sRemFact = model.getValue("/root/main/ptbspatinfo/remfact");
- var iByte = fGetOracleByteLength(sRemFact);
- if (iByte > 250) {
- messageBox("참고사항의 길이가 너무 깁니다[현재 : " + iByte +"byte][제한용량 : 250byte, 영문/숫자:250자, 한글:83자]", "I");
- return;
- }
- model.resetInstanceNode("/root/send/data1");
- model.makeValue("/root/send/data1/pid", model.getValue("/root/main/ptbspatinfo/pid"));
- model.makeValue("/root/send/data1/remfact", model.getValue("/root/main/ptbspatinfo/remfact"));
- model.makeValue("/root/send/data1/inpt_instcd", getUserInfo("dutplceinstcd"));
- if (submit("TXPAI02201")) {
- messageBox("저장 완료!", "I");
- }
-
- model.refresh();
- model.removenode("/root/send/data1");
- model.makeNode("/root/send/data1");
- ]]>
- </script>
- </button>
- <line id="line21" class="line_2" style="x1:10px; y1:97px; x2:911px; y2:97px; "/>
- <caption id="caption43" class="cell_1" style="left:10px; top:299px; width:95px; height:23px; vertical-align:middle; ">담당자명</caption>
- <caption id="caption44" class="cell_1" style="left:10px; top:323px; width:95px; height:23px; vertical-align:middle; ">담당자연락처</caption>
- <button id="button18" class="btn_sw" group="tab" selected="false" style="left:255px; top:405px; width:94px; height:22px; ">
- <caption>진료이력관리</caption>
- <toggle case="case4" ev:event="onclick"/>
- </button>
- <button id="button7" class="btn5_letter6" style="left:295px; top:126px; width:86px; height:19px; ">
- <caption>접수번호수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var flag = true;
-
- if (model.getvalue("/root/main/ptbspatinfo/insucdnm") == "") {
- messageBox("보험회사는 필히 선택해주셔야 합니다.", "I000");
- flag = false;
- }
- if (model.getvalue("/root/main/ptbspatinfo/suppkind") == "") {
- messageBox("보조유형은 필히 선택해주셔야 합니다.", "I000");
- flag = false;
- }
- if (model.getvalue("/root/main/ptbspatinfo/mngtno") == "") {
- messageBox("접수번호는 필히 입력해주셔야 합니다.", "I000");
- flag = false;
- }
- if (model.getvalue("/root/main/ptbspatinfo/aprvfromdd") == ""
- || model.getvalue("/root/main/ptbspatinfo/aprvtodd") == "") {
- messageBox("승인기간은 필히 입력해주셔야 합니다.", "I000");
- flag = false;
- }
-
- //보조유형 체크
- if(!fCheckAutmbInsuLimAmt()){
- flag = false;
- }
-
- //보험이력 체크 - 보류 20130711
- // if(!fCheckAipm()){
- // flag = false;
- // }
-
- //종결구분 - 계속(N), 종결(Y)
- if(model.getvalue("/root/main/ptbspatinfo/endflag") == "Y") {
- //종결처리 시 미시행 처방 체크
- if(!fCheckUndoExec()){
- flag = false;
- }
- }
-
- var mngtno = model.getvalue("/root/main/ptbspatinfo/mngtno");
- var oldmngtno = model.getvalue("/root/main/ptbspatinfo/oldmngtno");
- if(mngtno == oldmngtno){
- messageBox("접수번호가 변경되지 않았습니다.", "I000");
- flag = false;
- }
-
- if (flag == true){
- model.setvalue("/root/main/ptbspatinfo/mngtno" , mngtno);
- model.setvalue("/root/main/ptbspatinfo/oldmngtno" , oldmngtno);
- copyNodeType("/root/send/save", "/root/main/ptbspatinfo", "replace");
-
- if(submit("TXPMC02606")){
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_prescond" class="btn_sw" group="tab" selected="true" style="left:0px; top:5px; width:96px; height:22px; ">
- <caption>자보환자조회</caption>
- <toggle case="aipmlist" ev:event="xforms-activate"/>
- </button>
- <button id="btn_mngt" class="btn_sw" group="tab" selected="false" style="left:95px; top:5px; width:99px; height:22px; ">
- <caption>개인자보관리</caption>
- <toggle case="aipminfo" ev:event="xforms-activate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|