SMMRT00200_진단용어관리.xfdl 257 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMRT00200" position="absolute 0 0 1196 764" titletext="진단용어 관리" onload="SMMRT00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="22" position="absolute 0 25 250 65" class="div_SA">
  8. <Layouts>
  9. <Layout/>
  10. </Layouts>
  11. </Div>
  12. <Div id="grp_sea2" taborder="23" position="absolute 255 25 1195 65" class="div_SA2"/>
  13. <Static id="caption6selctedmode" text="진단용어 관리" class="tit_1" position="absolute 0 0 120 25"/>
  14. <Tab id="switch2" taborder="1" tabindex="0" position="absolute 255 67 1195 762" onlbuttonup="switch2_onlbuttonup">
  15. <Tabpages>
  16. <Tabpage id="ICD10CD" text="ICD10코드">
  17. <Layouts>
  18. <Layout>
  19. <Grid id="grd_icd10" class="datagrid1" taborder="0" binddataset="ds_main_diagcdinfo_icd10cd" useinputpanel="false" position="absolute 0 0 940 665" autosizingtype="row" extendsizetype="row" cellsizingtype="both">
  20. <Formats>
  21. <Format id="default">
  22. <Columns>
  23. <Column size="25" band="left"/>
  24. <Column size="50"/>
  25. <Column size="100"/>
  26. <Column size="100"/>
  27. <Column size="100"/>
  28. <Column size="250"/>
  29. <Column size="250"/>
  30. <Column size="70"/>
  31. <Column size="81"/>
  32. <Column size="80"/>
  33. <Column size="80"/>
  34. <Column size="110"/>
  35. <Column size="74"/>
  36. <Column size="110"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. </Columns>
  40. <Rows>
  41. <Row size="24" band="head"/>
  42. <Row size="24"/>
  43. </Rows>
  44. <Band id="head">
  45. <Cell/>
  46. <Cell col="1" text="상태"/>
  47. <Cell col="2" text="ICD10코드"/>
  48. <Cell col="3" text="중분류"/>
  49. <Cell col="4" text="소분류"/>
  50. <Cell col="5" text="영문명"/>
  51. <Cell col="6" text="한글명"/>
  52. <Cell col="7" text="조회순서"/>
  53. <Cell col="8" text="시작일자"/>
  54. <Cell col="9" text="종료일자"/>
  55. <Cell col="10" text="최초등록자"/>
  56. <Cell col="11" text="최초등록일"/>
  57. <Cell col="12" text="최종수정자"/>
  58. <Cell col="13" text="최종수정일"/>
  59. <Cell col="14" text="OLDFROMDD"/>
  60. <Cell col="15" text="OLDTODD"/>
  61. </Band>
  62. <Band id="body">
  63. <Cell celltype="head" text="expr:currow+1"/>
  64. <Cell col="1" displaytype="combo" edittype="combo" text="bind:state" combodataset="ds_cmb_status" combocodecol="value" combodatacol="label" enable="true"/>
  65. <Cell col="2" displaytype="text" edittype="text" text="bind:icd10cd" wordwrap="char" autosizerow="limitmin"/>
  66. <Cell col="3" displaytype="text" edittype="text" text="bind:icd10drindxcd" wordwrap="char" autosizerow="limitmin"/>
  67. <Cell col="4" displaytype="text" edittype="text" text="bind:icd10medireccd" wordwrap="char" autosizerow="limitmin"/>
  68. <Cell col="5" displaytype="text" edittype="text" text="bind:icd10engnm" wordwrap="char" autosizerow="limitmin"/>
  69. <Cell col="6" displaytype="text" edittype="text" text="bind:icd10hngnm" wordwrap="char" autosizerow="limitmin"/>
  70. <Cell col="7" displaytype="text" edittype="text" text="bind:icd10seqno"/>
  71. <Cell col="8" displaytype="date" edittype="date" text="bind:icd10fromdd" mask="yyyy-MM-dd"/>
  72. <Cell col="9" displaytype="date" edittype="date" text="bind:icd10todd" mask="yyyy-MM-dd"/>
  73. <Cell col="10" displaytype="text" text="bind:fstrgstrid" enable="false"/>
  74. <Cell col="11" displaytype="text" text="bind:fstrgstdt" mask="expr:utlf_isNull(fstrgstdt) ? '' : '####-##-## ##:##:##'" enable="false"/>
  75. <Cell col="12" displaytype="text" text="bind:lastupdtrid" enable="false"/>
  76. <Cell col="13" displaytype="text" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##:##'" enable="false"/>
  77. <Cell col="14" text="bind:oldfromdd"/>
  78. <Cell col="15" text="bind:oldtodd"/>
  79. </Band>
  80. </Format>
  81. </Formats>
  82. </Grid>
  83. </Layout>
  84. </Layouts>
  85. </Tabpage>
  86. <Tabpage id="DiagTerm" text="진단용어">
  87. <Layouts>
  88. <Layout>
  89. <Grid id="grd_termlist" class="datagrid2" taborder="27" binddataset="ds_main_sametermlist_info" useinputpanel="false" position="absolute 476 327 940 612" oncellclick="switch2_DiagTerm_grd_termlist_oncellclick">
  90. <Formats>
  91. <Format id="default">
  92. <Columns>
  93. <Column size="25" band="left"/>
  94. <Column size="100"/>
  95. <Column size="80"/>
  96. <Column size="47"/>
  97. <Column size="149"/>
  98. <Column size="160"/>
  99. <Column size="80"/>
  100. <Column size="100"/>
  101. <Column size="0"/>
  102. <Column size="111"/>
  103. <Column size="100"/>
  104. <Column size="85"/>
  105. <Column size="85"/>
  106. <Column size="130"/>
  107. <Column size="100"/>
  108. <Column size="130"/>
  109. <Column size="100"/>
  110. <Column size="0"/>
  111. <Column size="0"/>
  112. <Column size="0"/>
  113. <Column size="0"/>
  114. <Column size="100"/>
  115. <Column size="0"/>
  116. <Column size="0"/>
  117. <Column size="0"/>
  118. </Columns>
  119. <Rows>
  120. <Row size="30" band="head"/>
  121. <Row size="24"/>
  122. </Rows>
  123. <Band id="head">
  124. <Cell/>
  125. <Cell col="1" text="사용 기관명"/>
  126. <Cell col="2" text="용어&#10;코드"/>
  127. <Cell col="3" text="용어&#10;구분"/>
  128. <Cell col="4" text="영문명"/>
  129. <Cell col="5" text="한글명"/>
  130. <Cell col="6" text="대체코드"/>
  131. <Cell col="7" text="SNOMED-CNPT&#10;ID"/>
  132. <Cell col="8" text="SNOMED-CNPT&#10;명"/>
  133. <Cell col="9" text="SNOMED-CT&#10;DESCRIPTION ID"/>
  134. <Cell col="10" text="UMLS"/>
  135. <Cell col="11" text="시작일자"/>
  136. <Cell col="12" text="종료일자"/>
  137. <Cell col="13" text="등록일시"/>
  138. <Cell col="14" text="등록자"/>
  139. <Cell col="15" text="최종수정일시"/>
  140. <Cell col="16" text="최종수정자"/>
  141. <Cell col="17" text="확장코드"/>
  142. <Cell col="18" text="확장코드시작일자"/>
  143. <Cell col="19" text="확장코드종료일자"/>
  144. <Cell col="20" text="용어구분"/>
  145. <Cell col="21" text="필수용어 여부"/>
  146. <Cell col="22" text="ICD시작일자"/>
  147. <Cell col="23" text="최종수정자ID"/>
  148. <Cell col="24" text="appinstcd"/>
  149. </Band>
  150. <Band id="body">
  151. <Cell celltype="head" text="expr:currow+1"/>
  152. <Cell col="1" displaytype="text" text="bind:instnm"/>
  153. <Cell col="2" displaytype="text" text="bind:termcd"/>
  154. <Cell col="3" displaytype="combo" edittype="combo" text="bind:reprflag" combodataset="ds_cmb_reprflag" combocodecol="value" combodatacol="label" enable="false"/>
  155. <Cell col="4" displaytype="text" text="bind:termengnm"/>
  156. <Cell col="5" displaytype="text" text="bind:termhngnm"/>
  157. <Cell col="6" displaytype="text" text="bind:alttermcd"/>
  158. <Cell col="7" displaytype="text" text="bind:snmdcnptid"/>
  159. <Cell col="8" text="bind:snmdcnptnm"/>
  160. <Cell col="9" displaytype="text" text="bind:snmddescid"/>
  161. <Cell col="10" displaytype="text" text="bind:umlscd"/>
  162. <Cell col="11" text="bind:termfromdd" mask="expr:utlf_isNull(termfromdd) ? '' : '####-##-##'"/>
  163. <Cell col="12" text="bind:termtodd" mask="expr:utlf_isNull(termtodd) ? '' : '####-##-##'"/>
  164. <Cell col="13" displaytype="text" text="bind:fstrgstdt" mask="expr:utlf_isNull(fstrgstdt) ? '' : '####-##-## ##:##:##'"/>
  165. <Cell col="14" text="bind:fstrgstrid"/>
  166. <Cell col="15" displaytype="text" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##:##'"/>
  167. <Cell col="16" text="bind:lastupdtrnm"/>
  168. <Cell col="17" text="bind:attrcd"/>
  169. <Cell col="18" text="bind:attrfromdd"/>
  170. <Cell col="19" text="bind:attrtodd"/>
  171. <Cell col="20" displaytype="combo" edittype="combo" text="bind:termflag"/>
  172. <Cell col="21" text="bind:essntermflag"/>
  173. <Cell col="22" text="bind:icdfromdd"/>
  174. <Cell col="23" text="bind:lastupdtrid"/>
  175. <Cell col="24" text="bind:appinstcd"/>
  176. </Band>
  177. </Format>
  178. </Formats>
  179. </Grid>
  180. <Combo id="cmb_allinsthist" taborder="28" innerdataset="@ds_init_M0534allcmb" codecolumn="cdid" datacolumn="cdnm" class="combo_default" visible="false" position="absolute 840 303 940 322" onitemchanged="switch2_DiagTerm_cmb_allinsthist_onitemchanged"/>
  181. <Static id="cap_allinsthist" text="기관 :" class="search_name" visible="false" position="absolute 789 306 839 323"/>
  182. <Combo id="cmb_termflag" taborder="29" codecolumn="codecolumn" datacolumn="datacolumn" visible="false" position="absolute 94 318 114 321">
  183. <Dataset id="innerdataset">
  184. <ColumnInfo>
  185. <Column id="codecolumn"/>
  186. <Column id="datacolumn"/>
  187. </ColumnInfo>
  188. <Rows>
  189. <Row>
  190. <Col id="codecolumn">0</Col>
  191. <Col id="datacolumn">진단용어</Col>
  192. </Row>
  193. <Row>
  194. <Col id="codecolumn">9</Col>
  195. <Col id="datacolumn">수술용어</Col>
  196. </Row>
  197. <Row>
  198. <Col id="codecolumn">2</Col>
  199. <Col id="datacolumn">주호소</Col>
  200. </Row>
  201. <Row>
  202. <Col id="codecolumn">1</Col>
  203. <Col id="datacolumn">원발장기</Col>
  204. </Row>
  205. <Row>
  206. <Col id="codecolumn">3</Col>
  207. <Col id="datacolumn">ICD-O-3</Col>
  208. </Row>
  209. <Row>
  210. <Col id="codecolumn">4</Col>
  211. <Col id="datacolumn">KCD-4-M</Col>
  212. </Row>
  213. </Rows>
  214. </Dataset>
  215. </Combo>
  216. <Shape id="line9" linetype="horizontal" class="line_2" position="absolute 1 491 461 497"/>
  217. <Combo id="cmb_icd10cd" taborder="30" innerdataset="@ds_main_icd10cdlist_info" codecolumn="icd10cd" datacolumn="icd10cd" enable="false" position="absolute 113 329 231 348" onitemchanged="switch2_DiagTerm_cmb_icd10cd_onitemchanged"/>
  218. <Shape id="line10" linetype="horizontal" class="line_2" position="absolute 1 515 461 521"/>
  219. <MaskEdit id="ipt_fstrgsttime" taborder="31" mask="##:##" class="input_default" enable="false" position="absolute 422 593 460 612" type="string"/>
  220. <Edit id="ipt_engnm" taborder="32" class="input_default" enable="false" position="absolute 113 425 460 444"/>
  221. <Calendar id="ipt_fstrgstdate" taborder="33" class="input_default" enable="false" position="absolute 337 593 420 612" mask="yyyy-mm-dd" dateformat="yyyy-MM-dd"/>
  222. <Shape id="line14" linetype="horizontal" class="line_2" position="absolute 1 539 461 545"/>
  223. <Edit id="opt_Hdicd10cd" taborder="34" readonly="true" visible="false" position="absolute 113 329 231 348" class="output"/>
  224. <Shape id="line15" linetype="horizontal" class="line_2" position="absolute 1 563 461 569"/>
  225. <Shape id="line16" linetype="horizontal" class="line_10" position="absolute 476 322 940 328"/>
  226. <Button id="btn_snmdcnptid" taborder="35" class="icon_search" enable="false" position="absolute 440 330 456 346"/>
  227. <Edit id="ipt_hngnm" taborder="36" class="input_default" enable="false" position="absolute 113 449 460 468"/>
  228. <Edit id="ipt_medireccd" taborder="37" class="input_default" enable="false" position="absolute 347 377 460 396"/>
  229. <Shape id="line17" linetype="horizontal" class="line_2" position="absolute 1 371 461 377"/>
  230. <Shape id="line18" linetype="horizontal" class="line_2" position="absolute 0 587 460 593"/>
  231. <Static id="caption26" text="용어 관리" class="tit_2" position="absolute 0 306 84 323"/>
  232. <Combo id="cmb_reprflag" taborder="38" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 113 473 158 492">
  233. <Dataset id="innerdataset">
  234. <ColumnInfo>
  235. <Column id="codecolumn"/>
  236. <Column id="datacolumn"/>
  237. </ColumnInfo>
  238. <Rows>
  239. <Row>
  240. <Col id="codecolumn">R</Col>
  241. <Col id="datacolumn">Y</Col>
  242. </Row>
  243. <Row>
  244. <Col id="codecolumn"/>
  245. <Col id="datacolumn">N</Col>
  246. </Row>
  247. </Rows>
  248. </Dataset>
  249. </Combo>
  250. <Shape id="line3" linetype="horizontal" class="line_10" position="absolute 0 322 470 328"/>
  251. <Shape id="line5" linetype="horizontal" class="line_2" position="absolute 1 347 461 353"/>
  252. <Shape id="line7" linetype="horizontal" class="line_2" position="absolute 1 395 461 401"/>
  253. <Edit id="ipt_drindxcd" taborder="39" class="input_default" enable="false" visible="false" position="absolute 113 318 132 321"/>
  254. <Edit id="ipt_fstrgstdt" taborder="46" class="input_default" enable="false" visible="false" position="absolute 76 318 95 321"/>
  255. <MaskEdit id="ipt_diagattrcd" taborder="47" mask="999" class="input_default" enable="false" position="absolute 113 353 230 372" type="string"/>
  256. <MaskEdit id="ipt_termcd" taborder="48" mask="99" class="input_default" enable="false" position="absolute 113 377 230 396" type="string"/>
  257. <Shape id="line8" linetype="horizontal" class="line_2" position="absolute 0 467 460 473"/>
  258. <Shape id="line25" linetype="horizontal" class="line_2" position="absolute 0 443 460 449"/>
  259. <Edit id="ipt_snmdcnptnm" taborder="49" class="input_default" enable="false" position="absolute 347 353 460 372"/>
  260. <Grid id="grd_diagcd" class="datagrid2" taborder="50" binddataset="ds_main_diagcdinfo_diagcd" useinputpanel="false" position="absolute 0 0 940 290" oncellclick="switch2_DiagTerm_grd_diagcd_oncellclick" onrbuttonup="switch2_DiagTerm_grd_diagcd_onrbuttonup" cellclickbound="cell" selecttype="multirow" extendsizetype="row" cellsizingtype="row" autosizingtype="row">
  261. <Formats>
  262. <Format id="default">
  263. <Columns>
  264. <Column size="25" band="left"/>
  265. <Column size="30"/>
  266. <Column size="0"/>
  267. <Column size="46"/>
  268. <Column size="0"/>
  269. <Column size="65"/>
  270. <Column size="80"/>
  271. <Column size="80"/>
  272. <Column size="90"/>
  273. <Column size="100"/>
  274. <Column size="0"/>
  275. <Column size="100"/>
  276. <Column size="250"/>
  277. <Column size="250"/>
  278. <Column size="0"/>
  279. <Column size="48"/>
  280. <Column size="82"/>
  281. <Column size="40"/>
  282. <Column size="40"/>
  283. <Column size="40"/>
  284. <Column size="77"/>
  285. <Column size="50"/>
  286. <Column size="71"/>
  287. <Column size="68"/>
  288. <Column size="0"/>
  289. <Column size="0"/>
  290. <Column size="70"/>
  291. <Column size="70"/>
  292. <Column size="0"/>
  293. <Column size="0"/>
  294. <Column size="0"/>
  295. <Column size="0"/>
  296. <Column size="130"/>
  297. <Column size="0"/>
  298. <Column size="100"/>
  299. <Column size="100"/>
  300. </Columns>
  301. <Rows>
  302. <Row size="30" band="head"/>
  303. <Row size="24"/>
  304. </Rows>
  305. <Band id="head">
  306. <Cell/>
  307. <Cell col="1" text="사용여부" wordwrap="char"/>
  308. <Cell col="2" text="상태" wordwrap="char"/>
  309. <Cell col="3" text="ICD10&#10;코드" wordwrap="char"/>
  310. <Cell col="4" text="ICD시작일자" wordwrap="char"/>
  311. <Cell col="5" text="확장코드" wordwrap="char"/>
  312. <Cell col="6" text="용어코드" wordwrap="char"/>
  313. <Cell col="7" text="대체코드" wordwrap="char"/>
  314. <Cell col="8" text="SNOMED-CT&#10;Concept ID" wordwrap="char"/>
  315. <Cell col="9" text="SNOMED-CT&#10;Concept 명" wordwrap="char"/>
  316. <Cell col="10" text="SNOMED-CT&#10;Description ID" wordwrap="char"/>
  317. <Cell col="11" text="UMLS" wordwrap="char"/>
  318. <Cell col="12" text="영문명" wordwrap="char"/>
  319. <Cell col="13" text="한글명" wordwrap="char"/>
  320. <Cell col="14" text="용어구분" wordwrap="char"/>
  321. <Cell col="15" text="대표어&#10;여부" wordwrap="char"/>
  322. <Cell col="16" text="전염병&#10;구분" wordwrap="char"/>
  323. <Cell col="17" text="만성&#10;질환" wordwrap="char"/>
  324. <Cell col="18" text="산정&#10;특례" wordwrap="char"/>
  325. <Cell col="19" text="중증&#10;분류" wordwrap="char"/>
  326. <Cell col="20" text="연령별 구분" wordwrap="char"/>
  327. <Cell col="21" text="남녀&#10;구분" wordwrap="char"/>
  328. <Cell col="22" text="암진단&#10;용어 여부" wordwrap="char"/>
  329. <Cell col="23" text="분류&#10;코드" wordwrap="char"/>
  330. <Cell col="24" text="분류코드" wordwrap="char"/>
  331. <Cell col="25" text="버전" wordwrap="char"/>
  332. <Cell col="26" text="시작일자" wordwrap="char"/>
  333. <Cell col="27" text="종료일자" wordwrap="char"/>
  334. <Cell col="28" text="최초등록일시" wordwrap="char"/>
  335. <Cell col="29" text="최초등록자ID" wordwrap="char"/>
  336. <Cell col="30" text="진단속성시작일자" wordwrap="char"/>
  337. <Cell col="31" text="진단속성종료일자" wordwrap="char"/>
  338. <Cell col="32" text="최종등록일시" wordwrap="char"/>
  339. <Cell col="33" text="최종등록자ID" wordwrap="char"/>
  340. <Cell col="34" text="최종등록자" wordwrap="char"/>
  341. <Cell col="35" text="필수용어구분" wordwrap="char"/>
  342. </Band>
  343. <Band id="body">
  344. <Cell celltype="head" text="expr:currow+1"/>
  345. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:termuseyn" expr="expr:(termuseyn==&quot;Y&quot;||termuseyn==1)?1:0"/>
  346. <Cell col="2" displaytype="combo" edittype="combo" text="bind:state" enable="false"/>
  347. <Cell col="3" text="bind:icd10cd"/>
  348. <Cell col="4" text="bind:icdfromdd"/>
  349. <Cell col="5" text="bind:diagattrcd"/>
  350. <Cell col="6" text="bind:termcd"/>
  351. <Cell col="7" text="bind:alttermcd"/>
  352. <Cell col="8" displaytype="text" text="bind:snmdcnptid" wordwrap="char" autosizerow="limitmin"/>
  353. <Cell col="9" displaytype="text" text="bind:snmdcnptnm" wordwrap="char" autosizerow="limitmin"/>
  354. <Cell col="10" displaytype="text" text="bind:snmddescid" wordwrap="char" autosizerow="limitmin"/>
  355. <Cell col="11" displaytype="text" text="bind:umlscd" wordwrap="char" autosizerow="limitmin"/>
  356. <Cell col="12" displaytype="text" text="bind:termengnm" wordwrap="char" autosizerow="limitmin"/>
  357. <Cell col="13" displaytype="text" text="bind:termhngnm" wordwrap="char" autosizerow="limitmin"/>
  358. <Cell col="14" text="bind:termflag"/>
  359. <Cell col="15" displaytype="combo" edittype="combo" text="bind:reprflag" enable="false"/>
  360. <Cell col="16" displaytype="combo" edittype="combo" text="bind:lglydisflag" enable="false"/>
  361. <Cell col="17" displaytype="combo" edittype="combo" text="bind:chrncsickyn" enable="false"/>
  362. <Cell col="18" displaytype="combo" edittype="combo" text="bind:estmexptyn" enable="false"/>
  363. <Cell col="19" displaytype="combo" edittype="combo" text="bind:serdiagclsyn" enable="false"/>
  364. <Cell col="20" displaytype="combo" edittype="combo" text="bind:ageflag"/>
  365. <Cell col="21" displaytype="combo" edittype="combo" text="bind:manwomflag" enable="false"/>
  366. <Cell col="22" displaytype="combo" edittype="combo" text="bind:cncryn"/>
  367. <Cell col="23" text="bind:diagattrdrindxcd"/>
  368. <Cell col="24" text="bind:diagattrmedireccd"/>
  369. <Cell col="25" text="bind:diagattrverflag"/>
  370. <Cell col="26" displaytype="text" text="bind:termfromdd" mask="expr:utlf_isNull(termfromdd) ? '' : '####-##-##'"/>
  371. <Cell col="27" displaytype="text" text="bind:termtodd" mask="expr:utlf_isNull(termtodd) ? '' : '####-##-##'"/>
  372. <Cell col="28" text="bind:fstrgstdt"/>
  373. <Cell col="29" text="bind:fstrgstrid"/>
  374. <Cell col="30" text="bind:attrfromdd"/>
  375. <Cell col="31" text="bind:attrtodd"/>
  376. <Cell col="32" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##:##'"/>
  377. <Cell col="33" text="bind:lastupdtrid"/>
  378. <Cell col="34" text="bind:lastupdtrnm"/>
  379. <Cell col="35" text="bind:essntermflag"/>
  380. </Band>
  381. </Format>
  382. </Formats>
  383. </Grid>
  384. <Radio id="rdo_estmexptyn" taborder="51" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 113 545 230 565">
  385. <Dataset id="innerdataset">
  386. <ColumnInfo>
  387. <Column id="codecolumn"/>
  388. <Column id="datacolumn"/>
  389. </ColumnInfo>
  390. <Rows>
  391. <Row>
  392. <Col id="codecolumn">Y</Col>
  393. <Col id="datacolumn">Y</Col>
  394. </Row>
  395. <Row>
  396. <Col id="codecolumn">N</Col>
  397. <Col id="datacolumn">N</Col>
  398. </Row>
  399. </Rows>
  400. </Dataset>
  401. </Radio>
  402. <Radio id="rdo_manwomflag" taborder="52" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 347 497 460 517" index="-1" style=":disabled {textpadding:0 3 0 3;}">
  403. <Dataset id="innerdataset">
  404. <ColumnInfo>
  405. <Column id="codecolumn"/>
  406. <Column id="datacolumn"/>
  407. </ColumnInfo>
  408. <Rows>
  409. <Row>
  410. <Col id="codecolumn">A</Col>
  411. <Col id="datacolumn">남여</Col>
  412. </Row>
  413. <Row>
  414. <Col id="codecolumn">M</Col>
  415. <Col id="datacolumn">남</Col>
  416. </Row>
  417. <Row>
  418. <Col id="codecolumn">F</Col>
  419. <Col id="datacolumn">여</Col>
  420. </Row>
  421. </Rows>
  422. </Dataset>
  423. </Radio>
  424. <Radio id="rdo_serdiagclsyn" taborder="53" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 347 473 460 493">
  425. <Dataset id="innerdataset">
  426. <ColumnInfo>
  427. <Column id="codecolumn"/>
  428. <Column id="datacolumn"/>
  429. </ColumnInfo>
  430. <Rows>
  431. <Row>
  432. <Col id="codecolumn">Y</Col>
  433. <Col id="datacolumn">Y</Col>
  434. </Row>
  435. <Row>
  436. <Col id="codecolumn">N</Col>
  437. <Col id="datacolumn">N</Col>
  438. </Row>
  439. </Rows>
  440. </Dataset>
  441. </Radio>
  442. <Radio id="rdo_chrncsickyn" taborder="54" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 113 521 230 541">
  443. <Dataset id="innerdataset">
  444. <ColumnInfo>
  445. <Column id="codecolumn"/>
  446. <Column id="datacolumn"/>
  447. </ColumnInfo>
  448. <Rows>
  449. <Row>
  450. <Col id="codecolumn">Y</Col>
  451. <Col id="datacolumn">Y</Col>
  452. </Row>
  453. <Row>
  454. <Col id="codecolumn">N</Col>
  455. <Col id="datacolumn">N</Col>
  456. </Row>
  457. </Rows>
  458. </Dataset>
  459. </Radio>
  460. <Shape id="line4" linetype="horizontal" class="line_3" position="absolute 0 289 936 295"/>
  461. <Button id="btn_diagattrcd" taborder="55" class="icon_search" enable="false" visible="false" position="absolute 211 354 227 370"/>
  462. <Button id="btn_medireccd" taborder="56" class="icon_search" enable="false" visible="false" position="absolute 441 379 457 395"/>
  463. <Edit id="ipt_fstrgstrid" taborder="57" class="input_default" enable="false" position="absolute 367 569 460 588"/>
  464. <Edit id="ipt_snmdcnptid" taborder="58" class="input_default" enable="false" position="absolute 347 329 435 348"/>
  465. <Calendar id="ipt_termfromdd" taborder="60" class="input_default" enable="false" position="absolute 53 569 143 588" mask="yyyy-mm-dd" dateformat="yyyy-MM-dd" value="null"/>
  466. <Calendar id="ipt_termtodd" taborder="61" class="input_default" enable="false" position="absolute 200 569 290 588" mask="yyyy-mm-dd" dateformat="yyyy-MM-dd"/>
  467. <Calendar id="input6" taborder="62" class="input_default" enable="false" visible="false" position="absolute 153 316 177 319" mask="yyyy-mm-dd"/>
  468. <Combo id="cmb_lglydisflag" taborder="64" innerdataset="@ds_init_A0129" codecolumn="cdid" datacolumn="cdnm" enable="false" position="absolute 113 497 231 516"/>
  469. <Edit id="input8" taborder="65" class="input_default" enable="false" visible="false" position="absolute 138 316 157 319"/>
  470. <Combo id="cmb_diagattrverflag" taborder="66" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 160 473 230 492">
  471. <Dataset id="innerdataset">
  472. <ColumnInfo>
  473. <Column id="codecolumn"/>
  474. <Column id="datacolumn"/>
  475. </ColumnInfo>
  476. <Rows>
  477. <Row>
  478. <Col id="codecolumn">9</Col>
  479. <Col id="datacolumn">ICD9</Col>
  480. </Row>
  481. <Row>
  482. <Col id="codecolumn">0</Col>
  483. <Col id="datacolumn">ICD10</Col>
  484. </Row>
  485. <Row>
  486. <Col id="codecolumn">5</Col>
  487. <Col id="datacolumn">KCD5</Col>
  488. </Row>
  489. </Rows>
  490. </Dataset>
  491. </Combo>
  492. <Combo id="cmb_ageflag" taborder="67" innerdataset="@ds_init_M0382" codecolumn="cdid" datacolumn="cdnm" class="combo_default" enable="false" position="absolute 347 521 460 540"/>
  493. <Radio id="rdo_cncryn" taborder="68" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 347 545 460 565">
  494. <Dataset id="innerdataset">
  495. <ColumnInfo>
  496. <Column id="codecolumn"/>
  497. <Column id="datacolumn"/>
  498. </ColumnInfo>
  499. <Rows>
  500. <Row>
  501. <Col id="codecolumn">Y</Col>
  502. <Col id="datacolumn">Y</Col>
  503. </Row>
  504. <Row>
  505. <Col id="codecolumn">N</Col>
  506. <Col id="datacolumn">N</Col>
  507. </Row>
  508. </Rows>
  509. </Dataset>
  510. </Radio>
  511. <Shape id="line33" linetype="horizontal" class="line_2" position="absolute 1 419 461 425"/>
  512. <Edit id="ipt_umlscd" taborder="70" class="input_default" enable="false" position="absolute 347 401 460 420"/>
  513. <Edit id="ipt_alttermcd" taborder="71" class="input_default" enable="false" position="absolute 113 401 207 420"/>
  514. <Button id="btn_altterm" taborder="72" class="icon_search" enable="false" position="absolute 212 403 228 419" onclick="switch2_DiagTerm_btn_altterm_onclick"/>
  515. <Shape id="line1" linetype="horizontal" class="line_2" position="absolute 0 611 460 617"/>
  516. <Shape id="line35" linetype="horizontal" class="line_3" position="absolute 0 662 940 668"/>
  517. <Shape id="line34" linetype="horizontal" class="line_2" position="absolute 476 611 936 617"/>
  518. <Radio id="rdo_essntermflag" taborder="76" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 113 593 230 613">
  519. <Dataset id="innerdataset">
  520. <ColumnInfo>
  521. <Column id="codecolumn"/>
  522. <Column id="datacolumn"/>
  523. </ColumnInfo>
  524. <Rows>
  525. <Row>
  526. <Col id="codecolumn">Y</Col>
  527. <Col id="datacolumn">Y</Col>
  528. </Row>
  529. <Row>
  530. <Col id="codecolumn">N</Col>
  531. <Col id="datacolumn">N</Col>
  532. </Row>
  533. </Rows>
  534. </Dataset>
  535. </Radio>
  536. <Calendar id="input7" taborder="77" class="input_default" enable="false" visible="false" position="absolute 168 316 192 319" mask="yyyy-mm-dd"/>
  537. <Button id="btn_delete1" taborder="78" text="사용종료" class="btn5" enable="false" visible="false" position="absolute 397 315 461 318"/>
  538. <Button id="button21" taborder="79" text="저장" class="btn5" visible="false" position="absolute 352 314 394 317"/>
  539. <Button id="button30" taborder="80" text="동의어수정" class="btn2" visible="false" position="absolute 273 315 348 318"/>
  540. <Button id="button27" taborder="81" text="대표어수정" class="btn2" enable="false" visible="false" position="absolute 196 315 271 318"/>
  541. <Button id="btn_sameterm" taborder="73" text="동의/유사어입력" class="btn2" position="absolute 149 300 255 322" onclick="switch2_DiagTerm_btn_sameterm_onclick"/>
  542. <Button id="btn_termsave" taborder="74" text="저장" class="btn5" position="absolute 366 300 405 322" onclick="switch2_DiagTerm_btn_termsave_onclick"/>
  543. <Button id="btn_delete2" taborder="44" text="사용종료" class="btn5" position="absolute 408 300 470 322" onclick="switch2_DiagTerm_btn_delete2_onclick"/>
  544. <Button id="button26" taborder="45" text="신규입력" class="btn2" position="absolute 83 300 146 322" onclick="switch2_DiagTerm_button26_onclick"/>
  545. <Button id="btn_modify1" taborder="59" text="수정" class="btn2" position="absolute 258 300 297 322" onclick="switch2_DiagTerm_btn_modify1_onclick"/>
  546. <Button id="btn_rollback" taborder="69" text="되살리기" class="btn5" position="absolute 300 300 363 322" onclick="switch2_DiagTerm_btn_rollback_onclick"/>
  547. <Static id="caption34" text="UMLS" class="cell_1" position="absolute 234 399 344 422" style="padding:0 0 0 4;"/>
  548. <Static id="caption35" text="대체코드" class="cell_1" position="absolute 0 399 110 422" style="padding:0 0 0 4;"/>
  549. <Static id="cap_appinst" text="적용 기관" class="cell_1" position="absolute 0 615 110 663" style="padding:0 0 0 4;"/>
  550. <Static id="caption36" text="필수용어 여부" class="cell_1" position="absolute 0 591 110 614" style="padding:0 0 0 4;"/>
  551. <Static id="caption20" text="ICD10 코드" class="cell_1" position="absolute 0 327 110 350" style="padding:0 0 0 4;"/>
  552. <Static id="caption21" text="시작일" class="cell_1" position="absolute 0 567 50 590" style="padding:0 0 0 4;"/>
  553. <Static id="caption32" text="SNMD-concept ID" class="cell_1" position="absolute 234 327 344 350" style="padding:0 0 0 4;"/>
  554. <Static id="caption22" text="등록일시" class="cell_1" position="absolute 234 591 334 614" style="padding:0 0 0 4;"/>
  555. <Static id="caption11" text="색인코드" class="cell_1" position="absolute 234 375 344 398" style="padding:0 0 0 4;"/>
  556. <Static id="caption37" text="SNMD-concept 명" class="cell_1" position="absolute 234 351 344 374" style="padding:0 0 0 4;"/>
  557. <Static id="caption6" text="확장코드" class="cell_1" position="absolute 0 351 110 374" style="padding:0 0 0 4;"/>
  558. <Static id="caption27" text="용어코드" class="cell_1" position="absolute 0 375 110 398" style="padding:0 0 0 4;"/>
  559. <Static id="caption16" text="등록자" class="cell_1" position="absolute 294 567 364 590" style="padding:0 0 0 4;"/>
  560. <Static id="caption8" text="영문명" class="cell_1" position="absolute 0 423 110 446" style="padding:0 0 0 4;"/>
  561. <Static id="caption9" text="한글명" class="cell_1" position="absolute 0 447 110 470" style="padding:0 0 0 4;"/>
  562. <Static id="caption19" text="종료일" class="cell_1" position="absolute 147 567 197 590" style="padding:0 0 0 4;"/>
  563. <Static id="caption18" text="대표어 구분/버전" class="cell_1" position="absolute 0 471 110 494" style="padding:0 0 0 4;"/>
  564. <Static id="caption12" text="전염병 구분" class="cell_1" position="absolute 0 495 110 518" style="padding:0 0 0 4;"/>
  565. <Static id="caption13" text="만성질환 여부" class="cell_1" position="absolute 0 519 110 542" style="padding:0 0 0 4;"/>
  566. <Static id="caption24" text="중증분류 여부" class="cell_1" position="absolute 234 471 344 494" style="padding:0 0 0 4;"/>
  567. <Static id="caption14" text="산정특례 여부" class="cell_1" position="absolute 0 543 110 566" style="padding:0 0 0 4;"/>
  568. <Static id="caption7" text="연령별 구분" class="cell_1" position="absolute 234 519 344 542" style="padding:0 0 0 4;"/>
  569. <Static id="caption17" text="남여 구분" class="cell_1" position="absolute 234 495 344 518" style="padding:0 0 0 4;"/>
  570. <Static id="caption30" text="암진단 용어 여부" class="cell_1" position="absolute 234 543 344 566" style="padding:0 0 0 4;"/>
  571. <Div id="grp_tabbtn" taborder="85" position="absolute 476 299 787 324">
  572. <Layouts>
  573. <Layout>
  574. <Button id="button1" taborder="0" text="동의어/유사어" class="btn_tab_S" position="absolute 0 1 100 25" anchor="default" onclick="switch2_DiagTerm_grp_tabbtn_button1_onclick"/>
  575. <Button id="button2" taborder="1" text="이력조회" class="btn_tab" position="absolute 101 1 169 25" anchor="default" onclick="switch2_DiagTerm_grp_tabbtn_button2_onclick"/>
  576. <Button id="button7" taborder="2" text="기관별 사용 이력조회" class="btn_tab" position="absolute 170 1 302 25" anchor="default" onclick="switch2_DiagTerm_grp_tabbtn_button7_onclick"/>
  577. </Layout>
  578. </Layouts>
  579. </Div>
  580. <cp_checkboxList id="chk_appinst" taborder="86" scrollbars="none" position="absolute 114 614 214 634" style="background:transparent;" col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible" enable="false" class="output"/>
  581. </Layout>
  582. </Layouts>
  583. </Tabpage>
  584. <Tabpage id="case_DeptDiag" text="과진단코드">
  585. <Layouts>
  586. <Layout>
  587. <Static id="caption23" text="과진단 정보" class="tit_2" position="absolute 0 7 95 23"/>
  588. <Button id="btn_deptsrch" taborder="19" class="icon_search" position="absolute 147 4 163 20" onclick="switch2_case_DeptDiag_btn_deptsrch_onclick"/>
  589. <Grid id="grd_deptdiag" taborder="20" binddataset="ds_main_deptdiagcdlist_deptdiagcdinfo" useinputpanel="false" position="absolute 0 28 940 315" onvtracklast="switch2_case_DeptDiag_grd_deptdiag_onvtracklast" extendsizetype="row" autosizingtype="row" cellsizingtype="both">
  590. <Formats>
  591. <Format id="default">
  592. <Columns>
  593. <Column size="25" band="left"/>
  594. <Column size="38"/>
  595. <Column size="128"/>
  596. <Column size="100"/>
  597. <Column size="130"/>
  598. <Column size="267"/>
  599. <Column size="278"/>
  600. <Column size="100"/>
  601. <Column size="0"/>
  602. <Column size="0"/>
  603. <Column size="0"/>
  604. </Columns>
  605. <Rows>
  606. <Row size="24" band="head"/>
  607. <Row size="24"/>
  608. </Rows>
  609. <Band id="head">
  610. <Cell/>
  611. <Cell col="1" text="상태"/>
  612. <Cell col="2" text="ICD-10"/>
  613. <Cell col="3" text="색인코드"/>
  614. <Cell col="4" text="색인명"/>
  615. <Cell col="5" text="진단 영문명"/>
  616. <Cell col="6" text="진단 한글명"/>
  617. <Cell col="7" text="진료과"/>
  618. <Cell col="8" text="deptcd"/>
  619. <Cell col="9" text="deptfromdt"/>
  620. <Cell col="10" text="deptindxflag"/>
  621. </Band>
  622. <Band id="body">
  623. <Cell celltype="head" text="expr:currow+1"/>
  624. <Cell col="1" displaytype="combo" edittype="combo" text="bind:status" combodataset="ds_cmb_status" combocodecol="value" combodatacol="label"/>
  625. <Cell col="2" displaytype="text" text="bind:termcd" wordwrap="char" autosizerow="limitmin"/>
  626. <Cell col="3" displaytype="text" text="bind:deptindxcd" wordwrap="char" autosizerow="limitmin"/>
  627. <Cell col="4" displaytype="text" text="bind:deptindxnm" wordwrap="char" autosizerow="limitmin"/>
  628. <Cell col="5" displaytype="text" text="bind:termengnm" wordwrap="char" autosizerow="limitmin"/>
  629. <Cell col="6" displaytype="text" text="bind:termhngnm" wordwrap="char" autosizerow="limitmin"/>
  630. <Cell col="7" displaytype="text" text="bind:deptnm" wordwrap="char" autosizerow="limitmin"/>
  631. <Cell col="8" text="bind:deptcd"/>
  632. <Cell col="9" text="bind:deptfromdt"/>
  633. <Cell col="10" text="bind:deptindxflag"/>
  634. </Band>
  635. </Format>
  636. </Formats>
  637. </Grid>
  638. <Edit id="ipt_deptcd" taborder="21" class="input_search" position="absolute 94 4 144 23"/>
  639. <Edit id="ipt_deptnm" taborder="22" class="input_search" position="absolute 166 4 266 23" onkeyup="switch2_case_DeptDiag_ipt_deptnm_onkeyup"/>
  640. <Shape id="line28" linetype="horizontal" class="line_10" position="absolute 0 23 940 29"/>
  641. <Shape id="line29" linetype="horizontal" class="line_10" position="absolute 1 339 940 345"/>
  642. <Edit id="input4" taborder="23" class="input_search" position="absolute 265 320 420 339" onkeyup="switch2_case_DeptDiag_input4_onkeyup"/>
  643. <Radio id="radio3" taborder="24" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 89 320 265 340">
  644. <Dataset id="innerdataset">
  645. <ColumnInfo>
  646. <Column id="codecolumn"/>
  647. <Column id="datacolumn"/>
  648. </ColumnInfo>
  649. <Rows>
  650. <Row>
  651. <Col id="codecolumn">C</Col>
  652. <Col id="datacolumn">코드</Col>
  653. </Row>
  654. <Row>
  655. <Col id="codecolumn">E</Col>
  656. <Col id="datacolumn">영문명</Col>
  657. </Row>
  658. <Row>
  659. <Col id="codecolumn">H</Col>
  660. <Col id="datacolumn">한글명</Col>
  661. </Row>
  662. </Rows>
  663. </Dataset>
  664. </Radio>
  665. <Static id="caption29" text="진단 추가" class="tit_2" position="absolute 0 323 84 340"/>
  666. <Grid id="grd_srcheddiaginfo" taborder="25" binddataset="ds_main_srcheddiagcdlist_srcheddiagcdinfo" useinputpanel="false" position="absolute 1 344 940 665" oncellclick="switch2_case_DeptDiag_grd_srcheddiaginfo_oncellclick" cellclickbound="cell" autosizingtype="row" extendsizetype="row" cellsizingtype="both">
  667. <Formats>
  668. <Format id="default">
  669. <Columns>
  670. <Column size="25" band="left"/>
  671. <Column size="34"/>
  672. <Column size="100"/>
  673. <Column size="346"/>
  674. <Column size="330"/>
  675. </Columns>
  676. <Rows>
  677. <Row size="24" band="head"/>
  678. <Row size="24"/>
  679. </Rows>
  680. <Band id="head">
  681. <Cell/>
  682. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  683. <Cell col="2" text="ICD-10"/>
  684. <Cell col="3" text="진단 영문명"/>
  685. <Cell col="4" text="진단 한글명"/>
  686. </Band>
  687. <Band id="body">
  688. <Cell celltype="head" text="expr:currow+1"/>
  689. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:(check==&quot;Y&quot;||check==1)?1:0"/>
  690. <Cell col="2" displaytype="text" text="bind:termcd" wordwrap="char" autosizerow="limitmin"/>
  691. <Cell col="3" displaytype="text" text="bind:termengnm" wordwrap="char" autosizerow="limitmin"/>
  692. <Cell col="4" displaytype="text" text="bind:termhngnm" wordwrap="char" autosizerow="limitmin"/>
  693. </Band>
  694. </Format>
  695. </Formats>
  696. </Grid>
  697. <Button id="btn_srchdiag" taborder="26" text="조회" class="btn2" position="absolute 425 317 467 339" onclick="switch2_case_DeptDiag_btn_srchdiag_onclick"/>
  698. <Button id="btn_senddiag" taborder="27" class="icon_top" position="absolute 559 317 585 339" onclick="switch2_case_DeptDiag_btn_senddiag_onclick"/>
  699. <Button id="btn_srchdeptdiag" taborder="28" text="조회" class="btn2" position="absolute 808 1 850 23" onclick="switch2_case_DeptDiag_btn_srchdeptdiag_onclick"/>
  700. <Button id="btn_savedeptdiag" taborder="29" text="저장" class="btn5" position="absolute 898 1 940 23" onclick="switch2_case_DeptDiag_btn_savedeptdiag_onclick"/>
  701. <Button id="btn_srchextndiag" taborder="30" text="전체진단조회" class="btn2" position="absolute 470 317 556 339" onclick="switch2_case_DeptDiag_btn_srchextndiag_onclick"/>
  702. <Button id="btn_deldeptdiag" taborder="31" text="삭제" class="btn2" position="absolute 853 1 895 23" onclick="switch2_case_DeptDiag_btn_deldeptdiag_onclick"/>
  703. </Layout>
  704. </Layouts>
  705. </Tabpage>
  706. <Tabpage id="KCD4M" text="Morphology">
  707. <Layouts>
  708. <Layout>
  709. <Shape id="line2" linetype="horizontal" class="line_3" position="absolute 0 663 505 667"/>
  710. <Static id="caption1" text="ICD-10-M 진단정보" class="tit_2" position="absolute 0 475 150 491"/>
  711. <Button id="btn_new" taborder="19" text="신규" class="btn2" position="absolute 311 469 353 491" onclick="switch2_KCD4M_btn_new_onclick"/>
  712. <Shape id="line20" linetype="horizontal" class="line_10" position="absolute 0 491 510 497"/>
  713. <Shape id="line22" linetype="horizontal" class="line_2" position="absolute 1 564 507 570"/>
  714. <Button id="btn_save" taborder="20" text="저장" class="btn5" position="absolute 401 469 443 491" onclick="switch2_KCD4M_btn_save_onclick"/>
  715. <Shape id="line23" linetype="horizontal" class="line_2" position="absolute 1 588 507 594"/>
  716. <Edit id="ipt_indxcd" taborder="21" class="input_essential" enable="false" position="absolute 347 498 507 517"/>
  717. <Shape id="line24" linetype="horizontal" class="line_3" position="absolute 0 464 935 470"/>
  718. <Grid id="grd_kcd4minfo" class="datagrid2" taborder="22" binddataset="ds_main_diagcdinfo_kcd4m" useinputpanel="false" position="absolute 0 0 940 465" oncellclick="switch2_KCD4M_grd_kcd4minfo_oncellclick" onvtracklast="switch2_KCD4M_grd_kcd4minfo_onvtracklast" onrbuttonup="switch2_KCD4M_grd_kcd4minfo_onrbuttonup" selecttype="multirow" extendsizetype="row" autosizingtype="row" cellsizingtype="both">
  719. <Formats>
  720. <Format id="default">
  721. <Columns>
  722. <Column size="25" band="left"/>
  723. <Column size="0"/>
  724. <Column size="105"/>
  725. <Column size="70"/>
  726. <Column size="95"/>
  727. <Column size="70"/>
  728. <Column size="100"/>
  729. <Column size="100"/>
  730. <Column size="268"/>
  731. <Column size="272"/>
  732. <Column size="85"/>
  733. <Column size="85"/>
  734. <Column size="130"/>
  735. <Column size="100"/>
  736. <Column size="0"/>
  737. <Column size="0"/>
  738. <Column size="0"/>
  739. </Columns>
  740. <Rows>
  741. <Row size="30" band="head"/>
  742. <Row size="24"/>
  743. </Rows>
  744. <Band id="head">
  745. <Cell/>
  746. <Cell col="1" text="stat"/>
  747. <Cell col="2" text="형태학적 코드"/>
  748. <Cell col="3" text="일련번호"/>
  749. <Cell col="4" text="색인코드"/>
  750. <Cell col="5" text="Version"/>
  751. <Cell col="6" text="SNOMED&#10;Concept ID"/>
  752. <Cell col="7" text="SNOMED-CT&#10;Concept 명"/>
  753. <Cell col="8" text="영문명"/>
  754. <Cell col="9" text="한글명"/>
  755. <Cell col="10" text="시작일"/>
  756. <Cell col="11" text="종료일"/>
  757. <Cell col="12" text="최종등록일시"/>
  758. <Cell col="13" text="최종등록자"/>
  759. <Cell col="14" text="최초등록일"/>
  760. <Cell col="15" text="최초등록자"/>
  761. <Cell col="16" text="최종수정일"/>
  762. </Band>
  763. <Band id="body">
  764. <Cell celltype="head" text="expr:currow+1"/>
  765. <Cell col="1"/>
  766. <Cell col="2" displaytype="text" text="bind:morphlgccd"/>
  767. <Cell col="3" displaytype="text" text="bind:kcd4mseqno"/>
  768. <Cell col="4" displaytype="text" text="bind:indxcd"/>
  769. <Cell col="5" displaytype="combo" edittype="combo" text="bind:version" combodataset="ds_cmb_version" combocodecol="value" combodatacol="label" enable="false"/>
  770. <Cell col="6" displaytype="text" text="bind:snmdcnptid" wordwrap="char" autosizerow="limitmin"/>
  771. <Cell col="7" displaytype="text" text="bind:snmdcnptnm" wordwrap="char" autosizerow="limitmin"/>
  772. <Cell col="8" displaytype="text" text="bind:kcd4mengnm" wordwrap="char" autosizerow="limitmin"/>
  773. <Cell col="9" displaytype="text" text="bind:kcd4mhngnm" wordwrap="char" autosizerow="limitmin"/>
  774. <Cell col="10" text="bind:kcd4mfromdd" mask="expr:utlf_isNull(kcd4mfromdd) ? '' : '####-##-##'"/>
  775. <Cell col="11" text="bind:kcd4mtodd" mask="expr:utlf_isNull(kcd4mtodd) ? '' : '####-##-##'"/>
  776. <Cell col="12" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##:##'"/>
  777. <Cell col="13" text="bind:lastupdtrnm"/>
  778. <Cell col="14" text="bind:fstrgstrid"/>
  779. <Cell col="15" text="bind:fstrgstdt"/>
  780. <Cell col="16" text="bind:lastupdtrid"/>
  781. </Band>
  782. </Format>
  783. </Formats>
  784. </Grid>
  785. <Edit id="ipt_morphlgccd" taborder="23" class="input_essential" enable="false" position="absolute 92 498 252 517"/>
  786. <Edit id="ipt_kcd4mengnm" taborder="24" class="input_default" enable="false" position="absolute 92 570 507 589"/>
  787. <Edit id="ipt_kcd4mhngnm" taborder="25" class="input_default" enable="false" position="absolute 92 594 507 613"/>
  788. <Calendar id="input1" taborder="26" class="input_essential" enable="false" position="absolute 347 618 452 637"/>
  789. <MaskEdit id="input2" taborder="27" mask="hh:nn" class="input_essential" enable="false" position="absolute 454 618 507 637"/>
  790. <Calendar id="ipt_kcd4mfromdate" taborder="28" class="input_essential" enable="false" position="absolute 92 618 252 637"/>
  791. <Calendar id="ipt_kcd4mtodate" taborder="29" class="input_essential" enable="false" position="absolute 92 642 252 661"/>
  792. <Shape id="line6" linetype="horizontal" class="line_2" position="absolute 1 612 507 618"/>
  793. <Shape id="line26" linetype="horizontal" class="line_2" position="absolute 1 636 507 642"/>
  794. <Edit id="input9" taborder="30" class="input_essential" enable="false" position="absolute 347 642 507 661"/>
  795. <Grid id="grd_kcd4mhist" class="datagrid2" taborder="31" binddataset="ds_main_kcd4mhist_list" useinputpanel="false" position="absolute 515 495 940 664" oncellclick="switch2_KCD4M_grd_kcd4mhist_oncellclick">
  796. <Formats>
  797. <Format id="default">
  798. <Columns>
  799. <Column size="25" band="left"/>
  800. <Column size="90"/>
  801. <Column size="70"/>
  802. <Column size="80"/>
  803. <Column size="70"/>
  804. <Column size="100"/>
  805. <Column size="100"/>
  806. <Column size="100"/>
  807. <Column size="100"/>
  808. <Column size="160"/>
  809. <Column size="160"/>
  810. <Column size="129"/>
  811. <Column size="100"/>
  812. <Column size="130"/>
  813. <Column size="100"/>
  814. <Column size="0"/>
  815. </Columns>
  816. <Rows>
  817. <Row size="30" band="head"/>
  818. <Row size="24"/>
  819. </Rows>
  820. <Band id="head">
  821. <Cell/>
  822. <Cell col="1" text="형태학적코드"/>
  823. <Cell col="2" text="일련번호"/>
  824. <Cell col="3" text="색인코드"/>
  825. <Cell col="4" text="Version"/>
  826. <Cell col="5" text="SNOMED&#10;CONCEPT ID"/>
  827. <Cell col="6" text="SNOMED&#10;CONCEPT 명"/>
  828. <Cell col="7" text="시작일자"/>
  829. <Cell col="8" text="종료일자"/>
  830. <Cell col="9" text="영문명"/>
  831. <Cell col="10" text="한글명"/>
  832. <Cell col="11" text="등록일시"/>
  833. <Cell col="12" text="등록자"/>
  834. <Cell col="13" text="최종수정일시"/>
  835. <Cell col="14" text="최종수정자"/>
  836. <Cell col="15" text="caption2"/>
  837. </Band>
  838. <Band id="body">
  839. <Cell celltype="head" text="expr:currow+1"/>
  840. <Cell col="1" displaytype="text" text="bind:morphlgccd"/>
  841. <Cell col="2" displaytype="text" text="bind:kcd4mseqno"/>
  842. <Cell col="3" displaytype="text" text="bind:indxcd"/>
  843. <Cell col="4" displaytype="combo" edittype="combo" text="bind:version" combodataset="ds_cmb_version" combocodecol="value" combodatacol="label" enable="false"/>
  844. <Cell col="5" displaytype="text" text="bind:snmdcnptid"/>
  845. <Cell col="6" displaytype="text" text="bind:snmdcnptnm"/>
  846. <Cell col="7" text="bind:kcd4mfromdd" mask="expr:utlf_isNull(kcd4mfromdd) ? '' : '####-##-##'"/>
  847. <Cell col="8" text="bind:kcd4mtodd" mask="expr:utlf_isNull(kcd4mtodd) ? '' : '####-##-##'"/>
  848. <Cell col="9" displaytype="text" text="bind:kcd4mengnm"/>
  849. <Cell col="10" displaytype="text" text="bind:kcd4mhngnm"/>
  850. <Cell col="11" text="bind:fstrgstdt" mask="expr:utlf_isNull(fstrgstdt) ? '' : '####-##-## ##:##:##'"/>
  851. <Cell col="12" text="bind:fstrgstrid"/>
  852. <Cell col="13" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##:##'"/>
  853. <Cell col="14" text="bind:lastupdtrnm"/>
  854. <Cell col="15" text="bind:lastupdtrid"/>
  855. </Band>
  856. </Format>
  857. </Formats>
  858. </Grid>
  859. <Shape id="line30" linetype="horizontal" class="line_10" position="absolute 516 490 940 496"/>
  860. <Button id="button4" taborder="32" text="사용종료" class="btn5" position="absolute 446 469 510 491" onclick="switch2_KCD4M_button4_onclick"/>
  861. <Button id="button6" taborder="33" text="수정" class="btn2" position="absolute 356 469 398 491" onclick="switch2_KCD4M_button6_onclick"/>
  862. <Static id="caption15" text="이력조회" class="tit_2" position="absolute 516 474 664 491"/>
  863. <Edit id="ipt_kcd4mseqno" taborder="34" class="input_essential" enable="false" position="absolute 92 522 252 541"/>
  864. <Edit id="ipt_kcdsnmdcnptid" taborder="35" class="input_default" enable="false" position="absolute 347 522 507 541"/>
  865. <Shape id="line31" linetype="horizontal" class="line_2" position="absolute 2 516 507 522"/>
  866. <Edit id="ipt_kcdsnmdcnptnm" taborder="36" class="input_default" enable="false" position="absolute 347 546 507 565"/>
  867. <Shape id="line32" linetype="horizontal" class="line_2" position="absolute 1 540 507 546"/>
  868. <Combo id="cmb_version" taborder="37" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" enable="false" position="absolute 92 546 252 565">
  869. <Dataset id="innerdataset">
  870. <ColumnInfo>
  871. <Column id="codecolumn"/>
  872. <Column id="datacolumn"/>
  873. </ColumnInfo>
  874. <Rows>
  875. <Row>
  876. <Col id="codecolumn">04</Col>
  877. <Col id="datacolumn">KCD-4</Col>
  878. </Row>
  879. <Row>
  880. <Col id="codecolumn">05</Col>
  881. <Col id="datacolumn">KCD-5</Col>
  882. </Row>
  883. </Rows>
  884. </Dataset>
  885. </Combo>
  886. <Static id="cap_todt" text="종료일자" class="cell_1" position="absolute 0 640 90 663"/>
  887. <Static id="cap_hngnm" text="한글명" class="cell_1" position="absolute 0 592 90 615"/>
  888. <Static id="cap_fromdt" text="시작일자" class="cell_1" position="absolute 0 616 90 639"/>
  889. <Static id="cap_diagcd" text="형태학적 코드" class="cell_1" position="absolute 0 496 90 519"/>
  890. <Static id="caption28" text="일련번호" class="cell_1" position="absolute 0 520 90 543"/>
  891. <Static id="caption33" text="버젼" class="cell_1" position="absolute 0 544 90 567"/>
  892. <Static id="cap_engnm" text="영문명" class="cell_1" position="absolute 0 568 90 591"/>
  893. <Static id="caption31" text="Concept 명" class="cell_1" position="absolute 255 544 345 567"/>
  894. <Static id="cap_indxcd" text="색인코드" class="cell_1" position="absolute 255 496 345 519"/>
  895. <Static id="caption3" text="등록일시" class="cell_1" position="absolute 255 616 345 639"/>
  896. <Static id="caption2" text="등록자" class="cell_1" position="absolute 255 640 345 663"/>
  897. <Static id="caption10" text="Concept ID" class="cell_1" position="absolute 255 520 345 543"/>
  898. </Layout>
  899. </Layouts>
  900. </Tabpage>
  901. </Tabpages>
  902. </Tab>
  903. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1123 35 1129 57"/>
  904. <Shape id="line11" class="line_10" position="absolute 0 89 250 95"/>
  905. <Static id="caption4" text="조회 :" class="search_name" position="absolute 485 38 531 55"/>
  906. <Edit id="input5" taborder="5" class="input_search" position="absolute 536 36 626 55" onkeyup="input5_onkeyup"/>
  907. <Static id="caption5" text="구분 :" class="search_name" position="absolute 265 38 311 55"/>
  908. <Radio id="radio2" taborder="9" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 317 36 477 56">
  909. <Dataset id="innerdataset">
  910. <ColumnInfo>
  911. <Column id="codecolumn"/>
  912. <Column id="datacolumn"/>
  913. </ColumnInfo>
  914. <Rows>
  915. <Row>
  916. <Col id="codecolumn">C</Col>
  917. <Col id="datacolumn">코드</Col>
  918. </Row>
  919. <Row>
  920. <Col id="codecolumn">E</Col>
  921. <Col id="datacolumn">영문명</Col>
  922. </Row>
  923. <Row>
  924. <Col id="codecolumn">H</Col>
  925. <Col id="datacolumn">한글명</Col>
  926. </Row>
  927. </Rows>
  928. </Dataset>
  929. </Radio>
  930. <Button id="button22" taborder="10" text="색인추가" class="btn2" position="absolute 186 67 250 89" onclick="button22_onclick"/>
  931. <Grid id="trv_dgindx" taborder="11" useinputpanel="false" treeusecheckbox="false" position="absolute 0 94 250 759" autofit="col" binddataset="ds_main_indxlist_item" oncellclick="trv_dgindx_oncellclick" onrbuttonup="trv_dgindx_onrbuttonup">
  932. <Formats>
  933. <Format id="default">
  934. <Columns>
  935. <Column size="250"/>
  936. </Columns>
  937. <Rows>
  938. <Row size="20"/>
  939. </Rows>
  940. <Band id="body">
  941. <Cell displaytype="tree" edittype="tree" text="bind:indxhngnm" treestartlevel="1" treelevel="bind:depth"/>
  942. </Band>
  943. </Format>
  944. </Formats>
  945. </Grid>
  946. <Radio id="radio1" taborder="12" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 0 69 115 90" onitemchanged="radio1_onitemchanged">
  947. <Dataset id="innerdataset">
  948. <ColumnInfo>
  949. <Column id="codecolumn"/>
  950. <Column id="datacolumn"/>
  951. </ColumnInfo>
  952. <Rows>
  953. <Row>
  954. <Col id="codecolumn">H</Col>
  955. <Col id="datacolumn">한글명</Col>
  956. </Row>
  957. <Row>
  958. <Col id="codecolumn">E</Col>
  959. <Col id="datacolumn">영문명</Col>
  960. </Row>
  961. </Rows>
  962. </Dataset>
  963. </Radio>
  964. <Edit id="input10" taborder="13" class="input_search" position="absolute 10 36 165 55" onkeyup="input10_onkeyup"/>
  965. <Shape id="line27" linetype="vertical" class="line_4" position="absolute 172 35 178 57"/>
  966. <Button id="btn_srchindxcd" taborder="14" text="조회" class="btn1" position="absolute 185 35 241 57" onclick="btn_srchindxcd_onclick"/>
  967. <Button id="btn_srchtermcd" taborder="15" text="조회" class="btn1" position="absolute 1132 35 1188 57" onclick="btn_srchtermcd_onclick"/>
  968. <Calendar id="ipt_endfromdd" taborder="16" class="input_search" enable="false" position="absolute 754 36 844 55" dateformat="yyyy-MM-dd" value="null"/>
  969. <Calendar id="ipt_endtodd" taborder="17" class="input_search" enable="false" position="absolute 864 36 954 55" dateformat="yyyy-MM-dd"/>
  970. <Static id="caption25" text="~" position="absolute 849 36 861 56"/>
  971. <CheckBox id="checkbox2" taborder="18" class="checkbox_search" position="absolute 632 36 747 56" text="사용종료용어조회" truevalue="Y" onclick="checkbox2_onclick"/>
  972. <CheckBox id="checkbox1" taborder="19" class="checkbox_search" position="absolute 120 69 175 89" text="AS_IS" truevalue="ASIS" onclick="checkbox1_onclick"/>
  973. <Combo id="cmb_selInst" taborder="21" innerdataset="@ds_init_M0534selcmb" codecolumn="cdid" datacolumn="cdnm" class="combo_default" visible="false" position="absolute 1019 36 1119 55"/>
  974. <Static id="cap_selInst" text="기관 :" class="search_name" visible="false" position="absolute 967 38 1016 55"/>
  975. <Button id="button15" taborder="2" text="엑셀" class="btn7" position="absolute 1144 67 1195 89" onclick="button15_onclick"/>
  976. <Button id="btn_saverow" taborder="3" text="저장" class="btn5" position="absolute 1099 67 1141 89" onclick="btn_saverow_onclick"/>
  977. <Button id="btn_addrow" taborder="7" text="줄추가" class="btn2" visible="false" position="absolute 942 67 995 89" onclick="btn_addrow_onclick"/>
  978. <Button id="btn_delrow" taborder="8" text="줄삭제" class="btn2" visible="false" position="absolute 998 67 1051 89" onclick="btn_delrow_onclick"/>
  979. <Button id="btn_modify" taborder="20" text="수정" class="btn2" visible="false" position="absolute 1054 67 1096 89" onclick="btn_modify_onclick"/>
  980. <Button id="button17" taborder="24" text="일괄삭제" onclick="button17_onclick" class="btn2" enable="false" visible="false" position="absolute 808 67 872 89"/>
  981. <Button id="button18" taborder="25" text="CLEAR" onclick="button18_onclick" class="btn2" visible="false" position="absolute 875 67 939 89"/>
  982. </Layout>
  983. </Layouts>
  984. <Objects>
  985. <Dataset id="ds_main_diagcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  986. <ColumnInfo>
  987. <Column id="deptdiag" type="STRING" size="256"/>
  988. </ColumnInfo>
  989. </Dataset>
  990. <Dataset id="ds_main_deptdiagcdlist_deptdiagcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  991. <ColumnInfo>
  992. <Column id="status" type="STRING" size="256"/>
  993. <Column id="termcd" type="STRING" size="256"/>
  994. <Column id="deptindxcd" type="STRING" size="256"/>
  995. <Column id="deptindxnm" type="STRING" size="256"/>
  996. <Column id="termengnm" type="STRING" size="256"/>
  997. <Column id="termhngnm" type="STRING" size="256"/>
  998. <Column id="deptnm" type="STRING" size="256"/>
  999. <Column id="deptcd" type="STRING" size="256"/>
  1000. <Column id="deptfromdt" type="STRING" size="256"/>
  1001. <Column id="deptindxflag" type="STRING" size="256"/>
  1002. </ColumnInfo>
  1003. <Rows>
  1004. <Row>
  1005. <Col id="status"/>
  1006. <Col id="termcd"/>
  1007. <Col id="deptindxcd"/>
  1008. <Col id="deptindxnm"/>
  1009. <Col id="termengnm"/>
  1010. <Col id="termhngnm"/>
  1011. <Col id="deptnm"/>
  1012. <Col id="deptcd"/>
  1013. <Col id="deptfromdt"/>
  1014. <Col id="deptindxflag"/>
  1015. </Row>
  1016. </Rows>
  1017. </Dataset>
  1018. <Dataset id="ds_main_diagcdinfo_kcd4m" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1019. <ColumnInfo>
  1020. <Column id="state" type="STRING" size="256"/>
  1021. <Column id="morphlgccd" type="STRING" size="256"/>
  1022. <Column id="kcd4mseqno" type="STRING" size="256"/>
  1023. <Column id="indxcd" type="STRING" size="256"/>
  1024. <Column id="snmdcnptid" type="STRING" size="256"/>
  1025. <Column id="snmdcnptnm" type="STRING" size="256"/>
  1026. <Column id="kcd4mengnm" type="STRING" size="256"/>
  1027. <Column id="kcd4mhngnm" type="STRING" size="256"/>
  1028. <Column id="kcd4mfromdd" type="STRING" size="256"/>
  1029. <Column id="kcd4mtodd" type="STRING" size="256"/>
  1030. <Column id="lastupdtdt" type="STRING" size="256"/>
  1031. <Column id="lastupdtrnm" type="STRING" size="256"/>
  1032. <Column id="fstrgstrid" type="STRING" size="256"/>
  1033. <Column id="fstrgstdt" type="STRING" size="256"/>
  1034. <Column id="lastupdtrid" type="STRING" size="256"/>
  1035. </ColumnInfo>
  1036. <Rows>
  1037. <Row>
  1038. <Col id="state"/>
  1039. <Col id="morphlgccd"/>
  1040. <Col id="kcd4mseqno"/>
  1041. <Col id="indxcd"/>
  1042. <Col id="snmdcnptid"/>
  1043. <Col id="snmdcnptnm"/>
  1044. <Col id="kcd4mengnm"/>
  1045. <Col id="kcd4mhngnm"/>
  1046. <Col id="kcd4mfromdd"/>
  1047. <Col id="kcd4mtodd"/>
  1048. <Col id="lastupdtdt"/>
  1049. <Col id="lastupdtrnm"/>
  1050. <Col id="fstrgstrid"/>
  1051. <Col id="fstrgstdt"/>
  1052. <Col id="lastupdtrid"/>
  1053. </Row>
  1054. </Rows>
  1055. </Dataset>
  1056. <Dataset id="ds_main_diagcdinfo_icd10cd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1057. <ColumnInfo>
  1058. <Column id="state" type="STRING" size="256"/>
  1059. <Column id="icd10cd" type="STRING" size="256"/>
  1060. <Column id="icd10drindxcd" type="STRING" size="256"/>
  1061. <Column id="icd10medireccd" type="STRING" size="256"/>
  1062. <Column id="icd10engnm" type="STRING" size="256"/>
  1063. <Column id="icd10hngnm" type="STRING" size="256"/>
  1064. <Column id="icd10seqno" type="STRING" size="256"/>
  1065. <Column id="icd10fromdd" type="STRING" size="256"/>
  1066. <Column id="icd10todd" type="STRING" size="256"/>
  1067. <Column id="fstrgstrid" type="STRING" size="256"/>
  1068. <Column id="fstrgstdt" type="STRING" size="256"/>
  1069. <Column id="lastupdtrid" type="STRING" size="256"/>
  1070. <Column id="lastupdtdt" type="STRING" size="256"/>
  1071. <Column id="oldfromdd" type="STRING" size="256"/>
  1072. <Column id="oldtodd" type="STRING" size="256"/>
  1073. </ColumnInfo>
  1074. <Rows>
  1075. <Row>
  1076. <Col id="state">-</Col>
  1077. <Col id="icd10cd"/>
  1078. <Col id="icd10drindxcd"/>
  1079. <Col id="icd10medireccd"/>
  1080. <Col id="icd10engnm"/>
  1081. <Col id="icd10hngnm"/>
  1082. <Col id="icd10seqno"/>
  1083. <Col id="icd10fromdd"/>
  1084. <Col id="icd10todd"/>
  1085. <Col id="fstrgstrid"/>
  1086. <Col id="fstrgstdt"/>
  1087. <Col id="lastupdtrid"/>
  1088. <Col id="lastupdtdt"/>
  1089. <Col id="oldfromdd"/>
  1090. <Col id="oldtodd"/>
  1091. </Row>
  1092. </Rows>
  1093. </Dataset>
  1094. <Dataset id="ds_main_diagcdinfo_diagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1095. <ColumnInfo>
  1096. <Column id="termuseyn" type="STRING" size="256"/>
  1097. <Column id="state" type="STRING" size="256"/>
  1098. <Column id="icd10cd" type="STRING" size="256"/>
  1099. <Column id="diagattrcd" type="STRING" size="256"/>
  1100. <Column id="termcd" type="STRING" size="256"/>
  1101. <Column id="alttermcd" type="STRING" size="256"/>
  1102. <Column id="snmdcnptid" type="STRING" size="256"/>
  1103. <Column id="snmddescid" type="STRING" size="256"/>
  1104. <Column id="umlscd" type="STRING" size="256"/>
  1105. <Column id="termengnm" type="STRING" size="256"/>
  1106. <Column id="termhngnm" type="STRING" size="256"/>
  1107. <Column id="reprflag" type="STRING" size="256"/>
  1108. <Column id="lglydisflag" type="STRING" size="256"/>
  1109. <Column id="chrncsickyn" type="STRING" size="256"/>
  1110. <Column id="estmexptyn" type="STRING" size="256"/>
  1111. <Column id="serdiagclsyn" type="STRING" size="256"/>
  1112. <Column id="manwomflag" type="STRING" size="256"/>
  1113. <Column id="cncryn" type="STRING" size="256"/>
  1114. <Column id="diagattrdrindxcd" type="STRING" size="256"/>
  1115. <Column id="diagattrmedireccd" type="STRING" size="256"/>
  1116. <Column id="diagattrverflag" type="STRING" size="256"/>
  1117. <Column id="termfromdd" type="STRING" size="256"/>
  1118. <Column id="termtodd" type="STRING" size="256"/>
  1119. <Column id="termflag" type="STRING" size="256"/>
  1120. <Column id="fstrgstrid" type="STRING" size="256"/>
  1121. <Column id="fstrgstdt" type="STRING" size="256"/>
  1122. <Column id="attrfromdd" type="STRING" size="256"/>
  1123. <Column id="attrtodd" type="STRING" size="256"/>
  1124. <Column id="icdfromdd" type="STRING" size="256"/>
  1125. <Column id="lastupdtrid" type="STRING" size="256"/>
  1126. <Column id="lastupdtrnm" type="STRING" size="256"/>
  1127. <Column id="lastupdtdt" type="STRING" size="256"/>
  1128. <Column id="essntermflag" type="STRING" size="256"/>
  1129. </ColumnInfo>
  1130. <Rows>
  1131. <Row>
  1132. <Col id="termuseyn"/>
  1133. <Col id="state">-</Col>
  1134. <Col id="icd10cd"/>
  1135. <Col id="diagattrcd"/>
  1136. <Col id="termcd"/>
  1137. <Col id="alttermcd"/>
  1138. <Col id="snmdcnptid"/>
  1139. <Col id="snmddescid"/>
  1140. <Col id="umlscd"/>
  1141. <Col id="termengnm"/>
  1142. <Col id="termhngnm"/>
  1143. <Col id="reprflag"/>
  1144. <Col id="lglydisflag"/>
  1145. <Col id="chrncsickyn"/>
  1146. <Col id="estmexptyn"/>
  1147. <Col id="serdiagclsyn"/>
  1148. <Col id="manwomflag"/>
  1149. <Col id="cncryn"/>
  1150. <Col id="diagattrdrindxcd"/>
  1151. <Col id="diagattrmedireccd"/>
  1152. <Col id="diagattrverflag"/>
  1153. <Col id="termfromdd"/>
  1154. <Col id="termtodd"/>
  1155. <Col id="termflag"/>
  1156. <Col id="fstrgstrid"/>
  1157. <Col id="fstrgstdt"/>
  1158. <Col id="attrfromdd"/>
  1159. <Col id="attrtodd"/>
  1160. <Col id="icdfromdd"/>
  1161. <Col id="lastupdtrid"/>
  1162. <Col id="lastupdtrnm"/>
  1163. <Col id="lastupdtdt"/>
  1164. <Col id="essntermflag"/>
  1165. </Row>
  1166. </Rows>
  1167. </Dataset>
  1168. <Dataset id="ds_main_kcd4minfo_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1169. <ColumnInfo>
  1170. <Column id="morphlgccd" type="STRING" size="256"/>
  1171. <Column id="kcd4mengnm" type="STRING" size="256"/>
  1172. <Column id="kcd4mhngnm" type="STRING" size="256"/>
  1173. <Column id="indxcd" type="STRING" size="256"/>
  1174. <Column id="version" type="STRING" size="256"/>
  1175. <Column id="kcd4mfromdd" type="STRING" size="256"/>
  1176. <Column id="kcd4mtodd" type="STRING" size="256"/>
  1177. <Column id="fstrgstdt" type="STRING" size="256"/>
  1178. <Column id="fstrgstrid" type="STRING" size="256"/>
  1179. <Column id="lastupdtdt" type="STRING" size="256"/>
  1180. <Column id="lastupdtrid" type="STRING" size="256"/>
  1181. <Column id="fstrgstdate" type="STRING" size="256"/>
  1182. <Column id="fstrgsttime" type="STRING" size="256"/>
  1183. <Column id="kcd4mfromdate" type="STRING" size="256"/>
  1184. <Column id="kcd4mfromtime" type="STRING" size="256"/>
  1185. <Column id="kcd4mtodate" type="STRING" size="256"/>
  1186. <Column id="kcd4mtotime" type="STRING" size="256"/>
  1187. <Column id="oldkcd4mfromdd" type="STRING" size="256"/>
  1188. <Column id="snmdcnptid" type="STRING" size="256"/>
  1189. <Column id="snmdcnptnm" type="STRING" size="256"/>
  1190. <Column id="kcd4mseqno" type="STRING" size="256"/>
  1191. </ColumnInfo>
  1192. <Rows>
  1193. <Row>
  1194. <Col id="morphlgccd"/>
  1195. <Col id="kcd4mengnm"/>
  1196. <Col id="kcd4mhngnm"/>
  1197. <Col id="indxcd"/>
  1198. <Col id="version"/>
  1199. <Col id="kcd4mfromdd"/>
  1200. <Col id="kcd4mtodd"/>
  1201. <Col id="fstrgstdt"/>
  1202. <Col id="fstrgstrid"/>
  1203. <Col id="lastupdtdt"/>
  1204. <Col id="lastupdtrid"/>
  1205. <Col id="fstrgstdate"/>
  1206. <Col id="fstrgsttime"/>
  1207. <Col id="kcd4mfromdate"/>
  1208. <Col id="kcd4mfromtime"/>
  1209. <Col id="kcd4mtodate"/>
  1210. <Col id="kcd4mtotime"/>
  1211. <Col id="oldkcd4mfromdd"/>
  1212. <Col id="snmdcnptid"/>
  1213. <Col id="snmdcnptnm"/>
  1214. <Col id="kcd4mseqno"/>
  1215. </Row>
  1216. </Rows>
  1217. </Dataset>
  1218. <Dataset id="ds_main_peprterminfo_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_peprterminfo_info_oncolumnchanged">
  1219. <ColumnInfo>
  1220. <Column id="icd10cd" type="STRING" size="256"/>
  1221. <Column id="diagattrcd" type="STRING" size="256"/>
  1222. <Column id="termcd" type="STRING" size="256"/>
  1223. <Column id="snmdcnptid" type="STRING" size="256"/>
  1224. <Column id="snmdcnptnm" type="STRING" size="256"/>
  1225. <Column id="snmddescid" type="STRING" size="256"/>
  1226. <Column id="termengnm" type="STRING" size="256"/>
  1227. <Column id="termhngnm" type="STRING" size="256"/>
  1228. <Column id="diagattrdrindxcd" type="STRING" size="256"/>
  1229. <Column id="diagattrmedireccd" type="STRING" size="256"/>
  1230. <Column id="lglydisflag" type="STRING" size="256"/>
  1231. <Column id="chrncsickyn" type="STRING" size="256"/>
  1232. <Column id="estmexptyn" type="STRING" size="256"/>
  1233. <Column id="serdiagclsyn" type="STRING" size="256"/>
  1234. <Column id="manwomflag" type="STRING" size="256"/>
  1235. <Column id="diagattrverflag" type="STRING" size="256"/>
  1236. <Column id="reprflag" type="STRING" size="256"/>
  1237. <Column id="termflag" type="STRING" size="256"/>
  1238. <Column id="termtodd" type="STRING" size="256"/>
  1239. <Column id="termfromdd" type="STRING" size="256"/>
  1240. <Column id="fstrgstdt" type="STRING" size="256"/>
  1241. <Column id="fstrgstdate" type="STRING" size="256"/>
  1242. <Column id="fstrgsttime" type="STRING" size="256"/>
  1243. <Column id="fstrgstrid" type="STRING" size="256"/>
  1244. <Column id="attrfromdd" type="STRING" size="256"/>
  1245. <Column id="attrtodd" type="STRING" size="256"/>
  1246. <Column id="icdfromdd" type="STRING" size="256"/>
  1247. <Column id="ageflag" type="STRING" size="256"/>
  1248. <Column id="cncryn" type="STRING" size="256"/>
  1249. <Column id="umlscd" type="STRING" size="256"/>
  1250. <Column id="alttermcd" type="STRING" size="256"/>
  1251. <Column id="appinstcd" type="STRING" size="256"/>
  1252. <Column id="essntermflag" type="STRING" size="256"/>
  1253. </ColumnInfo>
  1254. <Rows>
  1255. <Row>
  1256. <Col id="icd10cd"/>
  1257. <Col id="diagattrcd"/>
  1258. <Col id="termcd"/>
  1259. <Col id="snmdcnptid"/>
  1260. <Col id="snmdcnptnm"/>
  1261. <Col id="snmddescid"/>
  1262. <Col id="termengnm"/>
  1263. <Col id="termhngnm"/>
  1264. <Col id="diagattrdrindxcd"/>
  1265. <Col id="diagattrmedireccd"/>
  1266. <Col id="lglydisflag"/>
  1267. <Col id="chrncsickyn">N</Col>
  1268. <Col id="estmexptyn">N</Col>
  1269. <Col id="serdiagclsyn">N</Col>
  1270. <Col id="manwomflag">A</Col>
  1271. <Col id="diagattrverflag"/>
  1272. <Col id="reprflag"/>
  1273. <Col id="termflag">0</Col>
  1274. <Col id="termtodd"/>
  1275. <Col id="termfromdd"/>
  1276. <Col id="fstrgstdt"/>
  1277. <Col id="fstrgstdate"/>
  1278. <Col id="fstrgsttime"/>
  1279. <Col id="fstrgstrid"/>
  1280. <Col id="attrfromdd"/>
  1281. <Col id="attrtodd"/>
  1282. <Col id="icdfromdd"/>
  1283. <Col id="ageflag"/>
  1284. <Col id="cncryn"/>
  1285. <Col id="umlscd"/>
  1286. <Col id="alttermcd"/>
  1287. <Col id="appinstcd"/>
  1288. <Col id="essntermflag"/>
  1289. </Row>
  1290. </Rows>
  1291. </Dataset>
  1292. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1293. <ColumnInfo>
  1294. <Column id="temp" type="STRING" size="256"/>
  1295. </ColumnInfo>
  1296. </Dataset>
  1297. <Dataset id="ds_main_icd10cdlist_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1298. <ColumnInfo>
  1299. <Column id="icd10cd" type="STRING" size="256"/>
  1300. </ColumnInfo>
  1301. <Rows>
  1302. <Row>
  1303. <Col id="icd10cd"/>
  1304. </Row>
  1305. </Rows>
  1306. </Dataset>
  1307. <Dataset id="ds_main_kcd4mhist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1308. <ColumnInfo>
  1309. <Column id="morphlgccd" type="STRING" size="256"/>
  1310. <Column id="kcd4mseqno" type="STRING" size="256"/>
  1311. <Column id="indxcd" type="STRING" size="256"/>
  1312. <Column id="version" type="STRING" size="256"/>
  1313. <Column id="snmdcnptid" type="STRING" size="256"/>
  1314. <Column id="snmdcnptnm" type="STRING" size="256"/>
  1315. <Column id="kcd4mfromdd" type="STRING" size="256"/>
  1316. <Column id="kcd4mtodd" type="STRING" size="256"/>
  1317. <Column id="kcd4mengnm" type="STRING" size="256"/>
  1318. <Column id="kcd4mhngnm" type="STRING" size="256"/>
  1319. <Column id="fstrgstdt" type="STRING" size="256"/>
  1320. <Column id="fstrgstrid" type="STRING" size="256"/>
  1321. <Column id="lastupdtdt" type="STRING" size="256"/>
  1322. <Column id="lastupdtrnm" type="STRING" size="256"/>
  1323. <Column id="lastupdtrid" type="STRING" size="256"/>
  1324. <Column id="instcd" type="STRING" size="256"/>
  1325. </ColumnInfo>
  1326. <Rows>
  1327. <Row>
  1328. <Col id="morphlgccd"/>
  1329. <Col id="kcd4mseqno"/>
  1330. <Col id="indxcd"/>
  1331. <Col id="version"/>
  1332. <Col id="snmdcnptid"/>
  1333. <Col id="snmdcnptnm"/>
  1334. <Col id="kcd4mfromdd"/>
  1335. <Col id="kcd4mtodd"/>
  1336. <Col id="kcd4mengnm"/>
  1337. <Col id="kcd4mhngnm"/>
  1338. <Col id="fstrgstdt"/>
  1339. <Col id="fstrgstrid"/>
  1340. <Col id="lastupdtdt"/>
  1341. <Col id="lastupdtrnm"/>
  1342. <Col id="lastupdtrid"/>
  1343. <Col id="instcd"/>
  1344. </Row>
  1345. </Rows>
  1346. </Dataset>
  1347. <Dataset id="ds_main_indxlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1348. <ColumnInfo>
  1349. <Column id="depth" type="STRING" size="256"/>
  1350. <Column id="indxcd" type="STRING" size="256"/>
  1351. <Column id="upindxcd" type="STRING" size="256"/>
  1352. <Column id="indxhngnm" type="STRING" size="256"/>
  1353. <Column id="pathcd" type="STRING" size="256"/>
  1354. <Column id="indxdrdiflag" type="STRING" size="256"/>
  1355. </ColumnInfo>
  1356. <Rows>
  1357. <Row>
  1358. <Col id="depth"/>
  1359. <Col id="indxcd"/>
  1360. <Col id="upindxcd"/>
  1361. <Col id="indxhngnm"/>
  1362. <Col id="pathcd"/>
  1363. <Col id="indxdrdiflag"/>
  1364. </Row>
  1365. </Rows>
  1366. </Dataset>
  1367. <Dataset id="ds_main_srcheddiagcdlist_srcheddiagcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_srcheddiagcdlist_srcheddiagcdinfo_oncolumnchanged">
  1368. <ColumnInfo>
  1369. <Column id="check" type="STRING" size="256"/>
  1370. <Column id="termcd" type="STRING" size="256"/>
  1371. <Column id="termengnm" type="STRING" size="256"/>
  1372. <Column id="termhngnm" type="STRING" size="256"/>
  1373. </ColumnInfo>
  1374. <Rows>
  1375. <Row>
  1376. <Col id="check"/>
  1377. <Col id="termcd"/>
  1378. <Col id="termengnm"/>
  1379. <Col id="termhngnm"/>
  1380. </Row>
  1381. </Rows>
  1382. </Dataset>
  1383. <Dataset id="ds_main_sametermlist_appinstcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  1384. <Dataset id="ds_main_sametermlist_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1385. <ColumnInfo>
  1386. <Column id="instnm" type="STRING" size="256"/>
  1387. <Column id="termcd" type="STRING" size="256"/>
  1388. <Column id="reprflag" type="STRING" size="256"/>
  1389. <Column id="termengnm" type="STRING" size="256"/>
  1390. <Column id="termhngnm" type="STRING" size="256"/>
  1391. <Column id="snmdcnptid" type="STRING" size="256"/>
  1392. <Column id="alttermcd" type="STRING" size="256"/>
  1393. <Column id="snmdcnptnm" type="STRING" size="256"/>
  1394. <Column id="snmddescid" type="STRING" size="256"/>
  1395. <Column id="umlscd" type="STRING" size="256"/>
  1396. <Column id="fstrgstdt" type="STRING" size="256"/>
  1397. <Column id="termfromdd" type="STRING" size="256"/>
  1398. <Column id="termtodd" type="STRING" size="256"/>
  1399. <Column id="attrcd" type="STRING" size="256"/>
  1400. <Column id="state" type="STRING" size="256"/>
  1401. <Column id="termflag" type="STRING" size="256"/>
  1402. <Column id="fstrgstrid" type="STRING" size="256"/>
  1403. <Column id="attrfromdd" type="STRING" size="256"/>
  1404. <Column id="attrtodd" type="STRING" size="256"/>
  1405. <Column id="icdfromdd" type="STRING" size="256"/>
  1406. <Column id="lastupdtrid" type="STRING" size="256"/>
  1407. <Column id="lastupdtrnm" type="STRING" size="256"/>
  1408. <Column id="lastupdtdt" type="STRING" size="256"/>
  1409. </ColumnInfo>
  1410. <Rows>
  1411. <Row>
  1412. <Col id="instnm"/>
  1413. <Col id="termcd"/>
  1414. <Col id="reprflag"/>
  1415. <Col id="termengnm"/>
  1416. <Col id="termhngnm"/>
  1417. <Col id="snmdcnptid"/>
  1418. <Col id="alttermcd"/>
  1419. <Col id="snmdcnptnm"/>
  1420. <Col id="snmddescid"/>
  1421. <Col id="umlscd"/>
  1422. <Col id="fstrgstdt"/>
  1423. <Col id="termfromdd"/>
  1424. <Col id="termtodd"/>
  1425. <Col id="attrcd"/>
  1426. <Col id="state"/>
  1427. <Col id="termflag"/>
  1428. <Col id="fstrgstrid"/>
  1429. <Col id="attrfromdd"/>
  1430. <Col id="attrtodd"/>
  1431. <Col id="icdfromdd"/>
  1432. <Col id="lastupdtrid"/>
  1433. <Col id="lastupdtrnm"/>
  1434. <Col id="lastupdtdt"/>
  1435. </Row>
  1436. </Rows>
  1437. </Dataset>
  1438. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1439. <ColumnInfo>
  1440. <Column id="send" type="STRING" size="256"/>
  1441. </ColumnInfo>
  1442. <Rows>
  1443. <Row>
  1444. <Col id="send"/>
  1445. </Row>
  1446. </Rows>
  1447. </Dataset>
  1448. <Dataset id="ds_init_M0382" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1449. <ColumnInfo>
  1450. <Column id="cdid" type="STRING" size="256"/>
  1451. <Column id="cdnm" type="STRING" size="256"/>
  1452. </ColumnInfo>
  1453. <Rows>
  1454. <Row>
  1455. <Col id="cdid"/>
  1456. <Col id="cdnm"/>
  1457. </Row>
  1458. </Rows>
  1459. </Dataset>
  1460. <Dataset id="ds_init_func_mouserght" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1461. <ColumnInfo>
  1462. <Column id="hardcdnm" type="STRING" size="256"/>
  1463. <Column id="hardcd" type="STRING" size="256"/>
  1464. </ColumnInfo>
  1465. <Rows>
  1466. <Row>
  1467. <Col id="hardcdnm">색인변경</Col>
  1468. <Col id="hardcd">fModifyIndx</Col>
  1469. </Row>
  1470. </Rows>
  1471. </Dataset>
  1472. <Dataset id="ds_init_func_trvmouserght" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1473. <ColumnInfo>
  1474. <Column id="hardcdnm" type="STRING" size="256"/>
  1475. <Column id="hardcd" type="STRING" size="256"/>
  1476. </ColumnInfo>
  1477. <Rows>
  1478. <Row>
  1479. <Col id="hardcdnm">붙여넣기</Col>
  1480. <Col id="hardcd">fPasteIndx</Col>
  1481. </Row>
  1482. </Rows>
  1483. </Dataset>
  1484. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1485. <ColumnInfo>
  1486. <Column id="today" type="STRING" size="256"/>
  1487. <Column id="curruntTime" type="STRING" size="256"/>
  1488. <Column id="M0534list" type="STRING" size="256"/>
  1489. </ColumnInfo>
  1490. <Rows>
  1491. <Row>
  1492. <Col id="today"/>
  1493. <Col id="curruntTime"/>
  1494. </Row>
  1495. </Rows>
  1496. </Dataset>
  1497. <Dataset id="ds_init_A0129" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1498. <ColumnInfo>
  1499. <Column id="cdid" type="STRING" size="256"/>
  1500. <Column id="cdnm" type="STRING" size="256"/>
  1501. </ColumnInfo>
  1502. <Rows>
  1503. <Row>
  1504. <Col id="cdid"/>
  1505. <Col id="cdnm"/>
  1506. </Row>
  1507. </Rows>
  1508. </Dataset>
  1509. <Dataset id="ds_init_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1510. <ColumnInfo>
  1511. <Column id="userid" type="STRING" size="256"/>
  1512. <Column id="usernm" type="STRING" size="256"/>
  1513. <Column id="instcd" type="STRING" size="256"/>
  1514. </ColumnInfo>
  1515. <Rows>
  1516. <Row>
  1517. <Col id="userid"/>
  1518. <Col id="usernm"/>
  1519. <Col id="instcd"/>
  1520. </Row>
  1521. </Rows>
  1522. </Dataset>
  1523. <Dataset id="ds_init_M0534allcmb" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1524. <ColumnInfo>
  1525. <Column id="M0534" type="STRING" size="256"/>
  1526. </ColumnInfo>
  1527. <Rows>
  1528. <Row>
  1529. <Col id="M0534"/>
  1530. </Row>
  1531. </Rows>
  1532. </Dataset>
  1533. <Dataset id="ds_init_M0534selcmb" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1534. <ColumnInfo>
  1535. <Column id="M0534" type="STRING" size="256"/>
  1536. </ColumnInfo>
  1537. <Rows>
  1538. <Row>
  1539. <Col id="M0534"/>
  1540. </Row>
  1541. </Rows>
  1542. </Dataset>
  1543. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1544. <ColumnInfo>
  1545. <Column id="reqdata" type="STRING" size="256"/>
  1546. </ColumnInfo>
  1547. </Dataset>
  1548. <Dataset id="ds_hidden_condition_deptset" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1549. <ColumnInfo>
  1550. <Column id="srchflag" type="STRING" size="256"/>
  1551. <Column id="selecteddeptcd" type="STRING" size="256"/>
  1552. <Column id="selecteddeptnm" type="STRING" size="256"/>
  1553. <Column id="srchnm" type="STRING" size="256"/>
  1554. </ColumnInfo>
  1555. <Rows>
  1556. <Row>
  1557. <Col id="srchflag">H</Col>
  1558. <Col id="selecteddeptcd"/>
  1559. <Col id="selecteddeptnm"/>
  1560. <Col id="srchnm"/>
  1561. </Row>
  1562. </Rows>
  1563. </Dataset>
  1564. <Dataset id="ds_hidden_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1565. <ColumnInfo>
  1566. <Column id="maininstyn" type="STRING" size="256"/>
  1567. <Column id="srchflag" type="STRING" size="256"/>
  1568. <Column id="srchnm" type="STRING" size="256"/>
  1569. <Column id="indxflag" type="STRING" size="256"/>
  1570. <Column id="selctedmode" type="STRING" size="256"/>
  1571. <Column id="status" type="STRING" size="256"/>
  1572. <Column id="selectedIndx" type="STRING" size="256"/>
  1573. <Column id="selectedIndxDepth" type="STRING" size="256"/>
  1574. <Column id="selectedicd10" type="STRING" size="256"/>
  1575. <Column id="selectedtermcd" type="STRING" size="256"/>
  1576. <Column id="selectedIndxPath" type="STRING" size="256"/>
  1577. <Column id="indxviewmode" type="STRING" size="256"/>
  1578. <Column id="sametermmode" type="STRING" size="256"/>
  1579. <Column id="rowcnt" type="STRING" size="256"/>
  1580. <Column id="srchindxcd" type="STRING" size="256"/>
  1581. <Column id="srchfromdd" type="STRING" size="256"/>
  1582. <Column id="srchtodd" type="STRING" size="256"/>
  1583. <Column id="endflag" type="STRING" size="256"/>
  1584. <Column id="indxuseflag" type="STRING" size="256"/>
  1585. <Column id="allinsthist" type="STRING" size="256"/>
  1586. <Column id="selInstcd" type="STRING" size="256"/>
  1587. </ColumnInfo>
  1588. <Rows>
  1589. <Row>
  1590. <Col id="maininstyn"/>
  1591. <Col id="srchflag">C</Col>
  1592. <Col id="srchnm"/>
  1593. <Col id="indxflag">0</Col>
  1594. <Col id="selctedmode">D</Col>
  1595. <Col id="status">S</Col>
  1596. <Col id="selectedIndx"/>
  1597. <Col id="selectedIndxDepth"/>
  1598. <Col id="selectedicd10"/>
  1599. <Col id="selectedtermcd"/>
  1600. <Col id="selectedIndxPath"/>
  1601. <Col id="indxviewmode">H</Col>
  1602. <Col id="sametermmode">U</Col>
  1603. <Col id="rowcnt"/>
  1604. <Col id="srchindxcd"/>
  1605. </Row>
  1606. </Rows>
  1607. </Dataset>
  1608. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1609. <ColumnInfo/>
  1610. </Dataset>
  1611. <Dataset id="ds_temp_terminfo_altterminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  1612. <Dataset id="ds_cmb_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1613. <ColumnInfo>
  1614. <Column id="label" type="STRING" size="256"/>
  1615. <Column id="value" type="STRING" size="256"/>
  1616. </ColumnInfo>
  1617. <Rows>
  1618. <Row>
  1619. <Col id="label">-</Col>
  1620. <Col id="value">-</Col>
  1621. </Row>
  1622. <Row>
  1623. <Col id="label">입력</Col>
  1624. <Col id="value">I</Col>
  1625. </Row>
  1626. <Row>
  1627. <Col id="label">수정</Col>
  1628. <Col id="value">U</Col>
  1629. </Row>
  1630. <Row>
  1631. <Col id="label">삭제</Col>
  1632. <Col id="value">D</Col>
  1633. </Row>
  1634. </Rows>
  1635. </Dataset>
  1636. <Dataset id="ds_cmb_reprflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1637. <ColumnInfo>
  1638. <Column id="label" type="STRING" size="256"/>
  1639. <Column id="value" type="STRING" size="256"/>
  1640. </ColumnInfo>
  1641. <Rows>
  1642. <Row>
  1643. <Col id="label">대표어</Col>
  1644. <Col id="value">R</Col>
  1645. </Row>
  1646. <Row>
  1647. <Col id="label">동의어</Col>
  1648. <Col id="value"/>
  1649. </Row>
  1650. </Rows>
  1651. </Dataset>
  1652. <Dataset id="ds_init_M0534" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  1653. <ColumnInfo>
  1654. <Column id="cdid" type="STRING" size="256"/>
  1655. <Column id="cdnm" type="STRING" size="256"/>
  1656. </ColumnInfo>
  1657. <Rows>
  1658. <Row>
  1659. <Col id="cdid"/>
  1660. <Col id="cdnm"/>
  1661. </Row>
  1662. </Rows>
  1663. </Dataset>
  1664. <Dataset id="ds_cmb_version" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1665. <ColumnInfo>
  1666. <Column id="label" type="STRING" size="256"/>
  1667. <Column id="value" type="STRING" size="256"/>
  1668. </ColumnInfo>
  1669. <Rows>
  1670. <Row>
  1671. <Col id="label">KCD-4</Col>
  1672. <Col id="value">04</Col>
  1673. </Row>
  1674. <Row>
  1675. <Col id="label">KCD-5</Col>
  1676. <Col id="value">05</Col>
  1677. </Row>
  1678. </Rows>
  1679. </Dataset>
  1680. <Dataset id="ds_hidden_reqdata_diagindxlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1681. <Dataset id="ds_hidden_reqdata_kcd4mindxlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1682. </Objects>
  1683. <Bind>
  1684. <BindItem id="item24" compid="switch2.DiagTerm.input7" propid="value" datasetid="ds_main_peprterminfo_info" columnid="icdfromdd"/>
  1685. <BindItem id="item0" compid="switch2.DiagTerm.cmb_allinsthist" propid="value" datasetid="ds_hidden_condition" columnid="allinsthist"/>
  1686. <BindItem id="item1" compid="switch2.DiagTerm.cmb_termflag" propid="value" datasetid="ds_main_peprterminfo_info" columnid="termflag"/>
  1687. <BindItem id="item2" compid="switch2.DiagTerm.cmb_icd10cd" propid="value" datasetid="ds_main_icd10cdlist" columnid="info"/>
  1688. <BindItem id="item3" compid="switch2.DiagTerm.ipt_fstrgsttime" propid="value" datasetid="ds_main_peprterminfo_info" columnid="fstrgsttime"/>
  1689. <BindItem id="item4" compid="switch2.DiagTerm.ipt_engnm" propid="value" datasetid="ds_main_peprterminfo_info" columnid="termengnm"/>
  1690. <BindItem id="item5" compid="switch2.DiagTerm.ipt_fstrgstdate" propid="value" datasetid="ds_main_peprterminfo_info" columnid="fstrgstdate"/>
  1691. <BindItem id="item6" compid="switch2.DiagTerm.opt_Hdicd10cd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="icd10cd"/>
  1692. <BindItem id="item7" compid="switch2.DiagTerm.ipt_hngnm" propid="value" datasetid="ds_main_peprterminfo_info" columnid="termhngnm"/>
  1693. <BindItem id="item8" compid="switch2.DiagTerm.ipt_medireccd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="diagattrmedireccd"/>
  1694. <BindItem id="item9" compid="switch2.DiagTerm.cmb_reprflag" propid="value" datasetid="ds_main_peprterminfo_info" columnid="reprflag"/>
  1695. <BindItem id="item10" compid="switch2.DiagTerm.ipt_drindxcd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="diagattrdrindxcd"/>
  1696. <BindItem id="item11" compid="switch2.DiagTerm.ipt_fstrgstdt" propid="value" datasetid="ds_main_peprterminfo_info" columnid="fstrgstdt"/>
  1697. <BindItem id="item12" compid="switch2.DiagTerm.ipt_diagattrcd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="diagattrcd"/>
  1698. <BindItem id="item13" compid="switch2.DiagTerm.ipt_termcd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="termcd"/>
  1699. <BindItem id="item14" compid="switch2.DiagTerm.ipt_snmdcnptnm" propid="value" datasetid="ds_main_peprterminfo_info" columnid="snmdcnptnm"/>
  1700. <BindItem id="item15" compid="switch2.DiagTerm.rdo_estmexptyn" propid="value" datasetid="ds_main_peprterminfo_info" columnid="estmexptyn"/>
  1701. <BindItem id="item16" compid="switch2.DiagTerm.rdo_manwomflag" propid="value" datasetid="ds_main_peprterminfo_info" columnid="manwomflag"/>
  1702. <BindItem id="item17" compid="switch2.DiagTerm.rdo_serdiagclsyn" propid="value" datasetid="ds_main_peprterminfo_info" columnid="serdiagclsyn"/>
  1703. <BindItem id="item18" compid="switch2.DiagTerm.rdo_chrncsickyn" propid="value" datasetid="ds_main_peprterminfo_info" columnid="chrncsickyn"/>
  1704. <BindItem id="item19" compid="switch2.DiagTerm.ipt_fstrgstrid" propid="value" datasetid="ds_main_peprterminfo_info" columnid="fstrgstrid"/>
  1705. <BindItem id="item20" compid="switch2.DiagTerm.ipt_snmdcnptid" propid="value" datasetid="ds_main_peprterminfo_info" columnid="snmdcnptid"/>
  1706. <BindItem id="item21" compid="switch2.DiagTerm.ipt_termfromdd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="termfromdd"/>
  1707. <BindItem id="item22" compid="switch2.DiagTerm.ipt_termtodd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="termtodd"/>
  1708. <BindItem id="item23" compid="switch2.DiagTerm.input6" propid="value" datasetid="ds_main_peprterminfo_info" columnid="attrfromdd"/>
  1709. <BindItem id="item25" compid="switch2.DiagTerm.cmb_lglydisflag" propid="value" datasetid="ds_main_peprterminfo_info" columnid="lglydisflag"/>
  1710. <BindItem id="item26" compid="switch2.DiagTerm.input8" propid="value" datasetid="ds_main_peprterminfo_info" columnid="attrtodd"/>
  1711. <BindItem id="item27" compid="switch2.DiagTerm.cmb_diagattrverflag" propid="value" datasetid="ds_main_peprterminfo_info" columnid="diagattrverflag"/>
  1712. <BindItem id="item28" compid="switch2.DiagTerm.cmb_ageflag" propid="value" datasetid="ds_main_peprterminfo_info" columnid="ageflag"/>
  1713. <BindItem id="item29" compid="switch2.DiagTerm.rdo_cncryn" propid="value" datasetid="ds_main_peprterminfo_info" columnid="cncryn"/>
  1714. <BindItem id="item30" compid="switch2.DiagTerm.ipt_umlscd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="umlscd"/>
  1715. <BindItem id="item31" compid="switch2.DiagTerm.ipt_alttermcd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="alttermcd"/>
  1716. <BindItem id="item33" compid="switch2.DiagTerm.rdo_essntermflag" propid="value" datasetid="ds_main_peprterminfo_info" columnid="essntermflag"/>
  1717. <BindItem id="item34" compid="switch2.KCD4M.ipt_indxcd" propid="value" datasetid="ds_main_kcd4minfo_info" columnid="indxcd"/>
  1718. <BindItem id="item35" compid="switch2.KCD4M.ipt_morphlgccd" propid="value" datasetid="ds_main_kcd4minfo_info" columnid="morphlgccd"/>
  1719. <BindItem id="item36" compid="switch2.KCD4M.ipt_kcd4mengnm" propid="value" datasetid="ds_main_kcd4minfo_info" columnid="kcd4mengnm"/>
  1720. <BindItem id="item37" compid="switch2.KCD4M.ipt_kcd4mhngnm" propid="value" datasetid="ds_main_kcd4minfo_info" columnid="kcd4mhngnm"/>
  1721. <BindItem id="item38" compid="switch2.KCD4M.input1" propid="value" datasetid="ds_main_kcd4minfo_info" columnid="fstrgstdate"/>
  1722. <BindItem id="item39" compid="switch2.KCD4M.input2" propid="value" datasetid="ds_main_kcd4minfo_info" columnid="fstrgsttime"/>
  1723. <BindItem id="item40" compid="switch2.KCD4M.ipt_kcd4mfromdate" propid="value" datasetid="ds_main_kcd4minfo_info" columnid="kcd4mfromdd"/>
  1724. <BindItem id="item41" compid="switch2.KCD4M.ipt_kcd4mtodate" propid="value" datasetid="ds_main_kcd4minfo_info" columnid="kcd4mtodd"/>
  1725. <BindItem id="item42" compid="switch2.KCD4M.input9" propid="value" datasetid="ds_main_kcd4minfo_info" columnid="fstrgstrid"/>
  1726. <BindItem id="item43" compid="switch2.KCD4M.ipt_kcd4mseqno" propid="value" datasetid="ds_main_kcd4minfo_info" columnid="kcd4mseqno"/>
  1727. <BindItem id="item44" compid="switch2.KCD4M.ipt_kcdsnmdcnptid" propid="value" datasetid="ds_main_kcd4minfo_info" columnid="snmdcnptid"/>
  1728. <BindItem id="item45" compid="switch2.KCD4M.ipt_kcdsnmdcnptnm" propid="value" datasetid="ds_main_kcd4minfo_info" columnid="snmdcnptnm"/>
  1729. <BindItem id="item46" compid="switch2.KCD4M.cmb_version" propid="value" datasetid="ds_main_kcd4minfo_info" columnid="version"/>
  1730. <BindItem id="item47" compid="switch2.case_DeptDiag.ipt_deptcd" propid="value" datasetid="ds_hidden_condition_deptset" columnid="selecteddeptcd"/>
  1731. <BindItem id="item48" compid="switch2.case_DeptDiag.ipt_deptnm" propid="value" datasetid="ds_hidden_condition_deptset" columnid="selecteddeptnm"/>
  1732. <BindItem id="item49" compid="switch2.case_DeptDiag.input4" propid="value" datasetid="ds_hidden_condition_deptset" columnid="srchnm"/>
  1733. <BindItem id="item50" compid="switch2.case_DeptDiag.radio3" propid="value" datasetid="ds_hidden_condition_deptset" columnid="srchflag"/>
  1734. <BindItem id="item51" compid="input5" propid="value" datasetid="ds_hidden_condition" columnid="srchnm"/>
  1735. <BindItem id="item52" compid="radio2" propid="value" datasetid="ds_hidden_condition" columnid="srchflag"/>
  1736. <BindItem id="item53" compid="radio1" propid="value" datasetid="ds_hidden_condition" columnid="indxviewmode"/>
  1737. <BindItem id="item54" compid="input10" propid="value" datasetid="ds_hidden_condition" columnid="srchindxcd"/>
  1738. <BindItem id="item55" compid="ipt_endfromdd" propid="value" datasetid="ds_hidden_condition" columnid="srchfromdd"/>
  1739. <BindItem id="item56" compid="ipt_endtodd" propid="value" datasetid="ds_hidden_condition" columnid="srchtodd"/>
  1740. <BindItem id="item57" compid="checkbox2" propid="value" datasetid="ds_hidden_condition" columnid="endflag"/>
  1741. <BindItem id="item58" compid="checkbox1" propid="value" datasetid="ds_hidden_condition" columnid="indxuseflag"/>
  1742. <BindItem id="item59" compid="cmb_selInst" propid="value" datasetid="ds_hidden_condition" columnid="selInstcd"/>
  1743. </Bind>
  1744. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  1745. * System Name :
  1746. * Job Name :
  1747. * Creator :
  1748. * Make Date : 2017-12-04
  1749. * Description :
  1750. *---------------------------------------------------------------------------------------
  1751. * Modify Date Modifier Modify Description
  1752. *---------------------------------------------------------------------------------------
  1753. * 2017-06-19 Live Converter TF->XP
  1754. *
  1755. *---------------------------------------------------------------------------------------
  1756. ****************************************************************************************/
  1757. //=======================================================================================
  1758. // Lib Include
  1759. //---------------------------------------------------------------------------------------
  1760. include "com_commonxp::comm_main.xjs";
  1761. //include "emr_termmngtxp::SMMRT00200.xjs";
  1762. //include "emr_termmngtxp::MRTCommon.xjs";
  1763. include "com_departmentcodexp::ZSD001.xjs";
  1764. include "com_basiccodexp::ZBC001.xjs";
  1765. include "emr_prcpmngtxp::MMO001.xjs";
  1766. include "mis_miscommonxp::MIS.xjs";
  1767. //=======================================================================================
  1768. // Global Form Variable
  1769. //---------------------------------------------------------------------------------------
  1770. var arErrorCode = new HashArray();
  1771. //=======================================================================================
  1772. // Function
  1773. //---------------------------------------------------------------------------------------
  1774. /*-**************************************************************************************
  1775. * Argument : N/A
  1776. * Description : 탭버튼 이벤트 함수
  1777. ****************************************************************************************/
  1778. function lf_switch2_change() {
  1779. if(switch2.tabindex == 0) {
  1780. fSelICD10List();
  1781. } else if(switch2.tabindex == 1) {
  1782. fSelDiagList();
  1783. } else if(switch2.tabindex == 2) {
  1784. fSelDeptDiag();
  1785. } else if(switch2.tabindex == 3) {
  1786. fSelMorphoList();
  1787. }
  1788. }
  1789. /*-**************************************************************************************
  1790. * Argument : N/A
  1791. * Description :
  1792. ****************************************************************************************/
  1793. function fn_TRMRT00201() {
  1794. var oParam = {};
  1795. oParam.id = "TRMRT00201";
  1796. oParam.service = "termmngtapp.DiagTermMngt";
  1797. oParam.method = "reqGetDiagIndxList";
  1798. oParam.inds = "req=ds_send";
  1799. oParam.outds = "ds_main_indxlist_item=item";
  1800. oParam.async = false;
  1801. oParam.callback = "cf_TRMRT00201";
  1802. tranf_submit(oParam);
  1803. grdf_expandDepth(trv_dgindx, 1, "indxhngnm");
  1804. }
  1805. function cf_TRMRT00201(sSvcId, nErrorCode, sErrorMsg) {
  1806. arErrorCode.push(sSvcId, nErrorCode);
  1807. }
  1808. function fn_TRMRT00210() {
  1809. var oParam = {};
  1810. oParam.id = "TRMRT00210";
  1811. oParam.service = "termmngtapp.DeptSetMngt";
  1812. oParam.method = "reqGetDeptIndxList";
  1813. oParam.inds = "reqCond=ds_send";
  1814. oParam.outds = "ds_main_indxlist_item=item";
  1815. oParam.async = false;
  1816. oParam.callback = "cf_TRMRT00210";
  1817. tranf_submit(oParam);
  1818. }
  1819. function cf_TRMRT00210(sSvcId, nErrorCode, sErrorMsg) {
  1820. arErrorCode.push(sSvcId, nErrorCode);
  1821. ds_main_indxlist_item.updateColID("deptindxcd","indxcd");
  1822. ds_main_indxlist_item.updateColID("deptupindxcd","upindxcd");
  1823. ds_main_indxlist_item.updateColID("deptindxnm","indxhngnm");
  1824. }
  1825. function fn_TRMRT00212() {
  1826. var oParam = {};
  1827. oParam.id = "TRMRT00212";
  1828. oParam.service = "termmngtapp.DeptSetMngt";
  1829. oParam.method = "reqGetDeptDiagCdList";
  1830. oParam.inds = "reqCond=ds_send";
  1831. oParam.outds = "ds_main_deptdiagcdlist_deptdiagcdinfo=deptdiagcdinfo";
  1832. oParam.async = false;
  1833. oParam.callback = "cf_TRMRT00212";
  1834. tranf_submit(oParam);
  1835. }
  1836. function cf_TRMRT00212(sSvcId, nErrorCode, sErrorMsg) {
  1837. arErrorCode.push(sSvcId, nErrorCode);
  1838. }
  1839. function fn_TRMRT00205() {
  1840. var oParam = {};
  1841. oParam.id = "TRMRT00205";
  1842. oParam.service = "termmngtapp.DiagTermMngt";
  1843. oParam.method = "reqGetSameTerm";
  1844. oParam.inds = "req=ds_send";
  1845. oParam.outds = "ds_main_sametermlist_info=info ds_main_sametermlist_appinstcd=app";
  1846. oParam.async = false;
  1847. oParam.callback = "cf_TRMRT00205";
  1848. tranf_submit(oParam);
  1849. }
  1850. function cf_TRMRT00205(sSvcId, nErrorCode, sErrorMsg) {
  1851. arErrorCode.push(sSvcId, nErrorCode);
  1852. }
  1853. function fn_TXMRT00201() {
  1854. var oParam = {};
  1855. oParam.id = "TXMRT00201";
  1856. oParam.service = "termmngtapp.DiagTermMngt";
  1857. oParam.method = "reqExeRTerm";
  1858. oParam.inds = "req=ds_send_reqdata";
  1859. oParam.outds = "ds_main_diagcdinfo_icd10cd=icd10cd ds_main_diagcdinfo_diagcd=diagcd ds_main_diagcdinfo_kcd4m=kcd4m";
  1860. oParam.async = false;
  1861. oParam.callback = "cf_TXMRT00201";
  1862. tranf_submit(oParam);
  1863. }
  1864. function cf_TXMRT00201(sSvcId, nErrorCode, sErrorMsg) {
  1865. arErrorCode.push(sSvcId, nErrorCode);
  1866. }
  1867. function fn_chk_appinst() {
  1868. ds_main_peprterminfo_info.setColumn(0,"appinstcd",String(switch2.DiagTerm.chk_appinst.getData()).replace(",","▦"));
  1869. }
  1870. function fn_TXMRT00202() {
  1871. var oParam = {};
  1872. oParam.id = "TXMRT00202";
  1873. oParam.service = "termmngtapp.DiagTermMngt";
  1874. oParam.method = "reqExeKCD4Mcd";
  1875. oParam.inds = "req=ds_send";
  1876. oParam.outds = "ds_main_diagcdinfo_icd10cd=icd10cd ds_main_diagcdinfo_diagcd=diagcd ds_main_diagcdinfo_kcd4m=kcd4m";
  1877. oParam.async = false;
  1878. oParam.callback = "cf_TXMRT00202";
  1879. tranf_submit(oParam);
  1880. }
  1881. function cf_TXMRT00202(sSvcId, nErrorCode, sErrorMsg) {
  1882. arErrorCode.push(sSvcId, nErrorCode);
  1883. }
  1884. function fn_TXMRT00205() {
  1885. var oParam = {};
  1886. oParam.id = "TXMRT00205";
  1887. oParam.service = "termmngtapp.DiagTermMngt";
  1888. oParam.method = "reqExeIndxUpdate";
  1889. oParam.inds = "diagindxinfo=ds_send_reqdata_diagindxlist kcd4mindxinfo=ds_send_reqdata_kcd4mindxlist newindx=ds_send_reqdata_chnginfo";
  1890. oParam.outds = "ds_main_diagcdinfo_diagcd=diaginfo ds_main_diagcdinfo_kcd4m=kcd4m";
  1891. oParam.async = false;
  1892. oParam.callback = "cf_TXMRT00205";
  1893. tranf_submit(oParam);
  1894. }
  1895. function cf_TXMRT00205(sSvcId, nErrorCode, sErrorMsg) {
  1896. arErrorCode.push(sSvcId, nErrorCode);
  1897. }
  1898. ////////////////////////////////////////////////SMMRT00200.xjs////////////////////////////////////////////////
  1899. /*-**************************************************************************************
  1900. * Argument : N/A
  1901. * Description : 화면을 초기화 한다
  1902. ****************************************************************************************/
  1903. function fInitalize(){
  1904. switch2.DiagTerm.grd_termlist.setFormatColProperty( 1, "size", 0);
  1905. ds_hidden_condition.setColumn( 0, "selctedmode", "D");
  1906. var currentTime = utlf_getCurrentTime();
  1907. var instcd = sysf_getUserInfo("dutplceinstcd");
  1908. // Edited by NJ 2007-07-21 getDate() -> utlf_getCurrentDate()
  1909. ds_init.setColumn( 0, "today", utlf_getCurrentDate());
  1910. ds_init.setColumn( 0, "curruntTime", currentTime.substr(0,4));
  1911. ds_init_userinfo.setColumn( 0, "userid", sysf_getUserId());
  1912. ds_init_userinfo.setColumn( 0, "usernm", sysf_getUserName());
  1913. ds_init_userinfo.setColumn( 0, "instcd", instcd);
  1914. //2009-05-06 오전 9:55:28 강지훈 수정 : 선택할수있는 기관을 공통코드로 관리한다.
  1915. var arrParam = [{dsNm: "ds_init_M0534", cdGrpId: "M0534"}
  1916. ,{dsNm: "ds_init_A0129", cdGrpId: "A0129"}
  1917. ,{dsNm: "ds_init_M0382", cdGrpId: "M0382"}
  1918. ];
  1919. appf_getCodeList(arrParam);
  1920. ds_init_M0534selcmb.copyData(ds_init_M0534); //중앙의료원일때 보이는 기관선택 Combo Instance 초기화
  1921. ds_init_M0534allcmb.copyData(ds_init_M0534); //기관별이력조회의 Combo Instance 초기화
  1922. dsf_addDsItem(ds_init_M0534selcmb, "cdid", "cdnm", "전체", "001", "above");
  1923. dsf_addDsItem(ds_init_M0534allcmb, "cdid", "cdnm", "전체", "-", "above");
  1924. ds_hidden_condition.setColumn( 0, "maininstyn", "N");
  1925. ds_hidden_condition.setColumn( 0, "selInstcd", instcd);
  1926. dsf_makeValue( ds_send, "mode", "string", ds_hidden_condition.getColumn(0, "indxviewmode"));
  1927. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  1928. dsf_makeValue( ds_send, "indxuseflag", "string", ds_hidden_condition.getColumn(0, "indxuseflag"));
  1929. dsf_makeValue( ds_send, "selInst", "string", ds_hidden_condition.getColumn(0, "selInst"));
  1930. fn_TRMRT00201();
  1931. var sProp42 = "col=4,row=2,cellspacing=5,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
  1932. switch2.DiagTerm.chk_appinst.setInitComp(sProp42, ds_init_M0534, "cdid","cdnm", "fn_chk_appinst");
  1933. // switch2.DiagTerm.chk_appinst.style.borderBottomColor = "#0000EE" ;
  1934. // switch2.DiagTerm.chk_appinst.style.border = '1 solid deepskyblue';
  1935. switch2.DiagTerm.chk_appinst.setEnbale(false);
  1936. }
  1937. /*-**************************************************************************************
  1938. * Argument : flag
  1939. * Description : 입력창 세팅 Enable / Disable
  1940. ****************************************************************************************/
  1941. function fDisabled(flag) {
  1942. //trace("flag :"+flag);
  1943. var maininstyn = ds_hidden_condition.getColumn(0, "maininstyn");
  1944. if(flag == "ETN" || flag == "ETM") {
  1945. switch2.DiagTerm.cmb_icd10cd.enable = true;
  1946. if(flag=="ETM"){
  1947. switch2.DiagTerm.ipt_diagattrcd.enable = false;
  1948. switch2.DiagTerm.btn_diagattrcd.visible = false;
  1949. switch2.DiagTerm.ipt_termcd.enable = false;
  1950. switch2.DiagTerm.ipt_snmdcnptid.enable = true;
  1951. switch2.DiagTerm.ipt_termtodd.enable = false;
  1952. switch2.DiagTerm.cap_appinst.enable = false;
  1953. switch2.DiagTerm.chk_appinst.enable = false;
  1954. if(maininstyn == "Y"){
  1955. switch2.DiagTerm.rdo_essntermflag.enable = true;
  1956. }
  1957. } else {
  1958. switch2.DiagTerm.ipt_diagattrcd.enable = false;
  1959. switch2.DiagTerm.btn_diagattrcd.visible = false;
  1960. switch2.DiagTerm.ipt_termcd.enable = false;
  1961. switch2.DiagTerm.ipt_snmdcnptid.enable = true;
  1962. switch2.DiagTerm.ipt_termtodd.enable = true;
  1963. if(maininstyn == "Y"){
  1964. switch2.DiagTerm.cap_appinst.enable = true;
  1965. switch2.DiagTerm.chk_appinst.enable = true;
  1966. switch2.DiagTerm.rdo_essntermflag.enable = true;
  1967. }
  1968. }
  1969. switch2.DiagTerm.ipt_termfromdd.enable = true;
  1970. switch2.DiagTerm.btn_snmdcnptid.enable = true;
  1971. //btn_snmddescid.enable = true;
  1972. switch2.DiagTerm.btn_medireccd.enable = true;
  1973. switch2.DiagTerm.ipt_engnm.enable = true;
  1974. switch2.DiagTerm.ipt_hngnm.enable = true;
  1975. switch2.DiagTerm.cmb_reprflag.enable = true;
  1976. switch2.DiagTerm.cmb_diagattrverflag.enable = true;
  1977. switch2.DiagTerm.cmb_lglydisflag.enable = true;
  1978. switch2.DiagTerm.rdo_chrncsickyn.enable = true;
  1979. switch2.DiagTerm.rdo_estmexptyn.enable = true;
  1980. switch2.DiagTerm.rdo_serdiagclsyn.enable = true;
  1981. switch2.DiagTerm.rdo_cncryn.enable = true;
  1982. switch2.DiagTerm.rdo_manwomflag.enable = true;
  1983. switch2.DiagTerm.cmb_ageflag.enable = true;
  1984. switch2.DiagTerm.btn_termsave.enable = true;
  1985. } else if(flag == "TN" || flag == "TM") {
  1986. switch2.DiagTerm.ipt_diagattrcd.enable = false;
  1987. switch2.DiagTerm.btn_diagattrcd.visible = false;
  1988. switch2.DiagTerm.ipt_termcd.enable = false;
  1989. switch2.DiagTerm.ipt_snmdcnptid.enable = true; // 동의어 입력시에도 등록가능하게.
  1990. //switch2.DiagTerm.btn_snmdcnptid.visible = false;
  1991. switch2.DiagTerm.btn_snmdcnptid.visible = true;
  1992. switch2.DiagTerm.btn_medireccd.enable = false;
  1993. switch2.DiagTerm.ipt_engnm.enable = true;
  1994. switch2.DiagTerm.ipt_hngnm.enable = true;
  1995. switch2.DiagTerm.cmb_reprflag.enable = false;
  1996. switch2.DiagTerm.cmb_diagattrverflag.enable = false;
  1997. switch2.DiagTerm.cmb_lglydisflag.enable = false;
  1998. switch2.DiagTerm.rdo_chrncsickyn.enable = false;
  1999. switch2.DiagTerm.rdo_estmexptyn.enable = false;
  2000. switch2.DiagTerm.rdo_serdiagclsyn.enable = false;
  2001. switch2.DiagTerm.rdo_cncryn.enable = false;
  2002. switch2.DiagTerm.rdo_manwomflag.enable = false;
  2003. switch2.DiagTerm.ipt_termfromdd.enable = true;
  2004. switch2.DiagTerm.ipt_termtodd.enable = true;
  2005. switch2.DiagTerm.cmb_ageflag.enable = false;
  2006. switch2.DiagTerm.chk_appinst.enable = false;
  2007. switch2.DiagTerm.rdo_essntermflag.enable = false;
  2008. } else if(flag == "AS") {
  2009. switch2.DiagTerm.cmb_icd10cd.enable = false;
  2010. switch2.DiagTerm.ipt_diagattrcd.enable = false;
  2011. switch2.DiagTerm.btn_diagattrcd.visible = false;
  2012. switch2.DiagTerm.ipt_termcd.enable = false;
  2013. switch2.DiagTerm.ipt_snmdcnptid.enable = false;
  2014. switch2.DiagTerm.ipt_snmdcnptnm.enable = false;
  2015. switch2.DiagTerm.btn_snmdcnptid.enable = false;
  2016. //btn_snmddescid.enable = false;
  2017. switch2.DiagTerm.btn_medireccd.enable = false;
  2018. switch2.DiagTerm.ipt_engnm.enable = false;
  2019. switch2.DiagTerm.ipt_hngnm.enable = false;
  2020. switch2.DiagTerm.cmb_reprflag.enable = false;
  2021. switch2.DiagTerm.cmb_diagattrverflag.enable = false;
  2022. switch2.DiagTerm.cmb_lglydisflag.enable = false;
  2023. switch2.DiagTerm.rdo_chrncsickyn.enable = false;
  2024. switch2.DiagTerm.rdo_estmexptyn.enable = false;
  2025. switch2.DiagTerm.rdo_serdiagclsyn.enable = false;
  2026. switch2.DiagTerm.rdo_cncryn.enable = false;
  2027. switch2.DiagTerm.rdo_manwomflag.enable = false;
  2028. switch2.DiagTerm.ipt_termfromdd.enable = false;
  2029. switch2.DiagTerm.ipt_termtodd.enable = false;
  2030. switch2.DiagTerm.cmb_ageflag.enable = false;
  2031. switch2.DiagTerm.chk_appinst.enable = false;
  2032. switch2.DiagTerm.rdo_essntermflag.enable = false;
  2033. }
  2034. }
  2035. /*-**************************************************************************************
  2036. * Argument : flag -
  2037. * Description : 진단_MORPHOLOGY 노드세팅
  2038. ****************************************************************************************/
  2039. function fCntlReset( flag ) {
  2040. if(flag == "diag"){
  2041. if(ds_hidden_condition.getColumn(0, "status")=="ETN"){
  2042. ds_main_peprterminfo_info.setColumn(0, "snmdcnptid", "");
  2043. ds_main_peprterminfo_info.setColumn(0, "snmdcnptnm", "");
  2044. ds_main_peprterminfo_info.setColumn(0, "lglydisflag", "");
  2045. }
  2046. ds_main_peprterminfo_info.setColumn(0, "serdiagclsyn", "");
  2047. ds_main_peprterminfo_info.setColumn(0, "chrncsickyn", "");
  2048. ds_main_peprterminfo_info.setColumn(0, "estmexptyn", "");
  2049. ds_main_peprterminfo_info.setColumn(0, "termengnm", "");
  2050. ds_main_peprterminfo_info.setColumn(0, "termhngnm", "");
  2051. ds_main_peprterminfo_info.setColumn(0, "reprflag", "");
  2052. ds_main_peprterminfo_info.setColumn(0, "ageflag", "");
  2053. } else if(flag == "kcd4m"){
  2054. ds_main_kcd4minfo_info.clearData(); ds_main_kcd4minfo_info.addRow();
  2055. }
  2056. }
  2057. /*-**************************************************************************************
  2058. * Argument : flag - 선택모드
  2059. * Description : ICD10코드 추가 및 삭제
  2060. ****************************************************************************************/
  2061. function fAddRow(flag) {
  2062. var iRow = 0;
  2063. var currentTime = utlf_getCurrentTime();
  2064. if(flag == "I") {
  2065. var iRow = ds_main_diagcdinfo_icd10cd.addRow();
  2066. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "state", "I");
  2067. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "icd10todd", "99991231");
  2068. // Edited by 나종천 ICD10 신규 추가 2008-06-16
  2069. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "lastupdtdt", ds_init.getColumn(0, "today") + currentTime.substr(0,6));
  2070. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "fstrgstdt", ds_init.getColumn(0, "today") + currentTime.substr(0,6));
  2071. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "fstrgstrid", ds_init_userinfo.getColumn(0, "userid"));
  2072. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "lastupdtrid", ds_init_userinfo.getColumn(0, "userid"));
  2073. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "icd10fromdd", ds_init.getColumn(0, "today"));
  2074. } else if(flag == "D") {
  2075. var iRow = ds_main_diagcdinfo_diagcd.addRow();
  2076. ds_main_diagcdinfo_diagcd.setColumn( iRow , "state", "I" );
  2077. ds_main_diagcdinfo_diagcd.setColumn( iRow , "termtodd", "99991231");
  2078. }
  2079. }
  2080. /*-**************************************************************************************
  2081. * Argument : N/A
  2082. * Description : 과진단추가시 진단 용어 조회
  2083. ****************************************************************************************/
  2084. function fSrchDiagInfo(){
  2085. var sCondPath = "ds_hidden_condition_deptset";
  2086. var sSrchedDiagCdInfoPath = "ds_main_srcheddiagcdlist_srcheddiagcdinfo";
  2087. var srchnm = this.objects[sCondPath].getColumn(0, "srchnm");
  2088. srchnm = srchnm.replace(/^\s*|\s*$/g, '');
  2089. if(utlf_isNull(srchnm)){
  2090. sysf_messageBox("조회 할 내용을","C001");
  2091. return;
  2092. }
  2093. ds_send.clearData();
  2094. this.objects[sSrchedDiagCdInfoPath].clearData();
  2095. dsf_makeValue( ds_send, "srchflag", "string", this.objects[sCondPath].getColumn(0, "srchflag"));
  2096. dsf_makeValue( ds_send, "srchnm", "string", srchnm);
  2097. dsf_makeValue( ds_send, "termflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  2098. var oParam = {};
  2099. oParam.id = "TRMRT00211";
  2100. oParam.service = "termmngtapp.DeptSetMngt";
  2101. oParam.method = "reqGetSrchedDiagCdList";
  2102. oParam.inds = "reqCond=ds_send";
  2103. oParam.outds = "ds_main_srcheddiagcdlist_srcheddiagcdinfo=srcheddiagcdinfo";
  2104. oParam.async = false;
  2105. //oParam.callback = "cf_TRMRT00211";
  2106. tranf_submit(oParam);
  2107. }
  2108. /*-**************************************************************************************
  2109. * Argument : N/A
  2110. * Description : 과진단에 진단 추가
  2111. ****************************************************************************************/
  2112. function fSendDeptDiag(){
  2113. var sCondPath = "ds_hidden_condition_deptset";
  2114. var sIndxListPath = "ds_main_indxlist_item";
  2115. var sSrchedDiagCdListPath = "ds_main_srcheddiagcdlist_srcheddiagcdinfo";
  2116. var sDeptDiagCdListPath = "ds_main_deptdiagcdlist_deptdiagcdinfo";
  2117. var sDeptCd = this.objects[sCondPath].getColumn(0, "selecteddeptcd");
  2118. var sIndxCd = ds_hidden_condition.getColumn(0, "selectedIndx");
  2119. var sIndxNm = ds_main_indxlist_item.lookupExpr("indxcd == '" + sIndxCd + "'", "indxhngnm");
  2120. var sSrchedDiagRowCnt = ds_main_srcheddiagcdlist_srcheddiagcdinfo.rowcount;
  2121. var sTermcd = "";
  2122. if(utlf_isNull(sDeptCd)){
  2123. sysf_messageBox("부서코드를 먼저", "C002");
  2124. return;
  2125. }
  2126. if(utlf_isNull(sIndxCd)){
  2127. sysf_messageBox("색인코드를 먼저", "C002");
  2128. return;
  2129. }
  2130. for(var iSrchedDiagRow = 0; iSrchedDiagRow < sSrchedDiagRowCnt; iSrchedDiagRow++){
  2131. if(this.objects[sSrchedDiagCdListPath].getColumn(iSrchedDiagRow, "check") == "Y"){
  2132. sTermcd = this.objects[sSrchedDiagCdListPath].getColumn(iSrchedDiagRow, "termcd");
  2133. if(!utlf_isNull(this.objects[sDeptDiagCdListPath].lookupExpr("termcd == '"+sTermcd+"' && deptindxcd == '"+sIndxCd+"'", "termcd"))) continue;
  2134. var iDeptDiagRow = this.objects[sDeptDiagCdListPath].addRow();
  2135. this.objects[sDeptDiagCdListPath].setColumn( iDeptDiagRow, "status", "I");
  2136. this.objects[sDeptDiagCdListPath].setColumn( iDeptDiagRow, "deptcd", sDeptCd);
  2137. this.objects[sDeptDiagCdListPath].setColumn( iDeptDiagRow, "deptnm", this.objects[sCondPath].getColumn(0, "selecteddeptnm"));
  2138. this.objects[sDeptDiagCdListPath].setColumn( iDeptDiagRow, "termcd", sTermcd);
  2139. this.objects[sDeptDiagCdListPath].setColumn( iDeptDiagRow, "deptindxcd", sIndxCd);
  2140. this.objects[sDeptDiagCdListPath].setColumn( iDeptDiagRow, "deptindxnm", sIndxNm);
  2141. this.objects[sDeptDiagCdListPath].setColumn( iDeptDiagRow, "termengnm", this.objects[sSrchedDiagCdListPath].getColumn(iSrchedDiagRow, "termengnm"));
  2142. this.objects[sDeptDiagCdListPath].setColumn( iDeptDiagRow, "termhngnm", this.objects[sSrchedDiagCdListPath].getColumn(iSrchedDiagRow, "termhngnm"));
  2143. this.objects[sDeptDiagCdListPath].setColumn( iDeptDiagRow, "deptindxflag", ds_hidden_condition.getColumn(0, "indxflag"));
  2144. }
  2145. }
  2146. }
  2147. /*-**************************************************************************************
  2148. * Argument : N/A
  2149. * Description : 과진단 저장
  2150. ****************************************************************************************/
  2151. function fSaveDeptDiagInfo(){
  2152. var xCondPath = "ds_hidden_condition";
  2153. var sSelIndxCd = this.objects[xCondPath].getColumn(0, "selectedIndx");
  2154. ds_send.clearData();
  2155. dsf_makeValue( ds_send, "indxcd", "string", sSelIndxCd);
  2156. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  2157. dsf_makeValue( ds_send, "deptcd", "string", this.objects[xCondPath+"_deptset"].getColumn(0, "selecteddeptcd"));
  2158. dsf_createDs("ds_send_deptdiagcdlist");
  2159. ds_send_deptdiagcdlist.copyData(grdf_getGridUpdateData(switch2.case_DeptDiag.grd_deptdiag, "insert"), true);
  2160. var oParam = {};
  2161. oParam.id = "TXMRT00203";
  2162. oParam.service = "termmngtapp.DeptSetMngt";
  2163. oParam.method = "reqExeDeptDiagCdList";
  2164. oParam.inds = "reqCond=ds_send deptdiagcdlist=ds_send_deptdiagcdlist";
  2165. oParam.outds = "ds_main_deptdiagcdlist_deptdiagcdinfo=deptdiagcdinfo";
  2166. oParam.async = false;
  2167. oParam.callback = "cf_TXMRT00203";
  2168. tranf_submit(oParam);
  2169. if(arErrorCode.pop("TXMRT00203") > -1) fSrchDeptDiagInfo();
  2170. }
  2171. function cf_TXMRT00203(sSvcId, nErrorCode, sErrorMsg) {
  2172. arErrorCode.push(sSvcId, nErrorCode);
  2173. }
  2174. /*-**************************************************************************************
  2175. * Argument : N/A
  2176. * Description : 선택부서 과진단 조회
  2177. ****************************************************************************************/
  2178. function fSrchDeptDiagInfo(){
  2179. var xCondPath = "ds_hidden_condition";
  2180. var sIndxCd = this.objects[xCondPath].getColumn(0, "selectedIndx");
  2181. var sDeptCd = this.objects[xCondPath+"_deptset"].getColumn(0, "selecteddeptcd");
  2182. if(utlf_isNull(sDeptCd)) {
  2183. sysf_messageBox("부서코드를 먼저", "C002");
  2184. return;
  2185. }
  2186. if(utlf_isNull(sIndxCd)) {
  2187. sysf_messageBox("색인코드를 먼저", "C002");
  2188. return;
  2189. }
  2190. ds_send.clearData();
  2191. dsf_makeValue( ds_send, "indxcd", "string", sIndxCd);
  2192. dsf_makeValue( ds_send, "indxflag", "string", this.objects[xCondPath].getColumn(0, "indxflag"));
  2193. dsf_makeValue( ds_send, "deptcd", "string", sDeptCd);
  2194. dsf_makeValue( ds_send, "pagesize", "string", pagesize);
  2195. dsf_makeValue( ds_send, "offset", "string", "0");
  2196. ds_main_deptdiagcdlist_deptdiagcdinfo.clearData();
  2197. pinfo = 1;
  2198. fn_TRMRT00212();
  2199. }
  2200. /*-**************************************************************************************
  2201. * Argument : N/A
  2202. * Description : 부서 선택 팝업 호출
  2203. ****************************************************************************************/
  2204. function fCallDeptInfo(){
  2205. var xCondPath = "ds_hidden_condition";
  2206. ds_main_indxlist_item.clearData();
  2207. ds_main_deptdiagcdlist_deptdiagcdinfo.clearData();
  2208. // zbcfOpenInstDeptCodeList("deptnm", model.getValue(xCondPath+"_deptset_selecteddeptnm"), xCondPath+"_deptset_selecteddeptcd", xCondPath+"_deptset_selecteddeptnm", "ordduseryn", "");
  2209. var rtnObj = appf_openInstDeptCodeList("deptnm", "", "ordduseryn", "", "depthngnm");
  2210. dsf_makeValue(this.objects[xCondPath+"_deptset"],"selecteddeptcd","string",rtnObj.deptcd);
  2211. dsf_makeValue(this.objects[xCondPath+"_deptset"],"selecteddeptnm","string",rtnObj.depthngnm);
  2212. if(!utlf_isNull(this.objects[xCondPath+"_deptset"].getColumn(0, "selecteddeptcd"))){
  2213. ds_send.clearData();
  2214. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  2215. dsf_makeValue( ds_send, "deptcd", "string", ds_hidden_condition_deptset.getColumn(0, "selecteddeptcd"));
  2216. fn_TRMRT00210();
  2217. if(arErrorCode.pop("TRMRT00210") > -1) {
  2218. ds_main_deptdiagcdlist_deptdiagcdinfo.clearData();
  2219. this.objects[xCondPath].setColumn( 0, "selectedIndx", "");
  2220. }
  2221. }
  2222. }
  2223. /*-**************************************************************************************
  2224. * Argument : N/A
  2225. * Description : 전체진단조회 팝업 호출
  2226. ****************************************************************************************/
  2227. function fCallExtnDiagInfo(){
  2228. frmf_setParameter("indxflag", ds_hidden_condition.getColumn(0, "indxflag"));
  2229. frmf_modal("SPMRT01000", "", "", "", 1, 10, 10, "", "", "", "", "", "M");
  2230. }
  2231. /*-**************************************************************************************
  2232. * Argument : flag
  2233. * Description : KCD4M 용어 컨트롤 세팅
  2234. ****************************************************************************************/
  2235. function fCtrlSet(flag){
  2236. if(flag == "N"){
  2237. switch2.KCD4M.ipt_morphlgccd.enable = true;
  2238. switch2.KCD4M.ipt_kcd4mseqno.enable = true;
  2239. switch2.KCD4M.ipt_kcdsnmdcnptid.enable = true;
  2240. switch2.KCD4M.ipt_kcd4mengnm.enable = true;
  2241. switch2.KCD4M.ipt_kcd4mhngnm.enable = true;
  2242. switch2.KCD4M.ipt_kcd4mfromdate.enable = true;
  2243. switch2.KCD4M.ipt_kcd4mtodate.enable = true;
  2244. switch2.KCD4M.cmb_version.enable = true;
  2245. } else if(flag == "M") {
  2246. switch2.KCD4M.ipt_kcd4mengnm.enable = true;
  2247. switch2.KCD4M.ipt_kcd4mhngnm.enable = true;
  2248. switch2.KCD4M.ipt_kcdsnmdcnptid.enable = true;
  2249. switch2.KCD4M.ipt_kcd4mfromdate.enable = true;
  2250. switch2.KCD4M.ipt_kcd4mtodate.enable = true;
  2251. switch2.KCD4M.cmb_version.enable = true;
  2252. } else {
  2253. switch2.KCD4M.ipt_morphlgccd.enable = false;
  2254. switch2.KCD4M.ipt_kcd4mengnm.enable = false;
  2255. switch2.KCD4M.ipt_kcd4mhngnm.enable = false;
  2256. switch2.KCD4M.ipt_kcd4mfromdate.enable = false;
  2257. switch2.KCD4M.ipt_kcd4mtodate.enable = false;
  2258. switch2.KCD4M.ipt_kcd4mseqno.enable = false;
  2259. switch2.KCD4M.ipt_kcdsnmdcnptid.enable = false;
  2260. switch2.KCD4M.cmb_version.enable = false;
  2261. }
  2262. }
  2263. /*-**************************************************************************************
  2264. * Argument : N/A
  2265. * Description : ICD10코드 리스트를 조회
  2266. ****************************************************************************************/
  2267. function fSelICD10List(){
  2268. var sSelectedMode = ds_hidden_condition.getColumn(0, "selctedmode");
  2269. btn_addrow.visible = true;
  2270. btn_delrow.visible = true;
  2271. btn_saverow.visible = true;
  2272. btn_modify.visible = true;
  2273. cap_selInst.visible = false;
  2274. cmb_selInst.visible = false;
  2275. if(sSelectedMode == "K" || sSelectedMode == "P") {
  2276. ds_hidden_condition.setColumn( 0, "indxflag", "0");
  2277. ds_send.clearData();
  2278. dsf_makeValue( ds_send, "mode", "string", ds_hidden_condition.getColumn(0, "indxviewmode"));
  2279. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  2280. fn_TRMRT00201();
  2281. }
  2282. ds_hidden_condition.setColumn( 0, "selctedmode", "I");
  2283. }
  2284. /*-**************************************************************************************
  2285. * Argument : N/A
  2286. * Description : 진단코드 리스트를 조회
  2287. ****************************************************************************************/
  2288. function fSelDiagList(){
  2289. var sSelectedMode = ds_hidden_condition.getColumn(0, "selctedmode");
  2290. btn_addrow.visible = false;
  2291. btn_delrow.visible = false;
  2292. btn_saverow.visible = true;
  2293. btn_modify.visible = false;
  2294. //2009-03-19 오후 2:26:46 강지훈 수정 : 기관별 용어를 조회한다.
  2295. if(sysf_getUserInfo("dutplceinstcd") == "001"){
  2296. cap_selInst.visible = true;
  2297. cmb_selInst.visible = true;
  2298. }
  2299. if(sSelectedMode == "K" || sSelectedMode == "P") {
  2300. ds_hidden_condition.setColumn( 0, "indxflag", "0");
  2301. ds_send.clearData();
  2302. dsf_makeValue( ds_send, "mode", "string", ds_hidden_condition.getColumn(0, "indxviewmode"));
  2303. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  2304. dsf_makeValue( ds_send, "indxuseflag", "string", ds_hidden_condition.getColumn(0, "indxuseflag"));
  2305. fn_TRMRT00201();
  2306. }
  2307. ds_hidden_condition.setColumn( 0, "selctedmode", "D");
  2308. }
  2309. /*-**************************************************************************************
  2310. * Argument : N/A
  2311. * Description : Morphology코드 리스트를 조회
  2312. ****************************************************************************************/
  2313. function fSelMorphoList(){
  2314. btn_addrow.visible = false;
  2315. btn_delrow.visible = false;
  2316. btn_saverow.visible = false;
  2317. btn_modify.visible = false;
  2318. cap_selInst.visible = false;
  2319. cmb_selInst.visible = false;
  2320. ds_hidden_condition.setColumn( 0, "selctedmode", "K");
  2321. ds_hidden_condition.setColumn( 0, "indxflag", "4");
  2322. ds_send.clearData();
  2323. dsf_makeValue( ds_send, "mode", "string", ds_hidden_condition.getColumn(0, "indxviewmode"));
  2324. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  2325. fn_TRMRT00201();
  2326. }
  2327. /*-**************************************************************************************
  2328. * Argument : N/A
  2329. * Description : 동의어 리스트에서 선택
  2330. ****************************************************************************************/
  2331. function fGetSynom(){
  2332. var iRow = ds_main_sametermlist_info.rowposition;
  2333. if( iRow < 0 ) return;
  2334. var indx = ds_hidden_condition.getColumn(0, "selectedIndx");
  2335. var icd10 = ds_hidden_condition.getColumn(0, "selectedicd10");
  2336. var path = ds_hidden_condition.getColumn(0, "selectedIndxPath");
  2337. var term = ds_main_sametermlist_info.getColumn(iRow, "termcd");
  2338. ds_hidden_condition.setColumn( 0, "selectedtermcd", term);
  2339. switch2.DiagTerm.opt_Hdicd10cd.visible = true;
  2340. switch2.DiagTerm.cmb_icd10cd.visible = false;
  2341. switch2.DiagTerm.btn_delete2.enable = true;
  2342. fDisabled("AS");
  2343. ds_hidden_condition.setColumn( 0, "status", "STM");
  2344. ds_main_peprterminfo_info.setColumn( 0, "icd10cd", term.split(".")[0]); // ICD10
  2345. ds_main_peprterminfo_info.setColumn( 0, "diagattrcd", term.split(".")[1]); // 확장코드
  2346. ds_main_peprterminfo_info.setColumn( 0, "termcd", term.split(".")[2]); // 대표어(동의어)코드
  2347. ds_main_peprterminfo_info.setColumn( 0, "snmdcnptid", ds_main_sametermlist_info.getColumn(iRow, "snmdcnptid")); // 스노메드-cnpt id
  2348. ds_main_peprterminfo_info.setColumn( 0, "snmdcnptnm", ds_main_sametermlist_info.getColumn(iRow, "snmdcnptnm")); // 스노메드-cncpt 명
  2349. ds_main_peprterminfo_info.setColumn( 0, "umlscd", ds_main_sametermlist_info.getColumn(iRow, "umlscd")); // UMLS 코드
  2350. ds_main_peprterminfo_info.setColumn( 0, "termengnm", ds_main_sametermlist_info.getColumn(iRow, "termengnm")); // 영문
  2351. ds_main_peprterminfo_info.setColumn( 0, "termhngnm", ds_main_sametermlist_info.getColumn(iRow, "termhngnm")); // 한글
  2352. ds_main_peprterminfo_info.setColumn( 0, "reprflag", ds_main_sametermlist_info.getColumn(iRow, "reprflag")); // 대표어구분
  2353. ds_main_peprterminfo_info.setColumn( 0, "termflag", ds_main_sametermlist_info.getColumn(iRow, "termflag")); // 용어구분
  2354. ds_main_peprterminfo_info.setColumn( 0, "fstrgstrid", ds_main_sametermlist_info.getColumn(iRow, "lastupdtrnm")); // 최종등록자
  2355. //저장시 필요한 키값
  2356. ds_main_peprterminfo_info.setColumn( 0, "attrfromdd", ds_main_sametermlist_info.getColumn(iRow, "attrfromdd"));
  2357. ds_main_peprterminfo_info.setColumn( 0, "attrtodd", ds_main_sametermlist_info.getColumn(iRow, "attrtodd"));
  2358. ds_main_peprterminfo_info.setColumn( 0, "icdfromdd", ds_main_sametermlist_info.getColumn(iRow, "icdfromdd"));
  2359. ds_main_peprterminfo_info.setColumn( 0, "alttermcd", ds_main_sametermlist_info.getColumn(iRow, "alttermcd"));
  2360. ds_main_peprterminfo_info.setColumn( 0, "essntermflag", ds_main_sametermlist_info.getColumn(iRow, "essntermflag"));
  2361. ds_main_peprterminfo_info.setColumn( 0, "appinstcd", ds_main_sametermlist_info.getColumn(iRow, "appinstcd")); //적용기관
  2362. var fstrgstdt = ds_main_sametermlist_info.getColumn(iRow, "fstrgstdt");
  2363. var termfromdd = ds_main_sametermlist_info.getColumn(iRow, "termfromdd");
  2364. var termtodd = ds_main_sametermlist_info.getColumn(iRow, "termtodd");
  2365. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdt", fstrgstdt); // 등록일
  2366. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdate", fstrgstdt.substr(0,8));
  2367. ds_main_peprterminfo_info.setColumn( 0, "fstrgsttime", fstrgstdt.substr(8,4));
  2368. ds_main_peprterminfo_info.setColumn( 0, "termfromdd", termfromdd); // 시작일
  2369. ds_main_peprterminfo_info.setColumn( 0, "termtodd", termtodd); // 종료일
  2370. }
  2371. /*-**************************************************************************************
  2372. * Argument : N/A
  2373. * Description : 동의어등록
  2374. ****************************************************************************************/
  2375. function fSetInj(){
  2376. //동의어 신규
  2377. var jRow = ds_main_diagcdinfo_diagcd.rowposition;
  2378. var term1 = ds_main_diagcdinfo_diagcd.getColumn(jRow, "termcd"); //그리드에서 선택한 term
  2379. var diagattr = ds_main_diagcdinfo_diagcd.getColumn(jRow, "diagattrcd"); //그리드에서 선택한 term
  2380. var icd10cd = ds_main_diagcdinfo_diagcd.getColumn(jRow, "icd10cd"); //그리드에서 선택한 term
  2381. var indx = ds_hidden_condition.getColumn(0, "selectedIndx"); //트리에서 선택한 index
  2382. var fromdd = ((utlf_getCurrentDate()).toDate()).getAddDate(1);
  2383. if(utlf_isNull(term1)) {
  2384. var rtn = sysf_messageBox("진단 용어를 ", "C002");
  2385. return;
  2386. }
  2387. fDisabled("TN");
  2388. switch2.DiagTerm.opt_Hdicd10cd.visible = true;
  2389. switch2.DiagTerm.cmb_icd10cd.visible = false;
  2390. switch2.DiagTerm.btn_delete2.enable = false;
  2391. fCntlReset("diag");
  2392. ds_hidden_condition.setColumn( 0, "status", "TN"); //term만 new
  2393. dsf_createDs("ds_send_reqdata");
  2394. dsf_createDs("ds_main_temp_info");
  2395. dsf_makeValue( ds_send_reqdata, "icd10cd", "string", icd10cd);
  2396. dsf_makeValue( ds_send_reqdata, "diagattrcd", "string", diagattr);
  2397. var oParam = {};
  2398. oParam.id = "TRMRT00208";
  2399. oParam.service = "termmngtapp.DiagTermMngt";
  2400. oParam.method = "reqGetNewtermcd";
  2401. oParam.inds = "req=ds_send_reqdata";
  2402. oParam.outds = "ds_main_temp_info=info";
  2403. oParam.async = false;
  2404. //oParam.callback = "cf_TRMRT00208";
  2405. tranf_submit(oParam);
  2406. ds_main_peprterminfo_info.setColumn( 0, "icd10cd", ds_main_temp_info.getColumn(0, "icd10cd"));
  2407. ds_main_peprterminfo_info.setColumn( 0, "diagattrcd", ds_main_temp_info.getColumn(0, "diagattrcd").split(".")[1]);
  2408. ds_main_peprterminfo_info.setColumn( 0, "termcd", ds_main_temp_info.getColumn(0, "termcd"));
  2409. // Edited by 2007-08-16 대표어 'R' 그 외 값은 ''로 처리
  2410. // ds_main_peprterminfo_info.setColumn( 0, "reprflag", "S");
  2411. ds_main_peprterminfo_info.setColumn( 0, "reprflag", "");
  2412. ds_main_peprterminfo_info.setColumn( 0, "diagattrmedireccd", ds_main_diagcdinfo_diagcd.getColumn(jRow, "diagattrmedireccd"));
  2413. var path = ds_hidden_condition.getColumn(0, "selectedIndxPath").split(".");
  2414. ds_main_peprterminfo_info.setColumn( 0, "diagattrdrindxcd", path[path.length-2]);
  2415. ds_main_peprterminfo_info.setColumn( 0, "termflag", "0");
  2416. ds_main_peprterminfo_info.setColumn( 0, "fstrgstrid", ds_init_userinfo.getColumn(0, "userid"));
  2417. ds_main_peprterminfo_info.setColumn( 0, "termengnm", ds_main_diagcdinfo_diagcd.getColumn(jRow, "termengnm"));
  2418. ds_main_peprterminfo_info.setColumn( 0, "termhngnm", ds_main_diagcdinfo_diagcd.getColumn(jRow, "termhngnm"));
  2419. dsf_makeValue( ds_main_peprterminfo_info, "oldattrfromdd", "string", ds_main_diagcdinfo_diagcd.getColumn(jRow, "attrfromdd"));
  2420. //신규 등록 모드는 디폴트를 설정
  2421. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdate", ds_init.getColumn(0, "today"));
  2422. ds_main_peprterminfo_info.setColumn( 0, "fstrgsttime", ds_init.getColumn(0, "curruntTime"));
  2423. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdt", ds_main_peprterminfo_info.getColumn(0, "fstrgstdate")+ds_main_peprterminfo_info.getColumn(0, "fstrgsttime")+"00");
  2424. ds_main_peprterminfo_info.setColumn( 0, "termfromdd", fromdd.getDateFormat());
  2425. ds_main_peprterminfo_info.setColumn( 0, "termtodd", "99991231");
  2426. ds_main_peprterminfo_info.setColumn( 0, "fstrgstrid", ds_init_userinfo.getColumn(0, "usernm"));
  2427. }
  2428. /*-**************************************************************************************
  2429. * Argument : N/A
  2430. * Description : 신규 용어 등록
  2431. ****************************************************************************************/
  2432. function fSetNewTerm(){
  2433. var sIndx = ds_hidden_condition.getColumn(0, "selectedIndx");
  2434. var fromdd = ((utlf_getCurrentDate()).toDate()).getAddDate(1);
  2435. var maininstyn = ds_hidden_condition.getColumn(0, "maininstyn");
  2436. if(utlf_isNull(sIndx)) {
  2437. var rtn = sysf_messageBox("색인을 ", "C002");
  2438. return;
  2439. }
  2440. ds_main_peprterminfo_info.setColumn( 0, "appinstcd", "");
  2441. ds_main_peprterminfo_info.setColumn( 0, "essntermflag", "N");
  2442. ds_main_sametermlist_info.clearData(); // 신규버튼 클릭시 동의어 그리드 초기화
  2443. ds_hidden_condition.setColumn( 0, "status", "ETN");
  2444. switch2.DiagTerm.opt_Hdicd10cd.visible = false;
  2445. switch2.DiagTerm.cmb_icd10cd.visible = true;
  2446. switch2.DiagTerm.btn_delete2.enable = false;
  2447. fCntlReset("diag");
  2448. fDisabled("ETN");
  2449. ds_send.clearData();
  2450. dsf_makeValue( ds_send, "indxcd", "string", sIndx);
  2451. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  2452. //선택한 인덱스에 해당하는 ICD10코드를 가지고 온다..
  2453. var oParam = {};
  2454. oParam.id = "TRMRT00206";
  2455. oParam.service = "termmngtapp.DiagTermMngt";
  2456. oParam.method = "reqGetInclICD10cd";
  2457. oParam.inds = "req=ds_send";
  2458. oParam.outds = "ds_main_icd10cdlist_info=info";
  2459. oParam.async = false;
  2460. //oParam.callback = "cf_TRMRT00206";
  2461. tranf_submit(oParam);
  2462. switch2.DiagTerm.cmb_reprflag.index = 0;
  2463. // Edited by NJ 2007-07-21 getDate() -> utlf_getCurrentDate()
  2464. //ds_main_peprterminfo_info.setColumn( 0, "attrfromdd", getDate() );
  2465. ds_main_peprterminfo_info.setColumn( 0, "termfromdd", fromdd.getDateFormat());
  2466. ds_main_peprterminfo_info.setColumn( 0, "termtodd", "99991231");
  2467. ds_main_peprterminfo_info.setColumn( 0, "attrfromdd", ds_main_peprterminfo_info.getColumn(0, "termfromdd"));
  2468. ds_main_peprterminfo_info.setColumn( 0, "attrtodd", ds_main_peprterminfo_info.getColumn(0, "termtodd"));
  2469. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdate", utlf_getCurrentDate());
  2470. ds_main_peprterminfo_info.setColumn( 0, "fstrgsttime", utlf_getCurrentTime());
  2471. ds_main_peprterminfo_info.setColumn( 0, "fstrgstrid", sysf_getUserName());
  2472. }
  2473. /*-**************************************************************************************
  2474. * Argument : N/A
  2475. * Description : 용어 수정
  2476. ****************************************************************************************/
  2477. function fSetTermUpdt(){
  2478. var selTermcd = ds_hidden_condition.getColumn(0, "selectedtermcd");
  2479. var fromdd = ((utlf_getCurrentDate()).toDate()).getAddDate(1);
  2480. if(utlf_isNull(selTermcd)) {
  2481. var rtn = sysf_messageBox("icd10 코드를 ", "C002");
  2482. return;
  2483. }
  2484. // Edited by NJ 2007-07-21 getDate() -> utlf_getCurrentDate()
  2485. var today = utlf_getCurrentDate();
  2486. if(ds_main_peprterminfo_info.getColumn(0, "termfromdd") >= today){
  2487. var rtn = sysf_messageBox("당일 등록한 용어는 수정 ", "E001");
  2488. return;
  2489. }
  2490. fDisabled("ETM");
  2491. ds_hidden_condition.setColumn( 0, "status", "ETM");
  2492. switch2.DiagTerm.btn_delete2.enable = false;
  2493. dsf_makeValue( ds_main_peprterminfo_info, "oldtermfromdd", "string", ds_main_peprterminfo_info.getColumn(0, "termfromdd"));
  2494. dsf_makeValue( ds_main_peprterminfo_info, "oldattrfromdd", "string", ds_main_peprterminfo_info.getColumn(0, "attrfromdd"));
  2495. ds_main_peprterminfo_info.setColumn( 0, "termfromdd", fromdd.getDateFormat());
  2496. ds_main_peprterminfo_info.setColumn( 0, "termtodd", "99991231");
  2497. ds_main_peprterminfo_info.setColumn( 0, "attrfromdd", ds_main_peprterminfo_info.getColumn(0, "termfromdd"));
  2498. ds_main_peprterminfo_info.setColumn( 0, "attrtodd", ds_main_peprterminfo_info.getColumn(0, "termtodd"));
  2499. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdate", utlf_getCurrentDate());
  2500. ds_main_peprterminfo_info.setColumn( 0, "fstrgsttime", utlf_getCurrentTime());
  2501. ds_main_peprterminfo_info.setColumn( 0, "fstrgstrid", sysf_getUserName());
  2502. }
  2503. /*-**************************************************************************************
  2504. * Argument : N/A
  2505. * Description : 진단용어 저장
  2506. ****************************************************************************************/
  2507. function fSaveDiag(){
  2508. var insICD10cd = ds_main_peprterminfo_info.getColumn(0, "icd10cd");
  2509. var insdiagattrcd = ds_main_peprterminfo_info.getColumn(0, "diagattrcd");
  2510. var insTermcd = ds_main_peprterminfo_info.getColumn(0, "termcd");
  2511. var fullTermCode = insICD10cd + "." + insdiagattrcd + "." + insTermcd;
  2512. var rowCnt = ds_main_diagcdinfo_diagcd.rowposition;
  2513. var orgReprFlag = ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "reprflag"); //상단 그리드의 원래 대표어구분
  2514. var chngReprFlag = ds_main_peprterminfo_info.getColumn(0, "reprflag"); //저장시, 변경된 대표어구분
  2515. ds_send.clearData();
  2516. dsf_createDs("ds_send_reqdata");
  2517. ds_send_reqdata.copyData(ds_main_peprterminfo_info);
  2518. ds_send_reqdata.setColumn( 0, "icd10cd", insICD10cd);
  2519. ds_send_reqdata.setColumn( 0, "diagattrcd", insICD10cd + "." + insdiagattrcd);
  2520. ds_send_reqdata.setColumn( 0, "termcd", fullTermCode);
  2521. ds_send_reqdata.setColumn( 0, "fstrgstdt", ds_main_peprterminfo_info.getColumn(0, "fstrgstdate") + ds_main_peprterminfo_info.getColumn(0, "fstrgsttime")+"00"); //용어등록일
  2522. ds_send_reqdata.setColumn( 0, "termflag", "0"); //용어구분
  2523. dsf_makeValue( ds_send_reqdata, "indxcd", "string", ds_hidden_condition.getColumn(0, "selectedIndx"));
  2524. dsf_makeValue( ds_send_reqdata, "status", "string", ds_hidden_condition.getColumn(0, "status")); //TN:용어만 등록, ETN:용어,속성함께등록,TM:용어만수정, EM:속성만수정,
  2525. dsf_makeValue( ds_send_reqdata, "maininstyn", "string", ds_hidden_condition.getColumn(0, "maininstyn"));
  2526. dsf_makeValue( ds_send_reqdata, "selInstcd", "string", ds_hidden_condition.getColumn(0, "selInstcd"));
  2527. if(ds_hidden_condition.getColumn(0, "status") == "ETN" || ds_hidden_condition.getColumn(0, "status") == "TN") {
  2528. //2009-03-28 오후 1:49:29 강지훈 수정 : 기관에서 등록할때는 적용기관이 필수이다.
  2529. var mainInstYn = ds_hidden_condition.getColumn(0, "maininstyn");
  2530. var appInstcd = ds_main_peprterminfo_info.getColumn(0, "appinstcd");
  2531. if(mainInstYn == "Y" && utlf_isNull(appInstcd)) {
  2532. var rtn = sysf_messageBox("선택된 적용기관이 없으므로 저장 ", "E001");
  2533. return;
  2534. }
  2535. fn_TXMRT00201();
  2536. if(arErrorCode.pop("TXMRT00201") > -1){
  2537. fCntlReset("diag");
  2538. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  2539. ds_main_sametermlist_appinstcd.clearData();
  2540. ds_main_sametermlist_info.clearData();
  2541. }
  2542. } else if(ds_hidden_condition.getColumn(0, "status") == "STM") {
  2543. //왼쪽 그리드에서 정보를 선택했을 때
  2544. var sRowCnt = ds_main_sametermlist_info.rowposition;
  2545. var orgReprFlag2 = orgReprFlag;
  2546. if(fullTermCode == ds_main_sametermlist_info.getColumn(sRowCnt, "termcd")) {
  2547. if( ds_main_sametermlist_info.getColumn(sRowCnt, "termengnm") != ds_main_peprterminfo_info.getColumn(0, "termengnm") ||
  2548. ds_main_sametermlist_info.getColumn(sRowCnt, "termhngnm") != ds_main_peprterminfo_info.getColumn(0, "termhngnm") ||
  2549. ds_main_sametermlist_info.getColumn(sRowCnt, "termflag") != ds_main_peprterminfo_info.getColumn(0, "termflag") ) {
  2550. if(orgReprFlag2 != chngReprFlag ){
  2551. if(orgReprFlag2 != "R" ) {
  2552. //동의어나 유사어를 대표어로 수정하는 경우 (대표어구분코드를 맞교환)
  2553. if( chngReprFlag != "R" )
  2554. ds_send_reqdata.setColumn( 0, "status", "TM");
  2555. else {
  2556. ds_send_reqdata.setColumn( 0, "orgreprflag", orgReprFlag2); //대표어구분을 교환하기 위해 원래 값을 다시 세팅한다.
  2557. ds_send_reqdata.setColumn( 0, "status", "TFM");
  2558. }
  2559. fn_TXMRT00201();
  2560. if(arErrorCode.pop("TXMRT00201") > -1){
  2561. fCntlReset("diag");
  2562. ds_main_sametermlist_appinstcd.clearData();
  2563. ds_main_sametermlist_info.clearData();
  2564. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  2565. }
  2566. } else {
  2567. var rtn = sysf_messageBox("대표어를 동의어나 유사어로 수정 ", "E001");
  2568. return;
  2569. //동의어를 대표어로 바꾸는 것만 허용
  2570. }
  2571. } else {
  2572. ds_send_reqdata.setColumn( 0, "status", "TM");
  2573. fn_TXMRT00201();
  2574. if(arErrorCode.pop("TXMRT00201") > -1){
  2575. fCntlReset("diag");
  2576. ds_main_sametermlist_appinstcd.clearData();
  2577. ds_main_sametermlist_info.clearData();
  2578. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  2579. }
  2580. }
  2581. } else {
  2582. var rtn = sysf_messageBox("변경된 내용이 없으므로 저장 ", "E001");
  2583. return;
  2584. }
  2585. } else {
  2586. var rtn = sysf_messageBox("신규입력 버튼을 ", "C002");
  2587. return;
  2588. }
  2589. } else {
  2590. if(fullTermCode == ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "termcd")) {
  2591. // 용어명칭이 바뀐 경우
  2592. if( ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "termengnm") != ds_main_peprterminfo_info.getColumn(0, "termengnm") ||
  2593. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "termhngnm") != ds_main_peprterminfo_info.getColumn(0, "termhngnm") ||
  2594. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "termflag") != ds_main_peprterminfo_info.getColumn(0, "termflag") ||
  2595. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "essntermflag") != ds_main_peprterminfo_info.getColumn(0, "essntermflag") ) {
  2596. if( ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "lglydisflag") != ds_main_peprterminfo_info.getColumn(0, "lglydisflag") ||
  2597. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "chrncsickyn") != ds_main_peprterminfo_info.getColumn(0, "chrncsickyn") ||
  2598. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "estmexptyn") != ds_main_peprterminfo_info.getColumn(0, "estmexptyn") ||
  2599. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "serdiagclsyn") != ds_main_peprterminfo_info.getColumn(0, "serdiagclsyn") ||
  2600. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "manwomflag") != ds_main_peprterminfo_info.getColumn(0, "manwomflag") ||
  2601. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "cncryn") != ds_main_peprterminfo_info.getColumn(0, "cncryn") ||
  2602. //ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "diagattrdrindxcd") != ds_main_peprterminfo_info.getColumn(0, "diagattrdrindxcd") ||
  2603. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "diagattrmedireccd") != ds_main_peprterminfo_info.getColumn(0, "diagattrmedireccd") ||
  2604. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "diagattrverflag") != ds_main_peprterminfo_info.getColumn(0, "diagattrverflag") ||
  2605. //ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "snmdcnptid") != ds_main_peprterminfo_info.getColumn(0, "snmdcnptid") ||
  2606. //ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "snmdcnptnm") != ds_main_peprterminfo_info.getColumn(0, "snmdcnptnm") ||
  2607. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "ageflag") != ds_main_peprterminfo_info.getColumn(0, "ageflag") ) {
  2608. if( orgReprFlag != chngReprFlag ){
  2609. if( orgReprFlag != "R" ) {
  2610. //동의어나 유사어를 대표어로 수정하는 경우 (대표어구분코드를 맞교환)
  2611. if( chngReprFlag != "R" )
  2612. ds_send_reqdata.setColumn( 0, "status", "ETM"); // 유사어 구분이 없기 때문에 이 로직은 타지 않는다.
  2613. else {
  2614. dsf_makeValue( ds_send_reqdata, "orgreprflag", "string", orgReprFlag); //대표어구분을 교환하기 위해 원래 값을 다시 세팅한다.
  2615. ds_send_reqdata.setColumn( 0, "status", "ETFM");
  2616. }
  2617. fn_TXMRT00201();
  2618. if(arErrorCode.pop("TXMRT00201") > -1){
  2619. fCntlReset("diag");
  2620. ds_main_sametermlist_appinstcd.clearData();
  2621. ds_main_sametermlist_info.clearData();
  2622. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  2623. }
  2624. } else {
  2625. var rtn = sysf_messageBox("대표어를 동의어나 유사어로 수정 ", "E001");
  2626. return;
  2627. //동의어를 대표어로 바꾸는 것만 허용
  2628. }
  2629. } else {
  2630. ds_send_reqdata.setColumn( 0, "status", "ETM");
  2631. fn_TXMRT00201();
  2632. if(arErrorCode.pop("TXMRT00201") > -1){
  2633. fCntlReset("diag");
  2634. ds_main_sametermlist_appinstcd.clearData();
  2635. ds_main_sametermlist_info.clearData();
  2636. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  2637. }
  2638. }
  2639. } else {
  2640. //용어테이블만 수정되었을 경우
  2641. if( orgReprFlag != chngReprFlag ){
  2642. if( orgReprFlag != "R" ) {
  2643. //동의어나 유사어를 대표어로 수정하는 경우 (대표어구분코드를 맞교환)
  2644. if( chngReprFlag != "R" )
  2645. ds_send_reqdata.setColumn( 0, "status", "TM"); // 동의어 유사어 구분이 없기 때문에 이 로직은 타지 않는다
  2646. else {
  2647. dsf_makeValue( ds_send_reqdata, "orgreprflag", "string", orgReprFlag); //대표어구분을 교환하기 위해 원래 값을 다시 세팅한다.
  2648. ds_send_reqdata.setColumn( 0, "status", "TFM");
  2649. }
  2650. fn_TXMRT00201();
  2651. if(arErrorCode.pop("TXMRT00201") > -1){
  2652. fCntlReset("diag");
  2653. ds_main_sametermlist_appinstcd.clearData();
  2654. ds_main_sametermlist_info.clearData();
  2655. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  2656. }
  2657. } else {
  2658. var rtn = sysf_messageBox("대표어를 동의어나 유사어로 수정 ", "E001");
  2659. return;
  2660. //동의어를 대표어로 바꾸는 것만 허용
  2661. }
  2662. } else {
  2663. ds_send_reqdata.setColumn( 0, "status", "TM");
  2664. fn_TXMRT00201();
  2665. if(arErrorCode.pop("TXMRT00201") > -1){
  2666. fCntlReset("diag");
  2667. ds_main_sametermlist_appinstcd.clearData();
  2668. ds_main_sametermlist_info.clearData();
  2669. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  2670. }
  2671. }
  2672. }
  2673. // 용어 명칭 외의 것이 바뀐 경우
  2674. } else {
  2675. //속성만 수정
  2676. if( ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "lglydisflag") != ds_main_peprterminfo_info.getColumn(0, "lglydisflag") ||
  2677. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "chrncsickyn") != ds_main_peprterminfo_info.getColumn(0, "chrncsickyn") ||
  2678. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "estmexptyn") != ds_main_peprterminfo_info.getColumn(0, "estmexptyn") ||
  2679. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "serdiagclsyn") != ds_main_peprterminfo_info.getColumn(0, "serdiagclsyn") ||
  2680. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "manwomflag") != ds_main_peprterminfo_info.getColumn(0, "manwomflag") ||
  2681. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "cncryn") != ds_main_peprterminfo_info.getColumn(0, "cncryn") ||
  2682. //ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "diagattrdrindxcd") != ds_main_peprterminfo_info.getColumn(0, "diagattrdrindxcd") ||
  2683. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "diagattrmedireccd") != ds_main_peprterminfo_info.getColumn(0, "diagattrmedireccd") ||
  2684. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "diagattrverflag") != ds_main_peprterminfo_info.getColumn(0, "diagattrverflag") ||
  2685. //ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "snmdcnptid") != ds_main_peprterminfo_info.getColumn(0, "snmdcnptid") ||
  2686. //ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "snmdcnptnm") != ds_main_peprterminfo_info.getColumn(0, "snmdcnptnm") ||
  2687. ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "ageflag") != ds_main_peprterminfo_info.getColumn(0, "ageflag") ) {
  2688. if( orgReprFlag != chngReprFlag ) {
  2689. if(orgReprFlag != "R" ) {
  2690. //동의어나 유사어를 대표어로 수정하는 경우 (대표어구분코드를 맞교환)
  2691. if( chngReprFlag != "R" )
  2692. ds_send_reqdata.setColumn( 0, "status", "ETM"); // 동의어 유사어 구분이 없기 때문에 이 로직은 타지 않는다
  2693. else {
  2694. //2009 02 16 강지훈 수정 : 오류수정
  2695. //ds_send_reqdata.setColumn( 0, "orgreprflag", orgReprFlag); //대표어구분을 교환하기 위해 원래 값을 다시 세팅한다.
  2696. dsf_makeValue( ds_send_reqdata, "orgreprflag", "string", orgReprFlag); //대표어구분을 교환하기 위해 원래 값을 다시 세팅한다.
  2697. ds_send_reqdata.setColumn( 0, "status", "EFM");
  2698. }
  2699. fn_TXMRT00201();
  2700. if(arErrorCode.pop("TXMRT00201") > -1){
  2701. fCntlReset("diag");
  2702. ds_main_sametermlist_appinstcd.clearData();
  2703. ds_main_sametermlist_info.clearData();
  2704. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  2705. }
  2706. } else {
  2707. var rtn = sysf_messageBox("대표어를 동의어나 유사어로 수정 ", "E001");
  2708. return;
  2709. //동의어를 대표어로 바꾸는 것만 허용
  2710. }
  2711. } else {
  2712. ds_send_reqdata.setColumn( 0, "status", "EM");
  2713. fn_TXMRT00201();
  2714. if(arErrorCode.pop("TXMRT00201") > -1){
  2715. fCntlReset("diag");
  2716. ds_main_sametermlist_appinstcd.clearData();
  2717. ds_main_sametermlist_info.clearData();
  2718. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  2719. }
  2720. }
  2721. } else {
  2722. //순수 용어 테이블만 수정되었을 경우(기존에는 대표어, 동의어)
  2723. if( orgReprFlag != chngReprFlag ){
  2724. if( orgReprFlag != "R" ) {
  2725. //동의어나 유사어를 대표어로 수정하는 경우 (대표어구분코드를 맞교환)
  2726. if( chngReprFlag != "R" )
  2727. ds_send_reqdata.setColumn( 0, "status", "TM");
  2728. else {
  2729. if (ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "snmdcnptid") != ds_main_peprterminfo_info.getColumn(0, "snmdcnptid"))
  2730. {
  2731. ds_send_reqdata.setColumn( 0, "status", "TM");
  2732. }
  2733. else {
  2734. //2009 02 16 강지훈 수정 : 오류수정
  2735. dsf_makeValue( ds_send_reqdata, "orgreprflag", "string", orgReprFlag); //대표어구분을 교환하기 위해 원래 값을 다시 세팅한다.
  2736. ds_send_reqdata.setColumn( 0, "status", "FM");
  2737. }
  2738. }
  2739. fn_TXMRT00201();
  2740. if(arErrorCode.pop("TXMRT00201") > -1){
  2741. fCntlReset("diag");
  2742. ds_main_sametermlist_appinstcd.clearData();
  2743. ds_main_sametermlist_info.clearData();
  2744. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  2745. }
  2746. } else {
  2747. var rtn = sysf_messageBox("대표어를 동의어나 유사어로 수정 ", "E001");
  2748. return;
  2749. //동의어를 대표어로 바꾸는 것만 허용
  2750. }
  2751. // 대표어구분이 바뀌지 않고 snomed만 바뀐 경우
  2752. } else {
  2753. if (ds_main_diagcdinfo_diagcd.getColumn(rowCnt, "snmdcnptid") != ds_main_peprterminfo_info.getColumn(0, "snmdcnptid"))
  2754. {
  2755. ds_send_reqdata.setColumn( 0, "status", "TM");
  2756. fn_TXMRT00201();
  2757. if(arErrorCode.pop("TXMRT00201") > -1){
  2758. fCntlReset("diag");
  2759. ds_main_sametermlist_appinstcd.clearData();
  2760. ds_main_sametermlist_info.clearData();
  2761. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  2762. }
  2763. }
  2764. else
  2765. {
  2766. var rtn = sysf_messageBox("수정된 사항이 없으므로 수정 ", "E001");
  2767. return;
  2768. }
  2769. }
  2770. }
  2771. }
  2772. } else {
  2773. var rtn = sysf_messageBox("용어를 입력하시려면 입력 버튼을 ", "C002");
  2774. }
  2775. }
  2776. fDisabled("AS");
  2777. switch2.DiagTerm.btn_delete2.enable = true;
  2778. ds_hidden_condition.setColumn( 0, "status", "");
  2779. }
  2780. /*-**************************************************************************************
  2781. * Argument : flag - 상태구분
  2782. * Description : 진단용어 사용종료
  2783. ****************************************************************************************/
  2784. function fEndDiagTerm(){
  2785. var selTermcd = ds_hidden_condition.getColumn(0, "selectedtermcd");
  2786. var insicd10cd = ds_main_peprterminfo_info.getColumn(0, "icd10cd");
  2787. var diagattrcd = ds_main_peprterminfo_info.getColumn(0, "diagattrcd");
  2788. var insTermcd = ds_main_peprterminfo_info.getColumn(0, "termcd");
  2789. var sRow = ds_main_sametermlist_info.rowcount;
  2790. if(utlf_isNull(insTermcd)){
  2791. var rtn = sysf_messageBox("삭제할 진단용어를 ", "C002");
  2792. return;
  2793. }
  2794. //대표어일지라도 동의어_유사어가 없다면 삭제 가능함.
  2795. if(ds_main_peprterminfo_info.getColumn(0, "reprflag") == "R" && sRow >= 1) {
  2796. dsf_createDs("ds_hidden_exists");
  2797. dsf_createDsRow("ds_send_reqdata", [
  2798. {col:"termcd", type:"STRING", size:256, val:insicd10cd + "." + diagattrcd + "." + insTermcd}
  2799. , {col:"attrcd", type:"STRING", size:256, val:insicd10cd + "." + diagattrcd}
  2800. , {col:"termflag", type:"STRING", size:256, val:ds_hidden_condition.getColumn(0, "indxflag")}
  2801. ]);
  2802. var oParam = {};
  2803. oParam.id = "TRMRT00215";
  2804. oParam.service = "termmngtapp.DiagTermMngt";
  2805. oParam.method = "reqGetExistSameTerm";
  2806. oParam.inds = "req=ds_send_reqdata";
  2807. oParam.outds = "ds_hidden_exists=sametermyn";
  2808. oParam.async = false;
  2809. oParam.callback = "cf_TRMRT00215";
  2810. tranf_submit(oParam);
  2811. if(arErrorCode.pop("TRMRT00215") > -1){
  2812. var sametermyn = ds_hidden_exists.getColumn(0, "sametermyn");
  2813. if(sametermyn == "Y"){
  2814. var rtn = sysf_messageBox("대표어는 삭제 ", "E001");
  2815. return;
  2816. }
  2817. } else {
  2818. return;
  2819. }
  2820. }
  2821. var rtn = sysf_messageBox("선택한 진단용어를", "Q001");
  2822. if( rtn == "6") { //진단코드를 삭제하시겠습니까?
  2823. var altmsg = sysf_messageBox("대체코드를", "Q014");
  2824. if(altmsg == "6"){
  2825. switch2.DiagTerm.btn_altterm.enable = true;
  2826. var refds = "ds_main_peprterminfo_info";
  2827. var refcol = "alttermcd";
  2828. var altflag = fCallTermSrch(refds, refcol);
  2829. switch2.DiagTerm.btn_altterm.enable = false;
  2830. if(!altflag){
  2831. return;
  2832. }
  2833. }
  2834. ds_hidden_condition.setColumn( 0, "status", "TD");
  2835. ds_send_reqdata.clearData();
  2836. dsf_makeValue( ds_send_reqdata, "indxcd", "string", ds_hidden_condition.getColumn(0, "selectedIndx"));
  2837. dsf_makeValue( ds_send_reqdata, "icd10cd", "string", insicd10cd);
  2838. dsf_makeValue( ds_send_reqdata, "diagattrcd", "string", insicd10cd + "." + diagattrcd);
  2839. dsf_makeValue( ds_send_reqdata, "termcd", "string", insicd10cd + "." + diagattrcd + "." + insTermcd);
  2840. dsf_makeValue( ds_send_reqdata, "status", "string", ds_hidden_condition.getColumn(0, "status")); //N:등록, M:수정, D:삭제
  2841. dsf_makeValue( ds_send_reqdata, "termflag", "string", "0"); //용어구분
  2842. dsf_makeValue( ds_send_reqdata, "termfromdd", "string", ds_main_peprterminfo_info.getColumn(0, "termfromdd"));
  2843. dsf_makeValue( ds_send_reqdata, "oldtermfromdd", "string", ds_main_peprterminfo_info.getColumn(0, "termfromdd"));
  2844. dsf_makeValue( ds_send_reqdata, "attrfromdd", "string", ds_main_peprterminfo_info.getColumn(0, "attrfromdd"));
  2845. dsf_makeValue( ds_send_reqdata, "oldattrfromdd", "string", ds_main_peprterminfo_info.getColumn(0, "attrfromdd"));
  2846. dsf_makeValue( ds_send_reqdata, "alttermcd", "string", ds_main_peprterminfo_info.getColumn(0, "alttermcd"));
  2847. fn_TXMRT00201();
  2848. } else if( rtn == "7") {
  2849. return;
  2850. }
  2851. }
  2852. function cf_TRMRT00215(sSvcId, nErrorCode, sErrorMsg) {
  2853. arErrorCode.push(sSvcId, nErrorCode);
  2854. }
  2855. /*-**************************************************************************************
  2856. * Argument : N/A
  2857. * Description : 동의어 리스트 조회
  2858. ****************************************************************************************/
  2859. function fGetSynomList(){
  2860. switch2.DiagTerm.grd_termlist.setFormatColProperty( 1, "size", 0);
  2861. switch2.DiagTerm.grd_termlist.setFormatColProperty( 3, "size", 47);
  2862. var iRow = ds_main_diagcdinfo_diagcd.rowposition;
  2863. switch2.DiagTerm.opt_Hdicd10cd.visible = true;
  2864. switch2.DiagTerm.cmb_icd10cd.visible = false;
  2865. switch2.DiagTerm.cap_allinsthist.visible = false;
  2866. switch2.DiagTerm.cmb_allinsthist.visible = false;
  2867. switch2.DiagTerm.btn_delete2.enable = false;
  2868. switch2.DiagTerm.btn_sameterm.enable = true;
  2869. switch2.DiagTerm.btn_modify1.enable = true;
  2870. switch2.DiagTerm.btn_rollback.enable = true;
  2871. switch2.DiagTerm.btn_termsave.enable = true;
  2872. var term = ds_main_diagcdinfo_diagcd.getColumn(iRow, "termcd");
  2873. var diagattrcd = ds_main_peprterminfo_info.getColumn(0, "diagattrcd");
  2874. var termcd = ds_main_peprterminfo_info.getColumn(0, "termcd");
  2875. var maininstyn = ds_hidden_condition.getColumn(0, "maininstyn");
  2876. if(maininstyn == "N" && diagattrcd == "999" && termcd == "99"){
  2877. switch2.DiagTerm.btn_modify1.enable = false;
  2878. }
  2879. else{
  2880. switch2.DiagTerm.btn_modify1.enable = true;
  2881. }
  2882. ds_hidden_condition.setColumn( 0, "sametermmode", "U");
  2883. ds_send.clearData();
  2884. dsf_makeValue( ds_send, "diagattrcd", "string", ds_main_diagcdinfo_diagcd.getColumn(iRow, "diagattrcd"));
  2885. dsf_makeValue( ds_send, "sametermmode", "string", ds_hidden_condition.getColumn(0, "sametermmode"));
  2886. dsf_makeValue( ds_send, "selInstcd", "string", ds_hidden_condition.getColumn(0, "selInstcd"));
  2887. fn_TRMRT00205();
  2888. }
  2889. /*-**************************************************************************************
  2890. * Argument : N/A
  2891. * Description : 용어 이력 리스트 조회
  2892. ****************************************************************************************/
  2893. function fGetDiagTermHistList(){
  2894. switch2.DiagTerm.grd_termlist.setFormatColProperty( 1, "size", 0);
  2895. switch2.DiagTerm.grd_termlist.setFormatColProperty( 3, "size", 0);
  2896. var iRow = ds_main_diagcdinfo_diagcd.rowposition;
  2897. switch2.DiagTerm.opt_Hdicd10cd.visible = true;
  2898. switch2.DiagTerm.cmb_icd10cd.visible = false;
  2899. switch2.DiagTerm.cap_allinsthist.visible = false;
  2900. switch2.DiagTerm.cmb_allinsthist.visible = false;
  2901. switch2.DiagTerm.btn_delete2.enable = false;
  2902. switch2.DiagTerm.btn_sameterm.enable = true;
  2903. //2009-04-28 오후 3:21:38 강지훈 수정 : 중앙이 아닌 기관일경우 확장,용어코드가 000.00인것은 수정불가처리
  2904. var term = ds_main_diagcdinfo_diagcd.getColumn(iRow, "termcd");
  2905. var diagattrcd = ds_main_peprterminfo_info.getColumn(0, "diagattrcd");
  2906. var termcd = ds_main_peprterminfo_info.getColumn(0, "termcd");
  2907. var maininstyn = ds_hidden_condition.getColumn(0, "maininstyn");
  2908. if(maininstyn == "N" && diagattrcd == "999" && termcd == "99"){
  2909. switch2.DiagTerm.btn_modify1.enable = false;
  2910. }
  2911. else{
  2912. switch2.DiagTerm.btn_modify1.enable = true;
  2913. }
  2914. switch2.DiagTerm.btn_rollback.enable = true;
  2915. switch2.DiagTerm.btn_termsave.enable = true;
  2916. ds_hidden_condition.setColumn( 0, "sametermmode", "N");
  2917. ds_send.clearData();
  2918. dsf_makeValue( ds_send, "diagattrcd", "string", ds_main_diagcdinfo_diagcd.getColumn(iRow, "diagattrcd"));
  2919. dsf_makeValue( ds_send, "sametermmode", "string", ds_hidden_condition.getColumn(0, "sametermmode"));
  2920. dsf_makeValue( ds_send, "selInstcd", "string", ds_hidden_condition.getColumn(0, "selInstcd"));
  2921. fn_TRMRT00205();
  2922. }
  2923. /*-**************************************************************************************
  2924. * Argument : N/A
  2925. * Description : 기관별 용어 이력 리스트 조회
  2926. ****************************************************************************************/
  2927. function fGetDiagInstTermHistList(){
  2928. switch2.DiagTerm.grd_termlist.setFormatColProperty( 1, "size", 100);
  2929. switch2.DiagTerm.grd_termlist.setFormatColProperty( 3, "size", 0);
  2930. var iRow = ds_main_diagcdinfo_diagcd.rowposition;
  2931. switch2.DiagTerm.opt_Hdicd10cd.visible = true;
  2932. switch2.DiagTerm.cmb_icd10cd.visible = false;
  2933. switch2.DiagTerm.cap_allinsthist.visible = true;
  2934. switch2.DiagTerm.cmb_allinsthist.visible = true;
  2935. switch2.DiagTerm.btn_delete2.enable = false;
  2936. switch2.DiagTerm.btn_sameterm.enable = false;
  2937. switch2.DiagTerm.btn_modify1.enable = false;
  2938. switch2.DiagTerm.btn_rollback.enable = false;
  2939. switch2.DiagTerm.btn_termsave.enable = false;
  2940. ds_hidden_condition.setColumn( 0, "sametermmode", "H");
  2941. ds_send.clearData();
  2942. dsf_makeValue( ds_send, "diagattrcd", "string", ds_main_diagcdinfo_diagcd.getColumn(iRow, "diagattrcd"));
  2943. dsf_makeValue( ds_send, "sametermmode", "string", ds_hidden_condition.getColumn(0, "sametermmode"));
  2944. dsf_makeValue( ds_send, "allinsthist", "string", ds_hidden_condition.getColumn(0, "allinsthist"));
  2945. fn_TRMRT00205();
  2946. }
  2947. /*-**************************************************************************************
  2948. * Argument : N/A
  2949. * Description : 용어 조회
  2950. ****************************************************************************************/
  2951. function fSrchDiagTerm(){
  2952. if(utlf_isNull(ds_hidden_condition.getColumn(0, "srchnm"))){
  2953. var rtn = sysf_messageBox("검색어를 ", "C001");
  2954. return;
  2955. } else {
  2956. ds_send.clearData();
  2957. dsf_makeValue( ds_send, "srchflag", "string", ds_hidden_condition.getColumn(0, "srchflag"));
  2958. dsf_makeValue( ds_send, "srchnm", "string", ds_hidden_condition.getColumn(0, "srchnm"));
  2959. dsf_makeValue( ds_send, "srchfromdd", "string", ds_hidden_condition.getColumn(0, "srchfromdd"));
  2960. dsf_makeValue( ds_send, "srchtodd", "string", ds_hidden_condition.getColumn(0, "srchtodd"));
  2961. dsf_makeValue( ds_send, "endflag", "string", ds_hidden_condition.getColumn(0, "endflag"));
  2962. dsf_makeValue( ds_send, "maininstyn", "string", ds_hidden_condition.getColumn(0, "maininstyn"));
  2963. dsf_makeValue( ds_send, "selInstcd", "string", ds_hidden_condition.getColumn(0, "selInstcd"));
  2964. var srchnm = ds_hidden_condition.getColumn(0, "srchnm");
  2965. srchnm = srchnm.replace(/^\s*|\s*$/g, '');
  2966. if(ds_send.getColumn(0, "srchflag") == "C" || ds_send.getColumn(0, "srchflag") == "E") {
  2967. srchnm = srchnm.toUpperCase();
  2968. ds_send.setColumn( 0, "srchnm", srchnm);
  2969. }
  2970. if(ds_hidden_condition.getColumn(0, "selctedmode") == "I" ) {
  2971. ds_main_diagcdinfo_icd10cd.clearData();
  2972. var oParam = {};
  2973. oParam.id = "TRMRT00203";
  2974. oParam.service = "termmngtapp.DiagTermMngt";
  2975. oParam.method = "reqGetSrchICD10Cd";
  2976. oParam.inds = "req=ds_send";
  2977. oParam.outds = "ds_main_diagcdinfo_icd10cd=icd10cd ds_main_diagcdinfo_diagcd=diagcd ds_main_diagcdinfo_kcd4m=kcd4m";
  2978. oParam.async = false;
  2979. //oParam.callback = "cf_TRMRT00203";
  2980. tranf_submit(oParam);
  2981. } else if (ds_hidden_condition.getColumn(0, "selctedmode") == "D" ) {
  2982. ds_main_diagcdinfo_diagcd.clearData();
  2983. var oParam = {};
  2984. oParam.id = "TRMRT00204";
  2985. oParam.service = "termmngtapp.DiagTermMngt";
  2986. oParam.method = "reqGetSrchDiagCd";
  2987. oParam.inds = "req=ds_send";
  2988. oParam.outds = "ds_main_diagcdinfo_icd10cd=icd10cd ds_main_diagcdinfo_diagcd=diagcd ds_main_diagcdinfo_kcd4m=kcd4m";
  2989. oParam.async = false;
  2990. //oParam.callback = "cf_TRMRT00204";
  2991. tranf_submit(oParam);
  2992. } else if (ds_hidden_condition.getColumn(0, "selctedmode") == "K" ) {
  2993. ds_main_diagcdinfo_kcd4m.clearData();
  2994. var oParam = {};
  2995. oParam.id = "TRMRT00209";
  2996. oParam.service = "termmngtapp.DiagTermMngt";
  2997. oParam.method = "reqGetSrchKCD4MCd";
  2998. oParam.inds = "req=ds_send";
  2999. oParam.outds = "ds_main_diagcdinfo_icd10cd=icd10cd ds_main_diagcdinfo_diagcd=diagcd ds_main_diagcdinfo_kcd4m=kcd4m";
  3000. oParam.async = false;
  3001. //oParam.callback = "cf_TRMRT00209";
  3002. tranf_submit(oParam);
  3003. } else if(ds_hidden_condition.getColumn(0, "selctedmode") == "P" ) {
  3004. if(utlf_isNull(ds_hidden_condition_deptset.getColumn(0, "selecteddeptcd"))){
  3005. sysf_messageBox("과를", "C002");
  3006. return;
  3007. }
  3008. ds_send.clearData();
  3009. ds_main_deptdiagcdlist_deptdiagcdinfo.clearData();
  3010. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  3011. dsf_makeValue( ds_send, "indxcd", "string", "null");
  3012. dsf_makeValue( ds_send, "deptcd", "string", ds_hidden_condition_deptset.getColumn(0, "selecteddeptcd"));
  3013. dsf_makeValue( ds_send, "srchflag", "string", ds_hidden_condition.getColumn(0, "srchflag"));
  3014. dsf_makeValue( ds_send, "srchnm", "string", ds_hidden_condition.getColumn(0, "srchnm"));
  3015. dsf_makeValue( ds_send, "pagesize", "string", pagesize);
  3016. dsf_makeValue( ds_send, "offset", "string", "0");
  3017. ds_main_deptdiagcdlist_deptdiagcdinfo.clearData();
  3018. pinfo = 1;
  3019. fn_TRMRT00212();
  3020. }
  3021. }
  3022. }
  3023. /*-**************************************************************************************
  3024. * Argument : N/A
  3025. * Description : KCD4M 용어 사용종료
  3026. ****************************************************************************************/
  3027. function fEndKCD4M(){
  3028. ds_hidden_condition.setColumn( 0, "status", "MD");
  3029. ds_send.clearData();
  3030. ds_main_diagcdinfo_diagcd.clearData();
  3031. ds_main_diagcdinfo_icd10cd.clearData();
  3032. ds_main_diagcdinfo_kcd4m.clearData();
  3033. dsf_makeValue( ds_send, "morphlgccd", "string", ds_main_kcd4minfo_info.getColumn(0, "morphlgccd"));
  3034. dsf_makeValue( ds_send, "kcd4mseqno", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mseqno"));
  3035. dsf_makeValue( ds_send, "indxcd", "string", ds_main_kcd4minfo_info.getColumn(0, "indxcd"));
  3036. dsf_makeValue( ds_send, "kcd4mengnm", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mengnm"));
  3037. dsf_makeValue( ds_send, "kcd4mhngnm", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mhngnm"));
  3038. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mfromdate", ds_init.getColumn(0, "today"));
  3039. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mfromtime", ds_init.getColumn(0, "curruntTime"));
  3040. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mtodate", utlf_getCurrentDate());
  3041. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mtotime", "2359");
  3042. //Edited by 나종천 2008-06-23 사용종료의 시작일자 수정
  3043. dsf_makeValue( ds_send, "oldkcd4mfromdd", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mfromdd"));
  3044. dsf_makeValue( ds_send, "kcd4mfromdd", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mfromdate"));
  3045. dsf_makeValue( ds_send, "kcd4mtodd", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mtodate"));
  3046. dsf_makeValue( ds_send, "status", "string", ds_hidden_condition.getColumn(0, "status"));
  3047. fn_TXMRT00202();
  3048. fCntlReset("kcd4m");
  3049. }
  3050. /*-**************************************************************************************
  3051. * Argument : N/A
  3052. * Description : KCD4M 용어 저장
  3053. ****************************************************************************************/
  3054. function fSaveKCD4M(){
  3055. var selectedIndx = ds_hidden_condition.getColumn(0, "indxflag");
  3056. if(utlf_isNull(selectedIndx)){
  3057. var rtn = sysf_messageBox("색인 코드를 ", "C002");
  3058. return;
  3059. }
  3060. var rowcnt = ds_hidden_condition.getColumn(0, "rowcnt");
  3061. if(ds_hidden_condition.getColumn(0, "status") == "MN"){
  3062. ds_send.clearData();
  3063. ds_main_diagcdinfo_diagcd.clearData();
  3064. ds_main_diagcdinfo_icd10cd.clearData();
  3065. ds_main_diagcdinfo_kcd4m.clearData();
  3066. dsf_makeValue( ds_send, "morphlgccd", "string", ds_main_kcd4minfo_info.getColumn(0, "morphlgccd"));
  3067. dsf_makeValue( ds_send, "indxcd", "string", ds_main_kcd4minfo_info.getColumn(0, "indxcd"));
  3068. dsf_makeValue( ds_send, "kcd4mengnm", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mengnm"));
  3069. dsf_makeValue( ds_send, "kcd4mhngnm", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mhngnm"));
  3070. dsf_makeValue( ds_send, "kcd4mseqno", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mseqno"));
  3071. dsf_makeValue( ds_send, "snmdcnptid", "string", ds_main_kcd4minfo_info.getColumn(0, "snmdcnptid"));
  3072. dsf_makeValue( ds_send, "kcd4mfromdd", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mfromdd"));
  3073. dsf_makeValue( ds_send, "kcd4mtodd", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mtodd"));
  3074. dsf_makeValue( ds_send, "oldkcd4mfromdd", "string", ds_main_kcd4minfo_info.getColumn(0, "oldkcd4mfromdd"));
  3075. dsf_makeValue( ds_send, "snmdcnptid", "string", ds_main_kcd4minfo_info.getColumn(0, "snmdcnptid"));
  3076. dsf_makeValue( ds_send, "version", "string", ds_main_kcd4minfo_info.getColumn(0, "version"));
  3077. dsf_makeValue( ds_send, "status", "string", ds_hidden_condition.getColumn(0, "status"));
  3078. fn_TXMRT00202();
  3079. if(arErrorCode.pop("TXMRT00202") > -1){
  3080. ds_main_kcd4minfo_info.clearData(); ds_main_kcd4minfo_info.addRow();
  3081. fCntlReset("kcd4m");
  3082. }
  3083. return;
  3084. }
  3085. if(ds_main_kcd4minfo_info.getColumn(0, "morphlgccd") == ds_main_diagcdinfo_kcd4m.getColumn(rowcnt, "morphlgccd") &&
  3086. ds_main_kcd4minfo_info.getColumn(0, "kcd4mengnm") == ds_main_diagcdinfo_kcd4m.getColumn(rowcnt, "kcd4mengnm") &&
  3087. ds_main_kcd4minfo_info.getColumn(0, "kcd4mhngnm") == ds_main_diagcdinfo_kcd4m.getColumn(rowcnt, "kcd4mhngnm") &&
  3088. ds_main_kcd4minfo_info.getColumn(0, "snmdcnptid") == ds_main_diagcdinfo_kcd4m.getColumn(rowcnt, "snmdcnptid") &&
  3089. ds_main_kcd4minfo_info.getColumn(0, "indxcd") == ds_main_diagcdinfo_kcd4m.getColumn(rowcnt, "indxcd") &&
  3090. ds_main_kcd4minfo_info.getColumn(0, "version") == ds_main_diagcdinfo_kcd4m.getColumn(rowcnt, "version")){
  3091. var rtn = sysf_messageBox("수정되지 ", "E007");
  3092. return;
  3093. } else{
  3094. ds_send.clearData();
  3095. ds_main_diagcdinfo.clearData();
  3096. dsf_makeValue( ds_send, "morphlgccd", "string", ds_main_kcd4minfo_info.getColumn(0, "morphlgccd"));
  3097. dsf_makeValue( ds_send, "indxcd", "string", ds_main_kcd4minfo_info.getColumn(0, "indxcd"));
  3098. dsf_makeValue( ds_send, "kcd4mengnm", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mengnm"));
  3099. dsf_makeValue( ds_send, "kcd4mhngnm", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mhngnm"));
  3100. dsf_makeValue( ds_send, "kcd4mseqno", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mseqno"));
  3101. dsf_makeValue( ds_send, "snmdcnptid", "string", ds_main_kcd4minfo_info.getColumn(0, "snmdcnptid"));
  3102. dsf_makeValue( ds_send, "kcd4mfromdd", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mfromdd"));
  3103. dsf_makeValue( ds_send, "kcd4mtodd", "string", ds_main_kcd4minfo_info.getColumn(0, "kcd4mtodd"));
  3104. dsf_makeValue( ds_send, "oldkcd4mfromdd", "string", ds_main_kcd4minfo_info.getColumn(0, "oldkcd4mfromdd"));
  3105. dsf_makeValue( ds_send, "version", "string", ds_main_kcd4minfo_info.getColumn(0, "version"));
  3106. dsf_makeValue( ds_send, "status", "string", ds_hidden_condition.getColumn(0, "status"));
  3107. fn_TXMRT00202();
  3108. if(arErrorCode.pop("TXMRT00202") > -1) {
  3109. ds_main_kcd4minfo_info.clearData(); ds_main_kcd4minfo_info.addRow();
  3110. fCntlReset("kcd4m");
  3111. }
  3112. }
  3113. }
  3114. /*-**************************************************************************************
  3115. * Argument : N/A
  3116. * Description : KCD4M 용어 수정
  3117. ****************************************************************************************/
  3118. function fSetKCD4MUpdt(){
  3119. var fromdd = ((utlf_getCurrentDate()).toDate()).getAddDate(1);
  3120. var iRow = ds_main_diagcdinfo_kcd4m.rowposition;
  3121. ds_hidden_condition.setColumn( 0, "status", "MM");
  3122. fCtrlSet("M");
  3123. ds_main_kcd4minfo_info.setColumn( 0, "indxcd", ds_main_diagcdinfo_kcd4m.getColumn(iRow, "indxcd"));
  3124. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mfromdate", fromdd.getDateFormat());
  3125. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mfromtime", ds_init.getColumn(0, "curruntTime"));
  3126. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mtodate", "99991231");
  3127. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mtotime", "2359");
  3128. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mfromdd", ds_main_kcd4minfo_info.getColumn(0, "kcd4mfromdate"));
  3129. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mtodd", ds_main_kcd4minfo_info.getColumn(0, "kcd4mtodate"));
  3130. ds_main_kcd4minfo_info.setColumn( 0, "fstrgstdt", dsf_getColumnNullToEmpty(ds_main_kcd4minfo_info, 0, "kcd4mfromdate")+dsf_getColumnNullToEmpty(ds_main_kcd4minfo_info, 0, "kcd4mfromtime")+"00");
  3131. ds_main_kcd4minfo_info.setColumn( 0, "fstrgstrid", sysf_getUserName());
  3132. }
  3133. /*-**************************************************************************************
  3134. * Argument : N/A
  3135. * Description : KCD4M 용어 신규 등록
  3136. ****************************************************************************************/
  3137. function fSetNewKCD4M(){
  3138. var sIndx = ds_hidden_condition.getColumn(0, "selectedIndx");
  3139. var fromdd = ((utlf_getCurrentDate()).toDate()).getAddDate(1);
  3140. if(trv_dgindx.currentrow < 0){
  3141. var rtn = sysf_messageBox("색인을 ", "C002");
  3142. return;
  3143. }
  3144. ds_hidden_condition.setColumn( 0, "status", "MN");
  3145. fCntlReset("kcd4m");
  3146. fCtrlSet("N");
  3147. ds_main_kcd4minfo_info.setColumn( 0, "indxcd", ds_hidden_condition.getColumn(0, "selectedIndx"));
  3148. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdate", ds_init.getColumn(0, "today"));
  3149. ds_main_peprterminfo_info.setColumn( 0, "fstrgsttime", ds_init.getColumn(0, "curruntTime"));
  3150. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mfromdate", fromdd.getDateFormat());
  3151. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mfromtime", ds_init.getColumn(0, "curruntTime"));
  3152. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mtodate", "99991231");
  3153. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mtotime", "2359");
  3154. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mfromdd", ds_main_kcd4minfo_info.getColumn(0, "kcd4mfromdate"));
  3155. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mtodd", ds_main_kcd4minfo_info.getColumn(0, "kcd4mtodate"));
  3156. ds_main_kcd4minfo_info.setColumn( 0, "fstrgstdate", ds_main_kcd4minfo_info.getColumn(0, "kcd4mfromdate"));
  3157. ds_main_kcd4minfo_info.setColumn( 0, "fstrgsttime", ds_main_kcd4minfo_info.getColumn(0, "kcd4mfromtime"));
  3158. ds_main_kcd4minfo_info.setColumn( 0, "fstrgstdt", dsf_getColumnNullToEmpty(ds_main_kcd4minfo_info, 0, "kcd4mfromdate")+dsf_getColumnNullToEmpty(ds_main_kcd4minfo_info, 0, "kcd4mfromtime")+"00");
  3159. ds_main_kcd4minfo_info.setColumn( 0, "fstrgstrid", sysf_getUserId());
  3160. }
  3161. /*-**************************************************************************************
  3162. * Argument : N/A
  3163. * Description : KCD4M 용어 이력 선택
  3164. ****************************************************************************************/
  3165. function fGetKCD4MHistList(){
  3166. var iRow = ds_main_kcd4mhist_list.rowposition;
  3167. ds_hidden_condition.setColumn( 0, "rowcnt", iRow);
  3168. var kcd4mfromdd = ds_main_kcd4mhist_list.getColumn(iRow, "kcd4mfromdd");
  3169. var kcd4mtodd = ds_main_kcd4mhist_list.getColumn(iRow, "kcd4mtodd");
  3170. var lastupdtdt = ds_main_kcd4mhist_list.getColumn(iRow, "lastupdtdt");
  3171. fCtrlSet();
  3172. ds_main_kcd4minfo_info.setColumn( 0, "morphlgccd", ds_main_kcd4mhist_list.getColumn(iRow, "morphlgccd")); // 스노메드-dscrpt
  3173. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mengnm", ds_main_kcd4mhist_list.getColumn(iRow, "kcd4mengnm")); // 스노메드-cncpt
  3174. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mhngnm", ds_main_kcd4mhist_list.getColumn(iRow, "kcd4mhngnm")); // 영문
  3175. ds_main_kcd4minfo_info.setColumn( 0, "indxcd", ds_main_kcd4mhist_list.getColumn(iRow, "indxcd")); // 한글
  3176. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mfromdd", kcd4mfromdd);
  3177. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mfromdate", kcd4mfromdd.substr(0,8));
  3178. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mfromtime", kcd4mfromdd.substr(8,4));
  3179. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mtodd", kcd4mtodd);
  3180. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mtodate", kcd4mtodd.substr(0,8));
  3181. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mtotime", kcd4mtodd.substr(8,4));
  3182. ds_main_kcd4minfo_info.setColumn( 0, "fstrgstdate", lastupdtdt.substr(0,8));
  3183. ds_main_kcd4minfo_info.setColumn( 0, "fstrgsttime", lastupdtdt.substr(8,4));
  3184. ds_main_kcd4minfo_info.setColumn( 0, "fstrgstrid", ds_main_kcd4mhist_list.getColumn(iRow, "lastupdtrnm"));
  3185. }
  3186. /*-**************************************************************************************
  3187. * Argument : N/A
  3188. * Description : Tree 선택
  3189. ****************************************************************************************/
  3190. function fSelTreeIndx(){
  3191. var sSelectedMode = ds_hidden_condition.getColumn(0, "selctedmode");
  3192. var iIndx = trv_dgindx.currentrow;
  3193. iIndx = ds_main_indxlist_item.rowposition;
  3194. //trace("iIndx :"+iIndx+'/'+ds_main_indxlist_item.rowposition);
  3195. var selIndxCd = ds_main_indxlist_item.getColumn(iIndx, "indxcd");
  3196. ds_send.clearData();
  3197. dsf_makeValue( ds_send, "indxcd", "string", selIndxCd);
  3198. dsf_makeValue( ds_send, "indxuseflag", "string", ds_hidden_condition.getColumn(0, "indxuseflag"));
  3199. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  3200. dsf_makeValue( ds_send, "maininstyn", "string", ds_hidden_condition.getColumn(0, "maininstyn"));
  3201. dsf_makeValue( ds_send, "selInstcd", "string", ds_hidden_condition.getColumn(0, "selInstcd"));
  3202. switch(sSelectedMode){
  3203. case 'P' : // 과진단 코드
  3204. dsf_makeValue( ds_send, "deptcd", "string", ds_hidden_condition_deptset.getColumn(0, "selecteddeptcd"));
  3205. dsf_makeValue( ds_send, "pagesize", "string", pagesize);
  3206. dsf_makeValue( ds_send, "offset", "string", "0");
  3207. ds_main_deptdiagcdlist_deptdiagcdinfo.clearData();
  3208. pinfo = 1;
  3209. fn_TRMRT00212();
  3210. break;
  3211. default :
  3212. ds_hidden_condition.setColumn( 0, "selectedIndx", ds_main_indxlist_item.getColumn(iIndx, "indxcd"));
  3213. ds_hidden_condition.setColumn( 0, "selectedIndxDepth", ds_main_indxlist_item.getColumn(iIndx, "depth"));
  3214. ds_hidden_condition.setColumn( 0, "selectedIndxPath", ds_main_indxlist_item.getColumn(iIndx, "pathcd")); //경로
  3215. //인덱스 트리를 가지고 온다
  3216. var oParam = {};
  3217. oParam.id = "TRMRT00202";
  3218. oParam.service = "termmngtapp.DiagTermMngt";
  3219. oParam.method = "reqGetDiagCdInfo";
  3220. oParam.inds = "req=ds_send";
  3221. oParam.outds = "ds_main_diagcdinfo_icd10cd=icd10cd ds_main_diagcdinfo_diagcd=diagcd ds_main_diagcdinfo_kcd4m=kcd4m";
  3222. oParam.async = false;
  3223. //oParam.callback = "cf_TRMRT00202";
  3224. tranf_submit(oParam);
  3225. if(sSelectedMode == "K"){
  3226. fCtrlSet();
  3227. } else if(sSelectedMode == "D"){
  3228. fDisabled("AS");
  3229. }
  3230. }
  3231. }
  3232. /*-**************************************************************************************
  3233. * Argument : N/A
  3234. * Description : 색인추가
  3235. ****************************************************************************************/
  3236. function fAddIndx(){
  3237. var selectedmode = ds_hidden_condition.getColumn(0, "selctedmode");
  3238. if(selectedmode != "P"){
  3239. ds_send.clearData();
  3240. dsf_makeValue( ds_send, "paramindx", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  3241. var objArg = new Object();
  3242. objArg.arg_ds_hidden_condition_getdata = ds_send;
  3243. frmf_modal("SMMRT00100", "SMMRT00100", objArg, "", 1, 10, 10, "", "", "", "", "", "M");
  3244. var child = "SPMRT01200";
  3245. if(!utlf_isNull(child)){
  3246. var getVal = frmf_getParameter("setVal");
  3247. // 색인추가후 재조회가 안됨... Edited by 나종천 20080928
  3248. if(getVal == "0" || getVal == "4") {
  3249. ds_send.clearData();
  3250. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  3251. dsf_makeValue( ds_send, "mode", "string", ds_hidden_condition.getColumn(0, "indxviewmode"));
  3252. fn_TRMRT00201();
  3253. }
  3254. }
  3255. }else {
  3256. ds_send.clearData();
  3257. dsf_makeValue( ds_send, "indxflag", "string", "0");
  3258. dsf_makeValue( ds_send, "deptcd", "string", ds_hidden_condition_deptset.getColumn(0, "selecteddeptcd"));
  3259. dsf_makeValue( ds_send, "deptnm", "string", ds_hidden_condition_deptset.getColumn(0, "selecteddeptnm"));
  3260. var objArg = new Object();
  3261. objArg.arg_ds_hidden_condition_getdata = ds_send;
  3262. frmf_modal("SMMRT01300", "SMMRT01300", objArg, "", 1, 10, 10, "", "", "", "", "", "M");
  3263. if(frmf_getParameter("saveyn") == "Y" && !utlf_isNull(ds_hidden_condition_deptset.getColumn(0, "selecteddeptcd"))) {
  3264. ds_send.clearData();
  3265. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  3266. dsf_makeValue( ds_send, "deptcd", "string", ds_hidden_condition_deptset.getColumn(0, "selecteddeptcd"));
  3267. fn_TRMRT00210();
  3268. if(arErrorCode.pop("TRMRT00210") > -1) {
  3269. ds_main_deptdiagcdlist_deptdiagcdinfo.clearData();
  3270. ds_hidden_condition.setColumn( 0, "selectedIndx","");
  3271. }
  3272. }
  3273. }
  3274. }
  3275. /*-**************************************************************************************
  3276. * Argument : N/A
  3277. * Description : 색인 언어 변경
  3278. ****************************************************************************************/
  3279. function fChngLangIndx(){
  3280. var selectedmode = ds_hidden_condition.getColumn(0, "selctedmode");
  3281. if(selectedmode != "P"){
  3282. ds_send.clearData();
  3283. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  3284. dsf_makeValue( ds_send, "mode", "string", ds_hidden_condition.getColumn(0, "indxviewmode"));
  3285. dsf_makeValue( ds_send, "indxuseflag", "string", ds_hidden_condition.getColumn(0, "indxuseflag"));
  3286. fn_TRMRT00201();
  3287. }
  3288. }
  3289. /*-**************************************************************************************
  3290. * Argument : N/A
  3291. * Description : 색인 코드 조회
  3292. ****************************************************************************************/
  3293. function fSrchIndxCd(){
  3294. if(utlf_isNull(ds_hidden_condition.getColumn(0, "srchindxcd"))) {
  3295. var rtn = sysf_messageBox("검색할 색인코드를 ", "C001");
  3296. return;
  3297. } else {
  3298. ds_hidden_condition.setColumn( 0, "selectedIndx", ds_hidden_condition.getColumn(0, "srchindxcd"));
  3299. grdf_expandDepth(trv_dgindx, 2, "indxhngnm");
  3300. }
  3301. trv_dgindx.vscrollbar.pos = ds_main_indxlist_item.findRow("indxcd", ds_hidden_condition.getColumn(0, "srchindxcd"));
  3302. }
  3303. /*-**************************************************************************************
  3304. * Argument : N/A
  3305. * Description : 과진단 선택
  3306. ****************************************************************************************/
  3307. function fSelDeptDiag(){
  3308. btn_addrow.visible = false;
  3309. btn_delrow.visible = false;
  3310. btn_saverow.visible = false;
  3311. btn_modify.visible = false;
  3312. cap_selInst.visible = false;
  3313. cmb_selInst.visible = false;
  3314. switch2.DiagTerm.cap_allinsthist.visible = false;
  3315. switch2.DiagTerm.cmb_allinsthist.visible = false;
  3316. pinfo = 1;
  3317. ds_hidden_condition_deptset.setColumn( 0, "srchflag","H");
  3318. ds_hidden_condition_deptset.setColumn( 0, "srchnm","");
  3319. ds_hidden_condition_deptset.setColumn( 0, "selecteddeptcd","");
  3320. ds_hidden_condition_deptset.setColumn( 0, "selecteddeptnm","");
  3321. ds_hidden_condition.setColumn( 0, "selctedmode", "P");
  3322. ds_hidden_condition.setColumn( 0, "indxflag", "0"); // 진단 : 0, 수술 : 9
  3323. ds_main_indxlist_item.clearData();
  3324. ds_main_srcheddiagcdlist_srcheddiagcdinfo.clearData();
  3325. ds_main_deptdiagcdlist_deptdiagcdinfo.clearData();
  3326. }
  3327. /*-**************************************************************************************
  3328. * Argument : N/A
  3329. * Description : 진단 용어 선택
  3330. ****************************************************************************************/
  3331. function fSelDiagTerm(){
  3332. var iRow = ds_main_diagcdinfo_diagcd.rowposition;
  3333. if(iRow > -1) {
  3334. switch2.DiagTerm.opt_Hdicd10cd.visible = true;
  3335. switch2.DiagTerm.cmb_icd10cd.visible = false;
  3336. var sameTermMode = ds_hidden_condition.getColumn(0, "sametermmode");
  3337. //2009-03-20 오전 9:12:31 강지훈 수정 : 기관별 사용 이력조회에서는 신규입력외의 Operation 금지
  3338. if(sameTermMode != "H"){
  3339. switch2.DiagTerm.btn_delete2.enable = true;
  3340. }
  3341. fDisabled("AS");
  3342. if( !utlf_isNull(iRow) ) {
  3343. ds_hidden_condition.setColumn( 0, "status", "");
  3344. var diagAttr = ds_main_diagcdinfo_diagcd.getColumn(iRow, "diagattrcd");
  3345. var term = ds_main_diagcdinfo_diagcd.getColumn(iRow, "termcd");
  3346. var icd10cd = term.split(".")[0];
  3347. var diagattrcd = term.split(".")[1];
  3348. var termcd = term.split(".")[2];
  3349. ds_hidden_condition.setColumn( 0, "selectedtermcd" , term);
  3350. ds_main_peprterminfo_info.setColumn( 0, "icd10cd" , icd10cd); //ICD10
  3351. ds_main_peprterminfo_info.setColumn( 0, "diagattrcd" , diagattrcd); // 확장코드
  3352. ds_main_peprterminfo_info.setColumn( 0, "termcd" , termcd); // 대표어(동의어)코드
  3353. ds_main_peprterminfo_info.setColumn( 0, "snmdcnptid", ds_main_diagcdinfo_diagcd.getColumn(iRow, "snmdcnptid")); // 스노메드-cnpt id
  3354. ds_main_peprterminfo_info.setColumn( 0, "snmdcnptnm", ds_main_diagcdinfo_diagcd.getColumn(iRow, "snmdcnptnm")); // 스노메드-cncpt 명
  3355. ds_main_peprterminfo_info.setColumn( 0, "snmddescid", ds_main_diagcdinfo_diagcd.getColumn(iRow, "snmddescid")); // 스노메드-dscrpt
  3356. ds_main_peprterminfo_info.setColumn( 0, "umlscd", ds_main_diagcdinfo_diagcd.getColumn(iRow, "umlscd")); // UMLS코드
  3357. ds_main_peprterminfo_info.setColumn( 0, "termengnm", ds_main_diagcdinfo_diagcd.getColumn(iRow, "termengnm")); // 영문
  3358. ds_main_peprterminfo_info.setColumn( 0, "termhngnm", ds_main_diagcdinfo_diagcd.getColumn(iRow, "termhngnm")); // 한글
  3359. ds_main_peprterminfo_info.setColumn( 0, "reprflag", ds_main_diagcdinfo_diagcd.getColumn(iRow, "reprflag")); // 대표어구분
  3360. ds_main_peprterminfo_info.setColumn( 0, "termflag", ds_main_diagcdinfo_diagcd.getColumn(iRow, "termflag")); // 용어구분
  3361. ds_main_peprterminfo_info.setColumn( 0, "lglydisflag", ds_main_diagcdinfo_diagcd.getColumn(iRow, "lglydisflag")); // 법정전염병
  3362. ds_main_peprterminfo_info.setColumn( 0, "chrncsickyn", ds_main_diagcdinfo_diagcd.getColumn(iRow, "chrncsickyn")); // 만성질환
  3363. ds_main_peprterminfo_info.setColumn( 0, "estmexptyn", ds_main_diagcdinfo_diagcd.getColumn(iRow, "estmexptyn")); // 산정특례
  3364. ds_main_peprterminfo_info.setColumn( 0, "serdiagclsyn", ds_main_diagcdinfo_diagcd.getColumn(iRow, "serdiagclsyn")); // 중증도분류
  3365. ds_main_peprterminfo_info.setColumn( 0, "ageflag", ds_main_diagcdinfo_diagcd.getColumn(iRow, "ageflag")); // 연령별 구분
  3366. ds_main_peprterminfo_info.setColumn( 0, "manwomflag", ds_main_diagcdinfo_diagcd.getColumn(iRow, "manwomflag")); // 남여구분
  3367. ds_main_peprterminfo_info.setColumn( 0, "cncryn", ds_main_diagcdinfo_diagcd.getColumn(iRow, "cncryn")); // 남여구분
  3368. ds_main_peprterminfo_info.setColumn( 0, "diagattrdrindxcd", ds_main_diagcdinfo_diagcd.getColumn(iRow, "diagattrdrindxcd")); // 의사색인
  3369. ds_main_peprterminfo_info.setColumn( 0, "diagattrmedireccd", ds_main_diagcdinfo_diagcd.getColumn(iRow, "diagattrmedireccd")); // 의무기록색인
  3370. ds_main_peprterminfo_info.setColumn( 0, "diagattrverflag", ds_main_diagcdinfo_diagcd.getColumn(iRow, "diagattrverflag")); // 버전
  3371. ds_main_peprterminfo_info.setColumn( 0, "fstrgstrid", ds_main_diagcdinfo_diagcd.getColumn(iRow, "lastupdtrnm")); // 최종등록자
  3372. ds_main_peprterminfo_info.setColumn( 0, "attrfromdd", ds_main_diagcdinfo_diagcd.getColumn(iRow, "attrfromdd"));
  3373. ds_main_peprterminfo_info.setColumn( 0, "attrtodd", ds_main_diagcdinfo_diagcd.getColumn(iRow, "attrtodd"));
  3374. ds_main_peprterminfo_info.setColumn( 0, "icdfromdd", ds_main_diagcdinfo_diagcd.getColumn(iRow, "icdfromdd"));
  3375. ds_main_peprterminfo_info.setColumn( 0, "alttermcd", ds_main_diagcdinfo_diagcd.getColumn(iRow, "alttermcd"));
  3376. ds_main_peprterminfo_info.setColumn( 0, "essntermflag", ds_main_diagcdinfo_diagcd.getColumn(iRow, "essntermflag"));
  3377. var fstrgstdt = ds_main_diagcdinfo_diagcd.getColumn(iRow, "fstrgstdt");
  3378. var termfromdd = ds_main_diagcdinfo_diagcd.getColumn(iRow, "termfromdd");
  3379. var termtodd = ds_main_diagcdinfo_diagcd.getColumn(iRow, "termtodd");
  3380. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdt", fstrgstdt); // 등록일
  3381. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdate", fstrgstdt.substr(0,8));
  3382. ds_main_peprterminfo_info.setColumn( 0, "fstrgsttime", fstrgstdt.substr(8,4));
  3383. ds_main_peprterminfo_info.setColumn( 0, "termfromdd",termfromdd);
  3384. ds_main_peprterminfo_info.setColumn( 0, "termtodd", termtodd);
  3385. //2009-04-28 오후 3:21:38 강지훈 수정 : 중앙이 아닌 기관일경우 확장,용어코드가 000.00인것은 수정불가처리, 기관별사용이력조회일때도 불가
  3386. var maininstyn = ds_hidden_condition.getColumn(0, "maininstyn");
  3387. if(sameTermMode != "H") {
  3388. if(maininstyn == "N" && diagattrcd == "999" && termcd == "99") {
  3389. switch2.DiagTerm.btn_modify1.enable = false;
  3390. } else {
  3391. switch2.DiagTerm.btn_modify1.enable = true;
  3392. }
  3393. } else {
  3394. switch2.DiagTerm.btn_modify1.enable = false;
  3395. }
  3396. ds_send.clearData();
  3397. dsf_makeValue( ds_send, "diagattrcd", "string", ds_main_diagcdinfo_diagcd.getColumn(iRow, "diagattrcd"));
  3398. dsf_makeValue( ds_send, "sametermmode", "string", ds_hidden_condition.getColumn(0, "sametermmode"));
  3399. dsf_makeValue( ds_send, "allinsthist", "string", ds_hidden_condition.getColumn(0, "allinsthist"));
  3400. dsf_makeValue( ds_send, "termcd", "string", term);
  3401. dsf_makeValue( ds_send, "termflag", "string", ds_main_diagcdinfo_diagcd.getColumn(iRow, "termflag"));
  3402. dsf_makeValue( ds_send, "maininstyn", "string", ds_hidden_condition.getColumn(0, "maininstyn"));
  3403. dsf_makeValue( ds_send, "selInstcd", "string", ds_hidden_condition.getColumn(0, "selInstcd"));
  3404. fn_TRMRT00205();
  3405. ds_main_peprterminfo_info.setColumn( 0, "appinstcd", ds_main_sametermlist_appinstcd.getColumn(0, "appinstcd"));
  3406. }
  3407. }
  3408. }
  3409. /*-**************************************************************************************
  3410. * Argument : N/A
  3411. * Description : KCD4M 용어 선택
  3412. ****************************************************************************************/
  3413. function fSelKCD4M(){
  3414. var iRow = ds_main_diagcdinfo_kcd4m.rowposition;
  3415. ds_hidden_condition.setColumn( 0, "rowcnt", iRow );
  3416. var kcd4mfromdd = utlf_transNullToEmpty(ds_main_diagcdinfo_kcd4m.getColumn(iRow, "kcd4mfromdd"));
  3417. var kcd4mtodd = utlf_transNullToEmpty(ds_main_diagcdinfo_kcd4m.getColumn(iRow, "kcd4mtodd"));
  3418. var lastupdtdt = utlf_transNullToEmpty(ds_main_diagcdinfo_kcd4m.getColumn(iRow, "lastupdtdt"));
  3419. fCtrlSet();
  3420. ds_main_kcd4minfo_info.setColumn( 0, "morphlgccd", ds_main_diagcdinfo_kcd4m.getColumn(iRow, "morphlgccd"));
  3421. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mengnm", ds_main_diagcdinfo_kcd4m.getColumn(iRow, "kcd4mengnm"));
  3422. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mhngnm", ds_main_diagcdinfo_kcd4m.getColumn(iRow, "kcd4mhngnm"));
  3423. ds_main_kcd4minfo_info.setColumn( 0, "indxcd", ds_main_diagcdinfo_kcd4m.getColumn(iRow, "indxcd"));
  3424. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mseqno", ds_main_diagcdinfo_kcd4m.getColumn(iRow, "kcd4mseqno"));
  3425. ds_main_kcd4minfo_info.setColumn( 0, "snmdcnptid", ds_main_diagcdinfo_kcd4m.getColumn(iRow, "snmdcnptid"));
  3426. ds_main_kcd4minfo_info.setColumn( 0, "snmdcnptnm", ds_main_diagcdinfo_kcd4m.getColumn(iRow, "snmdcnptnm"));
  3427. ds_main_kcd4minfo_info.setColumn( 0, "version", ds_main_diagcdinfo_kcd4m.getColumn(iRow, "version"));
  3428. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mfromdd", kcd4mfromdd);
  3429. ds_main_kcd4minfo_info.setColumn( 0, "oldkcd4mfromdd", kcd4mfromdd);
  3430. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mfromdate", kcd4mfromdd.substr(0,8));
  3431. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mfromtime", kcd4mfromdd.substr(8,4));
  3432. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mtodd", kcd4mtodd);
  3433. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mtodate", kcd4mtodd.substr(0,8));
  3434. ds_main_kcd4minfo_info.setColumn( 0, "kcd4mtotime", kcd4mtodd.substr(8,4));
  3435. ds_main_kcd4minfo_info.setColumn( 0, "fstrgstdate", lastupdtdt.substr(0,8));
  3436. ds_main_kcd4minfo_info.setColumn( 0, "fstrgsttime", lastupdtdt.substr(8,4));
  3437. ds_main_kcd4minfo_info.setColumn( 0, "fstrgstrid", ds_main_diagcdinfo_kcd4m.getColumn(iRow, "lastupdtrnm"));
  3438. ds_hidden_condition.setColumn( 0, "sametermmode", "N");
  3439. ds_send.clearData();
  3440. dsf_makeValue( ds_send, "morphlgccd", "string", ds_main_diagcdinfo_kcd4m.getColumn(iRow, "morphlgccd"));
  3441. dsf_makeValue( ds_send, "sametermmode", "string", ds_hidden_condition.getColumn(0, "sametermmode"));
  3442. var oParam = {};
  3443. oParam.id = "TRMRT00213";
  3444. oParam.service = "termmngtapp.DiagTermMngt";
  3445. oParam.method = "reqGetHistTerm";
  3446. oParam.inds = "req=ds_send";
  3447. oParam.outds = "ds_main_kcd4mhist_list=list";
  3448. oParam.async = false;
  3449. //oParam.callback = "cf_TRMRT00213";
  3450. tranf_submit(oParam);
  3451. }
  3452. /*-**************************************************************************************
  3453. * Argument : N/A
  3454. * Description : 과진단추가 리스트 선택(사용안함 전체체크박스로 대체)
  3455. ****************************************************************************************/
  3456. function fSelAddDiagList(){
  3457. // if(ds_main_srcheddiagcdlist_srcheddiagcdinfo.rowposition == -1){
  3458. // var sRowCnt = ds_main_srcheddiagcdlist_srcheddiagcdinfo.rowcount;
  3459. // var sCheck = ds_main_srcheddiagcdlist_srcheddiagcdinfo.getColumn(0, "check");
  3460. // if(sCheck == "Y"){
  3461. // for(var iRow = 0; iRow < sRowCnt; iRow++){
  3462. // ds_main_srcheddiagcdlist_srcheddiagcdinfo.setColumn( iRow , "check", "N");
  3463. // }
  3464. // }else{
  3465. // for(var iRow = 0; iRow < sRowCnt; iRow++){
  3466. // ds_main_srcheddiagcdlist_srcheddiagcdinfo.setColumn( iRow , "check", "Y");
  3467. // }
  3468. // }
  3469. // }
  3470. }
  3471. /*-**************************************************************************************
  3472. * Argument : N/A
  3473. * Description : 과진단 용어 삭제
  3474. ****************************************************************************************/
  3475. function fDelDeptDiagTerm(){
  3476. var iRow = ds_main_deptdiagcdlist_deptdiagcdinfo.rowposition;
  3477. if(iRow < 0){
  3478. return;
  3479. }
  3480. if(ds_main_deptdiagcdlist_deptdiagcdinfo.getColumn(iRow, "status") == "I"){
  3481. ds_main_deptdiagcdlist_deptdiagcdinfo.deleteRow(iRow);
  3482. }else{
  3483. ds_main_deptdiagcdlist_deptdiagcdinfo.setColumn( iRow , "status","D");
  3484. }
  3485. }
  3486. /*-**************************************************************************************
  3487. * Argument : N/A
  3488. * Description : 진단 용어 신규 등록시 확장코드 생성
  3489. ****************************************************************************************/
  3490. function fGetNewExtCd(){
  3491. //ICD10코드 선택 시, 새로운 확장, 용어코드 및 ICD시작일자 함께 조회
  3492. var iCd = switch2.DiagTerm.cmb_icd10cd.index;
  3493. var selCd = ds_main_icd10cdlist_info.getColumn(iCd, "icd10cd");
  3494. var path = ds_hidden_condition.getColumn(0, "selectedIndxPath");
  3495. ds_hidden_condition.setColumn( 0, "selectedicd10", selCd);
  3496. ds_main_peprterminfo_info.setColumn( 0, "icd10cd", selCd);
  3497. ds_send.clearData();
  3498. dsf_makeValue( ds_send, "icd10cd", "string", selCd);
  3499. dsf_createDs("ds_main_temp_icd10info");
  3500. var oParam = {};
  3501. oParam.id = "TRMRT00207";
  3502. oParam.service = "termmngtapp.DiagTermMngt";
  3503. oParam.method = "reqGetNewDiagattrcd";
  3504. oParam.inds = "req=ds_send";
  3505. oParam.outds = "ds_main_temp_icd10info=icd10info";
  3506. oParam.async = false;
  3507. //oParam.callback = "cf_TRMRT00207";
  3508. tranf_submit(oParam);
  3509. ds_main_peprterminfo_info.setColumn( 0, "icd10cd", ds_main_temp_icd10info.getColumn(0, "icd10cd"));
  3510. ds_main_peprterminfo_info.setColumn( 0, "diagattrcd", ds_main_temp_icd10info.getColumn(0, "diagattrcd"));
  3511. ds_main_peprterminfo_info.setColumn( 0, "termcd", ds_main_temp_icd10info.getColumn(0, "termcd"));
  3512. if(utlf_isNull(ds_main_temp_icd10info.getColumn(0, "diagattrmedireccd"))) {
  3513. ds_main_peprterminfo_info.setColumn( 0, "diagattrmedireccd", ds_hidden_condition.getColumn(0, "selectedIndx"));
  3514. } else {
  3515. ds_main_peprterminfo_info.setColumn( 0, "diagattrmedireccd", ds_main_temp_icd10info.getColumn(0, "diagattrmedireccd"));
  3516. }
  3517. ds_main_peprterminfo_info.setColumn( 0, "diagattrmedireccd", ds_main_temp_icd10info.getColumn(0, "diagattrmedireccd"));
  3518. var path = ds_hidden_condition.getColumn(0, "selectedIndxPath").split(".");
  3519. ds_main_peprterminfo_info.setColumn( 0, "diagattrdrindxcd", path[path.length-2]);
  3520. ds_main_peprterminfo_info.setColumn( 0, "icdfromdd", ds_main_temp_icd10info.getColumn(0, "icdfromdd"));
  3521. ds_main_peprterminfo_info.setColumn( 0, "reprflag", "R"); //신규모드일때에는 디폴트 R
  3522. }
  3523. /*-**************************************************************************************
  3524. * Argument : N/A
  3525. * Description : ICD10코드 저장 후 ICD10 재조회
  3526. ****************************************************************************************/
  3527. function fICD10Save(){
  3528. ds_send.clearData();
  3529. var RowCnt = ds_main_diagcdinfo_icd10cd.rowcount;
  3530. dsf_createDs("ds_send_reqdata");
  3531. dsf_createDs("ds_send_reqdata_reqindx");
  3532. var cnt = 0;
  3533. for (var i=0; i<RowCnt; i++) {
  3534. if(ds_main_diagcdinfo_icd10cd.getColumn(i, "state") == "I" || ds_main_diagcdinfo_icd10cd.getColumn(i, "state") == "U" || ds_main_diagcdinfo_icd10cd.getColumn(i, "state") == "D") {
  3535. dsf_makeValue(ds_send_reqdata, "state","string", ds_main_diagcdinfo_icd10cd.getColumn(i, "state"), cnt);
  3536. dsf_makeValue(ds_send_reqdata, "icd10cd","string", ds_main_diagcdinfo_icd10cd.getColumn(i, "icd10cd"), cnt);
  3537. dsf_makeValue(ds_send_reqdata, "icd10drindxcd","string", ds_main_diagcdinfo_icd10cd.getColumn(i, "icd10drindxcd"), cnt);
  3538. dsf_makeValue(ds_send_reqdata, "icd10medireccd","string", ds_main_diagcdinfo_icd10cd.getColumn(i, "icd10medireccd"), cnt);
  3539. dsf_makeValue(ds_send_reqdata, "icd10engnm","string", ds_main_diagcdinfo_icd10cd.getColumn(i, "icd10engnm"), cnt);
  3540. dsf_makeValue(ds_send_reqdata, "icd10hngnm","string", ds_main_diagcdinfo_icd10cd.getColumn(i, "icd10hngnm"), cnt);
  3541. dsf_makeValue(ds_send_reqdata, "icd10seqno","string", ds_main_diagcdinfo_icd10cd.getColumn(i, "icd10seqno"), cnt);
  3542. dsf_makeValue(ds_send_reqdata, "icd10fromdd","string", ds_main_diagcdinfo_icd10cd.getColumn(i, "icd10fromdd"), cnt);
  3543. dsf_makeValue(ds_send_reqdata, "icd10todd","string", ds_main_diagcdinfo_icd10cd.getColumn(i, "icd10todd"), cnt);
  3544. dsf_makeValue(ds_send_reqdata, "fstrgstrid","string", ds_main_diagcdinfo_icd10cd.getColumn(i, "fstrgstrid"), cnt);
  3545. dsf_makeValue(ds_send_reqdata, "lastupdtrid","string", ds_main_diagcdinfo_icd10cd.getColumn(i, "lastupdtrid"), cnt);
  3546. dsf_makeValue(ds_send_reqdata, "oldfromdd","string", ds_main_diagcdinfo_icd10cd.getColumn(i, "oldfromdd"), cnt);
  3547. dsf_makeValue(ds_send_reqdata, "oldtodd","string", ds_main_diagcdinfo_icd10cd.getColumn(i, "oldtodd"), cnt);
  3548. cnt++;
  3549. }
  3550. }
  3551. dsf_makeValue( ds_send_reqdata_reqindx, "indxcd", "string", ds_hidden_condition.getColumn(0, "selectedIndx"));
  3552. dsf_makeValue( ds_send_reqdata_reqindx, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  3553. var oParam = {};
  3554. oParam.id = "TXMRT00204";
  3555. oParam.service = "termmngtapp.DiagTermMngt";
  3556. oParam.method = "reqExeICD10";
  3557. oParam.inds = "reqICD10=ds_send_reqdata reqindx=ds_send_reqdata_reqindx";
  3558. oParam.outds = "ds_main_diagcdinfo_icd10cd=icd10cd";
  3559. oParam.async = false;
  3560. //oParam.callback = "cf_TXMRT00204";
  3561. tranf_submit(oParam);
  3562. }
  3563. /*-**************************************************************************************
  3564. * Argument : flag - 선택모드
  3565. * Description : ICD10코드 삭제
  3566. ****************************************************************************************/
  3567. function fDelRow(flag) {
  3568. var iRow = ds_main_diagcdinfo_icd10cd.rowposition;
  3569. var currentTime = utlf_getCurrentTime();
  3570. if(utlf_isNull(ds_main_diagcdinfo_icd10cd.getColumn(iRow, "icd10cd"))) {
  3571. return;
  3572. }
  3573. if(flag == "I") {
  3574. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "state", "D");
  3575. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "icd10todd", ds_init.getColumn(0, "today"));
  3576. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "lastupdtdt", ds_init.getColumn(0, "today") + currentTime.substr(0,6));
  3577. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "lastupdtrid", ds_init_userinfo.getColumn(0, "userid"));
  3578. }
  3579. }
  3580. /*-**************************************************************************************
  3581. * Argument : flag - 상태구분
  3582. * Description : ICD10코드 수정
  3583. ****************************************************************************************/
  3584. function fEditRow(flag){
  3585. var iRow = ds_main_diagcdinfo_icd10cd.rowposition;
  3586. var currentTime = utlf_getCurrentTime();
  3587. if(utlf_isNull(ds_main_diagcdinfo_icd10cd.getColumn(iRow, "icd10cd"))) {
  3588. return;
  3589. }
  3590. if(flag == "I") {
  3591. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "state", "U");
  3592. ds_main_diagcdinfo_icd10cd.setColumn( iRow, "oldfromdd", ds_main_diagcdinfo_icd10cd.getColumn(iRow, "icd10fromdd"));
  3593. ds_main_diagcdinfo_icd10cd.setColumn( iRow, "oldtodd", ds_main_diagcdinfo_icd10cd.getColumn(iRow, "icd10todd"));
  3594. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "icd10fromdd", ds_init.getColumn(0, "today"));
  3595. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "icd10todd", "99991231");
  3596. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "fstrgstdt", ds_init.getColumn(0, "today") + currentTime.substr(0,6));
  3597. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "fstrgstrid", ds_init_userinfo.getColumn(0, "userid"));
  3598. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "lastupdtdt", ds_init.getColumn(0, "today") + currentTime.substr(0,6));
  3599. ds_main_diagcdinfo_icd10cd.setColumn( iRow , "lastupdtrid", ds_init_userinfo.getColumn(0, "userid"));
  3600. }
  3601. }
  3602. /*-**************************************************************************************
  3603. * Argument : N/A
  3604. * Description : 사용종료 용어 되살리기
  3605. ****************************************************************************************/
  3606. function fRollbackTerm(){
  3607. var icd10cd = ds_main_peprterminfo_info.getColumn(0, "icd10cd");
  3608. var attrcd = ds_main_peprterminfo_info.getColumn(0, "diagattrcd");
  3609. var termcd = ds_main_peprterminfo_info.getColumn(0, "termcd");
  3610. var fullTermcd = icd10cd + "." + attrcd + "." + termcd;
  3611. ds_send.clearData();
  3612. dsf_createDs("ds_send_reqdata");
  3613. ds_send_reqdata.copyData(ds_main_peprterminfo_info);
  3614. ds_send_reqdata.setColumn( 0, "icd10cd", icd10cd);
  3615. ds_send_reqdata.setColumn( 0, "diagattrcd", icd10cd + "." + attrcd);
  3616. ds_send_reqdata.setColumn( 0, "termcd", fullTermcd);
  3617. ds_send_reqdata.setColumn( 0, "termflag", "0");
  3618. ds_send_reqdata.setColumn( 0, "termfromdd", ds_init.getColumn(0, "today"));
  3619. ds_send_reqdata.setColumn( 0, "termtodd", "99991231");
  3620. dsf_makeValue( ds_send_reqdata, "indxcd", "string", ds_hidden_condition.getColumn(0, "selectedIndx"));
  3621. dsf_makeValue( ds_send_reqdata, "maininstyn", "string", ds_hidden_condition.getColumn(0, "maininstyn"));
  3622. if(termcd == "00"){
  3623. dsf_makeValue( ds_send_reqdata, "status", "string", "ETN");
  3624. dsf_makeValue( ds_send_reqdata, "attrfromdd", "string", ds_init.getColumn(0, "today"));
  3625. dsf_makeValue( ds_send_reqdata, "attrtodd", "string", "99991231");
  3626. } else {
  3627. dsf_makeValue( ds_send_reqdata, "status", "string", "TN");
  3628. }
  3629. fn_TXMRT00201();
  3630. }
  3631. /*-**************************************************************************************
  3632. * Argument : N/A
  3633. * Description : 오른쪽 마우스 팝업 호출
  3634. ****************************************************************************************/
  3635. function fCallPopup(flag){
  3636. if(flag == "switch2.DiagTerm.grd_diagcd"){
  3637. return "pmn_menu1";
  3638. } else if(flag == "trv_dgindx"){
  3639. if(utlf_isNull(ds_main_indxlist_item.getColumn(ds_main_indxlist_item.rowposition, "indxcd"))){
  3640. return null;
  3641. }
  3642. return "pmn_menu2";
  3643. } else if(flag == "switch2.KCD4M.grd_kcd4minfo"){
  3644. return "pmn_menu1";
  3645. } else {
  3646. return null;
  3647. }
  3648. }
  3649. /*-**************************************************************************************
  3650. * Argument : N/A
  3651. * Description : 색인 변경 처리
  3652. ****************************************************************************************/
  3653. function fModifyIndx(){
  3654. var selTab = ds_hidden_condition.getColumn(0, "selctedmode");
  3655. if(selTab == "D"){
  3656. dsf_createDs("ds_hidden_reqdata_diagindxlist");
  3657. dsf_copyColInfo(ds_hidden_reqdata_diagindxlist, ds_main_diagcdinfo_diagcd);
  3658. var selectedRows = grdf_getSelectedRows(switch2.DiagTerm.grd_diagcd);
  3659. for(var cnt = 0; cnt < selectedRows.length; cnt++){
  3660. ds_hidden_reqdata_diagindxlist.copyRow(ds_hidden_reqdata_diagindxlist.addRow(), ds_main_diagcdinfo_diagcd, selectedRows[cnt]);
  3661. }
  3662. } else if(selTab == "K"){
  3663. dsf_createDs("ds_hidden_reqdata_kcd4mindxlist");
  3664. dsf_copyColInfo(ds_hidden_reqdata_kcd4mindxlist, ds_main_diagcdinfo_kcd4m);
  3665. var selectedRows = grdf_getSelectedRows(switch2.KCD4M.grd_kcd4minfo);
  3666. for(var cnt = 0; cnt < selectedRows.length; cnt++){
  3667. ds_hidden_reqdata_kcd4mindxlist.copyRow(ds_hidden_reqdata_kcd4mindxlist.addRow(), ds_main_diagcdinfo_kcd4m, selectedRows[cnt]);
  3668. }
  3669. }
  3670. }
  3671. /*-**************************************************************************************
  3672. * Argument : N/A
  3673. * Description : 색인 변경 처리
  3674. ****************************************************************************************/
  3675. function fPasteIndx(){
  3676. var selTab = ds_hidden_condition.getColumn(0, "selctedmode");
  3677. var iIndx = trv_dgindx.currentrow;
  3678. var selIndxCd = ds_main_indxlist_item.getColumn(iIndx, "indxcd");
  3679. var selIndxDrdiflag = ds_main_indxlist_item.getColumn(iIndx, "indxdrdiflag");
  3680. var msg = sysf_messageBox("색인을", "Q012");
  3681. if(msg == "7"){
  3682. return;
  3683. }
  3684. dsf_createDs("ds_send_reqdata_chnginfo");
  3685. switch(selTab){
  3686. case "D":
  3687. dsf_createDs("ds_send_reqdata_diagindxlist");
  3688. ds_send_reqdata_diagindxlist.copyData(ds_hidden_reqdata_diagindxlist);
  3689. dsf_makeValue( ds_send_reqdata_chnginfo, "indxcd", "string", selIndxCd);
  3690. dsf_makeValue( ds_send_reqdata_chnginfo, "indxdrdiflag", "string", selIndxDrdiflag);
  3691. dsf_makeValue( ds_send_reqdata_chnginfo, "indxflag", "string", selTab);
  3692. if(msg == "6"){
  3693. fn_TXMRT00205();
  3694. if(arErrorCode.pop("TXMRT00205") > -1){
  3695. sysf_messageBox("색인 변경이","I001");
  3696. } else {
  3697. sysf_messageBox("색인 변경을","E009");
  3698. }
  3699. }
  3700. break;
  3701. case "K":
  3702. dsf_createDs("ds_send_reqdata_kcd4mindxlist");
  3703. ds_send_reqdata_kcd4mindxlist.copyData(ds_hidden_reqdata_kcd4mindxlist);
  3704. dsf_makeValue( ds_send_reqdata_chnginfo, "indxcd", "string", selIndxCd);
  3705. dsf_makeValue( ds_send_reqdata_chnginfo, "indxdrdiflag", "string", selIndxDrdiflag);
  3706. dsf_makeValue( ds_send_reqdata_chnginfo, "indxflag", "string", selTab);
  3707. if(msg == "6"){
  3708. fn_TXMRT00205();
  3709. if(arErrorCode.pop("TXMRT00205") > -1){
  3710. sysf_messageBox("색인 변경이","I001");
  3711. } else {
  3712. sysf_messageBox("색인 변경을","E009");
  3713. }
  3714. }
  3715. break;
  3716. }
  3717. ds_send_reqdata_chnginfo.clearData();
  3718. ds_send_reqdata_diagindxlist.clearData();
  3719. ds_send_reqdata_kcd4mindxlist.clearData();
  3720. ds_hidden_reqdata_diagindxlist.clearData();
  3721. ds_hidden_reqdata_kcd4mindxlist.clearData();
  3722. }
  3723. /*-**************************************************************************************
  3724. * Argument : refds - 리턴데이터셋
  3725. * : refcol - 리턴컬럼
  3726. * : return true/false
  3727. * Description : 대체코드 검색
  3728. ****************************************************************************************/
  3729. function fCallTermSrch(refds, refcol){
  3730. var alttermcd = ds_main_peprterminfo_info.getColumn(0, "alttermcd");
  3731. var curr_date = ds_init.getColumn(0, "today");
  3732. ds_temp_terminfo_altterminfo.clearData();
  3733. frmf_setParameter("SPMRT01500_param_nodepath", "ds_temp_terminfo_altterminfo");
  3734. frmf_setParameter("SPMRT01500_SEARCHDATA", alttermcd);
  3735. frmf_setParameter("SPMRT01500_FLAG", "1");
  3736. frmf_setParameter("stndd", curr_date);
  3737. frmf_setParameter("maininstyn", "Y");
  3738. frmf_modal("SPMRT01500", "SPMRT01500", "", "", "", "", "", "", "", "", "", "", "M"); //용어검색
  3739. if(utlf_isNull(frmf_getParameter("SPMRT01500_FLAG"))) {
  3740. return;
  3741. }
  3742. if(ds_temp_terminfo_altterminfo.rowcount > 0){
  3743. this.objects[refds].setColumn(0, refcol, ds_temp_terminfo_altterminfo.getColumn(0, "diagcd"));
  3744. return true;
  3745. } else {
  3746. return false;
  3747. }
  3748. }
  3749. /*-**************************************************************************************
  3750. * Argument : N/A
  3751. * Description : 기관별 용어 사용여부 설정
  3752. ****************************************************************************************/
  3753. function fTermUseSave(){
  3754. ds_send.clearData();
  3755. var RowCnt = ds_main_diagcdinfo_icd10cd.rowcount;
  3756. var dsUpdate = grdf_getGridUpdateData(switch2.DiagTerm.grd_diagcd, "all");
  3757. grdf_setStatusColumn(dsUpdate, "status");
  3758. dsf_createDs("ds_send_termuse");
  3759. ds_send_termuse.copyData(dsUpdate, true);
  3760. var oParam = {};
  3761. oParam.id = "TXMRT00206";
  3762. oParam.service = "termmngtapp.DiagTermMngt";
  3763. oParam.method = "reqInsTermUse";
  3764. oParam.inds = "req=ds_send_termuse";
  3765. //oParam.outds = "ds_=diaginfo";
  3766. oParam.async = false;
  3767. //oParam.callback = "cf_TXMRT00206";
  3768. tranf_submit(oParam);
  3769. }
  3770. /*-**************************************************************************************
  3771. * Argument : N/A
  3772. * Description : 스크롤 페이지단위 조회
  3773. ****************************************************************************************/
  3774. var pinfo = 1;
  3775. var pagesize = 10000;
  3776. function fSubmitOnScroll() {
  3777. if(ds_main_deptdiagcdlist_deptdiagcdinfo.rowcount < eval(pinfo*pagesize)) return;
  3778. ds_send.clearData();
  3779. dsf_makeValue( ds_send, "pagesize", "string", pagesize);
  3780. dsf_makeValue( ds_send, "offset", "string", ds_main_deptdiagcdlist_deptdiagcdinfo.rowcount);
  3781. fn_TRMRT00212();
  3782. pinfo += 1;
  3783. switch2.case_DeptDiag.grd_deptdiag.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
  3784. }
  3785. ////////////////////////////////////////////////SMMRT00200.xjs////////////////////////////////////////////////
  3786. //=======================================================================================
  3787. // Event
  3788. //---------------------------------------------------------------------------------------
  3789. /****************************************************************************************
  3790. * Components : Form
  3791. * Description : 화면 처음 초기화시 폼초기화
  3792. ****************************************************************************************/
  3793. function SMMRT00200_onload(obj:Form, e:LoadEventInfo) {
  3794. frmf_initForm(obj);
  3795. grdf_initGrid(switch2.case_DeptDiag.grd_srcheddiaginfo);
  3796. //grdf_setGridSort(grd_XXX);
  3797. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  3798. switch2.tabindex = 1;
  3799. fInitalize();
  3800. frmf_createPopupMenuDs("pmn_menu1", "pmn_menu_onmenuclick", ds_init_func_mouserght);
  3801. frmf_createPopupMenuDs("pmn_menu2", "pmn_menu_onmenuclick", ds_init_func_trvmouserght);
  3802. }
  3803. // ds에 생성된 id별 함수 실행
  3804. function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  3805. {
  3806. eval(e.id + "()");
  3807. }
  3808. /****************************************************************************************
  3809. * Components : Grid
  3810. * Description : 동의어등 선택
  3811. ****************************************************************************************/
  3812. function switch2_DiagTerm_grd_termlist_oncellclick(obj:Grid, e:GridClickEventInfo) {
  3813. var termmode = ds_hidden_condition.getColumn(0, "sametermmode");
  3814. if(termmode != "H"){
  3815. fGetSynom();
  3816. }
  3817. }
  3818. /****************************************************************************************
  3819. * Components : Combo
  3820. * Description : 기관변경
  3821. ****************************************************************************************/
  3822. function switch2_DiagTerm_cmb_allinsthist_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  3823. var selInstcd = ds_hidden_condition.getColumn(0, "selInstcd");
  3824. if(selInstcd == "001"){
  3825. btn_saverow.enable = false;
  3826. }
  3827. else{
  3828. btn_saverow.enable = true;
  3829. }
  3830. fGetDiagInstTermHistList();
  3831. }
  3832. /****************************************************************************************
  3833. * Components : Combo
  3834. * Description : ICD10코드 변경
  3835. ****************************************************************************************/
  3836. function switch2_DiagTerm_cmb_icd10cd_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  3837. fGetNewExtCd();
  3838. }
  3839. // function switch2_DiagTerm_button27_onclick(obj:Button, e:ClickEventInfo) {
  3840. //
  3841. // var selTermcd = ds_hidden_condition.getColumn(0, "selectedtermcd");
  3842. //
  3843. // if(selTermcd == "" || selTermcd == null){
  3844. // var rtn = sysf_messageBox("ICD10 코드를 ", "C002");
  3845. // return;
  3846. // }
  3847. // ds_hidden_condition.setColumn( 0, "status", "M");
  3848. // switch2.DiagTerm.btn_delete2.enable = false;
  3849. //
  3850. // ds_main_peprterminfo_info.setColumn( 0, "fstrgstdate", ds_init.getColumn(0, "today"));
  3851. // ds_main_peprterminfo_info.setColumn( 0, "fstrgsttime", ds_init.getColumn(0, "curruntTime"));
  3852. // ds_main_peprterminfo_info.setColumn( 0, "termfromdate", ds_init.getColumn(0, "today"));
  3853. // ds_main_peprterminfo_info.setColumn( 0, "termfromtime", ds_init.getColumn(0, "curruntTime"));
  3854. // ds_main_peprterminfo_info.setColumn( 0, "termtodate", "99991231");
  3855. // ds_main_peprterminfo_info.setColumn( 0, "termtotime", "2359");
  3856. //
  3857. // ds_main_peprterminfo_info.setColumn( 0, "fstrgstdt", ds_main_peprterminfo_info.getColumn(0, "fstrgstdate")+ds_main_peprterminfo_info.getColumn(0, "fstrgsttime")+"00");
  3858. // ds_main_peprterminfo_info.setColumn( 0, "termfromdd", ds_main_peprterminfo_info.getColumn(0, "termfromdate")+ds_main_peprterminfo_info.getColumn(0, "termfromtime")+"00");
  3859. // ds_main_peprterminfo_info.setColumn( 0, "termtodd", ds_main_peprterminfo_info.getColumn(0, "termtodate")+ds_main_peprterminfo_info.getColumn(0, "termtotime")+"59");
  3860. //
  3861. // }
  3862. //
  3863. // function switch2_DiagTerm_button30_onclick(obj:Button, e:ClickEventInfo) {
  3864. //
  3865. // //동의어 수정
  3866. // var iRow = switch2.DiagTerm.grd_termlist.row;
  3867. // var term = ds_main_sametermlist_info.getColumn(iRow, "termcd")); //그리드에서 선택한 term
  3868. // var indx = ds_hidden_condition.getColumn(0, "selectedIndx"); //트리에서 선택한 index
  3869. //
  3870. // if(term == "" || term == null){
  3871. // var rtn = sysf_messageBox("대표어_동의어_유사어를 ", "C002");
  3872. // return;
  3873. // }
  3874. //
  3875. // switch2.DiagTerm.opt_Hdicd10cd.visible = "true";
  3876. // switch2.DiagTerm.cmb_icd10cd.visible = "false";
  3877. // switch2.DiagTerm.btn_delete2.enable = false;
  3878. //
  3879. // ds_hidden_condition.setColumn( 0, "status", "TM"); //term 만 modify
  3880. // ds_main_peprterminfo_info.setColumn( 0, "fstrgstdate", ds_init.getColumn(0, "today"));
  3881. // ds_main_peprterminfo_info.setColumn( 0, "fstrgsttime", ds_init.getColumn(0, "curruntTime"));
  3882. // ds_main_peprterminfo_info.setColumn( 0, "termfromdate", ds_init.getColumn(0, "today"));
  3883. // ds_main_peprterminfo_info.setColumn( 0, "termfromtime", ds_init.getColumn(0, "curruntTime"));
  3884. // ds_main_peprterminfo_info.setColumn( 0, "termtodate", "99991231");
  3885. // ds_main_peprterminfo_info.setColumn( 0, "termtotime", "2359");
  3886. //
  3887. // ds_main_peprterminfo_info.setColumn( 0, "fstrgstdt", ds_main_peprterminfo_info.getColumn(0, "fstrgstdate")+ds_main_peprterminfo_info.getColumn(0, "fstrgsttime")+"00");
  3888. // ds_main_peprterminfo_info.setColumn( 0, "termfromdd", ds_main_peprterminfo_info.getColumn(0, "termfromdate")+ds_main_peprterminfo_info.getColumn(0, "termfromtime")+"00");
  3889. // ds_main_peprterminfo_info.setColumn( 0, "termtodd", ds_main_peprterminfo_info.getColumn(0, "termtodate")+ds_main_peprterminfo_info.getColumn(0, "termtotime")+"59");
  3890. //
  3891. // }
  3892. //
  3893. // function switch2_DiagTerm_btn_delete1_onclick(obj:Button, e:ClickEventInfo) {
  3894. //
  3895. // var selTermcd = ds_hidden_condition.getColumn(0, "selectedtermcd");
  3896. // var insICD10cd = ds_main_peprterminfo_info.getColumn(0, "icd10cd");
  3897. // var insdiagattrcd = ds_main_peprterminfo_info.getColumn(0, "diagattrcd");
  3898. // var insTermcd = ds_main_peprterminfo_info.getColumn(0, "termcd");
  3899. // var fullTermCode = insICD10cd + "." + insdiagattrcd + "." + insTermcd;
  3900. // var rowCnt = switch2.DiagTerm.grd_diagcd.rows;
  3901. // var sameTerm = ds_main_sametermlist_info.getColumn(0, "termcd");
  3902. // if(selTermcd == "" || selTermcd == null){
  3903. // var rtn = sysf_messageBox("진단용어를 ", "C002");
  3904. // return;
  3905. // }
  3906. //
  3907. // var rtn = sysf_messageBox("확장코드와 함께 대표어_동의어_유사어를", "Q001");
  3908. //
  3909. // if( rtn == "6") { //확장코드 + 대표어, 동이어, 유사어 모두 삭제 : sysf_messageBox("확장코드와 모든 용어들을 삭제하려면 ", "S001");
  3910. // ds_hidden_condition.setColumn( 0, "status", "ETD");
  3911. // } else if( rtn == "7") { //대표어만 삭제하려면
  3912. // sysf_messageBox("용어의 수정 및 삭제는 '동의어_유사어'에서 ", "C002"); //동의어, 유사어가 있을 경우 대표어로 바꿀 것을 입력받아야 한다
  3913. // return;
  3914. // }
  3915. //
  3916. // ds_send.clearData();
  3917. //
  3918. // dsf_makeValue( ds_send, "indxcd", "string", "");
  3919. // dsf_makeValue( ds_send, "icd10cd", "string", "");
  3920. // dsf_makeValue( ds_send, "diagattrcd", "string", "");
  3921. // dsf_makeValue( ds_send, "termcd", "string", "");
  3922. // dsf_makeValue( ds_send, "status", "string", "");
  3923. //
  3924. // ds_send.setColumn( 0, "indxcd", ds_hidden_condition.getColumn(0, "selectedIndx"));
  3925. // ds_send.setColumn( 0, "icd10cd", insICD10cd);
  3926. // ds_send.setColumn( 0, "diagattrcd", insICD10cd + "." + insdiagattrcd);
  3927. // ds_send.setColumn( 0, "termcd", insICD10cd + "." + insdiagattrcd + "." + insTermcd);
  3928. // ds_send.setColumn( 0, "status", ds_hidden_condition.getColumn(0, "status")); //N:등록, M:수정, D:삭제
  3929. //
  3930. // fn_TXMRT00201();
  3931. //
  3932. // fCntlReset("diag");
  3933. // }
  3934. /****************************************************************************************
  3935. * Components : Button
  3936. * Description : 사용종료
  3937. ****************************************************************************************/
  3938. function switch2_DiagTerm_btn_delete2_onclick(obj:Button, e:ClickEventInfo) {
  3939. fEndDiagTerm();
  3940. }
  3941. /****************************************************************************************
  3942. * Components : Button
  3943. * Description : 신규입력
  3944. ****************************************************************************************/
  3945. function switch2_DiagTerm_button26_onclick(obj:Button, e:ClickEventInfo) {
  3946. fSetNewTerm();
  3947. }
  3948. /****************************************************************************************
  3949. * Components : Grid
  3950. * Description : 진단용어 선택
  3951. ****************************************************************************************/
  3952. function switch2_DiagTerm_grd_diagcd_oncellclick(obj:Grid, e:GridClickEventInfo) {
  3953. //switch2.DiagTerm.chk_appinst.setCheckAll(false, false);
  3954. if(e.col != 1){
  3955. fSelDiagTerm();
  3956. }
  3957. else{
  3958. var termuseyn = ds_main_diagcdinfo_diagcd.getColumn(e.row, "termuseyn");
  3959. var essntermflag = ds_main_diagcdinfo_diagcd.getColumn(e.row, "essntermflag");
  3960. if(termuseyn == "N"){
  3961. if(essntermflag == "Y"){
  3962. sysf_messageBox("필수 사용 용어 ", "E008");
  3963. ds_main_diagcdinfo_diagcd.setColumn( e.row, "termuseyn", "Y");
  3964. }
  3965. }
  3966. }
  3967. }
  3968. /****************************************************************************************
  3969. * Components : Button
  3970. * Description : 수정
  3971. ****************************************************************************************/
  3972. function switch2_DiagTerm_btn_modify1_onclick(obj:Button, e:ClickEventInfo) {
  3973. fSetTermUpdt();
  3974. }
  3975. /****************************************************************************************
  3976. * Components : Button
  3977. * Description : 되살리기
  3978. ****************************************************************************************/
  3979. function switch2_DiagTerm_btn_rollback_onclick(obj:Button, e:ClickEventInfo) {
  3980. fRollbackTerm();
  3981. }
  3982. /****************************************************************************************
  3983. * Components : Button
  3984. * Description : 대체코드 검색
  3985. ****************************************************************************************/
  3986. function switch2_DiagTerm_btn_altterm_onclick(obj:Button, e:ClickEventInfo) {
  3987. var ref1 = "ds_main_peprterminfo_info";
  3988. var ref2 = "alttermcd";
  3989. fCallTermSrch(ref1, ref2);
  3990. }
  3991. /****************************************************************************************
  3992. * Components : Button
  3993. * Description : 동의/유사어입력
  3994. ****************************************************************************************/
  3995. function switch2_DiagTerm_btn_sameterm_onclick(obj:Button, e:ClickEventInfo) {
  3996. fSetInj();
  3997. }
  3998. /****************************************************************************************
  3999. * Components : Button
  4000. * Description : 저장
  4001. ****************************************************************************************/
  4002. function switch2_DiagTerm_btn_termsave_onclick(obj:Button, e:ClickEventInfo) {
  4003. fSaveDiag();
  4004. }
  4005. // function switch2_DiagTerm_chk_appinst_onkillfocus(obj:CheckBox, e:KillFocusEventInfo) {
  4006. //
  4007. // var essntermflag = ds_main_peprterminfo_info.getColumn(0, "essntermflag");
  4008. // if(essntermflag == "Y"){
  4009. // for(var a = 0; a < switch2.DiagTerm.chk_appinst.length ; a++){
  4010. // switch2.DiagTerm.chk_appinst.select(a);
  4011. // }
  4012. // }
  4013. //
  4014. // //switch2.DiagTerm.chk_appinst.refresh();
  4015. //
  4016. // }
  4017. //
  4018. // function switch2_DiagTerm_rdo_essntermflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
  4019. //
  4020. // var essntermflag = ds_main_peprterminfo_info.getColumn(0, "essntermflag");
  4021. // if(essntermflag == "Y"){
  4022. // for(var a = 0; a < switch2.DiagTerm.chk_appinst.length ; a++){
  4023. // switch2.DiagTerm.chk_appinst.select(a);
  4024. // }
  4025. // }
  4026. //
  4027. // //switch2.DiagTerm.chk_appinst.refresh();
  4028. //
  4029. // }
  4030. /****************************************************************************************
  4031. * Components : Button
  4032. * Description : ICD-10-M 진단정보 신규
  4033. ****************************************************************************************/
  4034. function switch2_KCD4M_btn_new_onclick(obj:Button, e:ClickEventInfo) {
  4035. fSetNewKCD4M();
  4036. }
  4037. /****************************************************************************************
  4038. * Components : Button
  4039. * Description : ICD-10-M 진단정보 저장
  4040. ****************************************************************************************/
  4041. function switch2_KCD4M_btn_save_onclick(obj:Button, e:ClickEventInfo) {
  4042. fSaveKCD4M();
  4043. }
  4044. /****************************************************************************************
  4045. * Components : Grid
  4046. * Description : Morphology 그리드 선택
  4047. ****************************************************************************************/
  4048. function switch2_KCD4M_grd_kcd4minfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
  4049. fSelKCD4M();
  4050. }
  4051. /****************************************************************************************
  4052. * Components : Button
  4053. * Description : ICD-10-M 진단정보 이력정보 선택
  4054. ****************************************************************************************/
  4055. function switch2_KCD4M_grd_kcd4mhist_oncellclick(obj:Grid, e:GridClickEventInfo) {
  4056. fGetKCD4MHistList();
  4057. }
  4058. /****************************************************************************************
  4059. * Components : Button
  4060. * Description : ICD-10-M 진단정보 사용종료
  4061. ****************************************************************************************/
  4062. function switch2_KCD4M_button4_onclick(obj:Button, e:ClickEventInfo) {
  4063. fEndKCD4M();
  4064. }
  4065. /****************************************************************************************
  4066. * Components : Button
  4067. * Description : ICD-10-M 진단정보 수정
  4068. ****************************************************************************************/
  4069. function switch2_KCD4M_button6_onclick(obj:Button, e:ClickEventInfo) {
  4070. fSetKCD4MUpdt();
  4071. }
  4072. /****************************************************************************************
  4073. * Components : Button
  4074. * Description : 과 변경
  4075. ****************************************************************************************/
  4076. function switch2_case_DeptDiag_btn_deptsrch_onclick(obj:Button, e:ClickEventInfo) {
  4077. fCallDeptInfo();
  4078. }
  4079. /****************************************************************************************
  4080. * Components : Edit
  4081. * Description : 과입력후 조회
  4082. ****************************************************************************************/
  4083. function switch2_case_DeptDiag_ipt_deptnm_onkeyup(obj:Edit, e:KeyEventInfo) {
  4084. if(e.keycode == 13) {
  4085. obj.updateToDataset();
  4086. switch2.case_DeptDiag.btn_deptsrch.click();
  4087. }
  4088. }
  4089. /****************************************************************************************
  4090. * Components : Edit
  4091. * Description : 과진단코드 조회
  4092. ****************************************************************************************/
  4093. function switch2_case_DeptDiag_input4_onkeyup(obj:Edit, e:KeyEventInfo) {
  4094. if(e.keycode == 13) {
  4095. obj.updateToDataset();
  4096. switch2.case_DeptDiag.btn_srchdiag.click();
  4097. }
  4098. }
  4099. /****************************************************************************************
  4100. * Components : Grid
  4101. * Description : 진단추가 선택
  4102. ****************************************************************************************/
  4103. function switch2_case_DeptDiag_grd_srcheddiaginfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
  4104. // fSelAddDiagList();
  4105. }
  4106. /****************************************************************************************
  4107. * Components : Button
  4108. * Description : 진단조회
  4109. ****************************************************************************************/
  4110. function switch2_case_DeptDiag_btn_srchdiag_onclick(obj:Button, e:ClickEventInfo) {
  4111. fSrchDiagInfo();
  4112. }
  4113. /****************************************************************************************
  4114. * Components : Button
  4115. * Description : 위로
  4116. ****************************************************************************************/
  4117. function switch2_case_DeptDiag_btn_senddiag_onclick(obj:Button, e:ClickEventInfo) {
  4118. fSendDeptDiag();
  4119. }
  4120. /****************************************************************************************
  4121. * Components : Button
  4122. * Description : 과진단코드 조회
  4123. ****************************************************************************************/
  4124. function switch2_case_DeptDiag_btn_srchdeptdiag_onclick(obj:Button, e:ClickEventInfo) {
  4125. fSrchDeptDiagInfo();
  4126. }
  4127. /****************************************************************************************
  4128. * Components : Button
  4129. * Description : 과진단코드 저장
  4130. ****************************************************************************************/
  4131. function switch2_case_DeptDiag_btn_savedeptdiag_onclick(obj:Button, e:ClickEventInfo) {
  4132. fSaveDeptDiagInfo();
  4133. }
  4134. /****************************************************************************************
  4135. * Components : Button
  4136. * Description : 전체진단조회
  4137. ****************************************************************************************/
  4138. function switch2_case_DeptDiag_btn_srchextndiag_onclick(obj:Button, e:ClickEventInfo) {
  4139. fCallExtnDiagInfo();
  4140. }
  4141. /****************************************************************************************
  4142. * Components : Button
  4143. * Description : 과진단코드 삭제
  4144. ****************************************************************************************/
  4145. function switch2_case_DeptDiag_btn_deldeptdiag_onclick(obj:Button, e:ClickEventInfo) {
  4146. fDelDeptDiagTerm();
  4147. }
  4148. /****************************************************************************************
  4149. * Components : Button
  4150. * Description : 엑셀저장
  4151. ****************************************************************************************/
  4152. function button15_onclick(obj:Button, e:ClickEventInfo) {
  4153. switch(switch2.tabindex){
  4154. case 0:
  4155. if( switch2.ICD10CD.grd_icd10.rowcount > 0 ){
  4156. grdf_exportExcel(switch2.ICD10CD.grd_icd10, "Excel", "SheetName", false, "", "user", false);
  4157. } else {
  4158. sysf_messageBox("조회된 데이터가 ", "I004");
  4159. }
  4160. break;
  4161. case 1:
  4162. if( switch2.DiagTerm.grd_diagcd.rowcount > 0 ){
  4163. grdf_exportExcel(switch2.DiagTerm.grd_diagcd, "Excel", "SheetName", false, "", "user", false);
  4164. } else {
  4165. sysf_messageBox("조회된 데이터가 ", "I004");
  4166. }
  4167. break;
  4168. case 2:
  4169. if( switch2.case_DeptDiag.grd_deptdiag.rowcount > 0 ){
  4170. grdf_exportExcel(switch2.case_DeptDiag.grd_deptdiag, "Excel", "SheetName", false, "", "user", false);
  4171. } else {
  4172. sysf_messageBox("조회된 데이터가 ", "I004");
  4173. }
  4174. break;
  4175. case 3:
  4176. if( switch2.KCD4M.grd_kcd4minfo.rowcount > 0 ){
  4177. grdf_exportExcel(switch2.KCD4M.grd_kcd4minfo, "Excel", "SheetName", false, "", "user", false);
  4178. } else {
  4179. sysf_messageBox("조회된 데이터가 ", "I004");
  4180. }
  4181. break;
  4182. }
  4183. }
  4184. /****************************************************************************************
  4185. * Components : Button
  4186. * Description : 저장
  4187. ****************************************************************************************/
  4188. function btn_saverow_onclick(obj:Button, e:ClickEventInfo) {
  4189. var flag = ds_hidden_condition.getColumn(0, "selctedmode");
  4190. if(flag == "D"){
  4191. fTermUseSave();
  4192. }
  4193. else{
  4194. fICD10Save();
  4195. }
  4196. }
  4197. /****************************************************************************************
  4198. * Components : Edit
  4199. * Description : 조회조건 입력 후 엔터로 조회
  4200. ****************************************************************************************/
  4201. function input5_onkeyup(obj:Edit, e:KeyEventInfo) {
  4202. if(e.keycode == 13) {
  4203. obj.updateToDataset();
  4204. btn_srchtermcd.click();
  4205. }
  4206. }
  4207. /****************************************************************************************
  4208. * Components : Button
  4209. * Description : 줄추가
  4210. ****************************************************************************************/
  4211. function btn_addrow_onclick(obj:Button, e:ClickEventInfo) {
  4212. var flag = ds_hidden_condition.getColumn(0, "selctedmode");
  4213. fAddRow(flag);
  4214. }
  4215. /****************************************************************************************
  4216. * Components : Button
  4217. * Description : 줄삭제
  4218. ****************************************************************************************/
  4219. function btn_delrow_onclick(obj:Button, e:ClickEventInfo) {
  4220. var flag = ds_hidden_condition.getColumn(0, "selctedmode");
  4221. fDelRow(flag);
  4222. }
  4223. /****************************************************************************************
  4224. * Components : Button
  4225. * Description : 색인추가
  4226. ****************************************************************************************/
  4227. function button22_onclick(obj:Button, e:ClickEventInfo) {
  4228. fAddIndx();
  4229. }
  4230. /****************************************************************************************
  4231. * Components : Grid
  4232. * Description : 색인선택
  4233. ****************************************************************************************/
  4234. function trv_dgindx_oncellclick(obj:Grid, e:GridClickEventInfo) {
  4235. if(e.row < 0) return;
  4236. ds_hidden_condition.setColumn(0, "selectedIndx", ds_main_indxlist_item.getColumn(e.row, "indxcd"));
  4237. fSelTreeIndx();
  4238. }
  4239. /****************************************************************************************
  4240. * Components : Grid
  4241. * Description : 마우스 우클릭 팝업메뉴 오픈
  4242. ****************************************************************************************/
  4243. function trv_dgindx_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  4244. {
  4245. if(e.row > -1 && (ds_hidden_condition.getColumn(0, "selctedmode") == "D" || ds_hidden_condition.getColumn(0, "selctedmode") == "K")){
  4246. var pmnMenu = fCallPopup("trv_dgindx");
  4247. if(!utlf_isNull(pmnMenu)) {
  4248. grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
  4249. eval(pmnMenu).trackPopup(e.screenX,e.screenY);
  4250. }
  4251. }
  4252. return true;
  4253. }
  4254. /****************************************************************************************
  4255. * Components : Radio
  4256. * Description : 한글명 영문명 선택
  4257. ****************************************************************************************/
  4258. function radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
  4259. fChngLangIndx();
  4260. }
  4261. /****************************************************************************************
  4262. * Components : Edit
  4263. * Description : 코드 입력 후 조회
  4264. ****************************************************************************************/
  4265. function input10_onkeyup(obj:Edit, e:KeyEventInfo) {
  4266. if(e.keycode == 13) {
  4267. obj.updateToDataset();
  4268. btn_srchindxcd.click();
  4269. }
  4270. }
  4271. /****************************************************************************************
  4272. * Components : Button
  4273. * Description : 색인조회
  4274. ****************************************************************************************/
  4275. function btn_srchindxcd_onclick(obj:Button, e:ClickEventInfo) {
  4276. fSrchIndxCd();
  4277. }
  4278. /****************************************************************************************
  4279. * Components : Button
  4280. * Description : 코드조회
  4281. ****************************************************************************************/
  4282. function btn_srchtermcd_onclick(obj:Button, e:ClickEventInfo) {
  4283. fSrchDiagTerm();
  4284. }
  4285. /****************************************************************************************
  4286. * Components : CheckBox
  4287. * Description : 사용종료용어조회
  4288. ****************************************************************************************/
  4289. function checkbox2_onclick(obj:CheckBox, e:ClickEventInfo) {
  4290. if(obj.value == false) {
  4291. ds_hidden_condition.setColumn(0, "endflag", "");
  4292. ds_hidden_condition.setColumn( 0, "srchfromdd", "");
  4293. ds_hidden_condition.setColumn( 0, "srchtodd", "");
  4294. ipt_endfromdd.enable = false;
  4295. ipt_endtodd.enable = false;
  4296. } else {
  4297. ds_hidden_condition.setColumn( 0, "srchfromdd", utlf_getCurrentDate());
  4298. ds_hidden_condition.setColumn( 0, "srchtodd", '99991231');
  4299. ipt_endfromdd.enable = true;
  4300. ipt_endtodd.enable = true;
  4301. }
  4302. }
  4303. /****************************************************************************************
  4304. * Components : CheckBox
  4305. * Description : ASIS선택
  4306. ****************************************************************************************/
  4307. function checkbox1_onclick(obj:CheckBox, e:ClickEventInfo) {
  4308. if(obj.value == false) ds_hidden_condition.setColumn(0, "indxuseflag", "");
  4309. fChngLangIndx();
  4310. }
  4311. /****************************************************************************************
  4312. * Components : Button
  4313. * Description : 수정
  4314. ****************************************************************************************/
  4315. function btn_modify_onclick(obj:Button, e:ClickEventInfo) {
  4316. var flag = ds_hidden_condition.getColumn(0, "selctedmode");
  4317. fEditRow(flag);
  4318. }
  4319. /****************************************************************************************
  4320. * Components : Tab
  4321. * Description : tab버튼 선택시 함수 실행
  4322. ****************************************************************************************/
  4323. function switch2_onlbuttonup(obj:Tab, e:TabMouseEventInfo)
  4324. {
  4325. if(e.fromreferenceobject.name == "switch2"){
  4326. var sIdx = obj.getIndex(e.clientX, e.canvasY);
  4327. if( sIdx != -1){
  4328. lf_switch2_change();
  4329. }
  4330. }
  4331. }
  4332. /****************************************************************************************
  4333. * Components : Grid
  4334. * Description : 진단용어 우클릭 팝업
  4335. ****************************************************************************************/
  4336. function switch2_DiagTerm_grd_diagcd_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  4337. {
  4338. if(e.row > -1) {
  4339. var pmnMenu = fCallPopup("switch2.DiagTerm.grd_diagcd");
  4340. if(!utlf_isNull(pmnMenu)) {
  4341. grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
  4342. eval(pmnMenu).trackPopup(e.screenX,e.screenY);
  4343. }
  4344. }
  4345. return true;
  4346. }
  4347. /****************************************************************************************
  4348. * Components : Dataset
  4349. * Description : 일자변경시 처리
  4350. ****************************************************************************************/
  4351. function ds_main_peprterminfo_info_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  4352. {
  4353. if(e.columnid == "termfromdd") {
  4354. if(ds_hidden_condition.getColumn(0, "status") == "ETM"){
  4355. var newfromdd = e.newvalue;
  4356. var oldfromdd = obj.getColumn(0, "oldtermfromdd");
  4357. if(parseInt(newfromdd) < parseInt(oldfromdd)){
  4358. sysf_messageBox("이전 일자를 선택", "E001");
  4359. return;
  4360. }
  4361. }
  4362. obj.setColumn(0, "attrfromdd", e.newvalue);
  4363. }
  4364. if(e.columnid == "termtodd") {
  4365. obj.setColumn(0, "attrtodd", e.newvalue);
  4366. }
  4367. if(e.columnid == "essntermflag") {
  4368. var essntermflag = e.newvalue;
  4369. if(essntermflag == "Y"){
  4370. switch2.DiagTerm.chk_appinst.setCheckAll(true);
  4371. }
  4372. }
  4373. if(e.columnid == "appinstcd") {
  4374. switch2.DiagTerm.chk_appinst.setData(String(e.newvalue).split("▦"),null,false);
  4375. }
  4376. }
  4377. /****************************************************************************************
  4378. * Components : Button
  4379. * Description : 탭버튼 선택
  4380. ****************************************************************************************/
  4381. function switch2_DiagTerm_grp_tabbtn_button1_onclick(obj:Button, e:ClickEventInfo)
  4382. {
  4383. misfTabBtnChange(switch2.DiagTerm.grp_tabbtn, obj);
  4384. fGetSynomList();
  4385. }
  4386. function switch2_DiagTerm_grp_tabbtn_button2_onclick(obj:Button, e:ClickEventInfo)
  4387. {
  4388. misfTabBtnChange(switch2.DiagTerm.grp_tabbtn, obj);
  4389. fGetDiagTermHistList();
  4390. }
  4391. function switch2_DiagTerm_grp_tabbtn_button7_onclick(obj:Button, e:ClickEventInfo)
  4392. {
  4393. misfTabBtnChange(switch2.DiagTerm.grp_tabbtn, obj);
  4394. fGetDiagInstTermHistList();
  4395. }
  4396. /****************************************************************************************
  4397. * Components : Grid
  4398. * Description : 과진단정보 스크롤 로 조회
  4399. ****************************************************************************************/
  4400. function switch2_case_DeptDiag_grd_deptdiag_onvtracklast(obj:Grid, e:ScrollEventInfo)
  4401. {
  4402. fSubmitOnScroll();
  4403. }
  4404. function ds_main_srcheddiagcdlist_srcheddiagcdinfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  4405. {
  4406. if(e.columnid=="check") {
  4407. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  4408. }
  4409. }
  4410. function switch2_KCD4M_grd_kcd4minfo_onvtracklast(obj:Grid, e:ScrollEventInfo)
  4411. {
  4412. // fSubmitOnScroll();
  4413. }
  4414. /****************************************************************************************
  4415. * Components : Grid
  4416. * Description : 우클릭 팝업메뉴 오픈
  4417. ****************************************************************************************/
  4418. function switch2_KCD4M_grd_kcd4minfo_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  4419. {
  4420. if(e.row > -1) {
  4421. var pmnMenu = fCallPopup("switch2.KCD4M.grd_kcd4minfo");
  4422. if(!utlf_isNull(pmnMenu)) {
  4423. grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
  4424. eval(pmnMenu).trackPopup(e.screenX,e.screenY);
  4425. }
  4426. }
  4427. return true;
  4428. }
  4429. ]]></Script>
  4430. </Form>
  4431. </FDL>