SMMNP04900_물품청구관리.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  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. <init>
  10. <hardcodeinfo/>
  11. </init>
  12. <main>
  13. <cond>
  14. <reqfromdd/>
  15. <reqtodd/>
  16. <purcflag>1</purcflag>
  17. <goodcd/>
  18. <goodnm/>
  19. <reqprid>0</reqprid>
  20. <endflag>N</endflag>
  21. <allsizespecid/>
  22. <deptflag>O</deptflag>
  23. <reqmthd/>
  24. <reqdeptcd/>
  25. <refflag/>
  26. </cond>
  27. <rsdhdemdinfo>
  28. <rsdhdemdlist>
  29. <reqdd/>
  30. <goodcd/>
  31. <allsizespecid/>
  32. <goodspec/>
  33. <goodnm/>
  34. <goodmodel/>
  35. <prodcmpynm/>
  36. <prcpunit/>
  37. <reqqty/>
  38. <deliveqty/>
  39. <chkflag/>
  40. <winqty/>
  41. <opinflag/>
  42. <cmt/>
  43. <goodflag/>
  44. <reqmthd/>
  45. <reqdeptcd/>
  46. <deliveno/>
  47. <deliveseqno/>
  48. <reqno/>
  49. <reqseqno/>
  50. <reqflag/>
  51. <bfwinqty/>
  52. <opprocflag/>
  53. <prcpexchqty/>
  54. </rsdhdemdlist>
  55. </rsdhdemdinfo>
  56. </main>
  57. <send>
  58. <reqdata/>
  59. <savedata/>
  60. </send>
  61. <hidden/>
  62. <temp>
  63. <refflag/>
  64. </temp>
  65. </root>
  66. </instance>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. fInit();
  70. ]]>
  71. </script>
  72. <submission id="TRMNP04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rsdhdemdinfo"/>
  73. <submission id="TXMNP04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsdhdemdinfo"/>
  74. <submission id="TXMNP04902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsdhdemdinfo"/>
  75. <submission id="TRMNP04903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hardcodeinfo"/>
  76. </model>
  77. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  81. <script type="javascript" src="../../../emr/opanstweb/js/SMMNP04900.js"/>
  82. </xhtml:head>
  83. <xhtml:body guideline="1,1195;2,753;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  84. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  85. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:248px; height:14px; ">물품입고관리</caption>
  86. </group>
  87. <group id="group1" scroll="auto" style="left:0px; top:18px; width:1195px; height:735px; ">
  88. <group id="group2" style="left:0px; top:5px; width:1194px; height:60px; vertical-align:top; ">
  89. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  90. <caption id="caption3" class="search_name" style="left:0px; top:9px; width:86px; height:17px; ">청구일자 :</caption>
  91. <button id="btn_search" class="btn1_letter2" style="left:1110px; top:7px; width:56px; height:22px; ">
  92. <caption>조회</caption>
  93. <script type="javascript" ev:event="DOMActivate">
  94. <![CDATA[
  95. fSearch();
  96. ]]>
  97. </script>
  98. </button>
  99. <line id="line3" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:52px; "/>
  100. <caption id="caption8" class="search_n_b" style="left:186px; top:11px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  101. <input id="ipt_reqfromdd" ref="/root/main/cond/reqfromdd" class="input_s_essential" inputtype="date" style="left:90px; top:8px; width:90px; height:19px; "/>
  102. <input id="ipt_reqtodd" ref="/root/main/cond/reqtodd" class="input_s_essential" inputtype="date" style="left:203px; top:8px; width:90px; height:19px; "/>
  103. <caption id="caption9" class="search_name" style="left:630px; top:36px; width:86px; height:17px; ">물품조회 :</caption>
  104. <button id="btn_excelsave" class="btn1_letter4" style="left:1110px; top:32px; width:80px; height:22px; ">
  105. <caption>엑셀저장</caption>
  106. <script type="javascript" ev:event="DOMActivate">
  107. <![CDATA[
  108. var pGrid = "";
  109. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  110. if( model.getValue("/root/main/cond/purcflag") == "1" ) {//구매
  111. if (fileName != ""){
  112. grd_purclist.saveExcel(fileName, "SheetName", false, false, "", "", true);
  113. }
  114. //pGrid = "grd_purclist";
  115. }else if( model.getValue("/root/main/cond/purcflag") == "2" ) {//수탁
  116. if (fileName != ""){
  117. grd_trustlist.saveExcel(fileName, "SheetName", false, false, "", "", true);
  118. }
  119. //pGrid = "grd_trustlist";
  120. }else if( model.getValue("/root/main/cond/purcflag") == "3" ) {//가납
  121. if (fileName != ""){
  122. grd_depositlist.saveExcel(fileName, "SheetName", false, false, "", "", true);
  123. }
  124. //pGrid = "grd_depositlist";
  125. }else if( model.getValue("/root/main/cond/purcflag") == "N" ) {//신규
  126. if (fileName != ""){
  127. grd_newlist.saveExcel(fileName, "SheetName", false, false, "", "", true);
  128. }
  129. //pGrid = "grd_newlist";
  130. }
  131. //fSaveExcel(pGrid);
  132. ]]>
  133. </script>
  134. </button>
  135. <input id="ipt_goodcd" ref="/root/main/cond/goodcd" class="input_search" style="left:720px; top:35px; width:80px; height:19px; ">
  136. <script type="javascript" ev:event="onkeyup">
  137. <![CDATA[
  138. //model.setValue("/root/temp/refflag", "2");
  139. inputEnterKey("btn_search", "DOMActivate");
  140. ]]>
  141. </script>
  142. </input>
  143. <button id="btn_goodsearch" class="icon_search" style="left:804px; top:36px; width:16px; height:16px; ">
  144. <caption/>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. fPopup();
  148. ]]>
  149. </script>
  150. </button>
  151. <input id="ipt_goodnm" ref="/root/main/cond/goodnm" class="input_search" style="left:825px; top:35px; width:165px; height:19px; ">
  152. <script type="javascript" ev:event="onkeyup">
  153. <![CDATA[
  154. //model.setValue("/root/temp/refflag", "1");
  155. inputEnterKey("btn_search", "DOMActivate");
  156. ]]>
  157. </script>
  158. </input>
  159. <caption id="caption12" class="search_name" style="left:315px; top:35px; width:89px; height:17px; ">집계구분 :</caption>
  160. <select1 id="rdo_reqprid" ref="/root/main/cond/reqprid" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:405px; top:35px; width:215px; height:20px; border-style:none; ">
  161. <choices>
  162. <item>
  163. <label>전체</label>
  164. <value>0</value>
  165. </item>
  166. <item>
  167. <label>일집계</label>
  168. <value>1</value>
  169. </item>
  170. <item>
  171. <label>월집계</label>
  172. <value>4</value>
  173. </item>
  174. <item>
  175. <label>주집계</label>
  176. <value>2</value>
  177. </item>
  178. </choices>
  179. </select1>
  180. <caption id="caption1" class="search_name" style="left:0px; top:35px; width:89px; height:17px; ">입고구분 :</caption>
  181. <select1 id="rdo_endflag" ref="/root/main/cond/endflag" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:90px; top:35px; width:215px; height:20px; border-style:none; ">
  182. <choices>
  183. <item>
  184. <label>전체</label>
  185. <value/>
  186. </item>
  187. <item>
  188. <label>입고</label>
  189. <value>Y</value>
  190. </item>
  191. <!--item>
  192. <label>부분입고</label>
  193. <value>S</value>
  194. </item -->
  195. <item>
  196. <label>미입고</label>
  197. <value>N</value>
  198. </item>
  199. </choices>
  200. </select1>
  201. <caption id="caption2" class="search_name" style="left:315px; top:9px; width:89px; height:17px; ">조회구분 :</caption>
  202. <select1 id="radio1" ref="/root/main/cond/refflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:405px; top:8px; width:140px; height:20px; border-style:none; ">
  203. <choices>
  204. <item>
  205. <label>전체</label>
  206. <value/>
  207. </item>
  208. <item>
  209. <label>청구</label>
  210. <value>1</value>
  211. </item>
  212. <item>
  213. <label>처방</label>
  214. <value>2</value>
  215. </item>
  216. </choices>
  217. </select1>
  218. <caption id="caption4" class="search_name" style="left:855px; top:9px; width:89px; height:17px; ">부서구분 :</caption>
  219. <select1 id="radio2" ref="/root/main/cond/deptflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:945px; top:8px; width:135px; height:20px; border-style:none; ">
  220. <choices>
  221. <item>
  222. <label>수술</label>
  223. <value>O</value>
  224. </item>
  225. <item>
  226. <label>마취</label>
  227. <value>A</value>
  228. </item>
  229. <item>
  230. <label>회복</label>
  231. <value>R</value>
  232. </item>
  233. </choices>
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. model.removenode("/root/send");
  237. model.makeValue("/root/send/reqdata/cdgrupid", "093");//퇴실장소
  238. model.makeValue("/root/send/reqdata/supcdid", "");//서브구분
  239. model.makeValue("/root/send/reqdata/cdid", model.getValue("/root/main/cond/deptflag"));//서브구분
  240. submit("TRMNP04903");
  241. model.setValue("/root/main/cond/reqdeptcd", model.getValue("/root/init/hardcodeinfo/cdnm"));
  242. ]]>
  243. </script>
  244. </select1>
  245. <button id="button1" class="btn2_letter3" style="left:995px; top:35px; width:53px; height:19px; ">
  246. <caption>초기화</caption>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. model.setValue("/root/main/cond/goodcd", "");
  250. model.setValue("/root/main/cond/goodnm", "");
  251. model.setValue("/root/main/cond/allsizespecid", "");
  252. model.refresh();
  253. ]]>
  254. </script>
  255. </button>
  256. <caption id="caption5" class="search_name" style="left:570px; top:9px; width:89px; height:17px; ">청구방법 :</caption>
  257. <select1 id="radio3" ref="/root/main/cond/reqmthd" appearance="full" cols="3" overflow="visible" style="left:660px; top:8px; width:180px; height:20px; border-style:none; ">
  258. <choices>
  259. <item>
  260. <label>전체</label>
  261. <value/>
  262. </item>
  263. <item>
  264. <label>처방집계</label>
  265. <value>1</value>
  266. </item>
  267. <item>
  268. <label>일반청구</label>
  269. <value>3</value>
  270. </item>
  271. </choices>
  272. </select1>
  273. </group>
  274. <button id="btn_cncl" class="btn2_letter4" style="left:1059px; top:75px; width:64px; height:19px; ">
  275. <caption>입고취소</caption>
  276. <script type="javascript" ev:event="DOMActivate">
  277. <![CDATA[
  278. fSaveCncl();
  279. ]]>
  280. </script>
  281. </button>
  282. <button id="btn_cnfm" class="btn2_letter2" visibility="hidden" style="left:780px; top:75px; width:42px; height:19px; ">
  283. <caption>확정</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. fSaveCnfm();
  287. ]]>
  288. </script>
  289. </button>
  290. <button id="btn_purc" class="btn_sw" group="tab" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:0px; top:75px; width:60px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  291. <caption>구 매</caption>
  292. <toggle case="opmain" ev:event="onclick"/>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. model.removeNodeset("/root/main/rsdhdemdinfo/rsdhdemdlist");
  296. model.setValue("/root/main/cond/purcflag", "1");
  297. model.toggle("case1");
  298. btn_cncl.visible = true;
  299. //btn_cnfm.visible = true;
  300. btn_save.visible = true;
  301. model.refresh();
  302. ]]>
  303. </script>
  304. </button>
  305. <button id="btn_trust" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:60px; top:75px; width:60px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  306. <caption>수 탁</caption>
  307. <toggle case="opmain" ev:event="onclick"/>
  308. <script type="javascript" ev:event="DOMActivate">
  309. <![CDATA[
  310. model.removeNodeset("/root/main/rsdhdemdinfo/rsdhdemdlist");
  311. model.setValue("/root/main/cond/purcflag", "2");
  312. model.toggle("case2");
  313. btn_cncl.visible = true;
  314. //btn_cnfm.visible = true;
  315. btn_save.visible = true;
  316. model.refresh();
  317. ]]>
  318. </script>
  319. </button>
  320. <button id="btn_deposit" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:120px; top:75px; width:60px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  321. <caption>가 납</caption>
  322. <toggle case="opmain" ev:event="onclick"/>
  323. <script type="javascript" ev:event="DOMActivate">
  324. <![CDATA[
  325. model.removeNodeset("/root/main/rsdhdemdinfo/rsdhdemdlist");
  326. model.setValue("/root/main/cond/purcflag", "3");
  327. model.toggle("case3");
  328. btn_cncl.visible = true;
  329. //btn_cnfm.visible = true;
  330. btn_save.visible = true;
  331. model.refresh();
  332. ]]>
  333. </script>
  334. </button>
  335. <button id="btn_new" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:180px; top:75px; width:60px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  336. <caption>신 규</caption>
  337. <toggle case="opmain" ev:event="onclick"/>
  338. <script type="javascript" ev:event="DOMActivate">
  339. <![CDATA[
  340. model.removeNodeset("/root/main/rsdhdemdinfo/rsdhdemdlist");
  341. model.setValue("/root/main/cond/purcflag", "N");
  342. model.toggle("case4");
  343. btn_cncl.visible = false;
  344. //btn_cnfm.visible = false;
  345. btn_save.visible = true;
  346. model.refresh();
  347. ]]>
  348. </script>
  349. </button>
  350. <switch id="switch1" style="left:0px; top:95px; width:1195px; height:630px; ">
  351. <case id="case1" style="left:0px; top:0px; width:1194px; height:629px; ">
  352. <datagrid id="grd_purclist" nodeset="/root/main/rsdhdemdinfo/rsdhdemdlist" class="datagrid2" caption="청구일자^물품코드^SIZE^물품명^규격^모델^제조원^단위^청구&#xA;수량^구매&#xA;수량^^입고&#xA;수량^재고&#xA;반영^비고^^^^^^^^^" colsep="^" colwidth="80, 80, 37, 260, 110, 100, 95, 55, 45, 45, 35, 45, 55, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:7px; width:1194px; height:622px; ">
  353. <col ref="reqdd" format="yyyy-mm-dd" style="left:50px; top:23px; width:75px; height:23px; text-align:center; "/>
  354. <col ref="goodcd" style="text-align:center; "/>
  355. <col ref="allsizespecid" style="text-align:center; "/>
  356. <col ref="goodnm" style="text-align:left; "/>
  357. <col ref="goodspec" style="text-align:center; "/>
  358. <col ref="goodmodel" style="text-align:left; "/>
  359. <col ref="prodcmpynm" style="text-align:left; "/>
  360. <col ref="prcpunit" style="text-align:left; "/>
  361. <col ref="reqqty" style="text-align:right; "/>
  362. <col ref="deliveqty" style="text-align:right; "/>
  363. <col ref="chkflag" type="checkbox"/>
  364. <col ref="winqty" type="input" style="text-align:right; "/>
  365. <col disabled="true" ref="opinflag" type="combo" style="text-align:center; ">
  366. <choices>
  367. <item>
  368. <label>반영</label>
  369. <value>Y</value>
  370. </item>
  371. <item>
  372. <label>일부반영</label>
  373. <value>S</value>
  374. </item>
  375. <item>
  376. <label>미반영</label>
  377. <value>N</value>
  378. </item>
  379. </choices>
  380. </col>
  381. <col ref="cmt" type="input" style="text-align:left; "/>
  382. <col ref="goodflag" style="text-align:right; "/>
  383. <col ref="reqmthd" style="text-align:right; "/>
  384. <col ref="reqdeptcd" style="text-align:right; "/>
  385. <col ref="deliveno" style="text-align:right; "/>
  386. <col ref="deliveseqno" style="text-align:right; "/>
  387. <col ref="reqno" style="text-align:right; "/>
  388. <col ref="reqseqno" style="text-align:right; "/>
  389. <col ref="reqflag" style="text-align:right; "/>
  390. <col ref="bfwinqty" style="text-align:right; "/>
  391. <col ref="opprocflag" style="text-align:right; "/>
  392. <col ref="prcpexchqty" style="text-align:right; "/>
  393. <script type="javascript" ev:event="onaftersort">
  394. <![CDATA[
  395. grd_purclist.gridToInstance();
  396. model.refresh();
  397. ]]>
  398. </script>
  399. <script type="javascript" ev:event="onendedit">
  400. <![CDATA[
  401. if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/winqty") > "0" ) {
  402. model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/chkflag", "true");
  403. }
  404. if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/winqty") != model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/bfwinqty") ) {
  405. model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/chkflag", "true");//이전수량과 틀릴때 체크
  406. }
  407. if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/winqty") == "0" ) {//입고수량이 0일때 미체크
  408. model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/chkflag", "false");
  409. }
  410. ]]>
  411. </script>
  412. </datagrid>
  413. <line id="line4" class="line_1" style="x1:0px; y1:2px; x2:1194px; y2:2px; "/>
  414. </case>
  415. <case id="case2" selected="true" style="left:0px; top:0px; width:1194px; height:629px; ">
  416. <datagrid id="grd_trustlist" nodeset="/root/main/rsdhdemdinfo/rsdhdemdlist" class="datagrid2" caption="청구일자^물품코드^SIZE^물품명^규격^모델^제조원^단위^청구&#xA;수량^구매&#xA;수량^^입고&#xA;수량^재고&#xA;반영^비고^^^^^^^^" colsep="^" colwidth="80, 80, 37, 260, 110, 100, 95, 55, 45, 45, 35, 45, 55, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:7px; width:1194px; height:622px; ">
  417. <col ref="reqdd" format="yyyy-mm-dd" style="left:50px; top:23px; width:75px; height:23px; text-align:center; "/>
  418. <col ref="goodcd" style="text-align:center; "/>
  419. <col ref="allsizespecid" style="text-align:center; "/>
  420. <col ref="goodnm" style="text-align:left; "/>
  421. <col ref="goodspec" style="text-align:center; "/>
  422. <col ref="goodmodel" style="text-align:left; "/>
  423. <col ref="prodcmpynm" style="text-align:left; "/>
  424. <col ref="prcpunit" style="text-align:left; "/>
  425. <col ref="reqqty" style="text-align:right; "/>
  426. <col ref="deliveqty" style="text-align:right; "/>
  427. <col ref="chkflag" type="checkbox"/>
  428. <col ref="winqty" type="input" style="text-align:right; "/>
  429. <col disabled="true" ref="opinflag" type="combo" style="text-align:center; ">
  430. <choices>
  431. <item>
  432. <label>반영</label>
  433. <value>Y</value>
  434. </item>
  435. <item>
  436. <label>일부반영</label>
  437. <value>S</value>
  438. </item>
  439. <item>
  440. <label>미반영</label>
  441. <value>N</value>
  442. </item>
  443. </choices>
  444. </col>
  445. <col ref="cmt" type="input" style="text-align:left; "/>
  446. <col ref="goodflag" style="text-align:right; "/>
  447. <col ref="reqmthd" style="text-align:right; "/>
  448. <col ref="reqdeptcd" style="text-align:right; "/>
  449. <col ref="deliveno" style="text-align:right; "/>
  450. <col ref="deliveseqno" style="text-align:right; "/>
  451. <col ref="reqno" style="text-align:right; "/>
  452. <col ref="reqseqno" style="text-align:right; "/>
  453. <col ref="reqflag" style="text-align:right; "/>
  454. <col ref="bfwinqty" style="text-align:right; "/>
  455. <col ref="opprocflag" style="text-align:right; "/>
  456. <script type="javascript" ev:event="onaftersort">
  457. <![CDATA[
  458. grd_trustlist.gridToInstance();
  459. model.refresh();
  460. ]]>
  461. </script>
  462. <script type="javascript" ev:event="onendedit">
  463. <![CDATA[
  464. if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_trustlist.row+"]/winqty") > "0" ) {
  465. model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_trustlist.row+"]/chkflag", "true");
  466. }
  467. if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_trustlist.row+"]/winqty") != model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/bfwinqty") ) {
  468. model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_trustlist.row+"]/chkflag", "true");//이전수량과 틀릴때 체크
  469. }
  470. if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_trustlist.row+"]/winqty") == "0" ) {//입고수량이 0일때 미체크
  471. model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_trustlist.row+"]/chkflag", "false");
  472. }
  473. ]]>
  474. </script>
  475. </datagrid>
  476. <line id="line1" class="line_1" style="x1:0px; y1:2px; x2:1194px; y2:2px; "/>
  477. </case>
  478. <case id="case3" style="left:0px; top:0px; width:1194px; height:629px; ">
  479. <datagrid id="grd_depositlist" nodeset="/root/main/rsdhdemdinfo/rsdhdemdlist" class="datagrid2" caption="청구일자^물품코드^SIZE^물품명^규격^모델^제조원^단위^청구&#xA;수량^구매&#xA;수량^^입고&#xA;수량^재고&#xA;반영^비고^^^^^^^^" colsep="^" colwidth="80, 80, 37, 260, 110, 100, 95, 55, 45, 45, 35, 45, 55, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:7px; width:1194px; height:622px; ">
  480. <col ref="reqdd" format="yyyy-mm-dd" style="left:50px; top:23px; width:75px; height:23px; text-align:center; "/>
  481. <col ref="goodcd" style="text-align:center; "/>
  482. <col ref="allsizespecid" style="text-align:center; "/>
  483. <col ref="goodnm" style="text-align:left; "/>
  484. <col ref="goodspec" style="text-align:center; "/>
  485. <col ref="goodmodel" style="text-align:left; "/>
  486. <col ref="prodcmpynm" style="text-align:left; "/>
  487. <col ref="prcpunit" style="text-align:left; "/>
  488. <col ref="reqqty" style="text-align:right; "/>
  489. <col ref="deliveqty" style="text-align:right; "/>
  490. <col ref="chkflag" type="checkbox"/>
  491. <col ref="winqty" type="input" style="text-align:right; "/>
  492. <col disabled="true" ref="opinflag" type="combo" style="text-align:center; ">
  493. <choices>
  494. <item>
  495. <label>반영</label>
  496. <value>Y</value>
  497. </item>
  498. <item>
  499. <label>일부반영</label>
  500. <value>S</value>
  501. </item>
  502. <item>
  503. <label>미반영</label>
  504. <value>N</value>
  505. </item>
  506. </choices>
  507. </col>
  508. <col ref="cmt" type="input" style="text-align:left; "/>
  509. <col ref="goodflag" style="text-align:right; "/>
  510. <col ref="reqmthd" style="text-align:right; "/>
  511. <col ref="reqdeptcd" style="text-align:right; "/>
  512. <col ref="deliveno" style="text-align:right; "/>
  513. <col ref="deliveseqno" style="text-align:right; "/>
  514. <col ref="reqno" style="text-align:right; "/>
  515. <col ref="reqseqno" style="text-align:right; "/>
  516. <col ref="reqflag" style="text-align:right; "/>
  517. <col ref="bfwinqty" style="text-align:right; "/>
  518. <col ref="opprocflag" style="text-align:right; "/>
  519. <script type="javascript" ev:event="onaftersort">
  520. <![CDATA[
  521. grd_depositlist.gridToInstance();
  522. model.refresh();
  523. ]]>
  524. </script>
  525. <script type="javascript" ev:event="onendedit">
  526. <![CDATA[
  527. if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_depositlist.row+"]/winqty") > "0" ) {
  528. model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_depositlist.row+"]/chkflag", "true");
  529. }
  530. if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_depositlist.row+"]/winqty") != model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/bfwinqty") ) {
  531. model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_depositlist.row+"]/chkflag", "true");//이전수량과 틀릴때 체크
  532. }
  533. if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_depositlist.row+"]/winqty") == "0" ) {//입고수량이 0일때 미체크
  534. model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_depositlist.row+"]/chkflag", "false");
  535. }
  536. ]]>
  537. </script>
  538. </datagrid>
  539. <line id="line2" class="line_1" style="x1:0px; y1:2px; x2:1194px; y2:2px; "/>
  540. </case>
  541. <case id="case4" style="left:0px; top:0px; width:1194px; height:629px; ">
  542. <datagrid id="grd_newlist" nodeset="/root/main/rsdhdemdinfo/rsdhdemdlist" class="datagrid2" backcoloralternate="transparent" caption="청구일자^물품코드^SIZE^물품명^규격^모델^제조원^단위^^입고&#xA;수량^^^^^^^^^^^^^" colsep="^" colwidth="90, 90, 40, 357, 135, 125, 120, 70, 40, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:7px; width:1194px; height:622px; ">
  543. <col ref="reqdd" format="yyyy-mm-dd" style="left:50px; top:23px; width:75px; height:23px; text-align:center; "/>
  544. <col ref="goodcd" style="text-align:center; "/>
  545. <col ref="allsizespecid" style="text-align:center; "/>
  546. <col ref="goodnm" style="text-align:left; "/>
  547. <col ref="goodspec" style="text-align:left; "/>
  548. <col ref="goodmodel" style="text-align:left; "/>
  549. <col ref="prodcmpynm" style="text-align:left; "/>
  550. <col ref="prcpunit" style="text-align:center; "/>
  551. <col ref="chkflag" type="checkbox"/>
  552. <col ref="winqty" type="input" style="text-align:right; background-color:#ccffcc; "/>
  553. <col disabled="true" ref="opinflag" type="combo" style="text-align:center; ">
  554. <choices>
  555. <item>
  556. <label>반영</label>
  557. <value>Y</value>
  558. </item>
  559. <item>
  560. <label>일부반영</label>
  561. <value>S</value>
  562. </item>
  563. <item>
  564. <label>미반영</label>
  565. <value>N</value>
  566. </item>
  567. </choices>
  568. </col>
  569. <col ref="cmt" style="text-align:left; "/>
  570. <col ref="reqqty" style="text-align:right; "/>
  571. <col ref="deliveqty" style="text-align:right; "/>
  572. <col ref="goodflag" style="text-align:right; "/>
  573. <col ref="reqmthd" style="text-align:right; "/>
  574. <col ref="reqdeptcd" style="text-align:right; "/>
  575. <col ref="deliveno" style="text-align:right; "/>
  576. <col ref="deliveseqno" style="text-align:right; "/>
  577. <col ref="reqno" style="text-align:right; "/>
  578. <col ref="reqseqno" style="text-align:right; "/>
  579. <col ref="reqflag" style="text-align:right; "/>
  580. <col ref="bfwinqty" style="text-align:right; "/>
  581. <col ref="opprocflag" style="text-align:right; "/>
  582. <script type="javascript" ev:event="onaftersort">
  583. <![CDATA[
  584. grd_newlist.gridToInstance();
  585. model.refresh();
  586. ]]>
  587. </script>
  588. <script type="javascript" ev:event="onendedit">
  589. <![CDATA[
  590. if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_newlist.row+"]/winqty") > "0" ) {
  591. model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_newlist.row+"]/chkflag", "true");
  592. }
  593. if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_newlist.row+"]/winqty") != model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/bfwinqty") ) {
  594. model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_newlist.row+"]/chkflag", "true");//이전수량과 틀릴때 체크
  595. }
  596. if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_newlist.row+"]/winqty") == "0" ) {//입고수량이 0일때 미체크
  597. model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_newlist.row+"]/chkflag", "false");
  598. }
  599. ]]>
  600. </script>
  601. </datagrid>
  602. <line id="line5" class="line_1" style="x1:0px; y1:2px; x2:1194px; y2:2px; "/>
  603. </case>
  604. </switch>
  605. <button id="btn_save" class="btn2_letter4" style="left:1126px; top:75px; width:64px; height:19px; ">
  606. <caption>입고저장</caption>
  607. <script type="javascript" ev:event="DOMActivate">
  608. <![CDATA[
  609. fSaveCnfm();
  610. ]]>
  611. </script>
  612. </button>
  613. </group>
  614. </xhtml:body>
  615. </xhtml:html>