SMMNP05200_CCR물품불출관리.xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  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. <init>
  10. <oproomlist>
  11. <oproomcd/>
  12. <oproomnm/>
  13. </oproomlist>
  14. </init>
  15. <main>
  16. <cond>
  17. <reqfromdd/>
  18. <reqtodd/>
  19. <oproomcd/>
  20. <deliveflag>0</deliveflag>
  21. <goodcd/>
  22. <allsizespecid/>
  23. <goodnm/>
  24. <cntfromdd/>
  25. <cnttodd/>
  26. </cond>
  27. <acmlgooddelivelist>
  28. <delivereqdd/>
  29. <delivedd/>
  30. <oproomcd/>
  31. <useflag/>
  32. <goodcd/>
  33. <allsizespecid/>
  34. <goodalias/>
  35. <prodcmpynm/>
  36. <unit/>
  37. <ccrstocqty/>
  38. <safestocqty/>
  39. <stocqty/>
  40. <sumqty/>
  41. <reqqty/>
  42. <acmldeliveqty/>
  43. <chkflag/>
  44. <delivecnfm/>
  45. <acmlbaseqty/>
  46. <existyn/>
  47. </acmlgooddelivelist>
  48. <deliveinfo>
  49. <delivemastinfo>
  50. <delivereqdd/>
  51. <reqno/>
  52. <oproomno/>
  53. <useflag/>
  54. <goodcd/>
  55. <allsizespecid/>
  56. <goodnm/>
  57. <goodspec/>
  58. <goodmodel/>
  59. <reqqty/>
  60. <acmldeliveqty/>
  61. <stocqty/>
  62. <delivecnfm/>
  63. </delivemastinfo>
  64. <delivedetlinfo>
  65. <delivedd/>
  66. <deliveno/>
  67. <useqty/>
  68. <baseuseqty/>
  69. <deliveqty/>
  70. <spreqty/>
  71. </delivedetlinfo>
  72. </deliveinfo>
  73. </main>
  74. <send>
  75. <reqdata/>
  76. <savedata/>
  77. </send>
  78. <hidden/>
  79. <temp>
  80. <refflag/>
  81. <kk/>
  82. </temp>
  83. </root>
  84. </instance>
  85. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  90. <script type="javascript" src="../../../emr/opanstweb/js/SMMNP046.js"/>
  91. <submission id="TRMNP04601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/acmlgooddelivelist"/>
  92. <submission id="TRMNP04602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acmlgooddelivelist"/>
  93. <submission id="TXMNP04601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acmlgooddelivelist"/>
  94. <submission id="TXMNP04602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acmlgooddelivelist"/>
  95. <script type="javascript" ev:event="xforms-ready">
  96. <![CDATA[
  97. submit("TRMNP04603");
  98. btn_saveexcel.disabled = true;
  99. grd_acmlgooddelivelist.fixedcellcheckbox(0, 16) = true;
  100. model.removeNodeset("/root/main/acmlgooddelivelist");
  101. var curtDate = getCurrentDate();
  102. curtDate = curtDate.substr(0, 8);
  103. var bfDate1 = fGetDateAdd(8);
  104. var bfDate2 = fGetDateAdd(1);
  105. model.setValue("/root/main/cond/reqfromdd", curtDate);
  106. model.setValue("/root/main/cond/reqtodd", curtDate);
  107. model.setValue("/root/main/cond/cntfromdd", bfDate1);
  108. model.setValue("/root/main/cond/cnttodd", bfDate2);
  109. model.copyNode("/root/send/reqdata", "/root/main/cond");
  110. var flagval = model.getValue("/root/temp/kk");
  111. if( flagval == "Y" ) {
  112. btn_delivecnfm.visible = true;
  113. btn_reqsave.visible = false;
  114. submit("TRMNP04602");
  115. }else {
  116. rdo_deliveflagmngt.visible = false;
  117. btn_delivecnfm.visible = false;
  118. btn_reqsave.visible = true;
  119. submit("TRMNP04601");
  120. }
  121. ]]>
  122. </script>
  123. <submission id="TRMNP04603" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/oproomlist"/>
  124. </model>
  125. </xhtml:head>
  126. <xhtml:body guideline="1,1197;2,841;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  127. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  128. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:248px; height:14px; ">CCR물품 불출관리</caption>
  129. </group>
  130. <group id="grp_biz" scroll="auto" style="left:0px; top:18px; width:1195px; height:747px; ">
  131. <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:60px; vertical-align:top; ">
  132. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  133. <caption id="caption26" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">사용일자 :</caption>
  134. <button id="button1" class="btn1_letter2" style="left:1030px; top:7px; width:56px; height:22px; ">
  135. <caption>조회</caption>
  136. <script type="javascript" ev:event="DOMActivate">
  137. <![CDATA[
  138. model.resetInstanceNode("/root/main/deliveinfo");
  139. var fromdd = model.getValue("/root/main/cond/reqfromdd");
  140. var todd = model.getValue("/root/main/cond/reqtodd");
  141. if ( ( fromdd == "" )||( todd == "" ) ) {
  142. messageBox("의뢰일자를 선택 하지", "E007");
  143. model.setFocus("ipt_fromdd");
  144. }else {
  145. model.copyNode("/root/send/reqdata", "/root/main/cond");
  146. var flagval = model.getValue("/root/temp/kk");
  147. if( flagval == "Y" ) {
  148. btn_delivecnfm.visible = true;
  149. btn_reqsave.visible = false;
  150. grd_acmlgooddelivelist.colAttribute(2, "visibility") = "visible";
  151. submit("TRMNP04602");
  152. }else {
  153. btn_delivecnfm.visible = false;
  154. btn_reqsave.visible = true;
  155. // grd_acmlgooddelivelist.colAttribute(2, "visibility") = "hidden";
  156. submit("TRMNP04601");
  157. }
  158. grd_acmlgooddelivelist.autoResize = true;
  159. var refMsg = model.getValue("/root/properties/error/msg");
  160. var refMsgCnt = refMsg.substring(0, 1);
  161. if( refMsgCnt == "0" ) {
  162. messageBox("조회된 결과가", "I004");
  163. model.setFocus("ipt_fromdd");
  164. }
  165. }
  166. ]]>
  167. </script>
  168. </button>
  169. <button id="btn_saveexcel" class="btn1_letter4" style="left:1092px; top:7px; width:80px; height:22px; ">
  170. <caption>엑셀저장</caption>
  171. </button>
  172. <line id="line13" class="line_4" style="x1:1020px; y1:15px; x2:1020px; y2:50px; "/>
  173. <caption id="caption1" class="search_name" style="left:380px; top:9px; width:79px; height:17px; ">수술방 :</caption>
  174. <caption id="caption3" class="search_name" style="left:15px; top:34px; width:89px; height:17px; ">물품코드 :</caption>
  175. <button id="btn_goodsear" class="icon_search" style="left:205px; top:35px; width:16px; height:16px; ">
  176. <caption/>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. var refflag = model.getValue("/root/temp/refflag");
  180. if( refflag == "1" ) { /*물품명으로 검색*/
  181. setParameter("refnm", model.getValue("/root/main/cond/goodnm"));
  182. setParameter("refflag", "1");
  183. }else if( refflag == "2" ) { /*물품코드으로 검색*/
  184. setParameter("refnm", model.getValue("/root/main/cond/goodcd"));
  185. setParameter("refflag", "2");
  186. }
  187. modal("SMMNP04460" ,"", "100", "100", "SMMNP04460", "", "");
  188. var getData = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
  189. if( getData == "") {
  190. return;
  191. }else {
  192. var getDataTemp = getData.split("|");
  193. model.setValue("/root/main/cond/goodcd", getDataTemp[0]);
  194. model.setValue("/root/main/cond/goodnm", getDataTemp[1]);
  195. model.setValue("/root/main/cond/allsizespecid", getDataTemp[2]);
  196. ipt_goodcd.refresh();
  197. ipt_goodnm.refresh();
  198. ipt_allsizespecid.refresh();
  199. model.resetInstanceNode("/root/main/deliveinfo");
  200. var fromdd = model.getValue("/root/main/cond/reqfromdd");
  201. var todd = model.getValue("/root/main/cond/reqtodd");
  202. model.copyNode("/root/send/reqdata", "/root/main/cond");
  203. var flagval = model.getValue("/root/temp/kk");
  204. if( flagval == "Y" ) {
  205. btn_delivecnfm.visible = true;
  206. btn_reqsave.visible = false;
  207. submit("TRMNP04602");
  208. }else {
  209. btn_delivecnfm.visible = false;
  210. btn_reqsave.visible = true;
  211. submit("TRMNP04601");
  212. }
  213. grd_acmlgooddelivelist.autoResize = true;
  214. var refMsg = model.getValue("/root/properties/error/msg");
  215. var refMsgCnt = refMsg.substring(0, 1);
  216. if( refMsgCnt == "0" ) {
  217. messageBox("조회된 결과가", "I004");
  218. model.setFocus("ipt_fromdd");
  219. }
  220. }
  221. ]]>
  222. </script>
  223. </button>
  224. <input id="ipt_goodcd" ref="/root/main/cond/goodcd" class="input_search" style="left:102px; top:34px; width:100px; height:19px; text-align:center; ">
  225. <script type="javascript" ev:event="onkeyup">
  226. <![CDATA[
  227. model.setValue("/root/temp/refflag", "2");
  228. inputEnterKey("btn_goodsear", "DOMActivate");
  229. ]]>
  230. </script>
  231. </input>
  232. <caption id="caption11" class="search_n_b" style="left:206px; top:11px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  233. <input id="ipt_fromdd" ref="/root/main/cond/reqfromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:102px; top:8px; width:100px; height:19px; text-align:center; ">
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. model.resetInstanceNode("/root/main/deliveinfo");
  237. var fromdd = model.getValue("/root/main/cond/reqfromdd");
  238. var todd = model.getValue("/root/main/cond/reqtodd");
  239. if ( ( fromdd == "" )||( todd == "" ) ) {
  240. messageBox("의뢰일자를 선택 하지", "E007");
  241. model.setFocus("ipt_fromdd");
  242. }else {
  243. model.copyNode("/root/send/reqdata", "/root/main/cond");
  244. var flagval = model.getValue("/root/temp/kk");
  245. if( flagval == "Y" ) {
  246. btn_delivecnfm.visible = true;
  247. btn_reqsave.visible = false;
  248. submit("TRMNP04602");
  249. }else {
  250. btn_delivecnfm.visible = false;
  251. btn_reqsave.visible = true;
  252. submit("TRMNP04601");
  253. }
  254. grd_acmlgooddelivelist.autoResize = true;
  255. var refMsg = model.getValue("/root/properties/error/msg");
  256. var refMsgCnt = refMsg.substring(0, 1);
  257. if( refMsgCnt == "0" ) {
  258. messageBox("조회된 결과가", "I004");
  259. model.setFocus("ipt_fromdd");
  260. }
  261. }
  262. ]]>
  263. </script>
  264. </input>
  265. <input id="ipt_todd" ref="/root/main/cond/reqtodd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:222px; top:8px; width:100px; height:19px; text-align:center; ">
  266. <script type="javascript" ev:event="xforms-value-changed">
  267. <![CDATA[
  268. model.resetInstanceNode("/root/main/deliveinfo");
  269. var fromdd = model.getValue("/root/main/cond/reqfromdd");
  270. var todd = model.getValue("/root/main/cond/reqtodd");
  271. if ( ( fromdd == "" )||( todd == "" ) ) {
  272. messageBox("의뢰일자를 선택 하지", "E007");
  273. model.setFocus("ipt_fromdd");
  274. }else {
  275. model.copyNode("/root/send/reqdata", "/root/main/cond");
  276. var flagval = model.getValue("/root/temp/kk");
  277. if( flagval == "Y" ) {
  278. btn_delivecnfm.visible = true;
  279. btn_reqsave.visible = false;
  280. submit("TRMNP04602");
  281. }else {
  282. btn_delivecnfm.visible = false;
  283. btn_reqsave.visible = true;
  284. submit("TRMNP04601");
  285. }
  286. grd_acmlgooddelivelist.autoResize = true;
  287. var refMsg = model.getValue("/root/properties/error/msg");
  288. var refMsgCnt = refMsg.substring(0, 1);
  289. if( refMsgCnt == "0" ) {
  290. messageBox("조회된 결과가", "I004");
  291. model.setFocus("ipt_fromdd");
  292. }
  293. }
  294. ]]>
  295. </script>
  296. </input>
  297. <select1 id="combo1" ref="/root/main/cond/oproomcd" class="combo_search" appearance="minimal" style="left:455px; top:8px; width:110px; height:19px; text-align:left; ">
  298. <choices>
  299. <itemset nodeset="/root/init/oproomlist">
  300. <label ref="oproomnm"/>
  301. <value ref="oproomcd"/>
  302. </itemset>
  303. </choices>
  304. <script type="javascript" ev:event="xforms-value-changed">
  305. <![CDATA[
  306. model.resetInstanceNode("/root/main/deliveinfo");
  307. var fromdd = model.getValue("/root/main/cond/reqfromdd");
  308. var todd = model.getValue("/root/main/cond/reqtodd");
  309. if ( ( fromdd == "" )||( todd == "" ) ) {
  310. messageBox("의뢰일자를 선택 하지", "E007");
  311. model.setFocus("ipt_fromdd");
  312. }else {
  313. model.copyNode("/root/send/reqdata", "/root/main/cond");
  314. var flagval = model.getValue("/root/temp/kk");
  315. if( flagval == "Y" ) {
  316. btn_delivecnfm.visible = true;
  317. btn_reqsave.visible = false;
  318. submit("TRMNP04602");
  319. }else {
  320. btn_delivecnfm.visible = false;
  321. btn_reqsave.visible = true;
  322. submit("TRMNP04601");
  323. }
  324. grd_acmlgooddelivelist.autoResize = true;
  325. var refMsg = model.getValue("/root/properties/error/msg");
  326. var refMsgCnt = refMsg.substring(0, 1);
  327. if( refMsgCnt == "0" ) {
  328. messageBox("조회된 결과가", "I004");
  329. model.setFocus("ipt_fromdd");
  330. }
  331. }
  332. ]]>
  333. </script>
  334. </select1>
  335. <input id="ipt_goodnm" ref="/root/main/cond/goodnm" class="input_search" style="left:285px; top:35px; width:280px; height:19px; ">
  336. <script type="javascript" ev:event="onkeyup">
  337. <![CDATA[
  338. model.setValue("/root/temp/refflag", "1");
  339. inputEnterKey("btn_goodsear", "DOMActivate");
  340. ]]>
  341. </script>
  342. </input>
  343. <input id="ipt_allsizespecid" ref="/root/main/cond/allsizespecid" class="input_search" style="left:230px; top:35px; width:45px; height:19px; text-align:center; "/>
  344. <caption id="caption4" class="search_name" style="left:595px; top:34px; width:89px; height:17px; ">불출상태 :</caption>
  345. <select1 id="rdo_deliveflag" ref="/root/main/cond/deliveflag" class="radio_search" overflow="visible" appearance="full" cols="3" style="left:685px; top:34px; width:160px; height:20px; border-style:none; ">
  346. <choices>
  347. <item>
  348. <label>전체</label>
  349. <value>0</value>
  350. </item>
  351. <item>
  352. <label>미확정</label>
  353. <value>1</value>
  354. </item>
  355. <item>
  356. <label>확정</label>
  357. <value>2</value>
  358. </item>
  359. </choices>
  360. <script type="javascript" ev:event="xforms-value-changed">
  361. <![CDATA[
  362. model.resetInstanceNode("/root/main/deliveinfo");
  363. var fromdd = model.getValue("/root/main/cond/reqfromdd");
  364. var todd = model.getValue("/root/main/cond/reqtodd");
  365. if ( ( fromdd == "" )||( todd == "" ) ) {
  366. messageBox("의뢰일자를 선택 하지", "E007");
  367. model.setFocus("ipt_fromdd");
  368. }else {
  369. model.copyNode("/root/send/reqdata", "/root/main/cond");
  370. var flagval = model.getValue("/root/temp/kk");
  371. if( flagval == "Y" ) {
  372. btn_delivecnfm.visible = true;
  373. btn_reqsave.visible = false;
  374. submit("TRMNP04602");
  375. }else {
  376. btn_delivecnfm.visible = false;
  377. btn_reqsave.visible = true;
  378. submit("TRMNP04601");
  379. }
  380. grd_acmlgooddelivelist.autoResize = true;
  381. var refMsg = model.getValue("/root/properties/error/msg");
  382. var refMsgCnt = refMsg.substring(0, 1);
  383. if( refMsgCnt == "0" ) {
  384. messageBox("조회된 결과가", "I004");
  385. model.setFocus("ipt_fromdd");
  386. }
  387. }
  388. ]]>
  389. </script>
  390. </select1>
  391. <button id="btn_delivecnfm" class="btn4_letter4" style="left:1092px; top:32px; width:80px; height:22px; ">
  392. <caption>불출확정</caption>
  393. <script type="javascript" ev:event="DOMActivate">
  394. <![CDATA[
  395. var iRows = -1;
  396. var delivereqdd, delivedd, oproomcd, existyn, goodcd, allsizespecid, reqno, reqqty, acmldeliveqty, chkflag;
  397. var cnt = 0;
  398. iRows = grd_acmlgooddelivelist.rows;
  399. var acmlgooddelivelist = "m▦rownum▦delivereqdd▦delivedd▦oproomcd▦goodcd▦allsizespecid▦reqqty▦acmldeliveqty▦reqno";
  400. for( var i = 1; i <= iRows; i++ ) {
  401. delivereqdd = model.getValue("/root/main/acmlgooddelivelist["+i+"]/delivereqdd");
  402. delivedd = model.getValue("/root/main/acmlgooddelivelist["+i+"]/delivedd");
  403. oproomcd = model.getValue("/root/main/acmlgooddelivelist["+i+"]/oproomcd");
  404. goodcd = model.getValue("/root/main/acmlgooddelivelist["+i+"]/goodcd");
  405. allsizespecid = model.getValue("/root/main/acmlgooddelivelist["+i+"]/allsizespecid");
  406. reqqty = model.getValue("/root/main/acmlgooddelivelist["+i+"]/reqqty");
  407. acmldeliveqty = model.getValue("/root/main/acmlgooddelivelist["+i+"]/acmldeliveqty");
  408. existyn = model.getValue("/root/main/acmlgooddelivelist["+i+"]/existyn");
  409. chkflag = model.getValue("/root/main/acmlgooddelivelist["+i+"]/chkflag");
  410. reqno = model.getValue("/root/main/acmlgooddelivelist["+i+"]/reqno");
  411. if( chkflag == "true" ) {
  412. if( existyn == "I" ) {
  413. acmlgooddelivelist = acmlgooddelivelist + "▩" + "i" + "▦" + i + "▦" + delivereqdd + "▦" + delivedd + "▦" + oproomcd
  414. + "▦" + goodcd + "▦" + allsizespecid + "▦" + reqqty + "▦" + acmldeliveqty + "▦" + reqno;
  415. }else {
  416. acmlgooddelivelist = acmlgooddelivelist + "▩" + "u" + "▦" + i + "▦" + delivereqdd + "▦" + delivedd + "▦" + oproomcd
  417. + "▦" + goodcd + "▦" + allsizespecid + "▦" + reqqty + "▦" + acmldeliveqty + "▦" + reqno;
  418. }
  419. cnt += 1;
  420. }
  421. }
  422. if( cnt > 0 ) {
  423. model.copyNode("/root/send/reqdata", "/root/main/cond");
  424. model.setValue("/root/send/savedata", acmlgooddelivelist);
  425. submit("TXMNP04601");
  426. if( model.getValue("/root/properties/error/msg") == "정상적으로 처리되었습니다." ) {
  427. messageBox("저장이", "I002");
  428. }
  429. }else {
  430. messageBox("선택한것이", "I004");
  431. }
  432. ]]>
  433. </script>
  434. </button>
  435. <select1 id="rdo_deliveflagmngt" ref="/root/main/cond/deliveflag" class="radio_search" overflow="visible" appearance="full" cols="4" style="left:685px; top:34px; width:160px; height:20px; border-style:none; ">
  436. <choices>
  437. <item>
  438. <label>전체</label>
  439. <value>0</value>
  440. </item>
  441. <item>
  442. <label>미확정</label>
  443. <value>1</value>
  444. </item>
  445. <item>
  446. <label>확정</label>
  447. <value>2</value>
  448. </item>
  449. </choices>
  450. <script type="javascript" ev:event="xforms-value-changed">
  451. <![CDATA[
  452. model.resetInstanceNode("/root/main/deliveinfo");
  453. var fromdd = model.getValue("/root/main/cond/reqfromdd");
  454. var todd = model.getValue("/root/main/cond/reqtodd");
  455. if ( ( fromdd == "" )||( todd == "" ) ) {
  456. messageBox("의뢰일자를 선택 하지", "E007");
  457. model.setFocus("ipt_fromdd");
  458. }else {
  459. model.copyNode("/root/send/reqdata", "/root/main/cond");
  460. var flagval = model.getValue("/root/temp/kk");
  461. if( flagval == "Y" ) {
  462. btn_delivecnfm.visible = true;
  463. btn_reqsave.visible = false;
  464. submit("TRMNP04602");
  465. }else {
  466. btn_delivecnfm.visible = false;
  467. btn_reqsave.visible = true;
  468. submit("TRMNP04601");
  469. }
  470. grd_acmlgooddelivelist.autoResize = true;
  471. var refMsg = model.getValue("/root/properties/error/msg");
  472. var refMsgCnt = refMsg.substring(0, 1);
  473. if( refMsgCnt == "0" ) {
  474. messageBox("조회된 결과가", "I004");
  475. model.setFocus("ipt_fromdd");
  476. }
  477. }
  478. ]]>
  479. </script>
  480. </select1>
  481. </group>
  482. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
  483. <datagrid id="grd_acmlgooddelivelist" nodeset="/root/main/acmlgooddelivelist" caption="의뢰일자^불출일자^수술방^사용구분^물품코드^SIZEID^물품명칭(규격,모델)^제조원^단위^CCR^안전재고^방재고^사용량^불출량^Chk^확정" colsep="^" colwidth="70, 70, 55, 65, 70, 45, 280, 80, 45, 45, 55, 50, 50, 50, 50, 45" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:80px; width:1195px; height:630px; ">
  484. <col ref="delivereqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  485. <col ref="delivedd" format="yyyy-mm-dd" style="text-align:center; "/>
  486. <col disabled="true" ref="oproomcd" type="combo" style="text-align:center; ">
  487. <choices>
  488. <itemset nodeset="/root/init/oproomlist">
  489. <label ref="oproomnm"/>
  490. <value ref="oproomcd"/>
  491. </itemset>
  492. </choices>
  493. </col>
  494. <col disabled="true" ref="useflag" type="combo" style="text-align:center; ">
  495. <choices>
  496. <item>
  497. <label>재사용</label>
  498. <value>Y</value>
  499. </item>
  500. <item>
  501. <label>분할사용</label>
  502. <value>Z</value>
  503. </item>
  504. <item>
  505. <label>1회 사용</label>
  506. <value>N</value>
  507. </item>
  508. </choices>
  509. </col>
  510. <col ref="goodcd" style="text-align:center; "/>
  511. <col ref="allsizespecid" style="text-align:center; "/>
  512. <col ref="goodalias" style="text-align:left; "/>
  513. <col ref="prodcmpynm" visibility="visible" style="text-align:left; "/>
  514. <col disabled="true" ref="unit" type="combo" style="text-align:center; ">
  515. <choices>
  516. <item>
  517. <label>each</label>
  518. <value>EA</value>
  519. </item>
  520. <item>
  521. <label>pack</label>
  522. <value>PK</value>
  523. </item>
  524. <item>
  525. <label>box</label>
  526. <value>BOX</value>
  527. </item>
  528. <item>
  529. <label>roll</label>
  530. <value>ROL</value>
  531. </item>
  532. <item>
  533. <label>set</label>
  534. <value>SET</value>
  535. </item>
  536. </choices>
  537. </col>
  538. <col ref="ccrstocqty" style="text-align:right; "/>
  539. <col ref="safestocqty" style="text-align:right; "/>
  540. <col ref="stocqty" style="text-align:right; "/>
  541. <col ref="sumqty" style="text-align:right; "/>
  542. <col ref="acmldeliveqty" type="input" style="text-align:right; "/>
  543. <col ref="chkflag" type="checkbox" style="text-align:right; "/>
  544. <col disabled="true" ref="delivecnfm" type="combo" style="text-align:center; ">
  545. <choices>
  546. <item>
  547. <label>확정</label>
  548. <value>Y</value>
  549. </item>
  550. <item>
  551. <label>미확정</label>
  552. <value>N</value>
  553. </item>
  554. <item>
  555. <label>의뢰</label>
  556. <value>R</value>
  557. </item>
  558. <item>
  559. <label>추가의뢰</label>
  560. <value>A</value>
  561. </item>
  562. </choices>
  563. </col>
  564. <col ref="acmlbaseqty" style="text-align:right; "/>
  565. <col ref="existyn" visibility="hidden"/>
  566. <script type="javascript" ev:event="xforms-value-changed">
  567. <![CDATA[
  568. var iRow = -1;
  569. var curtDate = getCurrentDate();
  570. curtDate = curtDate.substr(0, 8);
  571. iRow = grd_acmlgooddelivelist.row;
  572. if( model.getValue("/root/temp/kk") == "Y" ) {
  573. model.setValue("/root/main/acmlgooddelivelist["+ iRow +"]/delivedd", curtDate);
  574. }
  575. model.setValue("/root/main/acmlgooddelivelist["+ iRow +"]/chkflag", "true");
  576. model.refresh();
  577. ]]>
  578. </script>
  579. </datagrid>
  580. </group>
  581. </xhtml:body>
  582. </xhtml:html>