SMLPP00600_검체폐기대장.xrw 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPP00600_검체폐기대장.xrw
  4. * 설 명 : 검체폐기대장 화면
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2007.11.21
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>검체폐기대장</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <wasteinfo>
  20. <wastelist>
  21. <choi/>
  22. <instcd/>
  23. <abnflagcd/>
  24. <abndg/>
  25. <abnseqno/>
  26. <wasteflagcd/>
  27. <wasteresncd/>
  28. <wasteresnnm/>
  29. <ptno/>
  30. <dispptno/>
  31. <spccd/>
  32. <spcnm/>
  33. <abndd/>
  34. <abntm/>
  35. <abnid/>
  36. <abnnm/>
  37. <abncustflagcd/>
  38. <abncustresncd/>
  39. <abnvol/>
  40. </wastelist>
  41. </wasteinfo>
  42. <abninfo1>
  43. <wastelist>
  44. <choi/>
  45. <instcd/>
  46. <abnflagcd/>
  47. <abndg/>
  48. <abnseqno/>
  49. <wasteflagcd/>
  50. <wasteresncd/>
  51. <wasteresnnm/>
  52. <ptno/>
  53. <dispptno/>
  54. <spccd/>
  55. <spcnm/>
  56. <abndd/>
  57. <abntm/>
  58. <abnid/>
  59. <abnnm/>
  60. <abncustflagcd/>
  61. <abncustresncd/>
  62. <abnvol/>
  63. </wastelist>
  64. </abninfo1>
  65. <abninfo2>
  66. <wastelist>
  67. <choi/>
  68. <instcd/>
  69. <abnflagcd/>
  70. <abndg/>
  71. <abnseqno/>
  72. <wasteflagcd/>
  73. <wasteresncd/>
  74. <wasteresnnm/>
  75. <ptno/>
  76. <dispptno/>
  77. <spccd/>
  78. <spcnm/>
  79. <abndd/>
  80. <abntm/>
  81. <abnid/>
  82. <abnnm/>
  83. <abncustflagcd/>
  84. <abncustresncd/>
  85. <abnvol/>
  86. </wastelist>
  87. </abninfo2>
  88. <saveinfo>
  89. <wastelist>
  90. <choi/>
  91. <instcd/>
  92. <abnflagcd/>
  93. <abndg/>
  94. <abnseqno/>
  95. <wasteflagcd/>
  96. <wasteresncd/>
  97. <wasteresnnm/>
  98. <ptno/>
  99. <dispptno/>
  100. <spccd/>
  101. <spcnm/>
  102. <abndd/>
  103. <abntm/>
  104. <abnid/>
  105. <abnnm/>
  106. <abncustflagcd/>
  107. <abncustresncd/>
  108. <abnvol/>
  109. <bizflagcd/>
  110. </wastelist>
  111. </saveinfo>
  112. <abninfo>
  113. <abnlist>
  114. <instcd/>
  115. <wasteresnnm/>
  116. <day01/>
  117. <day02/>
  118. <day03/>
  119. <day04/>
  120. <day05/>
  121. <day06/>
  122. <day07/>
  123. <day08/>
  124. <day09/>
  125. <day10/>
  126. <day11/>
  127. <day12/>
  128. <day13/>
  129. <day14/>
  130. <day15/>
  131. <day16/>
  132. <day17/>
  133. <day18/>
  134. <day19/>
  135. <day20/>
  136. <day21/>
  137. <day22/>
  138. <day23/>
  139. <day24/>
  140. <day25/>
  141. <day26/>
  142. <day27/>
  143. <day28/>
  144. <day29/>
  145. <day30/>
  146. <day31/>
  147. <daytot/>
  148. </abnlist>
  149. </abninfo>
  150. </main>
  151. <send/>
  152. <init>
  153. <ptnocode/>
  154. <fromyear/>
  155. <fromptno/>
  156. <toyear/>
  157. <toptno/>
  158. <refflagcd/>
  159. <acptfromdd/>
  160. <acpttodd/>
  161. <abnflagcd>0</abnflagcd>
  162. <sysdt>
  163. <sysdtinfo>
  164. <sysdd/>
  165. <systm/>
  166. </sysdtinfo>
  167. </sysdt>
  168. <ptnocd>
  169. <ptnocdlist>
  170. <instcd/>
  171. <ptnocd/>
  172. <ptnonm/>
  173. </ptnocdlist>
  174. </ptnocd>
  175. <resncd>
  176. <resncdist>
  177. <instcd/>
  178. <baseflagcd/>
  179. <resncd/>
  180. <resncnts/>
  181. </resncdist>
  182. </resncd>
  183. <abnvol1/>
  184. <abnvol2/>
  185. <custcd1/>
  186. <custcd2/>
  187. </init>
  188. <hidden>
  189. </hidden>
  190. <message/>
  191. </root>
  192. </instance>
  193. <bind id="bind1" ref="/root/main/abninfo1/wastelist/choi" readonly="../choi/@readonly = 'true'"/>
  194. <bind id="bind2" ref="/root/main/abninfo2/wastelist/abndd" readonly="../abndd/@readonly = 'true'"/>
  195. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  196. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  197. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  198. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  199. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  200. <script type="javascript" ev:event="xforms-ready">
  201. <![CDATA[
  202. fExeInitialize();
  203. ]]>
  204. </script>
  205. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  206. <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
  207. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  208. <submission id="TRLPP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/wasteinfo/wastelist"/>
  209. <submission id="TXLPP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
  210. <submission id="TRLPP00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/abninfo/abnlist"/>
  211. </model>
  212. <script type="javascript">
  213. <![CDATA[
  214. /* @group : 검체폐기대장 화면
  215. * @ver : 2007.11.21 (CMCDEV-0001)
  216. * @by : 유동철(ACK)
  217. * @-----------------------------------
  218. * @type : function
  219. * @access : public
  220. * @desc : 화면초기화 함수
  221. */
  222. function fExeInitialize() {
  223. var sCurDate = "";
  224. //----------------------------------------------------
  225. model.removeNodeset("/root/main/wasteinfo/wastelist");
  226. model.removeNodeset("/root/main/abninfo1/wastelist");
  227. model.removeNodeset("/root/main/abninfo2/wastelist");
  228. //----------------
  229. // 시스템일자 조회
  230. model.removeNodeset("/root/send");
  231. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  232. submit("TRLPZ00102", false);
  233. submit("TRLPZ00109", false);
  234. //--------------------
  235. // 작업구분 목록 조회
  236. model.makeValue("/root/send/baseflagcd", "'61'");
  237. submit("TRLPZ00103");
  238. //---------------
  239. // 전체 노드 삭제
  240. model.removeNodeset("/root/init/resncd/resncdlist[resncd='ZZZZ']");
  241. //------------------------------------------------------------
  242. sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  243. //------------
  244. // 초기값 설정
  245. model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(From)
  246. model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(To)
  247. model.makeValue("/root/init/abnflagcd", "2"); // 폐기물구분(0:액상,1:적출물)
  248. model.makeValue("/root/init/refflagcd", "0"); // 조회구분(0:미폐기, 1:폐기)
  249. model.makeValue("/root/init/ptnocode", "");
  250. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
  251. model.makeValue("/root/init/toyear", sCurDate.substr(2,2));
  252. model.makeValue("/root/init/fromptno", "");
  253. model.makeValue("/root/init/toptno", "");
  254. //-------------------------------------------
  255. grd_wastelist1.fixedcellcheckbox(0,1) = true;
  256. grd_wastelist2.fixedcellcheckbox(0,1) = true;
  257. //-------------
  258. model.refresh();
  259. }
  260. /* @group : 검체폐기대장 화면
  261. * @ver : 2007.11.21 (CMCDEV-0001)
  262. * @by : 유동철(ACK)
  263. * @-----------------------------------
  264. * @type : function
  265. * @access : public
  266. * @desc : 취소대상 접수자료 조회 처리 함수
  267. */
  268. function fGetWasteList() {
  269. var sTemp = "";
  270. var sFromDD = model.getValue("/root/init/acptfromdd");
  271. var sToDD = model.getValue("/root/init/acpttodd");
  272. //------------------------------------------------
  273. if (model.getValue("/root/init/ptnocode") != "") {
  274. //------------------------------------------------
  275. if (model.getValue("/root/init/fromyear") == "") {
  276. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  277. } else {
  278. sTemp = model.getValue("/root/init/fromyear");
  279. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  280. }
  281. //----------------------------------------------
  282. if (model.getValue("/root/init/toyear") == "") {
  283. model.makeValue("/root/init/toyear", sToDD.substr(2,2));
  284. } else {
  285. sTemp = model.getValue("/root/init/toyear");
  286. model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
  287. }
  288. //------------------------------------------------
  289. if (model.getValue("/root/init/fromptno") == "") {
  290. model.makeValue("/root/init/fromptno", "000000");
  291. } else {
  292. sTemp = model.getValue("/root/init/fromptno");
  293. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  294. }
  295. //----------------------------------------------
  296. if (model.getValue("/root/init/toptno") == "") {
  297. model.makeValue("/root/init/toptno", "999999");
  298. } else {
  299. sTemp = model.getValue("/root/init/toptno");
  300. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  301. }
  302. }
  303. //--------------------------------------------
  304. sTemp = model.getValue("/root/init/ptnocode");
  305. //--------------------------------
  306. model.removeNodeset("/root/send");
  307. model.removeNodeset("/root/main/wasteinfo/wastelist");
  308. model.removeNodeset("/root/main/abninfo1/wastelist");
  309. model.removeNodeset("/root/main/abninfo2/wastelist");
  310. //----------------------------------------------------------------------
  311. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  312. model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/acptfromdd"));
  313. model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd"));
  314. model.makeValue("/root/send/refflagcd", model.getValue("/root/init/refflagcd"));
  315. model.makeValue("/root/send/abnflagcd", model.getValue("/root/init/abnflagcd"));
  316. model.makeValue("/root/send/baseflagcd", "'60'");
  317. model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  318. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  319. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  320. model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
  321. model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  322. //-------------------------
  323. if (submit("TRLPP00601")) {
  324. //-------------------------------------------------------------------------
  325. if (getNodesetCount("/root/main/wasteinfo/wastelist[abnflagcd='0']") > 0) {
  326. model.makeNode("/root/main/abninfo1/wastelist");
  327. }
  328. //-------------------------------------------------------------------------
  329. if (getNodesetCount("/root/main/wasteinfo/wastelist[abnflagcd='1']") > 0) {
  330. model.makeNode("/root/main/abninfo2/wastelist");
  331. }
  332. //------------------------------------------------------------------------------------------------
  333. copyNodesetType("/root/main/abninfo1/wastelist", "/root/main/wasteinfo/wastelist[abnflagcd='0']");
  334. copyNodesetType("/root/main/abninfo2/wastelist", "/root/main/wasteinfo/wastelist[abnflagcd='1']");
  335. //----------------------------------------------------
  336. // 폐기된 자료는 폐기일자/업체/용량을 수정 불가로 처리
  337. if (model.getValue("/root/init/refflagcd") == "1") {
  338. grd_wastelist1.colDisabled(grd_wastelist1.colRef("abndd")) = true;
  339. grd_wastelist1.colDisabled(grd_wastelist1.colRef("abncustresncd")) = true;
  340. grd_wastelist1.colDisabled(grd_wastelist1.colRef("abnvol")) = true;
  341. grd_wastelist2.colDisabled(grd_wastelist2.colRef("abndd")) = true;
  342. grd_wastelist2.colDisabled(grd_wastelist2.colRef("abncustresncd")) = true;
  343. grd_wastelist2.colDisabled(grd_wastelist2.colRef("abnvol")) = true;
  344. } else {
  345. grd_wastelist1.colDisabled(grd_wastelist1.colRef("abndd")) = false;
  346. grd_wastelist1.colDisabled(grd_wastelist1.colRef("abncustresncd")) = false;
  347. grd_wastelist1.colDisabled(grd_wastelist1.colRef("abnvol")) = false;
  348. grd_wastelist2.colDisabled(grd_wastelist2.colRef("abndd")) = false;
  349. grd_wastelist2.colDisabled(grd_wastelist2.colRef("abncustresncd")) = false;
  350. grd_wastelist2.colDisabled(grd_wastelist2.colRef("abnvol")) = false;
  351. }
  352. }
  353. //--------------
  354. model.refresh();
  355. }
  356. /* @group : 검체폐기대장
  357. * @ver : 2007.11.21 (CMCDEV-0001)
  358. * @by : 유동철(ACK)
  359. * @-----------------------------------
  360. * @type : function
  361. * @access : public
  362. * @desc : 검체폐기대장 Excel저장 처리 Function
  363. */
  364. function fExeSaveToExcel() {
  365. // var sTemp = "";
  366. // var sFromDD = model.getValue("/root/init/acptfromdd");
  367. // var sToDD = model.getValue("/root/init/acpttodd");
  368. //
  369. // //------------------------------------------------
  370. // if (model.getValue("/root/init/ptnocode") != "") {
  371. //
  372. // //------------------------------------------------
  373. // if (model.getValue("/root/init/fromyear") == "") {
  374. // model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  375. // } else {
  376. // sTemp = model.getValue("/root/init/fromyear");
  377. // model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  378. // }
  379. //
  380. // //----------------------------------------------
  381. // if (model.getValue("/root/init/toyear") == "") {
  382. // model.makeValue("/root/init/toyear", sToDD.substr(2,2));
  383. // } else {
  384. // sTemp = model.getValue("/root/init/toyear");
  385. // model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
  386. // }
  387. //
  388. // //------------------------------------------------
  389. // if (model.getValue("/root/init/fromptno") == "") {
  390. // model.makeValue("/root/init/fromptno", "000000");
  391. // } else {
  392. // sTemp = model.getValue("/root/init/fromptno");
  393. // model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  394. // }
  395. //
  396. // //----------------------------------------------
  397. // if (model.getValue("/root/init/toptno") == "") {
  398. // model.makeValue("/root/init/toptno", "999999");
  399. // } else {
  400. // sTemp = model.getValue("/root/init/toptno");
  401. // model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  402. // }
  403. // }
  404. //
  405. // //--------------------------------------------
  406. // sTemp = model.getValue("/root/init/ptnocode");
  407. //
  408. // //--------------------------------
  409. // model.removeNodeset("/root/send");
  410. // model.removeNodeset("/root/main/abninfo/abnlist");
  411. //
  412. // //----------------------------------------------------------------------
  413. // model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  414. // model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/acptfromdd"));
  415. // model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd"));
  416. // model.makeValue("/root/send/refflagcd", model.getValue("/root/init/refflagcd"));
  417. // model.makeValue("/root/send/abnflagcd", model.getValue("/root/init/abnflagcd"));
  418. // model.makeValue("/root/send/baseflagcd", "'60'");
  419. // model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  420. // model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  421. // model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  422. // model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
  423. // model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  424. //
  425. // //-------------------
  426. // submit("TRLPP00602");
  427. //-----------------------------------------------------------------------------------------
  428. // grd_abnlist.saveExcel("C:\\SMLPP00600_검체폐기대장_액상.xls", "폐기물(액상)", false, true);
  429. // grd_wastelist2.saveExcel("C:\\SMLPP00600_검체폐기대장_적출물.xls", "폐기물(적출물)", false, true);
  430. // messageBox("C:\\SMLPP00600_검체폐기대장.xls 파일이 생성이 ", "I002");
  431. lpzfExeSaveToExcel(grd_abnlist, "검체폐기대장_액상");
  432. lpzfExeSaveToExcel(grd_wastelist2, "검체폐기대장_적출물");
  433. }
  434. /* @group : 검체폐기대장
  435. * @ver : 2007.11.21 (CMCDEV-0001)
  436. * @by : 유동철(ACK)
  437. * @-----------------------------------
  438. * @type : function
  439. * @access : public
  440. * @desc : 조회구분 변경 처리 Function
  441. */
  442. function fExeRefFlagChng() {
  443. //--------------------------------------------------
  444. if (model.getValue("/root/init/refflagcd") == "0") {
  445. cap_refdd.text = "접수일자 : ";
  446. btn_cncl.visible = false;
  447. btn_save.visible = true;
  448. } else {
  449. cap_refdd.text = "폐기일자 : ";
  450. btn_cncl.visible = true;
  451. btn_save.visible = false;
  452. }
  453. //------------------
  454. cap_refdd.refresh();
  455. }
  456. /* @group : 검체폐기대장
  457. * @ver : 2007.11.20 (CMCDEV-0001)
  458. * @by : 유동철(ACK)
  459. * @-----------------------------------
  460. * @type : function
  461. * @access : public
  462. * @desc : 폐기물 저장 처리 Function
  463. */
  464. function fExeSave(pBizFlagCd) {
  465. var sNode = "/root/main/saveinfo/wastelist";
  466. var sNode1 = "/root/main/abninfo1/wastelist";
  467. var sNode2 = "/root/main/abninfo2/wastelist";
  468. //---------------------------
  469. grd_wastelist1.clearStatus();
  470. for (var iNo=1; iNo <= getNodesetCount(sNode1); iNo++) {
  471. //-----------------------------------------------------
  472. if (model.getValue(sNode1+"["+iNo+"]/choi") == "true") {
  473. //-----------------------
  474. // 폐기일자 입력여부 검사
  475. if (model.getValue(sNode1+"["+iNo+"]/abndd") == "") {
  476. messageBox("폐기(액상)목록의 폐기일자를 ", "C001");
  477. return false;
  478. }
  479. //-----------------------
  480. // 폐기용량 입력여부 검사
  481. if (model.getValue(sNode1+"["+iNo+"]/abnvol") == "" ||
  482. Number(model.getValue(sNode1+"["+iNo+"]/abnvol")) == 0) {
  483. messageBox("폐기(액상)목록의 폐기용량을 ", "C001");
  484. return false;
  485. }
  486. }
  487. }
  488. //---------------------------
  489. grd_wastelist2.clearStatus();
  490. for (var iNo=1; iNo <= getNodesetCount(sNode2); iNo++) {
  491. //-----------------------------------------------------
  492. if (model.getValue(sNode2+"["+iNo+"]/choi") == "true") {
  493. //-----------------------
  494. // 폐기일자 입력여부 검사
  495. if (model.getValue(sNode2+"["+iNo+"]/abndd") == "") {
  496. messageBox("폐기(적출물)목록의 폐기일자를 ", "C001");
  497. return false;
  498. }
  499. //-----------------------
  500. // 폐기용량 입력여부 검사
  501. if (model.getValue(sNode2+"["+iNo+"]/abnvol") == "" ||
  502. Number(model.getValue(sNode2+"["+iNo+"]/abnvol")) == 0) {
  503. messageBox("폐기(적출물)목록의 폐기용량을 ", "C001");
  504. return false;
  505. }
  506. }
  507. }
  508. //-------------------------
  509. model.removeNodeset(sNode);
  510. //------------------------------------------------
  511. if (getNodesetCount(sNode1+"[choi='true']") > 0) {
  512. model.makeNode(sNode);
  513. copyNodesetType(sNode, sNode1+"[choi='true']", "replace");
  514. }
  515. //-------------------------------
  516. if (getNodesetCount(sNode) > 0) {
  517. copyNodesetType(sNode, sNode2+"[choi='true']", "after");
  518. } else {
  519. model.makeNode(sNode);
  520. copyNodesetType(sNode, sNode2+"[choi='true']", "replace");
  521. }
  522. //-------------------------
  523. grd_savelist.clearStatus();
  524. //--------------------------------
  525. if (getNodesetCount(sNode) <= 0) {
  526. messageBox("저장대상 폐기물을 ", "C002");
  527. return false;
  528. } else {
  529. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  530. if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
  531. model.makeValue(sNode+"["+iNo+"]/bizflagcd", pBizFlagCd);
  532. grd_savelist.addStatus(iNo, "insert");
  533. }
  534. }
  535. }
  536. //---------------------
  537. grd_savelist.refresh();
  538. //--------------------------------
  539. model.removeNodeset("/root/send");
  540. model.makeValue("/root/send/wastelist", grd_savelist.getUpdateDataAll("i"));
  541. if (submit("TXLPP00601")) {
  542. model.removeNodeset(sNode1);
  543. model.removeNodeset(sNode2);
  544. model.removeNodeset("/root/main/wasteinfo/wastelist");
  545. }
  546. //--------------
  547. model.refresh();
  548. }
  549. /* @group : 검체폐기대장
  550. * @ver : 2007.11.22 (CMCDEV-0001)
  551. * @by : 유동철(ACK)
  552. * @-----------------------------------
  553. * @type : function
  554. * @access : public
  555. * @desc : 폐기물 그리드 선택 처리 Function
  556. */
  557. function fExeWasteClick(grdObj, pBizFlagCd, pAction) {
  558. if(grdObj.row > 0 && grdObj.isCell(event.target) && grdObj.row >= grdObj.fixedRows) {
  559. fExeWasteChoi(grdObj.row, grdObj.col, pBizFlagCd, pAction);
  560. }
  561. }
  562. /* @group : 검체폐기대장
  563. * @ver : 2007.11.22 (CMCDEV-0001)
  564. * @by : 유동철(ACK)
  565. * @-----------------------------------
  566. * @type : function
  567. * @access : public
  568. * @desc : 폐기물 선택 처리 Function
  569. */
  570. function fExeWasteChoi(pRow, pCol, pBizFlagCd, pAction) {
  571. var sNode = "/root/main/abninfo"+pBizFlagCd+"/wastelist";
  572. //-------------------------------
  573. // 폐기된 자료는 처리하지 않는다.
  574. if (model.getValue("/root/init/refflagcd") == "1") return false;
  575. //-------------
  576. switch (pCol) {
  577. case 1 :
  578. if (model.getValue(sNode+"["+pRow+"]/choi") == "true") {
  579. model.makeValue(sNode+"["+pRow+"]/abndd", getCurrentDate());
  580. model.makeValue(sNode+"["+pRow+"]/abntm", getCurrentTime());
  581. model.makeValue(sNode+"["+pRow+"]/abnid", getUserInfo("userid"));
  582. model.makeValue(sNode+"["+pRow+"]/abnnm", getUserInfo("usernm"));
  583. model.makeValue(sNode+"["+pRow+"]/abnvol", "0");
  584. } else {
  585. model.makeValue(sNode+"["+pRow+"]/abndd", " ");
  586. model.makeValue(sNode+"["+pRow+"]/abntm", " ");
  587. model.makeValue(sNode+"["+pRow+"]/abnid", " ");
  588. model.makeValue(sNode+"["+pRow+"]/abnnm", " ");
  589. model.makeValue(sNode+"["+pRow+"]/abnvol", "0");
  590. }
  591. break;
  592. case 13 :
  593. if (pAction == "2") {
  594. model.makeValue(sNode+"["+pRow+"]/abntm", getCurrentTime());
  595. model.makeValue(sNode+"["+pRow+"]/abnid", getUserInfo("userid"));
  596. model.makeValue(sNode+"["+pRow+"]/abnnm", getUserInfo("usernm"));
  597. }
  598. break;
  599. }
  600. }
  601. /* @group : 검체폐기대장
  602. * @ver : 2007.11.22 (CMCDEV-0001)
  603. * @by : 유동철(ACK)
  604. * @-----------------------------------
  605. * @type : function
  606. * @access : public
  607. * @desc : 폐기물 목록 선택 처리 Function
  608. */
  609. function fExeListChoi(grdObj, pRow, pCol, pBizFlagCd) {
  610. var sNode = "/root/main/abninfo"+pBizFlagCd+"/wastelist";
  611. //---------------------------------
  612. if (Number(pRow) > 0) return false;
  613. //-----------------------------------------------------
  614. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  615. model.makeValue(sNode+"["+iNo+"]/abndd", getCurrentDate());
  616. model.makeValue(sNode+"["+iNo+"]/abntm", getCurrentTime());
  617. model.makeValue(sNode+"["+iNo+"]/abnid", getUserInfo("userid"));
  618. model.makeValue(sNode+"["+iNo+"]/abnnm", getUserInfo("usernm"));
  619. model.makeValue(sNode+"["+iNo+"]/abnvol", "0");
  620. }
  621. }
  622. ]]>
  623. </script>
  624. </xhtml:head>
  625. <xhtml:body>
  626. <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
  627. <line id="line10" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  628. <button id="button13" class="btn6_letter5" navindex="15" style="left:5px; top:3px; width:92px; height:22px; ">
  629. <caption>EXCEL저장</caption>
  630. <script type="javascript" ev:event="DOMActivate">
  631. <![CDATA[
  632. fExeSaveToExcel();
  633. ]]>
  634. </script>
  635. </button>
  636. <button id="btn_save" class="btn4_letter2" navindex="14" style="left:1138px; top:3px; width:56px; height:22px; ">
  637. <caption>저장</caption>
  638. <script type="javascript" ev:event="DOMActivate">
  639. <![CDATA[
  640. fExeSave("1");
  641. ]]>
  642. </script>
  643. </button>
  644. <button id="btn_cncl" class="btn4_letter2" navindex="13" visibility="hidden" style="left:1080px; top:3px; width:56px; height:22px; ">
  645. <caption>취소</caption>
  646. <script type="javascript" ev:event="DOMActivate">
  647. <![CDATA[
  648. fExeSave("2");
  649. ]]>
  650. </script>
  651. </button>
  652. </group>
  653. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  654. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:220px; height:14px; ">폐기물현황</caption>
  655. </group>
  656. <group id="grp_biz" style="left:0; top:40; width:1195; height:744; ">
  657. <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:146px; height:14px; ">폐기(액상)목록</caption>
  658. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:565px; y2:70px; "/>
  659. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  660. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  661. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  662. <caption id="caption5" class="search_no_b" style="left:979px; top:8px; width:12px; height:17px; ">~</caption>
  663. <button id="btn_sea" class="btn1_letter2" navindex="10" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  664. <caption>조회</caption>
  665. <script type="javascript" ev:event="DOMActivate">
  666. <![CDATA[
  667. fGetWasteList();
  668. ]]>
  669. </script>
  670. </button>
  671. <input id="ipt_cnclfromdd" ref="/root/init/acptfromdd" class="input_s_essential" navindex="8" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:876px; top:8px; width:100px; height:19px; "/>
  672. <input id="ipt_cncltodd" ref="/root/init/acpttodd" class="input_s_essential" navindex="9" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:995px; top:8px; width:100px; height:19px; "/>
  673. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="1" appearance="minimal" editmode="search" style="left:109px; top:8px; width:111px; height:19px; ">
  674. <choices>
  675. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  676. <label ref="ptnonm"/>
  677. <value ref="ptnocd"/>
  678. </itemset>
  679. </choices>
  680. </select1>
  681. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="3" maxlength="6" style="left:253px; top:8px; width:50px; height:19px; "/>
  682. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
  683. <caption id="caption7" class="search_no_b" style="left:306px; top:8px; width:12px; height:17px; ">~</caption>
  684. <input id="input1" ref="/root/init/toptno" class="text_center" navindex="5" maxlength="6" style="left:351px; top:8px; width:50px; height:19px; "/>
  685. <input id="input2" ref="/root/init/toyear" class="text_center" navindex="4" maxlength="2" style="left:321px; top:8px; width:27px; height:19px; "/>
  686. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="2" maxlength="2" style="left:223px; top:8px; width:27px; height:19px; "/>
  687. <caption id="caption8" class="search_name" style="left:600px; top:9px; width:99px; height:17px; ">폐기물구분 :</caption>
  688. <caption id="cap_refdd" class="search_name" style="left:787px; top:9px; width:93px; height:17px; ">접수일자 :</caption>
  689. <caption id="caption2" class="search_name" style="left:419px; top:9px; width:99px; height:17px; ">조회구분 :</caption>
  690. <select1 id="cmb_refflagcd" ref="/root/init/refflagcd" navindex="6" appearance="minimal" style="left:510px; top:8px; width:69px; height:19px; ">
  691. <choices>
  692. <item>
  693. <label>미폐기</label>
  694. <value>0</value>
  695. </item>
  696. <item>
  697. <label>폐기</label>
  698. <value>1</value>
  699. </item>
  700. </choices>
  701. <script type="javascript" ev:event="xforms-value-changed">
  702. <![CDATA[
  703. fExeRefFlagChng();
  704. ]]>
  705. </script>
  706. </select1>
  707. <select1 id="cmb_abnflagcd" ref="/root/init/abnflagcd" navindex="7" appearance="minimal" style="left:701px; top:8px; width:69px; height:19px; ">
  708. <choices>
  709. <item>
  710. <label>액상</label>
  711. <value>0</value>
  712. </item>
  713. <item>
  714. <label>적출물</label>
  715. <value>1</value>
  716. </item>
  717. <item>
  718. <label>전체</label>
  719. <value>2</value>
  720. </item>
  721. </choices>
  722. </select1>
  723. </group>
  724. <datagrid id="grd_wastelist1" nodeset="/root/main/abninfo1/wastelist" class="datagrid2" caption="선&#xA;택^기관코드^abnflagcd^abndg^abnseqno^wasteflagcd^wasteresncd^폐기물^ptno^dispptno^spccd^spcnm^폐기일자^폐기&#xA;시간^abnid^인계자^abncustflagcd^폐기업체^용량(ℓ)" colsep="^" colwidth="40, 0, 0, 0, 0, 0, 0, 130, 0, 0, 0, 0, 84, 50, 0, 70, 0, 100, 52" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="16" style="left:0px; top:75px; width:565px; height:668px; ">
  725. <col ref="choi" type="checkbox"/>
  726. <col ref="instcd"/>
  727. <col ref="abnflagcd"/>
  728. <col ref="abndg"/>
  729. <col ref="abnseqno"/>
  730. <col ref="wasteflagcd"/>
  731. <col ref="wasteresncd"/>
  732. <col ref="wasteresnnm"/>
  733. <col ref="ptno"/>
  734. <col ref="dispptno"/>
  735. <col ref="spccd"/>
  736. <col ref="spcnm"/>
  737. <col class="text_center" ref="abndd" type="inputdate" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  738. <col ref="abntm" format="hh:nn:ss" mask="exclude" showmask="true"/>
  739. <col ref="abnid"/>
  740. <col ref="abnnm"/>
  741. <col ref="abncustflagcd"/>
  742. <col ref="abncustresncd" type="combo">
  743. <choices>
  744. <itemset nodeset="/root/init/resncd/resncdlist[baseflagcd='61']">
  745. <label ref="resncnts"/>
  746. <value ref="resncd"/>
  747. </itemset>
  748. </choices>
  749. </col>
  750. <col class="text_right" ref="abnvol" type="input" format="#,###" mask="exclude" maxlength="4" showmask="true"/>
  751. <script type="javascript" ev:event="onaftersort">
  752. <![CDATA[
  753. grd_wastelist1.gridToInstance();
  754. ]]>
  755. </script>
  756. <script type="javascript" ev:event="onclick">
  757. <![CDATA[
  758. fExeWasteClick(grd_wastelist1, "1", "1");
  759. ]]>
  760. </script>
  761. <script type="javascript" ev:event="xforms-value-changed">
  762. <![CDATA[
  763. fExeWasteChoi(grd_wastelist1.row, grd_wastelist1.col, "1", "2");
  764. ]]>
  765. </script>
  766. <script type="javascript" ev:event="xforms-select">
  767. <![CDATA[
  768. fExeListChoi(grd_wastelist1, grd_wastelist1.row, grd_wastelist1.col, "1");
  769. ]]>
  770. </script>
  771. </datagrid>
  772. <datagrid id="grd_wastelist2" nodeset="/root/main/abninfo2/wastelist" class="datagrid2" caption="^기관코드^abnflagcd^abndg^abnseqno^wasteflagcd^wasteresncd^wasteresnnm^ptno^병리번호^spccd^검체^폐기일자^폐기&#xA;시간^abnid^인계자^abncustflagcd^폐기업체^용량(ℓ)" colsep="^" colwidth="40, 0, 0, 0, 0, 0, 0, 0, 0, 80, 0, 112, 84, 50, 0, 70, 0, 90, 52" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="17" style="left:568; top:75px; width:626px; height:668px; ">
  773. <col ref="choi" type="checkbox"/>
  774. <col ref="instcd"/>
  775. <col ref="abnflagcd"/>
  776. <col ref="abndg"/>
  777. <col ref="abnseqno"/>
  778. <col ref="wasteflagcd"/>
  779. <col ref="wasteresncd"/>
  780. <col ref="wasteresnnm"/>
  781. <col ref="ptno"/>
  782. <col class="text_center" ref="dispptno"/>
  783. <col ref="spccd"/>
  784. <col ref="spcnm"/>
  785. <col ref="abndd" type="inputdate"/>
  786. <col ref="abntm"/>
  787. <col ref="abnid"/>
  788. <col ref="abnnm"/>
  789. <col ref="abncustflagcd"/>
  790. <col ref="abncustresncd" type="combo">
  791. <choices>
  792. <itemset nodeset="/root/init/resncd/resncdlist">
  793. <label ref="resncnts"/>
  794. <value ref="resncd"/>
  795. </itemset>
  796. </choices>
  797. </col>
  798. <col class="text_right" ref="abnvol" type="input" format="#,###" mask="exclude" maxlength="4" showmask="true"/>
  799. <script type="javascript" ev:event="onaftersort">
  800. <![CDATA[
  801. grd_wastelist2.gridToInstance();
  802. ]]>
  803. </script>
  804. <script type="javascript" ev:event="onclick">
  805. <![CDATA[
  806. fExeWasteClick(grd_wastelist2, "2", "1");
  807. ]]>
  808. </script>
  809. <script type="javascript" ev:event="xforms-value-changed">
  810. <![CDATA[
  811. fExeWasteChoi(grd_wastelist2.row, grd_wastelist2.col, "2", "2");
  812. ]]>
  813. </script>
  814. <script type="javascript" ev:event="xforms-select">
  815. <![CDATA[
  816. fExeListChoi(grd_wastelist2, grd_wastelist2.row, grd_wastelist2.col, "2");
  817. ]]>
  818. </script>
  819. </datagrid>
  820. <caption id="caption3" class="tit_2" style="left:573px; top:55px; width:146px; height:14px; ">폐기(적출물)목록</caption>
  821. <line id="line2" class="line_1" style="x1:568px; y1:70px; x2:1194px; y2:70px; "/>
  822. <datagrid id="grd_savelist" nodeset="/root/main/saveinfo/wastelist" visibility="hidden" caption="선택^기관코드^abnflagcd^abndg^abnseqno^wasteflagcd^wasteresncd^폐기물^ptno^dispptno^spccd^spcnm^폐기일자^폐기&#xA;시간^abnid^폐기자^abncustflagcd^폐기업체^용량(ℓ)^bizflagcd" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:200px; top:50px; width:115px; height:45px; ">
  823. <col ref="choi" type="checkbox"/>
  824. <col ref="instcd"/>
  825. <col ref="abnflagcd"/>
  826. <col ref="abndg"/>
  827. <col ref="abnseqno"/>
  828. <col ref="wasteflagcd"/>
  829. <col ref="wasteresncd"/>
  830. <col ref="wasteresnnm"/>
  831. <col ref="ptno"/>
  832. <col ref="dispptno"/>
  833. <col ref="spccd"/>
  834. <col ref="spcnm"/>
  835. <col class="text_center" ref="abndd" type="inputdate" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  836. <col ref="abntm" format="hh:nn:ss" mask="exclude" showmask="true"/>
  837. <col ref="abnid"/>
  838. <col ref="abnnm"/>
  839. <col ref="abncustflagcd"/>
  840. <col ref="abncustresncd" type="combo"/>
  841. <col ref="abnvol" type="input" format="#,###" mask="exclude" maxlength="4" showmask="true"/>
  842. <col ref="bizflagcd"/>
  843. </datagrid>
  844. <datagrid id="grd_abnlist" nodeset="/root/main/abninfo/abnlist" visibility="hidden" caption="기관코드^폐기물^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^합계" colsep="^" colwidth="0, 173, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,50, 50, 50, 50, 50, 50" mergecellsfixedrows="bycolrec" rowsep="|" style="left:370px; top:160px; width:665px; height:150px; ">
  845. <col ref="instcd"/>
  846. <col ref="wasteresnnm"/>
  847. <col class="text_right" ref="day01" format="#,###" mask="exclude" showmask="true"/>
  848. <col class="text_right" ref="day02" format="#,###" mask="exclude" showmask="true"/>
  849. <col class="text_right" ref="day03" format="#,###" mask="exclude" showmask="true"/>
  850. <col class="text_right" ref="day04" format="#,###" mask="exclude" showmask="true"/>
  851. <col class="text_right" ref="day05" format="#,###" mask="exclude" showmask="true"/>
  852. <col class="text_right" ref="day06" format="#,###" mask="exclude" showmask="true"/>
  853. <col class="text_right" ref="day07" format="#,###" mask="exclude" showmask="true"/>
  854. <col class="text_right" ref="day08" format="#,###" mask="exclude" showmask="true"/>
  855. <col class="text_right" ref="day09" format="#,###" mask="exclude" showmask="true"/>
  856. <col class="text_right" ref="day10" format="#,###" mask="exclude" showmask="true"/>
  857. <col class="text_right" ref="day11" format="#,###" mask="exclude" showmask="true"/>
  858. <col class="text_right" ref="day12" format="#,###" mask="exclude" showmask="true"/>
  859. <col class="text_right" ref="day13" format="#,###" mask="exclude" showmask="true"/>
  860. <col class="text_right" ref="day14" format="#,###" mask="exclude" showmask="true"/>
  861. <col class="text_right" ref="day15" format="#,###" mask="exclude" showmask="true"/>
  862. <col class="text_right" ref="day16" format="#,###" mask="exclude" showmask="true"/>
  863. <col class="text_right" ref="day17" format="#,###" mask="exclude" showmask="true"/>
  864. <col class="text_right" ref="day18" format="#,###" mask="exclude" showmask="true"/>
  865. <col class="text_right" ref="day19" format="#,###" mask="exclude" showmask="true"/>
  866. <col class="text_right" ref="day20" format="#,###" mask="exclude" showmask="true"/>
  867. <col class="text_right" ref="day21" format="#,###" mask="exclude" showmask="true"/>
  868. <col class="text_right" ref="day22" format="#,###" mask="exclude" showmask="true"/>
  869. <col class="text_right" ref="day23" format="#,###" mask="exclude" showmask="true"/>
  870. <col class="text_right" ref="day24" format="#,###" mask="exclude" showmask="true"/>
  871. <col class="text_right" ref="day25" format="#,###" mask="exclude" showmask="true"/>
  872. <col class="text_right" ref="day26" format="#,###" mask="exclude" showmask="true"/>
  873. <col class="text_right" ref="day27" format="#,###" mask="exclude" showmask="true"/>
  874. <col class="text_right" ref="day28" format="#,###" mask="exclude" showmask="true"/>
  875. <col class="text_right" ref="day29" format="#,###" mask="exclude" showmask="true"/>
  876. <col class="text_right" ref="day30" format="#,###" mask="exclude" showmask="true"/>
  877. <col class="text_right" ref="day31" format="#,###" mask="exclude" showmask="true"/>
  878. <col class="text_right" ref="daytot" format="#,###" mask="exclude" showmask="true"/>
  879. </datagrid>
  880. <input id="ipt_abnvol" ref="/root/init/abnvol2" format="#,###" style="left:1129px; top:50px; width:65px; height:19px; text-align:right; vertical-align:middle; ">
  881. <script type="javascript" ev:event="onkeypress">
  882. <![CDATA[
  883. //---------------------------
  884. if ( event.keyCode == 13 ) {
  885. var sNode="/root/main/abninfo2/wastelist";
  886. var sVol = ipt_abnvol.currentText;
  887. model.makeValue("/root/init/abnvol2", sVol);
  888. ipt_abnvol.refresh();
  889. //-------------------------------------------------------
  890. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  891. if ( model.getValue(sNode+"["+iNo+"]/choi") == "true") {
  892. model.makeValue(sNode+"["+iNo+"]/abnvol", sVol);
  893. }
  894. }
  895. model.refresh();
  896. }
  897. ]]>
  898. </script>
  899. <script type="javascript" ev:event="onkeydown">
  900. <![CDATA[
  901. ]]>
  902. </script>
  903. </input>
  904. <select1 id="cbo_custcd" ref="/root/init/custcd2" appearance="minimal" style="left:1025px; top:50px; width:100px; height:19px; ">
  905. <choices>
  906. <itemset nodeset="/root/init/resncd/resncdlist">
  907. <label ref="resncnts"/>
  908. <value ref="resncd"/>
  909. </itemset>
  910. </choices>
  911. <script type="javascript" ev:event="xforms-select">
  912. <![CDATA[
  913. var sNode="/root/main/abninfo2/wastelist";
  914. //-------------------------------------------------------
  915. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  916. if ( model.getValue(sNode+"["+iNo+"]/choi") == "true") {
  917. model.makeValue(sNode+"["+iNo+"]/abncustflagcd", model.getValue("/root/init/resncd/resncdlist/baseflagcd") );
  918. model.makeValue(sNode+"["+iNo+"]/abncustresncd", model.getValue("/root/init/custcd1") );
  919. }
  920. }
  921. model.refresh();
  922. ]]>
  923. </script>
  924. </select1>
  925. <input id="ipt_abnvol1" ref="/root/init/abnvol1" format="#,###" style="left:500px; top:50px; width:65px; height:19px; text-align:right; vertical-align:middle; ">
  926. <script type="javascript" ev:event="onkeypress">
  927. <![CDATA[
  928. //---------------------------
  929. if ( event.keyCode == 13 ) {
  930. var sNode="/root/main/abninfo1/wastelist";
  931. var sVol = ipt_abnvol1.currentText;
  932. model.makeValue("/root/init/abnvol1", sVol);
  933. ipt_abnvol1.refresh();
  934. //-------------------------------------------------------
  935. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  936. if ( model.getValue(sNode+"["+iNo+"]/choi") == "true") {
  937. model.makeValue(sNode+"["+iNo+"]/abnvol", sVol);
  938. }
  939. }
  940. model.refresh();
  941. }
  942. ]]>
  943. </script>
  944. <script type="javascript" ev:event="onkeydown">
  945. <![CDATA[
  946. ]]>
  947. </script>
  948. </input>
  949. <select1 id="cbo_custcd1" ref="/root/init/custcd1" appearance="minimal" style="left:395px; top:50px; width:100px; height:19px; ">
  950. <choices>
  951. <itemset nodeset="/root/init/resncd/resncdlist">
  952. <label ref="resncnts"/>
  953. <value ref="resncd"/>
  954. </itemset>
  955. </choices>
  956. <script type="javascript" ev:event="xforms-select">
  957. <![CDATA[
  958. var sNode="/root/main/abninfo1/wastelist";
  959. //-------------------------------------------------------
  960. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  961. if ( model.getValue(sNode+"["+iNo+"]/choi") == "true") {
  962. model.makeValue(sNode+"["+iNo+"]/abncustflagcd", model.getValue("/root/init/resncd/resncdlist/baseflagcd") );
  963. model.makeValue(sNode+"["+iNo+"]/abncustresncd", model.getValue("/root/init/custcd1") );
  964. }
  965. }
  966. model.refresh();
  967. ]]>
  968. </script>
  969. </select1>
  970. </group>
  971. </xhtml:body>
  972. </xhtml:html>