SMLLR00410_두검사항목별결과관리.xfdl 122 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLR00410" position="absolute 0 0 1197 770" titletext="" scrollbars="none" onload="SMLLR00410_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" scrollbars="none" position="absolute 0 22 1195 784" style="">
  8. <Layouts>
  9. <Layout>
  10. <Div id="group4" position="absolute 0 10 1195 70" style="" anchor="default">
  11. <Layouts>
  12. <Layout>
  13. <Shape id="roundrect2" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 0 0 1194 60" style=""/>
  14. <Button id="button3" class="btn1" position="absolute 1123 31 1179 53" style="" text="조회" onclick="group3_group4_button3_onclick" anchor="default"/>
  15. <Shape id="line9" class="line_4" linetype="vertical" position="absolute 1108 31 1111 53" style="" anchor="default"/>
  16. <Static id="caption23" class="search_name" position="absolute 15 9 105 26" style="" text="작업일자 :" anchor="default"/>
  17. <Combo innerdataset="ds_init_LB0106" datacolumn="nm" codecolumn="cd" columncount="-1" rowcount="-1" id="combo3" class="combo_search" position="absolute 105 35 210 54" style="" anchor="default"/>
  18. <Static id="caption24" class="search_no_b" position="absolute 193 10 205 27" style="" text="~" anchor="default"/>
  19. <Static id="caption25" class="search_name" position="absolute 15 36 105 53" style="" text="작업그룹 :" anchor="default"/>
  20. <Static id="caption26" class="search_name" position="absolute 304 9 394 26" style="" text="작업번호 :" anchor="default"/>
  21. <Calendar id="input5" class="input_search" position="absolute 105 8 190 27" style="" anchor="default"/>
  22. <Static id="caption27" class="search_no_b" position="absolute 440 10 452 27" style="" text="~" anchor="default"/>
  23. <Calendar id="input6" class="input_search" position="absolute 209 8 294 27" style="" anchor="default"/>
  24. <Edit id="input7" class="input_search" position="absolute 392 8 437 27" style="" anchor="default"/>
  25. <Edit id="input8" class="input_search" position="absolute 457 8 502 27" style="" anchor="default"/>
  26. <Static id="caption29" class="search_name" position="absolute 414 34 504 51" style="" text="검사항목 :" anchor="default"/>
  27. <Button id="button4" class="icon_search" position="absolute 1071 32 1087 48" text="" onclick="group3_group4_button4_onclick" anchor="default"/>
  28. <Edit id="input9" class="input_search" position="absolute 625 33 1059 52" style="" anchor="default"/>
  29. <Combo innerdataset="ds_init_LB0103" datacolumn="nm" codecolumn="cd" columncount="-1" rowcount="-1" id="combo4" class="combo_search" position="absolute 506 33 624 52" style="" onitemchanged="group3_group4_combo4_onitemchanged" anchor="default"/>
  30. <Static id="caption30" class="search_name" position="absolute 225 35 320 52" style="" text="결과코드 :" anchor="default"/>
  31. <Edit id="input10" class="input_essential" position="absolute 1018 7 1094 26" style="" anchor="default" onkeyup="group3_group4_input10_onkeyup"/>
  32. <Edit id="output11" class="output_fix" position="absolute 1096 7 1178 26" style="" anchor="default" readonly="true"/>
  33. <Static id="caption31" class="tit_2" position="absolute 948 10 1014 23" style="" text="검사자 :" anchor="default"/>
  34. <Combo innerdataset="ds_init_LB0109[etc01='']" datacolumn="nm" codecolumn="cd" columncount="-1" rowcount="-1" id="combo5" class="combo_search" position="absolute 315 34 400 53" style="" onitemchanged="group3_group4_combo5_onitemchanged" anchor="default"/>
  35. <Static id="caption32" class="tit_2" position="absolute 948 10 1014 23" style="" text="검사자 :" anchor="default"/>
  36. </Layout>
  37. </Layouts>
  38. </Div>
  39. <Div id="group1" position="absolute 0 10 1195 70" style="" anchor="default" class="div_SA2">
  40. <Layouts>
  41. <Layout>
  42. <Button id="button1" class="btn1" position="absolute 855 20 911 42" style="" text="조회" onclick="group3_group1_button1_onclick" anchor="default"/>
  43. <Shape id="line11" class="line_4" linetype="vertical" position="absolute 820 5 823 53" style="" anchor="default"/>
  44. <Static id="caption1" class="search_name" position="absolute 15 9 105 26" style="" text="접수일자 :" anchor="default"/>
  45. <Combo innerdataset="ds_init_LB0106" datacolumn="nm" codecolumn="cd" columncount="-1" rowcount="-1" id="combo1" class="combo_search" visible="false" position="absolute 500 10 605 29" style="" anchor="default"/>
  46. <Static id="caption3" class="search_no_b" position="absolute 238 10 250 27" style="" text="~" anchor="default"/>
  47. <Calendar id="input1" class="input_search" position="absolute 105 8 190 27" style="" anchor="default" autoselect="true"/>
  48. <MaskEdit id="input_starttm" class="input_search" mask="##:##" position="absolute 190 8 235 27" style="" anchor="default" type="string"/>
  49. <Calendar id="input2" class="input_search" position="absolute 254 8 339 27" style="" anchor="default" autoselect="true"/>
  50. <MaskEdit id="input_endtm" class="input_search" mask="##:##" position="absolute 340 8 385 27" style="" anchor="default" type="string"/>
  51. <Static id="caption9" class="search_name" position="absolute 15 35 105 52" style="" text="검사항목 :" anchor="default"/>
  52. <Button id="button61" class="icon_search" position="absolute 610 35 626 51" text="" onclick="group3_group1_button61_onclick" anchor="default"/>
  53. <Edit id="ipt_tclscdlist" class="input_search" position="absolute 230 35 605 54" style="" anchor="default"/>
  54. <Combo innerdataset="@ds_init_LB0103" datacolumn="nm" codecolumn="cd" columncount="-1" rowcount="-1" id="combo2" class="combo_search" position="absolute 105 35 223 54" style="itemheight:15;" onitemchanged="group3_group1_combo2_onitemchanged" anchor="default"/>
  55. <Edit id="input3" taborder="1" class="input_search" position="absolute 662 20 707 39"/>
  56. </Layout>
  57. </Layouts>
  58. </Div>
  59. <Grid id="datagrid4" binddataset="ds_hidden_ordcd" class="datagrid2" position="absolute 965 270 1040 355" style="" anchor="default">
  60. <Formats>
  61. <Format id="default">
  62. <Columns>
  63. <Column size="90"/>
  64. <Column size="90"/>
  65. <Column size="90"/>
  66. <Column size="90"/>
  67. <Column size="90"/>
  68. <Column size="90"/>
  69. <Column size="90"/>
  70. <Column size="90"/>
  71. </Columns>
  72. <Rows>
  73. <Row size="23" band="head"/>
  74. <Row size="23"/>
  75. </Rows>
  76. <Band id="head">
  77. <Cell text="bcno"/>
  78. <Cell col="1" text="주검사코드"/>
  79. <Cell col="2" text="검체코드"/>
  80. <Cell col="3" text="부검사코드"/>
  81. <Cell col="4" text="소견코드"/>
  82. <Cell col="5" text="소견명"/>
  83. <Cell col="6" text="사용자id"/>
  84. <Cell col="7" text="instcd"/>
  85. </Band>
  86. <Band id="body">
  87. <Cell text="bind:bcno"/>
  88. <Cell col="1" text="bind:tclscd"/>
  89. <Cell col="2" text="bind:spccd"/>
  90. <Cell col="3" text="bind:testcd"/>
  91. <Cell col="4" text="bind:testcontcd"/>
  92. <Cell col="5" text="bind:testcont"/>
  93. <Cell col="6" text="bind:userid"/>
  94. <Cell col="7" text="bind:instcd"/>
  95. </Band>
  96. </Format>
  97. </Formats>
  98. </Grid>
  99. <Grid id="datagrid3" binddataset="ds_hidden_test" class="datagrid2" position="absolute 135 180 640 290" style="" onmousedown="group3_datagrid3_onmousedown" onaftersort="group3_datagrid3_onaftersort" oncopy="group3_datagrid3_oncopy" onkeydown="group3_datagrid3_onkeydown" oncellclick="group3_datagrid3_oncellclick" anchor="default">
  100. <Formats>
  101. <Format id="default">
  102. <Columns>
  103. <Column size="90"/>
  104. <Column size="90"/>
  105. <Column size="90"/>
  106. <Column size="90"/>
  107. <Column size="90"/>
  108. </Columns>
  109. <Rows>
  110. <Row size="23" band="head"/>
  111. <Row size="23"/>
  112. </Rows>
  113. <Band id="head">
  114. <Cell text="instcd"/>
  115. <Cell col="1" text="검사코드"/>
  116. <Cell col="2" text="바코드번호"/>
  117. <Cell col="3" text="등록번호"/>
  118. <Cell col="4" text="ioflag"/>
  119. </Band>
  120. <Band id="body">
  121. <Cell text="bind:instcd"/>
  122. <Cell col="1" text="bind:testcd"/>
  123. <Cell col="2" text="bind:bcno"/>
  124. <Cell col="3" text="bind:pid"/>
  125. <Cell col="4" text="bind:ioflag"/>
  126. </Band>
  127. </Format>
  128. </Formats>
  129. </Grid>
  130. <Grid id="datagrid5" binddataset="_root_rsltlist" class="datagrid2" position="absolute 290 310 795 420" style="" onmousedown="group3_datagrid5_onmousedown" onaftersort="group3_datagrid5_onaftersort" oncopy="group3_datagrid5_oncopy" onkeydown="group3_datagrid5_onkeydown" oncellclick="group3_datagrid5_oncellclick" anchor="default">
  131. <Formats>
  132. <Format id="default">
  133. <Columns>
  134. <Column size="300"/>
  135. </Columns>
  136. <Rows>
  137. <Row size="23" band="head"/>
  138. <Row size="23"/>
  139. </Rows>
  140. <Band id="head">
  141. <Cell text="RESULT"/>
  142. </Band>
  143. <Band id="body">
  144. <Cell text="bind:reptrslt"/>
  145. </Band>
  146. </Format>
  147. </Formats>
  148. </Grid>
  149. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 95 1194 98" style="strokepen:5 solid #33bbbbff;" anchor="default"/>
  150. <Static id="caption2" class="tit_2" position="absolute 5 80 139 94" style="" text="검사항목내역" anchor="default"/>
  151. <Button id="button2" class="btn7" position="absolute 925 30 976 53" style="" text="엑셀" onclick="group3_button2_onclick" anchor="default"/>
  152. <Grid id="datagrid1" binddataset="ds_main_testinfo_testlist" class="datagrid2" visible="false" position="absolute 135 305 435 385" style="" anchor="default">
  153. <Formats>
  154. <Format id="default">
  155. <Columns>
  156. <Column size="150"/>
  157. <Column size="118"/>
  158. <Column size="104"/>
  159. <Column size="60"/>
  160. <Column size="60"/>
  161. <Column size="60"/>
  162. <Column size="60"/>
  163. <Column size="60"/>
  164. <Column size="60"/>
  165. <Column size="60"/>
  166. <Column size="60"/>
  167. <Column size="60"/>
  168. <Column size="60"/>
  169. <Column size="60"/>
  170. <Column size="60"/>
  171. <Column size="60"/>
  172. <Column size="60"/>
  173. <Column size="60"/>
  174. <Column size="60"/>
  175. <Column size="60"/>
  176. <Column size="60"/>
  177. <Column size="60"/>
  178. <Column size="60"/>
  179. <Column size="60"/>
  180. <Column size="60"/>
  181. <Column size="60"/>
  182. <Column size="60"/>
  183. <Column size="60"/>
  184. <Column size="60"/>
  185. <Column size="60"/>
  186. <Column size="60"/>
  187. <Column size="60"/>
  188. <Column size="60"/>
  189. <Column size="60"/>
  190. <Column size="60"/>
  191. <Column size="60"/>
  192. <Column size="60"/>
  193. <Column size="60"/>
  194. <Column size="60"/>
  195. <Column size="60"/>
  196. <Column size="60"/>
  197. <Column size="60"/>
  198. <Column size="60"/>
  199. <Column size="60"/>
  200. <Column size="60"/>
  201. <Column size="60"/>
  202. <Column size="60"/>
  203. <Column size="60"/>
  204. <Column size="60"/>
  205. <Column size="60"/>
  206. <Column size="60"/>
  207. <Column size="60"/>
  208. <Column size="60"/>
  209. <Column size="60"/>
  210. <Column size="60"/>
  211. <Column size="60"/>
  212. <Column size="60"/>
  213. <Column size="60"/>
  214. <Column size="60"/>
  215. <Column size="60"/>
  216. <Column size="60"/>
  217. <Column size="60"/>
  218. <Column size="60"/>
  219. <Column size="60"/>
  220. <Column size="60"/>
  221. <Column size="60"/>
  222. <Column size="60"/>
  223. <Column size="60"/>
  224. <Column size="60"/>
  225. <Column size="60"/>
  226. <Column size="60"/>
  227. <Column size="60"/>
  228. <Column size="60"/>
  229. <Column size="60"/>
  230. <Column size="100"/>
  231. <Column size="100"/>
  232. <Column size="100"/>
  233. </Columns>
  234. <Rows>
  235. <Row size="24" band="head"/>
  236. <Row size="24"/>
  237. </Rows>
  238. <Band id="head">
  239. <Cell text="rkey"/>
  240. <Cell col="1" text="workno"/>
  241. <Cell col="2" text="bcno"/>
  242. <Cell col="3" text="execprcpuniqno"/>
  243. <Cell col="4" text="testcd"/>
  244. <Cell col="5" text="spccd"/>
  245. <Cell col="6" text="bufinptrslt"/>
  246. <Cell col="7" text="reptrslt"/>
  247. <Cell col="8" text="rsltunit"/>
  248. <Cell col="9" text="judgmark"/>
  249. <Cell col="10" text="panicmark"/>
  250. <Cell col="11" text="deltamark"/>
  251. <Cell col="12" text="criticalmark"/>
  252. <Cell col="13" text="alertmark"/>
  253. <Cell col="14" text="rsltmark"/>
  254. <Cell col="15" text="rsltstat"/>
  255. <Cell col="16" text="bfbcno"/>
  256. <Cell col="17" text="bflastreptdt"/>
  257. <Cell col="18" text="testeqmtcd"/>
  258. <Cell col="19" text="comment"/>
  259. <Cell col="20" text="tclskind"/>
  260. <Cell col="21" text="spcacptid"/>
  261. <Cell col="22" text="spcacptdt"/>
  262. <Cell col="23" text="spcacptnm"/>
  263. <Cell col="24" text="rsltrgsgid"/>
  264. <Cell col="25" text="rsltrgstdt"/>
  265. <Cell col="26" text="rsltrgstnm"/>
  266. <Cell col="27" text="mdlreptid"/>
  267. <Cell col="28" text="mdlreptdt"/>
  268. <Cell col="29" text="mdlreptnm"/>
  269. <Cell col="30" text="lastreptid"/>
  270. <Cell col="31" text="lastreptdt"/>
  271. <Cell col="32" text="lastreptnm"/>
  272. <Cell col="33" text="tclscd"/>
  273. <Cell col="34" text="bfinptrslt"/>
  274. <Cell col="35" text="bfreptrslt"/>
  275. <Cell col="36" text="rsltseq"/>
  276. <Cell col="37" text="prcpgenrflag"/>
  277. <Cell col="38" text="rsltkind"/>
  278. <Cell col="39" text="rsltintsize"/>
  279. <Cell col="40" text="rsltdcmlsize"/>
  280. <Cell col="41" text="rundkind"/>
  281. <Cell col="42" text="rvalflag"/>
  282. <Cell col="43" text="descrval"/>
  283. <Cell col="44" text="judgkind"/>
  284. <Cell col="45" text="userjudgchar1"/>
  285. <Cell col="46" text="userjudgchar2"/>
  286. <Cell col="47" text="userjudgchar3"/>
  287. <Cell col="48" text="panicflag"/>
  288. <Cell col="49" text="panicminval"/>
  289. <Cell col="50" text="panicmaxval"/>
  290. <Cell col="51" text="deltaflag"/>
  291. <Cell col="52" text="deltaminval"/>
  292. <Cell col="53" text="deltamaxval"/>
  293. <Cell col="54" text="deltaterm"/>
  294. <Cell col="55" text="criticflag"/>
  295. <Cell col="56" text="criticminval"/>
  296. <Cell col="57" text="criticmaxval"/>
  297. <Cell col="58" text="alertflag"/>
  298. <Cell col="59" text="alertminval"/>
  299. <Cell col="60" text="allertmaxval"/>
  300. <Cell col="61" text="alimitls"/>
  301. <Cell col="62" text="alimitflag"/>
  302. <Cell col="63" text="alimitminval"/>
  303. <Cell col="64" text="alimith"/>
  304. <Cell col="65" text="alimiths"/>
  305. <Cell col="66" text="alimitls"/>
  306. <Cell col="67" text="refl"/>
  307. <Cell col="68" text="refls"/>
  308. <Cell col="69" text="refh"/>
  309. <Cell col="70" text="refhs"/>
  310. <Cell col="71" text="reflt"/>
  311. <Cell col="72" text="rstinterval"/>
  312. <Cell col="73" text="iud"/>
  313. <Cell col="74" text="spcscrnnm"/>
  314. <Cell col="75" text="inptrslt"/>
  315. <Cell col="76" text="testcmt"/>
  316. </Band>
  317. <Band id="body">
  318. <Cell text="bind:rkey"/>
  319. <Cell col="1" text="bind:workno"/>
  320. <Cell col="2" text="bind:bcno"/>
  321. <Cell col="3" text="bind:execprcpuniqno"/>
  322. <Cell col="4" text="bind:testcd"/>
  323. <Cell col="5" text="bind:spccd"/>
  324. <Cell col="6" text="bind:bufinptrslt"/>
  325. <Cell col="7" text="bind:reptrslt"/>
  326. <Cell col="8" text="bind:rsltunit"/>
  327. <Cell col="9" text="bind:judgmark"/>
  328. <Cell col="10" text="bind:panicmark"/>
  329. <Cell col="11" text="bind:deltamark"/>
  330. <Cell col="12" text="bind:criticalmark"/>
  331. <Cell col="13" text="bind:alertmark"/>
  332. <Cell col="14" text="bind:rsltmark"/>
  333. <Cell col="15" text="bind:rsltstat"/>
  334. <Cell col="16" text="bind:bfbcno"/>
  335. <Cell col="17" text="bind:bflastreptdt"/>
  336. <Cell col="18" text="bind:testeqmtcd"/>
  337. <Cell col="19" text="bind:comment"/>
  338. <Cell col="20" text="bind:tclskind"/>
  339. <Cell col="21" text="bind:spcacptid"/>
  340. <Cell col="22" text="bind:spcacptdt"/>
  341. <Cell col="23" text="bind:spcacptnm"/>
  342. <Cell col="24" text="bind:rsltrgsgid"/>
  343. <Cell col="25" text="bind:rsltrgstdt"/>
  344. <Cell col="26" text="bind:rsltrgstnm"/>
  345. <Cell col="27" text="bind:mdlreptid"/>
  346. <Cell col="28" text="bind:mdlreptdt"/>
  347. <Cell col="29" text="bind:mdlreptnm"/>
  348. <Cell col="30" text="bind:lastreptid"/>
  349. <Cell col="31" text="bind:lastreptdt"/>
  350. <Cell col="32" text="bind:lastreptnm"/>
  351. <Cell col="33" text="bind:tclscd"/>
  352. <Cell col="34" text="bind:bfinptrslt"/>
  353. <Cell col="35" text="bind:bfreptrslt"/>
  354. <Cell col="36" text="bind:rsltseq"/>
  355. <Cell col="37" text="bind:prcpgenrflag"/>
  356. <Cell col="38" text="bind:rsltkind"/>
  357. <Cell col="39" text="bind:rsltintsize"/>
  358. <Cell col="40" text="bind:rsltdcmlsize"/>
  359. <Cell col="41" text="bind:rundkind"/>
  360. <Cell col="42" text="bind:rvalflag"/>
  361. <Cell col="43" text="bind:descrval"/>
  362. <Cell col="44" text="bind:judgkind"/>
  363. <Cell col="45" text="bind:userjudgchar1"/>
  364. <Cell col="46" text="bind:userjudgchar2"/>
  365. <Cell col="47" text="bind:userjudgchar3"/>
  366. <Cell col="48" text="bind:panicflag"/>
  367. <Cell col="49" text="bind:panicminval"/>
  368. <Cell col="50" text="bind:panicmaxval"/>
  369. <Cell col="51" text="bind:deltaflag"/>
  370. <Cell col="52" text="bind:deltaminval"/>
  371. <Cell col="53" text="bind:deltamaxval"/>
  372. <Cell col="54" text="bind:deltaterm"/>
  373. <Cell col="55" text="bind:criticflag"/>
  374. <Cell col="56" text="bind:criticminval"/>
  375. <Cell col="57" text="bind:criticmaxval"/>
  376. <Cell col="58" text="bind:alertflag"/>
  377. <Cell col="59" text="bind:alertminval"/>
  378. <Cell col="60" text="bind:allertmaxval"/>
  379. <Cell col="61" text="bind:alimitls"/>
  380. <Cell col="62" text="bind:alimitflag"/>
  381. <Cell col="63" text="bind:alimitminval"/>
  382. <Cell col="64" text="bind:alimith"/>
  383. <Cell col="65" text="bind:alimiths"/>
  384. <Cell col="66" text="bind:alimitls"/>
  385. <Cell col="67" text="bind:refl"/>
  386. <Cell col="68" text="bind:refls"/>
  387. <Cell col="69" text="bind:refh"/>
  388. <Cell col="70" text="bind:refhs"/>
  389. <Cell col="71" text="bind:reflt"/>
  390. <Cell col="72" text="bind:rstinterval"/>
  391. <Cell col="73" text="bind:iud"/>
  392. <Cell col="74" text="bind:spcscrnnm"/>
  393. <Cell col="75" text="bind:inptrslt"/>
  394. <Cell col="76" text="bind:testcmt"/>
  395. </Band>
  396. </Format>
  397. </Formats>
  398. </Grid>
  399. <Shape id="line8" class="line_2" linetype="horizontal" position="absolute 267 687 522 690" style="" anchor="default"/>
  400. <Edit id="ipt_bf" class="input_fix" position="absolute 343 642 522 661" style="" anchor="default"/>
  401. <Grid id="datagrid2" binddataset="ds_main_testinfo_spcinfo" position="absolute 83 664 262 712" style="" anchor="default">
  402. <Formats>
  403. <Format id="default">
  404. <Columns>
  405. <Column size="30"/>
  406. <Column size="30"/>
  407. <Column size="30"/>
  408. <Column size="30"/>
  409. <Column size="30"/>
  410. <Column size="27"/>
  411. </Columns>
  412. <Rows>
  413. <Row size="23" band="head"/>
  414. <Row size="23"/>
  415. </Rows>
  416. <Band id="head">
  417. <Cell text="N"/>
  418. <Cell col="1" text="P"/>
  419. <Cell col="2" text="D"/>
  420. <Cell col="3" text="C"/>
  421. <Cell col="4" text="A"/>
  422. <Cell col="5" text="R"/>
  423. </Band>
  424. <Band id="body">
  425. <Cell text="bind:judgmark"/>
  426. <Cell col="1" text="bind:panicmark"/>
  427. <Cell col="2" text="bind:deltamark"/>
  428. <Cell col="3" text="bind:criticalmark"/>
  429. <Cell col="4" text="bind:alertmark"/>
  430. <Cell col="5" text="bind:rsltmark"/>
  431. </Band>
  432. </Format>
  433. </Formats>
  434. </Grid>
  435. <Combo innerdataset="ds_init_LB0210" datacolumn="nm" codecolumn="cd" columncount="-1" rowcount="-1" id="cmb_cmt" class="combo_default" position="absolute 923 617 1173 636" style="" onitemclick="group3_cmb_cmt_onitemclick" anchor="default"/>
  436. <MaskEdit id="ipt_bfdt" class="input_fix" mask="yyyy-mm-dd hh:nn:ss" position="absolute 343 666 522 685" style="" anchor="default"/>
  437. <Edit id="output10" class="output_fix" position="absolute 436 720 521 739" style="" anchor="default" readonly="true"/>
  438. <Edit id="output6" class="output_fix" position="absolute 343 690 522 709" style="" anchor="default" readonly="true"/>
  439. <Edit id="output7" position="absolute 680 591 780 610" style="" anchor="default" readonly="true"/>
  440. <Shape id="line10" class="line_1" linetype="horizontal" position="absolute 785 610 1194 613" style="" anchor="default"/>
  441. <Edit id="output8" class="output_fix" position="absolute 83 720 168 739" style="" anchor="default" readonly="true"/>
  442. <Static id="caption20" class="cell_1" position="absolute 0 719 80 742" style="" text="결과입력자" anchor="default"/>
  443. <Button id="button5" class="icon_search" position="absolute 1178 617 1194 633" text="" onclick="group3_button5_onclick" anchor="default"/>
  444. <Edit id="output9" class="output_fix" position="absolute 274 720 359 739" style="" anchor="default" readonly="true"/>
  445. <Shape id="line12" class="line_1" linetype="horizontal" position="absolute 527 610 780 613" style="" anchor="default"/>
  446. <Button id="button6" class="btn2" position="absolute 1130 591 1194 610" style="" text="소견저장" onclick="group3_button6_onclick" anchor="default"/>
  447. <Static id="caption21" class="cell_1" position="absolute 171 719 271 742" style="" text="중간보고자" anchor="default"/>
  448. <Shape id="line13" class="line_2" linetype="horizontal" position="absolute 267 711 522 714" style="" anchor="default"/>
  449. <Static id="caption10" class="tit_2" position="absolute 5 595 79 608" style="" text="검체정보" anchor="default"/>
  450. <Static id="caption11" class="cell_1" position="absolute 0 615 80 638" style="" text="검체명" anchor="default"/>
  451. <Static id="caption22" class="cell_1" position="absolute 363 719 433 742" style="" text="최종보고자" anchor="default"/>
  452. <Static id="caption12" class="cell_1" position="absolute 0 639 80 717" style="" text="참고치&amp;판정" anchor="default"/>
  453. <Static id="caption35" class="tit_2" position="absolute 790 595 874 609" style="" text="소견" anchor="default"/>
  454. <Static id="caption13" class="cell_1" position="absolute 267 617 340 640" style="" text="보이는결과" anchor="default"/>
  455. <Static id="caption14" class="cell_1" position="absolute 267 641 340 664" style="" text="이전결과" anchor="default"/>
  456. <Shape id="line2" class="line_1" linetype="horizontal" position="absolute 0 610 522 613" style="" anchor="default"/>
  457. <Static id="caption15" class="cell_1" position="absolute 267 665 340 688" style="" text="이전결과일" anchor="default"/>
  458. <Shape id="line3" class="line_2" linetype="horizontal" position="absolute 0 717 262 720" style="" anchor="default"/>
  459. <Static id="caption16" class="cell_1" position="absolute 267 689 340 712" style="" text="검사장비" anchor="default"/>
  460. <TextArea id="textarea1" position="absolute 527 617 780 742" style="" onkillfocus="group3_textarea1_onkillfocus" anchor="default"/>
  461. <Shape id="line4" class="line_2" linetype="horizontal" position="absolute 0 637 262 640" style="" anchor="default"/>
  462. <TextArea id="textarea3" position="absolute 825 639 1194 689" style="" onkillfocus="group3_textarea3_onkillfocus" onclick="group3_textarea3_onclick" anchor="default"/>
  463. <TextArea id="text_testcmts" position="absolute 825 690 1194 742" style="" onkillfocus="group3_text_testcmts_onkillfocus" onclick="group3_text_testcmts_onclick" anchor="default"/>
  464. <Static id="cap_1818" class="cell_1" position="absolute 785 638 823 741" style="" text="시행&#10;부서&#10;&#10;검사&#10;항목" anchor="default"/>
  465. <Combo innerdataset="ds_hidden_testconttsectcd" datacolumn="nm" codecolumn="cd" columncount="-1" rowcount="-1" id="cmb_sect" class="combo_default" position="absolute 785 617 920 636" style="" onitemclick="group3_cmb_sect_onitemclick" anchor="default"/>
  466. <Static id="caption18" class="tit_2" position="absolute 532 595 616 608" style="" text="comment" anchor="default"/>
  467. <Shape id="line5" class="line_2" linetype="horizontal" position="absolute 83 661 262 664" style="" anchor="default"/>
  468. <Edit id="output1" class="output_fix" position="absolute 83 616 262 635" style="" anchor="default" readonly="true"/>
  469. <Shape id="line6" class="line_2" linetype="horizontal" position="absolute 267 639 522 642" style="" anchor="default"/>
  470. <Edit id="output2" class="output_fix" position="absolute 83 640 262 659" style="" anchor="default" readonly="true"/>
  471. <Shape id="line7" class="line_2" linetype="horizontal" position="absolute 267 663 522 666" style="" anchor="default"/>
  472. <Edit id="output3" class="output_fix" position="absolute 343 618 522 637" style="" anchor="default" readonly="true"/>
  473. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="radio2" position="absolute 795 623 810 708" style="" anchor="default">
  474. <Dataset id="innerdataset">
  475. <ColumnInfo>
  476. <Column id="codecolumn"/>
  477. <Column id="datacolumn"/>
  478. </ColumnInfo>
  479. <Rows>
  480. <Row>
  481. <Col id="codecolumn">1</Col>
  482. <Col id="datacolumn"/>
  483. </Row>
  484. <Row>
  485. <Col id="codecolumn">2</Col>
  486. <Col id="datacolumn"/>
  487. </Row>
  488. </Rows>
  489. </Dataset>
  490. </Radio>
  491. <Button id="btn_cle" class="btn4" position="absolute 729 30 797 52" style="" text="초기화" onclick="group3_btn_cle_onclick" anchor="default"/>
  492. <Grid id="grd_testlist" binddataset="ds_main_testinfo_patlist" class="datagrid2" position="absolute 0 100 1194 746" onkeypress="group3_grd_testlist_onkeypress" onmousedown="group3_grd_testlist_onmousedown" onaftersort="group3_grd_testlist_onaftersort" oncopy="group3_grd_testlist_oncopy" onkeydown="group3_grd_testlist_onkeydown" scrollbars="autoboth" anchor="default">
  493. <Formats>
  494. <Format id="default">
  495. <Columns>
  496. <Column size="26"/>
  497. <Column size="20"/>
  498. <Column size="114"/>
  499. <Column size="98"/>
  500. <Column size="80"/>
  501. <Column size="70"/>
  502. <Column size="30"/>
  503. <Column size="30"/>
  504. <Column size="70"/>
  505. <Column size="60"/>
  506. <Column size="70"/>
  507. <Column size="140"/>
  508. <Column size="90"/>
  509. <Column size="90"/>
  510. <Column size="90"/>
  511. <Column size="77"/>
  512. <Column size="60"/>
  513. <Column size="60"/>
  514. <Column size="60"/>
  515. <Column size="60"/>
  516. <Column size="60"/>
  517. <Column size="60"/>
  518. <Column size="60"/>
  519. <Column size="60"/>
  520. <Column size="60"/>
  521. <Column size="60"/>
  522. <Column size="60"/>
  523. <Column size="60"/>
  524. <Column size="60"/>
  525. <Column size="60"/>
  526. <Column size="60"/>
  527. <Column size="60"/>
  528. <Column size="60"/>
  529. <Column size="60"/>
  530. <Column size="60"/>
  531. <Column size="60"/>
  532. <Column size="60"/>
  533. <Column size="60"/>
  534. <Column size="60"/>
  535. <Column size="60"/>
  536. <Column size="60"/>
  537. <Column size="60"/>
  538. </Columns>
  539. <Rows>
  540. <Row size="35" band="head"/>
  541. <Row size="23"/>
  542. </Rows>
  543. <Band id="head">
  544. <Cell/>
  545. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  546. <Cell col="2" text="접수일시"/>
  547. <Cell col="3" text="바코드번호"/>
  548. <Cell col="4" text="등록번호"/>
  549. <Cell col="5" text="성명"/>
  550. <Cell col="6" text="성별"/>
  551. <Cell col="7" text="나이"/>
  552. <Cell col="8" text="진료과"/>
  553. <Cell col="9" text="병동_병실"/>
  554. <Cell col="10" text="의뢰의사"/>
  555. <Cell col="11" text="검체명"/>
  556. <Cell col="12" text="inptrslt1" wordwrap="char"/>
  557. <Cell col="13" text="inptrslt12" wordwrap="char"/>
  558. <Cell col="14" text="inptrslt3" wordwrap="char"/>
  559. <Cell col="15" text="inptrslt4" wordwrap="char"/>
  560. <Cell col="16" text="inptrslt5" wordwrap="char"/>
  561. <Cell col="17" text="inptrslt6" wordwrap="char"/>
  562. <Cell col="18" text="inptrslt7"/>
  563. <Cell col="19" text="inptrslt8"/>
  564. <Cell col="20" text="inptrslt9"/>
  565. <Cell col="21" text="inptrslt10"/>
  566. <Cell col="22" text="inptrslt11"/>
  567. <Cell col="23" text="inptrslt12"/>
  568. <Cell col="24" text="inptrslt13"/>
  569. <Cell col="25" text="inptrslt14"/>
  570. <Cell col="26" text="inptrslt15"/>
  571. <Cell col="27" text="inptrslt16"/>
  572. <Cell col="28" text="inptrslt17"/>
  573. <Cell col="29" text="inptrslt18"/>
  574. <Cell col="30" text="inptrslt19"/>
  575. <Cell col="31" text="inptrslt20"/>
  576. <Cell col="32" text="inptrslt21"/>
  577. <Cell col="33" text="inptrslt22"/>
  578. <Cell col="34" text="inptrslt23"/>
  579. <Cell col="35" text="inptrslt24"/>
  580. <Cell col="36" text="inptrslt25"/>
  581. <Cell col="37" text="inptrslt26"/>
  582. <Cell col="38" text="inptrslt27"/>
  583. <Cell col="39" text="inptrslt28"/>
  584. <Cell col="40" text="inptrslt29"/>
  585. <Cell col="41" text="inptrslt30"/>
  586. </Band>
  587. <Band id="body">
  588. <Cell celltype="head" expr="expr:currow+1"/>
  589. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  590. <Cell col="2" displaytype="date" text="bind:spcacptdt" mask="yyyy-MM-dd HH:mm"/>
  591. <Cell col="3" text="bind:bcno"/>
  592. <Cell col="4" text="bind:pid"/>
  593. <Cell col="5" text="bind:patnm"/>
  594. <Cell col="6" text="bind:patsex"/>
  595. <Cell col="7" text="bind:patage"/>
  596. <Cell col="8" text="bind:orddeptnm"/>
  597. <Cell col="9" text="bind:wardroom"/>
  598. <Cell col="10" text="bind:orddrnm"/>
  599. <Cell col="11" displaytype="combo" text="bind:spccd" combodataset="ds_init_LB0105" combocodecol="cd" combodatacol="nm"/>
  600. <Cell col="12" text="bind:inptrslt1" wordwrap="char"/>
  601. <Cell col="13" text="bind:inptrslt2"/>
  602. <Cell col="14" text="bind:inptrslt3" wordwrap="char"/>
  603. <Cell col="15" text="bind:inptrslt4"/>
  604. <Cell col="16" text="bind:inptrslt5"/>
  605. <Cell col="17" text="bind:inptrslt6"/>
  606. <Cell col="18" text="bind:inptrslt7"/>
  607. <Cell col="19" text="bind:inptrslt8"/>
  608. <Cell col="20" text="bind:inptrslt9"/>
  609. <Cell col="21" text="bind:inptrslt10"/>
  610. <Cell col="22" style="background:#ffffffff;background2:#ffffffff;" text="bind:inptrslt11"/>
  611. <Cell col="23" style="background:#ffffffff;background2:#ffffffff;" text="bind:inptrslt12"/>
  612. <Cell col="24" text="bind:inptrslt13"/>
  613. <Cell col="25" text="bind:inptrslt14"/>
  614. <Cell col="26" text="bind:inptrslt15"/>
  615. <Cell col="27" text="bind:inptrslt16"/>
  616. <Cell col="28" text="bind:inptrslt17"/>
  617. <Cell col="29" text="bind:inptrslt18"/>
  618. <Cell col="30" text="bind:inptrslt19"/>
  619. <Cell col="31" text="bind:inptrslt20"/>
  620. <Cell col="32" text="bind:inptrslt21"/>
  621. <Cell col="33" text="bind:inptrslt22"/>
  622. <Cell col="34" text="bind:inptrslt23"/>
  623. <Cell col="35" text="bind:inptrslt24"/>
  624. <Cell col="36" text="bind:inptrslt25"/>
  625. <Cell col="37" text="bind:inptrslt26"/>
  626. <Cell col="38" text="bind:inptrslt27"/>
  627. <Cell col="39" text="bind:inptrslt28"/>
  628. <Cell col="40" text="bind:inptrslt29"/>
  629. <Cell col="41" text="bind:inptrslt30"/>
  630. </Band>
  631. </Format>
  632. </Formats>
  633. </Grid>
  634. </Layout>
  635. </Layouts>
  636. </Div>
  637. <Div id="group2" position="absolute 0 0 1195 37" style="">
  638. <Layouts>
  639. <Layout>
  640. <Static id="caption17" class="tit_1" position="absolute 0 0 179 25" style="" text="두검사결과 비교조회" ondblclick="group2_caption17_ondblclick" anchor="default"/>
  641. </Layout>
  642. </Layouts>
  643. </Div>
  644. </Layout>
  645. </Layouts>
  646. <Objects>
  647. <Dataset id="ds_main_testinfo_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  648. <Dataset id="ds_main_testinfo_testlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  649. <Dataset id="ds_main_testinfo_spcinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  650. <Dataset id="ds_hidden_refparam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  651. <ColumnInfo>
  652. <Column id="startdd" type="STRING" size="256"/>
  653. <Column id="enddd" type="STRING" size="256"/>
  654. <Column id="tsectcd" type="STRING" size="256"/>
  655. <Column id="sworkseq" type="STRING" size="256"/>
  656. <Column id="eworkseq" type="STRING" size="256"/>
  657. <Column id="starttm" type="STRING" size="256"/>
  658. <Column id="endtm" type="STRING" size="256"/>
  659. <Column id="rsltstat0" type="STRING" size="256"/>
  660. <Column id="rsltstat1" type="STRING" size="256"/>
  661. <Column id="rsltstat2" type="STRING" size="256"/>
  662. <Column id="userid" type="STRING" size="256"/>
  663. <Column id="tclscdlist" type="STRING" size="256"/>
  664. <Column id="tclscdlist2" type="STRING" size="256"/>
  665. <Column id="rsltstat" type="STRING" size="256"/>
  666. </ColumnInfo>
  667. <Rows>
  668. <Row/>
  669. </Rows>
  670. </Dataset>
  671. <Dataset id="ds_hidden_ref_tclscdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  672. <ColumnInfo>
  673. <Column id="testgrup" type="STRING" size="256"/>
  674. <Column id="tclsnmlist" type="STRING" size="256"/>
  675. <Column id="tclscdlist" type="STRING" size="256"/>
  676. <Column id="tclscdlist2" type="STRING" size="256"/>
  677. <Column id="tclsnmlist2" type="STRING" size="256"/>
  678. </ColumnInfo>
  679. <Rows>
  680. <Row/>
  681. </Rows>
  682. </Dataset>
  683. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  684. <Dataset id="ds_main_getUsernm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  685. <Dataset id="ds_hidden_testconttsectcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  686. <ColumnInfo>
  687. <Column id="Column0" type="STRING" size="256"/>
  688. </ColumnInfo>
  689. </Dataset>
  690. <Dataset id="ds_init_LB0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  691. <Dataset id="ds_init_LB0103" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  692. <ColumnInfo>
  693. <Column id="cd" type="BIGDECIMAL" size="255"/>
  694. <Column id="nm" type="STRING" size="255"/>
  695. <Column id="etc01" type="STRING" size="255"/>
  696. <Column id="etc02" type="STRING" size="255"/>
  697. <Column id="etc03" type="STRING" size="255"/>
  698. <Column id="etc04" type="STRING" size="255"/>
  699. </ColumnInfo>
  700. <Rows>
  701. <Row/>
  702. </Rows>
  703. </Dataset>
  704. <Dataset id="ds_init_LB0109" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  705. <Dataset id="ds_init_LB0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  706. <Dataset id="ds_init_LB0210" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  707. <Dataset id="ds_init_LB0105" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  708. <ColumnInfo>
  709. <Column id="cd" type="STRING" size="256"/>
  710. <Column id="nm" type="STRING" size="256"/>
  711. </ColumnInfo>
  712. <Rows>
  713. <Row/>
  714. </Rows>
  715. </Dataset>
  716. <Dataset id="ds_init_LB1005" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  717. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  718. <Dataset id="ds_main_testgrupdetl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  719. <Dataset id="ds_hidden_tclscdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  720. <ColumnInfo>
  721. <Column id="tclscdlist" type="STRING" size="256"/>
  722. <Column id="tclsnmlist" type="STRING" size="256"/>
  723. <Column id="tclscdlist2" type="STRING" size="256"/>
  724. <Column id="tclsnmlist2" type="STRING" size="256"/>
  725. </ColumnInfo>
  726. <Rows>
  727. <Row/>
  728. </Rows>
  729. </Dataset>
  730. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  731. <Dataset id="ds_hidden_default" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  732. </Objects>
  733. <Bind>
  734. <BindItem id="item0" compid="group3.group4.combo3" propid="value" datasetid="ds_hidden_refparam" columnid="tsectcd"/>
  735. <BindItem id="item1" compid="group3.group4.input5" propid="value" datasetid="ds_hidden_refparam" columnid="startdd"/>
  736. <BindItem id="item2" compid="group3.group4.input6" propid="value" datasetid="ds_hidden_refparam" columnid="enddd"/>
  737. <BindItem id="item3" compid="group3.group4.input7" propid="value" datasetid="ds_hidden_refparam" columnid="sworkseq"/>
  738. <BindItem id="item4" compid="group3.group4.input8" propid="value" datasetid="ds_hidden_refparam" columnid="eworkseq"/>
  739. <BindItem id="item5" compid="group3.group4.input9" propid="value" datasetid="ds_hidden_ref_tclscdlist" columnid="tclsnmlist"/>
  740. <BindItem id="item6" compid="group3.group4.combo4" propid="value" datasetid="ds_hidden_ref_tclscdlist" columnid="testgrup"/>
  741. <BindItem id="item7" compid="group3.group4.input10" propid="value" datasetid="ds_hidden_refparam" columnid="userid"/>
  742. <BindItem id="item8" compid="group3.group4.output11" propid="value" datasetid="ds_main_getUsernm" columnid="usernm"/>
  743. <BindItem id="item9" compid="group3.group4.combo5" propid="value" datasetid="ds_hidden" columnid="rsltcont"/>
  744. <BindItem id="item10" compid="group3.group1.combo1" propid="value" datasetid="ds_hidden_refparam" columnid="tsectcd"/>
  745. <BindItem id="item11" compid="group3.group1.input1" propid="value" datasetid="ds_hidden_refparam" columnid="startdd"/>
  746. <BindItem id="item12" compid="group3.group1.input_starttm" propid="value" datasetid="ds_hidden_refparam" columnid="starttm"/>
  747. <BindItem id="item13" compid="group3.group1.input2" propid="value" datasetid="ds_hidden_refparam" columnid="enddd"/>
  748. <BindItem id="item14" compid="group3.group1.input_endtm" propid="value" datasetid="ds_hidden_refparam" columnid="endtm"/>
  749. <BindItem id="item15" compid="group3.group1.ipt_tclscdlist" propid="value" datasetid="ds_hidden_ref_tclscdlist" columnid="tclsnmlist"/>
  750. <BindItem id="item16" compid="group3.group1.combo2" propid="value" datasetid="ds_hidden_ref_tclscdlist" columnid="testgrup"/>
  751. <BindItem id="item17" compid="group3.ipt_bf" propid="value" datasetid="ds_main_testinfo_spcinfo" columnid="bfreptrslt"/>
  752. <BindItem id="item18" compid="group3.cmb_cmt" propid="value" datasetid="ds_hidden_testcont" columnid="testcontcd"/>
  753. <BindItem id="item19" compid="group3.ipt_bfdt" propid="value" datasetid="ds_main_testinfo_spcinfo" columnid="bflastreptdt"/>
  754. <BindItem id="item20" compid="group3.output10" propid="value" datasetid="ds_main_testinfo_spcinfo" columnid="lastreptnm"/>
  755. <BindItem id="item21" compid="group3.output6" propid="value" datasetid="ds_main_testinfo_spcinfo" columnid="testeqmtcd"/>
  756. <BindItem id="item22" compid="group3.output7" propid="value" datasetid="ds_hidden" columnid="currenRow"/>
  757. <BindItem id="item23" compid="group3.output8" propid="value" datasetid="ds_main_testinfo_spcinfo" columnid="rsltrgsgnm"/>
  758. <BindItem id="item24" compid="group3.output9" propid="value" datasetid="ds_main_testinfo_spcinfo" columnid="mdlreptnm"/>
  759. <BindItem id="item25" compid="group3.textarea1" propid="value" datasetid="ds_main_testinfo_spcinfo" columnid="testcmt"/>
  760. <BindItem id="item26" compid="group3.textarea3" propid="value" datasetid="ds_main_testinfo_spcinfo" columnid="testcont"/>
  761. <BindItem id="item27" compid="group3.text_testcmts" propid="value" datasetid="ds_main_testinfo_spcinfo" columnid="testcmts"/>
  762. <BindItem id="item28" compid="group3.cmb_sect" propid="value" datasetid="ds_hidden_testcont" columnid="tsectcd"/>
  763. <BindItem id="item29" compid="group3.output1" propid="value" datasetid="ds_main_testinfo_spcinfo" columnid="spcscrnnm"/>
  764. <BindItem id="item30" compid="group3.output2" propid="value" datasetid="ds_main_testinfo_spcinfo" columnid="refval"/>
  765. <BindItem id="item31" compid="group3.output3" propid="value" datasetid="ds_main_testinfo_spcinfo" columnid="reptrslt"/>
  766. <BindItem id="item32" compid="group3.radio2" propid="value" datasetid="ds_hidden" columnid="cmtflag"/>
  767. <BindItem id="item33" compid="group3.group1.input3" propid="value" datasetid="ds_hidden_refparam" columnid="sworkseq"/>
  768. </Bind>
  769. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  770. * System Name :
  771. * Job Name :
  772. * Creator :
  773. * Make Date : 2015-11-13
  774. * Description :
  775. *---------------------------------------------------------------------------------------
  776. * Modify Date Modifier Modify Description
  777. *---------------------------------------------------------------------------------------
  778. * 2015-11-13 Live Converter TF->XP
  779. *
  780. *---------------------------------------------------------------------------------------
  781. ****************************************************************************************/
  782. include "com_commonxp::comm_main.xjs";
  783. include "lis_commonxp::LLZ001.xjs";
  784. // include "lis_commonxp::LZZ001.xjs";
  785. // include "lis_commonxp::LZZ002.xjs";
  786. // include "lis_commonxp::LPZ001.xjs";
  787. // include "com_commodulexp::SSZFM00901.xjs";
  788. // include '../../.._com_commonweb_js_common.js'
  789. // include '../../.._com_commonweb_js_dateHelper.js'
  790. // include '../../.._com_commonweb_js_numericHelper.js'
  791. // include '../../.._lis_commonweb_js_LLZ001.js'
  792. // include '../../.._com_commonweb_js_tfHelper.js'
  793. // include '../../.._com_commonweb_js_stringHelper.js'
  794. var gStartCol = 12;
  795. function SMLLR00420_onload(obj:Form, e:LoadEventInfo) {
  796. frmf_initForm(obj);
  797. grdf_initGrid(group3.grd_testlist);
  798. lf_setInit();
  799. }
  800. function lf_setInit(ref){
  801. if(ref != 2) {
  802. ds_main_testinfo_patlist.clearData();
  803. ds_main_testinfo_testlist.clearData();
  804. ds_main_testinfo_spcinfo.clearData(); ds_main_testinfo_spcinfo.addRow();
  805. ds_hidden_refparam.setColumn( 0, "startdd" , utlf_getCurrentDate());
  806. ds_hidden_refparam.setColumn( 0, "enddd" , utlf_getCurrentDate());
  807. ds_hidden_refparam.setColumn( 0, "tsectcd" , "00");
  808. ds_hidden_refparam.setColumn( 0, "sworkseq" , "0");
  809. ds_hidden_refparam.setColumn( 0, "eworkseq" , "0");
  810. ds_hidden_refparam.setColumn( 0, "starttm" , "0000");
  811. ds_hidden_refparam.setColumn( 0, "endtm" , "2359");
  812. ds_hidden_refparam.setColumn( 0, "rsltstat0" , "1");
  813. ds_hidden_ref_tclscdlist.setColumn( 0, "tclsnmlist" , "");
  814. ds_hidden_ref_tclscdlist.setColumn( 0, "testgrup" , "");
  815. ds_hidden.setColumn( 0, "rsltcont" , "");
  816. ds_hidden_refparam.setColumn( 0, "rsltstat1" , "");
  817. ds_hidden_refparam.setColumn( 0, "rsltstat2" , "");
  818. ds_hidden.setColumn( 0, "cursor" , "1");
  819. // group3.datagrid2.setCellProprty("body", 1, "background", "#FFFFFF");
  820. // datagrid2.setCellProperty("body", 1, "background2", "#FFFFFF");
  821. //ds_hidden_refparam.setColumn( 0, "testgrupseqno", ds_init_LB0103.getColumn(0, "cd"));
  822. group3.datagrid2.enable = false;
  823. // group3.grd_testlist.fixedcellcheckbox(0, 1) = true;
  824. // group3.grd_testlist.fixedcellischeck(0, 1) = false;
  825. //group3.grd_testlist.removeRow();
  826. for(i=group3.grd_testlist.cols ; i >= gStartCol ; i--)
  827. group3.grd_testlist.setFormatColProperty( i, "size", 0);
  828. if(ref != 1) {
  829. ds_hidden_refparam.setColumn( 0, "userid" , "");
  830. ds_main_getUsernm.setColumn( 0, "usernm" , "");
  831. }
  832. }
  833. //fBaseInfoRef("0106|0103|0109|0000|0210|0105|1005|");
  834. // dsf_createDs("ds_init_LB0106");
  835. // dsf_createDs("ds_init_LB0103");
  836. // dsf_createDs("ds_init_LB0109");
  837. // dsf_createDs("ds_init_LB0000");
  838. // dsf_createDs("ds_init_LB0210");
  839. // dsf_createDs("ds_init_LB0105");
  840. // dsf_createDs("ds_init_LB1005");
  841. dsf_createDsRow("ds_temp_search"
  842. , [{col: "codeflag", val: "0106|0103|0109|0000|0210|0105|1005|"}]);
  843. // 서브밋호출
  844. var oParam = {};
  845. oParam.id = "TRLZZ00101";
  846. oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
  847. oParam.method = "reqGetInitCodeInfo";
  848. oParam.inds = "cond=ds_temp_search";
  849. oParam.outds = "ds_init_LB0106=0106 "
  850. +"ds_init_LB0103=0103 "
  851. +"ds_init_LB0109=0109 "
  852. +"ds_init_LB0000=0000 "
  853. +"ds_init_LB0210=0210 "
  854. +"ds_init_LB0105=0105 "
  855. +"ds_init_LB1005=1005 ";
  856. oParam.async = false;
  857. tranf_submit(oParam);
  858. fCMTPCD_ChangeNodeset();
  859. //model.refresh();
  860. }
  861. //스크립트 시작 ***
  862. //전체에서 event와 src를 제외한 script 를 모두포함.
  863. function fOnclick_btnRef()
  864. {
  865. if(utlf_isNull(ds_hidden_ref_tclscdlist.getColumn(0, "tclscdlist")))
  866. {
  867. sysf_messageBox("검사항목을","C002","") ;
  868. return;
  869. }
  870. var sworkseq = ds_hidden_refparam.getColumn(0, "sworkseq");
  871. var eworkseq = ds_hidden_refparam.getColumn(0, "eworkseq");
  872. // sworkseq = sworkseq.getLeftPad(4,"0");
  873. eworkseq = eworkseq.getLeftPad(4,"0");
  874. ds_hidden_refparam.setColumn( 0, "sworkseq" , sworkseq);
  875. ds_hidden_refparam.setColumn( 0, "eworkseq" , eworkseq);
  876. ds_hidden_refparam.setColumn( 0, "tclscdlist" , ds_hidden_ref_tclscdlist.getColumn(0, "tclscdlist"));
  877. ds_hidden_refparam.setColumn( 0, "tclscdlist2" , ds_hidden_ref_tclscdlist.getColumn(0, "tclscdlist2"));
  878. var rsltstat0 = ds_hidden_refparam.getColumn(0, "rsltstat0");
  879. var rsltstat1 = ds_hidden_refparam.getColumn(0, "rsltstat1");
  880. var rsltstat2 = ds_hidden_refparam.getColumn(0, "rsltstat2");
  881. if(rsltstat0 == "" && rsltstat1 == "" && rsltstat2 == ""){
  882. sysf_messageBox("결과구분을 하나이상","C002","") ;
  883. return;
  884. }
  885. // 결과구분 정의
  886. var isRstGbn0 = false; //결과미입력
  887. var isRstGbn1 = false; //결과입력
  888. var isRstGbn2 = false; //최종보고
  889. if(rsltstat0 == "1") isRstGbn0 = true;
  890. if(rsltstat1 == "1") isRstGbn1 = true;
  891. if(rsltstat2 == "1") isRstGbn2 = true;
  892. if (isRstGbn2) {
  893. ds_hidden_refparam.setColumn( 0, "rsltstat" , "3");
  894. } else {
  895. if (isRstGbn0 && isRstGbn1) {
  896. ds_hidden_refparam.setColumn( 0, "rsltstat" , "2");
  897. } else if (isRstGbn1) {
  898. ds_hidden_refparam.setColumn( 0, "rsltstat" , "1");
  899. } else {
  900. ds_hidden_refparam.setColumn( 0, "rsltstat" , "0");
  901. }
  902. }
  903. ds_send_data1.copyData(ds_hidden_refparam);
  904. dsf_makeValue( ds_send_data1, "userdeptflagcd", "string", ds_init_LB0000.getColumn(0, "nm"));
  905. // submit("TRLLR00403" , false);
  906. var oParam = {};
  907. oParam.id = "TRLLR00402";
  908. oParam.service = "rsltmngtapp.RsltMngt";
  909. oParam.method = "reqGetTestItemInfo2";
  910. oParam.inds = "refparam=ds_send_data1";
  911. oParam.outds = "ds_main_testinfo_patlist=patlist ds_main_testinfo_testlist=testlist ds_=BAK_TESTITEM ds_=testcont ds_main_testinfo_spcinfo=testcmts";
  912. oParam.async = false;
  913. //oParam.callback = "cf_TRLLR00403";
  914. tranf_submit(oParam);
  915. ds_main_testinfo_patlist.addColumn("bgcolor","string");
  916. ds_main_testinfo_patlist.addColumn("chk","string");
  917. ds_send_data1.copyData(ds_hidden_default);
  918. //model.refresh();
  919. fGrdReMake2();
  920. }
  921. //조회후 그리드 리메이크
  922. function fGrdReMake2(){
  923. //var vCdList = ds_hidden_ref_tclscdlist.getColumn(0, "tclscdlist2").split("▦");
  924. //var vCdCount = vCdList.length;
  925. //var vOrgrst = "";
  926. //var curCol = 0;
  927. var inodelist = ds_main_testinfo_patlist.rowcount;
  928. if(inodelist > 0 ){
  929. for (var row = 0; row <= ds_main_testinfo_patlist.rowcount; row++) {
  930. var l1 = "";
  931. var l2 = "";
  932. if (!utlf_isNull(ds_main_testinfo_patlist.getColumn(row, "inptrslt1"))) {
  933. l1 = ds_main_testinfo_patlist.getColumn(row, "inptrslt1").toString().replace("+", "");
  934. }
  935. var l2 = ds_main_testinfo_patlist.getColumn(row, "inptrslt3");
  936. if (l1 != l2) {
  937. // ds_main_testinfo_patlist.setColumn(row, "bgcolor", "#F56755");
  938. }else{
  939. ds_main_testinfo_patlist.setColumn(row, "bgcolor", "#FFFFFF");
  940. }
  941. }
  942. }
  943. var sExprBgColor = "";
  944. sExprBgColor = "EXPR(bgcolor)";
  945. //
  946. //for(var i=1; i<16; i++){
  947. for(var i=1; i<group3.grd_testlist.getCellCount("Head"); i++){
  948. group3.grd_testlist.setCellProperty("Body", i, "background" , sExprBgColor);
  949. group3.grd_testlist.setCellProperty("Body", i, "background2" , sExprBgColor);
  950. }
  951. }
  952. // alert(l1);
  953. //검사그룹 선택시 그리드 리 메이크
  954. function fGrdReMake(){
  955. if(!utlf_isNull(ds_hidden_ref_tclscdlist.getColumn(0, "tclscdlist"))){
  956. ds_main_testinfo_patlist.clearData();
  957. //trace("222 :"+group3.grd_testlist.getCellCount("body"));
  958. //model.refresh();
  959. if(group3.grd_testlist.getCellCount("head") > gStartCol){
  960. var cols = group3.grd_testlist.getCellCount("head") ;
  961. for(i= 16 ; i < cols ; i++)
  962. //trace("i :"+i);
  963. group3.grd_testlist.setFormatColProperty( i, "size", 0);
  964. }
  965. var caption = "^접수일시^바코드번호^등록번호^성명^성별^나이^진료과^병동_병실^의뢰의사^검체명";
  966. var vTclsnmA = ds_hidden_ref_tclscdlist.getColumn(0, "tclsnmlist2").split("▦");
  967. //trace("vTclsnmA :"+vTclsnmA+" / "+vTclsnmA.length);
  968. //
  969. // group3.grd_testlist.setFormatColProperty( 13, "size", 60);
  970. // group3.grd_testlist.setFormatColProperty( 14, "size", 60);
  971. // group3.grd_testlist.setFormatColProperty( 15, "size", 60);
  972. // group3.grd_testlist.setFormatColProperty( 16, "size", 60);
  973. //trace("vTclsnmA.length :"+vTclsnmA.length);
  974. for(i=0;i<vTclsnmA.length;i++){
  975. caption += "^" + vTclsnmA[i] ;
  976. //caption += "^" + '검사자' ;
  977. // caption += "^" + '편차' ;
  978. }
  979. caption += "^" + '편차' ;
  980. caption += "^" + ' ' ;
  981. //trace("caption :"+caption);
  982. var vTclsnmB = caption.split("^");
  983. //trace("vTclsnmB :"+vTclsnmB.length);
  984. for(i=0;i< vTclsnmB.length;i++){
  985. group3.grd_testlist.setCellProperty("head", i+1, "text" , vTclsnmB[i]);
  986. }
  987. //group3.grd_testlist.caption = caption;
  988. //group3.grd_testlist.setCellProperty("Head", 13, "text" , "aaa");
  989. //group3.grd_testlist.rebuild();
  990. }
  991. }
  992. function fPatGridClick(pRow,pCol, Event){
  993. trace("fPatGridClick aaaaa");
  994. var sDetilRow = fGetRow(pRow,pCol);
  995. //fCurrentHangMok(pCol);
  996. //결과코드 값 가져오기
  997. var testcd = ds_main_testinfo_testlist.getColumn(sDetilRow, "testcd");
  998. cmb_rslt.choices.itemset.attribute("nodeset") = "ds_init_LB0109[etc01='"+ testcd +"']";
  999. if(sDetilRow > 0){
  1000. ds_hidden.setColumn( 0, "currenRow", sDetilRow);
  1001. dsf_makeValue( ds_main_testinfo_spcinfo, "spcscrnnm", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "spcscrnnm"));
  1002. dsf_makeValue( ds_main_testinfo_spcinfo, "refval", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "refval"));
  1003. dsf_makeValue( ds_main_testinfo_spcinfo, "judgmark", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "judgmark"));
  1004. dsf_makeValue( ds_main_testinfo_spcinfo, "panicmark", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "panicmark"));
  1005. dsf_makeValue( ds_main_testinfo_spcinfo, "deltamark", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "deltamark"));
  1006. dsf_makeValue( ds_main_testinfo_spcinfo, "criticalmark", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "criticalmark"));
  1007. dsf_makeValue( ds_main_testinfo_spcinfo, "alertmark", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "alertmark"));
  1008. dsf_makeValue( ds_main_testinfo_spcinfo, "rsltmark", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "rsltmark"));
  1009. dsf_makeValue( ds_main_testinfo_spcinfo, "reptrslt", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "reptrslt"));
  1010. dsf_makeValue( ds_main_testinfo_spcinfo, "bfreptrslt", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "bfreptrslt"));
  1011. dsf_makeValue( ds_main_testinfo_spcinfo, "bflastreptdt", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "bflastreptdt"));
  1012. dsf_makeValue( ds_main_testinfo_spcinfo, "testeqmtcd", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "testeqmtcd"));
  1013. dsf_makeValue( ds_main_testinfo_spcinfo, "rsltrgsgnm", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "rsltrgsgnm"));
  1014. dsf_makeValue( ds_main_testinfo_spcinfo, "mdlreptnm", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "mdlreptnm"));
  1015. dsf_makeValue( ds_main_testinfo_spcinfo, "lastreptnm", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "lastreptnm"));
  1016. //dsf_makeValue( ds_main_testinfo_spcinfo, "comment", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "comment"));
  1017. dsf_makeValue( ds_main_testinfo_spcinfo, "testcmt", "string", ds_main_testinfo_testlist.getColumn(sDetilRow, "testcmt"));
  1018. dsf_makeValue( ds_main_testinfo_spcinfo, "testcont", "string", "");
  1019. dsf_makeValue( ds_main_testinfo_spcinfo, "testcmts", "string", ""); //검사항목별소견
  1020. /*
  1021. var vJudg = ds_main_testinfo_testlist.getColumn(sDetilRow, "judgmark");
  1022. if(vJudg == "H"){
  1023. group3.datagrid2.cellStyle ("background-color",1,0,1,0) = "#f7a08b";
  1024. }
  1025. else if(vJudg == "L"){
  1026. group3.datagrid2.cellStyle ("background-color",1,0,1,0) = "#b9e5fb";
  1027. }
  1028. else{
  1029. group3.datagrid2.cellStyle ("background-color",1,0,1,0) = "#ffffff";
  1030. }
  1031. //panic
  1032. var vPanic = ds_main_testinfo_testlist.getColumn(sDetilRow, "panicmark");
  1033. if(vPanic == "P"){
  1034. group3.datagrid2.cellStyle ("background-color",1,1,1,1) = "#7BE6B7";
  1035. //group3.datagrid2.cellStyle ("background-color",1,1,1,1) = "#7BE6B7";
  1036. }
  1037. else{
  1038. group3.datagrid2.cellStyle ("background-color",1,1,1,1) = "#ffffff";
  1039. }
  1040. //delta
  1041. var vDelta = ds_main_testinfo_testlist.getColumn(sDetilRow, "deltamark");
  1042. if(vDelta == "D"){
  1043. group3.datagrid2.cellStyle ("background-color",1,2,1,2) = "#dec6a4";
  1044. //grd_TestInfoCnts.cellstyle("background-color" , i,4) = "#7BE6B7";
  1045. }
  1046. else{
  1047. group3.datagrid2.cellStyle ("background-color",1,2,1,2) = "#ffffff";
  1048. }
  1049. //critical
  1050. var vCritical = ds_main_testinfo_testlist.getColumn(sDetilRow, "criticalmark");
  1051. if(vCritical == "C"){
  1052. group3.datagrid2.cellStyle ("background-color",1,3,1,3) = "#ffe79d";
  1053. //grd_TestInfoCnts.cellstyle("background-color" , i,4) = "#7BE6B7";
  1054. }
  1055. else{
  1056. group3.datagrid2.cellStyle ("background-color",1,3,1,3) = "#ffffff";
  1057. }
  1058. //alert
  1059. var vAlert= ds_main_testinfo_testlist.getColumn(sDetilRow, "alertmark");
  1060. if(vAlert == "A"){
  1061. group3.datagrid2.cellStyle ("background-color",1,4,1,4) = "#fec34d";
  1062. //grd_TestInfoCnts.cellstyle("background-color" , i,4) = "#7BE6B7";
  1063. }
  1064. else{
  1065. group3.datagrid2.cellStyle ("background-color",1,4,1,4) = "#ffffff";
  1066. }
  1067. if(Event != "M") { //이벤트가 mousemove가 아닐때..
  1068. var vSectcd = ds_main_testinfo_testlist.getColumn(sDetilRow, "sectcd");
  1069. var vTsectcd = ds_main_testinfo_testlist.getColumn(sDetilRow, "tsectcd");
  1070. fCMTPCD_ChangeNodeset(vSectcd, vTsectcd, sDetilRow);
  1071. fInitializeSoGyeon(sDetilRow); //소견 조회초기화
  1072. }
  1073. */
  1074. //model.refresh();
  1075. }
  1076. else{
  1077. ds_hidden.setColumn( 0, "currenRow", "");
  1078. ds_main_testinfo_spcinfo.clearData();
  1079. ds_main_testinfo_spcinfo.addRow();
  1080. //model.refresh();
  1081. }
  1082. }
  1083. // 환자 선택, 취소 클릭
  1084. function fSelectCancle() {
  1085. pCol = group3.grd_testlist.col;
  1086. pRow = group3.grd_testlist.row;
  1087. if(pRow == 0) {
  1088. for(i = 1; i < group3.grd_testlist.rows; i++) {
  1089. var isChk = ds_main_testinfo_patlist.getColumn(i, "chk");
  1090. var vWorkno = ds_main_testinfo_patlist.getColumn(i, "workno");
  1091. var vCdList = ds_hidden_refparam.getColumn(0, "tclscdlist2").split("▦");
  1092. if (isChk == "true") {
  1093. group3.grd_testlist.setCellProprty("body", i, "background", "#f3e1bf"); grd_testlist.setCellProperty("body", i, "background2", "#f3e1bf");
  1094. } else {
  1095. group3.grd_testlist.setCellProprty("body", i, "background", "#FFFFFF"); grd_testlist.setCellProperty("body", i, "background2", "#FFFFFF");
  1096. fGrdReMake2();
  1097. }
  1098. for (var idx=0; idx < vCdList.length; idx++) {
  1099. var vInptRslt = "";
  1100. vInptRslt = "inptrslt" + (eval(idx+1) );
  1101. var readonly = model.getValue("ds_main_testinfo_patlist["+ i +"]/"+vInptRslt+"//readonly");
  1102. var rstval = model.getValue("ds_main_testinfo_patlist["+ i +"]/"+vInptRslt);
  1103. if (readonly == "false") {
  1104. col = idx + gStartCol;
  1105. var refRow = fGetRow(i, col);
  1106. if(rstval == ""){
  1107. ds_main_testinfo.setColumn( refRow , "iud", "");
  1108. }else{
  1109. // 수정된항목 색변경
  1110. // group3.grd_testlist.cellStyle("background-color", i, col, i, col) = "#f3e1bf";
  1111. ds_main_testinfo.setColumn( refRow , "iud", (isChk != "true") ? "" : "U");
  1112. }
  1113. }
  1114. }
  1115. }
  1116. } else {
  1117. var isChk = ds_main_testinfo_patlist.getColumn(pRow, "chk");
  1118. var vWorkno = ds_main_testinfo_patlist.getColumn(pRow, "workno");
  1119. var vCdList = ds_hidden_refparam.getColumn(0, "tclscdlist2").split("▦");
  1120. if (isChk == "true") {
  1121. group3.grd_testlist.setCellProprty("body", pRow, "background", "#f3e1bf"); grd_testlist.setCellProperty("body", pRow, "background2", "#f3e1bf");
  1122. } else {
  1123. group3.grd_testlist.setCellProprty("body", pRow, "background", "#FFFFFF"); grd_testlist.setCellProperty("body", pRow, "background2", "#FFFFFF");
  1124. fGrdReMake2();
  1125. }
  1126. for (var idx=0; idx < vCdList.length; idx++) {
  1127. var vInptRslt = "";
  1128. vInptRslt = "inptrslt" + (eval(idx+1) );
  1129. var readonly = model.getValue("ds_main_testinfo_patlist["+pRow+"]/"+vInptRslt+"//readonly");
  1130. var rstval = model.getValue("ds_main_testinfo_patlist["+pRow+"]/"+vInptRslt);
  1131. if (readonly == "false") {
  1132. //var find = group3.grd_testlist.findRow("true", 1, 1, true, true);
  1133. col = idx + gStartCol;
  1134. //group3.grd_testlist.col = col;
  1135. //group3.grd_testlist.row = pRow;
  1136. group3.grd_testlist.select(pRow, col) = true;
  1137. var refRow = fGetRow(pRow, col);
  1138. if(rstval == ""){
  1139. ds_main_testinfo.setColumn( refRow , "iud", "");
  1140. }else{
  1141. // 수정된항목 색변경
  1142. // group3.grd_testlist.cellStyle("background-color", pRow, col, pRow, col) = "#f3e1bf";
  1143. ds_main_testinfo.setColumn( refRow , "iud", (isChk != "true") ? "" : "U");
  1144. }
  1145. }
  1146. }
  1147. }
  1148. //결과코드 값 가져오기
  1149. var testcd = ds_main_testinfo_testlist.getColumn(refRow, "testcd");
  1150. cmb_rslt.choices.itemset.attribute("nodeset") = "ds_init_LB0109[etc01='"+ testcd +"']";
  1151. //model.refresh();
  1152. }
  1153. //소견 노드 셋팅
  1154. function fCMTPCD_ChangeNodeset(pSectcd, pTsectcd, refRow) {
  1155. ds_hidden_testconttsectcd.clearData();
  1156. ds_hidden_testconttsectcd.addRow();
  1157. var sFilter = "cd =='00'";
  1158. if(typeof(pSectcd) == "undefined") {
  1159. //group3.cmb_cmt.choices.itemset.attribute("nodeset") ="ds_init_LB0210[cd='00']";
  1160. //group3.cmb_cmt.innerdataset ="ds_init_LB0210[cd='00']";
  1161. //ds_init_LB0210.filter(sFilter);
  1162. //ds_hidden_testcont.setColumn( 0, "testcontcd", "-");
  1163. } else {
  1164. //group3.cmb_cmt.choices.itemset.attribute("nodeset")="ds_init_LB0210[cd='00' or (etc01='" + pSectcd + "' and etc02='" + pTsectcd + "')]";
  1165. }
  1166. // ds_hidden_testcont.setColumn( 0, "testcontcd" , "00");
  1167. //group3.cmb_cmt.refresh();
  1168. var vCmtTsect = ds_main_testinfo_testlist.getColumn(refRow, "tsectcd");
  1169. ds_hidden.setColumn( 0, "testconttsectcd[1]_cd", "00");
  1170. ds_hidden.setColumn( 0, "testconttsectcd[1]_nm", "- 시행부서선택 -");
  1171. if(vCmtTsect != ""){
  1172. //model.makeValue("ds_hidden_testconttsectcd[2]_cd" , vCmtTsect);
  1173. //model.makeValue("ds_hidden_testconttsectcd[2]_nm" ,
  1174. //ds_init_LB0106.lookupExpr("cd == '" + vCmtTsect + "'", "nm");
  1175. }
  1176. else{
  1177. ds_hidden_testcont.setColumn( 0, "tsectcd" , "00");
  1178. }
  1179. //group3.cmb_sect.refresh();
  1180. }
  1181. //시행부서선택시 소견노드 셋팅
  1182. function fCMTPCD_ChangeNodeset2(){
  1183. var tsectcd = ds_hidden_testcont.getColumn(0, "tsectcd");
  1184. if(tsectcd == "00"){
  1185. group3.cmb_cmt.choices.itemset.attribute("nodeset") ="ds_init_LB0210[cd='00']";
  1186. }
  1187. else{
  1188. group3.cmb_cmt.choices.itemset.attribute("nodeset")="ds_init_LB0210[cd='00' or (etc02='" + tsectcd + "')]" ;
  1189. }
  1190. ds_hidden_testcont.setColumn( 0, "testcontcd" , "00");
  1191. //group3.cmb_cmt.refresh();
  1192. }
  1193. //소견 초기화
  1194. function fInitializeSoGyeon(refRow){
  1195. var cntTsect = ds_hidden_testconttsectcd.rowcount;
  1196. var cntSG = ds_main_testinfo_testcont.rowcount;
  1197. var curTsect = "";
  1198. var strSG = "";
  1199. var plusIdx = 1;
  1200. /*if(cntSG == 0){
  1201. dsf_makeValue( ds_main_testinfo, "testcont", "string", "" );
  1202. }
  1203. for(var sNum = 2; sNum <= cntTsect; sNum++){
  1204. curTsect = ds_hidden_testconttsectcd.getColumn(sNum, "cd"));
  1205. if(ds_main_testinfo_testcont.lookupExpr("execdeptcd == '" + curTsect + "'", "execdeptcd") == ""){
  1206. var SG = parseInt(cntSG)+parseInt(plusIdx);
  1207. model.makeNode("ds_main_testinfo_testcont[" + SG + "]_testcontcd");
  1208. model.makeNode("ds_main_testinfo_testcont[" + SG + "]_execdeptcd");
  1209. model.makeNode("ds_main_testinfo_testcont[" + SG + "]_testcont");
  1210. model.makeNode("ds_main_testinfo_testcont[" + SG + "]_testcontkind");
  1211. //model.makeNode("ds_main_TestInfo_testcont[" + (cntSG+plusIdx) + "]_rsltstat");
  1212. model.makeNode("ds_main_testinfo_testcont[" + SG+ "]_iud");
  1213. ds_main_testinfo.setColumn( SG , "execdeptcd", curTsect);
  1214. ds_main_testinfo.setColumn( SG , "iud", "n");
  1215. plusIdx++;
  1216. }
  1217. }
  1218. */
  1219. if(cntTsect == 2){
  1220. ds_hidden_testcont.setColumn( 0, "tsectcd", ds_hidden_testconttsectcd.getColumn(2, "cd"));
  1221. ds_hidden_testcont.setColumn( 0, "testcontcd", "00");
  1222. }else{
  1223. ds_hidden_testcont.setColumn( 0, "tsectcd", "00");
  1224. ds_hidden_testcont.setColumn( 0, "testcontcd", "00");
  1225. }
  1226. fSelectTestContTsect(refRow);
  1227. //dsf_makeValue( ds_hidden_refflag, "p_isedit", "string", "");
  1228. //
  1229. //model.refresh();
  1230. }
  1231. //선택 시행부서 소견
  1232. function fSelectTestContTsect(refRow){
  1233. var selTsectcd = ds_hidden_testcont.getColumn(0, "tsectcd").getTrim();
  1234. var vSectcd = "";
  1235. var vTsectcd = "";
  1236. var vBcno = "";
  1237. var vTestcd = "";
  1238. if(refRow != "return") {
  1239. vSectcd = ds_main_testinfo_testlist.getColumn(refRow, "sectcd");
  1240. vTsectcd = ds_main_testinfo_testlist.getColumn(refRow, "tsectcd");
  1241. vBcno = ds_main_testinfo_testlist.getColumn(refRow, "bcno");
  1242. vTestcd = ds_main_testinfo_testlist.getColumn(refRow, "testcd");
  1243. }else{//소견 시행부서 변경시 그냥 return
  1244. return;
  1245. }
  1246. //오류있음.. 전체 선택시 해당 검체의 모든 시행부서 소견을 가져와야 하나 다른 검체 소견 같이 가져옴..
  1247. //주석처리합니다.20100205
  1248. /*var cntSoGyeon = ds_main_testinfo_testcont.rowcount; //소견 저장 개수
  1249. var strSG = "";
  1250. if(selTsectcd == "00"){
  1251. for(var slipR = 1; slipR <= cntSoGyeon; slipR++){
  1252. if(ds_main_testinfo_testcont.getColumn(slipR, "iud")) != "n"){
  1253. strSG += "【" + ds_main_testinfo_testcont.getColumn(slipR, "execdeptcd")) + "】"
  1254. + ds_main_testinfo_testcont.getColumn(slipR, "testcont")) + "\n";
  1255. }
  1256. }
  1257. }else{
  1258. for(var slipR = 1; slipR <= cntSoGyeon; slipR++){
  1259. if(ds_main_testinfo_testcont.getColumn(slipR, "execdeptcd")) == vTsectcd){
  1260. if(ds_main_testinfo_testcont.getColumn(slipR, "bcno")) == vBcno){
  1261. strSG += ds_main_testinfo_testcont.getColumn(slipR, "testcont")) + "\n";
  1262. //strSG += "【" + selSlip + "】"
  1263. // + ds_MainData_GSHMSangSe_GeomSaSoGyeon.getColumn(slipR, "cmtp")) + "\n";
  1264. }
  1265. }
  1266. }
  1267. }*/
  1268. //시행부서별 소견 전체는.. 걍 버리고 해당 검사 시행부서 소견만 조회
  1269. ds_main_testinfo_spcinfo.setColumn( 0, "testcont"
  1270. , model.getValue("ds_main_testinfo_testcont[bcno = '"+ vBcno + "' and execdeptcd = '" + selTsectcd + "']_testcont"));
  1271. //검사항목별 소견 추가----------------
  1272. // ds_main_testinfo_spcinfo.setColumn( 0, "testcmts"
  1273. // , model.getValue("ds_main_testinfo_testcmts[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']_testcont") != "" ?
  1274. // model.getValue("ds_main_testinfo_testcmts[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']_testcont") : ds_main_testinfo_testlist.getColumn(refRow, "tclsscrnnm")) + " : ");
  1275. //model.refresh();
  1276. }
  1277. //소견 선택시
  1278. function fSetCmt(pRow,pCol){
  1279. var sDetilRow = fGetRow(pRow,pCol); //testlist row 조회
  1280. var curSlip = ds_hidden_testcont.getColumn(0, "tsectcd");
  1281. var curCmptcd = ds_hidden_testcont.getColumn(0, "testcontcd");
  1282. if(curSlip == "00"){
  1283. //TFGetMsgBox( -1, "소견을 입력할 슬립을 지정하여 주세요", "소견입력오류", "I", "OK" );
  1284. ds_hidden_testcont.setColumn( 0, "testcontcd", "00");
  1285. //model.refresh();
  1286. return;
  1287. }
  1288. var vSectcd = ds_main_testinfo_testlist.getColumn(sDetilRow, "sectcd");
  1289. var vTsectcd = ds_main_testinfo_testlist.getColumn(sDetilRow, "tsectcd");
  1290. var newCmt = model.getValue("ds_init_LB0210[cd='" + curCmptcd + "' and etc01='" + vSectcd + "' and etc02='" + vTsectcd + "']_etc03");
  1291. var vContFlag = ds_hidden.getColumn(0, "cmtflag");
  1292. if(vContFlag == 1){ //시행부서별 소견
  1293. var curCmt = ds_main_testinfo_spcinfo.getColumn(0, "testcont");
  1294. if(curCmt == "\n" || curCmt=="") {
  1295. var rstCmt = newCmt;
  1296. } else{
  1297. var rstCmt = curCmt + "\n" + newCmt;
  1298. }
  1299. ds_main_testinfo_spcinfo.setColumn( 0, "testcont", rstCmt);
  1300. group3.textarea3.selBegin = (rstCmt).length;
  1301. }else{ //검사항목별 소견
  1302. var curCmt = ds_main_testinfo_spcinfo.getColumn(0, "testcmts");
  1303. var rstCmt = curCmt + " " + newCmt;
  1304. ds_main_testinfo_spcinfo.setColumn( 0, "testcmts", rstCmt);
  1305. group3.text_testcmts.selBegin = (rstCmt).length;
  1306. }
  1307. //
  1308. //model.refresh();
  1309. fSoGyeonJeoJang(vContFlag);
  1310. }
  1311. //소견저장
  1312. function fSetContCmt(pRow,pCol){
  1313. var sDetilRow = fGetRow(pRow,pCol); //testlist row 조회
  1314. if(ds_hidden_refparam.getColumn(0, "userid") == "" || ds_main_getUsernm.getColumn(0, "usernm") == ""){
  1315. sysf_messageBox("검사자를 " , "C001" ,"");
  1316. ipt_testpsn.setFocus();
  1317. return;
  1318. }
  1319. /* 결과 저장시 소견 입력 여부에 따라 등록되지 않은게 있다면 같이 저장하기 위해 막음
  1320. if(ds_main_testinfo_testlist.getColumn(sDetilRow, "rsltstat")) == "-") {
  1321. sysf_messageBox("소견등록은 결과저장 이후에 가능합니다. " , "C" ,"");
  1322. return;
  1323. }*/
  1324. /*if(ds_main_testpatlist_patlist.getColumn(grd_patList.row, "rsltstat")) == "4") {
  1325. sysf_messageBox("최종보고된 검체의 소견은 수정할수 없습니다." , "C" ,"");
  1326. return;
  1327. }*/
  1328. if (ds_hidden_refflag.getColumn(0, "p_isedit") != "true"
  1329. && model.getxPathValue('count(ds_main_testinfo_testcmts[m = ""])') == "0") {
  1330. sysf_messageBox("소견을 입력 하세요!" , "C" ,"");
  1331. return;
  1332. }
  1333. ds_send.setColumn( 0, "data1", "m▦rownum▦selchk▦tclsscrnm▦bufinptrslt▦reptrslt▦multiflag▦rstdt▦refval▦rsltunit▦judgmark▦panicmark▦deltamark▦criticalmark▦alertmark▦▦▦rsltmark▦erprcpflag▦bfreptrslt▦bflastreptdt▦rstnm▦eqmtnm▦testcmt▦tclskind▦testcd▦spccd▦rsltseq▦inptrslt▩");
  1334. ds_hidden_refflag.setColumn( 0, "bcno", ds_main_testinfo_testlist.getColumn(sDetilRow, "bcno"));
  1335. ds_hidden_refflag.setColumn( 0, "rsltstat", "1");
  1336. ds_hidden_refflag.setColumn( 0, "testlrgkind", "-");
  1337. ds_hidden_refflag.setColumn( 0, "userid", ds_hidden_refparam.getColumn(0, "userid"));
  1338. //여러 검체 동시에 일괄 저장 때리기 위한 구분
  1339. dsf_makeValue( ds_hidden_refflag, "rsltscrflag", "string", "test");
  1340. ds_send_data2.copyData(ds_hidden_refflag);
  1341. //시행부서별, 검사항목별 소견 저장데이터 생성
  1342. fMakeSendSoGyeon();
  1343. }
  1344. //소견 저장을 위한 소견 데이터 만들기
  1345. function fMakeSendSoGyeon(){
  1346. //시행부서별 소견
  1347. var cntSG = ds_main_testinfo_testcont.rowcount; //소견 저장 개수
  1348. var vSndSG = "m▦bcno▦testcontcd▦execdeptcd▦testcont▦testcontkind▩";
  1349. for(var i = 1; i <= cntSG; i++){
  1350. if(ds_main_testinfo_testcont.getColumn(i, "iud") != ""){
  1351. vSndSG += "u" + "▦" //i로 넣었다 왜 u로 넣고 있어? ㅡ,.ㅡ
  1352. + ds_main_testinfo_testcont.getColumn(i, "bcno") + "▦"
  1353. + ds_main_testinfo_testcont.getColumn(i, "testcontcd") + "▦"
  1354. + ds_main_testinfo_testcont.getColumn(i, "execdeptcd") + "▦"
  1355. + ds_main_testinfo_testcont.getColumn(i, "testcont") + "▦"
  1356. + ds_main_testinfo_testcont.getColumn(i, "testcontkind") + "▩";
  1357. }
  1358. }
  1359. dsf_makeValue( ds_send, "data3", "string", vSndSG);
  1360. //검사항목별 소견
  1361. var vSndTestcmts = "m▦bcno▦tclscd▦testcd▦spccd▦rsltseq▦testcontcd▦testcont▦flag▩";
  1362. var vTestCmtCounts = model.getxPathValue('count(ds_main_testinfo_testcmts)');
  1363. var xPath = "ds_main_testinfo_testcmts";
  1364. for (j = 1; j <= vTestCmtCounts; j++){
  1365. if(eval(xPath).getColumn(j, "m") != ""){
  1366. vSndTestcmts += eval(xPath).getColumn(j, "m") + "▦"
  1367. + eval(xPath).getColumn(j, "bcno") + "▦"
  1368. + eval(xPath).getColumn(j, "tclscd") + "▦"
  1369. + eval(xPath).getColumn(j, "testcd") + "▦"
  1370. + eval(xPath).getColumn(j, "spccd") + "▦"
  1371. + eval(xPath).getColumn(j, "rsltseq") + "▦"
  1372. + eval(xPath).getColumn(j, "testcontcd") + "▦"
  1373. + eval(xPath).getColumn(j, "testcont") + "▦"
  1374. + "2▩"; //소견만 저장하기때문에 2보냄 결과등록시와 소견만 저장시 결과seq때문에..
  1375. }
  1376. }
  1377. dsf_makeValue( ds_send, "data4", "string", vSndTestcmts);
  1378. // submit("TXLLR80101",false);
  1379. var oParam = {};
  1380. oParam.id = "TXLLR80101";
  1381. oParam.service = "rsltmngtapp.RsltMngt";
  1382. oParam.method = "reqSetResultSave";
  1383. oParam.inds = "TestData=ds_ RefFalg=ds_ SpcCmtInfo=ds_ TestCmtInfo=ds_";
  1384. oParam.async = false;
  1385. oParam.callback = "cf_TXLLR80101";
  1386. tranf_submit(oParam);
  1387. /*
  1388. function cf_TXLLR80101(sSvcId, nErrorCode, sErrorMsg) {
  1389. if(nErrorCode < 0) return;
  1390. }
  1391. function cf_TXLLR80101(sSvcId, nErrorCode, sErrorMsg) {
  1392. arErrorCode.push(sSvcId, nErrorCode);
  1393. }
  1394. arErrorCode.pop("TXLLR80101") > -1
  1395. arErrorCode.pop("TXLLR80101") < 0
  1396. */
  1397. //저장 후 소견 iud초기화
  1398. for (j = 1; j <= vTestCmtCounts; j++){
  1399. eval(xPath).setColumn( j, "m", "");
  1400. }
  1401. ds_hidden_refflag.setColumn( 0, "p_isedit", "");
  1402. ds_send_data2.clearData(); //아씨..이게 소견저장할때와 검사결과 저장할때 같은 노드임 ㅡ,.ㅡ
  1403. dsf_makeValue( ds_send, "data2", "string", "" );
  1404. //model.refresh();
  1405. }
  1406. //소견내용이 바뀔경우
  1407. function fSoGyeonJeoJang(pRef){ //pRef : 소견구분 1:시행부서별, 2:검사항목별
  1408. var curSlip = ds_hidden_testcont.getColumn(0, "tsectcd");
  1409. var curCmptcd = ds_hidden_testcont.getColumn(0, "testcontcd");
  1410. var vCmtp = ds_main_testinfo_spcinfo.getColumn(0, "testcont"); //시행부서별 소견
  1411. var vTestCmts = ds_main_testinfo_spcinfo.getColumn(0, "testcmts"); //검사항목별 소견
  1412. var vNodeCnt, vContNodeCount;
  1413. var vRow = fGetRow(group3.grd_testlist.row,group3.grd_testlist.col);
  1414. var vBcno = ds_main_testinfo_testlist.getColumn(vRow, "bcno");
  1415. var vTestcd = ds_main_testinfo_testlist.getColumn(vRow, "testcd"); //검사코드
  1416. var vTsectcd = ds_main_testinfo_testlist.getColumn(vRow, "tsectcd"); //시행부서
  1417. var vTclscd, vSpccd, vRsltseq;
  1418. if(curSlip == "-"){
  1419. return;
  1420. }
  1421. if(pRef == 1){ //시행부서별 소견
  1422. var xPath_Cont = "ds_main_testinfo_testcont";
  1423. //해당 바코드, 시행부서 노드 존재 여부 판단 위해
  1424. vNodeCnt = model.getxPathValue('count(ds_main_testinfo_testcont[bcno = "'+ vBcno + '" and execdeptcd = "'+ vTsectcd + '"]_testcont)');
  1425. if(String(vCmtp).trim() == "" || String(vCmtp).trim() == "-"){
  1426. if(vNodeCnt > 0){ //소견 변경했는데 소견이 빈값이고 저장된 소견이 존재 할 경우
  1427. model.setValue(xPath_Cont + "[bcno = '" + vBcno + "' and execdeptcd = '" + vTsectcd + "' ]_testcontcd", "-");
  1428. model.setValue(xPath_Cont + "[bcno = '" + vBcno + "' and execdeptcd = '" + vTsectcd + "' ]_testcont", "-");
  1429. //시행부서별 소견은 무조건 넣고 이력쌓아서 무조건 i로 날림
  1430. model.setValue(xPath_Cont + "[bcno = '" + vBcno + "' and execdeptcd = '" + vTsectcd + "' ]_iud", "i");
  1431. model.setValue(xPath_Cont + "[bcno = '" + vBcno + "' and execdeptcd = '" + vTsectcd + "' ]_testcontkind", "3"); //이건 어떤 용도?
  1432. }else{
  1433. return; //소견내용 없고 저장된소견도 없을때 return;
  1434. }
  1435. }else{
  1436. if(vNodeCnt > 0){ //소견 존재시 setValue
  1437. model.setValue(xPath_Cont + "[bcno = '" + vBcno + "' and execdeptcd = '" + vTsectcd + "' ]_testcontcd", curCmptcd);
  1438. model.setValue(xPath_Cont + "[bcno = '" + vBcno + "' and execdeptcd = '" + vTsectcd + "' ]_testcont", vCmtp);
  1439. model.setValue(xPath_Cont + "[bcno = '" + vBcno + "' and execdeptcd = '" + vTsectcd + "' ]_iud", "i");
  1440. }else{ //없을때 만들어 넣기
  1441. vContNodeCount = model.getxPathValue('count(ds_main_testinfo_testcont)');
  1442. vContNodeCount = parseInt(vContNodeCount) + 1;
  1443. model.makeValue(xPath_Cont + "[" + vContNodeCount + "]_iud" , "i")
  1444. //model.makeValue(xPath_Cont + "[" + vContNodeCount + "]_bcno" , vBcno)
  1445. eval(xPath_Cont).setColumn(vContNodeCount, "bcno", vBcno);//model.makeValue(xPath_Cont + "[" + vContNodeCount + "]_testcontcd" , curCmptcd)
  1446. eval(xPath_Cont).setColumn(vContNodeCount, "testcontcd", curCmptcd);//model.makeValue(xPath_Cont + "[" + vContNodeCount + "]_testcont" , vCmtp)
  1447. eval(xPath_Cont).setColumn(vContNodeCount, "testcont", vCmtp);model.makeValue(xPath_Cont + "[" + vContNodeCount + "]_testcontkind" , "01")
  1448. //model.makeValue(xPath_Cont + "[" + vContNodeCount + "]_execdeptcd" , vTsectcd)
  1449. eval(xPath_Cont).setColumn(vContNodeCount, "execdeptcd", vTsectcd);}
  1450. ds_hidden_refflag.setColumn( 0, "p_isedit", "true"); //저장할거 생겼다.
  1451. }
  1452. }else{ //검사항목별 소견
  1453. var xPath_TestCmts = "ds_main_testinfo_testcmts";
  1454. //검사별 소견 노드 존재 여부
  1455. vNodeCnt = model.getxPathValue('count(ds_main_testinfo_testcmts[bcno = "'+ vBcno + '" and testcd = "'+ vTestcd + '"]_testcont)');
  1456. //소견을 수정했는데 빈값일경우
  1457. if(String(vTestCmts).trim() == ""){
  1458. if(vNodeCnt > 0){
  1459. if(model.getvalue("ds_main_testinfo_testcmts[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']_m") == "i"){
  1460. //신규로 저장하고자 존재 했다면 노드 삭제
  1461. model.removeNode("ds_main_testinfo_testcmts[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']");
  1462. }else{ //u, d일경우 d로 변경
  1463. ds_main_testinfo.setColumn( 0, "testcmts[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']_m", "d");
  1464. model.setValue(xPath_TestCmts + "[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']_testcont", vTestCmts);
  1465. }
  1466. }
  1467. return;
  1468. }
  1469. if( vNodeCnt > 0){
  1470. model.setValue(xPath_TestCmts + "[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']_testcont", vTestCmts);
  1471. model.setValue(xPath_TestCmts+ "[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']_testcontcd", curCmptcd);
  1472. if(model.getvalue(xPath_TestCmts + "[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']_m") == "i"){ //신규 소견등록시
  1473. //저장 내역 조회될때 m에는 빈값, 신규 저장시 i넣어주고, 수정될때 u로 바꿈
  1474. model.setValue(xPath_TestCmts + "[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']_m", "i");
  1475. }else{
  1476. //신규저장이 아니면 저장내역으로 보고 u로 변경
  1477. model.setValue(xPath_TestCmts + "[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']_m", "u");
  1478. }
  1479. }else{ //없다면 makeValue
  1480. vContNodeCount = model.getxPathValue('count(ds_main_testinfo_testcmts)');
  1481. vTclscd = ds_main_testinfo_testlist.getColumn(vRow, "tclscd");
  1482. vSpccd = ds_main_testinfo_testlist.getColumn(vRow, "spccd");
  1483. vRsltseq = ds_main_testinfo_testlist.getColumn(vRow, "rsltseq");
  1484. vContNodeCount = parseInt(vContNodeCount) +1;
  1485. model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]_m" , "i")
  1486. //model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]_bcno" , vBcno);
  1487. eval(xPath_TestCmts).setColumn(vContNodeCount, "bcno", vBcno);
  1488. //model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]_tclscd" , vTclscd);
  1489. eval(xPath_TestCmts).setColumn(vContNodeCount, "tclscd", vTclscd);
  1490. //model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]_testcd" , vTestcd);
  1491. eval(xPath_TestCmts).setColumn(vContNodeCount, "testcd", vTestcd);
  1492. //model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]_spccd" , vSpccd);
  1493. eval(xPath_TestCmts).setColumn(vContNodeCount, "spccd", vSpccd);
  1494. //model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]_rsltseq" , vRsltseq);
  1495. eval(xPath_TestCmts).setColumn(vContNodeCount, "rsltseq", vRsltseq);
  1496. //model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]_testcontcd", curCmptcd);
  1497. eval(xPath_TestCmts).setColumn(vContNodeCount, "testcontcd", curCmptcd);
  1498. //model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]_testcont" , vTestCmts)
  1499. eval(xPath_TestCmts).setColumn(vContNodeCount, "testcont", vTestCmts);}
  1500. ds_hidden_refflag.setColumn( 0, "p_isedit", "true"); //저장할거 생겼다.
  1501. //
  1502. }
  1503. //model.refresh();
  1504. }
  1505. //선택한 testlist row 알기
  1506. function fGetRow(pRow, pCol) {
  1507. var findRow = pRow;
  1508. if (!pRow>0) return 0;
  1509. if (pCol < gStartCol) {
  1510. } else {
  1511. var vWorkno = ds_main_testinfo_patlist.getColumn(pRow, "workno").getTrim();
  1512. var vCdList = ds_hidden_refparam.getColumn(0, "tclscdlist2").split("▦");
  1513. var vIdx = parseInt(pCol) - parseInt(gStartCol);
  1514. if(vCdList.length > vIdx) {
  1515. var vRkey = vWorkno+vCdList[vIdx].getTrim();
  1516. findRow = group3.datagrid1.findRow(vRkey, 1,1, false, true);
  1517. }
  1518. return findRow;
  1519. }
  1520. return 0;
  1521. }
  1522. function fCvtViewResult(pInptRslt, pRefRow, pMatch) {
  1523. trace('99999999999999');
  1524. var vRow = pRefRow;
  1525. if (typeof(pMatch) == "undefined") pMatch = false
  1526. // 실제 결과
  1527. var vBufInptRslt = pInptRslt;
  1528. // 입력결과와 기존의 결과가 같으면 판정안함...
  1529. if (!pMatch) {
  1530. ds_main_testinfo.setColumn( vRow , "inptrslt", vBufInptRslt);
  1531. var colorTF = false;
  1532. var vRsltkind = ds_main_testinfo_testlist.getColumn(vRow, "testrsltkind");
  1533. var vRsltintsize = ds_main_testinfo_testlist.getColumn(vRow, "rsltintsize");
  1534. var vRsltdcmlsize = ds_main_testinfo_testlist.getColumn(vRow, "rsltdcmlsize");
  1535. var vRundkind = ds_main_testinfo_testlist.getColumn(vRow, "rundkind");
  1536. var vNvalrsltlimyn = ds_main_testinfo_testlist.getColumn(vRow, "nvalrsltlimyn");
  1537. var vReptrslt = fCOMLIS_CvtReptrslt(vBufInptRslt, vRsltkind, vRsltintsize, vRsltdcmlsize, vRundkind,vNvalrsltlimyn);
  1538. if(vReptrslt == "err") {
  1539. ds_main_testinfo.setColumn( vRow , "bufinptrslt","");
  1540. return;
  1541. }
  1542. ds_main_testinfo.setColumn( vRow , "inptrslt",vBufInptRslt);
  1543. //LH 판정
  1544. var vJudgkind = ds_main_testinfo_testlist.getColumn(vRow, "judgkind");
  1545. var vRefL = ds_main_testinfo_testlist.getColumn(vRow, "refl");
  1546. var vRefLS = ds_main_testinfo_testlist.getColumn(vRow, "refls");
  1547. var vRefH = ds_main_testinfo_testlist.getColumn(vRow, "refh");
  1548. var vRefHS = ds_main_testinfo_testlist.getColumn(vRow, "refhs");
  1549. var vRefLT = ds_main_testinfo_testlist.getColumn(vRow, "reflt");
  1550. var vRvalflag = ds_main_testinfo_testlist.getColumn(vRow, "rvalflag");
  1551. var vJudgLH = fCOMLIS_JudgLH(vReptrslt, vJudgkind, vRefL, vRefLS, vRefH, vRefHS, vRefLT,vRvalflag);
  1552. ds_main_testinfo.setColumn( vRow , "judgmark",vJudgLH);
  1553. if(vJudgLH == "H"){
  1554. group3.datagrid2.cellStyle ("background-color", 1,0,1,0) = "#f7a08b";
  1555. }
  1556. else if(vJudgLH == "L"){
  1557. group3.datagrid2.cellStyle ("background-color", 1,0,1,0) = "#b9e5fb";
  1558. }
  1559. else{
  1560. group3.datagrid2.cellStyle ("background-color", 1,0,1,0) = "#fffff:"
  1561. }
  1562. //grd_TestInfoCnts.cellStyle("text-align",vRow,8) = "center";
  1563. //panic 판정
  1564. var vJudgGbn = ds_main_testinfo_testlist.getColumn(vRow, "panicflag").getTrim();
  1565. var vRefL = ds_main_testinfo_testlist.getColumn(vRow, "panicminval").getTrim();
  1566. var vRefH = ds_main_testinfo_testlist.getColumn(vRow, "panicmaxval").getTrim();
  1567. var vJudgPanic = fCOMLIS_JudgPCA(vReptrslt, vJudgGbn, vRefL, vRefH, "P");
  1568. if(vJudgPanic == "P"){
  1569. group3.datagrid2.cellStyle ("background-color", 1,1,1,1) = "#7BE6B7";
  1570. //group3.datagrid2.cellstyle ("background-color" , vRow,4,vRow,4) = "#7BE6B7";
  1571. colorTF = true;
  1572. }
  1573. else{
  1574. group3.datagrid2.cellStyle ("background-color", 1,1,1,1) = "#ffffff";
  1575. }
  1576. ds_main_testinfo.setColumn( vRow , "panicmark", vJudgPanic);
  1577. // Panic판정의 전경_배경색 변경
  1578. // Delta판정
  1579. var vBfResult = ds_main_testinfo_testlist.getColumn(vRow, "bfreptrslt").getTrim();
  1580. var vJudgGbn = ds_main_testinfo_testlist.getColumn(vRow, "deltaflag").getTrim();
  1581. var vRefH = ds_main_testinfo_testlist.getColumn(vRow, "deltamaxval").getTrim();
  1582. var vDeltaday = ds_main_testinfo_testlist.getColumn(vRow, "deltaterm").getTrim();
  1583. var vRstinterval = ds_main_testinfo_testlist.getColumn(vRow, "rstinterval").getTrim();
  1584. var vJudgDelta = fCOMLIS_JudgDelta(vReptrslt, vBfResult, vJudgGbn, vRefH, vDeltaday, vRstinterval);
  1585. ds_main_testinfo.setColumn( vRow , "deltamark", vJudgDelta);
  1586. if(vJudgDelta == "D"){
  1587. group3.datagrid2.cellStyle ("background-color", 1,2,1,2) = "#dec6a4";
  1588. //grd_TestInfoCnts.cellstyle("background-color" , vRow,4) = "#7BE6B7";
  1589. colorTF = true;
  1590. }
  1591. else{
  1592. group3.datagrid2.cellStyle ("background-color", 1,2,1,2) = "#ffffff";
  1593. }
  1594. // Critical판정
  1595. var vJudgGbn = ds_main_testinfo_testlist.getColumn(vRow, "criticalflag").getTrim();
  1596. var vRefL = ds_main_testinfo_testlist.getColumn(vRow, "criticalminval").getTrim();
  1597. var vRefH = ds_main_testinfo_testlist.getColumn(vRow, "criticalmaxval").getTrim();
  1598. var vJudgCritical = fCOMLIS_JudgPCA(vReptrslt, vJudgGbn, vRefL, vRefH, "C");
  1599. ds_main_testinfo.setColumn( vRow , "criticalmark", vJudgCritical);
  1600. // Critical판정의 전경_배경색 변경
  1601. if(vJudgCritical == "C"){
  1602. group3.datagrid2.cellStyle ("background-color", 1,3,1,3) = "#ffe79d";
  1603. //grd_TestInfoCnts.cellstyle("background-color" , vRow,4) = "#7BE6B7";
  1604. colorTF = true;
  1605. }
  1606. else{
  1607. group3.datagrid2.cellStyle ("background-color", 1,3,1,3) = "#ffffff";
  1608. }
  1609. // Alert판정
  1610. var vJudgGbn = ds_main_testinfo_testlist.getColumn(vRow, "alertflag").getTrim();
  1611. var vRefL = ds_main_testinfo_testlist.getColumn(vRow, "alertminval").getTrim();
  1612. var vRefH = ds_main_testinfo_testlist.getColumn(vRow, "alertmaxval").getTrim();
  1613. var vJudgAlert = fCOMLIS_JudgPCA(vReptrslt, vJudgGbn, vRefL, vRefH, "A");
  1614. ds_main_testinfo.setColumn( vRow , "alertmark", vJudgAlert)
  1615. // Alert판정의 전경_배경색 변경
  1616. if(vJudgAlert == "A"){
  1617. group3.datagrid2.cellStyle ("background-color", 1,4,1,4) = "#fec34d";
  1618. //grd_TestInfoCnts.cellstyle("background-color" , vRow,4) = "#7BE6B7";
  1619. colorTF = true;
  1620. }
  1621. else{
  1622. group3.datagrid2.cellStyle ("background-color", 1,4,1,4) = "#ffffff";
  1623. }
  1624. //if(!colorTF) grd_TestInfoCnts.cellstyle("background-color" , vRow,4) = "#FFFFFA";
  1625. // 허용참고치 판정
  1626. var vJudgGbn = ds_main_testinfo_testlist.getColumn(vRow, "alimitflag").getTrim();
  1627. var vRefL = ds_main_testinfo_testlist.getColumn(vRow, "alimitminval").getTrim();
  1628. var vRefLS = ds_main_testinfo_testlist.getColumn(vRow, "alimitmaxval").getTrim();
  1629. var vRefH = ds_main_testinfo_testlist.getColumn(vRow, "alimitmaxvalsinq").getTrim();
  1630. var vRefHS = ds_main_testinfo_testlist.getColumn(vRow, "alimiminvalsinq").getTrim();
  1631. vReptrslt = fCOMLIS_JudgLimit(vReptrslt, vJudgGbn, vRefL, vRefLS, vRefH, vRefHS);
  1632. // 사용자정의판정 결과변경
  1633. var vUjudglt = new Array(3);
  1634. vUjudglt[0] = vJudgkind;
  1635. for (var i = 1; i <= 3; i++) {
  1636. vUjudglt[i] = model.getValue("ds_main_testinfo_testlist["+vRow+"]_userjudgchar" + i.toString());
  1637. }
  1638. vReptrslt = fCOMLIS_CvtUjudgRst(vBufInptRslt, vReptrslt, vJudgLH, vUjudglt);
  1639. ds_main_testinfo.setColumn( vRow , "reptrslt",vReptrslt);
  1640. // 수정데이타 반영
  1641. ds_main_testinfo.setColumn( vRow , "iud", "U");
  1642. //model.refresh();
  1643. }
  1644. }
  1645. function fValidation(pRstflag) {
  1646. if(ds_hidden_refparam.getColumn(0, "userid") == "" || ds_main_getUsernm.getColumn(0, "usernm") == ""){
  1647. sysf_messageBox("검사자를 " , "C001" ,"");
  1648. ipt_testpsn.setFocus();
  1649. return;
  1650. }
  1651. //수정된 소견이 있을경우 소견부터 저장
  1652. if (ds_hidden_refflag.getColumn(0, "p_isedit") == "true"
  1653. || model.getxPathValue('count(ds_main_testinfo_testcmts[m != ""])') > 0) {
  1654. fSetContCmt();
  1655. }
  1656. var nMaxRow = group3.grd_testlist.rows - 1;
  1657. var isErr = false;
  1658. var sErrMsg = "";
  1659. if (pRstflag == "1") {
  1660. sErrMsg = "결과저장";
  1661. } else if (pRstflag == "2") {
  1662. sErrMsg = "중간(예비)보고";
  1663. } else if (pRstflag == "4") {
  1664. sErrMsg = "최종보고";
  1665. }
  1666. // 수정_선택한 환자 유무
  1667. if (nMaxRow > 0) {
  1668. var findRow = group3.datagrid1.findRow("U", 1, 74, false, false);
  1669. if (findRow < 0) isErr = true;
  1670. } else {
  1671. isErr = true;
  1672. }
  1673. if (isErr) {
  1674. alert( "수정된 항목이 없습니다.");
  1675. return false;
  1676. }
  1677. return true;
  1678. }
  1679. function fCheckChangeValue(pState){
  1680. var nMaxRow = group3.datagrid1.rows;
  1681. var rkey = "";
  1682. var vO_inptrslt = "";
  1683. var vN_inptrslt = "";
  1684. var vRstflag = "";
  1685. var isErr = "false";
  1686. for(var vRow = 1; vRow < nMaxRow; vRow++){
  1687. isUpdate = ds_main_testinfo_testlist.getColumn(vRow, "iud");
  1688. if(pState == "3"){
  1689. //"권한관리"
  1690. }
  1691. if(isUpdate == "U"){
  1692. group3.datagrid1.addStatus(vRow , "update");
  1693. rkey = ds_main_testinfo_testlist.getColumn(vRow, "rkey");
  1694. vO_inptrslt = ds_main_testinfo_BAK_TESTITEM.lookupExpr("rkey == '" + rkey + "'", "inptrslt");
  1695. vN_inptrslt = ds_main_testinfo_testlist.getColumn(vRow, "inptrslt");
  1696. vRstflag = ds_main_testinfo_testlist.getColumn(vRow, "rsltstat");
  1697. if(vO_inptrslt == vN_inptrslt){
  1698. if(vRstflag == pState){
  1699. ds_main_testinfo.setColumn( vRow , "iud", "");
  1700. group3.datagrid1.removeStatus(vRow,"update");
  1701. }
  1702. }
  1703. }
  1704. }
  1705. return isErr;
  1706. }
  1707. // 결과저장
  1708. function fInsRsltSave(){
  1709. //ds_HideData.setColumn( 0, "RstCode", "");
  1710. if(fCheckChangeValue("1") == "false"){
  1711. if (fValidation("1")) {
  1712. ds_hidden_updateparam.setColumn( 0, "rsltstat" , "1") ;
  1713. ds_send_data1.copyData(ds_hidden_updateparam);
  1714. ds_send.setColumn( 0, "data2", group3.datagrid1.getUpdateData());
  1715. // submit("TXLLR00401" , false);
  1716. var oParam = {};
  1717. oParam.id = "TXLLR00401";
  1718. oParam.service = "rsltmngtapp.RsltMngt";
  1719. oParam.method = "reqSetItemResultSave";
  1720. oParam.inds = "TestData=ds_ RefFalg=ds_ signinfo=ds_ HLAform=ds_ TestCmtInfo=ds_";
  1721. oParam.transaction = false;
  1722. oParam.async = false;
  1723. oParam.callback = "cf_TXLLR00401";
  1724. tranf_submit(oParam);
  1725. /*
  1726. function cf_TXLLR00401(sSvcId, nErrorCode, sErrorMsg) {
  1727. if(nErrorCode < 0) return;
  1728. }
  1729. function cf_TXLLR00401(sSvcId, nErrorCode, sErrorMsg) {
  1730. arErrorCode.push(sSvcId, nErrorCode);
  1731. }
  1732. arErrorCode.pop("TXLLR00401") > -1
  1733. arErrorCode.pop("TXLLR00401") < 0
  1734. */
  1735. group3.datagrid1.clearStatus();
  1736. ds_hidden.setColumn( 0, "currenRow", "");
  1737. group3.datagrid2.cellStyle("background-color",1,1,1,5) = "#ffffff";
  1738. fSetClear2();
  1739. }
  1740. }
  1741. }
  1742. // 중간보고
  1743. function fSetMdlRept(){
  1744. if(fCheckChangeValue("2") == "false"){
  1745. if (fValidation("2")) {
  1746. ds_hidden_updateparam.setColumn( 0, "rsltstat" , "2") ;
  1747. ds_send_data1.copyData(ds_hidden_updateparam);
  1748. ds_send.setColumn( 0, "data2", group3.datagrid1.getUpdateData());
  1749. // submit("TXLLR00401" , false);
  1750. var oParam = {};
  1751. oParam.id = "TXLLR00401";
  1752. oParam.service = "rsltmngtapp.RsltMngt";
  1753. oParam.method = "reqSetItemResultSave";
  1754. oParam.inds = "TestData=ds_ RefFalg=ds_ signinfo=ds_ HLAform=ds_ TestCmtInfo=ds_";
  1755. oParam.transaction = false;
  1756. oParam.async = false;
  1757. oParam.callback = "cf_TXLLR00401";
  1758. tranf_submit(oParam);
  1759. /*
  1760. function cf_TXLLR00401(sSvcId, nErrorCode, sErrorMsg) {
  1761. if(nErrorCode < 0) return;
  1762. }
  1763. function cf_TXLLR00401(sSvcId, nErrorCode, sErrorMsg) {
  1764. arErrorCode.push(sSvcId, nErrorCode);
  1765. }
  1766. arErrorCode.pop("TXLLR00401") > -1
  1767. arErrorCode.pop("TXLLR00401") < 0
  1768. */
  1769. group3.datagrid1.clearStatus();
  1770. ds_hidden.setColumn( 0, "currenRow", "");
  1771. group3.datagrid2.cellStyle("background-color",1,1,1,5) = "#ffffff";
  1772. fSetClear2();
  1773. }
  1774. }
  1775. }
  1776. // 최종보고
  1777. function fSetLstRept(){
  1778. if(fCheckChangeValue("4") == "false"){
  1779. if (fValidation("4")) {
  1780. if(fUpdtRslt() != 0) return;
  1781. ds_hidden_updateparam.setColumn( 0, "rsltstat" , "4") ;
  1782. ds_send_data1.copyData(ds_hidden_updateparam);
  1783. ds_send.setColumn( 0, "data2", group3.datagrid1.getUpdateData());
  1784. // submit("TXLLR00401" , false);
  1785. var oParam = {};
  1786. oParam.id = "TXLLR00401";
  1787. oParam.service = "rsltmngtapp.RsltMngt";
  1788. oParam.method = "reqSetItemResultSave";
  1789. oParam.inds = "TestData=ds_ RefFalg=ds_ signinfo=ds_ HLAform=ds_ TestCmtInfo=ds_";
  1790. oParam.transaction = false;
  1791. oParam.async = false;
  1792. oParam.callback = "cf_TXLLR00401";
  1793. tranf_submit(oParam);
  1794. /*
  1795. function cf_TXLLR00401(sSvcId, nErrorCode, sErrorMsg) {
  1796. if(nErrorCode < 0) return;
  1797. }
  1798. function cf_TXLLR00401(sSvcId, nErrorCode, sErrorMsg) {
  1799. arErrorCode.push(sSvcId, nErrorCode);
  1800. }
  1801. arErrorCode.pop("TXLLR00401") > -1
  1802. arErrorCode.pop("TXLLR00401") < 0
  1803. */
  1804. group3.datagrid1.clearStatus();
  1805. ds_hidden.setColumn( 0, "currenRow", "");
  1806. group3.datagrid2.cellStyle("background-color",1,1,1,5) = "#ffffff";
  1807. fSetClear2();
  1808. }
  1809. }
  1810. }
  1811. //수정결과 팝업 띄우기
  1812. function fUpdtRslt(){
  1813. var testlist = "";
  1814. var returnyn = "";
  1815. var bufDJGG = "";
  1816. for(i = 0; i < group3.datagrid1.rows; i++) {
  1817. if(((ds_main_testinfo_testlist.getColumn(i, "rsltstat") == "4") || (ds_main_testinfo_testlist.getColumn(i, "rsltstat") == "5"))
  1818. && (ds_main_testinfo_testlist.getColumn(i, "iud") == "U")) { //수정 및 선택된 경우
  1819. var vPID = ds_main_testinfo_testlist.getColumn(i, "pid"); //등록번호
  1820. var vBcno = ds_main_testinfo_testlist.getColumn(i, "bcno"); //바코드
  1821. bufDJGG += ds_main_testinfo_testlist.getColumn(i, "testcd") + "▦" + ds_main_testinfo_testlist.getColumn(i, "reptrslt") + "▩";
  1822. testlist += "'" + ds_main_testinfo_testlist.getColumn(i, "testcd") + "',"; //'testcd', 'testcd',
  1823. //ds_hidden_DJGGParm.setColumn( 0, "userid" , ds_hidden_refflag.getColumn(0, "userid")); 6_12일 수정자ID 직접입력을 원하셔서 막음..
  1824. if((vPID != "") //pid가 있고
  1825. && (vBcno != ds_main_testinfo_testlist.getColumn((i+1), "bcno")) //이전바코드번호랑 다르고
  1826. && (i != 0)){ //i != 0임
  1827. dsf_makeValue( ds_hidden_DJGGParm, "bcno", "string", vBcno);
  1828. dsf_makeValue( ds_hidden_DJGGParm, "testcdlist", "string", testlist.substr(0, testlist.length - 1)); //'testcd', 'testcd', <-맨뒤의 ',' 빼기 위해
  1829. dsf_makeValue( ds_hidden_DJGGParm, "bufDJGG", "string", bufDJGG);
  1830. dsf_makeValue( ds_hidden_DJGGParm, "userid", "string", "" );
  1831. dsf_makeValue( ds_hidden_DJGGParm, "rsltsaveYN", "string", "" );
  1832. testlist = ""; //초기화
  1833. //------------------
  1834. //frmf_modal("SMLLR90600", "", "ds_hidden_DJGGParm" "ds_hidden_DJGGParm", "", "", "", "", "", "", "", "", "", "M");
  1835. if(ds_hidden_DJGGParm.getColumn(0, "rsltsaveYN") == "Y")
  1836. returnyn = 0;
  1837. else
  1838. returnyn = 1;
  1839. }
  1840. }
  1841. }
  1842. return returnyn;
  1843. }
  1844. //onkeypress 이벤트시..
  1845. function fGridKeyEvent(){
  1846. var curRow = group3.grd_testlist.row;
  1847. var curCol = group3.grd_testlist.col;
  1848. if (event.keyCode == 13) {
  1849. var refRow = fGetRow(curRow, curCol);
  1850. if (refRow > 0) {
  1851. // 입력 실제결과
  1852. var vInptRslt = group3.grd_testlist.valueMatrix(curRow, curCol).getTrim();
  1853. // if(vInptRslt == ""){
  1854. //return;
  1855. // }
  1856. //결과코드 검색
  1857. /*var vTclscd = ds_HideData_CurrentHangMok.getColumn(0, "tclscd");
  1858. var vCvtRst = fGetSeekRst(vTclscd, vOrgRst);
  1859. if (vOrgRst != vCvtRst) {
  1860. vOrgRst = vCvtRst;
  1861. group3.grd_testlist.valueMatrix(curRow, curCol) = vOrgRst;
  1862. }*/
  1863. /*------------------------------------------------------------------시작
  1864. DPD 검사일 경우 Urine Creatinine(LCU102) 검사의 결과와 계산하여 결과 보고 하여야 한다고 함
  1865. DPD / (Creatinine × 0.088)
  1866. Creatinine 조회 기준은 같은 처방일 임 */
  1867. var vTestcd = ds_main_testinfo_testlist.getColumn(refRow, "testcd");
  1868. var vPrcpdd = ds_main_testinfo_testlist.getColumn(refRow, "prcpdd");
  1869. var vPid = ds_main_testinfo_testlist.getColumn(refRow, "pid");
  1870. //일단 하드코딩 합니다 ^^
  1871. if(vTestcd == "LSS180"){
  1872. dsf_makeValue( ds_send_dpd, "prcpdd", "string", vPrcpdd);
  1873. dsf_makeValue( ds_send_dpd, "testcd", "string", "LCU102");
  1874. dsf_makeValue( ds_send_dpd, "pid", "string", vPid);
  1875. if(vInptRslt.isFloat()){
  1876. // submit("TRLLR80104");
  1877. var oParam = {};
  1878. oParam.id = "TRLLR80104";
  1879. oParam.service = "rsltmngtapp.RsltMngt";
  1880. oParam.method = "reqGetCreatineRslt";
  1881. oParam.inds = "cond=ds_";
  1882. oParam.outds = "ds_=dpdrslt";
  1883. oParam.async = false;
  1884. oParam.callback = "cf_TRLLR80104";
  1885. tranf_submit(oParam);
  1886. /*
  1887. function cf_TRLLR80104(sSvcId, nErrorCode, sErrorMsg) {
  1888. if(nErrorCode < 0) return;
  1889. }
  1890. function cf_TRLLR80104(sSvcId, nErrorCode, sErrorMsg) {
  1891. arErrorCode.push(sSvcId, nErrorCode);
  1892. }
  1893. arErrorCode.pop("TRLLR80104") > -1
  1894. arErrorCode.pop("TRLLR80104") < 0
  1895. */
  1896. var vUrineRslt = ds_hidden_dpdrslt.getColumn(0, "rslt");
  1897. var vUrineRsltDt = ds_hidden_dpdrslt.getColumn(0, "dt");
  1898. if(vUrineRslt == ""){
  1899. sysf_messageBox("해당 처방일에 Urine Creatinine 검사결과가 없습니다.", "I");
  1900. }else{
  1901. if(vUrineRslt.isFloat()){
  1902. var rtn = sysf_messageBox("Urine Creatinine 결과 : " + vUrineRslt + "\n보고일 : " + vUrineRsltDt + "\n계산식 : DPD / (Creatinine × 0.088)\n변환", "S001");
  1903. if(rtn == 6){ //예
  1904. //계산적용
  1905. vInptRslt = parseFloat(vInptRslt) / (parseFloat(vUrineRslt) * 0.088) ;
  1906. //소숫점 2째에서 반올림
  1907. vInptRslt = Math.round(vInptRslt * Math.pow(10, -2 * (-1)-1)) / Math.pow(10, -2 *(-1)-1);
  1908. vInptRslt = vInptRslt.toString(); //요거 String으로 안바꿔주면 에러남
  1909. //보이는 그리드에 변환 된 값 설정
  1910. group3.grd_testlist.valueMatrix(curRow, curCol) = vInptRslt;
  1911. }
  1912. else if(rtn == 2){ //취소
  1913. group3.grd_testlist.valueMatrix(curRow, curCol) = "";
  1914. return;
  1915. }
  1916. }else{
  1917. sysf_messageBox("Urine Creatinine검사 결과 수치가 부적합 합니다.\n검사결과 : "+ vUrineRslt, "I");
  1918. }
  1919. }
  1920. }else{
  1921. sysf_messageBox("DPD검사 결과변환은 숫자만 가능합니다!!", "E");
  1922. }
  1923. }
  1924. //-------------------------------------------------------------------끝
  1925. fCvtViewResult(vInptRslt, refRow);
  1926. /*if(ds_main_testinfo_testlist.getColumn(refRow, "judgmark")) != ""
  1927. || ds_main_testinfo_testlist.getColumn(refRow, "panicmark")) != ""
  1928. || ds_main_testinfo_testlist.getColumn(refRow, "deltamark")) != ""
  1929. || ds_main_testinfo_testlist.getColumn(refRow, "criticalmark")) != ""
  1930. || ds_main_testinfo_testlist.getColumn(refRow, "alertmark")) != ""
  1931. || ds_main_testinfo_testlist.getColumn(refRow, "relatingmark")) != ""
  1932. || ds_main_testinfo_testlist.getColumn(refRow, "amrmark")) != "") {
  1933. group3.grd_testlist.cellStyle("color", curRow, curCol) = "#f7a08b";
  1934. } else {
  1935. group3.grd_testlist.cellStyle("color", curRow, curCol) = "#000000";
  1936. }*/
  1937. if(vInptRslt == ""){
  1938. if(ds_main_testinfo_testlist.getColumn(refRow, "iud") != "") {
  1939. ds_main_testinfo.setColumn( refRow , "iud", "");
  1940. group3.datagrid1.rebuild();
  1941. }
  1942. ds_main_testinfo.setColumn( curRow , "chk", "false");
  1943. //return;
  1944. } else {
  1945. ds_main_testinfo.setColumn( curRow , "chk", "true");
  1946. }
  1947. group3.grd_testlist.cellStyle("background-color", curRow, curCol, curRow, curCol) = "#f3e1bf";
  1948. if(ds_hidden.getColumn(0, "cursor") == "1") {
  1949. // 다음 Row로 이동
  1950. var max = group3.grd_testlist.rows;
  1951. var vRstNo = parseInt(eval(curCol - gStartCol + 1)).toString();
  1952. var posRow = -1
  1953. for (var r = (curRow + 1); r < max; r++) {
  1954. var isReadonly = model.getValue("ds_main_testinfo_patlist[" + r + "]_inptrslt" + vRstNo + "//readonly");
  1955. if (isReadonly == "false") {
  1956. posRow = r;
  1957. break;
  1958. }
  1959. }
  1960. if (posRow > 0) {
  1961. group3.grd_testlist.row= posRow;
  1962. group3.grd_testlist.col = curCol;
  1963. fPatGridClick(posRow, curCol);
  1964. } else {
  1965. fPatGridClick(curRow, curCol);
  1966. }
  1967. } else {
  1968. // 다음 Col로 이동
  1969. var max = group3.grd_testlist.cols;
  1970. var posCol = -1
  1971. for (var r = (curCol + 1); r < max; r++) {
  1972. var vRstNo = parseInt(eval(r - gStartCol + 1)).toString();
  1973. var isReadonly = model.getValue("ds_main_testinfo_patlist[" + curRow + "]_inptrslt" + vRstNo + "//readonly");
  1974. if (isReadonly == "false") {
  1975. posCol = r;
  1976. break;
  1977. }
  1978. }
  1979. if (posCol > 0) {
  1980. group3.grd_testlist.row= curRow;
  1981. group3.grd_testlist.col = posCol;
  1982. fPatGridClick(curRow, posCol);
  1983. } else {
  1984. fPatGridClick(curRow, curCol);
  1985. }
  1986. }
  1987. } else {
  1988. //fg.textMatrix(curRow, curCol) = "";
  1989. }
  1990. }
  1991. }
  1992. //onkeydown 이벤트시
  1993. function fGridKeyDown(){
  1994. var curRow = group3.grd_testlist.rowposition; //현재로우
  1995. var curCol = group3.grd_testlist.currentcol; //현재컬럼
  1996. //group3.grd_testlist.currentcol
  1997. trace("curCol :"+curCol);
  1998. if (curCol == 37 || curCol == 38 || curCol == 39 || curCol == 40) {
  1999. if (curCol == 37) { //←
  2000. --curCol;
  2001. } else if (curCol == 38) { //↑
  2002. --curRow;
  2003. } else if (curCol == 39) { //→
  2004. ++curCol;
  2005. } else if (curCol == 40) { //↓
  2006. ++curRow;
  2007. }
  2008. var refRow = fGetRow(curRow, curCol); //실제 데이터있는 그리드의 로우 검색
  2009. fPatGridClick(curRow, curCol); //검체정보 조회
  2010. if (refRow > 0) {
  2011. var vInptRslt = ds_main_testinfo_testlist.getColumn(refRow, "inptrslt");
  2012. group3.grd_testlist.valueMatrix(curRow, curCol) = vInptRslt;
  2013. }
  2014. }
  2015. }
  2016. function fRstGbn_XForms_Value_Changed(pIdx) {
  2017. // alert(pIdx);
  2018. if (pIdx == "0") {
  2019. // 결과미입력 클릭
  2020. if (ds_hidden_refparam.getColumn(0, "rsltstat0") == "1") {
  2021. ds_hidden_refparam.setColumn( 0, "rsltstat2", "");
  2022. }
  2023. } else if (pIdx == "1") {
  2024. // 결과입력 클릭
  2025. if (ds_hidden_refparam.getColumn(0, "rsltstat1") == "1") {
  2026. ds_hidden_refparam.setColumn( 0, "rsltstat2", "");
  2027. }
  2028. } else {
  2029. // 최종보고 클릭
  2030. if (ds_hidden_refparam.getColumn(0, "rsltstat2") == "1") {
  2031. ds_hidden_refparam.setColumn( 0, "rsltstat0", "");
  2032. ds_hidden_refparam.setColumn( 0, "rsltstat1", "");
  2033. }
  2034. }
  2035. //model.refresh();
  2036. }
  2037. function fSelectTestGrup(){
  2038. dsf_makeValue( ds_send, "testgrupnm", "string", group3.group1.combo2.text);
  2039. // submit("TRLLF90401" ,false);
  2040. var oParam = {};
  2041. oParam.id = "TRLLF90401";
  2042. oParam.service = "diagtestapplib.LisCommon";
  2043. oParam.method = "reqGetTestGrupDetl";
  2044. oParam.inds = "cond=ds_send";
  2045. oParam.outds = "ds_main_testgrupdetl=getTestGrupDetl";
  2046. oParam.async = false;
  2047. //oParam.callback = "cf_TRLLF90401";
  2048. tranf_submit(oParam);
  2049. fSetPopUpTclscdList();
  2050. }
  2051. function fSetPopUpTclscdList(){
  2052. var count = ds_main_testgrupdetl.rowcount;
  2053. if(count > 0){
  2054. var sendtclsnm = ds_main_testgrupdetl.getColumn(0, "tclsnm");
  2055. var sendtclsnm2 = ds_main_testgrupdetl.getColumn(0, "tclsnm");
  2056. var sendtclscd = ds_main_testgrupdetl.getColumn(0, "tclscd");
  2057. var sendtclscd2 = ds_main_testgrupdetl.getColumn(0, "tclscd");
  2058. // 검사그룹 상세 목록 없을때
  2059. if(sendtclsnm == ""){
  2060. ds_hidden_tclscdlist.setColumn( 0, "tclscdlist", "");
  2061. ds_hidden_tclscdlist.setColumn( 0, "tclsnmlist", "");
  2062. }else{ // 검사그룹 상세 목록 있을때
  2063. for(i=1; i< count; i++){
  2064. sendtclsnm = sendtclsnm + ", " + ds_main_testgrupdetl.getColumn(i, "tclsnm");
  2065. sendtclsnm2 = sendtclsnm2 + "▦ " + ds_main_testgrupdetl.getColumn(i, "tclsnm");
  2066. //sendtclscd = sendtclscd + "▦" + ds_main_testgrupdetl.getColumn(i, "tclscd");
  2067. sendtclscd = sendtclscd + "','" + ds_main_testgrupdetl.getColumn(i, "tclscd");
  2068. sendtclscd2 = sendtclscd2 + "▦" + ds_main_testgrupdetl.getColumn(i, "tclscd");
  2069. }
  2070. ds_hidden_ref_tclscdlist.setColumn( 0, "tclsnmlist", sendtclsnm);
  2071. ds_hidden_ref_tclscdlist.setColumn( 0, "tclscdlist", "'" + sendtclscd + "'");
  2072. ds_hidden_ref_tclscdlist.setColumn( 0, "tclscdlist2", sendtclscd2);
  2073. ds_hidden_ref_tclscdlist.setColumn( 0, "tclsnmlist2", sendtclsnm2);
  2074. }
  2075. //model.refresh();
  2076. fGrdReMake();
  2077. }
  2078. }
  2079. function fSetClear2(){
  2080. ds_main_testinfo_patlist.clearData();
  2081. ds_main_testinfo_spcinfo.clearData(); ds_main_testinfo_spcinfo.addRow();
  2082. ds_main_testinfo_testlist.clearData();
  2083. group3.datagrid2.setCellProprty("body", 1, "background", "#FFFFFF"); datagrid2.setCellProperty("body", 1, "background2", "#FFFFFF");
  2084. //ds_hidden_refparam.setColumn( 0, "userid" , "");
  2085. //ds_main_getUsernm.setColumn( 0, "usernm" , "");
  2086. //model.refresh();
  2087. }
  2088. function fRsltCDEnterKey(vInptRslt){
  2089. //var vInptRslt = cmb_rslt.String(label).trim(); // 적용할 실제결과
  2090. var curRow = group3.grd_testlist.row;
  2091. var curCol = group3.grd_testlist.Col;
  2092. if (curCol < parseInt(gStartCol)) return;
  2093. if (curRow < 0) return;
  2094. if (String(vInptRslt).trim() == "") return;
  2095. var vTclscd = ds_hidden_currentest.getColumn(0, "tclscd");
  2096. var vCvtRst = fGetSeekRst(vTclscd, vInptRslt);
  2097. if (vInptRslt != vCvtRst) {
  2098. vInptRslt = vCvtRst;
  2099. }
  2100. var selectedCells = group3.grd_testlist.selectedCells;
  2101. for (var i=0; i<selectedCells.length; i++){
  2102. var cell = selectedCells.item(i);
  2103. if (cell){
  2104. var curRow = cell.row;
  2105. var curCol = cell.col;
  2106. var refRow = fGetRow(curRow, curCol);
  2107. var vOrgrstseq = "inptrslt" + eval((curCol - gStartCol) + 1).toString();
  2108. if (refRow > 0) {
  2109. ds_main_testinfo.setColumn( 0, "patlist[" + curRow + "]/" + vOrgrstseq, vInptRslt);
  2110. fCvtViewResult(vInptRslt, refRow);
  2111. if(vInptRslt == ""){
  2112. if(ds_main_testinfo_testlist.getColumn(refRow, "iud") != "") {
  2113. ds_main_testinfo.setColumn( refRow , "iud", "");
  2114. group3.datagrid1.rebuild();
  2115. }
  2116. ds_main_testinfo.setColumn( curRow , "chk", "false");
  2117. //return;
  2118. } else {
  2119. ds_main_testinfo.setColumn( curRow , "chk", "true");
  2120. }
  2121. // 수정항목 색변경
  2122. //var color = fCOMLIS_getBackColor("GREEN");
  2123. group3.grd_testlist.cellStyle("background-color", curRow, curCol, curRow, curCol) = "#f3e1bf";
  2124. //TFGridRowColor("grdHwanJaGSHML", i, curCol, i, curCol, 1, color[0], color[1], color[2]);
  2125. }
  2126. }
  2127. }
  2128. ds_hidden.setColumn( 0, "rsltcont", "");
  2129. }
  2130. function fGetSeekRst(vTestcd, vInptRslt) {
  2131. var result = vInptRslt
  2132. var cdNodes = instance1.selectNodes("ds_init_LB0109[etc01='" + vTestcd + "']_cd");
  2133. var cdNodes2 = instance1.selectNodes("ds_init_LB0109[etc01='" + vTestcd + "']_nm");
  2134. var vRstcontLower ="";
  2135. var vRstcontUpper = "";
  2136. for (i = 1; i <= cdNodes.length; i++) {
  2137. var cd = cdNodes.item(i - 1).text;
  2138. var nm = cdNodes2.item(i - 1).text;
  2139. if(vInptRslt.toLowerCase() == cd) vRstcontLower = nm;
  2140. if(vInptRslt.toUpperCase() == cd) vRstcontUpper = nm;
  2141. }
  2142. if (String(vRstcontLower).trim() != "" || String(vRstcontUpper).trim() != "" ) {
  2143. result = (String(vRstcontLower).trim() != "") ? String(vRstcontLower).trim() : String(vRstcontUpper).trim();
  2144. }
  2145. return result;
  2146. }
  2147. function fUserNMRef(){
  2148. if(ds_hidden_refparam.getColumn(0, "userid") != ""){
  2149. dsf_makeValue( ds_send, "userid", "string", ds_hidden_refparam.getColumn(0, "userid"));
  2150. // submit("TRLZZ00104");
  2151. var oParam = {};
  2152. oParam.id = "TRLZZ00104";
  2153. oParam.service = "diagtestapplib.LisCommon";
  2154. oParam.method = "reqGetUserNM";
  2155. oParam.inds = "cond=ds_";
  2156. oParam.outds = "ds_=usernm";
  2157. oParam.async = false;
  2158. oParam.callback = "cf_TRLZZ00104";
  2159. tranf_submit(oParam);
  2160. /*
  2161. function cf_TRLZZ00104(sSvcId, nErrorCode, sErrorMsg) {
  2162. if(nErrorCode < 0) return;
  2163. }
  2164. function cf_TRLZZ00104(sSvcId, nErrorCode, sErrorMsg) {
  2165. arErrorCode.push(sSvcId, nErrorCode);
  2166. }
  2167. arErrorCode.pop("TRLZZ00104") > -1
  2168. arErrorCode.pop("TRLZZ00104") < 0
  2169. */
  2170. }
  2171. }
  2172. //마우스오른쪽 클릭시 결과코드 보이기
  2173. function fGetMouseDown(){
  2174. ds_hidden_popupmenu.clearData();
  2175. if(event.button == 3){ // 라이트클릭 메뉴만들기...
  2176. dsf_makeValue( ds_hidden_popupmenu, "grid", "string", "" );
  2177. dsf_makeValue( ds_hidden_popupmenu_grid, "item", "string", "" );
  2178. var curRow = group3.grd_testlist.mouseRow;
  2179. var curCol = group3.grd_testlist.mouseCol;
  2180. var refRow = fGetRow(curRow, curCol);
  2181. if(curCol >= gStartCol && refRow >0){
  2182. var testcd = ds_main_testinfo_testlist.getColumn(refRow, "testcd");
  2183. //결과코드관련
  2184. var n = dsds_init_LB0109.filter("etc01='" + testcd + "'").rowcount ;
  2185. if (n > 0) {
  2186. var cdNodes = instance1.selectNodes("ds_init_LB0109[etc01='" + testcd + "']_cd");
  2187. var cdNodes2 = instance1.selectNodes("ds_init_LB0109[etc01='" + testcd + "']_nm");
  2188. var dispyn = instance1.selectNodes("ds_init_LB0109[etc01='" + testcd + "']_etc03");
  2189. for (i = 1; i <= n; i++) {
  2190. var cd = cdNodes.item(i - 1).text;
  2191. var nm = cdNodes2.item(i - 1).text;
  2192. var yn = dispyn.item(i - 1).text;
  2193. if(yn == "Y"){
  2194. //var cd = model.getvalue("ds_init_LB0109[etc01='" + testcd + "']["+ i +"]_cd");
  2195. //var nm = model.getvalue("ds_init_LB0109[etc01='" + testcd + "']["+ i +"]_nm");
  2196. ds_hidden_popupmenu_grid_item.setColumn( i, "name", "["+cd+"] "+ nm);
  2197. ds_hidden_popupmenu_grid_item.setColumn( i, "func", nm + "▦" + refRow);
  2198. //ds_hidden_popupmenu_grid_item.setColumn( i, "value", cd);
  2199. }
  2200. }
  2201. }
  2202. n = parseInt(ds_hidden_popupmenu_grid_item.rowcount) + 1;
  2203. if(n>1){
  2204. ds_hidden_popupmenu_grid_item.setColumn( n, "name", "-");
  2205. ds_hidden_popupmenu_grid_item.setColumn( n, "func", "");
  2206. n++
  2207. }
  2208. ds_hidden_popupmenu_grid_item.setColumn( n, "name", "▶ 누적결과조회");
  2209. ds_hidden_popupmenu_grid_item.setColumn( n, "func", "fAcmlRsltRef▦" + refRow);
  2210. }
  2211. }
  2212. if((group3.grd_testlist.isCell(event.target) && group3.grd_testlist.row >= group3.grd_testlist.fixedRows) && group3.grd_testlist.col >= gStartCol ){
  2213. window.setPopupMenu(true , "ds_hidden_popupmenu_grid_item" , "name", "func" , true);
  2214. //setPopupMenu("grd_TestInfoCnts" , true, "ds_hidden_popupmenu_grid_item", "name", "func");
  2215. }else{
  2216. window.setPopupMenu(false);
  2217. }
  2218. }
  2219. //누적결과조회
  2220. function fAcmlRsltRef(row){
  2221. dsf_makeValue( ds_hidden_AcmlRsltRef, "pid", "string", ds_main_testinfo_testlist.getColumn(row, "pid"));
  2222. dsf_makeValue( ds_hidden_AcmlRsltRef, "testcd", "string", ds_main_testinfo_testlist.getColumn(row, "testcd"));
  2223. dsf_makeValue( ds_hidden_AcmlRsltRef, "hngnm", "string", ds_main_testinfo_testlist.getColumn(row, "patnm"));
  2224. dsf_makeValue( ds_hidden_AcmlRsltRef, "sex", "string", ds_main_testinfo_testlist.getColumn(row, "patsex"));
  2225. dsf_makeValue( ds_hidden_AcmlRsltRef, "age", "string", ds_main_testinfo_testlist.getColumn(row, "patage"));
  2226. //-------------------
  2227. //frmf_modal("SPLLP90100 ", "", "ds_hidden_AcmlRsltRef","ds_init_baseinfo"", "", "", "", "", "", "", "", "", "", "M");
  2228. }
  2229. //팝업메뉴
  2230. function fOnmenu(popupParam){
  2231. if(popupParam.substring(0,12) == "fAcmlRsltRef") { //누적결과조회
  2232. var aL = popupParam.split("▦");
  2233. fAcmlRsltRef(aL[1]);
  2234. }else{
  2235. if(popupParam != ""){
  2236. var aL = popupParam.split("▦");
  2237. fRsltCDEnterKey(aL[0]);
  2238. }
  2239. }
  2240. }
  2241. //스크립트 끝
  2242. function group3_group4_button3_onclick(obj:Button, e:ClickEventInfo) {
  2243. //fOnclick_btnRef();
  2244. fSelectTestGrup();
  2245. }
  2246. function group3_group4_button4_onclick(obj:Button, e:ClickEventInfo) {
  2247. //----
  2248. //frmf_modal("SMLLF90400", "", "ds_hidden_ref_tclscdlist_testgrup""-"ds_hidden_tclscdlist_testgrup"", "", "", "", "", "", "", "", "", "", "M");
  2249. fGrdReMake();
  2250. }
  2251. function group3_group4_combo4_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  2252. fSelectTestGrup();
  2253. }
  2254. function group3_group4_input10_onkeyup(obj:Edit, e:KeyEventInfo) {
  2255. if(event.keyCode == "13"){
  2256. ds_hidden_refparam.setColumn( 0, "userid",ipt_testpsn.text);
  2257. //model.refresh();
  2258. fUserNMRef();
  2259. ipt_testpsn.selBegin = 0;
  2260. ipt_testpsn.selEnd = ipt_testpsn.text.length;
  2261. }
  2262. }
  2263. function group3_group4_combo5_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  2264. fRsltCDEnterKey(cmb_rslt.String(label).trim());
  2265. }
  2266. function group3_group1_button1_onclick(obj:Button, e:ClickEventInfo) {
  2267. fOnclick_btnRef();
  2268. }
  2269. function group3_group1_button61_onclick(obj:Button, e:ClickEventInfo)
  2270. {
  2271. var objArg = new Object();
  2272. objArg.testGrup = ds_hidden_ref_tclscdlist.getColumn(0, "testgrup");
  2273. frmf_modal("SMLLF90400","SMLLF90400",objArg, "", "", "", "", "", "", "", "", "", "M");
  2274. fGrdReMake();
  2275. }
  2276. function group3_group1_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  2277. fSelectTestGrup();
  2278. }
  2279. function group3_datagrid3_onmousedown(obj:Grid, e:GridMouseEventInfo) {
  2280. fGetMouseDown();
  2281. }
  2282. function group3_datagrid3_onaftersort() {
  2283. group3.grd_testlist.gridToInstance();
  2284. }
  2285. function group3_datagrid3_oncopy() {
  2286. //grid_oncopy();
  2287. }
  2288. function group3_datagrid3_onkeydown(obj:Grid, e:KeyEventInfo) {
  2289. fGridKeyDown();
  2290. }
  2291. function group3_datagrid3_oncellclick(obj:Grid, e:GridClickEventInfo) {
  2292. if((group3.grd_testlist.isCell(event.target) && group3.grd_testlist.row >= group3.grd_testlist.fixedRows) && group3.grd_testlist.col >= 2 ){ //검사항목
  2293. fPatGridClick(group3.grd_testlist.row,group3.grd_testlist.col);
  2294. if(group3.grd_testlist.col == 3){
  2295. var strBcno = ds_main_testinfo_patlist.getColumn(group3.grd_testlist.row, "bcno");
  2296. window.clipBoardData = strBcno;
  2297. }
  2298. } else if(group3.grd_testlist.col == 1) { //체크박스
  2299. fSelectCancle();
  2300. }
  2301. }
  2302. function group3_datagrid5_onmousedown(obj:Grid, e:GridMouseEventInfo) {
  2303. fGetMouseDown();
  2304. }
  2305. function group3_datagrid5_onaftersort() {
  2306. group3.grd_testlist.gridToInstance();
  2307. }
  2308. function group3_datagrid5_oncopy() {
  2309. //grid_oncopy();
  2310. }
  2311. function group3_datagrid5_onkeydown(obj:Grid, e:KeyEventInfo) {
  2312. fGridKeyDown();
  2313. }
  2314. function group3_datagrid5_oncellclick(obj:Grid, e:GridClickEventInfo) {
  2315. if((group3.grd_testlist.isCell(event.target) && group3.grd_testlist.row >= group3.grd_testlist.fixedRows) && group3.grd_testlist.col >= 2 ){ //검사항목
  2316. fPatGridClick(group3.grd_testlist.row,group3.grd_testlist.col);
  2317. if(group3.grd_testlist.col == 3){
  2318. var strBcno = ds_main_testinfo_patlist.getColumn(group3.grd_testlist.row, "bcno");
  2319. window.clipBoardData = strBcno;
  2320. }
  2321. } else if(group3.grd_testlist.col == 1) { //체크박스
  2322. fSelectCancle();
  2323. }
  2324. }
  2325. function group3_button2_onclick(obj:Button, e:ClickEventInfo) {
  2326. grdf_exportExcel(group3.grd_testlist, "검사항목별결과관리", "sheet1", false);
  2327. }
  2328. function group3_cmb_cmt_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
  2329. fSetCmt(group3.grd_testlist.row,group3.grd_testlist.col);
  2330. }
  2331. function group3_button5_onclick(obj:Button, e:ClickEventInfo) {
  2332. frmf_modal("SMLLF00800", "", ""-"", "", "", "", "", "", "", "", "", "", "M");
  2333. ds_init_LB0210.clearData();
  2334. fBaseInfoRef2("0210|");
  2335. var vSectcd = ds_main_TestInfo_getSpcInfo.getColumn(0, "sectcd");
  2336. var vTsectcd = ds_main_TestInfo_getSpcInfo.getColumn(0, "tsectcd");
  2337. //alert(ds_main_TestInfo_getSpcInfo.getColumn(0, "sectcd"));
  2338. //alert(ds_main_TestInfo_getSpcInfo.getColumn(0, "tsectcd"));
  2339. fCMTPCD_ChangeNodeset(vSectcd, vTsectcd);
  2340. //fGrdReMake();
  2341. }
  2342. function group3_button6_onclick(obj:Button, e:ClickEventInfo) {
  2343. fSetContCmt(group3.grd_testlist.row,group3.grd_testlist.col);
  2344. }
  2345. function group3_textarea1_onkillfocus(obj:TextArea, e:KillFocusEventInfo) {
  2346. var vCurrentRow = ds_hidden.getColumn(0, "currenRow");
  2347. if(vCurrentRow !="") {
  2348. var vComment = ds_main_testinfo_spcinfo.getColumn(0, "testcmt");
  2349. ds_main_testinfo.setColumn( vCurrentRow , "testcmt", vComment);
  2350. }
  2351. }
  2352. function group3_textarea3_onkillfocus(obj:TextArea, e:KillFocusEventInfo) {
  2353. fSoGyeonJeoJang(1);
  2354. }
  2355. function group3_textarea3_onclick(obj:TextArea, e:ClickEventInfo) {
  2356. group3.textarea3.selBegin = (group3.textarea3.value).length;
  2357. }
  2358. function group3_text_testcmts_onkillfocus(obj:TextArea, e:KillFocusEventInfo) {
  2359. fSoGyeonJeoJang(2);
  2360. }
  2361. function group3_text_testcmts_onclick(obj:TextArea, e:ClickEventInfo) {
  2362. group3.text_testcmts.selBegin = (group3.text_testcmts.value).length;
  2363. }
  2364. function group3_cmb_sect_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
  2365. fSelectTestContTsect("return");
  2366. fCMTPCD_ChangeNodeset2();
  2367. }
  2368. function group3_btn_cle_onclick(obj:Button, e:ClickEventInfo) {
  2369. lf_setInit(1);
  2370. }
  2371. function group3_grd_testlist_onkeydown(obj:Grid, e:KeyEventInfo) {
  2372. // fGridKeyEvent();
  2373. }
  2374. function group3_grd_testlist_onmousedown(obj:Grid, e:GridMouseEventInfo) {
  2375. // fGetMouseDown();
  2376. }
  2377. function group3_grd_testlist_onaftersort() {
  2378. group3.grd_testlist.gridToInstance();
  2379. }
  2380. function group3_grd_testlist_oncopy() {
  2381. //grid_oncopy();
  2382. }
  2383. function group3_grd_testlist_onkeydown(obj:Grid, e:KeyEventInfo) {
  2384. fGridKeyDown();
  2385. }
  2386. function group2_caption17_onclick(obj:Static, e:MouseEventInfo) {
  2387. if(group3.datagrid1.visible == true){
  2388. group3.datagrid1.visible = false;
  2389. }else{
  2390. group3.datagrid1.visible = true;
  2391. }
  2392. }
  2393. // function _onmenu() {
  2394. //
  2395. // var popupParam = event.description;
  2396. // fOnmenu(popupParam);
  2397. //
  2398. // }
  2399. //
  2400. function SMLLR00410_onload(obj:Form, e:LoadEventInfo)
  2401. {
  2402. frmf_initForm(obj);
  2403. grdf_initGrid(group3.grd_testlist);
  2404. lf_setInit();
  2405. }
  2406. ]]></Script>
  2407. </Form>
  2408. </FDL>