SMRSD04510_신규재료물품등록.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  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. <goodcopy>
  11. <goodlist/>
  12. </goodcopy>
  13. <savemstgood>
  14. <goodcd/>
  15. <goodflag/>
  16. <goodnm/>
  17. <goodhngnm/>
  18. <goodengnm/>
  19. <goodspec/>
  20. <goodmodel/>
  21. <asetflag>1</asetflag>
  22. <lrgcd/>
  23. <lrgnm/>
  24. <mdlcd/>
  25. <mdlnm/>
  26. <smlcd/>
  27. <edicd/>
  28. <prodcmpycd/>
  29. <prodcmpynm/>
  30. <cmt/>
  31. <m>i</m>
  32. <instcd/>
  33. <reqdd/>
  34. <reqseqno/>
  35. <updatestatusm>u</updatestatusm>
  36. </savemstgood>
  37. </main>
  38. <target>
  39. <defaultvalue>
  40. <goodflag/>
  41. <goodflagnm/>
  42. <goodengnm/>
  43. <goodhngnm/>
  44. <goodspec/>
  45. <goodmodel/>
  46. <prodcmpycd/>
  47. <prodcmpynm/>
  48. <openergoodmgt/>
  49. <instcd/>
  50. <reqdd/>
  51. <reqseqno/>
  52. </defaultvalue>
  53. </target>
  54. <init>
  55. <goodflagnm/>
  56. </init>
  57. <send>
  58. <goodcopy>
  59. <goodflag/>
  60. <lrgcd/>
  61. <mdlcd/>
  62. </goodcopy>
  63. <goodlist/>
  64. </send>
  65. </root>
  66. </instance>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. //화면 Control을 초기화한다
  70. fInitialize();
  71. ]]>
  72. </script>
  73. <submission id="TRRSC05303" ref="/root/send/goodcopy" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/goodcopy"/>
  74. <submission id="TXRSC05301" ref="/root/send/goodlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/temp"/>
  75. </model>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  79. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  82. <script type="javascript">
  83. <![CDATA[
  84. function fInitialize()
  85. {
  86. model.setValue(opt_goodflag.attribute("ref") ,model.getValue("/root/target/defaultvalue/goodflag"));
  87. model.setValue(opt_goodengnm.attribute("ref"),model.getValue("/root/target/defaultvalue/goodengnm"));
  88. model.setValue(opt_goodhngnm.attribute("ref"),model.getValue("/root/target/defaultvalue/goodhngnm"));
  89. model.setValue(opt_goodspec.attribute("ref") ,model.getValue("/root/target/defaultvalue/goodspec"));
  90. model.setValue(opt_goodmodel.attribute("ref"),model.getValue("/root/target/defaultvalue/goodmodel"));
  91. model.setValue(opt_goodflagnm.attribute("ref"),model.getValue("/root/target/defaultvalue/goodflagnm"));
  92. model.setValue(opt_prodcmpycd.attribute("ref"),model.getValue("/root/target/defaultvalue/prodcmpycd"));
  93. model.setValue(opt_prodcmpynm.attribute("ref"),model.getValue("/root/target/defaultvalue/prodcmpynm"));
  94. model.setValue(opt_instcd.attribute("ref"),model.getValue("/root/target/defaultvalue/instcd"));
  95. model.setValue(opt_reqdd.attribute("ref"),model.getValue("/root/target/defaultvalue/reqdd"));
  96. model.setValue(opt_reqseqno.attribute("ref"),model.getValue("/root/target/defaultvalue/reqseqno"));
  97. model.setValue("/root/main/savemstgood/goodnm",model.getValue(opt_goodengnm.attribute("ref")));
  98. model.refresh();
  99. }
  100. function fGoodCdCopy()
  101. {
  102. if(model.getValue(opt_goodflag.attribute("ref")).length== 0 )
  103. {
  104. messageBox("물품구분을 " ,"C002");
  105. model.setFocus("cmb_goodflag");
  106. return false;
  107. }
  108. if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
  109. {
  110. messageBox("대분류코드를 " ,"C002");
  111. model.setFocus("ipt_lrgcd");
  112. return false;
  113. }
  114. if(model.getValue(ipt_mdlcd.attribute("ref")).length== 0 )
  115. {
  116. messageBox("중분류코드를 " ,"C002");
  117. model.setFocus("ipt_mdlcd");
  118. return false;
  119. }
  120. model.setValue("/root/send/goodcopy/goodflag", model.getValue(opt_goodflag.attribute("ref")));
  121. model.setValue("/root/send/goodcopy/lrgcd", model.getValue(ipt_lrgcd.attribute("ref")));
  122. model.setValue("/root/send/goodcopy/mdlcd", model.getValue(ipt_mdlcd.attribute("ref")));
  123. submit("TRRSC05303");
  124. var goodcd = model.getValue("/root/main/goodcopy/goodlist/goodcd");
  125. if(goodcd.length == 0)goodcd = model.getValue(opt_goodflag.attribute("ref")) + model.getValue(ipt_lrgcd.attribute("ref")) + model.getValue(ipt_mdlcd.attribute("ref")) + "0001";
  126. model.setValue(ipt_goodcd.attribute("ref"), goodcd);
  127. model.refresh();
  128. }
  129. function fSaveMstGood()
  130. {
  131. if(model.getValue(ipt_goodcd.attribute("ref")).length== 0 )
  132. {
  133. messageBox("물품코드를 " ,"C002");
  134. model.setFocus("ipt_goodcd");
  135. return false;
  136. }
  137. if(model.getValue(opt_goodflag.attribute("ref")).length== 0 )
  138. {
  139. messageBox("물품구분을 " ,"C002");
  140. model.setFocus("cmb_goodflag");
  141. return false;
  142. }
  143. if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
  144. {
  145. messageBox("대분류코드를 " ,"C002");
  146. model.setFocus("ipt_lrgcd");
  147. return false;
  148. }
  149. if(model.getValue(ipt_mdlcd.attribute("ref")).length== 0 )
  150. {
  151. messageBox("중분류코드를 " ,"C002");
  152. model.setFocus("ipt_mdlcd");
  153. return false;
  154. }
  155. // 물품 등록을 하기 위한 data를 가지고 있는 node
  156. model.removenode("/root/send/goodlist");
  157. model.makeNode("/root/send/goodlist");
  158. var varcopy = instance1.selectNodes("/root/main/savemstgood");
  159. var rCSV = getNodeListCSV(varcopy)
  160. model.setValue("/root/send/goodlist", rCSV);
  161. if(model.getValue("/root/target/defaultvalue/openergoodmgt") != "Y") {
  162. submit("TXRSC05301");
  163. }
  164. if (model.getValue(gvErrorMsgPath + "/type") != "error")
  165. {
  166. //findChildWindow
  167. if ( checkOpener() ) {
  168. opener.javascript.setParameter("SMRSD04510_",rCSV);
  169. }
  170. window.close();
  171. }
  172. }
  173. ]]>
  174. </script>
  175. </xhtml:head>
  176. <xhtml:body pagewidth="530" pageheight="275" guideline="1,534;2,273;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  177. <group id="group3" scroll="auto" style="left:0px; top:0px; width:510px; height:273px; ">
  178. <caption id="caption1" class="tit_2" style="left:5px; top:30px; width:145px; height:13px; ">신규재료</caption>
  179. <line id="line1" class="line_1" style="x1:0px; y1:45px; x2:508px; y2:45px; "/>
  180. <output id="opt_goodflag" ref="/root/main/savemstgood/goodflag" class="input_default" style="left:114px; top:52px; width:25px; height:19px; text-align:center; "/>
  181. <output id="opt_goodengnm" ref="/root/main/savemstgood/goodengnm" class="input_default" style="left:110px; top:76px; width:398px; height:19px; "/>
  182. <output id="opt_goodhngnm" ref="/root/main/savemstgood/goodhngnm" class="input_default" style="left:110px; top:101px; width:398px; height:19px; "/>
  183. <output id="opt_goodspec" ref="/root/main/savemstgood/goodspec" class="input_default" style="left:110px; top:124px; width:230px; height:19px; "/>
  184. <output id="opt_goodmodel" ref="/root/main/savemstgood/goodmodel" class="input_default" style="left:349px; top:124px; width:159px; height:19px; "/>
  185. <caption id="caption4" class="tit_2" style="left:5px; top:174px; width:145px; height:13px; ">신규재료 물품 등록</caption>
  186. <line id="line2" class="line_1" style="x1:0px; y1:189px; x2:508px; y2:189px; "/>
  187. <button id="btn_lrgcd" class="icon_search" style="left:171px; top:196px; width:16px; height:16px; ">
  188. <caption/>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. rszfOpenPopUpListByWndName(ipt_lrgcd,"","lrgcd,lrgnm","SPRSD00130","goodflag","opt_goodflag");
  192. model.refresh();
  193. model.setFocus("ipt_mdlcd");
  194. ]]>
  195. </script>
  196. </button>
  197. <input id="ipt_lrgnm" ref="/root/main/savemstgood/lrgnm" class="input_search" style="left:188px; top:195px; width:320px; height:19px; ">
  198. <script type="javascript" ev:event="xforms-value-changed">
  199. <![CDATA[
  200. if(ipt_lrgnm.value != ""){
  201. rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm",
  202. "lrgnm," + model.getValue(opt_goodflag.attribute("ref")) +",," + model.getValue(ipt_lrgnm.attribute("ref"))
  203. ,"","lrgcd,lrgnm" ,
  204. ipt_lrgcd,"SPRSD00130","goodflag","cmb_goodflag");
  205. }else{
  206. ipt_lrgcd.value = "";
  207. }
  208. model.refresh();
  209. ]]>
  210. </script>
  211. </input>
  212. <button id="btn_mdlcd" class="icon_search" style="left:171px; top:222px; width:16px; height:16px; ">
  213. <caption/>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. rszfOpenPopUpListByWndName(ipt_mdlcd,"","mdlcd,mdlnm","SPRSD00140","goodflag,lrgcd,lrgnm","opt_goodflag,ipt_lrgcd,opt_lrgnm");
  217. model.refresh();
  218. ]]>
  219. </script>
  220. </button>
  221. <input id="ipt_mdlnm" ref="/root/main/savemstgood/mdlnm" class="input_search" style="left:188px; top:220px; width:320px; height:19px; ">
  222. <script type="javascript" ev:event="xforms-value-changed">
  223. <![CDATA[
  224. if(ipt_mdlnm.value != ""){
  225. rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm",
  226. "mdlnm," + model.getValue(opt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + ",," + model.getValue(ipt_mdlnm.attribute("ref"))
  227. ,"","mdlcd,mdlnm" ,
  228. ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","cmb_goodflag,ipt_lrgcd,opt_lrgnm");
  229. }else{
  230. ipt_mdlcd.value = "";
  231. }
  232. model.refresh();
  233. model.setFocus("ipt_smlcd");
  234. ]]>
  235. </script>
  236. </input>
  237. <input id="ipt_lrgcd" ref="/root/main/savemstgood/lrgcd" class="input_essential" style="left:110px; top:195px; width:60px; height:19px; ">
  238. <script type="javascript" ev:event="xforms-value-changed">
  239. <![CDATA[
  240. if(ipt_lrgcd.value != ""){
  241. rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm",
  242. "lrgcd," + model.getValue(opt_goodflag.attribute("ref")) +"," + model.getValue(ipt_lrgcd.attribute("ref")) + ","
  243. ,"","lrgcd,lrgnm" ,
  244. ipt_lrgcd,"SPRSD00130","goodflag","cmb_goodflag");
  245. }else{
  246. ipt_lrgnm.value = "";
  247. }
  248. model.refresh();
  249. ]]>
  250. </script>
  251. <script type="javascript" ev:event="onkeydown">
  252. <![CDATA[
  253. if(event.keyCode == 9)
  254. {
  255. if(event.shiftKey)model.setFocus("cmb_asetflag");
  256. else model.setFocus("ipt_mdlcd");
  257. }
  258. event.preventDefault();
  259. ]]>
  260. </script>
  261. </input>
  262. <input id="ipt_mdlcd" ref="/root/main/savemstgood/mdlcd" class="input_search" style="left:110px; top:220px; width:60px; height:19px; ">
  263. <script type="javascript" ev:event="xforms-value-changed">
  264. <![CDATA[
  265. if(ipt_mdlcd.value != ""){
  266. rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm",
  267. "mdlcd," + model.getValue(opt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) + ","
  268. ,"","mdlcd,mdlnm" ,
  269. ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","cmb_goodflag,ipt_lrgcd,opt_lrgnm");
  270. }else{
  271. ipt_mdlnm.value = "";
  272. }
  273. model.refresh();
  274. model.setFocus("ipt_smlcd");
  275. ]]>
  276. </script>
  277. <script type="javascript" ev:event="onkeydown">
  278. <![CDATA[
  279. if(event.keyCode == 9)
  280. {
  281. if(event.shiftKey)model.setFocus("ipt_lrgcd");
  282. else model.setFocus("ipt_smlcd");
  283. }
  284. event.preventDefault();
  285. ]]>
  286. </script>
  287. </input>
  288. <caption id="caption5" class="cell_1" style="left:0px; top:219px; width:108px; height:23px; vertical-align:middle; ">중분류</caption>
  289. <caption id="caption6" class="cell_1" style="left:0px; top:195px; width:108px; height:23px; vertical-align:middle; ">대분류</caption>
  290. <line id="line8" class="line_2" style="x1:0px; y1:73px; x2:508px; y2:73px; "/>
  291. <line id="line3" class="line_2" style="x1:0px; y1:97px; x2:508px; y2:97px; "/>
  292. <line id="line4" class="line_2" style="x1:0px; y1:122px; x2:508px; y2:122px; "/>
  293. <line id="line5" class="line_2" style="x1:0px; y1:145px; x2:508px; y2:145px; "/>
  294. <line id="line10" class="line_3" style="x1:0px; y1:170px; x2:508px; y2:170px; "/>
  295. <line id="line6" class="line_2" style="x1:0px; y1:217px; x2:508px; y2:217px; "/>
  296. <line id="line7" class="line_3" style="x1:0px; y1:267px; x2:508px; y2:267px; "/>
  297. <caption id="caption7" class="cell_1" style="left:0px; top:243px; width:108px; height:23px; vertical-align:middle; ">신규재료 물품코드</caption>
  298. <input id="ipt_goodcd" ref="/root/main/savemstgood/goodcd" class="input_default" editable="false" style="left:110px; top:245px; width:332px; height:19px; ">
  299. <script type="javascript" ev:event="xforms-value-changed">
  300. <![CDATA[
  301. rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm","mdlnm," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + ",," + model.getValue(ipt_mdlcd.attribute("ref"))
  302. ,"","mdlcd,mdlnm" ,ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","cmb_goodflag,ipt_lrgcd,opt_lrgnm");
  303. model.refresh();
  304. model.setFocus("ipt_smlcd");
  305. ]]>
  306. </script>
  307. <script type="javascript" ev:event="onkeydown">
  308. <![CDATA[
  309. if(event.keyCode == 9)
  310. {
  311. if(event.shiftKey)model.setFocus("ipt_lrgcd");
  312. else model.setFocus("ipt_smlcd");
  313. }
  314. event.preventDefault();
  315. ]]>
  316. </script>
  317. </input>
  318. <line id="line9" class="line_2" style="x1:0px; y1:242px; x2:508px; y2:242px; "/>
  319. <button id="btn_goodcdcopy" class="btn2_letter4" style="left:444px; top:245px; width:64px; height:19px; ">
  320. <caption>코드복사</caption>
  321. <script type="javascript" ev:event="DOMActivate">
  322. <![CDATA[
  323. fGoodCdCopy();
  324. ]]>
  325. </script>
  326. </button>
  327. <group id="group1" scroll="auto" style="left:1px; top:2px; width:509px; height:27px; ">
  328. <button id="btn_save" class="btn4_letter4" style="left:372px; top:2px; width:80px; height:22px; ">
  329. <caption>물품등록</caption>
  330. <script type="javascript" ev:event="DOMActivate">
  331. <![CDATA[
  332. fSaveMstGood();
  333. ]]>
  334. </script>
  335. </button>
  336. <button id="btn_cancel" class="btn4_letter2" style="left:452px; top:2px; width:56px; height:22px; ">
  337. <caption>취소</caption>
  338. <script type="javascript" ev:event="DOMActivate">
  339. <![CDATA[
  340. window.close();
  341. ]]>
  342. </script>
  343. </button>
  344. </group>
  345. <output id="opt_goodflagnm" ref="/root/init/goodflagnm" class="input_default" style="left:144px; top:52px; width:364px; height:19px; "/>
  346. <caption id="caption8" style="left:108px; top:55px; width:10px; height:15px; ">(</caption>
  347. <caption id="caption9" style="left:138px; top:55px; width:10px; height:15px; ">)</caption>
  348. <output id="opt_prodcmpycd" ref="/root/main/savemstgood/prodcmpycd" class="input_default" style="left:115px; top:149px; width:65px; height:19px; "/>
  349. <caption id="caption10" style="left:108px; top:152px; width:10px; height:15px; ">(</caption>
  350. <caption id="caption11" style="left:181px; top:152px; width:10px; height:15px; ">)</caption>
  351. <output id="opt_prodcmpynm" ref="/root/main/savemstgood/prodcmpynm" appearance="output" style="left:188px; top:149px; width:320px; height:19px; "/>
  352. <caption id="caption12" style="left:341px; top:126px; width:10px; height:15px; ">/</caption>
  353. <output id="opt_instcd" ref="/root/main/savemstgood/instcd" class="input_default" visibility="hidden" style="left:15px; top:5px; width:55px; height:19px; text-align:center; "/>
  354. <output id="opt_reqdd" ref="/root/main/savemstgood/reqdd" class="input_default" visibility="hidden" style="left:75px; top:5px; width:95px; height:19px; text-align:center; "/>
  355. <output id="opt_reqseqno" ref="/root/main/savemstgood/reqseqno" class="input_default" visibility="hidden" style="left:175px; top:5px; width:50px; height:19px; text-align:center; "/>
  356. </group>
  357. <caption id="caption42" class="cell_1" style="left:0px; top:74px; width:108px; height:23px; vertical-align:middle; ">품명(영문)</caption>
  358. <caption id="caption65" class="cell_1" style="left:0px; top:50px; width:108px; height:23px; vertical-align:middle; ">물품구분</caption>
  359. <caption id="caption45" class="cell_1" style="left:0px; top:98px; width:108px; height:23px; vertical-align:middle; ">품명(한글)</caption>
  360. <caption id="caption2" class="cell_1" style="left:0px; top:146px; width:108px; height:23px; vertical-align:middle; ">제조회사</caption>
  361. <caption id="caption3" class="cell_1" style="left:0px; top:122px; width:108px; height:23px; vertical-align:middle; ">물품규격/모델</caption>
  362. </xhtml:body>
  363. </xhtml:html>