SMLPB00100_Cassette슬라이드제작.xfdl 74 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLPB00100" position="absolute 0 0 1197 782" titletext="Cassette/슬라이드발행" oninit="SMLPB00100_oninit" onload="SMLPB00100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_csteiss" taborder="1" text="Cassette재발행" class="btn3" position="absolute 0 30 120 52" onclick="btn_csteiss_onclick"/>
  8. <Button id="btn_slidiss" taborder="2" text="슬라이드재발행" class="btn3" position="absolute 130 30 246 52" onclick="btn_slidiss_onclick"/>
  9. <Static id="caption6" text="Cassette/슬라이드제작" class="tit_1" position="absolute 0 0 176 25"/>
  10. <Div id="grp_sea" taborder="3" position="absolute 0 59 1194 94" class="div_SA" anchor="left top right">
  11. <Layouts>
  12. <Layout>
  13. <Static id="caption9" text="접수일자 :" class="search_name" position="absolute 806 9 892 26" anchor="top right"/>
  14. <Static id="caption11" text="등록번호 :" class="search_name" position="absolute 525 9 611 26" anchor="default"/>
  15. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 7 1110 29" anchor="top right"/>
  16. <Calendar id="ipt_acptddfrom" taborder="10" class="input_s_essential" position="absolute 878 8 978 27" anchor="top right"/>
  17. <Static id="caption1" text="~" class="search_no_b" position="absolute 984 11 996 28" anchor="top right"/>
  18. <Calendar id="ipt_acptddto" taborder="11" class="input_s_essential" position="absolute 1002 8 1102 27" anchor="top right" onkeyup="grp_sea_ipt_acptddto_onkeyup"/>
  19. <Button id="btn_sea" taborder="12" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
  20. <Edit id="ipt_seaval" taborder="13" class="input_search" position="absolute 617 8 725 27" anchor="default" onkeyup="grp_sea_ipt_seaval_onkeyup"/>
  21. <Combo id="cbo_ptnocd" taborder="14" innerdataset="ds_init_cbo_ptnocd" codecolumn="ptnocd" datacolumn="ptnonm" position="absolute 109 8 260 27" anchor="default"/>
  22. <Static id="caption10" text="~" class="search_no_b" position="absolute 346 8 358 25" anchor="default"/>
  23. <Edit id="ipt_fromptno" taborder="15" class="text_center" position="absolute 293 8 343 27" anchor="default"/>
  24. <Edit id="input1" taborder="16" class="text_center" position="absolute 391 8 441 27" anchor="default"/>
  25. <Edit id="input2" taborder="17" class="text_center" position="absolute 361 8 388 27" anchor="default"/>
  26. <Static id="caption2" text="병리번호 :" class="search_name" position="absolute 15 9 105 26" anchor="default"/>
  27. <Edit id="ipt_fromyear" taborder="18" class="text_center" position="absolute 263 8 290 27" anchor="default"/>
  28. </Layout>
  29. </Layouts>
  30. </Div>
  31. <Grid id="grd_cstelist" class="datagrid2" taborder="4" binddataset="ds_grd_cstelist" useinputpanel="false" position="absolute 603 126 1193 411" autofittype="col" anchor="top right" oncellclick="grd_cstelist_oncellclick" ontextchanged="grd_cstelist_ontextchanged" onrbuttondown="grd_cstelist_onrbuttondown" selecttype="multirow">
  32. <Formats>
  33. <Format id="default">
  34. <Columns>
  35. <Column size="20"/>
  36. <Column size="24"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="40"/>
  43. <Column size="69"/>
  44. <Column size="90"/>
  45. <Column size="152"/>
  46. <Column size="40"/>
  47. <Column size="60"/>
  48. <Column size="40"/>
  49. <Column size="0"/>
  50. <Column size="0"/>
  51. <Column size="0"/>
  52. <Column size="0"/>
  53. <Column size="50"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  56. <Column size="0"/>
  57. <Column size="0"/>
  58. <Column size="0"/>
  59. </Columns>
  60. <Rows>
  61. <Row size="26" band="head"/>
  62. <Row size="24"/>
  63. </Rows>
  64. <Band id="head">
  65. <Cell/>
  66. <Cell col="1" text="선&#10;택"/>
  67. <Cell col="2" text="기관코드"/>
  68. <Cell col="3" text="병리번호"/>
  69. <Cell col="4" text="spcacptdd"/>
  70. <Cell col="5" text="spcacptno"/>
  71. <Cell col="6" text="spcacptseqno"/>
  72. <Cell col="7" text="번호"/>
  73. <Cell col="8" text="슬라이드수"/>
  74. <Cell col="9" text="종 류"/>
  75. <Cell col="10" text="내 용"/>
  76. <Cell col="11" text="조직&#10;갯수"/>
  77. <Cell col="12" text="Hopper"/>
  78. <Cell col="13" text="내/외&#10;구분"/>
  79. <Cell col="14" text="acptdd"/>
  80. <Cell col="15" text="acptno"/>
  81. <Cell col="16" text="testcd"/>
  82. <Cell col="17" text="acptitemno"/>
  83. <Cell col="18" text="재출력"/>
  84. <Cell col="19" text="상태"/>
  85. <Cell col="20" text="scrno"/>
  86. <Cell col="21" text="spccd"/>
  87. <Cell col="22" text="slidno"/>
  88. <Cell col="23" text="dispptno"/>
  89. </Band>
  90. <Band id="body">
  91. <Cell/>
  92. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
  93. <Cell col="2" text="bind:instcd"/>
  94. <Cell col="3" text="bind:ptno"/>
  95. <Cell col="4" text="bind:spcacptdd"/>
  96. <Cell col="5" text="bind:spcacptno"/>
  97. <Cell col="6" text="bind:spcacptseqno"/>
  98. <Cell col="7" class="text_center" text="bind:csteno"/>
  99. <Cell col="8" class="text_center" text="bind:slidcnt"/>
  100. <Cell col="9" displaytype="combo" edittype="combo" style="align:center;" text="bind:cstekindcd" combodataset="ds_refrslt" combocodecol="resncd" combodatacol="resncnts"/>
  101. <Cell col="10" displaytype="text" edittype="text" text="bind:cstecnts"/>
  102. <Cell col="11" displaytype="text" edittype="text" style="align:right middle;" class="text_right" text="bind:tisscnt"/>
  103. <Cell col="12" displaytype="combo" edittype="combo" text="bind:hopper" combodataset="ds_item" combocodecol="value" combodatacol="label"/>
  104. <Cell col="13" displaytype="combo" edittype="combo" text="bind:statsinclflagcd"/>
  105. <Cell col="14" text="bind:acptdd"/>
  106. <Cell col="15" text="bind:acptno"/>
  107. <Cell col="16" text="bind:testcd"/>
  108. <Cell col="17" text="bind:acptitemno"/>
  109. <Cell col="18" displaytype="checkbox" edittype="checkbox" text="bind:reprnt"/>
  110. <Cell col="19" text="bind:statflagcd"/>
  111. <Cell col="20" text="bind:scrno"/>
  112. <Cell col="21" text="bind:spccd"/>
  113. <Cell col="22" text="bind:slidno"/>
  114. <Cell col="23" text="bind:dispptno"/>
  115. </Band>
  116. </Format>
  117. </Formats>
  118. </Grid>
  119. <Static id="caption3" text="접수검체 목록" class="tit_2" position="absolute 4 104 117 121"/>
  120. <Shape id="line12" linetype="horizontal" class="line_1" position="absolute 0 122 600 128" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  121. <Static id="caption4" text="Cassette(블록) 목록" class="tit_2" position="absolute 604 104 755 120" anchor="top right"/>
  122. <Static id="caption5" text="슬라이드 목록" class="tit_2" position="absolute 607 420 715 437" anchor="right bottom"/>
  123. <Shape id="line4" linetype="horizontal" class="line_1" position="absolute 603 122 1193 128" style="strokepen:3 solid #33bbbbff;" anchor="top right"/>
  124. <Shape id="line6" linetype="horizontal" class="line_1" position="absolute 603 439 1193 445" style="strokepen:3 solid #33bbbbff;" anchor="right bottom"/>
  125. <Grid id="grd_spclist" class="datagrid2" taborder="5" binddataset="ds_grd_spclist" useinputpanel="false" position="absolute 0 126 600 779" autofittype="col" anchor="left top bottom" oncellclick="grd_spclist_oncellclick">
  126. <Formats>
  127. <Format id="default">
  128. <Columns>
  129. <Column size="0"/>
  130. <Column size="0"/>
  131. <Column size="80"/>
  132. <Column size="0"/>
  133. <Column size="0"/>
  134. <Column size="69"/>
  135. <Column size="66"/>
  136. <Column size="73"/>
  137. <Column size="0"/>
  138. <Column size="124"/>
  139. <Column size="40"/>
  140. <Column size="135"/>
  141. <Column size="0"/>
  142. </Columns>
  143. <Rows>
  144. <Row size="26" band="head"/>
  145. <Row size="24"/>
  146. </Rows>
  147. <Band id="head">
  148. <Cell text="기관코드"/>
  149. <Cell col="1" text="ptno"/>
  150. <Cell col="2" text="병리번호"/>
  151. <Cell col="3" text="spcacptdd"/>
  152. <Cell col="4" text="spcacptno"/>
  153. <Cell col="5" text="등록번호"/>
  154. <Cell col="6" text="환자명"/>
  155. <Cell col="7" text="접수일자"/>
  156. <Cell col="8" text="spccd"/>
  157. <Cell col="9" text="검체명"/>
  158. <Cell col="10" text="세부&#10;검체"/>
  159. <Cell col="11" text="검사항목"/>
  160. <Cell col="12" text="acptno"/>
  161. </Band>
  162. <Band id="body">
  163. <Cell text="bind:instcd"/>
  164. <Cell col="1" text="bind:ptno"/>
  165. <Cell col="2" text="bind:dispptno"/>
  166. <Cell col="3" text="bind:spcacptdd"/>
  167. <Cell col="4" text="bind:spcacptno"/>
  168. <Cell col="5" text="bind:pid"/>
  169. <Cell col="6" text="bind:patnm"/>
  170. <Cell col="7" displaytype="date" edittype="date" text="bind:acptdd" mask="yyyy-MM-dd"/>
  171. <Cell col="8" text="bind:spccd"/>
  172. <Cell col="9" style="align:left middle;" text="bind:spcnm"/>
  173. <Cell col="10" text="bind:spcacptseqno"/>
  174. <Cell col="11" style="align:left middle;" text="bind:testnmlist"/>
  175. <Cell col="12" text="bind:acptno"/>
  176. </Band>
  177. </Format>
  178. </Formats>
  179. </Grid>
  180. <Grid id="grd_slidlist" class="datagrid2" taborder="6" binddataset="ds_grd_slidlist" useinputpanel="false" position="absolute 603 443 1193 779" anchor="right bottom" autofittype="col" oncloseup="grd_slidlist_oncloseup" ontextchange="grd_slidlist_ontextchange" onrbuttondown="grd_slidlist_onrbuttondown">
  181. <Formats>
  182. <Format id="default">
  183. <Columns>
  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="24"/>
  191. <Column size="35"/>
  192. <Column size="100"/>
  193. <Column size="111"/>
  194. <Column size="134"/>
  195. <Column size="0"/>
  196. <Column size="0"/>
  197. <Column size="0"/>
  198. <Column size="0"/>
  199. <Column size="110"/>
  200. <Column size="0"/>
  201. <Column size="50"/>
  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. </Columns>
  209. <Rows>
  210. <Row size="24" band="head"/>
  211. <Row size="24"/>
  212. </Rows>
  213. <Band id="head">
  214. <Cell text="기관코드"/>
  215. <Cell col="1" text="병리번호"/>
  216. <Cell col="2" text="spcacptdd"/>
  217. <Cell col="3" text="spcacptno"/>
  218. <Cell col="4" text="spcacptseqno"/>
  219. <Cell col="5" text="csteno"/>
  220. <Cell col="6"/>
  221. <Cell col="7" text="번호"/>
  222. <Cell col="8" text="종 류"/>
  223. <Cell col="9" text="Block번호"/>
  224. <Cell col="10" text="슬라이드 내용"/>
  225. <Cell col="11" text="내/외&#10;구분"/>
  226. <Cell col="12" text="tisscnt"/>
  227. <Cell col="13" text="acptdd"/>
  228. <Cell col="14" text="acptno"/>
  229. <Cell col="15" text="검사명"/>
  230. <Cell col="16" text="acptitemno"/>
  231. <Cell col="17" text="재출력"/>
  232. <Cell col="18" text="상태"/>
  233. <Cell col="19" text="scrno"/>
  234. <Cell col="20" text="spccd"/>
  235. <Cell col="21" text="dispptno"/>
  236. <Cell col="22" text="relaptno"/>
  237. <Cell col="23" text="reladispptno"/>
  238. </Band>
  239. <Band id="body">
  240. <Cell text="bind:instcd"/>
  241. <Cell col="1" text="bind:ptno"/>
  242. <Cell col="2" text="bind:spcacptdd"/>
  243. <Cell col="3" text="bind:spcacptno"/>
  244. <Cell col="4" text="bind:spcacptseqno"/>
  245. <Cell col="5" text="bind:csteno"/>
  246. <Cell col="6"/>
  247. <Cell col="7" text="bind:slidno"/>
  248. <Cell col="8" displaytype="combo" edittype="combo" text="bind:cstekindcd" combodataset="ds_refrslt2" combocodecol="resncd" combodatacol="resncnts"/>
  249. <Cell col="9" displaytype="text" edittype="text" text="bind:prtnblocnm"/>
  250. <Cell col="10" displaytype="text" edittype="text" text="bind:cstecnts"/>
  251. <Cell col="11" displaytype="combo" edittype="combo" text="bind:statsinclflagcd"/>
  252. <Cell col="12" text="bind:tisscnt"/>
  253. <Cell col="13" text="bind:acptdd"/>
  254. <Cell col="14" text="bind:acptno"/>
  255. <Cell col="15" displaytype="combo" edittype="combo" text="bind:testcd" combodataset="ds_rsltlist" combocodecol="testcd" combodatacol="testnm"/>
  256. <Cell col="16" text="bind:acptitemno"/>
  257. <Cell col="17" displaytype="checkbox" edittype="checkbox" text="bind:reprnt"/>
  258. <Cell col="18" text="bind:statflagcd"/>
  259. <Cell col="19" text="bind:scrno"/>
  260. <Cell col="20" text="bind:spccd"/>
  261. <Cell col="21" text="bind:dispptno"/>
  262. <Cell col="22" text="bind:relaptno"/>
  263. <Cell col="23" text="bind:reladispptno"/>
  264. </Band>
  265. </Format>
  266. </Formats>
  267. </Grid>
  268. <Button id="btn_addcste" taborder="7" text="행추가" class="btn2" position="absolute 1084 101 1137 120" onclick="btn_addcste_onclick" anchor="top right"/>
  269. <Button id="btn_delcste" taborder="8" text="행삭제" class="btn2" position="absolute 1140 101 1193 120" onclick="btn_delcste_onclick" anchor="top right"/>
  270. <Button id="btn_addslid" taborder="9" text="행추가" class="btn2" position="absolute 1084 417 1137 436" onclick="btn_addslid_onclick" anchor="right bottom"/>
  271. <Button id="btn_delslid" taborder="10" text="행삭제" class="btn2" position="absolute 1140 417 1193 436" onclick="btn_delslid_onclick" anchor="right bottom"/>
  272. <Button id="btn_save" taborder="11" text="블럭저장" class="btn2" position="absolute 1017 101 1081 120" onclick="btn_save_onclick" anchor="top right"/>
  273. <Button id="btn_slidsave" taborder="12" text="슬라이드저장" class="btn2" position="absolute 995 417 1081 436" onclick="btn_slidsave_onclick" anchor="right bottom"/>
  274. <Combo id="combo1" taborder="13" codecolumn="codecolumn" datacolumn="datacolumn" visible="false" position="absolute 710 326 805 345">
  275. <Dataset id="innerdataset">
  276. <ColumnInfo>
  277. <Column id="codecolumn"/>
  278. <Column id="datacolumn"/>
  279. </ColumnInfo>
  280. <Rows>
  281. <Row>
  282. <Col id="codecolumn">0</Col>
  283. <Col id="datacolumn">슬라이드</Col>
  284. </Row>
  285. <Row>
  286. <Col id="codecolumn">1</Col>
  287. <Col id="datacolumn">라벨지</Col>
  288. </Row>
  289. </Rows>
  290. </Dataset>
  291. </Combo>
  292. <MaskEdit id="ipt_cstecnt" taborder="14" mask="#,###" position="absolute 776 101 801 120" anchor="top right"/>
  293. <MaskEdit id="ipt_slidcnt" taborder="15" mask="#,###" position="absolute 731 417 756 436" anchor="right bottom"/>
  294. <ActiveX id="socketcste" visible="false" position="absolute 325 91 360 121" progid="{81e9de7e-90be-4958-bbda-ac731c05aba8}" useautobitmapcache="1" anchor="default" taborder="16" OnError="socketcste_OnError" OnConnect="socketcste_OnConnect" OnClose="socketcste_OnClose"/>
  295. <ActiveX id="socketslid" visible="false" position="absolute 385 91 420 121" progid="{81e9de7e-90be-4958-bbda-ac731c05aba8}" useautobitmapcache="1" anchor="default" taborder="17" OnError="socketslid_OnError" OnConnect="socketslid_OnConnect" OnClose="socketslid_OnClose"/>
  296. <Combo id="combo2" taborder="18" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 758 417 848 436" anchor="right bottom" onitemchanged="combo2_onitemchanged">
  297. <Dataset id="innerdataset">
  298. <ColumnInfo>
  299. <Column id="codecolumn"/>
  300. <Column id="datacolumn"/>
  301. </ColumnInfo>
  302. <Rows>
  303. <Row>
  304. <Col id="codecolumn">0</Col>
  305. <Col id="datacolumn">CELL블럭</Col>
  306. </Row>
  307. <Row>
  308. <Col id="codecolumn">1</Col>
  309. <Col id="datacolumn">가상블럭</Col>
  310. </Row>
  311. </Rows>
  312. </Dataset>
  313. </Combo>
  314. <Combo id="cmb_caeqlist" taborder="19" innerdataset="@ds_init_cmb_caeqlist" codecolumn="eqseqno" datacolumn="eqnm" position="absolute 879 101 1013 120" anchor="top right" index="-1"/>
  315. <Combo id="cmb_slideqlist" taborder="20" innerdataset="@ds_init_cmb_slideqlist" codecolumn="eqseqno" datacolumn="eqnm" position="absolute 858 417 992 436" anchor="right bottom"/>
  316. </Layout>
  317. </Layouts>
  318. <Objects>
  319. <Dataset id="ds_init_cbo_ptnocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  320. <ColumnInfo>
  321. <Column id="ptnonm" type="STRING"/>
  322. <Column id="ptnocd" type="STRING"/>
  323. </ColumnInfo>
  324. </Dataset>
  325. <Dataset id="ds_grd_cstelist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  326. <ColumnInfo>
  327. <Column id="choi" type="STRING"/>
  328. <Column id="instcd" type="STRING"/>
  329. <Column id="ptno" type="STRING"/>
  330. <Column id="spcacptdd" type="STRING"/>
  331. <Column id="spcacptno" type="STRING"/>
  332. <Column id="spcacptseqno" type="STRING"/>
  333. <Column id="csteno" type="STRING"/>
  334. <Column id="slidcnt" type="STRING"/>
  335. <Column id="cstekindcd" type="STRING"/>
  336. <Column id="cstecnts" type="STRING"/>
  337. <Column id="tisscnt" type="STRING"/>
  338. <Column id="hopper" type="STRING"/>
  339. <Column id="statsinclflagcd" type="STRING"/>
  340. <Column id="acptdd" type="STRING"/>
  341. <Column id="acptno" type="STRING"/>
  342. <Column id="testcd" type="STRING"/>
  343. <Column id="acptitemno" type="STRING"/>
  344. <Column id="reprnt" type="STRING"/>
  345. <Column id="statflagcd" type="STRING"/>
  346. <Column id="scrno" type="STRING"/>
  347. <Column id="spccd" type="STRING"/>
  348. <Column id="slidno" type="STRING"/>
  349. <Column id="dispptno" type="STRING"/>
  350. </ColumnInfo>
  351. </Dataset>
  352. <Dataset id="ds_grd_spclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  353. <ColumnInfo>
  354. <Column id="instcd" type="STRING"/>
  355. <Column id="ptno" type="STRING"/>
  356. <Column id="dispptno" type="STRING"/>
  357. <Column id="spcacptdd" type="STRING"/>
  358. <Column id="spcacptno" type="STRING"/>
  359. <Column id="pid" type="STRING"/>
  360. <Column id="patnm" type="STRING"/>
  361. <Column id="acptdd" type="STRING"/>
  362. <Column id="spccd" type="STRING"/>
  363. <Column id="spcnm" type="STRING"/>
  364. <Column id="spcacptseqno" type="STRING"/>
  365. <Column id="testnmlist" type="STRING"/>
  366. <Column id="acptno" type="STRING"/>
  367. </ColumnInfo>
  368. <Rows>
  369. <Row/>
  370. </Rows>
  371. </Dataset>
  372. <Dataset id="ds_grd_slidlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  373. <ColumnInfo>
  374. <Column id="instcd" type="STRING"/>
  375. <Column id="ptno" type="STRING"/>
  376. <Column id="spcacptdd" type="STRING"/>
  377. <Column id="spcacptno" type="STRING"/>
  378. <Column id="spcacptseqno" type="STRING"/>
  379. <Column id="csteno" type="STRING"/>
  380. <Column id="slidno" type="STRING"/>
  381. <Column id="cstekindcd" type="STRING"/>
  382. <Column id="prtnblocnm" type="STRING"/>
  383. <Column id="cstecnts" type="STRING"/>
  384. <Column id="statsinclflagcd" type="STRING"/>
  385. <Column id="tisscnt" type="STRING"/>
  386. <Column id="acptdd" type="STRING"/>
  387. <Column id="acptno" type="STRING"/>
  388. <Column id="testcd" type="STRING"/>
  389. <Column id="acptitemno" type="STRING"/>
  390. <Column id="reprnt" type="STRING"/>
  391. <Column id="statflagcd" type="STRING"/>
  392. <Column id="scrno" type="STRING"/>
  393. <Column id="spccd" type="STRING"/>
  394. <Column id="dispptno" type="STRING"/>
  395. <Column id="relaptno" type="STRING"/>
  396. <Column id="reladispptno" type="STRING"/>
  397. <Column id="eqseqno" type="STRING" size="256"/>
  398. </ColumnInfo>
  399. <Rows>
  400. <Row/>
  401. </Rows>
  402. </Dataset>
  403. <Dataset id="ds_init_cmb_caeqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  404. <ColumnInfo>
  405. <Column id="eqnm" type="STRING"/>
  406. <Column id="eqseqno" type="STRING"/>
  407. </ColumnInfo>
  408. </Dataset>
  409. <Dataset id="ds_init_cmb_slideqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  410. <ColumnInfo>
  411. <Column id="eqnm" type="STRING"/>
  412. <Column id="eqseqno" type="STRING"/>
  413. </ColumnInfo>
  414. </Dataset>
  415. <Dataset id="ds_hosoenvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  416. <ColumnInfo>
  417. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  418. <Column id="lendrtnterm" type="STRING" size="256" sumtext="대출반환기간"/>
  419. <Column id="recvqualmthdcd" type="STRING" size="256" sumtext="수신확인방법"/>
  420. <Column id="plgydeptcd" type="STRING" size="256" sumtext="병리과"/>
  421. <Column id="plgyteamcd" type="STRING" size="256" sumtext="병리팀"/>
  422. <Column id="doctjobgradcd" type="STRING" size="256" sumtext="병리의사직급코드"/>
  423. <Column id="teamjobgradcd" type="STRING" size="256" sumtext="레지던트직급코드"/>
  424. <Column id="csteeqmtip" type="STRING" size="256" sumtext="Cassette장비IP"/>
  425. <Column id="csteeqmtport" type="STRING" size="256" sumtext="Cassette장비Port"/>
  426. <Column id="slideqmtip" type="STRING" size="256" sumtext="슬라이드장비IP"/>
  427. <Column id="norcptacptyn" type="STRING" size="256" sumtext="외래미수납접수여부"/>
  428. <Column id="slidbceqmtip" type="STRING" size="256" sumtext="슬라이드(라벨지)장비IP"/>
  429. <Column id="acptreaddr" type="STRING" size="256" sumtext="접수시점판독의지정여부"/>
  430. <Column id="slidbceqmtip2" type="STRING" size="256" sumtext="슬라이드(라벨지)장비IP2"/>
  431. <Column id="slidbceqmtport2" type="STRING" size="256" sumtext="슬라이드(라벨지)장비Port2"/>
  432. <Column id="repttitl" type="STRING" size="256" sumtext="보고서제목"/>
  433. <Column id="repttitl2" type="STRING" size="256" sumtext="자문의뢰제목"/>
  434. <Column id="plgyrecroom1" type="STRING" size="256" sumtext="병리과기록실1"/>
  435. <Column id="plgyrecroom2" type="STRING" size="256" sumtext="병리과기록실2"/>
  436. <Column id="ptnoacptflag" type="STRING" size="256" sumtext="병리번호접수구분"/>
  437. <Column id="autoacptflagcd" type="STRING" size="256" sumtext="자동접수구분"/>
  438. </ColumnInfo>
  439. <Rows>
  440. <Row/>
  441. </Rows>
  442. </Dataset>
  443. <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  444. <ColumnInfo>
  445. <Column id="sysdd" type="STRING" size="256"/>
  446. <Column id="systm" type="STRING" size="256"/>
  447. </ColumnInfo>
  448. </Dataset>
  449. <Dataset id="ds_caeqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  450. <ColumnInfo>
  451. <Column id="eqnm" type="STRING" size="256" sumtext="장비명"/>
  452. <Column id="eqip" type="STRING" size="256" sumtext="장비ip"/>
  453. <Column id="eqport" type="STRING" size="256" sumtext="장비port"/>
  454. <Column id="eqflag" type="STRING" size="256" sumtext="1:카세트, 2:슬라이드"/>
  455. <Column id="eqseqno" type="STRING" size="256" sumtext="장비순번"/>
  456. <Column id="resncd" type="STRING" size="256" sumtext="사유코드"/>
  457. <Column id="baseflagcd" type="STRING" size="256" sumtext="기초구분코드"/>
  458. <Column id="dispseqno" type="STRING" size="256" sumtext="표시순서"/>
  459. </ColumnInfo>
  460. </Dataset>
  461. <Dataset id="ds_slideqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  462. <ColumnInfo>
  463. <Column id="eqnm" type="STRING" size="256" sumtext="장비명"/>
  464. <Column id="eqip" type="STRING" size="256" sumtext="장비ip"/>
  465. <Column id="eqport" type="STRING" size="256" sumtext="장비port"/>
  466. <Column id="eqflag" type="STRING" size="256" sumtext="1:카세트, 2:슬라이드"/>
  467. <Column id="eqseqno" type="STRING" size="256" sumtext="장비순번"/>
  468. <Column id="resncd" type="STRING" size="256" sumtext="사유코드"/>
  469. <Column id="baseflagcd" type="STRING" size="256" sumtext="기초구분코드"/>
  470. <Column id="dispseqno" type="STRING" size="256" sumtext="표시순서"/>
  471. </ColumnInfo>
  472. </Dataset>
  473. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  474. <ColumnInfo>
  475. <Column id="acptfromdd" type="STRING" size="256"/>
  476. <Column id="acpttodd" type="STRING" size="256"/>
  477. <Column id="seameth" type="STRING" size="256"/>
  478. <Column id="seaval" type="STRING" size="256"/>
  479. <Column id="prtmeth" type="STRING" size="256"/>
  480. <Column id="slideqmtflag" type="STRING" size="256"/>
  481. <Column id="cstecnt" type="STRING" size="256"/>
  482. <Column id="slidcnt" type="STRING" size="256"/>
  483. </ColumnInfo>
  484. <Rows>
  485. <Row>
  486. <Col id="seameth">0</Col>
  487. <Col id="prtmeth">0</Col>
  488. <Col id="slideqmtflag">0</Col>
  489. <Col id="cstecnt">1</Col>
  490. <Col id="slidcnt">1</Col>
  491. </Row>
  492. </Rows>
  493. </Dataset>
  494. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  495. <ColumnInfo>
  496. <Column id="ptnocode" type="STRING" size="256"/>
  497. <Column id="fromyear" type="STRING" size="256"/>
  498. <Column id="fromptno" type="STRING" size="256"/>
  499. <Column id="toyear" type="STRING" size="256"/>
  500. <Column id="toptno" type="STRING" size="256"/>
  501. <Column id="blockind" type="STRING" size="256"/>
  502. <Column id="hospenv" type="STRING" size="256"/>
  503. <Column id="sysdt" type="STRING" size="256"/>
  504. <Column id="resncd" type="STRING" size="256"/>
  505. <Column id="relatestnm" type="STRING" size="256"/>
  506. <Column id="ptnocd" type="STRING" size="256"/>
  507. <Column id="eqcaseqno" type="STRING" size="256"/>
  508. <Column id="eqslidseqno" type="STRING" size="256"/>
  509. </ColumnInfo>
  510. <Rows>
  511. <Row/>
  512. </Rows>
  513. </Dataset>
  514. <Dataset id="ds_refrslt" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  515. <ColumnInfo>
  516. <Column id="choi" type="STRING" size="256" sumtext="선택"/>
  517. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  518. <Column id="baseflagcd" type="STRING" size="256" sumtext="구분코드"/>
  519. <Column id="resncd" type="STRING" size="256" sumtext="사유코드"/>
  520. <Column id="resncnts" type="STRING" size="256" sumtext="사유내용"/>
  521. <Column id="dispseqno" type="STRING" size="256"/>
  522. </ColumnInfo>
  523. </Dataset>
  524. <Dataset id="ds_send_csteslidlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  525. <Dataset id="ds_rsltlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  526. <ColumnInfo>
  527. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  528. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  529. <Column id="ptno" type="STRING" size="256" sumtext="병리번호"/>
  530. <Column id="dispptno" type="STRING" size="256" sumtext="표시병리번호"/>
  531. <Column id="acptdd" type="STRING" size="256" sumtext="접수일자"/>
  532. <Column id="acptno" type="STRING" size="256" sumtext="접수번호"/>
  533. <Column id="testcd" type="STRING" size="256" sumtext="검사코드"/>
  534. <Column id="acptitemno" type="STRING" size="256" sumtext="접수항목번호"/>
  535. <Column id="testnm" type="STRING" size="256" sumtext="검사명"/>
  536. <Column id="workflagcd" type="STRING" size="256" sumtext="작업구분"/>
  537. </ColumnInfo>
  538. </Dataset>
  539. <Dataset id="ds_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  540. <ColumnInfo>
  541. <Column id="label" type="STRING" size="256"/>
  542. <Column id="value" type="STRING" size="256"/>
  543. </ColumnInfo>
  544. <Rows>
  545. <Row>
  546. <Col id="label">1</Col>
  547. <Col id="value">1</Col>
  548. </Row>
  549. <Row>
  550. <Col id="label">2</Col>
  551. <Col id="value">2</Col>
  552. </Row>
  553. <Row>
  554. <Col id="label">3</Col>
  555. <Col id="value">3</Col>
  556. </Row>
  557. <Row>
  558. <Col id="label">4</Col>
  559. <Col id="value">4</Col>
  560. </Row>
  561. <Row>
  562. <Col id="label">5</Col>
  563. <Col id="value">5</Col>
  564. </Row>
  565. <Row>
  566. <Col id="label">6</Col>
  567. <Col id="value">6</Col>
  568. </Row>
  569. </Rows>
  570. </Dataset>
  571. <FilteredDataset id="ds_refrslt1" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" binddataset="@ds_refrslt" filterstr="baseflagcd == '82'"/>
  572. <Dataset id="ds_refrslt2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  573. </Objects>
  574. <Bind>
  575. <BindItem id="item0" compid="grp_sea.ipt_fromptno" propid="value" datasetid="ds_init" columnid="fromptno"/>
  576. <BindItem id="item1" compid="grp_sea.ipt_fromyear" propid="value" datasetid="ds_init" columnid="fromyear"/>
  577. <BindItem id="item2" compid="grp_sea.input2" propid="value" datasetid="ds_init" columnid="toyear"/>
  578. <BindItem id="item3" compid="grp_sea.input1" propid="value" datasetid="ds_init" columnid="toptno"/>
  579. <BindItem id="item4" compid="grp_sea.ipt_seaval" propid="value" datasetid="ds_hidden" columnid="seaval"/>
  580. <BindItem id="item5" compid="grp_sea.ipt_acptddfrom" propid="value" datasetid="ds_hidden" columnid="acptfromdd"/>
  581. <BindItem id="item6" compid="grp_sea.ipt_acptddto" propid="value" datasetid="ds_hidden" columnid="acpttodd"/>
  582. <BindItem id="item7" compid="ipt_cstecnt" propid="value" datasetid="ds_hidden" columnid="cstecnt"/>
  583. <BindItem id="item8" compid="cmb_caeqlist" propid="value" datasetid="ds_init" columnid="eqcaseqno"/>
  584. <BindItem id="item9" compid="ipt_slidcnt" propid="value" datasetid="ds_hidden" columnid="slidcnt"/>
  585. <BindItem id="item10" compid="combo2" propid="value" datasetid="ds_init" columnid="blockind"/>
  586. <BindItem id="item11" compid="cmb_slideqlist" propid="value" datasetid="ds_init" columnid="eqslidseqno"/>
  587. <BindItem id="item12" compid="grp_sea.cbo_ptnocd" propid="value" datasetid="ds_init" columnid="ptnocode"/>
  588. </Bind>
  589. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  590. * System Name :
  591. * Job Name :
  592. * Creator :
  593. * Make Date : 2015-11-13
  594. * Description :
  595. *---------------------------------------------------------------------------------------
  596. * Modify Date Modifier Modify Description
  597. *---------------------------------------------------------------------------------------
  598. * 2015-11-13 Live Converter TF->XP
  599. *
  600. *---------------------------------------------------------------------------------------
  601. ****************************************************************************************/
  602. include "com_commonxp::comm_main.xjs";
  603. include "lis_commonxp::LPZ001.xjs";
  604. function SMLPB00100_oninit(obj:Form, e:InitEventInfo)
  605. {
  606. frmf_initForm(obj);
  607. }
  608. function SMLPB00100_onload(obj:Form, e:LoadEventInfo)
  609. {
  610. grdf_initGrid(grd_cstelist);
  611. grdf_initGrid(grd_slidlist);
  612. grdf_initGrid(grd_spclist);
  613. grdf_setRowTypeIcon(grd_cstelist, 0);
  614. grdf_setRowTypeIcon(grd_slidlist, 6);
  615. frmf_createPopupMenu("pmn_popupMenu", "pmn_popupMenu_onmenuclick");
  616. frmf_createPopupMenu("pmn_popupMenu1", "pmn_popupMenu_onmenuclick1");
  617. fExeInitialize();
  618. }
  619. //초기화
  620. function fExeInitialize()
  621. {
  622. var sCurDate = "";
  623. //--------------------------------
  624. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}]);
  625. var oParam = {};
  626. oParam.id = "TRLPZ00101";
  627. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  628. oParam.method = "reqGetHospitalEnvironmentSetInfo";
  629. oParam.inds = "refData=ds_send";
  630. oParam.outds = "ds_hosoenvinfo=hospenvinfo";
  631. oParam.async = false;
  632. //oParam.callback = "cf_TRLPZ00101";
  633. tranf_submit(oParam);
  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. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  644. ,{col : "refflagcd", val : "0"}]);
  645. var oParam = {};
  646. oParam.id = "TRLPZ00109";
  647. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  648. oParam.method = "reqGetPtNoCdList";
  649. oParam.inds = "refdata=ds_send";
  650. oParam.outds = "ds_init_cbo_ptnocd=rsltlist";
  651. oParam.async = false;
  652. //oParam.callback = "cf_TRLPZ00109";
  653. tranf_submit(oParam);
  654. //블록 장비 조회
  655. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  656. ,{col : "baseflagcd", val : "EQ"}
  657. ,{col : "seaflagcd", val : "0"}]); //"0:전체, 1:카세트, 2:슬라이드"
  658. //submit("TRLPC01802");
  659. var oParam = {};
  660. oParam.id = "TRLPC01802";
  661. oParam.service = "plgybaseinfomngtapp.HospEnvSet";
  662. oParam.method = "reqGetEqList";
  663. oParam.inds = "refData=ds_send";
  664. oParam.outds = "ds_init_cmb_caeqlist=caeqlist ds_init_cmb_slideqlist=slideqlist";
  665. oParam.async = false;
  666. //oParam.callback = "cf_TRLPC01802";
  667. tranf_submit(oParam);
  668. cmb_slideqlist.index = 0;
  669. cmb_caeqlist.index = 0;
  670. sCurDate = ds_data_sysdtinfo.getColumn(0, "sysdd");
  671. //------------
  672. // 초기값 설정
  673. ds_hidden.setColumn(0, "seameth", "0"); // 검색방법(등록번호(0))
  674. ds_hidden.setColumn(0, "seaval", ""); // 검색값
  675. ds_hidden.setColumn(0, "acptfromdd", ds_data_sysdtinfo.getColumn(0, "sysdd"));
  676. ds_hidden.setColumn(0, "acpttodd", ds_data_sysdtinfo.getColumn(0, "sysdd"));
  677. ds_hidden.setColumn(0, "slideqmtflag", "0");
  678. ds_init.setColumn(0, "ptnocode", "-");
  679. ds_init.setColumn(0, "fromyear", sCurDate.substr(2,2));
  680. ds_init.setColumn(0, "toyear", sCurDate.substr(2,2));
  681. ds_init.setColumn(0, "fromptno", "");
  682. ds_init.setColumn(0, "toptno", "");
  683. ds_init.setColumn(0, "blockind", "0");
  684. //------------------------------------------
  685. // Cassette(블록) 및 Slide(슬라이드) 목록 조회
  686. dsf_createDsRow( "ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  687. ,{col : "baseflagcd", val : "'81', '82'"}]);
  688. //submit("TRLPZ00103");
  689. var oParam = {};
  690. oParam.id = "TRLPZ00103";
  691. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  692. oParam.method = "reqGetReasonCodeList";
  693. oParam.inds = "refData=ds_send";
  694. oParam.outds = "ds_refrslt=refrslt";
  695. oParam.async = false;
  696. //oParam.callback = "cf_TRLPZ00103";
  697. tranf_submit(oParam);
  698. //fdsf_createDsFilter("ds_refrslt1", "ds_refrslt", "baseflagcd =='82'");
  699. ds_refrslt2.copyData(ds_refrslt1);
  700. // 노드 초기화
  701. ds_grd_cstelist.clearData();
  702. ds_grd_slidlist.clearData();
  703. ds_grd_spclist.clearData();
  704. }
  705. //접수 세부검체 목록 조회 Function
  706. function fGetSpcSeqList()
  707. {
  708. var sTemp = "";
  709. if( !utlf_isNull(ds_init.getColumn(0, "ptnocode")))
  710. {
  711. if( utlf_isNull(ds_init.getColumn(0, "fromyear")))
  712. {
  713. ds_init.setColumn(0, "fromyear", sFromDD.substr(2,2));
  714. }
  715. else
  716. {
  717. sTemp = ds_init.getColumn(0, "fromyear");
  718. ds_init.setColumn(0, "fromyear", sTemp.getLeftPad(2, "0"));
  719. }
  720. if( utlf_isNull(ds_init.getColumn(0, "toyear")))
  721. {
  722. ds_init.setColumn(0, "toyear", sToDD.substr(2,2));
  723. }
  724. else
  725. {
  726. sTemp = ds_init.getColumn(0, "toyear");
  727. ds_init.setColumn(0, "toyear", sTemp.getLeftPad(2 , "0"));
  728. }
  729. if( utlf_isNull(ds_init.getColumn(0, "fromptno")))
  730. {
  731. ds_init.setColumn(0, "fromptno", "000000");
  732. }
  733. else
  734. {
  735. sTemp = ds_init.getColumn(0, "fromptno");
  736. sTemp = ds_init.setColumn(0, "fromptno", sTemp.getLeftPad(6, "0"));
  737. }
  738. if( utlf_isNull(ds_init.getColumn(0, "toptno")))
  739. {
  740. ds_init.setColumn(0, "toptno", "999999");
  741. }
  742. else
  743. {
  744. sTemp = ds_init.getColumn(0, "toptno");
  745. ds_init.setColumn(0, "toptno", sTemp.getLeftPad(6, "0"));
  746. }
  747. }
  748. //--------------------------------------------
  749. sTemp = ds_init.getColumn(0, "ptnocode");
  750. dsf_createDsRow( "ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")} // 기관코드
  751. ,{col : "refmthd", val : ds_hidden.getColumn(0, "seameth")} // 검색방법
  752. ,{col : "refval", val : ds_hidden.getColumn(0, "seaval")} // 검색값
  753. ,{col : "acptfromdd", val : ds_hidden.getColumn(0, "acptfromdd")} // 접수시작일자
  754. ,{col : "acpttodd", val : ds_hidden.getColumn(0, "acpttodd")} // 접수종료일자
  755. ,{col : "ptnocode", val : sTemp.replace("-", "")}
  756. ,{col : "fromyear", val : ds_init.getColumn(0, "fromyear")}
  757. ,{col : "fromptno", val : ds_init.getColumn(0, "fromptno")}
  758. ,{col : "toyear", val : ds_init.getColumn(0, "toyear")}
  759. ,{col : "toptno", val : ds_init.getColumn(0, "toptno")}]);
  760. var oParam = {};
  761. oParam.id = "TRLPB00101";
  762. oParam.service = "plgycsteslidmngtapp.SpcCsteSlid";
  763. oParam.method = "reqGetSpcSeqList";
  764. oParam.inds = "refData=ds_send";
  765. oParam.outds = "ds_grd_spclist=rsltlist";
  766. oParam.async = false;
  767. //oParam.callback = "cf_TRLPB00101";
  768. tranf_submit(oParam);
  769. }
  770. //Cassette 재출력 처리 Function
  771. function fExeCsteIss(pBizFlag)
  772. {
  773. var iFindNo = -1;
  774. var sSrcNode = ds_grd_cstelist;
  775. // C:신규발행, R:재발행
  776. if (pBizFlag == "C")
  777. {
  778. for(var iNo = 0; iNo < ds_grd_cstelist.rowcount; iNo++)
  779. {
  780. //---------------------------------
  781. // 신규와 삭제분은 발행하지 않는다.
  782. if(ds_grd_cstelist.getColumn(iNo, "statflagcd") =="C")
  783. {
  784. }
  785. }
  786. }
  787. else
  788. {
  789. iFindNo = ds_grd_cstelist.findRow("reprnt", 1, 0, 19);
  790. trace("iFindNo="+iFindNo);
  791. if (iFindNo > -1)
  792. {
  793. fExeSocketCsteSend();
  794. }
  795. else
  796. {
  797. sysf_messageBox("재출력 Cassette를", "C002");
  798. }
  799. }
  800. }
  801. //발행 Cassette목록을 장비로 전송 Function
  802. function fExeSocketCsteSend()
  803. {
  804. var sSendMsg = "";
  805. var sInfoNode= ds_hosoenvinfo;
  806. var sCsteNode = ds_grd_cstelist;
  807. var sCsteIP = ds_hosoenvinfo.getColumn(0, "csteeqmtip");
  808. var sCstePort = ds_hosoenvinfo.getColumn(0, "csteeqmtport");
  809. //장비IP set
  810. for(var iRowNo = 0; iRowNo < ds_init_cmb_caeqlist.rowcount; iRowNo++)
  811. {
  812. if(ds_init.getColumn(0, "eqcaseqno") == ds_init_cmb_caeqlist.getColumn(iRowNo, "eqseqno"))
  813. {
  814. sCsteIP = ds_init_cmb_caeqlist.getColumn(iRowNo, "eqip");
  815. sCstePort = ds_init_cmb_caeqlist.getColumn(iRowNo, "eqport");
  816. }
  817. }
  818. if( utlf_isNull(sCsteIP) || sCsteIP == "-")
  819. {
  820. sysf_messageBox("Cassette(블럭)장비의 IP주소가 없습니다. 병원별 환경설정에서 ", "C001");
  821. return false;
  822. }
  823. if( utlf_isNull(sCstePort) || sCstePort == "-")
  824. {
  825. sysf_messageBox("Cassette(블럭)장비의 Port번호가 없습니다. 병원별 환경설정에서 ", "C001");
  826. return false;
  827. }
  828. trace("sCsteIP="+sCsteIP);
  829. trace("sCstePort="+sCstePort);
  830. //-------------------------------------
  831. socketcste.connect(sCsteIP, sCstePort);
  832. }
  833. function fExeSlidIss(pBizFlag)
  834. {
  835. var iFindNo = -1;
  836. var sSrcNode= ds_grd_slidlist;
  837. //---------------------
  838. // C:신규발행, R:재발행
  839. if (pBizFlag == "C")
  840. {
  841. for(var iNo = 0; iNo < ds_grd_slidlist.rowcount; iNo++)
  842. {
  843. //---------------------------------
  844. // 신규와 삭제분은 발행하지 않는다.
  845. if(ds_grd_slidlist.getColumn(iNo, "statflagcd") == "C")
  846. {
  847. }
  848. }
  849. }
  850. else
  851. {
  852. iFindNo = ds_grd_slidlist.findRow("reprnt", "1");
  853. trace("iFindNo="+iFindNo);
  854. if (iFindNo > -1)
  855. {
  856. fExeSocketSlidSend();
  857. }
  858. else
  859. {
  860. sysf_messageBox("재출력 슬라이드를", "C002");
  861. }
  862. }
  863. }
  864. //발행 Cassette목록을 장비로 전송 Function
  865. function fExeSocketSlidSend()
  866. {
  867. var sSendMsg = "";
  868. var sInfoNode = ds_hosoenvinfo;
  869. var sSlidIP = ds_hosoenvinfo.getColumn(0, "slideqmtip");
  870. var sSlidProt = ds_hosoenvinfo.getColumn(0, "slidbceqmtport2");
  871. //장비IP set
  872. for(var iRowNo = 0; iRowNo < ds_init_cmb_slideqlist.rowcount; iRowNo++)
  873. {
  874. if(ds_init.getColumn(0, "eqslidseqno") == ds_init_cmb_slideqlist.getColumn(iRowNo, "eqseqno"))
  875. {
  876. sSlidIP = ds_init_cmb_slideqlist.getColumn(iRowNo, "eqip");
  877. sSlidPort = ds_init_cmb_slideqlist.getColumn(iRowNo, "eqport");
  878. }
  879. }
  880. if( utlf_isNull(sSlidIP ) || sSlidIP == "-")
  881. {
  882. sysf_messageBox("슬라이드 장비의 IP주소가 없습니다. 병원별 환경설정에서 ", "C001");
  883. return false;
  884. }
  885. if( utlf_isNull(sSlidPort) || sSlidPort == "-")
  886. {
  887. sysf_messageBox("슬라이드 장비의 Port번호가 없습니다. 병원별 환경설정에서 ", "C001");
  888. return false;
  889. }
  890. socketslid.connect(sSlidIP, sSlidPort);
  891. }
  892. //Cassette(블록)목록 행추가
  893. function fExeCsteAdd()
  894. {
  895. var iCsteNo = 0;
  896. var iFindNo = ds_grd_spclist.rowposition;
  897. var iMaxRowCnt = 0;
  898. var iIssCnt = 0;
  899. var sSrcNode= ds_grd_spclist;
  900. var sDescNode = ds_grd_cstelist;
  901. //-----------------------------
  902. // 세부검체의 선택된 Row를 검색
  903. if (iFindNo > -1)
  904. {
  905. if( utlf_isNull(ds_hidden.getColumn(0, "cstecnt")))
  906. {
  907. iTssCnt = 1;
  908. }
  909. else
  910. {
  911. iTssCnt = Number(ds_hidden.getColumn(0, "cstecnt"));
  912. }
  913. //--------------------------------------------------
  914. for(var iLoopNo = 1; iLoopNo <= iTssCnt; iLoopNo++)
  915. {
  916. var addRw = ds_grd_cstelist.addRow();
  917. var arrPostion = new Array();
  918. arrPostion[0] = addRw;
  919. grdf_setStatus(grd_cstelist, "I", arrPostion);
  920. iMaxRowCnt = ds_grd_cstelist.rowposition;
  921. //-------------------
  922. if (iMaxRowCnt > 0)
  923. {
  924. iCsteNo = ds_grd_cstelist.getColumn((Number(iMaxRowCnt)-1), "csteno");
  925. iCsteNo = Number(iCsteNo) + 1;
  926. }
  927. else
  928. {
  929. iCsteNo = 1;
  930. }
  931. ds_grd_cstelist.setColumn(iMaxRowCnt, "instcd", ds_grd_spclist.getColumn(iFindNo, "instcd"));
  932. ds_grd_cstelist.setColumn(iMaxRowCnt, "ptno", ds_grd_spclist.getColumn(iFindNo, "ptno"));
  933. ds_grd_cstelist.setColumn(iMaxRowCnt, "dispptno", ds_grd_spclist.getColumn(iFindNo, "dispptno"));
  934. ds_grd_cstelist.setColumn(iMaxRowCnt, "spcacptdd", ds_grd_spclist.getColumn(iFindNo, "spcacptdd"));
  935. ds_grd_cstelist.setColumn(iMaxRowCnt, "spcacptno", ds_grd_spclist.getColumn(iFindNo, "spcacptno"));
  936. ds_grd_cstelist.setColumn(iMaxRowCnt, "spcacptseqno", ds_grd_spclist.getColumn(iFindNo, "spcacptseqno"));
  937. ds_grd_cstelist.setColumn(iMaxRowCnt, "csteno", iCsteNo.toString().getLeftPad(3, "0"));
  938. ds_grd_cstelist.setColumn(iMaxRowCnt, "slidcnt", "0");
  939. ds_grd_cstelist.setColumn(iMaxRowCnt, "spccd", ds_grd_spclist.getColumn(iFindNo, "spccd"));
  940. ds_grd_cstelist.setColumn(iMaxRowCnt, "slidno", "000");
  941. ds_grd_cstelist.setColumn(iMaxRowCnt, "cstekindcd", "1001");
  942. ds_refrslt.filter("baseflagcd == '81' && resncd == '1001'");
  943. ds_grd_cstelist.setColumn(iMaxRowCnt, "cstecnts", ds_refrslt.getColumn(0, "resncnts"));
  944. ds_grd_cstelist.setColumn(iMaxRowCnt, "tisscnt", "0");
  945. ds_grd_cstelist.setColumn(iMaxRowCnt, "statsinclflagcd", "0");
  946. ds_grd_cstelist.setColumn(iMaxRowCnt, "acptdd", ds_grd_spclist.getColumn(iFindNo, "acptdd"));
  947. ds_grd_cstelist.setColumn(iMaxRowCnt, "acptno", ds_grd_spclist.getColumn(iFindNo, "acptno"));
  948. ds_grd_cstelist.setColumn(iMaxRowCnt, "testcd", "-");
  949. ds_grd_cstelist.setColumn(iMaxRowCnt, "acptitemno", "0");
  950. ds_grd_cstelist.setColumn(iMaxRowCnt, "reprnt", "false");
  951. ds_grd_cstelist.setColumn(iMaxRowCnt, "statflagcd", "C");
  952. ds_grd_cstelist.setColumn(iMaxRowCnt, "scrno", "10");
  953. ds_grd_cstelist.setColumn(iMaxRowCnt, "hopper", "1");
  954. ds_grd_cstelist.rowposition = iMaxRowCnt;
  955. fExeCsteChange();
  956. }
  957. }
  958. else
  959. {
  960. sysf_messageBox("Cassette를 발행할 세부검체를 ", "C002");
  961. }
  962. }
  963. //Cassette종류 선택 처리 Function
  964. function fExeCsteChange()
  965. {
  966. var sNode = ds_grd_cstelist;
  967. var iRowNo = ds_grd_cstelist.rowposition;
  968. var sCsteCnts = ds_grd_cstelist.getColumn(iRowNo, "cstecnts");
  969. var iSpcSeqNo = Number(ds_grd_cstelist.getColumn(iRowNo, "spcacptseqno"));
  970. var iCsteNo = Number(ds_grd_cstelist.getColumn(iRowNo, "csteno"));
  971. var sCsteKind = ds_grd_cstelist.getColumn(iRowNo, "cstekindcd");
  972. sCsteCnts = ds_refrslt.getColumn(0, "resncnts");
  973. sCsteCnts = lpzfExeCsteCnt(sCsteCnts, iSpcSeqNo, Number(iCsteNo));
  974. ds_grd_cstelist.setColumn(iRowNo, "cstecnts", sCsteCnts);
  975. if((ds_grd_cstelist.getColumn(iRowNo, "statflagcd") != "C") && ds_grd_cstelist.getColumn(iRowNo, "statflagcd") != "D")
  976. {
  977. ds_grd_cstelist.setColumn(iRowNo, "statflagcd", "UPDATE");
  978. }
  979. }
  980. //Cassette 행삭제 처리 Function
  981. function fExeCsteDel(pRowNo)
  982. {
  983. var sSrcNode = ds_grd_cstelist;
  984. var arrPostion = new Array();
  985. arrPostion[0] = pRowNo;
  986. if(ds_grd_cstelist.getColumn(pRowNo, "statflagcd") == "C")
  987. {
  988. grdf_setStatus(grd_cstelist, "D", arrPostion);
  989. }
  990. else
  991. {
  992. ds_grd_cstelist.setColumn(pRowNo, "statflagcd", "D");
  993. grdf_setStatus(grd_cstelist, "D", arrPostion);
  994. }
  995. }
  996. function fExeCsteSlidSave(pBizFlagCd)
  997. {
  998. var sSrcNode = "";
  999. var iFindNo = 0;
  1000. //trace("pBizFlagCd=" +pBizFlagCd);
  1001. var arrPostion = new Array();
  1002. arrPostion[0] = ds_grd_cstelist.rowposition;
  1003. // C:Cassette, S:슬라이드
  1004. if(pBizFlagCd == "C")
  1005. {
  1006. if(ds_grd_cstelist.rowcount <= 0)
  1007. {
  1008. sysf_messageBox("저장 대상이 없습니다! 저장을 ", "E001");
  1009. return false;
  1010. }
  1011. sSrcNode = ds_grd_cstelist;
  1012. for(var iNo = 0; iNo < ds_grd_cstelist.rowcount; iNo++)
  1013. {
  1014. if(ds_grd_cstelist.getColumn(iNo, "statflagcd") != "D")
  1015. {
  1016. grdf_setStatus(grd_cstelist, "I", arrPostion);
  1017. ds_grd_cstelist.setColumn(iNo, "statsinclflagcd", ds_grd_cstelist.getColumn(iNo, "hopper"));
  1018. }
  1019. else if(ds_grd_cstelist.getColumn(iNo, "statflagcd") == "D")
  1020. {
  1021. grdf_setStatus(grd_cstelist, "D", arrPostion);
  1022. }
  1023. }
  1024. var temp = grdf_getGridUpdateData(grd_cstelist, "all");
  1025. grdf_setStatusColumn(temp, "state");
  1026. dsf_createDs("ds_send_csteslidlist");
  1027. ds_send_csteslidlist.copyData(temp, true);
  1028. ds_send_csteslidlist.updateColID("statflagcd", "bizflagcd");
  1029. ds_send_csteslidlist.addColumn("spchistno", "string");
  1030. if(ds_send_csteslidlist.rowcount > 0)
  1031. {
  1032. for(i = 0 ; i < ds_send_csteslidlist.rowcount; i++)
  1033. {
  1034. ds_send_csteslidlist.setColumn(i, "spchistno", "1");
  1035. }
  1036. }
  1037. }
  1038. else
  1039. {
  1040. if(ds_grd_slidlist.rowcount < 0)
  1041. {
  1042. sysf_messageBox("저장 대상이 없습니다! 저장을 ", "E001");
  1043. return false;
  1044. }
  1045. sSrcNode = ds_grd_slidlist;
  1046. for (var iNo = 0; iNo < ds_grd_slidlist.rowcount; iNo++)
  1047. {
  1048. if(ds_grd_slidlist.getColumn(iNo, "statflagcd") != "D")
  1049. {
  1050. grdf_setStatus(grd_slidlist, "I", arrPostion);
  1051. ds_grd_slidlist.setColumn(iNo, "statflagcd", "C");
  1052. }
  1053. else if(ds_grd_slidlist.getColumn(iNo, "statflagcd") =="D")
  1054. {
  1055. grdf_setStatus(grd_slidlist, "D", arrPostion);
  1056. }
  1057. }
  1058. var temp = grdf_getGridUpdateData(grd_slidlist, "all");
  1059. grdf_setStatusColumn(temp, "state");
  1060. dsf_createDs("ds_send_csteslidlist");
  1061. ds_send_csteslidlist.copyData(temp, true);
  1062. ds_send_csteslidlist.updateColID("statflagcd", "bizflagcd");
  1063. ds_send_csteslidlist.addColumn("spchistno", "string");
  1064. if(ds_send_csteslidlist.rowcount > 0)
  1065. {
  1066. for(i = 0 ; i < ds_send_csteslidlist.rowcount; i++)
  1067. {
  1068. ds_send_csteslidlist.setColumn(i, "spchistno", "1");
  1069. }
  1070. }
  1071. }
  1072. var oParam = {};
  1073. oParam.id = "TXLPB00101";
  1074. oParam.service = "plgycsteslidmngtapp.SpcCsteSlid";
  1075. oParam.method = "reqExeCsteIssDel";
  1076. oParam.inds = "refData=ds_send_csteslidlist";
  1077. oParam.async = false;
  1078. //oParam.callback = "cf_TXLPB00101";
  1079. tranf_submit(oParam);
  1080. if (pBizFlagCd == "C")
  1081. {
  1082. var pRowNo = ds_grd_spclist.rowposition;
  1083. fGetCsteList(pRowNo);
  1084. }
  1085. else
  1086. {
  1087. if(ds_init.getColumn(0, "blockind") == "0")
  1088. {
  1089. fGetSlidList(ds_grd_cstelist.rowposition, "C");
  1090. }
  1091. else
  1092. {
  1093. fGetSlidList(ds_grd_spclist.rowposition, pBizFlagCd);
  1094. }
  1095. }
  1096. }
  1097. //슬라이드 목록 조회 처리 Function
  1098. function fGetSlidList(pRowNo, pBizFlagCd)
  1099. {
  1100. var iRowNo = ds_grd_cstelist.rowposition;
  1101. var iCsteNo = "";
  1102. var sOrgNode = ds_grd_spclist;
  1103. var sSrcNode= ds_grd_cstelist;
  1104. //----------------------
  1105. if (pBizFlagCd == "C")
  1106. {
  1107. for(var iNo = 0; iNo < ds_grd_cstelist.rowcount; iNo++)
  1108. {
  1109. ds_grd_cstelist.setColumn(iNo, "choi", "false");
  1110. }
  1111. iCsteNo = ds_grd_cstelist.getColumn(pRowNo, "csteno");
  1112. ds_grd_cstelist.setColumn(iRowNo, "choi", "true");
  1113. }
  1114. else
  1115. {
  1116. iCsteNo = "000";
  1117. sSrcNode = sOrgNode;
  1118. }
  1119. dsf_createDsRow( "ds_send3", [{col : "instcd", val : ds_grd_cstelist.getColumn(pRowNo, "instcd")}
  1120. ,{col : "ptno", val : ds_grd_cstelist.getColumn(pRowNo, "ptno")}
  1121. ,{col : "spcacptdd", val : ds_grd_cstelist.getColumn(pRowNo, "spcacptdd")}
  1122. ,{col : "spcacptno", val : ds_grd_cstelist.getColumn(pRowNo, "spcacptno")}
  1123. ,{col : "spcacptseqno", val : ds_grd_cstelist.getColumn(pRowNo, "spcacptseqno")}
  1124. ,{col : "csteno", val : iCsteNo}
  1125. ,{col : "csteslidflagcd", val : "S"}]);
  1126. //-------------------
  1127. //submit("TRLPB00103");
  1128. var oParam = {};
  1129. oParam.id = "TRLPB00103";
  1130. oParam.service = "plgycsteslidmngtapp.SpcCsteSlid";
  1131. oParam.method = "reqGetCsteSlidList";
  1132. oParam.inds = "refData=ds_send3";
  1133. oParam.outds = "ds_grd_slidlist=rsltlist";
  1134. oParam.async = false;
  1135. //oParam.callback = "cf_TRLPB00103";
  1136. tranf_submit(oParam);
  1137. ds_grd_slidlist.updatecontrol = false;
  1138. for(var i = 0 ; i < ds_grd_slidlist.rowcount; i++)
  1139. {
  1140. ds_grd_slidlist.setColumn(i, "scrno", "20");
  1141. ds_grd_slidlist.setColumn(i, "statflagcd", "-");
  1142. ds_grd_slidlist.setColumn(i, "relaptno", "-");
  1143. ds_grd_slidlist.setColumn(i, "reladispptno", "-");
  1144. }
  1145. ds_grd_slidlist.updatecontrol = true;
  1146. }
  1147. //접수 세부검체 클릭 처리 Function
  1148. function fExeSpcSeqClick(pRowNo)
  1149. {
  1150. fGetCsteList(pRowNo);
  1151. }
  1152. //Cassette 목록 조회 처리 Function
  1153. function fGetCsteList(pRowNo)
  1154. {
  1155. ds_grd_slidlist.clearData();
  1156. var sSrcNode = ds_grd_spclist;
  1157. dsf_createDsRow( "ds_send2", [{col : "instcd", val : ds_grd_spclist.getColumn(pRowNo, "instcd")}
  1158. ,{col : "ptno", val : ds_grd_spclist.getColumn(pRowNo, "ptno")}
  1159. ,{col : "spcacptdd", val : ds_grd_spclist.getColumn(pRowNo, "spcacptdd")}
  1160. ,{col : "spcacptno", val : ds_grd_spclist.getColumn(pRowNo, "spcacptno")}
  1161. ,{col : "spcacptseqno", val : ds_grd_spclist.getColumn(pRowNo, "spcacptseqno")}
  1162. ,{col : "csteslidflagcd", val : "C"}]);
  1163. //-------------------
  1164. //submit("TRLPB00102");
  1165. var oParam = {};
  1166. oParam.id = "TRLPB00102";
  1167. oParam.service = "plgycsteslidmngtapp.SpcCsteSlid";
  1168. oParam.method = "reqGetCsteSlidList";
  1169. oParam.inds = "refData=ds_send2";
  1170. oParam.outds = "ds_grd_cstelist=rsltlist";
  1171. oParam.async = false;
  1172. //oParam.callback = "cf_TRLPB00102";
  1173. tranf_submit(oParam);
  1174. ds_grd_cstelist.updatecontrol = false;
  1175. for(var i = 0; i < ds_grd_cstelist.rowcount; i++)
  1176. {
  1177. ds_grd_cstelist.setColumn(i, "scrno", "10");
  1178. ds_grd_cstelist.setColumn(i, "statflagcd", "-");
  1179. }
  1180. ds_grd_cstelist.updatecontrol = true;
  1181. //관련검사명 목록조회
  1182. dsf_createDsRow( "ds_send", [{col : "instcd", val : ds_grd_spclist.getColumn(pRowNo, "instcd")}
  1183. ,{col : "ptno", val : ds_grd_spclist.getColumn(pRowNo, "ptno")}
  1184. ,{col : "pid", val : ds_grd_spclist.getColumn(pRowNo, "pid")}
  1185. ,{col : "selfflagcd", val : "0"} // (0:전체, 1:자신제외)
  1186. ,{col : "testflagcd", val : "0"} // (0:전체, 1:특수/면역/면역형광)
  1187. ,{col : "workflagcd", val : "'1004', '1005', '1006'"}]);
  1188. //-------------------
  1189. //submit("TRLPZ00110");
  1190. var oParam = {};
  1191. oParam.id = "TRLPZ00110";
  1192. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  1193. oParam.method = "reqGetRelaTestNmList";
  1194. oParam.inds = "refdata=ds_send";
  1195. oParam.outds = "ds_rsltlist=rsltlist";
  1196. oParam.async = false;
  1197. //oParam.callback = "cf_TRLPZ00110";
  1198. tranf_submit(oParam);
  1199. }
  1200. //슬라이드 행추가 처리 Function
  1201. function fExeSlidAdd()
  1202. {
  1203. var iFindNo = -1;
  1204. var iMaxRowCnt = 0;
  1205. var iIssCnt = 0;
  1206. var sOrgNode = ds_grd_spclist;
  1207. var sSrcNode = ds_grd_cstelist;
  1208. var sDescNode = ds_grd_slidlist;
  1209. //-----------------------------
  1210. // Cassette의 선택된 Row를 검색
  1211. iFindNo = ds_grd_cstelist.findRow("choi", true, 0);
  1212. if (iFindNo > -1)
  1213. {
  1214. if(ds_grd_cstelist.getColumn(iFindNo, "statflagcd") == "I")
  1215. {
  1216. sysf_messageBox("Cassette를 저장하여 주십시오! 슬라이드를 발행", "E001");
  1217. return false;
  1218. }
  1219. if( utlf_isNull(ds_hidden.getColumn(0, "slidcnt")))
  1220. {
  1221. iIssCnt = 1;
  1222. }
  1223. else
  1224. {
  1225. iIssCnt = Number(ds_hidden.getColumn(0, "slidcnt"));
  1226. }
  1227. for(var iLoopNo = 1; iLoopNo <=iIssCnt; iLoopNo++)
  1228. {
  1229. var addRw = ds_grd_slidlist.addRow();
  1230. var arrPostion = new Array();
  1231. arrPostion[0] = addRw;
  1232. grdf_setStatus(grd_slidlist, "I", arrPostion);
  1233. iMaxRowCnt = ds_grd_slidlist.rowposition;
  1234. ds_grd_slidlist.setColumn(iMaxRowCnt, "instcd", ds_grd_cstelist.getColumn(iFindNo, "instcd"));
  1235. ds_grd_slidlist.setColumn(iMaxRowCnt, "ptno", ds_grd_cstelist.getColumn(iFindNo, "ptno"));
  1236. ds_grd_slidlist.setColumn(iMaxRowCnt, "dispptno", ds_grd_cstelist.getColumn(iFindNo, "dispptno"));
  1237. ds_grd_slidlist.setColumn(iMaxRowCnt, "spcacptdd", ds_grd_cstelist.getColumn(iFindNo, "spcacptdd"));
  1238. ds_grd_slidlist.setColumn(iMaxRowCnt, "spcacptno", ds_grd_cstelist.getColumn(iFindNo, "spcacptno"));
  1239. ds_grd_slidlist.setColumn(iMaxRowCnt, "spcacptseqno", ds_grd_cstelist.getColumn(iFindNo, "spcacptseqno"));
  1240. ds_grd_slidlist.setColumn(iMaxRowCnt, "csteno", ds_grd_cstelist.getColumn(iFindNo, "csteno"));
  1241. ds_grd_slidlist.setColumn(iMaxRowCnt, "spccd", ds_grd_cstelist.getColumn(iFindNo, "spccd"));
  1242. ds_grd_slidlist.setColumn(iMaxRowCnt, "slidno", "000");
  1243. ds_grd_slidlist.setColumn(iMaxRowCnt, "cstekindcd", "1001");
  1244. ds_grd_slidlist.setColumn(iMaxRowCnt, "cstecnts", ds_refrslt1.getColumn(0, "resncnts"));
  1245. ds_grd_slidlist.setColumn(iMaxRowCnt, "tisscnt", "0");
  1246. ds_grd_slidlist.setColumn(iMaxRowCnt, "statsinclflagcd", "0");
  1247. ds_grd_slidlist.setColumn(iMaxRowCnt, "acptdd", ds_grd_cstelist.getColumn(iFindNo, "acptdd"));
  1248. ds_grd_slidlist.setColumn(iMaxRowCnt, "acptno", ds_grd_cstelist.getColumn(iFindNo, "acptno"));
  1249. ds_grd_slidlist.setColumn(iMaxRowCnt, "testcd", "-");
  1250. ds_grd_slidlist.setColumn(iMaxRowCnt, "acptitemno", "0");
  1251. ds_grd_slidlist.setColumn(iMaxRowCnt, "reprnt", "false");
  1252. ds_grd_slidlist.setColumn(iMaxRowCnt, "statflagcd", "C");
  1253. ds_grd_slidlist.setColumn(iMaxRowCnt, "scrno", "20");
  1254. ds_grd_slidlist.setColumn(iMaxRowCnt, "relaptno", "-");
  1255. ds_grd_slidlist.setColumn(iMaxRowCnt, "reladispptno", "-");
  1256. }
  1257. }
  1258. else
  1259. {
  1260. if(ds_init.getColumn(0, "blockind") == "0")
  1261. {
  1262. sysf_messageBox("슬라이드를 발행할 Cassette를 ", "C002");
  1263. return false;
  1264. }
  1265. else
  1266. {
  1267. //if (grd_spclist.row <= 0)
  1268. if(ds_grd_spclist.rowposition < 0)
  1269. {
  1270. sysf_messageBox("접수검체목록에서 병리번호를 ", "C002");
  1271. return false;
  1272. }
  1273. }
  1274. iIssCnt = Number(ds_hidden.getColumn(0, "slidcnt"));
  1275. for(var iLoopNo = 0; iLoopNo <= iIssCnt; iLoopNo++)
  1276. {
  1277. //--------------------
  1278. var addRw = ds_grd_slidlist.addRow();
  1279. var arrPostion = new Array();
  1280. arrPostion[0] = addRw;
  1281. grdf_setStatus(grd_slidlist, "I", arrPostion);
  1282. iMaxRowCnt = ds_grd_spclist.rowposition;
  1283. ds_grd_slidlist.setColumn(iMaxRowCnt, "instcd", ds_grd_spclist.getColumn(iFindNo, "instcd"));
  1284. ds_grd_slidlist.setColumn(iMaxRowCnt, "ptno", ds_grd_spclist.getColumn(iFindNo, "ptno"));
  1285. ds_grd_slidlist.setColumn(iMaxRowCnt, "dispptno", ds_grd_spclist.getColumn(iFindNo, "dispptno"));
  1286. ds_grd_slidlist.setColumn(iMaxRowCnt, "spcacptdd", ds_grd_spclist.getColumn(iFindNo, "spcacptdd"));
  1287. ds_grd_slidlist.setColumn(iMaxRowCnt, "spcacptno", ds_grd_spclist.getColumn(iFindNo, "spcacptno"));
  1288. ds_grd_slidlist.setColumn(iMaxRowCnt, "spcacptseqno", ds_grd_spclist.getColumn(iFindNo, "spcacptseqno"));
  1289. ds_grd_slidlist.setColumn(iMaxRowCnt, "csteno", "000");
  1290. ds_grd_slidlist.setColumn(iMaxRowCnt, "spccd", ds_grd_spclist.getColumn(iFindNo, "spccd"));
  1291. ds_grd_slidlist.setColumn(iMaxRowCnt, "slidno", iMaxRowCnt.toString().getLeftPad(3, "0"));
  1292. ds_grd_slidlist.setColumn(iMaxRowCnt, "cstekindcd", "1001");
  1293. ds_grd_slidlist.setColumn(iMaxRowCnt, "cstecnts", ds_refrslt.getColumn(31, "resncnts"));
  1294. ds_grd_slidlist.setColumn(iMaxRowCnt, "tisscnt", "0");
  1295. ds_grd_slidlist.setColumn(iMaxRowCnt, "statsinclflagcd", "0");
  1296. ds_grd_slidlist.setColumn(iMaxRowCnt, "acptdd", ds_grd_spclist.getColumn(iFindNo, "acptdd"));
  1297. ds_grd_slidlist.setColumn(iMaxRowCnt, "acptno", ds_grd_spclist.getColumn(iFindNo, "acptno"));
  1298. ds_grd_slidlist.setColumn(iMaxRowCnt, "testcd", "-");
  1299. ds_grd_slidlist.setColumn(iMaxRowCnt, "acptitemno", "0");
  1300. ds_grd_slidlist.setColumn(iMaxRowCnt, "reprnt", "false");
  1301. ds_grd_slidlist.setColumn(iMaxRowCnt, "statflagcd", "C");
  1302. ds_grd_slidlist.setColumn(iMaxRowCnt, "scrno", "20");
  1303. ds_grd_slidlist.setColumn(iMaxRowCnt, "relaptno", "-");
  1304. ds_grd_slidlist.setColumn(iMaxRowCnt, "reladispptno", "-");
  1305. }
  1306. }
  1307. }
  1308. //슬라이드 행삭제 처리 Function
  1309. function fExeSlideDel(pRowNo)
  1310. {
  1311. var sSrcNode= ds_grd_slidlist;
  1312. var arrPostion = new Array();
  1313. arrPostion[0] = ds_grd_slidlist.rowposition;
  1314. if(ds_grd_slidlist.getColumn(pRowNo, "statflagcd" == "C"))
  1315. {
  1316. grdf_setStatus(grd_slidlist, "D", arrPostion);
  1317. ds_grd_slidlist.deleteRow(grd_slidlist.rowposition);
  1318. }
  1319. else
  1320. {
  1321. ds_grd_slidlist.setColumn(pRowNo, "statflagcd", "D");
  1322. grdf_setStatus(grd_slidlist, "D", arrPostion);
  1323. ds_grd_slidlist.deleteRow(grd_slidlist.rowposition);
  1324. }
  1325. }
  1326. function fExeCsteClick(pRowNo)
  1327. {
  1328. if(grd_cstelist.currentcol == 1)
  1329. {
  1330. ds_init.setColumn(0, "blockind", "0");
  1331. fGetSlidList(pRowNo, "C");
  1332. }
  1333. }
  1334. //조회
  1335. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  1336. {
  1337. var pos = grd_spclist.vscrollbar.pos;
  1338. fGetSpcSeqList();
  1339. grd_spclist.vscrollbar.pos = pos;
  1340. }
  1341. //조회
  1342. function grp_sea_ipt_acptddto_onkeyup(obj:Calendar, e:KeyEventInfo)
  1343. {
  1344. if(e.keycode == 13)
  1345. {
  1346. var pos = grd_spclist.vscrollbar.pos;
  1347. fGetSpcSeqList();
  1348. grd_spclist.vscrollbar.pos = pos;
  1349. }
  1350. }
  1351. //Cassette재발행
  1352. function btn_csteiss_onclick(obj:Button, e:ClickEventInfo)
  1353. {
  1354. var pos = grd_spclist.vscrollbar.pos;
  1355. fExeCsteIss("R");
  1356. grd_spclist.vscrollbar.pos = pos;
  1357. }
  1358. //슬라이드재발행
  1359. function btn_slidiss_onclick(obj:Button, e:ClickEventInfo)
  1360. {
  1361. var pos = grd_spclist.vscrollbar.pos;
  1362. fExeSlidIss("R");
  1363. grd_spclist.vscrollbar.pos = pos;
  1364. }
  1365. //블럭저장
  1366. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  1367. {
  1368. fExeCsteSlidSave("C");
  1369. }
  1370. //Cassette(블록)목록 행추가
  1371. function btn_addcste_onclick(obj:Button, e:ClickEventInfo)
  1372. {
  1373. fExeCsteAdd();
  1374. }
  1375. //Cassette(블록)목록 행삭제
  1376. function btn_delcste_onclick(obj:Button, e:ClickEventInfo)
  1377. {
  1378. fExeCsteDel(ds_grd_cstelist.rowposition);
  1379. }
  1380. //블록저장
  1381. function btn_slidsave_onclick(obj:Button, e:ClickEventInfo)
  1382. {
  1383. fExeCsteSlidSave("S");
  1384. }
  1385. //슬라이드 목록 행추가
  1386. function btn_addslid_onclick(obj:Button, e:ClickEventInfo)
  1387. {
  1388. fExeSlidAdd();
  1389. }
  1390. //슬라이드 목록 행삭제
  1391. function btn_delslid_onclick(obj:Button, e:ClickEventInfo)
  1392. {
  1393. fExeSlideDel(ds_grd_slidlist.rowposition);
  1394. }
  1395. function grd_spclist_oncellclick(obj:Grid, e:GridClickEventInfo)
  1396. {
  1397. fExeSpcSeqClick(ds_grd_spclist.rowposition);
  1398. }
  1399. function grd_cstelist_oncellclick(obj:Grid, e:GridClickEventInfo)
  1400. {
  1401. fExeCsteClick(ds_grd_cstelist.rowposition);
  1402. }
  1403. function combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1404. {
  1405. fExeBlocKindChange();
  1406. }
  1407. //Cassette종류(가상블럭) 선택 처리 Function
  1408. function fExeBlocKindChange()
  1409. {
  1410. var iFindNo = 0;
  1411. if(ds_grd_slidlist.rowcount < 0)
  1412. {
  1413. sysf_messageBox("접수검체 목록에서 병리번호를 ", "C002");
  1414. return false;
  1415. }
  1416. if(ds_init.getColumn(0, "blockind") == "0")
  1417. {
  1418. iFindNo = ds_grd_cstelist.findRow("choi", "true", 0);
  1419. if (iFindNo > -1)
  1420. {
  1421. ds_grd_cstelist.rowposition = iFindNo;
  1422. fGetSlidList(iFindNo, "C");
  1423. }
  1424. else{
  1425. }
  1426. }
  1427. else
  1428. {
  1429. fGetSlidList(ds_grd_slidlist.rowposition, "S");
  1430. }
  1431. }
  1432. function grd_slidlist_oncloseup(obj:Grid, e:GridEditEventInfo)
  1433. {
  1434. fExeSlidTestChange();
  1435. }
  1436. /* @group : Cassette/슬라이드발행
  1437. * @ver : 2017.01.16 (CMCDEV-0001)
  1438. * @by : 이민기
  1439. * @-----------------------------------
  1440. * @type : function
  1441. * @access : public
  1442. * @desc : 검사명 변경 처리 Function
  1443. */
  1444. function fExeSlidTestChange()
  1445. {
  1446. var iRowNo = ds_grd_slidlist.rowposition;
  1447. var sSrcNode = ds_rsltlist;
  1448. var sDescNode = ds_grd_slidlist;
  1449. var sNode = "";
  1450. var sResnNode = ds_refrslt
  1451. var iSlidListNo = 0;
  1452. if(grd_slidlist.currentcol == 15)
  1453. {
  1454. sNode = "acptdd='" + ds_grd_slidlist.getColumn(iRowNo, "acptdd") + "' &&";
  1455. sNode += "acptno'" + ds_grd_slidlist.getColumn(iRowNo, "acptno") + "' &&";
  1456. sNode += "testcd='" + ds_grd_slidlist.getColumn(iRowNo, "testcd") + "'";
  1457. for(var iNo = 0; iNo < ds_rsltlist.rowcount; iNo++)
  1458. {
  1459. if(ds_grd_slidlist.getColumn(ds_grd_slidlist.rowposition, "testcd") == ds_rsltlist.getColumn(iNo, "testcd"))
  1460. {
  1461. iSlidListNo = iNo;
  1462. break;
  1463. }
  1464. }
  1465. ds_grd_slidlist.setColumn(ds_grd_slidlist.rowposition, "acptitemno", ds_rsltlist.getColumn(iSlidListNo, "acptitemno"));
  1466. if(ds_grd_slidlist.getColumn(ds_grd_slidlist.rowposition, "ptno") == ds_rsltlist.getColumn(iSlidListNo, "ptno"))
  1467. {
  1468. // Continue
  1469. }
  1470. else
  1471. {
  1472. ds_grd_slidlist.setColumn(ds_grd_slidlist.rowposition, "relaptno", ds_rsltlist.getColumn(iSlidListNo, "ptno"));
  1473. ds_grd_slidlist.setColumn(ds_grd_slidlist.rowposition, "reladispptno", ds_rsltlist.getColumn(iSlidListNo, "dispptno"));
  1474. ds_grd_slidlist.setColumn(ds_grd_slidlist.rowposition, "cstecnts", ds_rsltlist.getColumn(iSlidListNo, "testnm"));
  1475. //-----------------------------------------------------------
  1476. //switch (model.getValue(sSrcNode+"["+ iSlidListNo+"]/workflagcd"))
  1477. switch(ds_rsltlist.getColumn(iSlidListNo, "workflagcd"))
  1478. {
  1479. case "1004" : ds_grd_slidlist.setColumn(ds_grd_slidlist.rowposition, "cstekindcd", "1009");//model.makeValue(sDescNode+"["+grd_slidlist.row+"]/cstekindcd", "1009");
  1480. break;
  1481. case "1005" : ds_grd_slidlist.setColumn(ds_grd_slidlist.rowposition, "cstekindcd", "1010");//model.makeValue(sDescNode+"["+grd_slidlist.row+"]/cstekindcd", "1010");
  1482. break;
  1483. case "1006" : ds_grd_slidlist.setColumn(ds_grd_slidlist.rowposition, "cstekindcd", "1011");
  1484. break;
  1485. default : ds_grd_slidlist.setColumn(ds_grd_slidlist.rowposition, "cstekindcd", "1001");
  1486. }
  1487. }
  1488. }
  1489. //else if (grd_slidlist.col == grd_slidlist.colRef("cstekindcd"))
  1490. else if(grd_slidlist.currentcol == 8)
  1491. {
  1492. grd_slidlist.updateToDataset();
  1493. ds_refrslt.filter("baseflagcd == '82' && resncd =='" + ds_grd_slidlist.getColumn(ds_grd_slidlist.rowposition, "cstekindcd") + "'");
  1494. ds_grd_slidlist.setColumn(ds_grd_slidlist.rowposition, "cstecnts", ds_refrslt.getColumn(0, "resncnts"));
  1495. ds_refrslt.filter("");
  1496. }
  1497. }
  1498. function grd_slidlist_ontextchange(obj:Grid, e:GridEditTextChangeEventInfo)
  1499. {
  1500. fExeSlidTestChange();
  1501. }
  1502. //소켓 에러 이벤트
  1503. function socketcste_OnError(obj:ActiveX, e)
  1504. {
  1505. alert("Error code = " + lError+"\nError Message : "+szMsg);
  1506. socketcste_OnClose(); // 소켓 닫기
  1507. isConnected = false; // 접속 여부 false
  1508. }
  1509. //소켓 연결 이벤트
  1510. function socketcste_OnConnect(obj:ActiveX, e)
  1511. {
  1512. trace("Socket Connect");
  1513. isConnected = true; // 접속 여부 false
  1514. var sCsteNode = ds_grd_cstelist;
  1515. for(var iRowNo = 0; iRowNo < ds_grd_cstelist.rowcount; iRowNo++)
  1516. {
  1517. if(ds_grd_cstelist.getColumn(iRowNo, "reprnt") == "true" || ds_grd_cstelist.getColumn(iRowNo, "reprnt") == 1)
  1518. {
  1519. // 신규와 삭제분은 발행하지 않는다.
  1520. if(ds_grd_cstelist.getColumn(iRowNo, "statflagcd") == "-")
  1521. {
  1522. sSendMsg = "";
  1523. sSendMsg += ds_grd_cstelist.getColumn(iRowNo, "ptno") + "▦"; // 병리번호
  1524. sSendMsg += ds_grd_cstelist.getColumn(iRowNo, "dispptno") + "▦"; // 표시병리번호
  1525. sSendMsg += ds_grd_cstelist.getColumn(iRowNo, "spcacptseqno") + "▦"; // 검체일련번호
  1526. sSendMsg += ds_grd_cstelist.getColumn(iRowNo, "csteno") + "▦"; // 블럭번호
  1527. sSendMsg += "000" + "▦"; // 슬라이드번호
  1528. sSendMsg += ds_grd_cstelist.getColumn(iRowNo, "cstecnts") + "▦"; // 블럭내용
  1529. sSendMsg += ds_grd_cstelist.getColumn(iRowNo, "hopper") + "▦"; // Hopper번호
  1530. sSendMsg += "C" + "▩";
  1531. trace("sSendMsg="+sSendMsg);
  1532. socketcste.sendString(sSendMsg); // 전송한다.
  1533. }
  1534. }
  1535. }
  1536. //ds_grd_cstelist.clearData();
  1537. //----------
  1538. // 소켓 닫기
  1539. socketcste_OnClose();
  1540. }
  1541. //소켓 close 이벤트
  1542. function socketcste_OnClose(obj:ActiveX, e)
  1543. {
  1544. isConnected = false; // 접속 여부 false
  1545. socketcste.close();
  1546. }
  1547. //소켓 에러 이벤트
  1548. function socketslid_OnError(obj:ActiveX, e)
  1549. {
  1550. alert("Error code = " + lError+"\nError Message : "+szMsg);
  1551. socketslid_OnClose(); // 소켓 닫기
  1552. isConnected = false; // 접속 여부 false
  1553. }
  1554. //소켓 연결 이벤트
  1555. function socketslid_OnConnect(obj:ActiveX, e)
  1556. {
  1557. trace("Socket Connect");
  1558. var iMaxRowCnt = 0;
  1559. var sCsteNode = ds_grd_cstelist;
  1560. var sSlidNode = ds_grd_slidlist;
  1561. var sMainNode = ds_grd_spclist;
  1562. //--------------------------------------
  1563. iMaxRowCnt = ds_grd_slidlist.rowcount;
  1564. for(var iRowNo=0; iRowNo < iMaxRowCnt; iRowNo++)
  1565. {
  1566. if(ds_grd_slidlist.getColumn(iRowNo, "reprnt") == "true")
  1567. {
  1568. if(ds_grd_slidlist.getColumn(iRowNo, "statflagcd") == "-")
  1569. {
  1570. sSendMsg = "";
  1571. sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "ptno") + "▦"; // 병리번호
  1572. sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "dispptno") + "▦"; // 표시병리번호
  1573. sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "spcacptseqno") + "▦"; // 검체일련번호
  1574. sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "csteno") + "▦"; // 블럭번호
  1575. sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "slidno") + "▦"; // 슬라이드번호
  1576. sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "prtnblocnm") + "▦"; // 블럭내용
  1577. sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "cstecnts") + "▦"; // 슬라이드내용
  1578. // 전송종료여부 설정
  1579. if (iRowNo == iMaxRowCnt)
  1580. {
  1581. sSendMsg += "Y" + "▦";
  1582. }
  1583. else
  1584. {
  1585. sSendMsg += "N" + "▦";
  1586. }
  1587. sSendMsg += ds_grd_spclist.getColumn(ds_grd_spclist.rowposition, "pid") + "▦"; // 환자번호
  1588. sSendMsg += ds_grd_spclist.getColumn(ds_grd_spclist.rowposition, "patnm") + "▦"; // 환자명
  1589. //if (model.getValue("/root/init/prtflag") == "0")
  1590. if(ds_init.getColumn(0, "prtflag") == "0")
  1591. {
  1592. sSendMsg += "SM" + "▩";
  1593. } else {
  1594. sSendMsg += "SB" + "▩";
  1595. }
  1596. socketslid.sendString(sSendMsg); // 전송한다.
  1597. }
  1598. }
  1599. }
  1600. //----------
  1601. // 소켓 닫기
  1602. socketslid_OnClose();
  1603. }
  1604. //소켓 close 이벤트
  1605. function socketslid_OnClose(obj:ActiveX, e)
  1606. {
  1607. isConnected = false; // 접속 여부 false
  1608. socketslid.close();
  1609. }
  1610. function grd_cstelist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo)
  1611. {
  1612. //var iRowNo = grd_cstelist.row;
  1613. var iRowNo = ds_grd_cstelist.rowposition;
  1614. //if((grd_cstelist.col == grd_cstelist.colRef("cstekindcd")) && (grd_cstelist.row >= grd_cstelist.fixedRows))
  1615. if(e.col == 9)
  1616. {
  1617. fExeCsteChange();
  1618. }
  1619. //else if(grd_cstelist.col == grd_cstelist.colRef("cstecnts") || grd_cstelist.col == grd_cstelist.colRef("statsinclflagcd"))
  1620. else if(e.col == 10 || e.col == 13)
  1621. {
  1622. //if((model.getValue("/root/main/csteinfo/cstelist["+iRowNo+"]/statflagcd") != "C") && (model.getValue("/root/main/csteinfo/cstelist["+iRowNo+"]/statflagcd") != "D"))
  1623. if((ds_grd_cstelist.getColumn(iRowNo, "statflagcd") != "C") && (ds_grd_cstelist.getColumn(iRowNo, "statflagcd") != "D"))
  1624. {
  1625. ds_grd_cstelist.setColumn(iRowNo, "statflagcd", "UPDATE");
  1626. }
  1627. }
  1628. }
  1629. function grd_cstelist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  1630. {
  1631. if(e.row > -1)
  1632. { frmf_setPopupMenuDs( "pmn_popupMenu", [{id: "fDelCaList", level: "0", title: "블록 삭제"}]);
  1633. pmn_popupMenu.trackPopup(e.screenX,e.screenY);
  1634. }
  1635. }
  1636. function pmn_popupMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  1637. {
  1638. if(e.id == "fDelCaList")
  1639. {
  1640. fDelCaList();
  1641. }
  1642. }
  1643. function fDelCaList()
  1644. {
  1645. //var iFirstRow = ds_grd_cstelist.rowposition;
  1646. var iFirstRow = grd_cstelist.selectstartrow;
  1647. //var iLastRow = ds_grd_cstelist.rowcount;
  1648. var iLastRow = grd_cstelist.selectendrow;
  1649. trace("iFirstRow = " + iFirstRow);
  1650. trace("iLastRow = " + iLastRow);
  1651. for(var iRowNo = iLastRow; iRowNo >= iFirstRow; iRowNo--)
  1652. {
  1653. fExeCsteDel(iRowNo);
  1654. }
  1655. }
  1656. function grd_slidlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  1657. {
  1658. if(e.row > -1)
  1659. {
  1660. frmf_setPopupMenuDs( "pmn_popupMenu1", [{id: "fDelSlidList", level: "0", title: "슬라이드 삭제"}]);
  1661. pmn_popupMenu1.trackPopup(e.screenX,e.screenY);
  1662. }
  1663. }
  1664. function pmn_popupMenu_onmenuclick1(obj:PopupMenu, e:MenuClickEventInfo)
  1665. {
  1666. if(e.id == "fDelSlidList")
  1667. {
  1668. fDelSlidList();
  1669. }
  1670. }
  1671. //선택목록 삭제
  1672. function fDelSlidList()
  1673. {
  1674. var iFirstRow = ds_grd_slidlist.rowposition;
  1675. var iLasrRow = ds_grd_slidlist.rowcount;
  1676. for(var iRowNo = iLasrRow ; iRowNo >= iFirstRow ; iRowNo--)
  1677. {
  1678. fExeSlideDel(iRowNo);
  1679. }
  1680. }
  1681. function grp_sea_ipt_seaval_onkeyup(obj:Edit, e:KeyEventInfo)
  1682. {
  1683. if(e.keycode == 13)
  1684. {
  1685. fExeRefValKeyPress();
  1686. }
  1687. }
  1688. //등록번호 입력 처리 Function
  1689. function fExeRefValKeyPress()
  1690. {
  1691. ds_hidden.setColumn(0, "seaval", grp_sea.ipt_seaval.text);
  1692. fGetSpcSeqList();
  1693. }]]></Script>
  1694. </Form>
  1695. </FDL>