SMLPR02100_환자별결과등록.xfdl 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLPR02100" position="absolute 0 0 1197 768" titletext="환자별 결과등록" oninit="SMLPR02100_oninit" onload="SMLPR02100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1138 3 1194 25" onclick="btn_save_onclick" anchor="top right"/>
  8. <Static id="caption6" text="환자별 결과등록" class="tit_1" position="absolute 0 0 140 25" anchor="left top"/>
  9. <Div id="group2" taborder="2" position="absolute 0 25 1194 85" class="div_SA" anchor="left top right">
  10. <Layouts>
  11. <Layout>
  12. <Static id="caption1" text="등록번호 :" class="search_name" position="absolute 16 9 89 26" anchor="left top"/>
  13. <Shape id="line1" linetype="vertical" class="line_4" position="absolute 1105 7 1111 53" anchor="top right"/>
  14. <Static id="caption13" text="결과구분 :" class="search_name" position="absolute 753 36 826 53" anchor="top right"/>
  15. <Static id="caption15" text="판독의사 :" class="search_name" position="absolute 753 9 826 26" anchor="top right"/>
  16. <Button id="btn_search" taborder="7" text="조회" class="btn1" position="absolute 1123 19 1179 41" anchor="top right" onclick="group2_btn_search_onclick"/>
  17. <Edit id="ipt_pid" taborder="8" class="input_search" position="absolute 93 8 193 27" anchor="left top"/>
  18. <Combo id="cmb_readdrid" taborder="9" innerdataset="ds_init_cmb_readdrid" codecolumn="userid" datacolumn="usernm" class="combo_search" position="absolute 830 8 930 27" anchor="top right"/>
  19. <Radio id="rdo_rsltflagcd" taborder="10" columncount="4" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 830 37 1095 53" anchor="top right" onitemchanged="group2_rdo_rsltflagcd_onitemchanged">
  20. <Dataset id="innerdataset">
  21. <ColumnInfo>
  22. <Column id="codecolumn"/>
  23. <Column id="datacolumn"/>
  24. </ColumnInfo>
  25. <Rows>
  26. <Row>
  27. <Col id="codecolumn">0</Col>
  28. <Col id="datacolumn">전체</Col>
  29. </Row>
  30. <Row>
  31. <Col id="codecolumn">1</Col>
  32. <Col id="datacolumn">미검사</Col>
  33. </Row>
  34. <Row>
  35. <Col id="codecolumn">2</Col>
  36. <Col id="datacolumn">미확인</Col>
  37. </Row>
  38. <Row>
  39. <Col id="codecolumn">3</Col>
  40. <Col id="datacolumn">결과완료</Col>
  41. </Row>
  42. </Rows>
  43. </Dataset>
  44. </Radio>
  45. <Combo id="cbo_ptnocd" taborder="11" innerdataset="ds_init_cbo_ptnocd" codecolumn="ptnocd" datacolumn="ptnonm" position="absolute 92 33 243 52" anchor="left top"/>
  46. <Edit id="ipt_fromptno" taborder="12" class="text_center" position="absolute 276 33 326 52" anchor="left top"/>
  47. <Static id="caption12" text="~" class="search_no_b" position="absolute 633 8 645 25" anchor="left top"/>
  48. <Static id="caption14" text="병리번호 :" class="search_name" position="absolute 16 34 87 51" anchor="left top"/>
  49. <Edit id="input1" taborder="13" class="text_center" position="absolute 374 33 424 52" anchor="left top"/>
  50. <Calendar id="ipt_acpttodd" taborder="14" class="input_s_essential" position="absolute 648 8 748 27" anchor="left top" onkeyup="group2_ipt_acpttodd_onkeyup"/>
  51. <Static id="caption17" text="~" class="search_no_b" position="absolute 329 33 341 50" anchor="left top"/>
  52. <Static id="caption9" text="접수일자 :" class="search_name" position="absolute 441 9 527 26" anchor="left top"/>
  53. <Edit id="ipt_fromyear" taborder="15" class="text_center" position="absolute 246 33 273 52" anchor="left top"/>
  54. <Calendar id="ipt_acptfromdd" taborder="16" class="input_s_essential" position="absolute 530 8 630 27" anchor="left top"/>
  55. <Edit id="ipt_toyear" taborder="17" class="text_center" position="absolute 344 33 371 52" anchor="left top"/>
  56. <Static id="caption18" text="검사코드 :" class="search_name" position="absolute 441 34 527 51" anchor="left top"/>
  57. <Edit id="opt_testnmlist" taborder="18" readonly="true" position="absolute 530 33 730 52" anchor="left top"/>
  58. <Button id="btn_bloc" taborder="20" onclick="grp_sea_btn_bloc_onclick" onlbuttonup="button6_onlbuttonup" class="icon_search" position="absolute 728 34 748 54" anchor="left top"/>
  59. </Layout>
  60. </Layouts>
  61. </Div>
  62. <Grid id="grd_moleptnolist" taborder="3" binddataset="ds_grd_moleptnolist" useinputpanel="false" position="absolute 0 123 540 765" oncellclick="grd_moleptnolist_oncellclick" anchor="left top bottom">
  63. <Formats>
  64. <Format id="default">
  65. <Columns>
  66. <Column size="0"/>
  67. <Column size="0"/>
  68. <Column size="28"/>
  69. <Column size="80"/>
  70. <Column size="84"/>
  71. <Column size="72"/>
  72. <Column size="72"/>
  73. <Column size="72"/>
  74. <Column size="0"/>
  75. <Column size="204"/>
  76. <Column size="0"/>
  77. <Column size="0"/>
  78. <Column size="0"/>
  79. <Column size="100"/>
  80. </Columns>
  81. <Rows>
  82. <Row size="24" band="head"/>
  83. <Row size="24"/>
  84. </Rows>
  85. <Band id="head">
  86. <Cell text="instcd"/>
  87. <Cell col="1" text="ptno"/>
  88. <Cell col="2"/>
  89. <Cell col="3" text="병리번호"/>
  90. <Cell col="4" text="동의서"/>
  91. <Cell col="5" text="접수일"/>
  92. <Cell col="6" text="등록번호"/>
  93. <Cell col="7" text="환자명"/>
  94. <Cell col="8" text="검사코드"/>
  95. <Cell col="9" text="검사종목"/>
  96. <Cell col="10" text="scanyn"/>
  97. <Cell col="11" text="formcd"/>
  98. <Cell col="12" text="cretno"/>
  99. <Cell col="13" text="선택진료의"/>
  100. </Band>
  101. <Band id="body">
  102. <Cell text="bind:instcd"/>
  103. <Cell col="1" text="bind:ptno"/>
  104. <Cell col="2" text="expr:currow + 1"/>
  105. <Cell col="3" class="text_center" text="bind:dispptno"/>
  106. <Cell col="4" text="bind:scrn"/>
  107. <Cell col="5" displaytype="date" edittype="date" class="text_center" text="bind:acptdd" mask="yyyy-MM-dd"/>
  108. <Cell col="6" class="text_center" text="bind:pid"/>
  109. <Cell col="7" class="text_center" text="bind:patnm"/>
  110. <Cell col="8" text="bind:testcd"/>
  111. <Cell col="9" text="bind:testnmlist"/>
  112. <Cell col="10" text="bind:sacnyn"/>
  113. <Cell col="11" text="bind:formcd"/>
  114. <Cell col="12" text="bind:cretno"/>
  115. <Cell col="13" text="bind:specdrnm"/>
  116. </Band>
  117. </Format>
  118. </Formats>
  119. </Grid>
  120. <Static id="caption2" text="병리번호 목록" class="tit_2" position="absolute 5 103 116 117"/>
  121. <Shape id="line2" linetype="horizontal" class="line_1" position="absolute 0 119 540 125" style="strokepen:3 solid #33bbbbff;" anchor="left top"/>
  122. <Edit id="output1" taborder="4" readonly="true" visible="false" position="absolute 325 98 595 117"/>
  123. <Grid id="grd_bfrsltlist" taborder="5" binddataset="ds_grd_bfrsltlist" useinputpanel="false" position="absolute 544 581 1193 765" autofittype="none" anchor="all">
  124. <Formats>
  125. <Format id="default">
  126. <Columns>
  127. <Column size="0"/>
  128. <Column size="0"/>
  129. <Column size="25"/>
  130. <Column size="80"/>
  131. <Column size="80"/>
  132. <Column size="554"/>
  133. </Columns>
  134. <Rows>
  135. <Row size="24" band="head"/>
  136. <Row size="49"/>
  137. </Rows>
  138. <Band id="head">
  139. <Cell text="instcd"/>
  140. <Cell col="1" text="ptno"/>
  141. <Cell col="2"/>
  142. <Cell col="3" text="병리번호"/>
  143. <Cell col="4" text="결과일자"/>
  144. <Cell col="5" text="결과값"/>
  145. </Band>
  146. <Band id="body">
  147. <Cell text="bind:instcd"/>
  148. <Cell col="1" text="bind:ptno"/>
  149. <Cell col="2" text="expr:currow + 1"/>
  150. <Cell col="3" text="bind:dispptno"/>
  151. <Cell col="4" displaytype="date" edittype="date" class="text_center" text="bind:rsltrgstdd" mask="yyyy-MM-dd"/>
  152. <Cell col="5" style="align:left top;" text="bind:testrslt" autosizerow="limitmin" autosizecol="limitmin"/>
  153. </Band>
  154. </Format>
  155. </Formats>
  156. </Grid>
  157. <Shape id="line11" linetype="horizontal" class="line_1" position="absolute 544 577 1193 583" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  158. <Static id="caption16" text="이전결과" class="tit_2" position="absolute 547 560 667 576"/>
  159. <Shape id="line3" linetype="horizontal" class="line_1" position="absolute 544 119 1193 125" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  160. <Static id="caption3" text="검사별 결과" class="tit_2" position="absolute 546 102 674 119"/>
  161. <Grid id="grd_prcplist" class="datagrid2" taborder="6" binddataset="ds_grd_prcplist" useinputpanel="false" position="absolute 544 123 1193 553" autofittype="col" anchor="left top right">
  162. <Formats>
  163. <Format id="default">
  164. <Columns>
  165. <Column size="0"/>
  166. <Column size="0"/>
  167. <Column size="0"/>
  168. <Column size="326"/>
  169. <Column size="0"/>
  170. <Column size="0"/>
  171. <Column size="0"/>
  172. <Column size="150"/>
  173. <Column size="150"/>
  174. <Column size="0"/>
  175. <Column size="0"/>
  176. <Column size="0"/>
  177. <Column size="0"/>
  178. <Column size="0"/>
  179. <Column size="0"/>
  180. <Column size="0"/>
  181. <Column size="0"/>
  182. <Column size="0"/>
  183. <Column size="0"/>
  184. <Column size="0"/>
  185. <Column size="0"/>
  186. <Column size="0"/>
  187. <Column size="0"/>
  188. <Column size="0"/>
  189. <Column size="0"/>
  190. <Column size="0"/>
  191. <Column size="0"/>
  192. <Column size="0"/>
  193. <Column size="0"/>
  194. <Column size="0"/>
  195. <Column size="0"/>
  196. <Column size="0"/>
  197. <Column size="0"/>
  198. <Column size="0"/>
  199. <Column size="0"/>
  200. <Column size="0"/>
  201. <Column size="0"/>
  202. <Column size="0"/>
  203. <Column size="0"/>
  204. <Column size="0"/>
  205. <Column size="0"/>
  206. <Column size="0"/>
  207. <Column size="0"/>
  208. <Column size="0"/>
  209. <Column size="0"/>
  210. <Column size="0"/>
  211. <Column size="0"/>
  212. <Column size="0"/>
  213. <Column size="0"/>
  214. <Column size="0"/>
  215. <Column size="0"/>
  216. <Column size="0"/>
  217. <Column size="0"/>
  218. <Column size="0"/>
  219. </Columns>
  220. <Rows>
  221. <Row size="24" band="head"/>
  222. <Row size="24"/>
  223. </Rows>
  224. <Band id="head">
  225. <Cell text="instcd"/>
  226. <Cell col="1" text="ptno"/>
  227. <Cell col="2" text="병리번호"/>
  228. <Cell col="3" text="검사명"/>
  229. <Cell col="4" text="검체명"/>
  230. <Cell col="5" text="등록번호"/>
  231. <Cell col="6" text="성명"/>
  232. <Cell col="7" text="이전결과"/>
  233. <Cell col="8" text="결과"/>
  234. <Cell col="9" text="cncrjudgflagcd"/>
  235. <Cell col="10" text="성별&#10;나이"/>
  236. <Cell col="11" text="orddeptcd"/>
  237. <Cell col="12" text="진료과"/>
  238. <Cell col="13" text="orddrid"/>
  239. <Cell col="14" text="진료의"/>
  240. <Cell col="15" text="병동/병실"/>
  241. <Cell col="16" text="처방일자"/>
  242. <Cell col="17" text="처방시간"/>
  243. <Cell col="18" text="접수일자"/>
  244. <Cell col="19" text="접수시간"/>
  245. <Cell col="20" text="결과일자"/>
  246. <Cell col="21" text="결과시간"/>
  247. <Cell col="22" text="접수번호"/>
  248. <Cell col="23" text="orgprcpstatcd"/>
  249. <Cell col="24" text="testcd"/>
  250. <Cell col="25" text="spccd"/>
  251. <Cell col="26" text="prcpno"/>
  252. <Cell col="27" text="execprcpuniqno"/>
  253. <Cell col="28" text="rsltrgstno"/>
  254. <Cell col="29" text="등록자"/>
  255. <Cell col="30" text="orgtestrslt"/>
  256. <Cell col="31" text="inptdd"/>
  257. <Cell col="32" text="inpttm"/>
  258. <Cell col="33" text="caption1"/>
  259. <Cell col="34" text="caption2"/>
  260. <Cell col="35" text="caption3"/>
  261. <Cell col="36" text="caption4"/>
  262. <Cell col="37" text="caption5"/>
  263. <Cell col="38" text="caption6"/>
  264. <Cell col="39" text="caption7"/>
  265. <Cell col="40" text="caption8"/>
  266. <Cell col="41" text="caption9"/>
  267. <Cell col="42" text="caption10"/>
  268. <Cell col="43" text="caption11"/>
  269. <Cell col="44" text="choi"/>
  270. <Cell col="45" text="rsltrgstid"/>
  271. <Cell col="46" text="acptitemno"/>
  272. <Cell col="47" text="orgacptstatcd"/>
  273. <Cell col="48" text="prcpgenrflag"/>
  274. <Cell col="49" text="caption12"/>
  275. <Cell col="50" text="caption13"/>
  276. <Cell col="51" text="rsltcnts5"/>
  277. <Cell col="52" text="scrnid"/>
  278. <Cell col="53" text="readdrid"/>
  279. </Band>
  280. <Band id="body">
  281. <Cell text="bind:instcd"/>
  282. <Cell col="1" text="bind:ptno"/>
  283. <Cell col="2" class="text_center" text="bind:dispptno"/>
  284. <Cell col="3" text="bind:testnm"/>
  285. <Cell col="4" text="bind:spcnm"/>
  286. <Cell col="5" class="text_center" text="bind:pid"/>
  287. <Cell col="6" text="bind:patnm"/>
  288. <Cell col="7" class="text_right" text="bind:bftestrslt"/>
  289. <Cell col="8" class="text_right" text="bind:testrslt" edittype="text" displaytype="text"/>
  290. <Cell col="9" text="bind:cncrjudgflagcd"/>
  291. <Cell col="10" class="text_center" text="bind:sexage"/>
  292. <Cell col="11" text="bind:orddeptcd"/>
  293. <Cell col="12" class="text_center" text="bind:orddeptnm"/>
  294. <Cell col="13" text="bind:orddrid"/>
  295. <Cell col="14" class="text_center" text="bind:orddrnm"/>
  296. <Cell col="15" class="text_center" text="bind:wardroom"/>
  297. <Cell col="16" text="bind:prcpdd"/>
  298. <Cell col="17" text="bind:prcptm"/>
  299. <Cell col="18" class="text_center" text="bind:acptdd" mask="yyyy-mm-dd"/>
  300. <Cell col="19" class="text_center" text="bind:acpttm" mask="hh:nn:ss"/>
  301. <Cell col="20" class="text_center" text="bind:rsltrgstdd" mask="yyyy-mm-dd"/>
  302. <Cell col="21" class="text_center" text="bind:rsltrgsttm" mask="hh:nn:ss"/>
  303. <Cell col="22" text="bind:acptno"/>
  304. <Cell col="23" text="bind:orgprcpstatcd"/>
  305. <Cell col="24" text="bind:testcd"/>
  306. <Cell col="25" text="bind:spccd"/>
  307. <Cell col="26" text="bind:prcpno"/>
  308. <Cell col="27" text="bind:execprcpuniqno"/>
  309. <Cell col="28" text="bind:rsltrgstno"/>
  310. <Cell col="29" class="text_center" text="bind:rgstnm"/>
  311. <Cell col="30" text="bind:orgtestrslt"/>
  312. <Cell col="31" text="bind:inptdd"/>
  313. <Cell col="32" text="bind:inpttm"/>
  314. <Cell col="33" text="bind:extrpartcd"/>
  315. <Cell col="34" text="bind:extrmthdcd"/>
  316. <Cell col="35" text="bind:diagcd"/>
  317. <Cell col="36" text="bind:cmtcnts"/>
  318. <Cell col="37" text="bind:spckeepflagcd"/>
  319. <Cell col="38" text="bind:conccaseflagcd"/>
  320. <Cell col="39" text="bind:rslthideflagcd"/>
  321. <Cell col="40" text="bind:preprsltflagcd"/>
  322. <Cell col="41" text="bind:workflagcd"/>
  323. <Cell col="42" text="bind:trandd"/>
  324. <Cell col="43" text="bind:tranno"/>
  325. <Cell col="44" text="bind:choi"/>
  326. <Cell col="45" text="bind:rsltrgstid"/>
  327. <Cell col="46" text="bind:acptitemno"/>
  328. <Cell col="47" text="bind:orgacptstatcd"/>
  329. <Cell col="48" text="bind:prcpgenrflag"/>
  330. <Cell col="49" text="bind:rsltcnts3"/>
  331. <Cell col="50" text="bind:rsltcnts4"/>
  332. <Cell col="51" text="bind:rsltcnts5"/>
  333. <Cell col="52" text="bind:scrnid"/>
  334. <Cell col="53" text="bind:readdrid"/>
  335. </Band>
  336. </Format>
  337. </Formats>
  338. </Grid>
  339. <Combo id="cmb_readdr" taborder="7" innerdataset="ds_init_cmb_readdr" codecolumn="userid" datacolumn="usernm" class="input_s_essential" position="absolute 730 98 856 117"/>
  340. <Static id="caption48" class="cell_1" position="absolute 655 98 728 117" text="판독의 지정" style="padding:0 0 0 0;align:center middle;"/>
  341. <Div id="grp_testlist" taborder="8" visible="false" position="absolute 531 74 1086 545">
  342. <Layouts>
  343. <Layout>
  344. <Grid id="grd_testlist" taborder="1" binddataset="ds_grd_testlist" useinputpanel="false" position="absolute 0 8 555 445" anchor="default" autofittype="col">
  345. <Formats>
  346. <Format id="default">
  347. <Columns>
  348. <Column size="56"/>
  349. <Column size="0"/>
  350. <Column size="80"/>
  351. <Column size="200"/>
  352. <Column size="200"/>
  353. </Columns>
  354. <Rows>
  355. <Row size="24" band="head"/>
  356. <Row size="24"/>
  357. </Rows>
  358. <Band id="head">
  359. <Cell text="선택"/>
  360. <Cell col="1" text="기관코드"/>
  361. <Cell col="2" text="코드"/>
  362. <Cell col="3" text="명칭"/>
  363. <Cell col="4" text="약어"/>
  364. </Band>
  365. <Band id="body">
  366. <Cell text="bind:choi" edittype="checkbox" displaytype="checkbox"/>
  367. <Cell col="1" text="bind:instcd"/>
  368. <Cell col="2" text="bind:testcd"/>
  369. <Cell col="3" text="bind:testengnm"/>
  370. <Cell col="4" text="bind:testengabbr"/>
  371. </Band>
  372. </Format>
  373. </Formats>
  374. </Grid>
  375. <Button id="btn_cls" taborder="2" text="닫기" class="btn4" position="absolute 499 446 555 468" anchor="default" onclick="grp_testlist_btn_cls_onclick"/>
  376. <Button id="btn_cfm" taborder="3" text="확인" class="btn4" position="absolute 440 446 496 468" anchor="default" onclick="grp_testlist_btn_cfm_onclick"/>
  377. </Layout>
  378. </Layouts>
  379. </Div>
  380. </Layout>
  381. </Layouts>
  382. <Objects>
  383. <Dataset id="ds_init_cmb_readdrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  384. <ColumnInfo>
  385. <Column id="usernm" type="STRING"/>
  386. <Column id="userid" type="STRING"/>
  387. </ColumnInfo>
  388. </Dataset>
  389. <Dataset id="ds_init_cbo_ptnocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  390. <ColumnInfo>
  391. <Column id="ptnonm" type="STRING"/>
  392. <Column id="ptnocd" type="STRING"/>
  393. </ColumnInfo>
  394. </Dataset>
  395. <Dataset id="ds_grd_moleptnolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  396. <ColumnInfo>
  397. <Column id="instcd" type="STRING"/>
  398. <Column id="ptno" type="STRING"/>
  399. <Column id="dispptno" type="STRING"/>
  400. <Column id="scrn" type="STRING"/>
  401. <Column id="acptdd" type="STRING"/>
  402. <Column id="pid" type="STRING"/>
  403. <Column id="patnm" type="STRING"/>
  404. <Column id="testcd" type="STRING"/>
  405. <Column id="testnmlist" type="STRING"/>
  406. <Column id="sacnyn" type="STRING"/>
  407. <Column id="formcd" type="STRING"/>
  408. <Column id="cretno" type="STRING"/>
  409. <Column id="specdrnm" type="STRING"/>
  410. <Column id="scrnid" type="STRING" size="256"/>
  411. </ColumnInfo>
  412. </Dataset>
  413. <Dataset id="ds_grd_bfrsltlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  414. <ColumnInfo>
  415. <Column id="instcd" type="STRING"/>
  416. <Column id="ptno" type="STRING"/>
  417. <Column id="dispptno" type="STRING"/>
  418. <Column id="rsltrgstdd" type="STRING"/>
  419. <Column id="testrslt" type="STRING"/>
  420. </ColumnInfo>
  421. </Dataset>
  422. <Dataset id="ds_grd_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  423. <ColumnInfo>
  424. <Column id="instcd" type="STRING"/>
  425. <Column id="ptno" type="STRING"/>
  426. <Column id="dispptno" type="STRING"/>
  427. <Column id="testnm" type="STRING"/>
  428. <Column id="spcnm" type="STRING"/>
  429. <Column id="pid" type="STRING"/>
  430. <Column id="patnm" type="STRING"/>
  431. <Column id="bftestrslt" type="STRING"/>
  432. <Column id="testrslt" type="STRING"/>
  433. <Column id="cncrjudgflagcd" type="STRING"/>
  434. <Column id="sexage" type="STRING"/>
  435. <Column id="orddeptcd" type="STRING"/>
  436. <Column id="orddeptnm" type="STRING"/>
  437. <Column id="orddrid" type="STRING"/>
  438. <Column id="orddrnm" type="STRING"/>
  439. <Column id="wardroom" type="STRING"/>
  440. <Column id="prcpdd" type="STRING"/>
  441. <Column id="prcptm" type="STRING"/>
  442. <Column id="acptdd" type="STRING"/>
  443. <Column id="acpttm" type="STRING"/>
  444. <Column id="rsltrgstdd" type="STRING"/>
  445. <Column id="rsltrgsttm" type="STRING"/>
  446. <Column id="acptno" type="STRING"/>
  447. <Column id="orgprcpstatcd" type="STRING"/>
  448. <Column id="testcd" type="STRING"/>
  449. <Column id="spccd" type="STRING"/>
  450. <Column id="prcpno" type="STRING"/>
  451. <Column id="execprcpuniqno" type="STRING"/>
  452. <Column id="rsltrgstno" type="STRING"/>
  453. <Column id="rgstnm" type="STRING"/>
  454. <Column id="orgtestrslt" type="STRING"/>
  455. <Column id="inptdd" type="STRING"/>
  456. <Column id="inpttm" type="STRING"/>
  457. <Column id="extrpartcd" type="STRING"/>
  458. <Column id="extrmthdcd" type="STRING"/>
  459. <Column id="diagcd" type="STRING"/>
  460. <Column id="cmtcnts" type="STRING"/>
  461. <Column id="spckeepflagcd" type="STRING"/>
  462. <Column id="conccaseflagcd" type="STRING"/>
  463. <Column id="rslthideflagcd" type="STRING"/>
  464. <Column id="preprsltflagcd" type="STRING"/>
  465. <Column id="workflagcd" type="STRING"/>
  466. <Column id="trandd" type="STRING"/>
  467. <Column id="tranno" type="STRING"/>
  468. <Column id="choi" type="STRING"/>
  469. <Column id="rsltrgstid" type="STRING"/>
  470. <Column id="acptitemno" type="STRING"/>
  471. <Column id="orgacptstatcd" type="STRING"/>
  472. <Column id="prcpgenrflag" type="STRING"/>
  473. <Column id="rsltcnts3" type="STRING"/>
  474. <Column id="rsltcnts4" type="STRING"/>
  475. <Column id="rsltcnts5" type="STRING"/>
  476. <Column id="scrnid" type="STRING"/>
  477. <Column id="readdrid" type="STRING"/>
  478. </ColumnInfo>
  479. </Dataset>
  480. <Dataset id="ds_init_cmb_readdr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  481. <ColumnInfo>
  482. <Column id="usernm" type="STRING"/>
  483. <Column id="userid" type="STRING"/>
  484. </ColumnInfo>
  485. </Dataset>
  486. <Dataset id="ds_grd_testlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  487. <ColumnInfo>
  488. <Column id="choi" type="STRING"/>
  489. <Column id="instcd" type="STRING"/>
  490. <Column id="testcd" type="STRING"/>
  491. <Column id="testengnm" type="STRING"/>
  492. <Column id="testengabbr" type="STRING"/>
  493. </ColumnInfo>
  494. </Dataset>
  495. <Dataset id="ds_hosoenvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  496. <ColumnInfo>
  497. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  498. <Column id="lendrtnterm" type="STRING" size="256" sumtext="대출반환기간"/>
  499. <Column id="recvqualmthdcd" type="STRING" size="256" sumtext="수신확인방법"/>
  500. <Column id="plgydeptcd" type="STRING" size="256" sumtext="병리과"/>
  501. <Column id="plgyteamcd" type="STRING" size="256" sumtext="병리팀"/>
  502. <Column id="doctjobgradcd" type="STRING" size="256" sumtext="병리의사직급코드"/>
  503. <Column id="teamjobgradcd" type="STRING" size="256" sumtext="레지던트직급코드"/>
  504. <Column id="csteeqmtip" type="STRING" size="256" sumtext="Cassette장비IP"/>
  505. <Column id="csteeqmtport" type="STRING" size="256" sumtext="Cassette장비Port"/>
  506. <Column id="slideqmtip" type="STRING" size="256" sumtext="슬라이드장비IP"/>
  507. <Column id="norcptacptyn" type="STRING" size="256" sumtext="외래미수납접수여부"/>
  508. <Column id="slidbceqmtip" type="STRING" size="256" sumtext="슬라이드(라벨지)장비IP"/>
  509. <Column id="acptreaddr" type="STRING" size="256" sumtext="접수시점판독의지정여부"/>
  510. <Column id="slidbceqmtip2" type="STRING" size="256" sumtext="슬라이드(라벨지)장비IP2"/>
  511. <Column id="slidbceqmtport2" type="STRING" size="256" sumtext="슬라이드(라벨지)장비Port2"/>
  512. <Column id="repttitl" type="STRING" size="256" sumtext="보고서제목"/>
  513. <Column id="repttitl2" type="STRING" size="256" sumtext="자문의뢰제목"/>
  514. <Column id="plgyrecroom1" type="STRING" size="256" sumtext="병리과기록실1"/>
  515. <Column id="plgyrecroom2" type="STRING" size="256" sumtext="병리과기록실2"/>
  516. <Column id="ptnoacptflag" type="STRING" size="256" sumtext="병리번호접수구분"/>
  517. <Column id="autoacptflagcd" type="STRING" size="256" sumtext="자동접수구분"/>
  518. </ColumnInfo>
  519. <Rows>
  520. <Row/>
  521. </Rows>
  522. </Dataset>
  523. <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  524. <ColumnInfo>
  525. <Column id="sysdd" type="STRING" size="256"/>
  526. <Column id="systm" type="STRING" size="256"/>
  527. </ColumnInfo>
  528. </Dataset>
  529. <Dataset id="ds_userinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  530. <ColumnInfo>
  531. <Column id="choi" type="STRING" size="256" sumtext="선택"/>
  532. <Column id="dutplceinstcd" type="STRING" size="256" sumtext="기관코드"/>
  533. <Column id="userid" type="STRING" size="256" sumtext="사용자ID"/>
  534. <Column id="usernm" type="STRING" size="256" sumtext="사용자명"/>
  535. <Column id="jobkindcd" type="STRING" size="256" sumtext="직종구분코드"/>
  536. <Column id="userabbr" type="STRING" size="256" sumtext="직종구분코드"/>
  537. <Column id="mpphonno" type="STRING" size="256" sumtext="직종구분코드"/>
  538. </ColumnInfo>
  539. <Rows>
  540. <Row/>
  541. </Rows>
  542. </Dataset>
  543. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  544. <ColumnInfo>
  545. <Column id="pid" type="STRING" size="256"/>
  546. <Column id="readdrid" type="STRING" size="256"/>
  547. <Column id="rsltflagcd" type="STRING" size="256"/>
  548. <Column id="acptfromdd" type="STRING" size="256"/>
  549. <Column id="acpttodd" type="STRING" size="256"/>
  550. <Column id="ptnocode" type="STRING" size="256"/>
  551. <Column id="fromyear" type="STRING" size="256"/>
  552. <Column id="toyear" type="STRING" size="256"/>
  553. <Column id="fromptno" type="STRING" size="256"/>
  554. <Column id="toptno" type="STRING" size="256"/>
  555. <Column id="testnmlist" type="STRING" size="256"/>
  556. <Column id="ptno" type="STRING" size="256"/>
  557. <Column id="testcdlist" type="STRING" size="256"/>
  558. </ColumnInfo>
  559. <Rows>
  560. <Row/>
  561. </Rows>
  562. </Dataset>
  563. <Dataset id="ds_bfptnolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  564. <ColumnInfo>
  565. <Column id="instcd" type="STRING" size="256"/>
  566. <Column id="ptno" type="STRING" size="256"/>
  567. <Column id="dispptno" type="STRING" size="256"/>
  568. <Column id="rsltrgstdd" type="STRING" size="256"/>
  569. <Column id="testrslt" type="STRING" size="256"/>
  570. </ColumnInfo>
  571. <Rows>
  572. <Row/>
  573. </Rows>
  574. </Dataset>
  575. </Objects>
  576. <Bind>
  577. <BindItem id="item0" compid="group2.ipt_pid" propid="value" datasetid="ds_init" columnid="pid"/>
  578. <BindItem id="item1" compid="group2.cbo_ptnocd" propid="value" datasetid="ds_init" columnid="ptnocode"/>
  579. <BindItem id="item2" compid="group2.ipt_fromyear" propid="value" datasetid="ds_init" columnid="fromyear"/>
  580. <BindItem id="item3" compid="group2.ipt_fromptno" propid="value" datasetid="ds_init" columnid="fromptno"/>
  581. <BindItem id="item4" compid="group2.ipt_toyear" propid="value" datasetid="ds_init" columnid="toyear"/>
  582. <BindItem id="item5" compid="group2.input1" propid="value" datasetid="ds_init" columnid="toptno"/>
  583. <BindItem id="item6" compid="group2.ipt_acptfromdd" propid="value" datasetid="ds_init" columnid="acptfromdd"/>
  584. <BindItem id="item7" compid="group2.opt_testnmlist" propid="value" datasetid="ds_init" columnid="testnmlist"/>
  585. <BindItem id="item8" compid="group2.ipt_acpttodd" propid="value" datasetid="ds_init" columnid="acpttodd"/>
  586. <BindItem id="item9" compid="group2.cmb_readdrid" propid="value" datasetid="ds_init" columnid="readdrid"/>
  587. <BindItem id="item10" compid="group2.rdo_rsltflagcd" propid="value" datasetid="ds_init" columnid="rsltflagcd"/>
  588. <BindItem id="item11" compid="output1" propid="value" datasetid="ds_init" columnid="testcdlist"/>
  589. </Bind>
  590. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  591. * System Name :
  592. * Job Name :
  593. * Creator :
  594. * Make Date : 2015-11-13
  595. * Description :
  596. *---------------------------------------------------------------------------------------
  597. * Modify Date Modifier Modify Description
  598. *---------------------------------------------------------------------------------------
  599. * 2015-11-13 Live Converter TF->XP
  600. *
  601. *---------------------------------------------------------------------------------------
  602. ****************************************************************************************/
  603. include "com_commonxp::comm_main.xjs";
  604. include "lis_commonxp::LPZ001.xjs";
  605. function SMLPR02100_oninit(obj:Form, e:InitEventInfo)
  606. {
  607. frmf_initForm(obj);
  608. }
  609. function SMLPR02100_onload(obj:Form, e:LoadEventInfo)
  610. {
  611. grdf_initGrid(grd_bfrsltlist);
  612. grdf_initGrid(grd_moleptnolist);
  613. grdf_initGrid(grd_prcplist);
  614. grdf_initGrid(grp_testlist.grd_testlist);
  615. fExeInitialize();
  616. }
  617. //초기화
  618. function fExeInitialize()
  619. {
  620. var sCurDate = "";
  621. dsf_createDsRow("ds_send", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}]);
  622. //submit("TRLPZ00101", false);
  623. var oParam = {};
  624. oParam.id = "TRLPZ00101";
  625. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  626. oParam.method = "reqGetHospitalEnvironmentSetInfo";
  627. oParam.inds = "refData=ds_send";
  628. oParam.outds = "ds_hosoenvinfo=hospenvinfo";
  629. oParam.async = false;
  630. //oParam.callback = "cf_TRLPZ00101";
  631. tranf_submit(oParam);
  632. //submit("TRLPZ00102", false);
  633. dsf_createDsRow("ds_send", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}]);
  634. var oParam = {};
  635. oParam.id = "TRLPZ00102";
  636. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  637. oParam.method = "reqGetSystemDateTimeInformation";
  638. oParam.inds = "refData=ds_send";
  639. oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
  640. oParam.async = false;
  641. //oParam.callback = "cf_TRLPZ00102";
  642. tranf_submit(oParam);
  643. //submit("TRLPZ00109", false);
  644. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  645. ,{col : "refflagcd", val : "0"}]);
  646. var oParam = {};
  647. oParam.id = "TRLPZ00109";
  648. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  649. oParam.method = "reqGetPtNoCdList";
  650. oParam.inds = "refdata=ds_send";
  651. oParam.outds = "ds_init_cbo_ptnocd=rsltlist";
  652. oParam.async = false;
  653. //oParam.callback = "cf_TRLPZ00109";
  654. tranf_submit(oParam);
  655. var userdeptcd = sysf_getUserInfo("dutplcecd");
  656. var doctjobgradcd = ds_hosoenvinfo.getColumn(0, "doctjobgradcd");
  657. var teamjobgradcd = ds_hosoenvinfo.getColumn(0, "teamjobgradcd");
  658. dsf_createDsRow("ds_temp_search" , [{col: "instcd", val:sysf_getUserInfo("dutplceinstcd") }
  659. , {col: "userdeptcd", val:userdeptcd }
  660. , {col: "doctjobgradcd", val:doctjobgradcd }
  661. , {col: "teamjobgradcd", val:teamjobgradcd }]);
  662. //submit("TRLPZ00105");
  663. var oParam = {};
  664. oParam.id = "TRLPZ00105";
  665. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  666. oParam.method = "reqGetUserInfoList";
  667. oParam.inds = "refdata=ds_temp_search";
  668. oParam.outds = "ds_userinfolist=reflist";
  669. oParam.async = false;
  670. //oParam.callback = "cf_TRLPZ00105";
  671. tranf_submit(oParam);
  672. fdsf_createDsFilter("ds_cmb_readdr", "ds_userinfolist", "jobkindcd=='1'");
  673. //육안검사의
  674. group2.cmb_readdrid.innerdataset = ds_cmb_readdr;
  675. group2.cmb_readdrid.codecolumn = "userid";
  676. group2.cmb_readdrid.datacolumn = "usernm";
  677. cmb_readdr.innerdataset = ds_cmb_readdr;
  678. cmb_readdr.codecolumn = "userid";
  679. cmb_readdr.datacolumn = "usernm";
  680. //------------
  681. // 초기값 설정
  682. var sCurDate = ds_data_sysdtinfo.getColumn(0, "sysdd");
  683. ds_init.setColumn(0, "pid", "");
  684. ds_init.setColumn(0, "readdrid", "");
  685. ds_init.setColumn(0, "rsltflagcd", "1");
  686. ds_init.setColumn(0, "acptfromdd", ds_data_sysdtinfo.getColumn(0, "sysdd"));
  687. ds_init.setColumn(0, "acpttodd", ds_data_sysdtinfo.getColumn(0, "sysdd"));
  688. ds_init.setColumn(0, "rsltflagcd", "1");
  689. ds_init.setColumn(0, "fromyear", sCurDate.substr(2,2));
  690. ds_init.setColumn(0, "toyear", sCurDate.substr(2,2));
  691. ds_init.setColumn(0, "fromptno", "");
  692. ds_init.setColumn(0, "toptno", "");
  693. group2.cmb_readdrid.enable = false;
  694. fGetTestCdList();
  695. }
  696. //분자검사목록 조회 함수
  697. function fGetTestCdList()
  698. {
  699. dsf_createDsRow("ds_send" , [{col: "delflagcd", val : "0"}
  700. ,{col: "refflag", val : "1" }
  701. ,{col: "refval", val : "PM" }
  702. ,{col: "instcd", val : sysf_getUserInfo("dutplceinstcd")}]);
  703. var oParam = {};
  704. oParam.id = "TRLPC00401";
  705. oParam.service = "plgybaseinfomngtapp.TestCode";
  706. oParam.method = "reqGetTestCodeList";
  707. oParam.inds = "refData=ds_send";
  708. oParam.outds = "ds_grd_testlist=rsltlist";
  709. oParam.async = false;
  710. //oParam.callback = "cf_TRLPC00401";
  711. tranf_submit(oParam);
  712. }
  713. function fGetMolePtNoList()
  714. {
  715. var sTemp = "";
  716. var sFromDD = ds_init.getColumn(0, "acptfromdd");
  717. var sToDD = ds_init.getColumn(0, "acpttodd");
  718. if( !utlf_isNull(ds_init.getColumn(0, "ptnocode")))
  719. {
  720. if( utlf_isNull(ds_init.getColumn(0, "fromyear")))
  721. {
  722. ds_init.setColumn(0, "fromyear", sFromDD.substr(2,2));
  723. }
  724. else
  725. {
  726. sTemp = ds_init.getColumn(0, "fromyear");
  727. ds_init.setColumn(0, "fromyear", sTemp.getLeftPad(2, "0"));
  728. }
  729. if( utlf_isNull(ds_init.getColumn(0, "toyear")))
  730. {
  731. ds_init.setColumn(0, "toyear", sToDD.substr(2,2));
  732. }
  733. else
  734. {
  735. sTemp = ds_init.getColumn(0, "toyear");
  736. ds_init.setColumn(0, "toyear", sTemp.getLeftPad(2, "0"));
  737. }
  738. if(utlf_isNull(ds_init.getColumn(0, "fromptno")))
  739. {
  740. ds_init.setColumn(0, "fromptno", "000000");
  741. }
  742. else
  743. {
  744. sTemp = ds_init.getColumn(0, "fromptno");
  745. ds_init.setColumn(0, "fromptno", sTemp.getLeftPad(6, "0"));
  746. }
  747. if( utlf_isNull(ds_init.getColumn(0, "toptno")))
  748. {
  749. ds_init.setColumn(0, "toptno", "999999");
  750. }
  751. else
  752. {
  753. sTemp = ds_init.getColumn(0, "toptno");
  754. ds_init.setColumn(0, "toptno", sTemp.getLeftPad(6, "0"));
  755. }
  756. }
  757. sTemp = utlf_transNullToEmpty(ds_init.getColumn(0, "ptnocode"));
  758. //----------------------
  759. dsf_createDsRow("ds_send" , [{col: "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  760. ,{col: "pid", val : ds_init.getColumn(0, "pid")}
  761. ,{col: "ptno", val : ds_init.getColumn(0, "ptno") }
  762. ,{col: "readdrid", val : ds_init.getColumn(0, "readdrid")}
  763. ,{col: "acptfromdd", val : ds_init.getColumn(0, "acptfromdd") }
  764. ,{col: "acpttodd", val : ds_init.getColumn(0, "acpttodd") }
  765. ,{col: "rsltflagcd", val : ds_init.getColumn(0, "rsltflagcd") }
  766. ,{col: "workflagcd", val : "1007" }
  767. ,{col: "ptnocode", val : sTemp.replace("-", "") }
  768. ,{col: "fromyear", val : ds_init.getColumn(0, "fromyear") }
  769. ,{col: "fromptno", val : ds_init.getColumn(0, "fromptno") }
  770. ,{col: "toyear", val : ds_init.getColumn(0, "toyear") }
  771. ,{col: "toptno", val : ds_init.getColumn(0, "toptno") }
  772. ,{col: "workflagcd", val : "1007" }
  773. ,{col: "bizflagcd", val : "M" }
  774. ,{col: "testcdlist", val : ds_init.getColumn(0, "testcdlist")}]);
  775. var oParam = {};
  776. oParam.id = "TRLPR00501";
  777. oParam.service = "plgyrsltmngtapp.TestRsltRgst";
  778. oParam.method = "reqGetMolePtNoList";
  779. oParam.inds = "reqdata=ds_send";
  780. oParam.outds = "ds_grd_moleptnolist=refrslt";
  781. oParam.async = false;
  782. //oParam.callback = "cf_TRLPR00501";
  783. tranf_submit(oParam);
  784. }
  785. //결과구분 변경 처리 함수
  786. function fExeRsltFlagChange()
  787. {
  788. switch (ds_init.getColumn(0, "rsltflagcd"))
  789. {
  790. case "0" : group2.cmb_readdrid.enable = true;
  791. break;
  792. case "1" : group2.cmb_readdrid.enable = false;
  793. break;
  794. case "2" : group2.cmb_readdrid.enable = false;
  795. break;
  796. case "3" : group2.cmb_readdrid.enable = true;
  797. break;
  798. }
  799. }
  800. //검사코드 선택 처리 Function
  801. function fExeTestItemChoi()
  802. {
  803. var iFindNo = 0;
  804. var sTestCd = "";
  805. var sTestNm = "";
  806. var bState = false;
  807. var sNode = ds_grd_testlist;
  808. iFindNo = ds_grd_testlist.findRow("choi", "1");
  809. if (Number(iFindNo) < 0)
  810. {
  811. ds_init.setColumn(0, "testcdlist", "");
  812. ds_init.setColumn(0, "testnmlist", "");
  813. grp_testlist.visible = false;
  814. return false;
  815. }
  816. //-----------------------------------------------------
  817. for (var iNo = 0; iNo <= ds_grd_testlist.rowcount; iNo++)
  818. {
  819. if(ds_grd_testlist.getColumn(iNo, "choi") == "1")
  820. {
  821. if (bState)
  822. {
  823. sTestCd += ", '" + ds_grd_testlist.getColumn(iNo, "testcd") + "'";
  824. sTestNm += ", " + ds_grd_testlist.getColumn(iNo, "testengnm");
  825. }
  826. else
  827. {
  828. sTestCd += "'" + ds_grd_testlist.getColumn(iNo, "testcd") + "'";
  829. sTestNm += ds_grd_testlist.getColumn(iNo, "testengnm");
  830. bState = true;
  831. }
  832. }
  833. }
  834. ds_init.setColumn(0, "testcdlist", sTestCd);
  835. ds_init.setColumn(0, "testnmlist", sTestNm);
  836. grp_testlist.visible = false;
  837. }
  838. //분자병리 접수목록 그리드 클릭 처리 함수
  839. function fExePtNoGridClick(pRowNo)
  840. {
  841. fExePtNoChoi(pRowNo);
  842. }
  843. function fExePtNoChoi(pRowNo)
  844. {
  845. var sTestCd = "";
  846. var sTestCdList = "";
  847. var vTestCd = "";
  848. var sNode = ds_grd_moleptnolist;
  849. //----------------------------
  850. if (pRowNo < -1) return false;
  851. sTestCdList = ds_grd_moleptnolist.getColumn(pRowNo, "testcd");
  852. vTestCd = sTestCdList.split("▨");
  853. for(var iRowNo = 0; iRowNo < (vTestCd.length); iRowNo++)
  854. {
  855. sTestCd = "'" + vTestCd[iRowNo] + "', ";
  856. }
  857. if( !utlf_isNull(sTestCd))
  858. {
  859. sTestCd = sTestCd.substr(0, (sTestCd.length-2));
  860. }
  861. dsf_createDsRow("ds_send" , [{col: "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  862. ,{col: "ptnocode", val : ""}
  863. ,{col: "fromyear", val : ""}
  864. ,{col: "fromptno", val : ""}
  865. ,{col: "toyear", val : ""}
  866. ,{col: "toptno", val : ""}
  867. ,{col: "ptno", val : ds_grd_moleptnolist.getColumn(pRowNo, "ptno")}
  868. ,{col: "acptfromdd", val : ds_grd_moleptnolist.getColumn(pRowNo, "acptdd")}
  869. ,{col: "acpttodd", val : ds_grd_moleptnolist.getColumn(pRowNo, "acptdd")}
  870. ,{col: "refmthdcd", val : "2"}
  871. ,{col: "pid", val : ds_grd_moleptnolist.getColumn(pRowNo, "pid")}
  872. ,{col: "testcdlist", val : sTestCd}]);
  873. var oParam = {};
  874. oParam.id = "TRLPR01901";
  875. oParam.service = "plgyrsltmngtapp.TestRsltRgst";
  876. oParam.method = "reqGetMoleAcptList";
  877. oParam.inds = "reqData=ds_send";
  878. oParam.outds = "ds_grd_prcplist=refrslt ds_grd_bfrsltlist=bfptnolist";
  879. oParam.async = false;
  880. //oParam.callback = "cf_TRLPR01901";
  881. tranf_submit(oParam);
  882. }
  883. //분자병리 결과등록 처리 함수
  884. function fExeRsltSave()
  885. {
  886. var sNode = ds_grd_moleptnolist;
  887. var iMaxRowCnt = 0;
  888. iMaxRowCnt = ds_grd_moleptnolist.rowcount;
  889. for(var iNo = 0; iNo <= iMaxRowCnt; iNo++)
  890. {
  891. if(ds_grd_moleptnolist.getColumn(iNo, "testrslt") != ds_grd_moleptnolist.getColumn(iNo, "orgtestrslt"))
  892. {
  893. ds_grd_prcplist.setRowType(iNo, "insert");
  894. ds_grd_moleptnolist.setColumn(iNo, "choi", "true");
  895. ds_grd_moleptnolist.setColumn(iNo, "rsltrgstid", sysf_getUserInfo("userid"));
  896. ds_grd_moleptnolist.setColumn(iNo, "scrnid", "SMLPR02100");
  897. var bState = true;
  898. if( !utlf_isNull(cmb_readdr.value) && cmb_readdr.value != "-" && cmb_readdr.value != "AO")
  899. {
  900. ds_grd_prcplist.setColumn(iNo, "readdrid", cmb_readdr.value);
  901. }
  902. else
  903. {
  904. ds_grd_prcplist.setColumn(iNo, "readdrid", "-");
  905. }
  906. }
  907. }
  908. if (!bState)
  909. {
  910. sysf_messageBox("변경된 결과가 없습니다! 저장", "E001");
  911. return false;
  912. }
  913. // model.makeValue("/root/send/moletestlist", grd_prcplist.getUpdateData());
  914. var tmp = grdf_getGridUpdateData(grd_prcplist, "all");
  915. grdf_setStatusColumn(tmp, "status");
  916. ds_send.copyData(tmp, true);
  917. var oParam = {};
  918. oParam.id = "TXLPR00103";
  919. oParam.service = "plgyrsltmngtapp.TestRsltRgst";
  920. oParam.method = "reqExeMoleIFRslt";
  921. oParam.inds = "moletestlist=ds_send";
  922. oParam.async = false;
  923. //oParam.callback = "cf_TXLPR00103";
  924. tranf_submit(oParam);
  925. }
  926. //조회
  927. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  928. {
  929. fGetMolePtNoList();
  930. }
  931. //검사코드조회
  932. function grp_sea_btn_bloc_onclick(obj:Button, e:ClickEventInfo)
  933. {
  934. grp_testlist.visible = true;
  935. }
  936. //닫기
  937. function grp_testlist_btn_cls_onclick(obj:Button, e:ClickEventInfo)
  938. {
  939. grp_testlist.visible = false;
  940. }
  941. //결과구분 변경
  942. function group2_rdo_rsltflagcd_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  943. {
  944. fExeRsltFlagChange();
  945. }
  946. //확인
  947. function grp_testlist_btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  948. {
  949. fExeTestItemChoi();
  950. }
  951. function grd_moleptnolist_oncellclick(obj:Grid, e:GridClickEventInfo)
  952. {
  953. fExePtNoGridClick(ds_grd_moleptnolist.rowposition);
  954. }
  955. function group2_ipt_acpttodd_onkeyup(obj:Calendar, e:KeyEventInfo)
  956. {
  957. if(e.keycode == 13)
  958. {
  959. fGetMolePtNoList();
  960. }
  961. }
  962. //저장
  963. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  964. {
  965. fExeRsltSave();
  966. }
  967. ]]></Script>
  968. </Form>
  969. </FDL>