SMRST05100_재고종합조회(영양팀).xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  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. <list>
  11. <goodstoc>
  12. <goodstoclist/>
  13. </goodstoc>
  14. <nutrwin>
  15. <nutrwinlist/>
  16. </nutrwin>
  17. <nutrdelive>
  18. <nutrdelivelist/>
  19. </nutrdelive>
  20. <nutrsum>
  21. <nutrsumlist/>
  22. </nutrsum>
  23. </list>
  24. </main>
  25. <init>
  26. <stocsumqty/>
  27. </init>
  28. <send>
  29. <goodiolist>
  30. <instcd/>
  31. <goodflag/>
  32. <deptcd/>
  33. <deptnm/>
  34. <goodcd/>
  35. <goodnm/>
  36. <goodspec/>
  37. <goodmodel/>
  38. <prodcmpynm/>
  39. <iofrdd/>
  40. <iotodd/>
  41. <stocym/>
  42. <lrgcd/>
  43. <lrgnm/>
  44. </goodiolist>
  45. <goodstoc>
  46. <instcd/>
  47. <goodcd/>
  48. </goodstoc>
  49. </send>
  50. </root>
  51. </instance>
  52. <bind id="sumpatqty" ref="/root/main/list/nutrwin/nutrwinlist/sumpatqty" calculate="../patmealwinqty +../curemealwinqty"/>
  53. <bind id="bind1" ref="/root/main/list/nutrdelive/nutrdelivelist/sumpatqty" calculate="../patmealdeliveqty +../curemealdeliveqty"/>
  54. <bind id="sumempqty" ref="/root/main/list/nutrwin/nutrwinlist/sumempqty" calculate="../empmealwinqty +../empnigtmealwinqty"/>
  55. <bind id="bind2" ref="/root/main/list/nutrdelive/nutrdelivelist/sumempqty" calculate="../empmealdeliveqty +../empnigtmealdeliveqty"/>
  56. <bind id="sumpatamt" ref="/root/main/list/nutrwin/nutrwinlist/sumpatamt" calculate="../sumpatqty *../winunitcost"/>
  57. <bind id="bind3" ref="/root/main/list/nutrdelive/nutrdelivelist/sumpatamt" calculate="../sumpatqty *../goodunitcost"/>
  58. <bind id="sumempamt" ref="/root/main/list/nutrwin/nutrwinlist/sumempamt" calculate="../sumempqty *../winunitcost"/>
  59. <bind id="bind4" ref="/root/main/list/nutrdelive/nutrdelivelist/sumempamt" calculate="../sumempqty *../goodunitcost"/>
  60. <bind id="winamt" ref="/root/main/list/nutrwin/nutrwinlist/winamt" calculate="../sumpatamt +../sumempamt"/>
  61. <bind id="bind5" ref="/root/main/list/nutrdelive/nutrdelivelist/deliveamt" calculate="../sumpatamt +../sumempamt"/>
  62. <script type="javascript" ev:event="xforms-ready">
  63. <![CDATA[
  64. //화면 Control을 초기화한다
  65. fInitialize();
  66. ]]>
  67. </script>
  68. <submission id="TRRST01301" ref="/root/send/goodiolist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/goodstoc"/>
  69. <submission id="TRRSI05401" ref="/root/send/goodiolist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/nutrwin"/>
  70. <submission id="TRRSO03301" ref="/root/send/goodiolist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/nutrdelive"/>
  71. <submission id="TRRST05101" ref="/root/send/goodiolist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/nutrsum"/>
  72. </model>
  73. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  75. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  76. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  79. <script type="javascript">
  80. <![CDATA[
  81. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  82. function fInitialize() {
  83. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  84. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  85. model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("dutplcecd"));
  86. var curdate = getCurrentDate();
  87. var cvtdate = curdate.toDate("YYYYMMDD");
  88. model.setValue(ipt_frdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  89. model.setValue(ipt_todd.attribute("ref") , curdate);
  90. // hidden
  91. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
  92. model.setValue(ipt_goodflag.attribute("ref") , "SF");
  93. misfGridInit(grd_nutrwin);
  94. misfGridInit(grd_nutrdelive);
  95. misfGridInit(grd_stoclist);
  96. misfGridInit(grd_nutrsum);
  97. misfMsterDetailSet(grd_nutrwin,null, "TRRSI05401" ,"N");
  98. misfMsterDetailSet(grd_nutrdelive,null, "TRRSO03301" ,"N");
  99. misfMsterDetailSet(grd_stoclist,null, "TRRST01301" ,"N");
  100. misfMsterDetailSet(grd_nutrsum,null, "TRRST05101" ,"N");
  101. grd_stoclist.subtotalposition = "after";
  102. model.refresh();
  103. }
  104. function fRetrevie()
  105. {
  106. if(fCheckRetrieveData() == false)return;
  107. misfGridInit(grd_nutrwin);
  108. misfGridInit(grd_nutrdelive);
  109. misfGridInit(grd_stoclist);
  110. misfGridInit(grd_nutrsum);
  111. misfMsterDetailRetrieve();
  112. }
  113. function fCheckRetrieveData()
  114. {
  115. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  116. {
  117. model.setFocus("cmb_instcd");
  118. return false;
  119. }
  120. if(model.getValue(ipt_frdd.attribute("ref")).length== 0 )
  121. {
  122. model.setFocus("ipt_frdd");
  123. return false;
  124. }
  125. if(model.getValue(ipt_todd.attribute("ref")).length== 0 )
  126. {
  127. model.setFocus("ipt_todd");
  128. return false;
  129. }
  130. if(model.getValue(ipt_goodcd.attribute("ref")).length== 0 )
  131. {
  132. model.setFocus("ipt_goodcd");
  133. return false;
  134. }
  135. }
  136. ]]>
  137. </script>
  138. </xhtml:head>
  139. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  140. <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  141. <caption id="caption21" class="tit_2" style="left:5px; top:83px; width:188px; height:13px; ">입고내역</caption>
  142. <group id="group6" style="left:0px; top:13px; width:1195px; height:61px; vertical-align:top; ">
  143. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  144. <button id="button4" navindex="8" class="btn1_letter2" style="left:1125px; top:20px; width:56px; height:22px; text-align:left; ">
  145. <caption>조회</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. fRetrevie();
  149. ]]>
  150. </script>
  151. </button>
  152. <line id="line14" class="line_4" style="x1:1110px; y1:9px; x2:1110px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  153. <caption id="caption1" class="search_name" style="left:16px; top:35px; width:86px; height:17px; ">물품코드 :</caption>
  154. <caption id="caption10" class="search_name" style="left:15px; top:9px; width:97px; height:17px; ">기관코드 :</caption>
  155. <caption id="caption4" class="search_name" style="left:315px; top:9px; width:86px; height:17px; ">입출기간 :</caption>
  156. <select1 id="cmb_instcd" ref="/root/send/goodiolist/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:133px; height:19px; ">
  157. <choices>
  158. <itemset nodeset="/root/init/instcd">
  159. <label ref="cdnm"/>
  160. <value ref="cdid"/>
  161. </itemset>
  162. </choices>
  163. </select1>
  164. <input id="ipt_frdd" ref="/root/send/goodiolist/iofrdd" class="input_s_essential" inputtype="date" style="left:404px; top:8px; width:95px; height:19px; ">
  165. <script type="javascript" ev:event="xforms-value-changed">
  166. <![CDATA[
  167. ]]>
  168. </script>
  169. </input>
  170. <input id="ipt_todd" ref="/root/send/goodiolist/iotodd" class="input_s_essential" inputtype="date" style="left:520px; top:8px; width:95px; height:19px; "/>
  171. <caption id="caption11" class="search_n_b" style="left:503px; top:11px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  172. <input id="ipt_deptcd" ref="/root/send/goodiolist/deptcd" class="input_s_default" visibility="hidden" style="left:935px; top:35px; width:27px; height:19px; ">
  173. <script type="javascript" ev:event="xforms-value-changed">
  174. <![CDATA[
  175. misfValidationCheck("02", "", "deptcd,deptnm" );
  176. model.refresh();
  177. ]]>
  178. </script>
  179. </input>
  180. <input id="ipt_goodcd" ref="/root/send/goodiolist/goodcd" class="input_s_essential" _chartype="upper" style="left:100px; top:34px; width:133px; height:19px; ">
  181. <script type="javascript" ev:event="xforms-value-changed">
  182. <![CDATA[
  183. if(ipt_goodcd.value.length == 0)
  184. ipt_goodnm.value = "";
  185. else
  186. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm",
  187. "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) + ",,,," ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm",
  188. ipt_goodcd,"SPRSD00190","instcd,goodflag","cmb_instcd,ipt_goodflag" ,"Y");
  189. model.refresh();
  190. ]]>
  191. </script>
  192. <script type="javascript" ev:event="onkeydown">
  193. <![CDATA[
  194. if (event.keyCode == 13)
  195. {
  196. ipt_goodcd.value = ipt_goodcd.currentText;
  197. ipt_goodcd.refresh();
  198. ipt_goodcd.dispatch("xforms-value-changed");
  199. }
  200. ]]>
  201. </script>
  202. </input>
  203. <input id="input9" class="input_s_essential" style="left:255px; top:34px; width:107px; height:19px; "/>
  204. <input id="ipt_goodnm" ref="/root/send/goodiolist/goodnm" class="input_fix" appearance="input" style="left:255px; top:34px; width:245px; height:19px; ">
  205. <script type="javascript" ev:event="xforms-value-changed">
  206. <![CDATA[
  207. if(ipt_goodnm.value.length == 0)
  208. ipt_goodcd.value = "";
  209. else
  210. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
  211. "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodnm.attribute("ref")) ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm",
  212. ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  213. model.refresh();
  214. ]]>
  215. </script>
  216. <script type="javascript" ev:event="onkeydown">
  217. <![CDATA[
  218. if (event.keyCode == 13)
  219. {
  220. ipt_goodnm.value = ipt_goodnm.currentText;
  221. ipt_goodnm.refresh();
  222. ipt_goodnm.dispatch("xforms-value-changed");
  223. }
  224. ]]>
  225. </script>
  226. </input>
  227. <output id="opt_goodmodel" ref="/root/send/goodiolist/goodmodel" class="output_fix" appearance="output" style="left:582px; top:34px; width:96px; height:19px; "/>
  228. <output id="opt_prodcmpynm" ref="/root/send/goodiolist/prodcmpynm" class="output_fix" appearance="output" style="left:679px; top:34px; width:108px; height:19px; "/>
  229. <output id="opt_goodspec" ref="/root/send/goodiolist/goodspec" class="output_fix" appearance="output" style="left:502px; top:34px; width:78px; height:19px; "/>
  230. <button id="btn_searchgoodcd" class="icon_search" style="left:237px; top:36px; width:16px; height:16px; ">
  231. <caption/>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm","SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  235. model.refresh();
  236. ]]>
  237. </script>
  238. </button>
  239. <input id="ipt_goodflag" ref="/root/send/goodiolist/goodflag" visibility="hidden" style="left:905px; top:35px; width:30px; height:19px; "/>
  240. </group>
  241. <line id="line15" class="line_1" style="x1:0; y1:98px; x2:1195; y2:99px; "/>
  242. <line id="line1" class="line_1" style="x1:0; y1:330px; x2:1195; y2:330px; "/>
  243. <caption id="caption3" class="tit_2" style="left:5px; top:315px; width:188px; height:13px; ">출고내역</caption>
  244. <datagrid id="grd_stoclist" nodeset="/root/main/list/goodstoc/goodstoclist" caption="환자식^환자식^직원식 ^직원식 |일반식^치료식^직원식^직원야식" colwidth="67, 76, 61, 81" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:890px; top:621px; width:305px; height:113px; ">
  245. <col ref="stocqty" style="text-align:right; "/>
  246. <col ref="curemealstocqty" style="text-align:right; "/>
  247. <col ref="empmealstocqty" style="text-align:right; "/>
  248. <col ref="empnigtmealstocqty" style="text-align:right; "/>
  249. </datagrid>
  250. <line id="line5" class="line_1" style="x1:890; y1:616; x2:1195; y2:616; "/>
  251. <caption id="caption5" class="tit_2" style="left:895px; top:602px; width:188px; height:13px; ">ONLINE 재고</caption>
  252. <caption id="caption13" class="tit_2" style="left:5px; top:602px; width:188px; height:13px; ">입출고 합계</caption>
  253. <line id="line6" class="line_1" style="x1:0; y1:616px; x2:885; y2:616px; "/>
  254. <datagrid id="grd_nutrwin" nodeset="/root/main/list/nutrwin/nutrwinlist" caption="입고일자^번호^순번^입출유형^발주번호^단가^환자식입고수량^환자식입고수량^소계^직원식입고수량^직원식입고수량^소계^입고금액^입고금액^총입고금액^입고자^비고|입고일자^번호^순번^입출유형^발주번호^단가^일반식^치료식^소계^직원식^직원야식^소계^환자식^직원식^총입고금액^입고자^비고" colwidth="80, 38, 36, 66, 0, 87, 71, 74, 74, 55, 56, 54, 84, 84, 103, 97, 104, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:102px; width:1195px; height:202px; ">
  255. <col ref="windd"/>
  256. <col ref="winno"/>
  257. <col ref="winseqno"/>
  258. <col ref="iokindnm"/>
  259. <col ref="goodnm"/>
  260. <col ref="winunitcost" style="text-align:right; "/>
  261. <col ref="patmealwinqty" style="text-align:right; "/>
  262. <col ref="curemealwinqty" format="#,###.0" maxlength="11.2" style="text-align:right; "/>
  263. <col ref="sumpatqty" format="#,###.0" maxlength="11.2" style="left:472px; top:43px; width:74px; height:23px; text-align:right; "/>
  264. <col ref="empmealwinqty" format="#,###.0" maxlength="11.2" style="text-align:right; "/>
  265. <col ref="empnigtmealwinqty" format="#,###.0" maxlength="11.2" style="text-align:right; "/>
  266. <col ref="sumempqty" format="#,###.0" maxlength="11.2" style="text-align:right; "/>
  267. <col ref="sumpatamt" format="#,###.0" style="text-align:right; "/>
  268. <col ref="sumempamt" format="#,###.0" style="text-align:right; "/>
  269. <col ref="winamt" format="#,###.0" style="text-align:right; "/>
  270. <col ref="winpsnnm" visibility="visible"/>
  271. <col ref="cmt" visibility="hidden"/>
  272. <col ref="curemealwinamt" visibility="hidden"/>
  273. <col ref="empmealwinamt" visibility="hidden"/>
  274. <col ref="empnigtmealwinamt" visibility="hidden"/>
  275. <col ref="winpackqty" visibility="hidden"/>
  276. <col ref="winpackunit" visibility="hidden"/>
  277. <col ref="winpackcntperunit" visibility="hidden"/>
  278. <col ref="winqty" visibility="hidden"/>
  279. <col ref="reqqty" visibility="hidden"/>
  280. <col ref="winamt" visibility="hidden"/>
  281. <col ref="delivedeptqty" visibility="hidden"/>
  282. <col ref="stocqty" visibility="hidden"/>
  283. <col ref="instcd" visibility="hidden"/>
  284. <col ref="goodflag" visibility="hidden"/>
  285. <col ref="winpsn" visibility="hidden"/>
  286. <col ref="windeptcd" visibility="hidden"/>
  287. <col ref="installplcecd" visibility="hidden"/>
  288. <col ref="paycond" visibility="hidden"/>
  289. <col ref="temppay" visibility="hidden"/>
  290. <col ref="calcdocukind" visibility="hidden"/>
  291. <col ref="elctstmntyn" visibility="hidden"/>
  292. <col ref="iokind" visibility="hidden"/>
  293. <col ref="suplplcecd" visibility="hidden"/>
  294. <col ref="purcdmnddd" visibility="hidden"/>
  295. <col ref="purcdmndno" visibility="hidden"/>
  296. <col ref="purcdmndseq" visibility="hidden"/>
  297. <col ref="deliveno" visibility="hidden"/>
  298. <col ref="deliveseqno" visibility="hidden"/>
  299. <col ref="bnscd" visibility="hidden"/>
  300. <col ref="calcdocudd" visibility="hidden"/>
  301. <col ref="profno" visibility="hidden"/>
  302. <col ref="acntcd" visibility="hidden"/>
  303. <col ref="reqdd" visibility="hidden"/>
  304. <col ref="reqno" visibility="hidden"/>
  305. <col ref="reqseqno" visibility="hidden"/>
  306. <col ref="valiterm" visibility="hidden"/>
  307. <col ref="stocynindx" visibility="hidden"/>
  308. <col ref="chkdd" visibility="hidden"/>
  309. <col ref="chkpsn" visibility="hidden"/>
  310. <col ref="chkyn" visibility="hidden"/>
  311. <col ref="slipdd" visibility="hidden"/>
  312. <col ref="slipno" visibility="hidden"/>
  313. <col ref="suppcustcd" visibility="hidden"/>
  314. <col ref="prewinqty" visibility="hidden"/>
  315. <col ref="minexch" visibility="hidden"/>
  316. <script type="javascript" ev:event="onbuttonclick">
  317. <![CDATA[
  318. if (grd_nutrwin.col == grd_nutrwin.colRef("goodcd") && grd_nutrwin.rowStatus(grd_nutrwin.row) == "1" ) {//구성물품코드를 눌렀을 경우
  319. model.removenode("/root/copynode");
  320. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  321. model.makeNode("/root/copynode");
  322. rszfOpenPopUpListByWndName(grd_nutrwin,"","goodcd,goodnm","SPRSD00190","instcd,goodflag","cmb_instcd,cmb_goodflag");
  323. var cur_row = grd_nutrwin.row;
  324. var status = grd_nutrwin.valueMatrix(cur_row, grd_nutrwin.colRef("m"));
  325. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  326. setCSVToNode("/root/copynode", CSV, "nutrwinlist");
  327. fSettingGoodList("/root/copynode", "nutrwinlist" , "userqty");
  328. }
  329. ]]>
  330. </script>
  331. <script type="javascript" ev:event="xforms-value-changed">
  332. <![CDATA[
  333. if(grd_nutrwin.col == grd_nutrwin.colRef("goodcd") && grd_nutrwin.valueMatrix(grd_nutrwin.row, grd_nutrwin.colRef("goodcd")).length> 0) {
  334. model.removenode("/root/copynode");
  335. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  336. model.makeNode("/root/copynode");
  337. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/goodflag") + "," + model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/goodcd") + ",,,," ,"","goodcd,goodnm,minexch,goodunitcost",grd_nutrwin,"SPRSD00190","instcd,goodflag","cmb_instcd," + model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/goodflag"),"Y");
  338. model.refresh();
  339. if( grd_nutrwin.valueMatrix(cur_row, grd_nutrwin.colRef("goodnm")).length> 0)
  340. {
  341. if(model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") > 0)
  342. {
  343. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/patmealwinqty" , model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") );
  344. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/curemealwinqty" , model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") );
  345. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/empmealwinqty" , model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") );
  346. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/empnigtmealwinqty" , model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") );
  347. }
  348. else
  349. {
  350. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/patmealwinqty" , "1");
  351. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/curemealwinqty" , "1");
  352. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/empmealwinqty" , "1");
  353. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/empnigtmealwinqty" , "1");
  354. }
  355. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackunit" ,model.getValue("/root/init/main/goodlist/purcunit"));
  356. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winunit" , model.getValue("/root/init/main/goodlist/purcunit"));
  357. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackcntperunit" ,1);
  358. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackqty" ,1);
  359. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winunitcost" , model.getValue("/root/init/main/goodlist/goodunitcost"));
  360. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/iokind" ,model.getValue(cmb_instcd.attribute("ref")) );
  361. }
  362. model.recalculate();
  363. model.refresh();
  364. var cur_row = grd_nutrwin.row;
  365. var status = grd_nutrwin.valueMatrix(cur_row, grd_nutrwin.colRef("m"));
  366. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  367. if(CSV.length == 0 && grd_nutrwin.valueMatrix(cur_row, grd_nutrwin.colRef("goodnm")).length == 0)
  368. {
  369. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/goodcd" , "");
  370. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/goodnm" , "");
  371. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackqty" , "");
  372. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackunit" , "");
  373. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winunit" , "");
  374. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winqty" , "");
  375. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackcntperunit" , "");
  376. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winunitcost" , "");
  377. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winamt" , "");
  378. grd_nutrwin.col = grd_nutrwin.colRef("goodcd");
  379. grd_nutrwin.editCell();
  380. }
  381. if(CSV.length > 0)
  382. {
  383. model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/goodcd","");
  384. setCSVToNode("/root/copynode", CSV, "nutrwinlist");
  385. fSettingGoodList("/root/copynode", "nutrwinlist" , "userqty");
  386. }
  387. }
  388. ]]>
  389. </script>
  390. <script type="javascript" ev:event="onkeydown">
  391. <![CDATA[
  392. if(event.keyCode == 9)
  393. {
  394. if(event.shiftKey)
  395. {
  396. if(grd_nutrwin.colAttribute(grd_nutrwin.col + 1, "type").indexOf ("input") > -1)
  397. {
  398. for(curcol = grd_nutrwin.col -1 ; curcol > -1 ; curcol--)
  399. {
  400. if(grd_nutrwin.colAttribute(curcol, "type").indexOf ("input") > -1)
  401. {
  402. grd_nutrwin.col = curcol;
  403. grd_nutrwin.editCell();
  404. return;
  405. }
  406. }
  407. }
  408. }
  409. else
  410. {
  411. if(grd_nutrwin.colAttribute(grd_nutrwin.col, "type").indexOf ("input") == -1)
  412. {
  413. if(grd_nutrwin.col - 1 == grd_nutrwin.colRef("goodcd") && grd_nutrwin.valueMatrix(grd_nutrwin.row, grd_nutrwin.col - 1).length == 0)
  414. {
  415. grd_nutrwin.col = grd_nutrwin.colRef("goodcd");
  416. grd_nutrwin.editCell();
  417. return;
  418. }
  419. for(curcol = grd_nutrwin.col ; curcol <grd_nutrwin.cols ; curcol++)
  420. {
  421. if(grd_nutrwin.colAttribute(curcol, "type").indexOf ("input") > -1)
  422. {
  423. grd_nutrwin.col = curcol;
  424. grd_nutrwin.editCell();
  425. return;
  426. }
  427. }
  428. }
  429. }
  430. }
  431. ]]>
  432. </script>
  433. </datagrid>
  434. <datagrid id="grd_nutrdelive" nodeset="/root/main/list/nutrdelive/nutrdelivelist" caption="출고일자^번호^순번^입출유형^단가^단가^단위^환산수량^환자식출고수량*^환자식출고수량*^소계^직원식출고수량*^직원식출고수량*^소계^출고금액^출고금액^총출고금액^출고자|출고일자^번호^순번^입출유형^단가^단가^단위^환산수량^일반식^치료식^소계^직원식^직원야식^소계^환자식^직원식^총출고금액^출고자" colwidth="74, 39, 37, 70, 87, 0, 0, 0, 69, 75, 74, 55, 57, 54, 84, 85, 102, 95, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" style="left:0px; top:335px; width:1195px; height:257px; ">
  435. <col ref="delivedd"/>
  436. <col ref="deliveno"/>
  437. <col ref="deliveseqno" style="text-align:center; "/>
  438. <col ref="iokindnm"/>
  439. <col ref="goodunitcost" style="text-align:right; "/>
  440. <col ref="goodunitcost" visibility="hidden" style="text-align:right; "/>
  441. <col ref="deliveunit" visibility="hidden" style="text-align:center; "/>
  442. <col ref="exchqty" visibility="hidden"/>
  443. <col ref="patmealdeliveqty" format="#,###.00" maxlength="14.2" style="text-align:right; "/>
  444. <col ref="curemealdeliveqty" format="#,###.00" maxlength="14.2" style="text-align:right; "/>
  445. <col ref="sumpatqty" format="#,###.0" maxlength="11.2" style="left:472px; top:43px; width:74px; height:23px; text-align:right; "/>
  446. <col ref="empmealdeliveqty" format="#,###.00" maxlength="14.2" style="text-align:right; "/>
  447. <col ref="empnigtmealdeliveqty" format="#,###.00" maxlength="14.2" style="text-align:right; "/>
  448. <col ref="sumempqty" format="#,###.0" style="text-align:right; "/>
  449. <col ref="sumpatamt" format="#,###.0" style="text-align:right; "/>
  450. <col ref="sumempamt" format="#,###.0" style="text-align:right; "/>
  451. <col ref="deliveamt" format="#,###" style="text-align:right; "/>
  452. <col ref="delivepsnnm"/>
  453. <col ref="instcd" visibility="hidden"/>
  454. <col ref="goodflag" visibility="hidden"/>
  455. <col ref="iokindcd" visibility="hidden"/>
  456. <col ref="delivedeptcd" visibility="hidden"/>
  457. <col ref="delivepsn" visibility="hidden"/>
  458. <col ref="windeptcd" visibility="hidden"/>
  459. <col ref="reqflag" visibility="hidden"/>
  460. <col ref="delivedeptqty" visibility="hidden"/>
  461. <col ref="predelivedeptqty" visibility="hidden"/>
  462. </datagrid>
  463. <datagrid id="grd_nutrsum" nodeset="/root/main/list/nutrsum/nutrsumlist" class="stocdeptcd" caption="환자식^환자식^환자식^환자식^환자식^환자식^환자식^환자식^환자식^환자식^직원식^직원식^직원식^직원식^직원식^직원식^직원식^직원식^직원식^직원식|일반식^일반식^일반식^일반식^일반식^치료식^치료식^치료식^치료식^치료식^직원식 ^직원식 ^직원식 ^직원식 ^직원식 ^직원야식^직원야식^직원야식^직원야식^직원야식|이월^입고^출고^재고^입고금액^이월^입고^출고^재고^입고금액^이월^입고^출고^재고^입고금액^이월^입고^출고^재고^입고금액" colwidth="41, 40, 40, 37, 59, 41, 43, 41, 42, 61, 44, 38, 38, 37, 56, 38, 38, 40, 39, 68" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:621px; width:885px; height:113px; ">
  464. <col ref="patmealbrngfwrdqty" style="text-align:right; "/>
  465. <col ref="patmealwinqty" style="text-align:right; "/>
  466. <col ref="patmealdeliveqty" style="text-align:right; "/>
  467. <col ref="patmealstocqty" style="text-align:right; "/>
  468. <col ref="patmealwinamt" style="text-align:right; "/>
  469. <col ref="curemealbrngfwrdqty" style="text-align:right; "/>
  470. <col ref="curemealwinqty" style="text-align:right; "/>
  471. <col ref="curemealdeliveqty" style="text-align:right; "/>
  472. <col ref="curemealstocqty" style="text-align:right; "/>
  473. <col ref="curemealwinamt" style="text-align:right; "/>
  474. <col ref="empmealbrngfwrdqty" style="text-align:right; "/>
  475. <col ref="empmealwinqty" style="text-align:right; "/>
  476. <col ref="empmealdeliveqty" style="text-align:right; "/>
  477. <col ref="empmealstocqty" style="text-align:right; "/>
  478. <col ref="empmealwinamt" style="text-align:right; "/>
  479. <col ref="empnigtmealbrngfwrdqty" style="text-align:right; "/>
  480. <col ref="empnigtmealwinqty" style="text-align:right; "/>
  481. <col ref="empnigtmealdeliveqty" style="left:1114px; top:63px; width:52px; height:23px; text-align:right; "/>
  482. <col ref="empnigtmealstocqty" style="text-align:right; "/>
  483. <col ref="empnigtmealwinamt" style="text-align:right; "/>
  484. </datagrid>
  485. </group>
  486. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  487. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">재고종합조회</caption>
  488. </group>
  489. <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  490. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  491. <caption>초기화</caption>
  492. <script type="javascript" ev:event="DOMActivate">
  493. <![CDATA[
  494. fInitialize();
  495. ]]>
  496. </script>
  497. </button>
  498. <line id="line4" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  499. </group>
  500. </xhtml:body>
  501. </xhtml:html>