SMAEB03402_조영제재고관리조회.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>조영제/재료 재고관리 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <mainlist>
  11. <uselist>
  12. <goodcd/>
  13. <goodnm/>
  14. <iodd/>
  15. <qty/>
  16. <usernm/>
  17. <ioflag/>
  18. <sectcd/>
  19. <suppdeptcd/>
  20. </uselist>
  21. <wlnlist>
  22. <goodcd/>
  23. <goodnm/>
  24. <iodd/>
  25. <qty/>
  26. <usernm/>
  27. <ioflag/>
  28. <sectcd/>
  29. <suppdeptcd/>
  30. </wlnlist>
  31. </mainlist>
  32. <goodlist>
  33. <item>
  34. <goodcd/>
  35. <goodnm/>
  36. <speccd/>
  37. <safestocqty/>
  38. <exstocqty/>
  39. <wlnqty/>
  40. <sumqty/>
  41. <useqty/>
  42. <stocqty/>
  43. <reqqty/>
  44. </item>
  45. </goodlist>
  46. <dyestoclist>
  47. <item>
  48. <goodcd/>
  49. <instcd/>
  50. <agojego/>
  51. <receive/>
  52. <totsu/>
  53. <outgo/>
  54. <dayused/>
  55. <presentcnt/>
  56. <rem/>
  57. <srchflag/>
  58. <magamflag/>
  59. </item>
  60. </dyestoclist>
  61. <goodinfo/>
  62. <dyecdpamlist>
  63. <item>
  64. <pid/>
  65. <hngnm/>
  66. <excuexectodd/>
  67. <basecdflagdesc/>
  68. <calcscorcd/>
  69. <excucdnm/>
  70. <goodcd/>
  71. <goodnm/>
  72. <drugqty/>
  73. <speccd/>
  74. <prcpdd/>
  75. <instcd/>
  76. <excuroomcd/>
  77. </item>
  78. </dyecdpamlist>
  79. </main>
  80. <send>
  81. <srchiodd/>
  82. <globalinstance>
  83. <instance1/>
  84. </globalinstance>
  85. <srchsectcd/>
  86. <srchgoodcd/>
  87. <srchgoodnm/>
  88. <srchexcuroomgrp/>
  89. <srchtodd/>
  90. <srchfromdd/>
  91. <excuroomgrpcdid/>
  92. <srchsuppdeptcd/>
  93. <excuroomcd/>
  94. </send>
  95. <cmb_info>
  96. <initexcuroomgrp2>
  97. <excuroomgrpcdid/>
  98. <excuroomgrpcdnm/>
  99. </initexcuroomgrp2>
  100. <goodlist>
  101. <item/>
  102. </goodlist>
  103. </cmb_info>
  104. <temp>
  105. <goodcd/>
  106. <goodnm/>
  107. <speccd/>
  108. <safestocqty/>
  109. <inswlniodd/>
  110. <inswlngoodcd/>
  111. <inswlnqty/>
  112. <setwlniodd/>
  113. <setwlngoodcd/>
  114. <setwlnqty/>
  115. <insuseiodd/>
  116. <insusegoodcd/>
  117. <insuseqty/>
  118. <setuseiodd/>
  119. <setusegoodcd/>
  120. <setuseqty/>
  121. <count/>
  122. </temp>
  123. <rexprnt>
  124. <dyestoclist>
  125. <srchiodd/>
  126. <srchsectcd/>
  127. <srchexcuroomgrp/>
  128. <srchsudept/>
  129. </dyestoclist>
  130. </rexprnt>
  131. <init>
  132. <cmb_info2/>
  133. <excuroomcdlist/>
  134. </init>
  135. </root>
  136. </instance>
  137. <script type="javascript" ev:event="xforms-ready">
  138. <![CDATA[
  139. aezfSetSuppDeptcd();
  140. model.setValue("/root/send/srchfromdd", getCurrentDate());
  141. model.setValue("/root/send/srchtodd", getCurrentDate());
  142. model.removeNodeset("/root/main/mainlist");
  143. //model.removeNodeset("/root/main/speclist/item");
  144. //20170111 메뉴에서 파라메터 가져오기
  145. var gvMenuParam = getScreenMenuParameter();
  146. //alert(gvMenuParam);
  147. if ( gvMenuParam != "" && gvMenuParam != "null" && gvMenuParam != null) {
  148. model.setValue("/root/send/globalinstance/instance1", gvMenuParam );
  149. }
  150. submit("TRAEA01301");
  151. model.removeNodeset("/root/init/cmb_info2/initexecroom");
  152. var cnt = getNodesetCount("/root/cmb_info/initexcuroomgrp2");
  153. for( var i = 1; i <= cnt ; i++ ){
  154. model.makeNode("/root/init/cmb_info2/initexecroom[" + i + "]");
  155. model.copyNode("/root/init/cmb_info2/initexecroom[" + i + "]", "/root/cmb_info/initexcuroomgrp2[" + i + "]");
  156. }
  157. model.removeNodeset("/root/cmb_info/initexcuroomgrp2[" + 1 + "]");
  158. model.removeNodeset("/root/cmb_info/initexcuroomgrp[" + 1 + "]");
  159. addComboItem("cmb_excuroomgrp", "-- 전체 --", "", "above");
  160. addComboItem("cmb_sectcd", "-- 전체 --", "", "above");
  161. addComboItem("cmb_sudpt", "-- 전체 --", "", "above");
  162. model.setValue("/root/send/srchsuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  163. cmb_sudpt.dispatch("xforms-value-changed");
  164. submit("TRAEB03501");
  165. cmb_excuroomgrp.select(0);
  166. model.refresh();
  167. ]]>
  168. </script>
  169. <submission id="TRAEQ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/">
  170. <script type="javascript" ev:event="xforms-submit-done">
  171. <![CDATA[
  172. var rowcnt = grd_mainlist.rows;
  173. for(var i = 0; i < rowcnt; i++ )
  174. {
  175. if(model.getValue("/root/tmp/rem") == "")
  176. {
  177. model.setValue("/root/tmp/rem", model.getValue("/root/main/mainlist[" + i + "]/rem"));
  178. }
  179. }
  180. sortGrid(grd_mainlist);
  181. ]]>
  182. </script>
  183. </submission>
  184. <submission id="TRAEB03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodinfo"/>
  185. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/cmb_info"/>
  186. <submission id="TRAEB03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/goodlist"/>
  187. <submission id="TRAEB03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/mainlist"/>
  188. <submission id="TXAEB03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
  189. <submission id="TRAEQ01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/goodlist"/>
  190. <submission id="TRAEA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/excuroomcdlist"/>
  191. <submission id="TRAEB03404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dyestoclist"/>
  192. <submission id="TXAEB03402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
  193. <submission id="TXAEB03403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
  194. <submission id="TXAEB03404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
  195. <submission id="TRAEB03403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dyecdpamlist"/>
  196. <submission id="TRAEA01306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info2"/>
  197. </model>
  198. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  199. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  200. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  201. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  202. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  203. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  204. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  205. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  206. <script type="javascript">
  207. <![CDATA[
  208. function getGridData() {
  209. if(model.getValue("/root/send/srchiodd") != "") {
  210. model.setValue("/root/temp/goodnm", cmb_goodcd.label);
  211. model.setValue("/root/temp/inswlnqty", "0");
  212. model.setValue("/root/temp/setwlnqty", "0");
  213. model.setValue("/root/temp/insuseqty", "0");
  214. model.setValue("/root/temp/setuseqty", "0");
  215. model.removeNodeset("/root/main/mainlist");
  216. model.removeNodeset("/root/main/goodlist/item");
  217. btn_inSave.disabled = true;
  218. btn_inUpdt.disabled = true;
  219. btn_outSave.disabled = true;
  220. btn_outUpdt.disabled = true;
  221. ipt_inswlnday.disabled = true;
  222. ipt_insuseday.disabled = true;
  223. submit("TRAEB03401");
  224. model.setValue("/root/send/srchiodd", getCurrentDate());
  225. var srchgoodcd = model.getValue("/root/send/srchgoodcd");
  226. if (srchgoodcd != "") {
  227. btn_inSave.disabled = false;
  228. btn_outSave.disabled = false;
  229. ipt_inswlnday.disabled = false;
  230. ipt_insuseday.disabled = false;
  231. }
  232. // if(model.getXPathValue("count(/root/main/mainlist/wlnlist)") > 0)
  233. // {
  234. // btn_inSave.disabled = true;
  235. // ipt_inswlnqty.disabled = true;
  236. // btn_inUpdt.disabled = false;
  237. // ipt_setwlnqty.disabled = false;
  238. // }
  239. // else
  240. // {
  241. // btn_inUpdt.disabled = true;
  242. // ipt_setwlnqty.disabled = true;
  243. // btn_inSave.disabled = false;
  244. // ipt_inswlnqty.disabled = false;
  245. // }
  246. //
  247. // if(model.getXPathValue("count(/root/main/mainlist/uselist)") > 0)
  248. // {
  249. // btn_outSave.disabled = true;
  250. // ipt_insuseqty.disabled = true;
  251. // btn_outUpdt.disabled = false;
  252. // ipt_setuseqty.disabled = false;
  253. // }
  254. // else
  255. // {
  256. // btn_outUpdt.disabled = true;
  257. // ipt_setuseqty.disabled = true;
  258. // btn_outSave.disabled = false;
  259. // ipt_insuseqty.disabled = false;
  260. // }
  261. model.refresh();
  262. }
  263. else
  264. {
  265. messageBox("날짜를", "C001");
  266. }
  267. }
  268. function getDyeList()
  269. {
  270. if( model.getValue("/root/send/srchfromdd") == "" || model.getValue("/root/send/srchtodd") == "" ){
  271. messageBox("입고일자를", "I007");
  272. return;
  273. }
  274. // 2011.02.07 c y w 조회시 환자정보리스트 클리어
  275. model.removeNodeset("/root/main/dyecdpamlist/item");
  276. submit("TRAEB03404");
  277. model.refresh();
  278. }
  279. ]]>
  280. </script>
  281. </xhtml:head>
  282. <xhtml:body pagewidth="1210" pageheight="780" style="margin-left:7; margin-top:0; margin-right:8; margin-bottom:0; ">
  283. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  284. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:205px; height:15px; ">조영제/재료 소모재고관리</caption>
  285. </group>
  286. <button id="btn_rept" class="btn4_letter4" style="left:510px; top:520px; width:80px; height:22px; ">
  287. <caption>입고저장</caption>
  288. <script type="javascript" ev:event="DOMActivate">
  289. <![CDATA[
  290. var nodecnt = model.getXPathValue("count(/root/main/mainlist)");
  291. var list1cnt = 1;
  292. var list2cnt = 1;
  293. var list3cnt = 1
  294. for(var i=1 ; i <= nodecnt; i++)
  295. {
  296. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "영상검사실")
  297. {
  298. model.makeNode("/root/tmp/rexlist/list1[" + list1cnt + "]");
  299. model.copyNode("/root/tmp/rexlist/list1[" + list1cnt +"]", "/root/main/mainlist[" + i + "]");
  300. list1cnt = list1cnt + 1;
  301. }
  302. }
  303. for(var i=1 ; i <= nodecnt; i++)
  304. {
  305. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "PET-CT실")
  306. {
  307. model.makeNode("/root/tmp/rexlist/list2[" + list2cnt + "]");
  308. model.copyNode("/root/tmp/rexlist/list2[" + list2cnt +"]", "/root/main/mainlist[" + i + "]");
  309. list2cnt = list2cnt + 1;
  310. }
  311. }
  312. for(var i=1 ; i <= nodecnt; i++)
  313. {
  314. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "치료,투약실")
  315. {
  316. model.makeNode("/root/tmp/rexlist/list3[" + list3cnt + "]");
  317. model.copyNode("/root/tmp/rexlist/list3[" + list3cnt +"]", "/root/main/mainlist[" + i + "]");
  318. list3cnt = list3cnt + 1;
  319. }
  320. }
  321. mergeRexList("/root/tmp/rexlist/list1");
  322. mergeRexList("/root/tmp/rexlist/list2");
  323. mergeRexList("/root/tmp/rexlist/list3");
  324. var patinsucnt = model.getXPathValue("sum( /root/main/mainlist/patinsucnt )");
  325. var patgnrlcnt = model.getXPathValue("sum( /root/main/mainlist/patgnrlcnt )");
  326. var testinsucnt = model.getXPathValue("sum( /root/main/mainlist/testinsucnt )");
  327. var testgnrlcnt = model.getXPathValue("sum( /root/main/mainlist/testgnrlcnt )");
  328. model.setValue("/root/tmp/rexlist/patinsucnt", patinsucnt);
  329. model.setValue("/root/tmp/rexlist/patgnrlcnt", patgnrlcnt);
  330. model.setValue("/root/tmp/rexlist/testinsucnt", testinsucnt);
  331. model.setValue("/root/tmp/rexlist/testgnrlcnt", testgnrlcnt);
  332. var ymd = model.getValue("/root/tmp/rexlist/list1/recdd");
  333. var year = ymd.substring(0,4);
  334. var month = ymd.substring(4,6);
  335. var day = ymd.substring(6,8);
  336. var yymmddstr = year + "/" + month + "/" + day + " " + getDateTime(new Date(year,month,day), "W") + "요일";
  337. model.setValue("/root/tmp/rexlist/srchdd", yymmddstr);
  338. model.makeNode("/root/tmp/rexlist/mainlist[58]");
  339. exeReportPreview("RPAEQ00400", "XMLSTR", "/root/tmp/rexlist");
  340. model.removeNodeset("/root/tmp/rexlist/list1");
  341. model.removeNodeset("/root/tmp/rexlist/list2");
  342. model.removeNodeset("/root/tmp/rexlist/list3");
  343. model.removeNodeset("/root/tmp/rexlist/mainlist");
  344. model.refresh();
  345. ]]>
  346. </script>
  347. </button>
  348. <button id="button1" class="btn4_letter4" style="left:1105px; top:520px; width:80px; height:22px; ">
  349. <caption>입고저장</caption>
  350. <script type="javascript" ev:event="DOMActivate">
  351. <![CDATA[
  352. var nodecnt = model.getXPathValue("count(/root/main/mainlist)");
  353. var list1cnt = 1;
  354. var list2cnt = 1;
  355. var list3cnt = 1
  356. for(var i=1 ; i <= nodecnt; i++)
  357. {
  358. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "영상검사실")
  359. {
  360. model.makeNode("/root/tmp/rexlist/list1[" + list1cnt + "]");
  361. model.copyNode("/root/tmp/rexlist/list1[" + list1cnt +"]", "/root/main/mainlist[" + i + "]");
  362. list1cnt = list1cnt + 1;
  363. }
  364. }
  365. for(var i=1 ; i <= nodecnt; i++)
  366. {
  367. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "PET-CT실")
  368. {
  369. model.makeNode("/root/tmp/rexlist/list2[" + list2cnt + "]");
  370. model.copyNode("/root/tmp/rexlist/list2[" + list2cnt +"]", "/root/main/mainlist[" + i + "]");
  371. list2cnt = list2cnt + 1;
  372. }
  373. }
  374. for(var i=1 ; i <= nodecnt; i++)
  375. {
  376. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "치료,투약실")
  377. {
  378. model.makeNode("/root/tmp/rexlist/list3[" + list3cnt + "]");
  379. model.copyNode("/root/tmp/rexlist/list3[" + list3cnt +"]", "/root/main/mainlist[" + i + "]");
  380. list3cnt = list3cnt + 1;
  381. }
  382. }
  383. mergeRexList("/root/tmp/rexlist/list1");
  384. mergeRexList("/root/tmp/rexlist/list2");
  385. mergeRexList("/root/tmp/rexlist/list3");
  386. var patinsucnt = model.getXPathValue("sum( /root/main/mainlist/patinsucnt )");
  387. var patgnrlcnt = model.getXPathValue("sum( /root/main/mainlist/patgnrlcnt )");
  388. var testinsucnt = model.getXPathValue("sum( /root/main/mainlist/testinsucnt )");
  389. var testgnrlcnt = model.getXPathValue("sum( /root/main/mainlist/testgnrlcnt )");
  390. model.setValue("/root/tmp/rexlist/patinsucnt", patinsucnt);
  391. model.setValue("/root/tmp/rexlist/patgnrlcnt", patgnrlcnt);
  392. model.setValue("/root/tmp/rexlist/testinsucnt", testinsucnt);
  393. model.setValue("/root/tmp/rexlist/testgnrlcnt", testgnrlcnt);
  394. var ymd = model.getValue("/root/tmp/rexlist/list1/recdd");
  395. var year = ymd.substring(0,4);
  396. var month = ymd.substring(4,6);
  397. var day = ymd.substring(6,8);
  398. var yymmddstr = year + "/" + month + "/" + day + " " + getDateTime(new Date(year,month,day), "W") + "요일";
  399. model.setValue("/root/tmp/rexlist/srchdd", yymmddstr);
  400. model.makeNode("/root/tmp/rexlist/mainlist[58]");
  401. exeReportPreview("RPAEQ00400", "XMLSTR", "/root/tmp/rexlist");
  402. model.removeNodeset("/root/tmp/rexlist/list1");
  403. model.removeNodeset("/root/tmp/rexlist/list2");
  404. model.removeNodeset("/root/tmp/rexlist/list3");
  405. model.removeNodeset("/root/tmp/rexlist/mainlist");
  406. model.refresh();
  407. ]]>
  408. </script>
  409. </button>
  410. <group id="group2" scroll="auto" style="left:0px; top:15px; width:1195px; height:730px; ">
  411. <group id="group4" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  412. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  413. <caption id="caption19" class="search_name" style="left:10px; top:9px; width:105px; height:17px; ">입출고 기간 :</caption>
  414. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:120px; top:8px; width:90px; height:19px; "/>
  415. <line id="line6" class="line_4" style="x1:1116px; y1:6px; x2:1116px; y2:28px; "/>
  416. <caption id="caption20" class="search_name" style="left:777px; top:9px; width:83px; height:17px; ">검사실 :</caption>
  417. <button id="button3" class="btn1_letter2" navindex="5" style="left:1129px; top:7px; width:56px; height:22px; ">
  418. <caption>조회</caption>
  419. <script type="javascript" ev:event="DOMActivate">
  420. <![CDATA[
  421. //20151016 기간 체크
  422. //start
  423. var cTime = getCurrentTime().substr(0, 4);
  424. if(cTime > "1700" || cTime < "0830") {
  425. } else {
  426. var ddInterval = getDateInterval(ipt_fromdd.value, ipt_todd.value);
  427. if(ddInterval > 32){
  428. messageBox("업무시간[08:30 ~ 17:00]에는 31일까지만 조회", "I006");
  429. return;
  430. }
  431. }
  432. //end
  433. getDyeList();
  434. ]]>
  435. </script>
  436. </button>
  437. <select1 id="cmb_sectcd" ref="/root/send/srchsectcd" navindex="4" appearance="minimal" style="left:857px; top:9px; width:187px; height:19px; ">
  438. <choices>
  439. <itemset nodeset="/root/init/excuroomcdlist/excuroom">
  440. <label ref="basecdflagdesc"/>
  441. <value ref="basecd"/>
  442. </itemset>
  443. </choices>
  444. </select1>
  445. <caption id="lbl_srchdd" class="search_name" style="left:568px; top:10px; width:86px; height:17px; ">구 분 :</caption>
  446. <select1 id="cmb_excuroomgrp" ref="/root/send/srchexcuroomgrp" class="combo_search" navindex="3" appearance="minimal" style="left:640px; top:9px; width:123px; height:19px; ">
  447. <choices>
  448. <itemset nodeset="/root/cmb_info/initexcuroomgrp">
  449. <label ref="excuroomgrpcdnm"/>
  450. <value ref="excuroomgrpcdid"/>
  451. </itemset>
  452. </choices>
  453. <script type="javascript" ev:event="xforms-select">
  454. <![CDATA[
  455. model.removeNodeset("/root/init/cmb_info2/initexecroom");
  456. model.removeNodeset("/root/init/excuroomcdlist/excuroom");
  457. model.setValue("/root/send/excuroomgrpcdid", model.getValue("/root/send/srchexcuroomgrp") );
  458. if(submit("TRAEA01306")){
  459. var cnt = getNodesetCount("/root/init/cmb_info2/initexecroom");
  460. for(var i = 1; i <= cnt; i++ ){
  461. model.makeNode("/root/init/excuroomcdlist/excuroom[" + i + "]");
  462. model.makeValue("/root/init/excuroomcdlist/excuroom[" + i + "]/basecdflagdesc", model.getValue("/root/init/cmb_info2/initexecroom["+ i +"]/excuroomcdnm"));
  463. model.makeValue("/root/init/excuroomcdlist/excuroom[" + i + "]/basecd", model.getValue("/root/init/cmb_info2/initexecroom["+ i +"]/excuroomcdid"));
  464. }
  465. if(model.getValue("/root/init/excuroomcdlist/excuroom[1]/basecd") != "" ){
  466. addComboItem("cmb_sectcd", "-- 전체 --", "", "above");
  467. }
  468. cmb_sectcd.select(0);
  469. }
  470. model.refresh();
  471. ]]>
  472. </script>
  473. </select1>
  474. <caption id="lbl_~" class="search_no_b" style="left:214px; top:10px; width:12px; height:17px; ">~</caption>
  475. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_search" navindex="2" inputtype="date" style="left:230px; top:8px; width:90px; height:19px; "/>
  476. <caption id="caption1" class="search_name" style="left:340px; top:10px; width:86px; height:17px; ">지원부서 :</caption>
  477. <select1 id="cmb_sudpt" ref="/root/send/srchsuppdeptcd" class="combo_search" appearance="minimal" editmode="inputsearch" style="left:431px; top:9px; width:120px; height:19px; text-align:left; ">
  478. <choices>
  479. <itemset nodeset="/root/cmb_info/suppdept">
  480. <label ref="depthngnm"/>
  481. <value ref="suppdeptcd"/>
  482. </itemset>
  483. </choices>
  484. <script type="javascript" ev:event="xforms-value-changed">
  485. <![CDATA[
  486. model.removeNodeset("/root/init/excuroomcdlist/excuroom");
  487. if(model.getValue("/root/send/srchsuppdeptcd") == "" ){
  488. model.setValue("/root/send/globalinstance/instance1", "");
  489. cmb_excuroomgrp.select(0);
  490. cmb_excuroomgrp.dispatch("xforms-select");
  491. }else{
  492. model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/send/srchsuppdeptcd"));
  493. model.setValue("/root/send/excuroomcd", "");
  494. submit("TRAEA00902");
  495. if(model.getValue("/root/init/excuroomcdlist/excuroom[1]/basecd") != "" ){
  496. addComboItem("cmb_sectcd", "-- 전체 --", "", "above");
  497. }
  498. cmb_sectcd.select(0);
  499. }
  500. model.refresh();
  501. ]]>
  502. </script>
  503. </select1>
  504. </group>
  505. <caption id="caption22" class="tit_2" style="left:0px; top:58px; width:105px; height:13px; ">입출고 현황</caption>
  506. <line id="line7" class="line_1" style="x1:0px; y1:74px; x2:1193px; y2:74px; "/>
  507. <datagrid id="grd_dyelist" nodeset="/root/main/dyestoclist/item" caption="조영제/재료코드^조영제/재료명^전일재고^수 령^총 수^소 모^소 모^현재고^비 고|조영제/재료코드^조영제/재료명^전일재고^수 령^총 수^불 출^일소모^현재고^비 고" colsep="^" colwidth="100, 240, 90, 90, 90, 90, 90, 90, 270" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:79px; width:1193px; height:646px; ">
  508. <col ref="goodcd" style="text-align:left; padding-left:10; "/>
  509. <col disabled="true" ref="goodcd" type="combo" style="text-align:left; padding-left:10; ">
  510. <choices>
  511. <itemset nodeset="/root/main/goodlist/item">
  512. <label ref="goodnm"/>
  513. <value ref="goodcd"/>
  514. </itemset>
  515. </choices>
  516. </col>
  517. <col ref="agojego" type="output" format="#,###.##" style="text-align:right; padding-right:20; "/>
  518. <col ref="receive" type="output" format="#,###.##" style="text-align:right; padding-right:20; "/>
  519. <col ref="totsu" format="#,###.##" style="text-align:right; padding-right:20; "/>
  520. <col ref="outgo" type="output" format="#,###.##" style="text-align:right; padding-right:20; "/>
  521. <col disabled="false" ref="dayused" type="output" format="#,###.##" style="text-align:right; padding-right:20; "/>
  522. <col ref="presentcnt" format="#,###.##" style="text-align:right; padding-right:20; "/>
  523. <col disabled="false" ref="rem" type="output" style="text-align:left; padding-left:10; "/>
  524. <col ref="iodd" visibility="hidden"/>
  525. <col ref="suppdeptcd" visibility="hidden"/>
  526. <col ref="sectcd" visibility="hidden"/>
  527. </datagrid>
  528. <button id="btn_excsave" class="btn2_letter4" style="left:1120px; top:50px; width:64px; height:19px; ">
  529. <caption>엑셀저장</caption>
  530. <script type="javascript" ev:event="DOMActivate">
  531. <![CDATA[
  532. var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls"); // 2009-07-01 엑셀저장 두번째 저장 실패 오류 확인 두번째 테스트
  533. if (filename != "") {
  534. grd_dyelist.saveExcel(filename);
  535. }
  536. ]]>
  537. </script>
  538. </button>
  539. </group>
  540. <group id="grp_btn" style="left:0px; top:745px; width:1195px; height:25px; ">
  541. <button id="button2" class="btn6_letter2" navindex="6" style="left:0px; top:0px; width:56px; height:22px; ">
  542. <caption>출력</caption>
  543. <script type="javascript" ev:event="DOMActivate">
  544. <![CDATA[
  545. var cnt = getNodesetCount("/root/main/dyestoclist/item");
  546. for( var i = 1; i <= cnt; i++){
  547. model.makeNode("/root/rexprnt/dyestoclist/item[" + i + "]");
  548. model.copyNode("/root/rexprnt/dyestoclist/item[" + i + "]", "/root/main/dyestoclist/item["+ i +"]");
  549. model.setValue("/root/rexprnt/dyestoclist/item[" + i + "]/goodcd", grd_dyelist.labelMatrix(i+1,2));
  550. model.makeValue("/root/rexprnt/dyestoclist/item[" + i + "]/goodcdd", model.getValue("/root/main/dyestoclist/item["+ i +"]/goodcd"));
  551. }
  552. model.setValue("/root/rexprnt/dyestoclist/srchiodd", ipt_fromdd.label + " ~ " + ipt_todd.label );
  553. if( model.getValue("/root/send/srchexcuroomgrp") != "" ){
  554. model.setValue("/root/rexprnt/dyestoclist/srchexcuroomgrp", cmb_excuroomgrp.label );
  555. }else{
  556. model.setValue("/root/rexprnt/dyestoclist/srchexcuroomgrp", "" );
  557. }
  558. if( model.getValue("/root/send/srchsectcd" ) != "" ){
  559. model.setValue("/root/rexprnt/dyestoclist/srchsectcd", cmb_sectcd.label );
  560. }else{
  561. model.setValue("/root/rexprnt/dyestoclist/srchsectcd", "" );
  562. }
  563. model.setValue("/root/rexprnt/dyestoclist/srchsudept", getUserInfo("dutplcenm") );
  564. model.refresh();
  565. exeReportPreview("RPAEB03401", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  566. model.removeNodeset("/root/rexprnt/dyestoclist/item");
  567. ]]>
  568. </script>
  569. </button>
  570. </group>
  571. </xhtml:body>
  572. </xhtml:html>