SMAEB03400_조영제재고관리.xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  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. </main>
  47. <send>
  48. <srchiodd/>
  49. <globalinstance>
  50. <instance1/>
  51. </globalinstance>
  52. <srchsectcd/>
  53. <srchgoodcd/>
  54. <srchgoodnm/>
  55. <sectcd/>
  56. <data>
  57. <iptflag/>
  58. <goodcd/>
  59. <sectcd/>
  60. <qty/>
  61. <ioflag/>
  62. <iodd/>
  63. </data>
  64. <srchdd/>
  65. </send>
  66. <cmb_info>
  67. <initexcuroomgrp2>
  68. <excuroomgrpcdid/>
  69. <excuroomgrpcdnm/>
  70. </initexcuroomgrp2>
  71. <goodlist>
  72. <item/>
  73. </goodlist>
  74. </cmb_info>
  75. <temp>
  76. <goodcd/>
  77. <goodnm/>
  78. <speccd/>
  79. <safestocqty/>
  80. <inswlniodd/>
  81. <inswlngoodcd/>
  82. <inswlnqty/>
  83. <setwlniodd/>
  84. <setwlngoodcd/>
  85. <setwlnqty/>
  86. <insuseiodd/>
  87. <insusegoodcd/>
  88. <insuseqty/>
  89. <setuseiodd/>
  90. <setusegoodcd/>
  91. <setuseqty/>
  92. </temp>
  93. </root>
  94. </instance>
  95. <script type="javascript" ev:event="xforms-ready">
  96. <![CDATA[
  97. aezfSetSuppDeptcd();
  98. model.setValue("/root/send/srchiodd", (new Date()).getDateFormat("YYYYMMDD"));
  99. model.removeNodeset("/root/main/mainlist");
  100. //model.removeNodeset("/root/main/speclist/item");
  101. model.refresh();
  102. submit("TRAEA01301");
  103. ]]>
  104. </script>
  105. <submission id="TRAEQ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/">
  106. <script type="javascript" ev:event="xforms-submit-done">
  107. <![CDATA[
  108. var rowcnt = grd_mainlist.rows;
  109. for(var i = 0; i < rowcnt; i++ )
  110. {
  111. if(model.getValue("/root/tmp/rem") == "")
  112. {
  113. model.setValue("/root/tmp/rem", model.getValue("/root/main/mainlist[" + i + "]/rem"));
  114. }
  115. }
  116. sortGrid(grd_mainlist);
  117. ]]>
  118. </script>
  119. </submission>
  120. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/cmb_info"/>
  121. <submission id="TRAEB03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/goodlist"/>
  122. <submission id="TRAEB03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/mainlist"/>
  123. <submission id="TXAEB03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
  124. <submission id="TRAEQ01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/goodlist"/>
  125. </model>
  126. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  127. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  128. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  129. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  130. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  131. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  132. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  133. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  134. <script type="javascript">
  135. <![CDATA[
  136. function getGridData() {
  137. if(model.getValue("/root/send/srchiodd") != "") {
  138. model.setValue("/root/temp/goodnm", cmb_goodcd.label);
  139. model.setValue("/root/temp/inswlnqty", "0");
  140. model.setValue("/root/temp/setwlnqty", "0");
  141. model.setValue("/root/temp/insuseqty", "0");
  142. model.setValue("/root/temp/setuseqty", "0");
  143. model.removeNodeset("/root/main/mainlist");
  144. model.removeNodeset("/root/main/goodlist/item");
  145. btn_inSave.disabled = true;
  146. btn_inUpdt.disabled = true;
  147. btn_outSave.disabled = true;
  148. btn_outUpdt.disabled = true;
  149. ipt_inswlnday.disabled = true;
  150. ipt_insuseday.disabled = true;
  151. submit("TRAEB03401");
  152. model.setValue("/root/send/srchiodd", getCurrentDate());
  153. var srchgoodcd = model.getValue("/root/send/srchgoodcd");
  154. if (srchgoodcd != "") {
  155. btn_inSave.disabled = false;
  156. btn_outSave.disabled = false;
  157. ipt_inswlnday.disabled = false;
  158. ipt_insuseday.disabled = false;
  159. }
  160. // if(model.getXPathValue("count(/root/main/mainlist/wlnlist)") > 0)
  161. // {
  162. // btn_inSave.disabled = true;
  163. // ipt_inswlnqty.disabled = true;
  164. // btn_inUpdt.disabled = false;
  165. // ipt_setwlnqty.disabled = false;
  166. // }
  167. // else
  168. // {
  169. // btn_inUpdt.disabled = true;
  170. // ipt_setwlnqty.disabled = true;
  171. // btn_inSave.disabled = false;
  172. // ipt_inswlnqty.disabled = false;
  173. // }
  174. //
  175. // if(model.getXPathValue("count(/root/main/mainlist/uselist)") > 0)
  176. // {
  177. // btn_outSave.disabled = true;
  178. // ipt_insuseqty.disabled = true;
  179. // btn_outUpdt.disabled = false;
  180. // ipt_setuseqty.disabled = false;
  181. // }
  182. // else
  183. // {
  184. // btn_outUpdt.disabled = true;
  185. // ipt_setuseqty.disabled = true;
  186. // btn_outSave.disabled = false;
  187. // ipt_insuseqty.disabled = false;
  188. // }
  189. model.refresh();
  190. }
  191. else
  192. {
  193. messageBox("날짜를", "C001");
  194. }
  195. }
  196. ]]>
  197. </script>
  198. </xhtml:head>
  199. <xhtml:body guideline="1,1195;" style="margin-left:7; margin-top:0; margin-right:8; margin-bottom:0; ">
  200. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  201. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">조영제 재고관리</caption>
  202. </group>
  203. <button id="btn_rept" class="btn4_letter4" style="left:510px; top:520px; width:80px; height:22px; ">
  204. <caption>입고저장</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. var nodecnt = model.getXPathValue("count(/root/main/mainlist)");
  208. var list1cnt = 1;
  209. var list2cnt = 1;
  210. var list3cnt = 1
  211. for(var i=1 ; i <= nodecnt; i++)
  212. {
  213. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "영상검사실")
  214. {
  215. model.makeNode("/root/tmp/rexlist/list1[" + list1cnt + "]");
  216. model.copyNode("/root/tmp/rexlist/list1[" + list1cnt +"]", "/root/main/mainlist[" + i + "]");
  217. list1cnt = list1cnt + 1;
  218. }
  219. }
  220. for(var i=1 ; i <= nodecnt; i++)
  221. {
  222. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "PET-CT실")
  223. {
  224. model.makeNode("/root/tmp/rexlist/list2[" + list2cnt + "]");
  225. model.copyNode("/root/tmp/rexlist/list2[" + list2cnt +"]", "/root/main/mainlist[" + i + "]");
  226. list2cnt = list2cnt + 1;
  227. }
  228. }
  229. for(var i=1 ; i <= nodecnt; i++)
  230. {
  231. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "치료,투약실")
  232. {
  233. model.makeNode("/root/tmp/rexlist/list3[" + list3cnt + "]");
  234. model.copyNode("/root/tmp/rexlist/list3[" + list3cnt +"]", "/root/main/mainlist[" + i + "]");
  235. list3cnt = list3cnt + 1;
  236. }
  237. }
  238. mergeRexList("/root/tmp/rexlist/list1");
  239. mergeRexList("/root/tmp/rexlist/list2");
  240. mergeRexList("/root/tmp/rexlist/list3");
  241. var patinsucnt = model.getXPathValue("sum( /root/main/mainlist/patinsucnt )");
  242. var patgnrlcnt = model.getXPathValue("sum( /root/main/mainlist/patgnrlcnt )");
  243. var testinsucnt = model.getXPathValue("sum( /root/main/mainlist/testinsucnt )");
  244. var testgnrlcnt = model.getXPathValue("sum( /root/main/mainlist/testgnrlcnt )");
  245. model.setValue("/root/tmp/rexlist/patinsucnt", patinsucnt);
  246. model.setValue("/root/tmp/rexlist/patgnrlcnt", patgnrlcnt);
  247. model.setValue("/root/tmp/rexlist/testinsucnt", testinsucnt);
  248. model.setValue("/root/tmp/rexlist/testgnrlcnt", testgnrlcnt);
  249. var ymd = model.getValue("/root/tmp/rexlist/list1/recdd");
  250. var year = ymd.substring(0,4);
  251. var month = ymd.substring(4,6);
  252. var day = ymd.substring(6,8);
  253. var yymmddstr = year + "/" + month + "/" + day + " " + getDateTime(new Date(year,month,day), "W") + "요일";
  254. model.setValue("/root/tmp/rexlist/srchdd", yymmddstr);
  255. model.makeNode("/root/tmp/rexlist/mainlist[58]");
  256. exeReportPreview("RPAEQ00400", "XMLSTR", "/root/tmp/rexlist");
  257. model.removeNodeset("/root/tmp/rexlist/list1");
  258. model.removeNodeset("/root/tmp/rexlist/list2");
  259. model.removeNodeset("/root/tmp/rexlist/list3");
  260. model.removeNodeset("/root/tmp/rexlist/mainlist");
  261. model.refresh();
  262. ]]>
  263. </script>
  264. </button>
  265. <button id="button1" class="btn4_letter4" style="left:1105px; top:520px; width:80px; height:22px; ">
  266. <caption>입고저장</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. var nodecnt = model.getXPathValue("count(/root/main/mainlist)");
  270. var list1cnt = 1;
  271. var list2cnt = 1;
  272. var list3cnt = 1
  273. for(var i=1 ; i <= nodecnt; i++)
  274. {
  275. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "영상검사실")
  276. {
  277. model.makeNode("/root/tmp/rexlist/list1[" + list1cnt + "]");
  278. model.copyNode("/root/tmp/rexlist/list1[" + list1cnt +"]", "/root/main/mainlist[" + i + "]");
  279. list1cnt = list1cnt + 1;
  280. }
  281. }
  282. for(var i=1 ; i <= nodecnt; i++)
  283. {
  284. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "PET-CT실")
  285. {
  286. model.makeNode("/root/tmp/rexlist/list2[" + list2cnt + "]");
  287. model.copyNode("/root/tmp/rexlist/list2[" + list2cnt +"]", "/root/main/mainlist[" + i + "]");
  288. list2cnt = list2cnt + 1;
  289. }
  290. }
  291. for(var i=1 ; i <= nodecnt; i++)
  292. {
  293. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "치료,투약실")
  294. {
  295. model.makeNode("/root/tmp/rexlist/list3[" + list3cnt + "]");
  296. model.copyNode("/root/tmp/rexlist/list3[" + list3cnt +"]", "/root/main/mainlist[" + i + "]");
  297. list3cnt = list3cnt + 1;
  298. }
  299. }
  300. mergeRexList("/root/tmp/rexlist/list1");
  301. mergeRexList("/root/tmp/rexlist/list2");
  302. mergeRexList("/root/tmp/rexlist/list3");
  303. var patinsucnt = model.getXPathValue("sum( /root/main/mainlist/patinsucnt )");
  304. var patgnrlcnt = model.getXPathValue("sum( /root/main/mainlist/patgnrlcnt )");
  305. var testinsucnt = model.getXPathValue("sum( /root/main/mainlist/testinsucnt )");
  306. var testgnrlcnt = model.getXPathValue("sum( /root/main/mainlist/testgnrlcnt )");
  307. model.setValue("/root/tmp/rexlist/patinsucnt", patinsucnt);
  308. model.setValue("/root/tmp/rexlist/patgnrlcnt", patgnrlcnt);
  309. model.setValue("/root/tmp/rexlist/testinsucnt", testinsucnt);
  310. model.setValue("/root/tmp/rexlist/testgnrlcnt", testgnrlcnt);
  311. var ymd = model.getValue("/root/tmp/rexlist/list1/recdd");
  312. var year = ymd.substring(0,4);
  313. var month = ymd.substring(4,6);
  314. var day = ymd.substring(6,8);
  315. var yymmddstr = year + "/" + month + "/" + day + " " + getDateTime(new Date(year,month,day), "W") + "요일";
  316. model.setValue("/root/tmp/rexlist/srchdd", yymmddstr);
  317. model.makeNode("/root/tmp/rexlist/mainlist[58]");
  318. exeReportPreview("RPAEQ00400", "XMLSTR", "/root/tmp/rexlist");
  319. model.removeNodeset("/root/tmp/rexlist/list1");
  320. model.removeNodeset("/root/tmp/rexlist/list2");
  321. model.removeNodeset("/root/tmp/rexlist/list3");
  322. model.removeNodeset("/root/tmp/rexlist/mainlist");
  323. model.refresh();
  324. ]]>
  325. </script>
  326. </button>
  327. <group id="group2" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
  328. <group id="group4" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  329. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  330. <caption id="caption19" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">입고일자 :</caption>
  331. <input id="input8" ref="/root/send/srchiodd" class="input_search" inputtype="date" format="yyyy-mm" style="left:102px; top:8px; width:100px; height:19px; "/>
  332. <line id="line6" class="line_4" style="x1:1116px; y1:6px; x2:1116px; y2:28px; "/>
  333. <caption id="caption20" class="search_name" style="left:220px; top:9px; width:83px; height:17px; ">Section :</caption>
  334. <button id="button3" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  335. <caption>조회</caption>
  336. <script type="javascript" ev:event="DOMActivate">
  337. <![CDATA[
  338. getGridData();
  339. ]]>
  340. </script>
  341. </button>
  342. <caption id="caption21" class="search_name" style="left:441px; top:9px; width:86px; height:17px; ">약품코드 :</caption>
  343. </group>
  344. <caption id="caption22" class="tit_2" style="left:0px; top:55px; width:84px; height:13px; ">입고현황</caption>
  345. <line id="line7" class="line_1" style="x1:0px; y1:70px; x2:595px; y2:70px; "/>
  346. <caption id="caption23" class="tit_2" style="left:0px; top:615px; width:129px; height:14px; ">현재상황</caption>
  347. <line id="line8" class="line_1" style="x1:1px; y1:630px; x2:1195px; y2:630px; "/>
  348. <caption id="caption24" class="tit_2" style="left:600px; top:55px; width:84px; height:13px; ">사용현황</caption>
  349. <line id="line9" class="line_1" style="x1:600px; y1:70px; x2:1195px; y2:70px; "/>
  350. <datagrid id="datagrid1" nodeset="/root/main/mainlist/wlnlist" caption="약품코드^약품명^입고입자^입고수량^근무자^ioflag^sectcd^suppdeptcd" colsep="^" colwidth="70, 215, 90, 90, 90, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:595px; height:405px; ">
  351. <col ref="goodcd" type="output"/>
  352. <col ref="goodnm" type="output"/>
  353. <col ref="iodd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  354. <col ref="qty" type="output" format="#,###" maxlength="10" style="text-align:right; "/>
  355. <col ref="usernm" type="output" style="text-align:center; "/>
  356. <col ref="ioflag" visibility="hidden"/>
  357. <col ref="sectcd" visibility="hidden"/>
  358. <col ref="suppdeptcd" visibility="hidden"/>
  359. <script type="javascript" ev:event="onclick">
  360. <![CDATA[
  361. if (datagrid1.isCell(event.target) && datagrid1.mouseRow >= datagrid1.fixedrows) {
  362. btn_inSave.disabled = true;
  363. btn_inUpdt.disabled = false;
  364. btn_outSave.disabled = true;
  365. btn_outUpdt.disabled = true;
  366. ipt_inswlnday.disabled = true;
  367. ipt_insuseday.disabled = true;
  368. model.setValue("/root/temp/goodcd", model.getValue("/root/main/mainlist/wlnlist[" + datagrid1.row + "]/goodcd"));
  369. model.setValue("/root/temp/goodnm", model.getValue("/root/main/mainlist/wlnlist[" + datagrid1.row + "]/goodnm"));
  370. model.setValue("/root/temp/setwlnqty", model.getValue("/root/main/mainlist/wlnlist[" + datagrid1.row + "]/qty"));
  371. model.setValue("/root/send/srchiodd", model.getValue("/root/main/mainlist/wlnlist[" + datagrid1.row + "]/iodd"));
  372. model.setValue("/root/send/srchdd", getCurrentDate());
  373. submit("TRAEQ01701");
  374. model.refresh();
  375. }
  376. ]]>
  377. </script>
  378. </datagrid>
  379. <datagrid id="datagrid2" nodeset="/root/main/mainlist/uselist" caption="약품코드^약품명^출고일자^출고수량^근무자^ioflag^sectcd^suppdeptcd" colsep="^" colwidth="70, 215, 90, 90, 90, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:600px; top:75px; width:595px; height:405px; ">
  380. <col ref="goodcd" type="output"/>
  381. <col ref="goodnm" type="output"/>
  382. <col ref="iodd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  383. <col ref="qty" type="output" format="#,###" maxlength="10" style="text-align:right; "/>
  384. <col ref="usernm" type="output" style="text-align:center; "/>
  385. <col ref="ioflag" visibility="hidden"/>
  386. <col ref="sectcd" visibility="hidden"/>
  387. <col ref="suppdeptcd" visibility="hidden"/>
  388. <script type="javascript" ev:event="onclick">
  389. <![CDATA[
  390. if (datagrid2.isCell(event.target) && datagrid2.mouseRow >= datagrid2.fixedrows) {
  391. btn_inSave.disabled = true;
  392. btn_inUpdt.disabled = true;
  393. btn_outSave.disabled = true;
  394. btn_outUpdt.disabled = false;
  395. ipt_inswlnday.disabled = true;
  396. ipt_insuseday.disabled = true;
  397. model.setValue("/root/temp/goodcd", model.getValue("/root/main/mainlist/uselist[" + datagrid2.row + "]/goodcd"));
  398. model.setValue("/root/temp/goodnm", model.getValue("/root/main/mainlist/uselist[" + datagrid2.row + "]/goodnm"));
  399. model.setValue("/root/temp/setuseqty", model.getValue("/root/main/mainlist/uselist[" + datagrid2.row + "]/qty"));
  400. model.setValue("/root/send/srchiodd", model.getValue("/root/main/mainlist/uselist[" + datagrid2.row + "]/iodd"));
  401. model.setValue("/root/send/srchdd", getCurrentDate());
  402. submit("TRAEQ01701");
  403. model.refresh();
  404. }
  405. ]]>
  406. </script>
  407. </datagrid>
  408. <input id="ipt_inswlnqty" ref="/root/temp/inswlnqty" class="input_default" format="#,###" style="left:304px; top:532px; width:93px; height:19px; "/>
  409. <input id="ipt_inswlnday" ref="/root/send/srchiodd" class="input_default" disabled="true" inputtype="date" style="left:102px; top:507px; width:93px; height:19px; "/>
  410. <input id="ipt_inswlngoodcd" ref="/root/send/srchgoodcd" class="input_default" visibility="hidden" editable="false" style="left:304px; top:507px; width:93px; height:19px; "/>
  411. <caption id="caption25" class="cell_1" style="left:0px; top:505px; width:100px; height:23px; text-align:center; ">입고일</caption>
  412. <caption id="caption29" class="cell_1" style="left:200px; top:505px; width:100px; height:23px; text-align:center; ">코 드</caption>
  413. <caption id="caption30" class="cell_1" style="left:200px; top:530px; width:100px; height:23px; text-align:center; ">수 량</caption>
  414. <caption id="caption31" class="tit_2" style="left:0px; top:485px; width:84px; height:14px; ">입고처리</caption>
  415. <line id="line10" class="line_1" style="x1:0px; y1:500px; x2:595px; y2:500px; "/>
  416. <caption id="caption32" class="tit_2" style="left:600px; top:485px; width:84px; height:14px; ">불출처리</caption>
  417. <line id="line11" class="line_1" style="x1:600px; y1:500px; x2:1195px; y2:500px; "/>
  418. <caption id="caption33" class="cell_1" style="left:0px; top:555px; width:100px; height:23px; text-align:center; ">입고일</caption>
  419. <caption id="caption34" class="cell_1" style="left:200px; top:555px; width:100px; height:23px; text-align:center; ">코 드</caption>
  420. <caption id="caption35" class="cell_1" style="left:200px; top:580px; width:100px; height:23px; text-align:center; ">수 량</caption>
  421. <caption id="caption36" class="cell_1" style="left:600px; top:555px; width:100px; height:23px; text-align:center; ">불출일</caption>
  422. <caption id="caption37" class="cell_1" style="left:800px; top:555px; width:100px; height:23px; text-align:center; ">코 드</caption>
  423. <input id="ipt_setusegoodcd" ref="/root/send/srchgoodcd" class="input_default" visibility="hidden" editable="false" appearance="minimal" style="left:904px; top:557px; width:93px; height:19px; "/>
  424. <input id="ipt_insuseqty" ref="/root/temp/insuseqty" class="input_default" format="#,###" style="left:904px; top:532px; width:93px; height:19px; "/>
  425. <caption id="caption38" class="cell_1" style="left:800px; top:580px; width:100px; height:23px; text-align:center; ">수 량</caption>
  426. <input id="ipt_insuseday" ref="/root/send/srchiodd" class="input_default" disabled="true" inputtype="date" style="left:702px; top:506px; width:93px; height:19px; "/>
  427. <input id="ipt_insusegoodcd" ref="/root/send/srchgoodcd" class="input_default" visibility="hidden" editable="false" style="left:904px; top:506px; width:93px; height:19px; "/>
  428. <input id="ipt_setuseqty" ref="/root/temp/setuseqty" class="input_default" format="#,###" style="left:904px; top:582px; width:93px; height:19px; "/>
  429. <caption id="caption39" class="cell_1" style="left:600px; top:505px; width:100px; height:23px; text-align:center; ">불출일</caption>
  430. <input id="ipt_setuseday" ref="/root/send/srchiodd" class="input_default" disabled="true" inputtype="date" style="left:702px; top:557px; width:93px; height:19px; "/>
  431. <caption id="caption40" class="cell_1" style="left:800px; top:505px; width:100px; height:23px; text-align:center; ">코 드</caption>
  432. <caption id="caption41" class="cell_1" style="left:800px; top:530px; width:100px; height:23px; text-align:center; ">수 량</caption>
  433. <output id="output1" ref="/root/send/srchdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:103px; top:636px; width:93px; height:19px; text-align:center; "/>
  434. <caption id="caption42" class="cell_1" style="left:0px; top:530px; width:100px; height:23px; text-align:center; "/>
  435. <caption id="caption43" class="cell_1" style="left:0px; top:580px; width:100px; height:23px; text-align:center; "/>
  436. <caption id="caption44" class="cell_1" style="left:600px; top:530px; width:100px; height:23px; text-align:center; "/>
  437. <caption id="caption45" class="cell_1" style="left:600px; top:580px; width:100px; height:23px; text-align:center; "/>
  438. <caption id="caption46" class="cell_1" style="left:0px; top:635px; width:100px; height:23px; text-align:center; ">현재일</caption>
  439. <caption id="caption47" class="cell_1" style="left:200px; top:635px; width:100px; height:23px; text-align:center; ">전일재고</caption>
  440. <caption id="caption48" class="cell_1" style="left:400px; top:635px; width:100px; height:23px; text-align:center; ">금일수령</caption>
  441. <caption id="caption1" class="cell_1" style="left:600px; top:635px; width:100px; height:23px; text-align:center; ">금일불출</caption>
  442. <caption id="caption2" class="cell_1" style="left:800px; top:635px; width:100px; height:23px; text-align:center; ">잔고</caption>
  443. <output id="output2" ref="/root/main/goodlist/item/exstocqty" class="output_fix" format="(-)#,###" appearance="output" style="left:303px; top:637px; width:93px; height:19px; text-align:center; "/>
  444. <output id="output3" ref="/root/main/goodlist/item/wlnqty" class="output_fix" format="(-)#,###" appearance="output" style="left:503px; top:637px; width:93px; height:19px; text-align:center; "/>
  445. <output id="output4" ref="/root/main/goodlist/item/useqty" class="output_fix" format="(-)#,###" appearance="output" style="left:703px; top:637px; width:93px; height:19px; text-align:center; "/>
  446. <output id="output5" ref="/root/main/goodlist/item/stocqty" class="output_fix" format="(-)#,###" appearance="output" style="left:903px; top:637px; width:93px; height:19px; text-align:center; "/>
  447. <select1 id="combo1" ref="/root/send/srchsectcd" appearance="minimal" style="left:310px; top:18px; width:93px; height:19px; ">
  448. <choices>
  449. <itemset nodeset="/root/cmb_info/initexcuroomgrp2">
  450. <label ref="excuroomgrpcdnm"/>
  451. <value ref="excuroomgrpcdid"/>
  452. </itemset>
  453. </choices>
  454. <script type="javascript" ev:event="xforms-value-changed">
  455. <![CDATA[
  456. model.setValue("/root/send/sectcd", model.getValue("/root/send/srchsectcd"));
  457. model.setValue("/root/send/srchgoodcd", "");
  458. submit("TRAEB03801");
  459. model.duplicate("/root/temp/goodlist", "/root/temp/goodlist/item[1]", "*[1]");
  460. if(model.getXPathValue("count(/root/temp/goodlist/item)") > 0)
  461. {
  462. model.setValue("/root/temp/goodlist/item[1]/goodcd", "");
  463. model.setValue("/root/temp/goodlist/item[1]/goodnm", "");
  464. }
  465. getGridData();
  466. ]]>
  467. </script>
  468. </select1>
  469. <input id="ipt_setwlnqty" ref="/root/temp/setwlnqty" class="input_default" format="#,###" style="left:304px; top:580px; width:93px; height:19px; "/>
  470. <input id="ipt_setwlnday" ref="/root/send/srchiodd" class="input_default" disabled="true" inputtype="date" style="left:103px; top:555px; width:93px; height:19px; "/>
  471. <input id="ipt_setwlngoodcd" ref="/root/send/srchgoodcd" class="input_default" visibility="hidden" editable="false" style="left:304px; top:555px; width:93px; height:19px; "/>
  472. <select1 id="cmb_goodcd" ref="/root/send/srchgoodcd" appearance="minimal" style="left:533px; top:18px; width:272px; height:19px; ">
  473. <choices>
  474. <itemset nodeset="/root/temp/goodlist/item">
  475. <label ref="goodnm"/>
  476. <value ref="goodcd"/>
  477. </itemset>
  478. </choices>
  479. <script type="javascript" ev:event="xforms-value-changed">
  480. <![CDATA[
  481. getGridData();
  482. model.setValue("/root/send/srchdd", model.getValue("/root/send/srchiodd"));
  483. submit("TRAEQ01701");
  484. model.refresh();
  485. ]]>
  486. </script>
  487. </select1>
  488. <input id="input1" ref="/root/temp/goodnm" class="input_default" editable="false" style="left:304px; top:507px; width:196px; height:19px; "/>
  489. <input id="input2" ref="/root/temp/goodnm" class="input_default" editable="false" style="left:305px; top:555px; width:196px; height:19px; "/>
  490. <input id="input3" ref="/root/temp/goodnm" class="input_default" editable="false" style="left:904px; top:506px; width:196px; height:19px; "/>
  491. <input id="input4" ref="/root/temp/goodnm" class="input_default" editable="false" style="left:904px; top:556px; width:196px; height:19px; "/>
  492. </group>
  493. <button id="btn_inSave" class="btn4_letter4" disabled="true" style="left:515px; top:522px; width:80px; height:22px; ">
  494. <caption>입고저장</caption>
  495. <script type="javascript" ev:event="DOMActivate">
  496. <![CDATA[
  497. if(ipt_inswlnday.value == "")
  498. {
  499. messageBox("입고일을", "C001");
  500. return false;
  501. }
  502. if(ipt_inswlngoodcd.value == "")
  503. {
  504. messageBox("약품코드를", "C001");
  505. return false;
  506. }
  507. if(ipt_inswlnqty.value == "")
  508. {
  509. messageBox("수량을", "C001");
  510. return false;
  511. }
  512. model.setValue("/root/send/data/iptflag", "I");
  513. model.setValue("/root/send/data/ioflag", "I");
  514. model.setValue("/root/send/data/iodd", ipt_inswlnday.value);
  515. model.setValue("/root/send/data/goodcd", ipt_inswlngoodcd.value);
  516. model.setValue("/root/send/data/qty", ipt_inswlnqty.value);
  517. if(submit("TXAEB03401"))
  518. {
  519. getGridData();
  520. }
  521. ]]>
  522. </script>
  523. </button>
  524. <button id="btn_outSave" class="btn4_letter4" disabled="true" style="left:1115px; top:522px; width:80px; height:22px; ">
  525. <caption>불출저장</caption>
  526. <script type="javascript" ev:event="DOMActivate">
  527. <![CDATA[
  528. if(ipt_insuseday.value == "")
  529. {
  530. messageBox("입고일을", "C001");
  531. return false;
  532. }
  533. if(ipt_insusegoodcd.value == "")
  534. {
  535. messageBox("약품코드를", "C001");
  536. return false;
  537. }
  538. if(ipt_insuseqty.value == "")
  539. {
  540. messageBox("수량을", "C001");
  541. return false;
  542. }
  543. model.setValue("/root/send/data/iptflag", "I");
  544. model.setValue("/root/send/data/ioflag", "O");
  545. model.setValue("/root/send/data/iodd", ipt_insuseday.value);
  546. model.setValue("/root/send/data/goodcd", ipt_insusegoodcd.value);
  547. model.setValue("/root/send/data/qty", ipt_insuseqty.value);
  548. if(submit("TXAEB03401"))
  549. {
  550. getGridData();
  551. }
  552. ]]>
  553. </script>
  554. </button>
  555. <button id="btn_inUpdt" class="btn4_letter4" disabled="true" style="left:515px; top:572px; width:80px; height:22px; ">
  556. <caption>입고수정</caption>
  557. <script type="javascript" ev:event="DOMActivate">
  558. <![CDATA[
  559. if(ipt_setwlnday.value == "")
  560. {
  561. messageBox("입고일을", "C001");
  562. return false;
  563. }
  564. if(ipt_setwlngoodcd.value == "")
  565. {
  566. messageBox("약품코드를", "C001");
  567. return false;
  568. }
  569. if(ipt_setwlnqty.value == "")
  570. {
  571. messageBox("수량을", "C001");
  572. return false;
  573. }
  574. model.setValue("/root/send/data/iptflag", "U");
  575. model.setValue("/root/send/data/ioflag", "I");
  576. model.setValue("/root/send/data/iodd", ipt_setwlnday.value);
  577. model.setValue("/root/send/data/goodcd", ipt_setwlngoodcd.value);
  578. model.setValue("/root/send/data/qty", ipt_setwlnqty.value);
  579. if(submit("TXAEB03401"))
  580. {
  581. getGridData();
  582. }
  583. ]]>
  584. </script>
  585. </button>
  586. <button id="btn_outUpdt" class="btn4_letter4" disabled="true" style="left:1115px; top:572px; width:80px; height:22px; ">
  587. <caption>불출수정</caption>
  588. <script type="javascript" ev:event="DOMActivate">
  589. <![CDATA[
  590. if(ipt_setuseday.value == "")
  591. {
  592. messageBox("입고일을", "C001");
  593. return false;
  594. }
  595. if(ipt_setusegoodcd.value == "")
  596. {
  597. messageBox("약품코드를", "C001");
  598. return false;
  599. }
  600. if(ipt_setuseqty.value == "")
  601. {
  602. messageBox("수량을", "C001");
  603. return false;
  604. }
  605. model.setValue("/root/send/data/iptflag", "U");
  606. model.setValue("/root/send/data/ioflag", "O");
  607. model.setValue("/root/send/data/iodd", ipt_setuseday.value);
  608. model.setValue("/root/send/data/goodcd", ipt_setusegoodcd.value);
  609. model.setValue("/root/send/data/qty", ipt_setuseqty.value);
  610. if(submit("TXAEB03401"))
  611. {
  612. getGridData();
  613. }
  614. ]]>
  615. </script>
  616. </button>
  617. </xhtml:body>
  618. </xhtml:html>