SMLLR00420_ABO두검사항목별결과조회.xfdl 123 KB

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