SMADT30900_마약재고입력및출력.xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <narclist>
  11. <narclist>
  12. <extsum/>
  13. <totsum/>
  14. <drugcd/>
  15. <keepqty/>
  16. <flagqty/>
  17. <spqty2/>
  18. <deleqty/>
  19. <rtnqty/>
  20. <realdeleqty/>
  21. <iosumdeleqty/>
  22. <windqty/>
  23. <destqty/>
  24. <spqty1/>
  25. <af_extsum/>
  26. <af_totsum/>
  27. <svcmt/>
  28. <monthsum/>
  29. </narclist>
  30. </narclist>
  31. <prntlist>
  32. <narclist/>
  33. </prntlist>
  34. </main>
  35. <send>
  36. <srchinfo>
  37. <yyyymm/>
  38. <dd/>
  39. </srchinfo>
  40. <saveinfo>
  41. <data1/>
  42. </saveinfo>
  43. <data>
  44. <print1>
  45. <item/>
  46. </print1>
  47. </data>
  48. <srchdata>
  49. <preview/>
  50. </srchdata>
  51. </send>
  52. <init/>
  53. <hidden>
  54. <popup>
  55. <prcp>
  56. <item>
  57. <name>행추가</name>
  58. <param>add</param>
  59. </item>
  60. <item>
  61. <name>행복사</name>
  62. <param>copy</param>
  63. </item>
  64. <item>
  65. <name>행삭제</name>
  66. <param>del</param>
  67. </item>
  68. </prcp>
  69. </popup>
  70. </hidden>
  71. <temp>
  72. <printdatalist/>
  73. </temp>
  74. </root>
  75. </instance>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  79. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  80. <script type="javascript" src="../../../ast/pharmacyweb/js/SMADT30100.js"/>
  81. <script type="javascript" ev:event="xforms-ready">
  82. <![CDATA[
  83. model.setValue("/root/send/srchinfo/yyyymm", getCurrentDate().substr(0,6));
  84. fSetTab();
  85. model.refresh();
  86. ]]>
  87. </script>
  88. <submission id="TRADT30901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/narclist"/>
  89. <submission id="TXADT30901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  90. <submission id="TXADT30902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  91. <submission id="TRADT30902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prntlist"/>
  92. <submission id="TRADT30903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/send/data/print1"/>
  93. </model>
  94. <script type="javascript">
  95. <![CDATA[
  96. /* @group : 마약향정처방관리 엑셀다운
  97. * @ver : 2008.10.09
  98. * @by :
  99. * @-----------------------------------
  100. * @type : function
  101. * @access : public
  102. * @desc : 엑셀 저장
  103. */
  104. function fExeSaveToExcel(){
  105. var fileName = window.fileDialog("save", ",", false, "마약일계표 "+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  106. if (fileName != "")
  107. {
  108. grd_narclist.saveExcel(fileName);
  109. }
  110. }
  111. function fSetTab(){
  112. var terms = model.getValue("/root/send/srchinfo/yyyymm")+ "01";
  113. terms = terms.toDate("YYYYMMDD").getMonthDay();
  114. if (terms=="") {
  115. return false;
  116. }
  117. for ( var i =1; i<32 ; i++){
  118. if(i <= terms) {
  119. (document.controls("btn_d" + i)).visible=true;
  120. } else {
  121. (document.controls("btn_d" + i)).visible=false;
  122. }
  123. }
  124. model.refresh();
  125. }
  126. function DOMActivate(){
  127. //event.stopPropagation();
  128. var controlObj = document.controls(event.currentTarget);
  129. if (controlObj != null){
  130. var btn_text =controlObj.text;
  131. var btn_dd = Number(btn_text);
  132. if ( btn_dd > 0 && btn_dd < 32 ){
  133. if(btn_dd < 10) {
  134. model.setValue( "/root/send/srchinfo/dd" , "0" + btn_text);
  135. } else {
  136. model.setValue( "/root/send/srchinfo/dd" , btn_text);
  137. }
  138. submit("TRADT30901");
  139. grd_narclist.colStyle(grd_narclist.colRef("deleqty"), "data", "background-color") = "#fcd2c1";
  140. grd_narclist.colStyle(grd_narclist.colRef("rtnqty"), "data", "background-color") = "#fcd2c1";
  141. grd_narclist.colStyle(grd_narclist.colRef("destqty"), "data", "background-color") = "#fcd2c1";
  142. grd_narclist.colStyle(grd_narclist.colRef("spqty1"), "data", "background-color") = "#fcd2c1";
  143. // for(var i = 0; i < grd_narclist.rows; i++) {
  144. // grd_narclist.colAttribute(1, "merge") =
  145. // }
  146. }
  147. }
  148. return;
  149. }
  150. ]]>
  151. </script>
  152. </xhtml:head>
  153. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  154. <script type="javascript" ev:event="onmenu">
  155. <![CDATA[
  156. var popupParam = event.description;
  157. if(popupParam == "add") {
  158. //grd_narclist.addItem();
  159. } else if(popupParam == "del") {
  160. grd_narclist.addStatus(grd_narclist.row,"delete");
  161. }
  162. ]]>
  163. </script>
  164. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  165. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:211px; height:14px; ">마약일계표</caption>
  166. </group>
  167. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  168. <group id="group2" style="left:0px; top:0px; width:1195px; height:35px; ">
  169. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  170. <caption id="caption9" class="search_name" style="left:10px; top:8px; width:97px; height:17px; ">조회년월 :</caption>
  171. <input id="ipt_fstdd" ref="/root/send/srchinfo/yyyymm" class="input_search" inputtype="date" format="yyyy-mm" appearance="input" style="left:100px; top:5px; width:85px; height:19px; ">
  172. <script type="javascript" ev:event="xforms-value-changed">
  173. <![CDATA[
  174. fSetTab();
  175. ]]>
  176. </script>
  177. </input>
  178. </group>
  179. <switch id="switch1" class="sw_no_border" style="left:0px; top:80px; width:1195px; height:664px; "/>
  180. <button id="btn_prcp" class="btn4_letter8" style="left:1060px; top:5px; width:128px; height:22px; ">
  181. <caption>상비품/비고 저장</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. var update = getGridUpdateData(grd_narclist);
  185. if(update == ""){
  186. messageBox("업데이트 정보가 없습니다.", "I");
  187. return 0;
  188. } else {
  189. for(var i = 0 ; i < grd_narclist.rows; i++) {
  190. if(model.getValue("/root/main/narclist/narclist[" + i + "]/remflag1") == "" && model.getValue("/root/main/narclist/narclist[" + i + "]/remqty1") != "" ) {
  191. messageBox("D0의 비고수량이 입력되었으므로 출고구분을 선택하여 주십시오.", "I");
  192. return 0;
  193. }
  194. if(model.getValue("/root/main/narclist/narclist[" + i + "]/remflag2") == "" && model.getValue("/root/main/narclist/narclist[" + i + "]/remqty2") != "" ) {
  195. messageBox("D1의 비고수량이 입력되었으므로 출고구분을 선택하여 주십시오.", "I");
  196. return 0;
  197. }
  198. if(model.getValue("/root/main/narclist/narclist[" + i + "]/remflag3") == "" && model.getValue("/root/main/narclist/narclist[" + i + "]/remqty3") != "" ) {
  199. messageBox("D2의 비고수량이 입력되었으므로 출고구분을 선택하여 주십시오.", "I");
  200. return 0;
  201. }
  202. if(model.getValue("/root/main/narclist/narclist[" + i + "]/remflag4") == "" && model.getValue("/root/main/narclist/narclist[" + i + "]/remqty4") != "" ) {
  203. messageBox("N의 비고수량이 입력되었으므로 출고구분을 선택하여 주십시오.", "I");
  204. return 0;
  205. }
  206. }
  207. model.setValue( "/root/send/saveinfo/data1", grd_narclist.getUpdateData());
  208. if(submit("TXADT30901")) {
  209. submit("TRADT30901");
  210. }
  211. }
  212. ]]>
  213. </script>
  214. </button>
  215. <button id="btn_d1" class="btn_sw" visibility="hidden" group="tab" style="left:3px; top:55px; width:37px; height:22px; ">
  216. <caption>1</caption>
  217. </button>
  218. <button id="btn_d2" class="btn_sw" visibility="hidden" group="tab" style="left:40px; top:55px; width:37px; height:22px; ">
  219. <caption>2</caption>
  220. </button>
  221. <button id="btn_d3" class="btn_sw" visibility="hidden" group="tab" style="left:77px; top:55px; width:37px; height:22px; ">
  222. <caption>3</caption>
  223. </button>
  224. <button id="btn_d4" class="btn_sw" visibility="hidden" group="tab" style="left:114px; top:55px; width:37px; height:22px; ">
  225. <caption>4</caption>
  226. </button>
  227. <button id="btn_d5" class="btn_sw" visibility="hidden" group="tab" style="left:151px; top:55px; width:37px; height:22px; ">
  228. <caption>5</caption>
  229. </button>
  230. <button id="btn_d6" class="btn_sw" visibility="hidden" group="tab" style="left:188px; top:55px; width:37px; height:22px; ">
  231. <caption>6</caption>
  232. </button>
  233. <button id="btn_d7" class="btn_sw" visibility="hidden" group="tab" style="left:225px; top:55px; width:37px; height:22px; ">
  234. <caption>7</caption>
  235. </button>
  236. <button id="btn_d8" class="btn_sw" visibility="hidden" group="tab" style="left:262px; top:55px; width:37px; height:22px; ">
  237. <caption>8</caption>
  238. </button>
  239. <button id="btn_d9" class="btn_sw" visibility="hidden" group="tab" style="left:299px; top:55px; width:37px; height:22px; ">
  240. <caption>9</caption>
  241. </button>
  242. <button id="btn_d10" class="btn_sw" visibility="hidden" group="tab" style="left:336px; top:55px; width:37px; height:22px; ">
  243. <caption>10</caption>
  244. </button>
  245. <button id="btn_d11" class="btn_sw" visibility="hidden" group="tab" style="left:373px; top:55px; width:37px; height:22px; ">
  246. <caption>11</caption>
  247. </button>
  248. <button id="btn_d12" class="btn_sw" visibility="hidden" group="tab" style="left:410px; top:55px; width:37px; height:22px; ">
  249. <caption>12</caption>
  250. </button>
  251. <button id="btn_d13" class="btn_sw" visibility="hidden" group="tab" style="left:447px; top:55px; width:37px; height:22px; ">
  252. <caption>13</caption>
  253. </button>
  254. <button id="btn_d14" class="btn_sw" visibility="hidden" group="tab" style="left:484px; top:55px; width:37px; height:22px; ">
  255. <caption>14</caption>
  256. </button>
  257. <button id="btn_d15" class="btn_sw" visibility="hidden" group="tab" style="left:521px; top:55px; width:37px; height:22px; ">
  258. <caption>15</caption>
  259. </button>
  260. <button id="btn_d16" class="btn_sw" visibility="hidden" group="tab" style="left:558px; top:55px; width:37px; height:22px; ">
  261. <caption>16</caption>
  262. </button>
  263. <button id="btn_d17" class="btn_sw" visibility="hidden" group="tab" style="left:595px; top:55px; width:37px; height:22px; ">
  264. <caption>17</caption>
  265. </button>
  266. <button id="btn_d18" class="btn_sw" visibility="hidden" group="tab" style="left:632px; top:55px; width:37px; height:22px; ">
  267. <caption>18</caption>
  268. </button>
  269. <button id="btn_d19" class="btn_sw" visibility="hidden" group="tab" style="left:669px; top:55px; width:37px; height:22px; ">
  270. <caption>19</caption>
  271. </button>
  272. <button id="btn_d20" class="btn_sw" visibility="hidden" group="tab" style="left:706px; top:55px; width:37px; height:22px; ">
  273. <caption>20</caption>
  274. </button>
  275. <button id="btn_d21" class="btn_sw" visibility="hidden" group="tab" style="left:743px; top:55px; width:37px; height:22px; ">
  276. <caption>21</caption>
  277. </button>
  278. <button id="btn_d22" class="btn_sw" visibility="hidden" group="tab" style="left:780px; top:55px; width:37px; height:22px; ">
  279. <caption>22</caption>
  280. </button>
  281. <button id="btn_d23" class="btn_sw" visibility="hidden" group="tab" style="left:817px; top:55px; width:37px; height:22px; ">
  282. <caption>23</caption>
  283. </button>
  284. <button id="btn_d24" class="btn_sw" visibility="hidden" group="tab" style="left:854px; top:55px; width:37px; height:22px; ">
  285. <caption>24</caption>
  286. </button>
  287. <button id="btn_d25" class="btn_sw" visibility="hidden" group="tab" style="left:891px; top:55px; width:37px; height:22px; ">
  288. <caption>25</caption>
  289. </button>
  290. <button id="btn_d26" class="btn_sw" visibility="hidden" group="tab" style="left:928px; top:55px; width:37px; height:22px; ">
  291. <caption>26</caption>
  292. </button>
  293. <button id="btn_d27" class="btn_sw" visibility="hidden" group="tab" style="left:965px; top:55px; width:37px; height:22px; ">
  294. <caption>27</caption>
  295. </button>
  296. <button id="btn_d28" class="btn_sw" visibility="hidden" group="tab" style="left:1002px; top:55px; width:37px; height:22px; ">
  297. <caption>28</caption>
  298. </button>
  299. <button id="btn_d29" class="btn_sw" visibility="hidden" group="tab" style="left:1039px; top:55px; width:37px; height:22px; ">
  300. <caption>29</caption>
  301. </button>
  302. <button id="btn_d30" class="btn_sw" visibility="hidden" group="tab" style="left:1076px; top:55px; width:37px; height:22px; ">
  303. <caption>30</caption>
  304. </button>
  305. <button id="btn_d31" class="btn_sw" visibility="hidden" group="tab" style="left:1113px; top:55px; width:37px; height:22px; ">
  306. <caption>31</caption>
  307. </button>
  308. <button id="button1" class="btn4_letter7" style="left:935px; top:5px; width:116px; height:22px; ">
  309. <caption>일계표 재고반영</caption>
  310. <script type="javascript" ev:event="DOMActivate">
  311. <![CDATA[
  312. var node = instance1.selectNodes("/root/main/narclist/narclist");
  313. model.setValue( "/root/send/saveinfo/data1", getNodeListCSV(node));
  314. if(submit("TXADT30902")) {
  315. submit("TRADT30901");
  316. }
  317. ]]>
  318. </script>
  319. </button>
  320. </group>
  321. <button id="btn_excel" class="btn2_letter4" style="left:1125px; top:760px; width:64px; height:19px; ">
  322. <caption>엑셀저장</caption>
  323. <script type="javascript" ev:event="DOMActivate">
  324. <![CDATA[
  325. if (grd_narclist.rows>1) {
  326. fExeSaveToExcel();
  327. }
  328. ]]>
  329. </script>
  330. </button>
  331. <button id="button8" class="btn6_letter8" style="left:990px; top:760px; width:128px; height:22px; ">
  332. <caption>월사용현황보고서</caption>
  333. <script type="javascript" ev:event="DOMActivate">
  334. <![CDATA[
  335. submit("TRADT30902");
  336. if (checkbox2.value == 1) { //미리보기가 체크된 경우
  337. exeReportPreview("RPADT30901", "XMLSTR", "RPADT30901", "", "false","","","","","true", "", "");
  338. } else {
  339. exeReportPreview("RPADT30901", "XMLSTR", "RPADT30901", "", "true","","","","","true", "", "");
  340. }
  341. ]]>
  342. </script>
  343. </button>
  344. <datagrid id="grd_narclist" nodeset="/root/main/narclist/narclist" class="datagrid2" backcoloralternate="#f0f0f0" caption="약품코드^전일재고^전일재고^전일재고^전일재고^전일재고^출고^출고^출고^출고^출고^출고^출고^출고^출고^출고^출고^출고^출고^출고^출고^입고/이송^입고/이송^입고/이송^당일재고^당일재고^당일재고^당일재고^당일재고^당월 누적사용|약품코드^창고^병동약국^외래약국^병동상비품^병원총재고^병동약국^병동약국^병동약국^외래약국^외래약국^외래약국^비고수량/출고구분^비고수량/출고구분^비고수량/출고구분^비고수량/출고구분^비고수량/출고구분^비고수량/출고구분^비고수량/출고구분^비고수량/출고구분^비고기록^창고입고^이송^이송^창고^병동약국^외래약국^병동상비품^병원총재고^당월 누적사용|약품코드^창고^병동약국^외래약국^병동상비품^병원총재고^출고^반환^출고-반환^출고^반환^출고-반환^D0^D0^D1^D1^D2^D2^N^N^비고기록^창고입고^병동약국^외래약국^창고^병동약국^외래약국^병동상비품^병원총재고^당월 누적사용" colsep="^" colwidth="109, 56, 60, 61, 80, 77, 45, 40, 64, 39, 45, 68, 38, 19, 43, 19, 41, 19, 43, 19, 100, 59, 62, 64, 58, 73, 67, 74, 76, 59" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:90px; width:1195px; height:665px; ">
  345. <col ref="drugcd" style="text-align:center; "/>
  346. <col ref="bf_warestocqty" type="input" format="#####.99" style="text-align:right; "/>
  347. <col ref="bf_instocqty" type="input" format="#####.99" style="text-align:right; "/>
  348. <col ref="bf_outstocqty" type="input" format="#####.99" style="text-align:right; "/>
  349. <col ref="bf_fixstocqty" type="input" format="#####.99" style="text-align:right; "/>
  350. <col ref="bf_totstocqty" type="input" format="#####.99" style="text-align:right; "/>
  351. <col ref="indeleqty" format="#####.99" style="text-align:right; "/>
  352. <col ref="inrtnqty" format="#####.99" style="text-align:right; "/>
  353. <col ref="inrealdeleqty" format="#####.99" style="text-align:right; "/>
  354. <col ref="outdeleqty" format="#####.99" style="text-align:right; "/>
  355. <col ref="outrtnqty" format="#####.99" style="text-align:right; "/>
  356. <col ref="outrealdeleqty" format="#####.99" style="text-align:right; "/>
  357. <col ref="remqty1" type="input" format="(-)#####.99" style="text-align:right; "/>
  358. <col ref="remflag1" type="combo">
  359. <choices>
  360. <item>
  361. <label/>
  362. <value/>
  363. </item>
  364. <item>
  365. <label>병동약국재고 출고</label>
  366. <value>1</value>
  367. </item>
  368. <item>
  369. <label>창고재고 출고</label>
  370. <value>2</value>
  371. </item>
  372. <item>
  373. <label>
  374. <![CDATA[병동약국재고 -> 상비품 이동]]>
  375. </label>
  376. <value>3</value>
  377. </item>
  378. <item>
  379. <label>
  380. <![CDATA[창고재고 -> 상비품 이동]]>
  381. </label>
  382. <value>4</value>
  383. </item>
  384. </choices>
  385. </col>
  386. <col ref="remqty2" type="input" format="(-)#####.99" style="text-align:right; "/>
  387. <col ref="remflag2" type="combo">
  388. <choices>
  389. <item>
  390. <label/>
  391. <value/>
  392. </item>
  393. <item>
  394. <label>병동약국재고 출고</label>
  395. <value>1</value>
  396. </item>
  397. <item>
  398. <label>창고재고 출고</label>
  399. <value>2</value>
  400. </item>
  401. <item>
  402. <label>
  403. <![CDATA[병동약국재고 -> 상비품 이동]]>
  404. </label>
  405. <value>3</value>
  406. </item>
  407. <item>
  408. <label>
  409. <![CDATA[창고재고 -> 상비품 이동]]>
  410. </label>
  411. <value>4</value>
  412. </item>
  413. </choices>
  414. </col>
  415. <col ref="remqty3" type="input" format="(-)#####.99" style="text-align:right; "/>
  416. <col ref="remflag3" type="combo">
  417. <choices>
  418. <item>
  419. <label/>
  420. <value/>
  421. </item>
  422. <item>
  423. <label>병동약국재고 출고</label>
  424. <value>1</value>
  425. </item>
  426. <item>
  427. <label>창고재고 출고</label>
  428. <value>2</value>
  429. </item>
  430. <item>
  431. <label>
  432. <![CDATA[병동약국재고 -> 상비품 이동]]>
  433. </label>
  434. <value>3</value>
  435. </item>
  436. <item>
  437. <label>
  438. <![CDATA[창고재고 -> 상비품 이동]]>
  439. </label>
  440. <value>4</value>
  441. </item>
  442. </choices>
  443. </col>
  444. <col ref="remqty4" type="input" format="(-)#####.99" style="text-align:right; "/>
  445. <col ref="remflag4" type="combo">
  446. <choices>
  447. <item>
  448. <label/>
  449. <value/>
  450. </item>
  451. <item>
  452. <label>병동약국재고 출고</label>
  453. <value>1</value>
  454. </item>
  455. <item>
  456. <label>창고재고 출고</label>
  457. <value>2</value>
  458. </item>
  459. <item>
  460. <label>
  461. <![CDATA[병동약국재고 -> 상비품 이동]]>
  462. </label>
  463. <value>3</value>
  464. </item>
  465. <item>
  466. <label>
  467. <![CDATA[창고재고 -> 상비품 이동]]>
  468. </label>
  469. <value>4</value>
  470. </item>
  471. </choices>
  472. </col>
  473. <col ref="remcmt" type="input" style="text-align:left; "/>
  474. <col ref="winqty" format="#####.99" style="text-align:right; "/>
  475. <col ref="intranqty" format="#####.99" style="text-align:right; "/>
  476. <col ref="outtranqty" format="#####.99" style="text-align:right; "/>
  477. <col ref="warestocqty" format="#####.99" style="text-align:right; "/>
  478. <col ref="instocqty" format="#####.99" style="text-align:right; "/>
  479. <col ref="outstocqty" format="#####.99" style="text-align:right; "/>
  480. <col ref="fixstocqty" format="#####.99" style="text-align:right; "/>
  481. <col ref="totstocqty" format="#####.99" style="text-align:right; "/>
  482. <col ref="monthsum" format="#####.99" style="text-align:right; "/>
  483. <script type="javascript" ev:event="onmousedown">
  484. <![CDATA[
  485. //setPopupMenu("grd_narclist", true, "/root/hidden/popup/prcp/item", "name", "param");
  486. ]]>
  487. </script>
  488. <script type="javascript" ev:event="DOMFocusOut">
  489. <![CDATA[
  490. // initPopupMenu();
  491. ]]>
  492. </script>
  493. <script type="javascript" ev:event="onendedit">
  494. <![CDATA[
  495. //for(var i = 1 ; i < grd_narclist.rows; i++) {
  496. model.refresh();
  497. var idx = grd_narclist.row - 2;
  498. var bf_warestocqty = model.getValue("/root/main/narclist/narclist[" + idx + "]/bf_warestocqty");
  499. var bf_instocqty = model.getValue("/root/main/narclist/narclist[" + idx + "]/bf_instocqty");
  500. var bf_outstocqty = model.getValue("/root/main/narclist/narclist[" + idx + "]/bf_outstocqty");
  501. var bf_fixstocqty = model.getValue("/root/main/narclist/narclist[" + idx + "]/bf_fixstocqty");
  502. var bf_totstocqty = model.getValue("/root/main/narclist/narclist[" + idx + "]/bf_totstocqty");
  503. if(grd_narclist.col == grd_narclist.colRef("bf_warestocqty") || grd_narclist.col == grd_narclist.colRef("bf_instocqty") ||
  504. grd_narclist.col == grd_narclist.colRef("bf_outstocqty")) {
  505. model.setValue("/root/main/narclist/narclist[" + idx + "]/bf_totstocqty", Number(bf_warestocqty) + Number(bf_instocqty) + Number(bf_outstocqty) + Number(bf_fixstocqty) );
  506. }
  507. if(grd_narclist.col == grd_narclist.colRef("bf_fixstocqty") ) {
  508. model.setValue("/root/main/narclist/narclist[" + idx + "]/bf_warestocqty", bf_totstocqty - bf_instocqty - bf_outstocqty - bf_fixstocqty);
  509. }
  510. model.refresh();
  511. //}
  512. ]]>
  513. </script>
  514. </datagrid>
  515. <button id="button19" class="btn6_letter6" style="left:880px; top:760px; width:104px; height:22px; ">
  516. <caption>수불대장출력</caption>
  517. <script type="javascript" ev:event="DOMActivate">
  518. <![CDATA[
  519. //수불대장 조회
  520. submit("TRADT30903", false);
  521. model.makeValue("/root/send/srchdata/enddd", model.getValue("/root/send/data/print1/item/enddd"));
  522. model.makeValue("/root/send/srchdata/stocprntyn", "Y");
  523. model.refresh();
  524. if(model.getValue("/root/send/srchdata/enddd") != "") {
  525. if (checkbox2.value == 1) { //미리보기가 체크된 경우
  526. exeReportPreview("RPADT30302", "XMLSTR", "RPADT30302", "", "false","","","","","true", "", "");
  527. } else {
  528. exeReportPreview("RPADT30302", "XMLSTR", "RPADT30302", "", "true","","","","","true", "", "");
  529. }
  530. model.removeNodeset("/root/send/data/print1/item");
  531. }
  532. ]]>
  533. </script>
  534. </button>
  535. <select id="checkbox2" ref="/root/send/srchdata/preview" class="checkbox_search" overflow="visible" appearance="full" cols="2" rows="1" style="left:800px; top:765px; width:68px; height:14px; border-style:none; ">
  536. <choices>
  537. <item>
  538. <label>미리보기</label>
  539. <value>1</value>
  540. </item>
  541. </choices>
  542. </select>
  543. </xhtml:body>
  544. </xhtml:html>