SMAEB03404_조영제청구및출고.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  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. <goodnm/>
  50. <instcd/>
  51. <speccd/>
  52. <demand/>
  53. <outgo/>
  54. <rem/>
  55. <iodd/>
  56. <suppdeptcd/>
  57. <sectcd/>
  58. <reqid/>
  59. <reqdd/>
  60. <outid/>
  61. <outdd/>
  62. <gubun/>
  63. <reqnm/>
  64. <outnm/>
  65. <recid/>
  66. <recnm/>
  67. <recdd/>
  68. <iodd/>
  69. </item>
  70. </dyestoclist>
  71. <goodinfo/>
  72. <dyecdpamlist>
  73. <item>
  74. <pid/>
  75. <hngnm/>
  76. <excuexectodd/>
  77. <basecdflagdesc/>
  78. <calcscorcd/>
  79. <excucdnm/>
  80. <goodcd/>
  81. <goodnm/>
  82. <drugqty/>
  83. <speccd/>
  84. <prcpdd/>
  85. <instcd/>
  86. <excuroomcd/>
  87. </item>
  88. </dyecdpamlist>
  89. <list2>
  90. <item>
  91. <check/>
  92. <sortno/>
  93. <basecd/>
  94. <basecdflagdesc/>
  95. <excudd/>
  96. </item>
  97. </list2>
  98. </main>
  99. <send>
  100. <srchiodd/>
  101. <globalinstance>
  102. <instance1/>
  103. </globalinstance>
  104. <srchsectcd/>
  105. <srchgoodcd/>
  106. <srchgoodnm/>
  107. <srchexcuroomgrp/>
  108. <srchfromdd/>
  109. <excuroomgrpcdid/>
  110. <srchsuppdeptcd/>
  111. <excuroomcd/>
  112. <req>
  113. <data1/>
  114. </req>
  115. <srchreqid/>
  116. <srchoutid/>
  117. <srchgubun>T</srchgubun>
  118. <srchtodd/>
  119. </send>
  120. <cmb_info>
  121. <initexcuroomgrp2>
  122. <excuroomgrpcdid/>
  123. <excuroomgrpcdnm/>
  124. </initexcuroomgrp2>
  125. <goodlist>
  126. <item/>
  127. </goodlist>
  128. <init/>
  129. </cmb_info>
  130. <temp>
  131. <goodcd/>
  132. <goodnm/>
  133. <speccd/>
  134. <safestocqty/>
  135. <inswlniodd/>
  136. <inswlngoodcd/>
  137. <inswlnqty/>
  138. <setwlniodd/>
  139. <setwlngoodcd/>
  140. <setwlnqty/>
  141. <insuseiodd/>
  142. <insusegoodcd/>
  143. <insuseqty/>
  144. <setuseiodd/>
  145. <setusegoodcd/>
  146. <setuseqty/>
  147. <count/>
  148. </temp>
  149. <rexprnt>
  150. <dyestoclist>
  151. <srchiodd/>
  152. <srchsectcd/>
  153. <srchexcuroomgrp/>
  154. <srchsudept/>
  155. </dyestoclist>
  156. </rexprnt>
  157. <init>
  158. <cmb_info2/>
  159. <excuroomcdlist/>
  160. </init>
  161. </root>
  162. </instance>
  163. <script type="javascript" ev:event="xforms-ready">
  164. <![CDATA[
  165. aezfSetSuppDeptcd();
  166. model.setValue("/root/send/srchfromdd", getCurrentDate());
  167. model.setValue("/root/send/srchsuppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
  168. model.removeNodeset("/root/main/mainlist");
  169. //model.removeNodeset("/root/main/speclist/item");
  170. astGetComboList( new Array("X0001"), new Array("/root/init/cmb_info2") );
  171. submit("TRAEA01301");
  172. cmb_sectcd.select(1);
  173. //조회
  174. rdo_gubun.value = "T"; //전체
  175. getDyeList();
  176. grd_dyelist.frozenCols = 6;
  177. //btn_req.disible = true;
  178. model.refresh();
  179. ]]>
  180. </script>
  181. <submission id="TRAEQ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/">
  182. <script type="javascript" ev:event="xforms-submit-done">
  183. <![CDATA[
  184. var rowcnt = grd_mainlist.rows;
  185. for(var i = 0; i < rowcnt; i++ )
  186. {
  187. if(model.getValue("/root/tmp/rem") == "")
  188. {
  189. model.setValue("/root/tmp/rem", model.getValue("/root/main/mainlist[" + i + "]/rem"));
  190. }
  191. }
  192. sortGrid(grd_mainlist);
  193. ]]>
  194. </script>
  195. </submission>
  196. <submission id="TRAEB03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodinfo"/>
  197. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/cmb_info"/>
  198. <submission id="TRAEB03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/goodlist"/>
  199. <submission id="TRAEB03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/mainlist"/>
  200. <submission id="TXAEB03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
  201. <submission id="TRAEQ01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/goodlist"/>
  202. <submission id="TRAEA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/excuroomcdlist"/>
  203. <submission id="TXAEB03403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
  204. <submission id="TXAEB03404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
  205. <submission id="TRAEB03403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dyecdpamlist"/>
  206. <submission id="TRAEA01306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info2"/>
  207. <submission id="TRAEB03408" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dyestoclist"/>
  208. <submission id="TXAEB03406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
  209. <submission id="TRAEA00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list2"/>
  210. <submission id="TRAAA00001"/>
  211. </model>
  212. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  213. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  214. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  215. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  216. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  217. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  218. <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
  219. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  220. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  221. <script type="javascript">
  222. <![CDATA[
  223. function getDyeList()
  224. {
  225. btn_req.disabled = false;
  226. btn_reqcnl.disabled = false;
  227. btn_save.disabled = false;
  228. if( model.getValue("/root/send/srchfromdd") == "" ){
  229. messageBox("입고일자를", "I007");
  230. return;
  231. }
  232. if( model.getValue("/root/send/srchsectcd") == "" ){
  233. messageBox("검사실을", "I007");
  234. return;
  235. }
  236. var gubun = model.getValue("/root/send/srchgubun") ;
  237. if ( gubun == "S") { //미신청
  238. btn_addrow.disabled = false;
  239. btn_delrow.disabled = false;
  240. btn_reqcnl.disabled = true;
  241. btn_in.disabled = true;
  242. grd_dyelist.colDisabled ( grd_dyelist.colRef('demand')) = false;
  243. grd_dyelist.colDisabled ( grd_dyelist.colRef('outgo')) = true;
  244. } else if ( gubun == "C") { //청구취소
  245. btn_addrow.disabled = false;
  246. btn_delrow.disabled = false;
  247. btn_reqcnl.disabled = true;
  248. btn_in.disabled = true;
  249. grd_dyelist.colDisabled ( grd_dyelist.colRef('demand')) = false;
  250. grd_dyelist.colDisabled ( grd_dyelist.colRef('outgo')) = true;
  251. } else if ( gubun == "R") { //청구
  252. btn_addrow.disabled = true;
  253. btn_delrow.disabled = true;
  254. btn_save.disabled = true;
  255. btn_req.disabled = true;
  256. btn_reqcnl.disabled = false;
  257. btn_in.disabled = true;
  258. grd_dyelist.colDisabled ( grd_dyelist.colRef('demand')) = true;
  259. grd_dyelist.colDisabled ( grd_dyelist.colRef('outgo')) = true;
  260. } else if ( gubun == "O") { //청구확인
  261. btn_addrow.disabled = true;
  262. btn_delrow.disabled = true;
  263. btn_save.disabled = true;
  264. btn_req.disabled = true;
  265. btn_reqcnl.disabled = true;
  266. btn_in.disabled = false;
  267. grd_dyelist.colDisabled ( grd_dyelist.colRef('demand')) = true;
  268. grd_dyelist.colDisabled ( grd_dyelist.colRef('outgo')) = false;
  269. } else if ( gubun == "I") { //수령
  270. btn_addrow.disabled = true;
  271. btn_delrow.disabled = true;
  272. btn_save.disabled = true;
  273. btn_req.disabled = true;
  274. btn_reqcnl.disabled = true;
  275. btn_in.disabled = true;
  276. grd_dyelist.colDisabled ( grd_dyelist.colRef('demand')) = true;
  277. grd_dyelist.colDisabled ( grd_dyelist.colRef('outgo')) = true;
  278. } else if ( gubun == "T") { //전체
  279. btn_addrow.disabled = true;
  280. btn_delrow.disabled = true;
  281. btn_save.disabled = true;
  282. btn_req.disabled = true;
  283. btn_reqcnl.disabled = true;
  284. btn_in.disabled = true;
  285. grd_dyelist.colDisabled ( grd_dyelist.colRef('demand')) = true;
  286. grd_dyelist.colDisabled ( grd_dyelist.colRef('outgo')) = true;
  287. }
  288. model.setValue("/root/send/srchtodd", model.getValue("/root/send/srchfromdd"));
  289. if (submit("TRAEB03408") ) {
  290. if( model.getValue("/root/main/dyestoclist/item[1]/srchflag") == "2" ){ // 데이터가 없을경우 활성화.
  291. for(var a = 1 ; a <= grd_dyelist.rows ; a++ ){
  292. grd_dyelist.addStatus( a ,"insert");
  293. }
  294. }
  295. }
  296. //model.refresh();
  297. }
  298. ]]>
  299. </script>
  300. </xhtml:head>
  301. <xhtml:body pagewidth="1210" pageheight="780" style="margin-left:7; margin-top:0; margin-right:8; margin-bottom:0; ">
  302. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  303. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:205px; height:15px; ">조영제/재료 청구 관리</caption>
  304. </group>
  305. <group id="group2" scroll="auto" style="left:0px; top:15px; width:1195px; height:730px; ">
  306. <group id="group4" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  307. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  308. <caption id="caption19" class="search_name" style="left:10px; top:9px; width:105px; height:17px; ">조회일자 :</caption>
  309. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:95px; top:8px; width:90px; height:19px; "/>
  310. <line id="line6" class="line_4" style="x1:1116px; y1:6px; x2:1116px; y2:28px; "/>
  311. <caption id="caption20" class="search_name" style="left:205px; top:8px; width:83px; height:17px; ">검사실 :</caption>
  312. <button id="btn_retrieve" class="btn1_letter2" navindex="5" style="left:1129px; top:7px; width:56px; height:22px; ">
  313. <caption>조회</caption>
  314. <script type="javascript" ev:event="DOMActivate">
  315. <![CDATA[
  316. getDyeList();
  317. ]]>
  318. </script>
  319. </button>
  320. <select1 id="cmb_sectcd" ref="/root/send/srchsectcd" navindex="4" appearance="minimal" style="left:285px; top:8px; width:187px; height:19px; ">
  321. <choices>
  322. <itemset nodeset="/root/cmb_info/initexcuroomgrp2">
  323. <label ref="excuroomgrpcdnm"/>
  324. <value ref="excuroomgrpcdid"/>
  325. </itemset>
  326. </choices>
  327. <script type="javascript" ev:event="xforms-value-changed">
  328. <![CDATA[
  329. model.setValue("/root/send/excuroomcd", model.getValue("/root/send/srchsectcd"));
  330. model.removeNodeset("/root/main/list2/item");
  331. if (submit("TRAEA00202")){
  332. model.setValue("/root/send/excuroomcd", "");
  333. // if (grd_curerlist.rows > 1){
  334. // for (var i = 1; i < grd_curerlist.rows; i ++){
  335. // model.setValue("/root/main/list2/item[" + i + "]/basecdflagdesc", model.getValue("/root/main/list2/item[" + i + "]/basecd"));
  336. // }
  337. // }
  338. }
  339. model.refresh();
  340. ]]>
  341. </script>
  342. </select1>
  343. <select1 id="rdo_gubun" ref="/root/send/srchgubun" appearance="full" cols="7" overflow="visible" style="left:555px; top:10px; width:350px; height:20px; border-style:none; ">
  344. <choices>
  345. <item>
  346. <label>전체</label>
  347. <value>T</value>
  348. </item>
  349. <item>
  350. <label>미신청</label>
  351. <value>S</value>
  352. </item>
  353. <item>
  354. <label>청구취소</label>
  355. <value>C</value>
  356. </item>
  357. <item>
  358. <label>청구</label>
  359. <value>R</value>
  360. </item>
  361. <item>
  362. <label>청구확인</label>
  363. <value>O</value>
  364. </item>
  365. <item>
  366. <label>수령</label>
  367. <value>I</value>
  368. </item>
  369. </choices>
  370. </select1>
  371. <caption id="caption2" class="search_name" style="left:490px; top:10px; width:83px; height:17px; ">구분 :</caption>
  372. </group>
  373. <caption id="caption22" class="tit_2" style="left:0px; top:58px; width:105px; height:13px; ">입출고 현황</caption>
  374. <line id="line7" class="line_1" style="x1:0px; y1:74px; x2:1193px; y2:74px; "/>
  375. <button id="btn_excsave" class="btn2_letter4" style="left:490px; top:50px; width:64px; height:19px; ">
  376. <caption>엑셀저장</caption>
  377. <script type="javascript" ev:event="DOMActivate">
  378. <![CDATA[
  379. var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls"); // 2009-07-01 엑셀저장 두번째 저장 실패 오류 확인 두번째 테스트
  380. if (filename != "") {
  381. grd_dyelist.saveExcel(filename);
  382. }
  383. ]]>
  384. </script>
  385. </button>
  386. <button id="btn_delrow" class="btn2_letter3" style="left:609px; top:50px; width:53px; height:19px; ">
  387. <caption>행삭제</caption>
  388. <script type="javascript" ev:event="onclick">
  389. <![CDATA[
  390. // grd_goodlist.addStatus(grd_goodlistt.row,"delete");
  391. deleteSelectedRows(grd_dyelist, true);
  392. ]]>
  393. </script>
  394. </button>
  395. <button id="btn_addrow" class="btn2_letter3" style="left:555px; top:50px; width:53px; height:19px; ">
  396. <caption>행추가</caption>
  397. <script type="javascript" ev:event="DOMActivate">
  398. <![CDATA[
  399. grd_dyelist.addRow();
  400. grd_dyelist.row = grd_dyelist.bottomRow;
  401. //var cnt = parseInt(grd_dyelist.row);
  402. //grd_dyelist.isReadOnly(cnt, 5) = true;
  403. ]]>
  404. </script>
  405. </button>
  406. <button id="btn_save" class="btn3_letter2" style="left:695px; top:50px; width:56px; height:22px; ">
  407. <caption>저장</caption>
  408. <script type="javascript" ev:event="DOMActivate">
  409. <![CDATA[
  410. var cnt = getNodesetCount("/root/main/dyestoclist/item");
  411. if( cnt > 0 ) {
  412. for( var i= 1; i <= grd_dyelist.rows; i++){
  413. model.makeValue("/root/main/dyestoclist/item[" + i + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
  414. model.makeValue("/root/main/dyestoclist/item[" + i + "]/gubun", model.getValue("/root/send/srchgubun") );
  415. }
  416. if( model.getValue("/root/send/srchfromdd") == "" ){
  417. messageBox("입고일자를", "I007");
  418. } else {
  419. if( messageBox("조영제 재고정보를","Q002")==6 ) {
  420. model.setValue("/root/send/req/data1", grd_dyelist.getUpdateData());
  421. submit("TXAEB03406");
  422. getDyeList();
  423. }
  424. }
  425. }else{
  426. messageBox("저장할 입고정보가", "I004");
  427. }
  428. ]]>
  429. </script>
  430. </button>
  431. <button id="btn_req" class="btn3_letter2" style="left:840px; top:50px; width:56px; height:22px; ">
  432. <caption>청구</caption>
  433. <script type="javascript" ev:event="DOMActivate">
  434. <![CDATA[
  435. var cnt = getNodesetCount("/root/main/dyestoclist/item");
  436. if( cnt > 0 ) {
  437. for( var i = 1; i <= cnt; i++){
  438. var demand = model.getValue("/root/main/dyestoclist/item[" + i + "]/demand") ;
  439. if ( demand == null || demand == "" || demand == "0") {
  440. messageBox("청구량 정보가 0이거나 없습니다.", "E016");
  441. return;
  442. }
  443. model.setValue("/root/main/dyestoclist/item[" + i + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
  444. model.setValue("/root/main/dyestoclist/item[" + i + "]/gubun", "R");
  445. grd_dyelist.addStatus(i, "update");
  446. }
  447. grd_dyelist.refresh();
  448. //alert( grd_dyelist.getUpdateData());
  449. if( messageBox("조영제 청구를","Q002")==6 ) {
  450. model.setValue("/root/send/req/data1", grd_dyelist.getUpdateData());
  451. submit("TXAEB03406");
  452. rdo_gubun.value = "R"; //불출 신청
  453. getDyeList();
  454. }
  455. }else{
  456. messageBox("저장할 청구정보가", "I004");
  457. }
  458. ]]>
  459. </script>
  460. </button>
  461. <button id="btn_in" class="btn3_letter4" style="left:1025px; top:50px; width:80px; height:22px; ">
  462. <caption>수령확인</caption>
  463. <script type="javascript" ev:event="DOMActivate">
  464. <![CDATA[
  465. var cnt = getNodesetCount("/root/main/dyestoclist/item");
  466. //alert("cnt = " + cnt);
  467. if( cnt > 0 ) {
  468. for( var i = 1; i <= cnt; i++){
  469. var outgo = model.getValue("/root/main/dyestoclist/item[" + i + "]/outgo") ;
  470. if ( outgo == null || outgo == "" || outgo == "0" ) {
  471. messageBox("수령확인량 장보가가 0이거나 없습니다.", "E016");
  472. return;
  473. }
  474. model.setValue("/root/main/dyestoclist/item[" + i + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
  475. model.setValue("/root/main/dyestoclist/item[" + i + "]/gubun", "I");
  476. grd_dyelist.addStatus(i, "update");
  477. }
  478. grd_dyelist.refresh();
  479. //alert( grd_dyelist.getUpdateData());
  480. if( messageBox("조영제 수령확인을","Q002")==6 ) {
  481. model.setValue("/root/send/req/data1", grd_dyelist.getUpdateData());
  482. submit("TXAEB03406");
  483. rdo_gubun.value = "I"; //수령
  484. getDyeList();
  485. }
  486. }else{
  487. messageBox("저장할 수령확인정보가", "I004");
  488. }
  489. ]]>
  490. </script>
  491. </button>
  492. <datagrid id="grd_dyelist" nodeset="/root/main/dyestoclist/item" caption="조영제/재료코드^조영제/재료명^규격(ml)^청구량^수령량^상태^청구자1^청구자^입출고일자^청구일자^청구일자^확인자id^청구확인자^청구확인일자^청구확인일자^수령자id^수령자^수령일자^수령일자^비고^caption2^caption3^caption4" colsep="^" colwidth="97, 312, 55, 62, 62, 66, 56, 66, 100, 70, 54, 54, 68, 62, 57, 52, 53, 66, 59, 189, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:79px; width:1193px; height:646px; ">
  493. <col ref="goodcd" type="inputbutton" style="text-align:left; padding-left:10; "/>
  494. <col ref="goodnm" type="output" style="text-align:left; padding-left:10; "/>
  495. <col ref="speccd" type="output" format="#.#" style="text-align:right; padding-right:20; "/>
  496. <col ref="demand" type="input" format="##.#" style="text-align:right; padding-right:20; "/>
  497. <col ref="outgo" type="input" format="##.#" style="text-align:right; padding-right:20; "/>
  498. <col ref="gubun" type="combo" style="text-align:center; ">
  499. <choices>
  500. <item>
  501. <label>미신청</label>
  502. <value>S</value>
  503. </item>
  504. <item>
  505. <label>청구</label>
  506. <value>R</value>
  507. </item>
  508. <item>
  509. <label>청구취소</label>
  510. <value>C</value>
  511. </item>
  512. <item>
  513. <label>청구확인</label>
  514. <value>O</value>
  515. </item>
  516. <item>
  517. <label>수령</label>
  518. <value>I</value>
  519. </item>
  520. </choices>
  521. </col>
  522. <col ref="reqid" type="output" visibility="hidden"/>
  523. <col ref="reqnm" type="output"/>
  524. <col ref="iodd" visibility="hidden"/>
  525. <col ref="reqdd"/>
  526. <col ref="reqtm"/>
  527. <col ref="outid" type="output" visibility="hidden"/>
  528. <col ref="outnm" type="output"/>
  529. <col ref="outdd"/>
  530. <col ref="outtm"/>
  531. <col ref="recid" type="output" visibility="hidden"/>
  532. <col ref="recnm" type="output"/>
  533. <col ref="recdd"/>
  534. <col ref="rectm"/>
  535. <col ref="rem" type="input"/>
  536. <col ref="sectcd" visibility="hidden"/>
  537. <col ref="iodd" visibility="hidden"/>
  538. <col ref="suppdeptcd" visibility="hidden"/>
  539. <script type="javascript" ev:event="onbuttonclick">
  540. <![CDATA[
  541. var colidx = grd_dyelist.col;
  542. if( grd_dyelist.colAttribute(colidx, "ref") == "goodcd" ){
  543. modal("SPAEB00401", "", "200", "200", "popup", "/root/hidden/pseursrvinfo", "/root/init/pseursrvinfo");
  544. model.refresh();
  545. var selectedrow = grd_dyelist.selectedCells.item(0).row;
  546. if(model.getValue("/root/temp/goodcd") != "")
  547. {
  548. model.makeValue("/root/main/dyestoclist/item[" + selectedrow + "]/goodcd", model.getValue("/root/temp/goodcd"));
  549. model.makeValue("/root/main/dyestoclist/item[" + selectedrow + "]/goodnm", model.getValue("/root/temp/goodnm"));
  550. model.makeValue("/root/main/dyestoclist/item[" + selectedrow + "]/speccd", model.getValue("/root/temp/speccd"));
  551. }
  552. model.setValue("/root/temp/goodcd", "");
  553. }
  554. ]]>
  555. </script>
  556. </datagrid>
  557. <button id="btn_reqcnl" class="btn4_letter4" style="left:895px; top:50px; width:104px; height:22px; ">
  558. <caption>청구취소</caption>
  559. <script type="javascript" ev:event="DOMActivate">
  560. <![CDATA[
  561. var cnt = getNodesetCount("/root/main/dyestoclist/item");
  562. //alert("cnt = " + cnt);
  563. if( cnt > 0 ) {
  564. for( var i = 1; i <= cnt; i++){
  565. model.setValue("/root/main/dyestoclist/item[" + i + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
  566. //청구취소
  567. model.setValue("/root/main/dyestoclist/item[" + i + "]/gubun", "C");
  568. grd_dyelist.addStatus(i, "update");
  569. }
  570. grd_dyelist.refresh();
  571. if( messageBox("조영제 청구취소를","Q002")==6 ) {
  572. model.setValue("/root/send/req/data1", grd_dyelist.getUpdateData());
  573. submit("TXAEB03406");
  574. rdo_gubun.value = "C"; //미신청
  575. getDyeList();
  576. }
  577. }else{
  578. messageBox("저장할 청구취소정보가", "I004");
  579. }
  580. ]]>
  581. </script>
  582. </button>
  583. </group>
  584. <group id="grp_btn" style="left:0px; top:745px; width:1195px; height:25px; ">
  585. <button id="button2" class="btn6_letter2" navindex="6" visibility="hidden" style="left:0px; top:0px; width:56px; height:22px; ">
  586. <caption>출력</caption>
  587. <script type="javascript" ev:event="DOMActivate">
  588. <![CDATA[
  589. var cnt = getNodesetCount("/root/main/dyestoclist/item");
  590. for( var i = 1; i <= cnt; i++){
  591. model.makeNode("/root/rexprnt/dyestoclist/item[" + i + "]");
  592. model.copyNode("/root/rexprnt/dyestoclist/item[" + i + "]", "/root/main/dyestoclist/item["+ i +"]");
  593. model.setValue("/root/rexprnt/dyestoclist/item[" + i + "]/goodcd", grd_dyelist.labelMatrix(i+1,2));
  594. model.makeValue("/root/rexprnt/dyestoclist/item[" + i + "]/goodcdd", model.getValue("/root/main/dyestoclist/item["+ i +"]/goodcd"));
  595. }
  596. model.setValue("/root/rexprnt/dyestoclist/srchiodd", ipt_fromdd.label + " ~ " + ipt_todd.label );
  597. if( model.getValue("/root/send/srchexcuroomgrp") != "" ){
  598. model.setValue("/root/rexprnt/dyestoclist/srchexcuroomgrp", cmb_excuroomgrp.label );
  599. }else{
  600. model.setValue("/root/rexprnt/dyestoclist/srchexcuroomgrp", "" );
  601. }
  602. if( model.getValue("/root/send/srchsectcd" ) != "" ){
  603. model.setValue("/root/rexprnt/dyestoclist/srchsectcd", cmb_sectcd.label );
  604. }else{
  605. model.setValue("/root/rexprnt/dyestoclist/srchsectcd", "" );
  606. }
  607. model.setValue("/root/rexprnt/dyestoclist/srchsudept", getUserInfo("dutplcenm") );
  608. model.refresh();
  609. exeReportPreview("RPAEB03401", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  610. model.removeNodeset("/root/rexprnt/dyestoclist/item");
  611. ]]>
  612. </script>
  613. </button>
  614. </group>
  615. </xhtml:body>
  616. </xhtml:html>