SMLPP00600_검체폐기대장.xfdl 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLPP00600" position="absolute 0 0 1197 794" titletext="검체폐기대장" oninit="SMLPP00600_oninit" onload="SMLPP00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="폐기물현황" class="tit_1" position="absolute 0 0 112 25"/>
  8. <Button id="button13" taborder="1" text="EXCEL저장" class="btn7" position="absolute 0 26 92 48" onclick="button13_onclick"/>
  9. <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1138 19 1194 41" onclick="btn_save_onclick" anchor="top right"/>
  10. <Button id="btn_cncl" taborder="3" text="취소" class="btn4" visible="false" position="absolute 1080 19 1136 41" onclick="btn_cncl_onclick" anchor="top right"/>
  11. <Div id="Div2" taborder="4" position="absolute 2 60 1194 95"/>
  12. <Static id="caption4" text="폐기(액상)목록" class="tit_2" position="absolute 2 100 114 116"/>
  13. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 119 565 125" style="strokepen:3 solid #33bbbbff;" anchor="left top"/>
  14. <Div id="group2" taborder="5" class="div_SA" position="absolute 0 57 1195 92" anchor="left top right">
  15. <Layouts>
  16. <Layout>
  17. <Static id="caption1" text="병리번호 :" class="search_name" position="absolute 15 9 105 26"/>
  18. <Combo id="cbo_ptnocd" taborder="11" innerdataset="ds_init_cbo_ptnocd" codecolumn="ptnocd" datacolumn="ptnonm" position="absolute 109 8 220 27"/>
  19. <Edit id="ipt_fromyear" taborder="12" class="text_center" position="absolute 223 8 250 27"/>
  20. <Edit id="ipt_fromptno" taborder="13" class="text_center" position="absolute 253 8 303 27"/>
  21. <Static id="caption7" text="~" class="search_no_b" position="absolute 306 8 318 25"/>
  22. <Edit id="input2" taborder="14" class="text_center" position="absolute 321 8 348 27"/>
  23. <Edit id="input1" taborder="15" class="text_center" position="absolute 351 8 401 27"/>
  24. <Static id="caption2" text="조회구분 :" class="search_name" position="absolute 419 9 491 25"/>
  25. <Combo id="cmb_refflagcd" taborder="16" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 510 8 579 27" onitemchanged="group2_cmb_refflagcd_onitemchanged">
  26. <Dataset id="innerdataset">
  27. <ColumnInfo>
  28. <Column id="codecolumn"/>
  29. <Column id="datacolumn"/>
  30. </ColumnInfo>
  31. <Rows>
  32. <Row>
  33. <Col id="codecolumn">0</Col>
  34. <Col id="datacolumn">미폐기</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">1</Col>
  38. <Col id="datacolumn">폐기</Col>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. </Combo>
  43. <Static id="caption8" text="폐기물구분 :" class="search_name" position="absolute 600 9 699 26" anchor="default"/>
  44. <Combo id="cmb_abnflagcd" taborder="17" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 701 8 770 27" anchor="default">
  45. <Dataset id="innerdataset">
  46. <ColumnInfo>
  47. <Column id="codecolumn"/>
  48. <Column id="datacolumn"/>
  49. </ColumnInfo>
  50. <Rows>
  51. <Row>
  52. <Col id="codecolumn">0</Col>
  53. <Col id="datacolumn">액상</Col>
  54. </Row>
  55. <Row>
  56. <Col id="codecolumn">1</Col>
  57. <Col id="datacolumn">적출물</Col>
  58. </Row>
  59. <Row>
  60. <Col id="codecolumn">2</Col>
  61. <Col id="datacolumn">전체</Col>
  62. </Row>
  63. </Rows>
  64. </Dataset>
  65. </Combo>
  66. <Static id="cap_refdd" text="접수일자 :" class="search_name" position="absolute 787 10 875 25" anchor="top right"/>
  67. <Calendar id="ipt_cnclfromdd" taborder="18" class="input_s_essential" position="absolute 876 8 976 27" mask="yyyy-mm-dd" anchor="top right"/>
  68. <Static id="caption5" text="~" class="search_no_b" position="absolute 979 8 991 25" anchor="top right"/>
  69. <Calendar id="ipt_cncltodd" taborder="19" class="input_s_essential" position="absolute 995 8 1095 27" mask="yyyy-mm-dd" onkeyup="group2_ipt_cncltodd_onkeyup" anchor="top right"/>
  70. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
  71. <Button id="btn_sea" taborder="20" text="조회" class="btn1" position="absolute 1123 7 1179 29" onclick="group2_btn_sea_onclick" anchor="top right"/>
  72. </Layout>
  73. </Layouts>
  74. </Div>
  75. <Grid id="grd_wastelist1" class="datagrid2" taborder="6" binddataset="ds_grd_wastelist1" useinputpanel="false" position="absolute 0 123 565 791" autofittype="col" oncloseup="grd_wastelist1_oncloseup" oncellclick="grd_wastelist1_oncellclick" onsummclick="grd_wastelist1_onsummclick" onheadclick="grd_wastelist1_onheadclick" anchor="left top bottom" cellclickbound="cell">
  76. <Formats>
  77. <Format id="default">
  78. <Columns>
  79. <Column size="22"/>
  80. <Column size="28"/>
  81. <Column size="0"/>
  82. <Column size="0"/>
  83. <Column size="0"/>
  84. <Column size="0"/>
  85. <Column size="0"/>
  86. <Column size="0"/>
  87. <Column size="119"/>
  88. <Column size="0"/>
  89. <Column size="0"/>
  90. <Column size="0"/>
  91. <Column size="0"/>
  92. <Column size="87"/>
  93. <Column size="66"/>
  94. <Column size="0"/>
  95. <Column size="70"/>
  96. <Column size="0"/>
  97. <Column size="100"/>
  98. <Column size="61"/>
  99. </Columns>
  100. <Rows>
  101. <Row size="24" band="head"/>
  102. <Row size="24"/>
  103. </Rows>
  104. <Band id="head">
  105. <Cell/>
  106. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="선&#10;택"/>
  107. <Cell col="2" text="기관코드"/>
  108. <Cell col="3" text="abnflagcd"/>
  109. <Cell col="4" text="abndg"/>
  110. <Cell col="5" text="abnseqno"/>
  111. <Cell col="6" text="wasteflagcd"/>
  112. <Cell col="7" text="wasteresncd"/>
  113. <Cell col="8" text="폐기물"/>
  114. <Cell col="9" text="ptno"/>
  115. <Cell col="10" text="dispptno"/>
  116. <Cell col="11" text="spccd"/>
  117. <Cell col="12" text="spcnm"/>
  118. <Cell col="13" text="폐기일자"/>
  119. <Cell col="14" text="폐기시간"/>
  120. <Cell col="15" text="abnid"/>
  121. <Cell col="16" text="인계자"/>
  122. <Cell col="17" text="abncustflagcd"/>
  123. <Cell col="18" text="폐기업체"/>
  124. <Cell col="19" text="용량(ℓ)"/>
  125. </Band>
  126. <Band id="body">
  127. <Cell text="expr:currow + 1"/>
  128. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
  129. <Cell col="2" text="bind:instcd"/>
  130. <Cell col="3" text="bind:abnflagcd"/>
  131. <Cell col="4" text="bind:abndg"/>
  132. <Cell col="5" text="bind:abnseqno"/>
  133. <Cell col="6" text="bind:wasteflagcd"/>
  134. <Cell col="7" text="bind:wasteresncd"/>
  135. <Cell col="8" text="bind:wasteresnnm"/>
  136. <Cell col="9" text="bind:ptno"/>
  137. <Cell col="10" text="bind:dispptno"/>
  138. <Cell col="11" text="bind:spccd"/>
  139. <Cell col="12" text="bind:spcnm"/>
  140. <Cell col="13" displaytype="date" edittype="date" class="text_center" text="bind:abndd" mask="yyyy-MM-dd"/>
  141. <Cell col="14" displaytype="date" edittype="date" text="bind:abntm" mask="HH:mm:ss"/>
  142. <Cell col="15" text="bind:abnid"/>
  143. <Cell col="16" text="bind:abnnm"/>
  144. <Cell col="17" text="bind:abncustflagcd"/>
  145. <Cell col="18" displaytype="combo" edittype="combo" style="align:center;" text="bind:abncustresncd" combodataset="ds_init_cbo_custcd" combocodecol="resncd" combodatacol="resncnts"/>
  146. <Cell col="19" displaytype="number" edittype="masknumber" style="align:right middle;" class="text_right" text="bind:abnvol" mask="999,999,999"/>
  147. </Band>
  148. </Format>
  149. </Formats>
  150. </Grid>
  151. <Grid id="grd_wastelist2" class="datagrid2" taborder="7" binddataset="ds_grd_wastelist2" useinputpanel="false" position="absolute 568 123 1194 791" oncellclick="grd_wastelist2_oncellclick" oncloseup="grd_wastelist2_oncloseup" onheadclick="grd_wastelist2_onheadclick" anchor="all" autofittype="col" cellclickbound="cell">
  152. <Formats>
  153. <Format id="default">
  154. <Columns>
  155. <Column size="27"/>
  156. <Column size="40"/>
  157. <Column size="0"/>
  158. <Column size="0"/>
  159. <Column size="0"/>
  160. <Column size="0"/>
  161. <Column size="0"/>
  162. <Column size="0"/>
  163. <Column size="0"/>
  164. <Column size="0"/>
  165. <Column size="80"/>
  166. <Column size="0"/>
  167. <Column size="112"/>
  168. <Column size="84"/>
  169. <Column size="50"/>
  170. <Column size="0"/>
  171. <Column size="70"/>
  172. <Column size="0"/>
  173. <Column size="90"/>
  174. <Column size="52"/>
  175. </Columns>
  176. <Rows>
  177. <Row size="24" band="head"/>
  178. <Row size="24"/>
  179. </Rows>
  180. <Band id="head">
  181. <Cell/>
  182. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  183. <Cell col="2" text="기관코드"/>
  184. <Cell col="3" text="abnflagcd"/>
  185. <Cell col="4" text="abndg"/>
  186. <Cell col="5" text="abnseqno"/>
  187. <Cell col="6" text="wasteflagcd"/>
  188. <Cell col="7" text="wasteresncd"/>
  189. <Cell col="8" text="wasteresnnm"/>
  190. <Cell col="9" text="ptno"/>
  191. <Cell col="10" text="병리번호"/>
  192. <Cell col="11" text="spccd"/>
  193. <Cell col="12" text="검체"/>
  194. <Cell col="13" text="폐기일자"/>
  195. <Cell col="14" text="폐기&#10;시간"/>
  196. <Cell col="15" text="abnid"/>
  197. <Cell col="16" text="인계자"/>
  198. <Cell col="17" text="abncustflagcd"/>
  199. <Cell col="18" text="폐기업체"/>
  200. <Cell col="19" text="용량(ℓ)"/>
  201. </Band>
  202. <Band id="body">
  203. <Cell text="expr:currow + 1"/>
  204. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
  205. <Cell col="2" text="bind:instcd"/>
  206. <Cell col="3" text="bind:abnflagcd"/>
  207. <Cell col="4" text="bind:abndg"/>
  208. <Cell col="5" text="bind:abnseqno"/>
  209. <Cell col="6" text="bind:wasteflagcd"/>
  210. <Cell col="7" text="bind:wasteresncd"/>
  211. <Cell col="8" text="bind:wasteresnnm"/>
  212. <Cell col="9" text="bind:ptno"/>
  213. <Cell col="10" class="text_center" text="bind:dispptno"/>
  214. <Cell col="11" text="bind:spccd"/>
  215. <Cell col="12" style="align:left middle;" text="bind:spcnm"/>
  216. <Cell col="13" displaytype="date" edittype="date" text="bind:abndd"/>
  217. <Cell col="14" text="bind:abntm"/>
  218. <Cell col="15" text="bind:abnid"/>
  219. <Cell col="16" text="bind:abnnm"/>
  220. <Cell col="17" text="bind:abncustflagcd"/>
  221. <Cell col="18" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:abncustresncd" combodataset="ds_init_cbo_custcd" combocodecol="resncd" combodatacol="resncnts"/>
  222. <Cell col="19" displaytype="number" edittype="masknumber" class="text_right" text="bind:abnvol" mask="999,999,999"/>
  223. </Band>
  224. </Format>
  225. </Formats>
  226. </Grid>
  227. <Static id="caption3" text="폐기(적출물)목록" class="tit_2" position="absolute 569 101 693 117"/>
  228. <Shape id="line2" linetype="horizontal" class="line_1" position="absolute 568 119 1194 125" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  229. <Grid id="grd_savelist" taborder="8" binddataset="ds_grd_savelist" useinputpanel="false" visible="false" position="absolute 200 98 315 144">
  230. <Formats>
  231. <Format id="default">
  232. <Columns>
  233. <Column size="100"/>
  234. <Column size="100"/>
  235. <Column size="100"/>
  236. <Column size="100"/>
  237. <Column size="100"/>
  238. <Column size="100"/>
  239. <Column size="100"/>
  240. <Column size="100"/>
  241. <Column size="100"/>
  242. <Column size="100"/>
  243. <Column size="100"/>
  244. <Column size="100"/>
  245. <Column size="100"/>
  246. <Column size="100"/>
  247. <Column size="100"/>
  248. <Column size="100"/>
  249. <Column size="100"/>
  250. <Column size="100"/>
  251. <Column size="100"/>
  252. <Column size="100"/>
  253. </Columns>
  254. <Rows>
  255. <Row size="24" band="head"/>
  256. <Row size="24"/>
  257. </Rows>
  258. <Band id="head">
  259. <Cell text="선택"/>
  260. <Cell col="1" text="기관코드"/>
  261. <Cell col="2" text="abnflagcd"/>
  262. <Cell col="3" text="abndg"/>
  263. <Cell col="4" text="abnseqno"/>
  264. <Cell col="5" text="wasteflagcd"/>
  265. <Cell col="6" text="wasteresncd"/>
  266. <Cell col="7" text="폐기물"/>
  267. <Cell col="8" text="ptno"/>
  268. <Cell col="9" text="dispptno"/>
  269. <Cell col="10" text="spccd"/>
  270. <Cell col="11" text="spcnm"/>
  271. <Cell col="12" text="폐기일자"/>
  272. <Cell col="13" text="폐기&#10;시간"/>
  273. <Cell col="14" text="abnid"/>
  274. <Cell col="15" text="폐기자"/>
  275. <Cell col="16" text="abncustflagcd"/>
  276. <Cell col="17" text="폐기업체"/>
  277. <Cell col="18" text="용량(ℓ)"/>
  278. <Cell col="19" text="bizflagcd"/>
  279. </Band>
  280. <Band id="body">
  281. <Cell text="bind:choi" edittype="checkbox" displaytype="checkbox"/>
  282. <Cell col="1" text="bind:instcd"/>
  283. <Cell col="2" text="bind:abnflagcd"/>
  284. <Cell col="3" text="bind:abndg"/>
  285. <Cell col="4" text="bind:abnseqno"/>
  286. <Cell col="5" text="bind:wasteflagcd"/>
  287. <Cell col="6" text="bind:wasteresncd"/>
  288. <Cell col="7" text="bind:wasteresnnm"/>
  289. <Cell col="8" text="bind:ptno"/>
  290. <Cell col="9" text="bind:dispptno"/>
  291. <Cell col="10" text="bind:spccd"/>
  292. <Cell col="11" text="bind:spcnm"/>
  293. <Cell col="12" class="text_center" text="bind:abndd" edittype="date" displaytype="date" mask="yyyy-mm-dd"/>
  294. <Cell col="13" text="bind:abntm" mask="hh:nn:ss"/>
  295. <Cell col="14" text="bind:abnid"/>
  296. <Cell col="15" text="bind:abnnm"/>
  297. <Cell col="16" text="bind:abncustflagcd"/>
  298. <Cell col="17" text="bind:abncustresncd" edittype="combo" displaytype="combo"/>
  299. <Cell col="18" text="bind:abnvol" edittype="text" displaytype="text" mask="#,###"/>
  300. <Cell col="19" text="bind:bizflagcd"/>
  301. </Band>
  302. </Format>
  303. </Formats>
  304. </Grid>
  305. <Grid id="grd_abnlist" taborder="9" binddataset="ds_grd_abnlist" useinputpanel="false" visible="false" position="absolute 370 208 1035 358">
  306. <Formats>
  307. <Format id="default">
  308. <Columns>
  309. <Column size="0"/>
  310. <Column size="173"/>
  311. <Column size="50"/>
  312. <Column size="50"/>
  313. <Column size="50"/>
  314. <Column size="50"/>
  315. <Column size="50"/>
  316. <Column size="50"/>
  317. <Column size="50"/>
  318. <Column size="50"/>
  319. <Column size="50"/>
  320. <Column size="50"/>
  321. <Column size="50"/>
  322. <Column size="50"/>
  323. <Column size="50"/>
  324. <Column size="50"/>
  325. <Column size="50"/>
  326. <Column size="50"/>
  327. <Column size="50"/>
  328. <Column size="50"/>
  329. <Column size="50"/>
  330. <Column size="50"/>
  331. <Column size="50"/>
  332. <Column size="50"/>
  333. <Column size="50"/>
  334. <Column size="50"/>
  335. <Column size="50"/>
  336. <Column size="50"/>
  337. <Column size="50"/>
  338. <Column size="50"/>
  339. <Column size="50"/>
  340. <Column size="50"/>
  341. <Column size="50"/>
  342. <Column size="50"/>
  343. </Columns>
  344. <Rows>
  345. <Row size="24" band="head"/>
  346. <Row size="24"/>
  347. </Rows>
  348. <Band id="head">
  349. <Cell text="기관코드"/>
  350. <Cell col="1" text="폐기물"/>
  351. <Cell col="2" text="01"/>
  352. <Cell col="3" text="02"/>
  353. <Cell col="4" text="03"/>
  354. <Cell col="5" text="04"/>
  355. <Cell col="6" text="05"/>
  356. <Cell col="7" text="06"/>
  357. <Cell col="8" text="07"/>
  358. <Cell col="9" text="08"/>
  359. <Cell col="10" text="09"/>
  360. <Cell col="11" text="10"/>
  361. <Cell col="12" text="11"/>
  362. <Cell col="13" text="12"/>
  363. <Cell col="14" text="13"/>
  364. <Cell col="15" text="14"/>
  365. <Cell col="16" text="15"/>
  366. <Cell col="17" text="16"/>
  367. <Cell col="18" text="17"/>
  368. <Cell col="19" text="18"/>
  369. <Cell col="20" text="19"/>
  370. <Cell col="21" text="20"/>
  371. <Cell col="22" text="21"/>
  372. <Cell col="23" text="22"/>
  373. <Cell col="24" text="23"/>
  374. <Cell col="25" text="24"/>
  375. <Cell col="26" text="25"/>
  376. <Cell col="27" text="26"/>
  377. <Cell col="28" text="27"/>
  378. <Cell col="29" text="28"/>
  379. <Cell col="30" text="29"/>
  380. <Cell col="31" text="30"/>
  381. <Cell col="32" text="31"/>
  382. <Cell col="33" text="합계"/>
  383. </Band>
  384. <Band id="body">
  385. <Cell text="bind:instcd"/>
  386. <Cell col="1" text="bind:wasteresnnm"/>
  387. <Cell col="2" class="text_right" text="bind:day01" mask="#,###"/>
  388. <Cell col="3" class="text_right" text="bind:day02" mask="#,###"/>
  389. <Cell col="4" class="text_right" text="bind:day03" mask="#,###"/>
  390. <Cell col="5" class="text_right" text="bind:day04" mask="#,###"/>
  391. <Cell col="6" class="text_right" text="bind:day05" mask="#,###"/>
  392. <Cell col="7" class="text_right" text="bind:day06" mask="#,###"/>
  393. <Cell col="8" class="text_right" text="bind:day07" mask="#,###"/>
  394. <Cell col="9" class="text_right" text="bind:day08" mask="#,###"/>
  395. <Cell col="10" class="text_right" text="bind:day09" mask="#,###"/>
  396. <Cell col="11" class="text_right" text="bind:day10" mask="#,###"/>
  397. <Cell col="12" class="text_right" text="bind:day11" mask="#,###"/>
  398. <Cell col="13" class="text_right" text="bind:day12" mask="#,###"/>
  399. <Cell col="14" class="text_right" text="bind:day13" mask="#,###"/>
  400. <Cell col="15" class="text_right" text="bind:day14" mask="#,###"/>
  401. <Cell col="16" class="text_right" text="bind:day15" mask="#,###"/>
  402. <Cell col="17" class="text_right" text="bind:day16" mask="#,###"/>
  403. <Cell col="18" class="text_right" text="bind:day17" mask="#,###"/>
  404. <Cell col="19" class="text_right" text="bind:day18" mask="#,###"/>
  405. <Cell col="20" class="text_right" text="bind:day19" mask="#,###"/>
  406. <Cell col="21" class="text_right" text="bind:day20" mask="#,###"/>
  407. <Cell col="22" class="text_right" text="bind:day21" mask="#,###"/>
  408. <Cell col="23" class="text_right" text="bind:day22" mask="#,###"/>
  409. <Cell col="24" class="text_right" text="bind:day23" mask="#,###"/>
  410. <Cell col="25" class="text_right" text="bind:day24" mask="#,###"/>
  411. <Cell col="26" class="text_right" text="bind:day25" mask="#,###"/>
  412. <Cell col="27" class="text_right" text="bind:day26" mask="#,###"/>
  413. <Cell col="28" class="text_right" text="bind:day27" mask="#,###"/>
  414. <Cell col="29" class="text_right" text="bind:day28" mask="#,###"/>
  415. <Cell col="30" class="text_right" text="bind:day29" mask="#,###"/>
  416. <Cell col="31" class="text_right" text="bind:day30" mask="#,###"/>
  417. <Cell col="32" class="text_right" text="bind:day31" mask="#,###"/>
  418. <Cell col="33" class="text_right" text="bind:daytot" mask="#,###"/>
  419. </Band>
  420. </Format>
  421. </Formats>
  422. </Grid>
  423. <MaskEdit id="ipt_abnvol" taborder="10" mask="999,999,999" position="absolute 1129 98 1194 117" anchor="top right" onkeydown="ipt_abnvol_onkeydown"/>
  424. <Combo id="cbo_custcd" taborder="11" innerdataset="ds_init_cbo_custcd" codecolumn="resncd" datacolumn="resncnts" position="absolute 1025 98 1125 117" anchor="top right" onitemchanged="cbo_custcd_onitemchanged"/>
  425. <MaskEdit id="ipt_abnvol1" taborder="12" position="absolute 500 98 565 117" onkeydown="ipt_abnvol1_onkeydown" type="number" mask="999,999,999"/>
  426. <Combo id="cbo_custcd1" taborder="13" innerdataset="ds_init_cbo_custcd1" codecolumn="resncd" datacolumn="resncnts" position="absolute 395 98 495 117" onitemchanged="cbo_custcd1_onitemchanged"/>
  427. </Layout>
  428. </Layouts>
  429. <Objects>
  430. <Dataset id="ds_init_cbo_ptnocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  431. <ColumnInfo>
  432. <Column id="ptnonm" type="STRING"/>
  433. <Column id="ptnocd" type="STRING"/>
  434. </ColumnInfo>
  435. </Dataset>
  436. <Dataset id="ds_grd_savelist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  437. <ColumnInfo>
  438. <Column id="choi" type="STRING"/>
  439. <Column id="instcd" type="STRING"/>
  440. <Column id="abnflagcd" type="STRING"/>
  441. <Column id="abndg" type="STRING"/>
  442. <Column id="abnseqno" type="STRING"/>
  443. <Column id="wasteflagcd" type="STRING"/>
  444. <Column id="wasteresncd" type="STRING"/>
  445. <Column id="wasteresnnm" type="STRING"/>
  446. <Column id="ptno" type="STRING"/>
  447. <Column id="dispptno" type="STRING"/>
  448. <Column id="spccd" type="STRING"/>
  449. <Column id="spcnm" type="STRING"/>
  450. <Column id="abndd" type="STRING"/>
  451. <Column id="abntm" type="STRING"/>
  452. <Column id="abnid" type="STRING"/>
  453. <Column id="abnnm" type="STRING"/>
  454. <Column id="abncustflagcd" type="STRING"/>
  455. <Column id="abncustresncd" type="STRING"/>
  456. <Column id="abnvol" type="STRING"/>
  457. <Column id="bizflagcd" type="STRING"/>
  458. </ColumnInfo>
  459. </Dataset>
  460. <Dataset id="ds_grd_abnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  461. <ColumnInfo>
  462. <Column id="instcd" type="STRING"/>
  463. <Column id="wasteresnnm" type="STRING"/>
  464. <Column id="day01" type="STRING"/>
  465. <Column id="day02" type="STRING"/>
  466. <Column id="day03" type="STRING"/>
  467. <Column id="day04" type="STRING"/>
  468. <Column id="day05" type="STRING"/>
  469. <Column id="day06" type="STRING"/>
  470. <Column id="day07" type="STRING"/>
  471. <Column id="day08" type="STRING"/>
  472. <Column id="day09" type="STRING"/>
  473. <Column id="day10" type="STRING"/>
  474. <Column id="day11" type="STRING"/>
  475. <Column id="day12" type="STRING"/>
  476. <Column id="day13" type="STRING"/>
  477. <Column id="day14" type="STRING"/>
  478. <Column id="day15" type="STRING"/>
  479. <Column id="day16" type="STRING"/>
  480. <Column id="day17" type="STRING"/>
  481. <Column id="day18" type="STRING"/>
  482. <Column id="day19" type="STRING"/>
  483. <Column id="day20" type="STRING"/>
  484. <Column id="day21" type="STRING"/>
  485. <Column id="day22" type="STRING"/>
  486. <Column id="day23" type="STRING"/>
  487. <Column id="day24" type="STRING"/>
  488. <Column id="day25" type="STRING"/>
  489. <Column id="day26" type="STRING"/>
  490. <Column id="day27" type="STRING"/>
  491. <Column id="day28" type="STRING"/>
  492. <Column id="day29" type="STRING"/>
  493. <Column id="day30" type="STRING"/>
  494. <Column id="day31" type="STRING"/>
  495. <Column id="daytot" type="STRING"/>
  496. </ColumnInfo>
  497. </Dataset>
  498. <Dataset id="ds_init_cbo_custcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  499. <ColumnInfo>
  500. <Column id="resncnts" type="STRING"/>
  501. <Column id="resncd" type="STRING"/>
  502. </ColumnInfo>
  503. </Dataset>
  504. <Dataset id="ds_init_cbo_custcd1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  505. <ColumnInfo>
  506. <Column id="resncnts" type="STRING"/>
  507. <Column id="resncd" type="STRING"/>
  508. </ColumnInfo>
  509. </Dataset>
  510. <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  511. <ColumnInfo>
  512. <Column id="sysdd" type="STRING" size="256"/>
  513. <Column id="systm" type="STRING" size="256"/>
  514. </ColumnInfo>
  515. </Dataset>
  516. <Dataset id="ds_resncdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  517. <ColumnInfo>
  518. <Column id="choi" type="STRING" size="256" sumtext="선택"/>
  519. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  520. <Column id="baseflagcd" type="STRING" size="256" sumtext="구분코드"/>
  521. <Column id="resncd" type="STRING" size="256" sumtext="사유코드"/>
  522. <Column id="resncnts" type="STRING" size="256" sumtext="사유내용"/>
  523. </ColumnInfo>
  524. </Dataset>
  525. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  526. <ColumnInfo>
  527. <Column id="ptnocode" type="STRING" size="256"/>
  528. <Column id="fromyear" type="STRING" size="256"/>
  529. <Column id="fromptno" type="STRING" size="256"/>
  530. <Column id="toyear" type="STRING" size="256"/>
  531. <Column id="toptno" type="STRING" size="256"/>
  532. <Column id="refflagcd" type="STRING" size="256"/>
  533. <Column id="acptfromdd" type="STRING" size="256"/>
  534. <Column id="acpttodd" type="STRING" size="256"/>
  535. <Column id="abnflagcd" type="STRING" size="256"/>
  536. <Column id="abnvol1" type="STRING" size="256"/>
  537. <Column id="abnvol2" type="STRING" size="256"/>
  538. <Column id="custcd1" type="STRING" size="256"/>
  539. <Column id="custcd2" type="STRING" size="256"/>
  540. </ColumnInfo>
  541. <Rows>
  542. <Row>
  543. <Col id="abnflagcd">0</Col>
  544. </Row>
  545. </Rows>
  546. </Dataset>
  547. <Dataset id="ds_wastelist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  548. <ColumnInfo>
  549. <Column id="choi" type="STRING" size="256" sumtext="선택"/>
  550. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  551. <Column id="abnflagcd" type="STRING" size="256" sumtext="폐기구분코드(0:액상, 1:적출물)"/>
  552. <Column id="abndg" type="STRING" size="256" sumtext="폐기차수"/>
  553. <Column id="abnseqno" type="STRING" size="256" sumtext="폐기일련번호"/>
  554. <Column id="wasteflagcd" type="STRING" size="256" sumtext="폐기물구분코드"/>
  555. <Column id="wasteresncd" type="STRING" size="256" sumtext="폐기물코드"/>
  556. <Column id="wasteresnnm" type="STRING" size="256" sumtext="폐기물명"/>
  557. <Column id="ptno" type="STRING" size="256" sumtext="병리번호"/>
  558. <Column id="dispptno" type="STRING" size="256" sumtext="표시병리번호"/>
  559. <Column id="spccd" type="STRING" size="256" sumtext="검체코드"/>
  560. <Column id="spcnm" type="STRING" size="256" sumtext="검체명"/>
  561. <Column id="abndd" type="STRING" size="256" sumtext="폐기일자"/>
  562. <Column id="abntm" type="STRING" size="256" sumtext="폐기시간"/>
  563. <Column id="abnid" type="STRING" size="256" sumtext="폐기자ID"/>
  564. <Column id="abnnm" type="STRING" size="256" sumtext="폐기자명"/>
  565. <Column id="abncustflagcd" type="STRING" size="256" sumtext="폐기업체구분코드"/>
  566. <Column id="abncustresncd" type="STRING" size="256" sumtext="폐기업체코드"/>
  567. <Column id="abnvol" type="STRING" size="256" sumtext="폐기량"/>
  568. <Column id="bizflagcd" type="STRING" size="256"/>
  569. </ColumnInfo>
  570. </Dataset>
  571. <FilteredDataset id="ds_grd_wastelist1" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" binddataset="@ds_wastelist"/>
  572. <FilteredDataset id="ds_grd_wastelist2" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" binddataset="@ds_wastelist"/>
  573. </Objects>
  574. <Bind>
  575. <BindItem id="item0" compid="group2.cbo_ptnocd" propid="value" datasetid="ds_init" columnid="ptnocode"/>
  576. <BindItem id="item1" compid="group2.ipt_fromyear" propid="value" datasetid="ds_init" columnid="fromyear"/>
  577. <BindItem id="item2" compid="group2.ipt_fromptno" propid="value" datasetid="ds_init" columnid="fromptno"/>
  578. <BindItem id="item3" compid="group2.input2" propid="value" datasetid="ds_init" columnid="toyear"/>
  579. <BindItem id="item4" compid="group2.input1" propid="value" datasetid="ds_init" columnid="toptno"/>
  580. <BindItem id="item5" compid="cbo_custcd1" propid="value" datasetid="ds_init" columnid="custcd1"/>
  581. <BindItem id="item6" compid="group2.cmb_refflagcd" propid="value" datasetid="ds_init" columnid="refflagcd"/>
  582. <BindItem id="item7" compid="ipt_abnvol1" propid="value" datasetid="ds_init" columnid="abnvol1"/>
  583. <BindItem id="item8" compid="group2.cmb_abnflagcd" propid="value" datasetid="ds_init" columnid="abnflagcd"/>
  584. <BindItem id="item9" compid="group2.ipt_cnclfromdd" propid="value" datasetid="ds_init" columnid="acptfromdd"/>
  585. <BindItem id="item10" compid="group2.ipt_cncltodd" propid="value" datasetid="ds_init" columnid="acpttodd"/>
  586. <BindItem id="item11" compid="cbo_custcd" propid="value" datasetid="ds_init" columnid="custcd2"/>
  587. <BindItem id="item12" compid="ipt_abnvol" propid="value" datasetid="ds_init" columnid="abnvol2"/>
  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. /******************************************************************
  605. * Argument :
  606. * Description : 초기화
  607. ******************************************************************/
  608. function SMLPP00600_oninit(obj:Form, e:InitEventInfo)
  609. {
  610. frmf_initForm(obj);
  611. }
  612. function SMLPP00600_onload(obj:Form, e:LoadEventInfo)
  613. {
  614. grdf_initGrid(grd_wastelist1);
  615. grdf_initGrid(grd_wastelist2);
  616. grdf_initGrid(grd_abnlist);
  617. grdf_initGrid(grd_savelist);
  618. fExeInitialize();
  619. }
  620. /******************************************************************
  621. * Argument :
  622. * Description : 초기화함수
  623. ******************************************************************/
  624. function fExeInitialize()
  625. {
  626. var sCurDate = "";
  627. //----------------
  628. // 시스템일자 조회
  629. dsf_createDs( "ds_send", [{col : "instcd", vla : sysf_getUserInfo("dutplceinstcd")}]);
  630. var oParam = {};
  631. oParam.id = "TRLPZ00102";
  632. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  633. oParam.method = "reqGetSystemDateTimeInformation";
  634. oParam.inds = "refData=ds_send";
  635. oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
  636. oParam.async = false;
  637. //oParam.callback = "cf_TRLPZ00102";
  638. tranf_submit(oParam);
  639. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  640. ,{col : "refflagcd", val : "0"}]);
  641. var oParam = {};
  642. oParam.id = "TRLPZ00109";
  643. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  644. oParam.method = "reqGetPtNoCdList";
  645. oParam.inds = "refdata=ds_send";
  646. oParam.outds = "ds_init_cbo_ptnocd=rsltlist";
  647. oParam.async = false;
  648. //oParam.callback = "cf_TRLPZ00109";
  649. tranf_submit(oParam);
  650. //--------------------
  651. // 작업구분 목록 조회
  652. dsf_createDsRow( "ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  653. ,{col : "baseflagcd", val : "'61'"}]);
  654. var oParam = {};
  655. oParam.id = "TRLPZ00103";
  656. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  657. oParam.method = "reqGetReasonCodeList";
  658. oParam.inds = "refData=ds_send";
  659. oParam.outds = "ds_resncdlist=refrslt";
  660. oParam.async = false;
  661. //oParam.callback = "cf_TRLPZ00103";
  662. tranf_submit(oParam);
  663. // 전체 노드 삭제
  664. ds_resncdlist.deleteRow(ds_resncdlist.findRow("resncd","ZZZZ"));
  665. sCurDate = ds_data_sysdtinfo.getColumn(0, "sysdd");
  666. dsf_copyDs(ds_init_cbo_custcd, ds_resncdlist);
  667. dsf_copyDs(ds_init_cbo_custcd1, ds_resncdlist);
  668. //------------
  669. // 초기값 설정
  670. ds_init.setColumn(0, "acptfromdd", ds_data_sysdtinfo.getColumn(0, "sysdd")); // 접수일자(From)
  671. ds_init.setColumn(0, "acpttodd", ds_data_sysdtinfo.getColumn(0, "sysdd")); // 접수일자(To)
  672. ds_init.setColumn(0, "abnflagcd", "2"); // 폐기물구분(0:액상,1:적출물)
  673. ds_init.setColumn(0, "refflagcd", "0"); // 조회구분(0:미폐기, 1:폐기)
  674. ds_init.setColumn(0, "ptnocode", "");
  675. ds_init.setColumn(0, "fromyear", sCurDate.substr(2,2));
  676. ds_init.setColumn(0, "toyear", sCurDate.substr(2,2));
  677. ds_init.setColumn(0, "fromptno", "");
  678. ds_init.setColumn(0, "toptno", "");
  679. }
  680. /******************************************************************
  681. * Argument :
  682. * Description : 조회함수
  683. ******************************************************************/
  684. function fGetWasteList()
  685. {
  686. var sTemp = "";
  687. var sFromDD = ds_init.getColumn(0, "acptfromdd");
  688. var sToDD = ds_init.getColumn(0, "acpttodd");
  689. if( !utlf_isNull(ds_init.getColumn(0, "ptnocode")))
  690. {
  691. if( utlf_isNull(ds_init.getColumn(0, "fromyear")))
  692. {
  693. ds_init.setColumn(0, "fromyear", sFromDD.substr(2,2));
  694. }
  695. else
  696. {
  697. sTemp = ds_init.getColumn(0, "fromyear");
  698. ds_init.setColumn(0, "fromyear", sTemp.getLeftPad(2, "0"));
  699. }
  700. if( utlf_isNull(ds_init.getColumn(0, "toyear")))
  701. {
  702. ds_init.setColumn(0, "toyear", sToDD.substr(2,2));
  703. }
  704. else
  705. {
  706. sTemp = ds_init.getColumn(0, "toyear");
  707. ds_init.setColumn(0, "toyear", sTemp.getLeftPad(2, "0"));
  708. }
  709. if ( utlf_isNull(ds_init.getColumn(0, "fromptno")))
  710. {
  711. ds_init.setColumn(0, "fromptno", "000000");
  712. }
  713. else
  714. {
  715. sTemp = ds_init.getColumn(0, "fromptno");
  716. ds_init.setColumn(0, "fromptno", sTemp.getLeftPad(6, "0"));
  717. }
  718. if( utlf_isNull(ds_init.getColumn(0, "toptno")))
  719. {
  720. ds_init.setColumn(0, "toptno", "999999");
  721. }
  722. else
  723. {
  724. sTemp = ds_init.getColumn(0, "toptno");
  725. ds_init.setColumn(0, "toptno", sTemp.getLeftPad(6, "0"));
  726. }
  727. }
  728. sTemp = ds_init.getColumn(0, "ptnocode");
  729. ds_send.clear();
  730. dsf_createDsRow( "ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  731. ,{col : "acptfromdd", val : ds_init.getColumn(0, "acptfromdd")}
  732. ,{col : "acpttodd", val : ds_init.getColumn(0, "acpttodd")}
  733. ,{col : "refflagcd", val : ds_init.getColumn(0, "refflagcd")}
  734. ,{col : "abnflagcd", val : ds_init.getColumn(0, "abnflagcd")}
  735. ,{col : "baseflagcd", val : "'60'"}
  736. ,{col : "ptnocode", val : sTemp.replace("-", "")}
  737. ,{col : "fromyear", val : ds_init.getColumn(0, "fromyear")}
  738. ,{col : "fromptno", val : ds_init.getColumn(0, "fromptno")}
  739. ,{col : "toyear", val : ds_init.getColumn(0, "toyear")}
  740. ,{col : "toptno", val : ds_init.getColumn(0, "toptno")}]);
  741. //-------------------------
  742. var oParam = {};
  743. oParam.id = "TRLPP00601";
  744. oParam.service = "plgyrefmngtapp.AcptSpecRef";
  745. oParam.method = "reqGetWasteResnList";
  746. oParam.inds = "refData=ds_send";
  747. oParam.outds = "ds_wastelist=refrslt";
  748. oParam.async = false;
  749. //oParam.callback = "cf_TRLPP00601";
  750. tranf_submit(oParam);
  751. ds_grd_wastelist1.filter("abnflagcd=='0'");
  752. ds_grd_wastelist2.filter("abnflagcd=='1'");
  753. }
  754. /******************************************************************
  755. * Argument :
  756. * Description : 폐기물 저장 처리 Function
  757. ******************************************************************/
  758. function fExeSave(pBizFlagCd)
  759. {
  760. var sNode = ds_grd_savelist;
  761. var sNode1 = ds_grd_wastelist1;
  762. var sNode2 = ds_grd_wastelist2;
  763. for(var iNo = 0; iNo < ds_grd_wastelist1.rowcount; iNo++)
  764. {
  765. if(ds_grd_wastelist1.getColumn(iNo, "choi") == "1")
  766. {
  767. // 폐기일자 입력여부 검사
  768. if( utlf_isNull(ds_grd_wastelist1.getColumn(iNo, "abndd")))
  769. {
  770. sysf_messageBox("폐기(액상)목록의 폐기일자를 ", "C001");
  771. return false;
  772. }
  773. // 폐기용량 입력여부 검사
  774. if( utlf_isNull(ds_grd_wastelist1.getColumn(iNo, "abnvol")) || Number(ds_grd_wastelist1.getColumn(iNo, "abnvol") == 0))
  775. {
  776. sysf_messageBox("폐기(액상)목록의 폐기용량을 ", "C001");
  777. return false;
  778. }
  779. }
  780. }
  781. for(var iNo = 0; iNo < ds_grd_wastelist2.rowcount; iNo++)
  782. {
  783. if(ds_grd_wastelist2.getColumn(iNo, "choi") == "1")
  784. {
  785. // 폐기일자 입력여부 검사
  786. if( utlf_isNull(ds_grd_wastelist2.getColumn(iNo, "abndd")))
  787. {
  788. sysf_messageBox("폐기(적출물)목록의 폐기일자를 ", "C001");
  789. return false;
  790. }
  791. // 폐기용량 입력여부 검사
  792. if( utlf_isNull(ds_grd_wastelist2.getColumn(iNo, "abnvol")) || Number(ds_grd_wastelist2.getColumn(iNo, "abnvol") == 0))
  793. {
  794. sysf_messageBox("폐기(적출물)목록의 폐기용량을 ", "C001");
  795. return false;
  796. }
  797. }
  798. }
  799. // ds_grd_wastelist1.filter("choi=='1'");
  800. // if(ds_grd_wastelist1.rowcount > 0)
  801. // {
  802. // dsf_copyDs(ds_grd_savelist, ds_grd_wastelist1, "replace");
  803. // }
  804. if(ds_grd_wastelist1.getColumn(ds_grd_wastelist1.rowposition, "choi") == "1")
  805. {
  806. dsf_copyDs(ds_grd_savelist, ds_grd_wastelist1, "replace");
  807. }
  808. ds_grd_wastelist2.filter("choi=='1'");
  809. if(ds_grd_savelist.rowcount > 0)
  810. {
  811. dsf_copyDs(ds_grd_savelist, ds_grd_wastelist2, "after");
  812. }
  813. else
  814. {
  815. //copyNodesetType(sNode, sNode2+"[choi='true']", "replace");
  816. dsf_copyDs(ds_grd_savelist, ds_grd_wastelist2, "replace");
  817. }
  818. if(ds_grd_savelist.rowcount < 0)
  819. {
  820. sysf_messageBox("저장대상 폐기물을 ", "C002");
  821. return false;
  822. }
  823. else
  824. {
  825. for(var iNo = 0; iNo < ds_grd_savelist.rowcount; iNo++)
  826. {
  827. if(ds_grd_savelist.getColumn(iNo, "choi") == 1)
  828. {
  829. ds_grd_savelist.setColumn(iNo, "bizflagcd", pBizFlagCd);
  830. var addRw = ds_grd_savelist.rowposition;
  831. var arrPostion = new Array();
  832. arrPostion[0] = addRw;
  833. grdf_setStatus(grd_savelist, "I", arrPostion);
  834. }
  835. }
  836. }
  837. //return true;
  838. dsf_copyDs(ds_grd_savelist, grdf_getGridUpdateData(grd_savelist),"replace");
  839. var oParam = {};
  840. oParam.id = "TXLPP00601";
  841. oParam.service = "plgyrefmngtapp.AcptSpecRef";
  842. oParam.method = "reqExeWasteList";
  843. oParam.inds = "wastelist=ds_grd_savelist";
  844. oParam.async = false;
  845. //oParam.callback = "cf_TXLPP00601";
  846. tranf_submit(oParam);
  847. ds_wastelist.clearData();
  848. ds_grd_wastelist1.clearData();
  849. ds_grd_wastelist2.clearData();
  850. }
  851. /******************************************************************
  852. * Argument :
  853. * Description : 폐기물 선택 처리 Function
  854. ******************************************************************/
  855. function fExeWasteChoi(pRow, pCol, pBizFlagCd, pAction)
  856. {
  857. if(ds_init.getColumn(0, "refflagcd") == "1")
  858. {
  859. return false;
  860. }
  861. //-------------
  862. switch (pCol)
  863. {
  864. case 1 :
  865. if(ds_grd_wastelist1.getColumn(pRow, "choi") == 1)
  866. {
  867. ds_grd_wastelist1.setColumn(pRow, "abndd", utlf_getCurrentDate());
  868. ds_grd_wastelist1.setColumn(pRow, "abntm", utlf_getCurrentTime());
  869. ds_grd_wastelist1.setColumn(pRow, "abnid", sysf_getUserInfo("userid"));
  870. ds_grd_wastelist1.setColumn(pRow, "abnnm", sysf_getUserInfo("usernm"));
  871. ds_grd_wastelist1.setColumn(pRow, "abnvol", "0");
  872. }
  873. else
  874. {
  875. ds_grd_wastelist1.setColumn(pRow, "abndd", " ");
  876. ds_grd_wastelist1.setColumn(pRow, "abntm", " ");
  877. ds_grd_wastelist1.setColumn(pRow, "abnid", " ");
  878. ds_grd_wastelist1.setColumn(pRow, "abnnm", " ");
  879. ds_grd_wastelist1.setColumn(pRow, "abnvol", "0");
  880. }
  881. break;
  882. case 13 :
  883. if (pAction == "2")
  884. {
  885. ds_grd_wastelist1.setColumn(pRow, "abntm", utlf_getCurrentTime());
  886. ds_grd_wastelist1.setColumn(pRow, "abnid", sysf_getUserInfo("userid"));
  887. ds_grd_wastelist1.setColumn(pRow, "abnnm", sysf_getUserInfo("usernm"));
  888. }
  889. break;
  890. }
  891. }
  892. /******************************************************************
  893. * Argument :
  894. * Description : 조회버튼
  895. ******************************************************************/
  896. function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  897. {
  898. fGetWasteList();
  899. }
  900. /******************************************************************
  901. * Argument :
  902. * Description : 저장
  903. ******************************************************************/
  904. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  905. {
  906. fExeSave("1");
  907. }
  908. /******************************************************************
  909. * Argument :
  910. * Description : 취소
  911. ******************************************************************/
  912. function btn_cncl_onclick(obj:Button, e:ClickEventInfo)
  913. {
  914. fExeSave("2");
  915. }
  916. /******************************************************************
  917. * Argument :
  918. * Description : 폐기물 선택 처리 Function 호출
  919. ******************************************************************/
  920. function grd_wastelist1_oncloseup(obj:Grid, e:GridEditEventInfo)
  921. {
  922. if(e.col == 13)
  923. {
  924. fExeWasteChoi(ds_grd_wastelist1.rowposition, 13, "1", "2");
  925. }
  926. }
  927. function grd_wastelist1_oncellclick(obj:Grid, e:GridClickEventInfo)
  928. {
  929. if(e.col == 1)
  930. {
  931. fExeWasteChoi(ds_grd_wastelist1.rowposition, 1, "1", "1");
  932. }
  933. }
  934. function grd_wastelist1_onheadclick(obj:Grid, e:GridClickEventInfo)
  935. {
  936. if(e.col == 1)
  937. {
  938. fExeListChoi(ds_grd_wastelist1, ds_grd_wastelist1.rowposition, 1, "1");
  939. }
  940. }
  941. function fExeListChoi(grdObj, pRow, pCol, pBizFlagCd)
  942. {
  943. //---------------------------------
  944. if (Number(pRow) > 0)
  945. {
  946. return false;
  947. }
  948. var i = ds_grd_wastelist1.rowposition;
  949. if( utlf_isNull(ds_grd_wastelist1.getColumn(i, "choi")) || ds_grd_wastelist1.getColumn(i, "choi") == 0 )
  950. {
  951. alert("전체선택");
  952. for(var iNo= 0; iNo < ds_grd_wastelist1.rowcount; iNo++)
  953. {
  954. ds_grd_wastelist1.setColumn(iNo, "abndd", utlf_getCurrentDate());
  955. ds_grd_wastelist1.setColumn(iNo, "abntm", utlf_getCurrentTime());
  956. ds_grd_wastelist1.setColumn(iNo, "abnid", sysf_getUserInfo("userid"));
  957. ds_grd_wastelist1.setColumn(iNo, "abnnm", sysf_getUserInfo("usernm"));
  958. ds_grd_wastelist1.setColumn(iNo, "abnvol", "0");
  959. }
  960. }
  961. }
  962. /******************************************************************
  963. * Argument :
  964. * Description : 조회구분 변경 처리 Function
  965. ******************************************************************/
  966. function fExeRefFlagChng()
  967. {
  968. if(ds_init.getColumn(0, "refflagcd") == "0")
  969. {
  970. group2.cap_refdd.text = "접수일자 : ";
  971. btn_cncl.visible = false;
  972. btn_save.visible = true;
  973. }
  974. else
  975. {
  976. group2.cap_refdd.text = "폐기일자 : ";
  977. btn_cncl.visible = true;
  978. btn_save.visible = false;
  979. }
  980. }
  981. function group2_cmb_refflagcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  982. {
  983. fExeRefFlagChng();
  984. }
  985. function group2_ipt_cncltodd_onkeyup(obj:Calendar, e:KeyEventInfo)
  986. {
  987. if(e.keycode == 13)
  988. {
  989. fGetWasteList();
  990. }
  991. }
  992. function grd_wastelist2_oncellclick(obj:Grid, e:GridClickEventInfo)
  993. {
  994. if(e.col == 1)
  995. {
  996. fExeWasteChoi2(ds_grd_wastelist2.rowposition, 1, "1", "1");
  997. }
  998. }
  999. function grd_wastelist2_oncloseup(obj:Grid, e:GridEditEventInfo)
  1000. {
  1001. if(e.col == 13)
  1002. {
  1003. fExeWasteChoi2(ds_grd_wastelist2.rowposition, 13, "1", "2");
  1004. }
  1005. }
  1006. function grd_wastelist2_onheadclick(obj:Grid, e:GridClickEventInfo)
  1007. {
  1008. if(e.col == 1)
  1009. {
  1010. fExeListChoi2(ds_grd_wastelist2, ds_grd_wastelist2.rowposition, 2, "1");
  1011. }
  1012. }
  1013. /******************************************************************
  1014. * Argument :
  1015. * Description : 폐기물 선택 처리 Function
  1016. ******************************************************************/
  1017. function fExeWasteChoi2(pRow, pCol, pBizFlagCd, pAction)
  1018. {
  1019. // 폐기된 자료는 처리하지 않는다.
  1020. if(ds_init.getColumn(0, "refflagcd") == "1")
  1021. {
  1022. return false;
  1023. }
  1024. //-------------
  1025. switch (pCol)
  1026. {
  1027. case 1 :
  1028. if(ds_grd_wastelist2.getColumn(pRow, "choi") == 1)
  1029. {
  1030. ds_grd_wastelist2.setColumn(pRow, "abndd", utlf_getCurrentDate());
  1031. ds_grd_wastelist2.setColumn(pRow, "abntm", utlf_getCurrentTime());
  1032. ds_grd_wastelist2.setColumn(pRow, "abnid", sysf_getUserInfo("userid"));
  1033. ds_grd_wastelist2.setColumn(pRow, "abnnm", sysf_getUserInfo("usernm"));
  1034. ds_grd_wastelist2.setColumn(pRow, "abnvol", "0");
  1035. }
  1036. else
  1037. {
  1038. ds_grd_wastelist2.setColumn(pRow, "abndd", " ");
  1039. ds_grd_wastelist2.setColumn(pRow, "abntm", " ");
  1040. ds_grd_wastelist2.setColumn(pRow, "abnid", " ");
  1041. ds_grd_wastelist2.setColumn(pRow, "abnnm", " ");
  1042. ds_grd_wastelist2.setColumn(pRow, "abnvol", "0");
  1043. }
  1044. break;
  1045. case 13 :
  1046. if (pAction == "2")
  1047. {
  1048. ds_grd_wastelist2.setColumn(pRow, "abntm", utlf_getCurrentTime());
  1049. ds_grd_wastelist2.setColumn(pRow, "abnid", sysf_getUserInfo("userid"));
  1050. ds_grd_wastelist2.setColumn(pRow, "abnnm", sysf_getUserInfo("usernm"));
  1051. }
  1052. break;
  1053. }
  1054. }
  1055. function fExeListChoi2(grdObj, pRow, pCol, pBizFlagCd)
  1056. {
  1057. if (Number(pRow) > 0)
  1058. {
  1059. return false;
  1060. }
  1061. var i = ds_grd_wastelist2.rowposition;
  1062. if( utlf_isNull(ds_grd_wastelist2.getColumn(i, "choi")) || ds_grd_wastelist2.getColumn(i, "choi") == 0 )
  1063. {
  1064. for(var iNo= 0; iNo < ds_grd_wastelist2.rowcount; iNo++)
  1065. {
  1066. ds_grd_wastelist2.setColumn(iNo, "abndd", utlf_getCurrentDate());
  1067. ds_grd_wastelist2.setColumn(iNo, "abntm", utlf_getCurrentTime());
  1068. ds_grd_wastelist2.setColumn(iNo, "abnid", sysf_getUserInfo("userid"));
  1069. ds_grd_wastelist2.setColumn(iNo, "abnnm", sysf_getUserInfo("usernm"));
  1070. ds_grd_wastelist2.setColumn(iNo, "abnvol", "0");
  1071. }
  1072. }
  1073. }
  1074. /******************************************************************
  1075. * Argument :
  1076. * Description : 검체폐기대장 Excel저장 버튼
  1077. ******************************************************************/
  1078. function button13_onclick(obj:Button, e:ClickEventInfo)
  1079. {
  1080. fExeSaveToExcel();
  1081. }
  1082. /******************************************************************
  1083. * Argument :
  1084. * Description : 검체폐기대장 Excel저장 처리 Function
  1085. ******************************************************************/
  1086. function fExeSaveToExcel()
  1087. {
  1088. grdf_exportExcel(grd_abnlist, "검체폐기대장_액상");
  1089. grdf_exportExcel(grd_wastelist2, "검체폐기대장_적출물");
  1090. }
  1091. //폐기(액상)목록 폐기업체
  1092. function cbo_custcd1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1093. {
  1094. var sNode = ds_grd_wastelist1;
  1095. for(var iNo = 0; iNo < sNode.rowcount; iNo++)
  1096. {
  1097. if(sNode.getColumn(iNo, "choi") == "1")
  1098. {
  1099. sNode.setColumn(0, "abncustflagcd", ds_resncdlist.getColumn(0, "baseflagcd"));
  1100. sNode.setColumn(iNo, "abncustresncd", ds_init.getColumn(0, "custcd1"));
  1101. }
  1102. }
  1103. }
  1104. //폐기(액상)목록 용량 입력
  1105. function ipt_abnvol1_onkeydown(obj:MaskEdit, e:KeyEventInfo)
  1106. {
  1107. if(e.keycode == 13)
  1108. {
  1109. var sNode = ds_grd_wastelist1;
  1110. var sVol = ipt_abnvol1.value;
  1111. ds_init.setColumn(0, "abnvol1", sVol);
  1112. for(var iNo = 0; iNo <= sNode.rowcount; iNo++)
  1113. {
  1114. if(sNode.getColumn(iNo, "choi") == "1")
  1115. {
  1116. sNode.setColumn(iNo, "abnvol", sVol);
  1117. }
  1118. }
  1119. }
  1120. }
  1121. //폐기(적출물)목록 폐기업체 입력
  1122. function cbo_custcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1123. {
  1124. var sNode = ds_grd_wastelist2;
  1125. for(var iNo = 0; iNo < sNode.rowcount; iNo++)
  1126. {
  1127. if(ds_grd_wastelist2.getColumn(iNo, "choi") == "1")
  1128. {
  1129. sNode.setColumn(iNo, "abncustflagcd", ds_resncdlist.getColumn(0, "baseflagcd"));
  1130. sNode.setColumn(iNo, "abncustresncd", ds_init.getColumn(0, "custcd2"));
  1131. }
  1132. }
  1133. }
  1134. //폐기(적출물)목록 용량 입력
  1135. function ipt_abnvol_onkeydown(obj:MaskEdit, e:KeyEventInfo)
  1136. {
  1137. if(e.keycode == 13)
  1138. {
  1139. var sNode = ds_grd_wastelist2;
  1140. var sVol = ipt_abnvol.value;
  1141. ds_init.setColumn(0, "abnvol2", sVol);
  1142. for(var iNo = 0; iNo < sNode.rowcount; iNo++)
  1143. {
  1144. if(sNode.getColumn(iNo, "choi") == "1")
  1145. {
  1146. sNode.setColumn(iNo, "abnvol", sVol);
  1147. }
  1148. }
  1149. }
  1150. }
  1151. ]]></Script>
  1152. </Form>
  1153. </FDL>