SMRSG08000_부품재고입고.xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  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. <goodwininfo>
  12. <goodwinlist/>
  13. </goodwininfo>
  14. <goodwinclosinfo>
  15. <goodwincloslist/>
  16. </goodwinclosinfo>
  17. </list>
  18. </main>
  19. <send>
  20. <search>
  21. <instcd/>
  22. <goodflag>Y</goodflag>
  23. <lrgcd/>
  24. <mdlcd/>
  25. <goodcd/>
  26. <goodnm/>
  27. <stocmngtflag/>
  28. <reqdtfrom/>
  29. <reqdtto/>
  30. <windtfrom/>
  31. <windtto/>
  32. </search>
  33. <goodwinlist/>
  34. </send>
  35. <init>
  36. <windd/>
  37. </init>
  38. <temp>
  39. </temp>
  40. </root>
  41. </instance>
  42. <bind id="reqamt" ref="/root/main/list/goodwininfo/goodwinlist/reqamt" calculate="../winqty * ../requnitcost"/>
  43. <submission id="TRRSG07101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/goodwininfo"/>
  44. <submission id="TXRSG07101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwinlist" resultref="/root/temp"/>
  45. <submission id="TRRSG07151" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/goodwininfo"/>
  46. <submission id="TXRSG07151" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwincloslist" resultref="/root/temp"/>
  47. </model>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. //화면 Control을 초기화한다
  51. fInitialize();
  52. ]]>
  53. </script>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  57. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  60. <script type="javascript">
  61. <![CDATA[
  62. var gPurcCloseYymm = "";
  63. gPurcCloseYymm = getRscsysinftInfo("purccloseyymm");
  64. function fInitialize()
  65. {
  66. fSearchDateSetting(0);
  67. misfComboComCdListMulti("R0069,Z0007","cmb_stocmngtflag,cmb_instcd");
  68. model.setValue(ipt_reqdtfrom.attribute("ref") , getCurrentDate());
  69. model.setValue(ipt_reqdtto.attribute("ref") , getCurrentDate());
  70. model.setValue(ipt_windtfrom.attribute("ref") , getCurrentDate());
  71. model.setValue(ipt_windtto.attribute("ref") , getCurrentDate());
  72. model.setValue(ipt_windd.attribute("ref") , getCurrentDate());
  73. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  74. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  75. addComboItem( "cmb_lrgcd" , "전체", "", "above");
  76. addComboItem( "cmb_stocmngtflag" , "전체", "", "above");
  77. //부서가 구매팀인지 확인해서 구매팀일 경우 부서찾기 항목을 visibility true 아니면 false
  78. // -------------------------------------------------------------------------------------
  79. // 기관별 구매시스템 기본정보를 조회한다
  80. // vPathResult = "/root/init/RscsysinftLists";
  81. // -------------------------------------------------------------------------------------
  82. rszfRscsysinftLists(getUserInfo("dutplceinstcd"));
  83. // -------------------------------------------------------------------------------------
  84. // 구매 인터페이스 거래처정보를 조회한다
  85. // vPathResult = "/root/init/RscifcustLists";
  86. // pInstcd" : (조회값) 기관코드
  87. // pEntrregno" : (조회값) 거래처
  88. // pMaindeptcd" : (조회값) 관리부서코드
  89. // pCombo : 콤보구분
  90. // pAllYN : 전체구분
  91. // ------------------------------------------------------------------------------------*/
  92. gPurcCloseYymm = getRscsysinftInfo("purccloseyymm");
  93. model.removeNodeset("/root/main/list/goodwininfo/goodwinlist");
  94. model.removeNodeset("/root/main/list/goodwinclosinfo/goodwincloslist");
  95. model.refresh();
  96. }
  97. function fSearchDateSetting(idx)
  98. {
  99. if (swh_select.selectedIndex == 0) { // 입고 내역 조회
  100. ipt_reqdtfrom.visible = false;
  101. ipt_reqdtto.visible = false;
  102. cap_reqdd.visible = false;
  103. ipt_windtfrom.visible = true;
  104. ipt_windtto.visible = true;
  105. cap_windd.visible = true;
  106. } else if (swh_select.selectedIndex == 1) { // 입고 처리
  107. ipt_reqdtfrom.visible = true;
  108. ipt_reqdtto.visible = true;
  109. cap_reqdd.visible = true;
  110. ipt_windtfrom.visible = false;
  111. ipt_windtto.visible = false;
  112. cap_windd.visible = false;
  113. }
  114. }
  115. function fSearch(idx)
  116. {
  117. if (idx == 0) {
  118. model.removeNodeset("/root/main/list/goodwinclosinfo/goodwincloslist");
  119. submit("TRRSG07151");
  120. } else if (idx == 1) {
  121. model.removeNodeset("/root/main/list/goodwininfo/goodwinlist");
  122. submit("TRRSG07101");
  123. }
  124. }
  125. function fItemAllChoice( vFlag ) {
  126. if (grd_goodwin.rows - grd_goodwin.fixedRows <= 0 ) {
  127. messageBox("선택할 데이터가","I004");
  128. return false;
  129. }
  130. for( cnt = grd_goodwin.fixedRows; cnt < grd_goodwin.rows ; cnt++ ) {
  131. grd_goodwin.valueMatrix( cnt, grd_goodwin.colRef("aprvyn") ) = vFlag;
  132. if (vFlag == "Y"){
  133. grd_goodwin.rowStatus(cnt) = "1";
  134. }else{
  135. grd_goodwin.rowStatus(cnt) = "0";
  136. }
  137. }
  138. }
  139. ]]>
  140. </script>
  141. </xhtml:head>
  142. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  143. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  144. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">수탁 물품 입고</caption>
  145. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  146. </group>
  147. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  148. <group id="grp_search" style="left:0px; top:17px; width:1195px; height:63px; vertical-align:top; ">
  149. <caption id="cap_allsizespecid" class="search_name" style="left:975px; top:10px; width:111px; height:17px; ">규격코드 :</caption>
  150. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
  151. <line id="line30" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:58px; "/>
  152. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
  153. <caption>조회</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. if (swh_select.selectedIndex == 0) {
  157. fSearch(0);
  158. } else if (swh_select.selectedIndex == 1) {
  159. fSearch(1);
  160. }
  161. ]]>
  162. </script>
  163. </button>
  164. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" appearance="minimal" style="left:104px; top:10px; width:206px; height:19px; ">
  165. <choices>
  166. <itemset nodeset="/root/main/init">
  167. <label ref="cnstnm"/>
  168. <value ref="cnstcd"/>
  169. </itemset>
  170. </choices>
  171. </select1>
  172. <caption id="cap_instcd" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  173. <select1 id="cmb_goodflag" ref="/root/send/search/goodflag" class="combo_default" appearance="minimal" style="left:414px; top:10px; width:121px; height:19px; ">
  174. <choices>
  175. <item>
  176. <label>의료비품</label>
  177. <value>U</value>
  178. </item>
  179. <item>
  180. <label>의료소모품</label>
  181. <value>Y</value>
  182. </item>
  183. <item>
  184. <label>공급실물품</label>
  185. <value>T</value>
  186. </item>
  187. <item>
  188. <label>일반소모품</label>
  189. <value>Z</value>
  190. </item>
  191. </choices>
  192. <script type="javascript" ev:event="xforms-value-changed">
  193. <![CDATA[
  194. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  195. addComboItem( "cmb_lrgcd", "전체", "", "above");
  196. cmb_mdlcd.value='';
  197. model.refresh();
  198. ]]>
  199. </script>
  200. </select1>
  201. <caption id="cap_goodflag" class="search_name" style="left:320px; top:10px; width:86px; height:17px; ">물품구분 :</caption>
  202. <select1 id="cmb_lrgcd" ref="/root/send/search/lrgcd" appearance="minimal" style="left:414px; top:36px; width:121px; height:19px; ">
  203. <choices>
  204. <itemset>
  205. <label/>
  206. <value/>
  207. </itemset>
  208. </choices>
  209. <script type="javascript" ev:event="xforms-value-changed">
  210. <![CDATA[
  211. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
  212. cmb_mdlcd.dispatch("xforms-value-changed");
  213. addComboItem( "cmb_mdlcd", "전체", "", "above");
  214. model.refresh();
  215. ]]>
  216. </script>
  217. </select1>
  218. <select1 id="cmb_mdlcd" ref="/root/send/search/mdlcd" appearance="minimal" style="left:639px; top:36px; width:126px; height:19px; ">
  219. <choices>
  220. <itemset>
  221. <label/>
  222. <value/>
  223. </itemset>
  224. </choices>
  225. </select1>
  226. <caption id="caption7" class="search_name" style="left:320px; top:36px; width:88px; height:17px; ">대 분 류 :</caption>
  227. <caption id="caption8" class="search_name" style="left:543px; top:36px; width:88px; height:17px; ">중 분 류 :</caption>
  228. <input id="ipt_goodnm" ref="/root/send/search/goodnm" class="output_search" style="left:745px; top:10px; width:140px; height:19px; "/>
  229. <button id="btn_goodcd" class="icon_search" style="left:726px; top:10px; width:16px; height:16px; ">
  230. <caption/>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd","cmb_instcd");
  234. model.refresh();
  235. ]]>
  236. </script>
  237. </button>
  238. <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; "/>
  239. <caption id="cap_goodcd" class="search_name" style="left:545px; top:10px; width:86px; height:17px; ">물품코드 :</caption>
  240. <input id="ipt_reqdtfrom" ref="/root/send/search/reqdtfrom" class="input_default" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:104px; top:36px; width:91px; height:19px; "/>
  241. <caption id="cap_reqdd" class="search_name" style="left:10px; top:36px; width:86px; height:17px; ">청구기간 :</caption>
  242. <select1 id="cmb_stocmngtflag" ref="/root/send/search/stocmngtflag" appearance="minimal" style="left:896px; top:36px; width:200px; height:19px; ">
  243. <choices>
  244. <itemset nodeset="/root/init/stocmngtflag">
  245. <label ref="cdnm"/>
  246. <value ref="cdid"/>
  247. </itemset>
  248. </choices>
  249. </select1>
  250. <caption id="caption16" class="search_name" style="left:775px; top:36px; width:112px; height:17px; ">재고관리기준 :</caption>
  251. <input id="ipt_reqdtto" ref="/root/send/search/reqdtto" class="input_default" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:220px; top:36px; width:91px; height:19px; "/>
  252. <caption id="caption29" style="left:200px; top:37px; width:15px; height:17px; ">~</caption>
  253. <input id="ipt_windtfrom" ref="/root/send/search/windtfrom" class="input_default" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:104px; top:36px; width:91px; height:19px; "/>
  254. <caption id="cap_windd" class="search_name" style="left:10px; top:36px; width:86px; height:17px; ">입고기간 :</caption>
  255. <input id="ipt_windtto" ref="/root/send/search/windtto" class="input_default" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:220px; top:36px; width:91px; height:19px; "/>
  256. </group>
  257. <button id="btn_goodwinclos" class="btn_sw" group="tab" style="left:143px; top:87px; width:125px; height:22px; ">
  258. <caption>입고 내역</caption>
  259. <toggle case="cse_goodwinclos" ev:event="onclick"/>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. fSearchDateSetting(0);
  263. btn_search.dispatch("DOMActivate");
  264. ]]>
  265. </script>
  266. </button>
  267. <switch id="swh_select" style="left:0px; top:110px; width:1190px; height:595px; ">
  268. <case id="cse_goodwinclos">
  269. <caption id="caption1" class="tit_2" style="left:0px; top:17px; width:143px; height:14px; ">입고 내역 조회</caption>
  270. <line id="line2" class="line_1" style="x1:0px; y1:34px; x2:1185px; y2:34px; "/>
  271. <datagrid id="grd_goodwinclos" nodeset="/root/main/list/goodwinclosinfo/goodwincloslist" caption="기관코드^물품구분^물품코드^물품코드^물품명^EDICD^물품규격^모델^보조거래처코드^보조거래처명^주거래처코드^주거래처명^입고단위^실재고량^안전재고량^적정재고량^청구수량^입고수량^입고단가^입고금액^입고일자^입고번호^입고자^비고" colsep="^" colwidth="5, 7, 78, 22, 131, 101, 104, 102, 6, 116, 8, 120, 68, 72, 80, 80, 72, 70, 73, 73, 80, 72, 66, 213" explorerbar="sortshow" frozencols="8" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:40px; width:1185px; height:550px; font-weight:normal; text-align:center; ">
  272. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  273. <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
  274. <col ref="goodcd" style="text-align:center; "/>
  275. <col ref="allsizespecid" style="text-align:center; "/>
  276. <col ref="goodnm" style="text-align:center; padding-left:10; "/>
  277. <col ref="edicd" style="text-align:center; padding-left:10; "/>
  278. <col ref="goodspec" style="text-align:center; padding-left:10; "/>
  279. <col ref="goodmodel" style="text-align:center; padding-left:10; "/>
  280. <col ref="suppcustcd" visibility="hidden" style="text-align:left; "/>
  281. <col ref="suppcustnm" style="text-align:center; padding-left:10; "/>
  282. <col ref="maincustlastsuplplce" visibility="hidden" style="text-align:left; "/>
  283. <col ref="maincustlastsuplplcenm" style="text-align:center; padding-left:10; "/>
  284. <col ref="winunit" style="text-align:center; "/>
  285. <col ref="stocqty" format="#,###" style="text-align:right; "/>
  286. <col ref="safestocqty" format="#,###" style="text-align:right; "/>
  287. <col ref="prprtystocqty" format="#,###" style="text-align:right; "/>
  288. <col ref="reqqty" format="#,###" style="text-align:right; "/>
  289. <col ref="winqty" format="#,###" style="text-align:right; "/>
  290. <col ref="winunitcost" format="#,###" style="text-align:right; "/>
  291. <col ref="winamt" format="#,###" style="text-align:right; "/>
  292. <col ref="windd" format="yyyy/mm/dd" style="text-align:center; "/>
  293. <col ref="winseqno" style="text-align:center; "/>
  294. <col ref="winpsnnm" style="text-align:center; "/>
  295. <col ref="cmt" style="text-align:left; padding-left:10; "/>
  296. <script type="javascript" ev:event="onaftersort">
  297. <![CDATA[
  298. grd_goodwinclos.gridToInstance();
  299. ]]>
  300. </script>
  301. </datagrid>
  302. </case>
  303. <case id="cse_goodwin" selected="true">
  304. <datagrid id="grd_goodwin" nodeset="/root/main/list/goodwininfo/goodwinlist" caption="기관코드^물품구분^물품코드^물품코드^물품명^EDICD^물품규격^모델^보조거래처코드^보조거래처명^주거래처코드^주거래처명^청구단위^실재고량^안전재고량^적정재고량^청구량^기입고량^입고량^단가^금액^승인여부^승인일자^청구일자^청구번호^비고^입고일자" colsep="^" colwidth="8, 8, 76, 22, 120, 80, 115, 106, 6, 120, 5, 111, 68, 68, 80, 80, 47, 61, 53, 90, 98, 61, 8, 80, 67, 225, 24" explorerbar="sortshow" frozencols="8" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:40px; width:1185px; height:550px; font-weight:normal; text-align:center; ">
  305. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  306. <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
  307. <col ref="goodcd" style="text-align:center; "/>
  308. <col ref="allsizespecid" style="text-align:center; "/>
  309. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  310. <col ref="edicd" style="text-align:left; padding-left:10; "/>
  311. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  312. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  313. <col ref="suppcustcd" visibility="hidden" style="text-align:left; "/>
  314. <col ref="suppcustnm" style="text-align:left; padding-left:10; "/>
  315. <col ref="maincustlastsuplplce" visibility="hidden" style="text-align:left; "/>
  316. <col ref="maincustlastsuplplcenm" style="text-align:left; padding-left:10; "/>
  317. <col ref="requnit" style="text-align:center; "/>
  318. <col ref="stocqty" format="#,###" style="text-align:right; "/>
  319. <col ref="safestocqty" format="#,###" style="text-align:right; "/>
  320. <col ref="prprtystocqty" format="#,###" style="text-align:right; "/>
  321. <col ref="reqqty" format="#,###" style="text-align:right; "/>
  322. <col ref="sumwinqty" format="#,###" style="text-align:right; "/>
  323. <col ref="winqty" type="input" format="#,###" style="text-align:right; "/>
  324. <col ref="requnitcost" format="#,###" style="text-align:right; "/>
  325. <col ref="reqamt" format="#,###" style="text-align:right; "/>
  326. <col checkvalue="Y,N" ref="aprvyn" type="checkbox" style="text-align:left; "/>
  327. <col ref="aprvdd" visibility="hidden" format="yyyy/mm/dd" style="text-align:center; "/>
  328. <col ref="reqdd" visibility="visible" format="yyyy/mm/dd" style="text-align:center; "/>
  329. <col ref="reqseqno" style="text-align:center; "/>
  330. <col ref="cmt" type="input" style="text-align:left; padding-left:10; "/>
  331. <col ref="windd" visibility="hidden" format="yyyy/mm/dd" style="text-align:center; "/>
  332. <script type="javascript" ev:event="xforms-value-changed">
  333. <![CDATA[
  334. if(grd_goodwin.col == grd_goodwin.colRef("cmt")){
  335. if (grd_goodwin.rowStatus(grd_goodwin.row) == "2"){
  336. grd_goodwin.rowStatus(grd_goodwin.row) = "0";
  337. }
  338. }
  339. if(grd_goodwin.col == grd_goodwin.colRef("winqty")){
  340. if (grd_goodwin.rowStatus(grd_goodwin.row) == "2"){
  341. grd_goodwin.rowStatus(grd_goodwin.row) = "0";
  342. }
  343. model.recalculate();
  344. model.refresh();
  345. }
  346. ]]>
  347. </script>
  348. <script type="javascript" ev:event="onclick">
  349. <![CDATA[
  350. var errMsg = "";
  351. if(grd_goodwin.col == grd_goodwin.colRef("aprvyn")){
  352. if (grd_goodwin.valueMatrix(grd_goodwin.row, grd_goodwin.colRef("aprvyn")) == "Y"){
  353. grd_goodwin.rowStatus(grd_goodwin.row) = "1";
  354. }else{
  355. grd_goodwin.rowStatus(grd_goodwin.row) = "0";
  356. }
  357. }
  358. model.refresh();
  359. ]]>
  360. </script>
  361. </datagrid>
  362. <line id="line1" class="line_1" style="x1:0px; y1:34px; x2:1185px; y2:34px; "/>
  363. <caption id="caption21" class="tit_2" style="left:0px; top:17px; width:143px; height:15px; ">입고 처리</caption>
  364. <button id="btn_save" class="btn2_letter5" style="left:1105px; top:10px; width:75px; height:19px; ">
  365. <caption>입고 처리</caption>
  366. <script type="javascript" ev:event="DOMActivate">
  367. <![CDATA[
  368. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  369. if ( retMes != 6) {
  370. return;
  371. }
  372. for (var liRow = grd_goodwin.fixedRows ; liRow < grd_goodwin.rows ; liRow++) {
  373. model.setValue(grd_goodwin.nodeset + "[" + (liRow - grd_goodwin.fixedRows + 1) + "]/windd" , model.getValue(ipt_windd.attribute("ref")) );
  374. }
  375. var updtdata = getGridUpdateData(grd_goodwin);
  376. if (updtdata == "")
  377. {
  378. messageBox("변경된 데이터가","I004");
  379. return;
  380. }
  381. model.setValue("/root/send/goodwinlist", updtdata);
  382. submit("TXRSG07101");
  383. btn_search.dispatch("DOMActivate");
  384. ]]>
  385. </script>
  386. </button>
  387. <button id="btn_allchoice" class="btn2_letter4" style="left:972px; top:10px; width:64px; height:19px; ">
  388. <caption>전체선택</caption>
  389. <script type="javascript" ev:event="DOMActivate">
  390. <![CDATA[
  391. fItemAllChoice("Y");
  392. ]]>
  393. </script>
  394. </button>
  395. <button id="btn_allcancle" class="btn2_letter4" style="left:1038px; top:10px; width:64px; height:19px; ">
  396. <caption>선택해제</caption>
  397. <script type="javascript" ev:event="DOMActivate">
  398. <![CDATA[
  399. fItemAllChoice("N");
  400. ]]>
  401. </script>
  402. </button>
  403. <input id="ipt_windd" ref="/root/init/windd" class="input_s_essential" inputtype="date" style="left:850px; top:10px; width:100px; height:19px; ">
  404. <script type="javascript" ev:event="xforms-value-changed">
  405. <![CDATA[
  406. var windd = model.getValue(ipt_windd.attribute("ref"));
  407. if(gPurcCloseYymm >= windd.substr(0,6)) {
  408. messageBox("마감이 완료되어 입고처리가 불가능합니다.", "I");
  409. btn_save.disabled = true;
  410. return;
  411. }
  412. btn_save.disabled = false;
  413. model.refresh();
  414. ]]>
  415. </script>
  416. </input>
  417. <caption id="caption2" class="search_name" style="left:760px; top:10px; width:91px; height:17px; ">입고일자 :</caption>
  418. </case>
  419. </switch>
  420. <button id="btn_goodwin" class="btn_sw" group="tab" selected="true" style="left:0px; top:87px; width:144px; height:22px; ">
  421. <caption>입고 처리</caption>
  422. <toggle case="cse_goodwin" ev:event="onclick"/>
  423. <script type="javascript" ev:event="DOMActivate">
  424. <![CDATA[
  425. fSearchDateSetting(1);
  426. btn_search.dispatch("DOMActivate");
  427. ]]>
  428. </script>
  429. </button>
  430. </group>
  431. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  432. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  433. <button id="btn_init" class="btn4_letter3" style="left:1126; top:3; width:68px; height:22px; ">
  434. <caption>초기화</caption>
  435. <script type="javascript" ev:event="DOMActivate">
  436. <![CDATA[
  437. fInitialize();
  438. ]]>
  439. </script>
  440. </button>
  441. </group>
  442. </xhtml:body>
  443. </xhtml:html>