SMRSG07500_(수탁)창고재고관리.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>수탁 물품 재고 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <goodstokinfo>
  12. <goodstoklist/>
  13. </goodstokinfo>
  14. <goodstokfrminfo>
  15. <goodstokfrmlist/>
  16. </goodstokfrminfo>
  17. <goodstokbatsaveinfo>
  18. <goodstokbatsavelist/>
  19. </goodstokbatsaveinfo>
  20. <goodstokchkcertinfo>
  21. <goodstokchkcertlist/>
  22. <goodstokchkpsn>
  23. <chkmmfrom/>
  24. <chkmmto/>
  25. </goodstokchkpsn>
  26. </goodstokchkcertinfo>
  27. </list>
  28. </main>
  29. <send>
  30. <search>
  31. <instcd/>
  32. <goodflag>Y</goodflag>
  33. <lrgcd/>
  34. <mdlcd/>
  35. <goodcd/>
  36. <goodnm/>
  37. <stocmngtflag/>
  38. <stocdtfrom/>
  39. <stocdtto/>
  40. <stocmmfrom/>
  41. <stocmmto/>
  42. <pridcond>D</pridcond>
  43. <chkmmfrom/>
  44. <chkmmto/>
  45. <suppcustcd/>
  46. <suppcustnm/>
  47. </search>
  48. <goodstoklist/>
  49. <goodstokbatsavelist/>
  50. </send>
  51. <init>
  52. </init>
  53. <temp>
  54. </temp>
  55. </root>
  56. </instance>
  57. <submission id="TRRSG07501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/goodstokinfo"/>
  58. <submission id="TRRSG07502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/goodstokchkcertinfo"/>
  59. <submission id="TRRSG07511" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/goodstokfrminfo"/>
  60. <submission id="TXRSG07501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodstoklist" resultref="/root/temp"/>
  61. <submission id="TXRSG07502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
  62. <submission id="TXRSG07521" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodstokbatsavelist" resultref="/root/temp"/>
  63. </model>
  64. <script type="javascript" ev:event="xforms-ready">
  65. <![CDATA[
  66. //화면 Control을 초기화한다
  67. fInitialize();
  68. ]]>
  69. </script>
  70. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  72. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  73. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  76. <script type="javascript">
  77. <![CDATA[
  78. function fInitialize()
  79. {
  80. var curdate = getCurrentDate();
  81. var cvtdate = curdate.toDate("YYYYMMDD");
  82. cap_title.attribute("text") = cmb_goodflag.label +" 재고 관리";
  83. misfComboComCdListMulti("R0069,Z0007","cmb_stocmngtflag,cmb_instcd");
  84. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  85. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  86. addComboItem( "cmb_lrgcd" , "전체", "", "above");
  87. addComboItem( "cmb_stocmngtflag" , "전체", "", "above");
  88. grd_goodstok.colAttribute(3, "format") = "yyyy/mm/dd";
  89. fSearchDateSetting(rdo_pridcond.value);
  90. model.setValue(ipt_stocdtfrom.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  91. model.setValue(ipt_stocdtto.attribute("ref") , curdate);
  92. model.setValue(ipt_stocmmfrom.attribute("ref") ,cvtdate.getAddDate(-31,"D").getDateFormat("YYYYMM"));
  93. model.setValue(ipt_stocmmto.attribute("ref") , curdate);
  94. model.setValue(ipt_chkmmfrom.attribute("ref") ,cvtdate.getDateFormat("YYYYMM"));
  95. model.setValue(ipt_chkmmto.attribute("ref") , cvtdate.getDateFormat("YYYYMM"));
  96. model.removeNodeset("/root/main/list/goodstokinfo/goodstoklist");
  97. model.removeNodeset("/root/main/list/goodstokfrminfo/goodstokfrmlist");
  98. model.removeNodeset("/root/main/list/goodstokbatsaveinfo/goodstokbatsavelist");
  99. fSearch(0);
  100. model.refresh();
  101. }
  102. function fSearchDateSetting(val)
  103. {
  104. if (val == 'M') { // 재고월
  105. ipt_stocdtfrom.visible = false;
  106. ipt_stocdtto.visible = false;
  107. cap_stocdd.visible = false;
  108. ipt_stocmmfrom.visible = true;
  109. ipt_stocmmto.visible = true;
  110. cap_stocmm.visible = true;
  111. } else if (val == 'D') { // 재고일자
  112. ipt_stocdtfrom.visible = true;
  113. ipt_stocdtto.visible = true;
  114. cap_stocdd.visible = true;
  115. ipt_stocmmfrom.visible = false;
  116. ipt_stocmmto.visible = false;
  117. cap_stocmm.visible = false;
  118. }
  119. }
  120. function fSearch(idx)
  121. {
  122. if (idx == 0) {
  123. model.removeNodeset("/root/main/list/goodstokinfo/goodstoklist");
  124. submit("TRRSG07501");
  125. } else if (idx == 1) {
  126. model.removeNodeset("/root/main/list/goodstokfrminfo/goodstokfrmlist");
  127. submit("TRRSG07511");
  128. } else if (idx == 2) {
  129. model.removeNodeset("/root/main/list/goodstokbatsaveinfo/goodstokbatsavelist");
  130. }
  131. }
  132. function fLoadExcel()
  133. {
  134. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  135. grd_goodstokbatsave.loadExcel(fileName);
  136. grd_goodstokbatsave.deleteRow(grd_goodstokbatsave.fixedRows);
  137. grd_goodstokbatsave.rebuild();
  138. for(var fRow = grd_goodstokbatsave.fixedRows; fRow < grd_goodstokbatsave.rows; fRow++)
  139. {
  140. grd_goodstokbatsave.addStatus(fRow, "update");
  141. }
  142. model.refresh();
  143. }
  144. ]]>
  145. </script>
  146. </xhtml:head>
  147. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  148. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  149. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">수탁 물품 재고 관리</caption>
  150. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  151. </group>
  152. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  153. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
  154. <select1 id="cmb_lrgcd" ref="/root/send/search/lrgcd" appearance="minimal" style="left:414px; top:36px; width:121px; height:19px; ">
  155. <choices>
  156. <itemset>
  157. <label/>
  158. <value/>
  159. </itemset>
  160. </choices>
  161. <script type="javascript" ev:event="xforms-value-changed">
  162. <![CDATA[
  163. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
  164. cmb_mdlcd.dispatch("xforms-value-changed");
  165. addComboItem( "cmb_mdlcd", "전체", "", "above");
  166. model.refresh();
  167. ]]>
  168. </script>
  169. </select1>
  170. <select1 id="cmb_stocmngtflag" ref="/root/send/search/stocmngtflag" visibility="hidden" appearance="minimal" style="left:896px; top:36px; width:209px; height:19px; ">
  171. <choices>
  172. <itemset nodeset="/root/init/stocmngtflag">
  173. <label ref="cdnm"/>
  174. <value ref="cdid"/>
  175. </itemset>
  176. </choices>
  177. </select1>
  178. <line id="line30" class="line_4" style="x1:1119px; y1:4px; x2:1119px; y2:58px; "/>
  179. <caption id="cap_goodcd" class="search_name" style="left:545px; top:10px; width:86px; height:17px; ">물품코드 :</caption>
  180. <input id="ipt_goodnm" ref="/root/send/search/goodnm" class="output_search" style="left:743px; top:10px; width:130px; height:19px; "/>
  181. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" appearance="minimal" style="left:104px; top:10px; width:206px; height:19px; ">
  182. <choices>
  183. <itemset nodeset="/root/main/init">
  184. <label ref="cnstnm"/>
  185. <value ref="cnstcd"/>
  186. </itemset>
  187. </choices>
  188. </select1>
  189. <select1 id="cmb_mdlcd" ref="/root/send/search/mdlcd" appearance="minimal" style="left:639px; top:36px; width:126px; height:19px; ">
  190. <choices>
  191. <itemset>
  192. <label/>
  193. <value/>
  194. </itemset>
  195. </choices>
  196. </select1>
  197. <input id="ipt_goodcd" ref="/root/send/search/goodcd" class="input_search" maxlength="10" appearance="input" style="left:639px; top:10px; width:81px; height:19px; "/>
  198. <button id="btn_goodcd" class="icon_search" style="left:724px; top:10px; width:16px; height:16px; ">
  199. <caption/>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  203. model.refresh();
  204. ]]>
  205. </script>
  206. </button>
  207. <input id="ipt_stocdtfrom" ref="/root/send/search/stocdtfrom" class="input_default" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:104px; top:36px; width:91px; height:19px; "/>
  208. <caption id="cap_goodflag" class="search_name" style="left:320px; top:10px; width:86px; height:17px; ">물품구분 :</caption>
  209. <select1 id="cmb_goodflag" ref="/root/send/search/goodflag" class="combo_default" appearance="minimal" style="left:414px; top:10px; width:121px; height:19px; ">
  210. <choices>
  211. <item>
  212. <label>수리부품</label>
  213. <value>B</value>
  214. </item>
  215. <item>
  216. <label>의료비품</label>
  217. <value>U</value>
  218. </item>
  219. <item>
  220. <label>의료소모품</label>
  221. <value>Y</value>
  222. </item>
  223. <item>
  224. <label>공급실물품</label>
  225. <value>T</value>
  226. </item>
  227. <item>
  228. <label>일반소모품</label>
  229. <value>Z</value>
  230. </item>
  231. </choices>
  232. <script type="javascript" ev:event="xforms-value-changed">
  233. <![CDATA[
  234. cap_title.attribute("text") = cmb_goodflag.label +" 재고 관리";
  235. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  236. addComboItem( "cmb_lrgcd", "전체", "", "above");
  237. cmb_mdlcd.value='';
  238. model.refresh();
  239. ]]>
  240. </script>
  241. </select1>
  242. <caption id="cap_instcd" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  243. <caption id="caption7" class="search_name" style="left:320px; top:36px; width:88px; height:17px; ">대 분 류 :</caption>
  244. <caption id="caption16" class="search_name" visibility="hidden" style="left:775px; top:36px; width:112px; height:17px; ">재고관리기준 :</caption>
  245. <caption id="caption8" class="search_name" style="left:543px; top:36px; width:88px; height:17px; ">중 분 류 :</caption>
  246. <caption id="cap_stocdd" class="search_name" style="left:10px; top:36px; width:86px; height:17px; ">재고기간 :</caption>
  247. <caption id="caption29" style="left:200px; top:37px; width:15px; height:17px; ">~</caption>
  248. <button id="btn_search" class="btn1_letter2" style="left:1129px; top:22px; width:56px; height:22px; ">
  249. <caption>조회</caption>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. if (swh_select.selectedIndex == 0) {
  253. fSearch(0);
  254. } else if (swh_select.selectedIndex == 1) {
  255. fSearch(1);
  256. } else if (swh_select.selectedIndex == 1) {
  257. fSearch(2);
  258. }
  259. ]]>
  260. </script>
  261. </button>
  262. <input id="ipt_stocdtto" ref="/root/send/search/stocdtto" class="input_default" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:220px; top:36px; width:91px; height:19px; "/>
  263. <input id="ipt_stocmmfrom" ref="/root/send/search/stocmmfrom" class="input_default" inputtype="date" format="yyyy-mm" appearance="input" style="left:104px; top:36px; width:91px; height:19px; "/>
  264. <input id="ipt_stocmmto" ref="/root/send/search/stocmmto" class="input_default" inputtype="date" format="yyyy-mm" appearance="input" style="left:220px; top:36px; width:91px; height:19px; "/>
  265. <caption id="cap_stocmm" class="search_name" style="left:10px; top:36px; width:86px; height:17px; ">재고 월 :</caption>
  266. <caption id="caption1" class="search_name" style="left:882px; top:10px; width:112px; height:17px; ">기간 조건 :</caption>
  267. <select1 id="rdo_pridcond" ref="/root/send/search/pridcond" appearance="full" cols="2" overflow="visible" style="left:976px; top:11px; width:135px; height:20px; border-style:solid; ">
  268. <choices>
  269. <item>
  270. <label>재고일자</label>
  271. <value>D</value>
  272. </item>
  273. <item>
  274. <label>재고월</label>
  275. <value>M</value>
  276. </item>
  277. </choices>
  278. <script type="javascript" ev:event="xforms-value-changed">
  279. <![CDATA[
  280. if (rdo_pridcond.value == "M"){
  281. grd_goodstok.colAttribute(3, "format") = "yyyy/mm";
  282. grd_goodstok.caption = "기관코드^물품구분^재고월^물품코드^물품코드^물품명^EDICD^물품 규격^모델^보조거래처코드^보조 거래처명^주거래처코드^주 거래처명^입고량^출고량^실재고량";
  283. }else{
  284. grd_goodstok.colAttribute(3, "format") = "yyyy/mm/dd";
  285. grd_goodstok.caption = "기관코드^물품구분^재고일자^물품코드^물품코드^물품명^EDICD^물품 규격^모델^보조거래처코드^보조 거래처명^주거래처코드^주 거래처명^입고량^출고량^실재고량";
  286. }
  287. fSearchDateSetting(rdo_pridcond.value);
  288. model.refresh();
  289. ]]>
  290. </script>
  291. </select1>
  292. <button id="btn_goodstokfrm" class="btn_sw" group="tab" style="left:143px; top:87px; width:125px; height:22px; ">
  293. <caption>재고 Upload 양식</caption>
  294. <toggle case="cse_goodstokfrm" ev:event="onclick"/>
  295. <script type="javascript" ev:event="DOMActivate">
  296. <![CDATA[
  297. fSearch(1);
  298. ]]>
  299. </script>
  300. </button>
  301. <button id="btn_goodstok" class="btn_sw" group="tab" selected="true" style="left:0px; top:87px; width:144px; height:22px; ">
  302. <caption>재고 조회</caption>
  303. <toggle case="cse_goodstok" ev:event="onclick"/>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. fSearch(0);
  307. ]]>
  308. </script>
  309. </button>
  310. <switch id="swh_select" style="left:0px; top:110px; width:1190px; height:595px; ">
  311. <case id="cse_goodstok">
  312. <line id="line1" class="line_1" style="x1:0px; y1:34px; x2:1185px; y2:34px; "/>
  313. <caption id="caption21" class="tit_2" style="left:0px; top:17px; width:143px; height:14px; ">재고 조회</caption>
  314. <datagrid id="grd_goodstok" nodeset="/root/main/list/goodstokinfo/goodstoklist" caption="기관코드^물품구분^재고일자^물품코드^물품코드^물품명^EDICD^물품 규격^모델^보조거래처코드^보조 거래처명^주거래처코드^주 거래처명^입고량^출고량^실재고량" colsep="^" colwidth="11, 13, 80, 90, 25, 121, 99, 115, 111, 18, 119, 18, 116, 66, 67, 73" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="24" rowsep="|" style="left:0px; top:40px; width:1185px; height:550px; font-weight:normal; text-align:center; ">
  315. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  316. <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
  317. <col ref="stocdd" format="yyyy/mm" style="text-align:center; "/>
  318. <col ref="goodcd" style="text-align:center; "/>
  319. <col ref="allsizespecid" style="text-align:center; "/>
  320. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  321. <col ref="edicd" style="text-align:left; padding-left:10; "/>
  322. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  323. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  324. <col ref="suppcustcd" visibility="hidden" style="text-align:left; "/>
  325. <col ref="suppcustnm" style="text-align:left; padding-left:10; "/>
  326. <col ref="maincustlastsuplplce" visibility="hidden" style="text-align:left; "/>
  327. <col ref="maincustlastsuplplcenm" style="text-align:left; padding-left:10; "/>
  328. <col ref="winqty" format="#,###" style="text-align:right; "/>
  329. <col ref="delivedeptqty" format="#,###" style="text-align:right; "/>
  330. <col ref="stocqty" format="#,###" style="text-align:right; "/>
  331. <script type="javascript" ev:event="onaftersort">
  332. <![CDATA[
  333. grd_goodstok.gridToInstance();
  334. ]]>
  335. </script>
  336. </datagrid>
  337. <button id="btn_print" class="btn2_letter6" style="left:990px; top:10px; width:86px; height:19px; ">
  338. <caption>검수증 출력</caption>
  339. <script type="javascript" ev:event="DOMActivate">
  340. <![CDATA[
  341. submit("TRRSG07502");
  342. model.makeValue("/root/main/list/goodstokchkcertinfo/goodstokchkpsn/chkmmfrom", model.getValue(ipt_chkmmfrom.attribute("ref")));
  343. model.makeValue("/root/main/list/goodstokchkcertinfo/goodstokchkpsn/chkmmto" , model.getValue(ipt_chkmmto.attribute("ref")));
  344. model.refresh();
  345. exeReportPreview("RPRSG07501", "XMLSTR");
  346. ]]>
  347. </script>
  348. </button>
  349. <input id="ipt_chkmmfrom" ref="/root/send/search/chkmmfrom" class="input_default" inputtype="date" format="yyyy-mm" appearance="input" style="left:767px; top:9px; width:91px; height:19px; "/>
  350. <input id="ipt_chkmmto" ref="/root/send/search/chkmmto" class="input_default" inputtype="date" format="yyyy-mm" appearance="input" style="left:883px; top:9px; width:91px; height:19px; "/>
  351. <caption id="caption9" style="left:863px; top:13px; width:15px; height:17px; ">~</caption>
  352. <caption id="caption11" style="left:718px; top:7px; width:74px; height:23px; vertical-align:middle; ">검수월 :</caption>
  353. <button id="btn_suppcustcd" class="icon_search" style="left:516px; top:12px; width:16px; height:16px; ">
  354. <caption/>
  355. <script type="javascript" ev:event="DOMActivate">
  356. <![CDATA[
  357. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd");
  358. model.refresh();
  359. ]]>
  360. </script>
  361. </button>
  362. <caption id="caption31" style="left:356px; top:11px; width:79px; height:17px; ">보조거래처 :</caption>
  363. <input id="ipt_suppcustnm" ref="/root/send/search/suppcustnm" class="input_essential" style="left:535px; top:10px; width:173px; height:19px; ">
  364. <script type="javascript" ev:event="xforms-value-changed">
  365. <![CDATA[
  366. if(ipt_suppcustnm.value != "")
  367. {
  368. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  369. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustnm.attribute("ref")),
  370. "","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  371. }else{
  372. ipt_suppcustnm.value = "";
  373. ipt_suppcustcd.value = "";
  374. }
  375. model.refresh();
  376. ]]>
  377. </script>
  378. </input>
  379. <input id="ipt_suppcustcd" ref="/root/send/search/suppcustcd" class="input_essential" style="left:429px; top:10px; width:84px; height:19px; ">
  380. <script type="javascript" ev:event="xforms-value-changed">
  381. <![CDATA[
  382. if ( model.getValue(ipt_suppcustcd.attribute("ref")).length == 0 ) model.setValue(ipt_suppcustnm.attribute("ref"),"");
  383. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref")),"","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  384. model.refresh();
  385. ]]>
  386. </script>
  387. </input>
  388. <button id="btn_stocbrngfwrd" class="btn2_letter7" style="left:1082px; top:10px; width:97px; height:19px; ">
  389. <caption>재고 전월 이월</caption>
  390. <script type="javascript" ev:event="DOMActivate">
  391. <![CDATA[
  392. if (submit("TXRSG07502")){
  393. btn_search.dispatch("DOMActivate");
  394. }
  395. ]]>
  396. </script>
  397. </button>
  398. </case>
  399. <case id="cse_goodstokfrm">
  400. <caption id="caption2" class="tit_2" style="left:0px; top:17px; width:143px; height:14px; ">재고 Upload 양식</caption>
  401. <line id="line2" class="line_1" style="x1:0px; y1:34px; x2:1185px; y2:34px; "/>
  402. <button id="btn_frmdown" class="btn2_letter5" style="left:1100px; top:10px; width:75px; height:19px; ">
  403. <caption>양식 받기</caption>
  404. <script type="javascript" ev:event="DOMActivate">
  405. <![CDATA[
  406. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  407. if (fileName != "") {
  408. grd_goodstokfrm.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
  409. }
  410. ]]>
  411. </script>
  412. </button>
  413. <datagrid id="grd_goodstokfrm" nodeset="/root/main/list/goodstokfrminfo/goodstokfrmlist" caption="기관코드^물품구분^재고일자^물품코드^물품코드^물품명^EDICD^물품 규격^모델^보조 거래처명^주 거래처명^단가^안전 재고량^적정 재고량^실재고량" colsep="^" colwidth="62, 63, 77, 90, 25, 121, 99, 115, 111, 119, 116, 88, 74, 77, 61" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="24" rowsep="|" style="left:0px; top:40px; width:1185px; height:550px; font-weight:normal; text-align:center; ">
  414. <col ref="instcd" visibility="visible" style="text-align:center; "/>
  415. <col ref="goodflag" visibility="visible" style="text-align:center; "/>
  416. <col ref="stocdd" format="yyyy/mm/dd" style="text-align:center; "/>
  417. <col ref="goodcd" style="text-align:center; "/>
  418. <col ref="allsizespecid" style="text-align:center; "/>
  419. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  420. <col ref="edicd" style="text-align:left; padding-left:10; "/>
  421. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  422. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  423. <col ref="suppcustnm" style="text-align:left; padding-left:10; "/>
  424. <col ref="maincustlastsuplplcenm" style="text-align:left; padding-left:10; "/>
  425. <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
  426. <col ref="safestocqty" format="#,###" style="text-align:right; "/>
  427. <col ref="prprtystocqty" format="#,###" style="text-align:right; "/>
  428. <col ref="stocqty" format="#,###" style="text-align:right; "/>
  429. <script type="javascript" ev:event="onaftersort">
  430. <![CDATA[
  431. grd_goodstokfrm.gridToInstance();
  432. ]]>
  433. </script>
  434. </datagrid>
  435. </case>
  436. <case id="cse_goodstokbatsave">
  437. <datagrid id="grd_goodstokbatsave" nodeset="/root/main/list/goodstokbatsaveinfo/goodstokbatsavelist" caption="기관코드^물품구분^재고일자^물품코드^물품코드^물품명^EDICD^물품 규격^모델^보조 거래처명^주 거래처명^단가^안전 재고량^적정 재고량^실재고량" colsep="^" colwidth="62, 63, 77, 90, 25, 121, 99, 115, 111, 119, 116, 88, 74, 77, 61" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:40px; width:1185px; height:550px; font-weight:normal; text-align:center; ">
  438. <col ref="instcd" visibility="visible" style="text-align:center; "/>
  439. <col ref="goodflag" visibility="visible" style="text-align:center; "/>
  440. <col ref="stocdd" format="yyyy/mm/dd" style="text-align:center; "/>
  441. <col ref="goodcd" style="text-align:center; "/>
  442. <col ref="allsizespecid" style="text-align:center; "/>
  443. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  444. <col ref="edicd" style="text-align:left; padding-left:10; "/>
  445. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  446. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  447. <col ref="suppcustnm" style="text-align:left; padding-left:10; "/>
  448. <col ref="maincustlastsuplplcenm" style="text-align:left; padding-left:10; "/>
  449. <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
  450. <col ref="safestocqty" format="#,###" style="text-align:right; "/>
  451. <col ref="prprtystocqty" format="#,###" style="text-align:right; "/>
  452. <col ref="stocqty" format="#,###" style="text-align:right; "/>
  453. <script type="javascript" ev:event="onaftersort">
  454. <![CDATA[
  455. grd_goodstokbatsave.gridToInstance();
  456. ]]>
  457. </script>
  458. </datagrid>
  459. <caption id="caption3" class="tit_2" style="left:0px; top:17px; width:143px; height:15px; ">재고 일괄 저장</caption>
  460. <line id="line3" class="line_1" style="x1:0px; y1:34px; x2:1185px; y2:34px; "/>
  461. <button id="btn_upload" class="btn2_letter6" style="left:1015px; top:10px; width:86px; height:19px; ">
  462. <caption>엑셀 Upload</caption>
  463. <script type="javascript" ev:event="DOMActivate">
  464. <![CDATA[
  465. misfGridInit(grd_goodstokbatsave);
  466. fLoadExcel();
  467. for (var i = grd_goodstokbatsave.fixedRows ; i < grd_goodstokbatsave.rows ; i++){
  468. grd_goodstokbatsave.rowStatus(i) = "3";
  469. }
  470. ]]>
  471. </script>
  472. </button>
  473. <button id="btn_excelsave" class="btn2_letter5" style="left:1105px; top:10px; width:42px; height:19px; ">
  474. <caption>엑셀 저장</caption>
  475. <script type="javascript" ev:event="DOMActivate">
  476. <![CDATA[
  477. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  478. if ( retMes != 6) {
  479. return;
  480. }
  481. var updtdata = getGridUpdateData(grd_goodstokbatsave);
  482. if (updtdata == "")
  483. {
  484. messageBox("변경된 데이터가","I004");
  485. return;
  486. }
  487. model.setValue("/root/send/goodstokbatsavelist", updtdata);
  488. submit("TXRSG07521");
  489. misfGridInit(grd_goodstokbatsave);
  490. messageBox("엑셀 저장이 ", "I002");
  491. ]]>
  492. </script>
  493. </button>
  494. </case>
  495. </switch>
  496. <button id="btn_batsave" class="btn_sw" group="tab" style="left:267px; top:87px; width:125px; height:22px; ">
  497. <caption>재고 일괄 저장</caption>
  498. <toggle case="cse_goodstokbatsave" ev:event="onclick"/>
  499. <script type="javascript" ev:event="DOMActivate">
  500. <![CDATA[
  501. fSearch(2);
  502. ]]>
  503. </script>
  504. </button>
  505. </group>
  506. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  507. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  508. <button id="btn_init" class="btn4_letter3" style="left:1126; top:3; width:68px; height:22px; ">
  509. <caption>초기화</caption>
  510. <script type="javascript" ev:event="DOMActivate">
  511. <![CDATA[
  512. fInitialize();
  513. ]]>
  514. </script>
  515. </button>
  516. </group>
  517. </xhtml:body>
  518. </xhtml:html>