SMZHI00600_부품모델관리.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <?xml version="1.0" encoding="UTF-8"?>
  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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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. <eqmtitemlist>
  11. <item>
  12. <prodcmpycd/>
  13. <prodcmpynm/>
  14. <itemseq/>
  15. <itemtype/>
  16. <name/>
  17. <spec/>
  18. </item>
  19. </eqmtitemlist>
  20. <eqmtiteminfo>
  21. <prodcmpycd/>
  22. <prodcmpynm/>
  23. <itemseq/>
  24. <itemtype/>
  25. <name/>
  26. <spec/>
  27. </eqmtiteminfo>
  28. </main>
  29. <send>
  30. <search>
  31. <instcd/>
  32. <prodcmpycd/>
  33. <prodcmpynm/>
  34. <itemtype/>
  35. <spec/>
  36. <name/>
  37. </search>
  38. <saveEqmtiteminfo/>
  39. </send>
  40. <init>
  41. <baseinfo>
  42. <item>
  43. <test>
  44. <cdid>1</cdid>
  45. <cdnm>
  46. test1
  47. </cdnm>
  48. </test>
  49. <test>
  50. <cdid>2</cdid>
  51. <cdnm>
  52. test2
  53. </cdnm>
  54. </test>
  55. </item>
  56. </baseinfo>
  57. </init>
  58. <temp/>
  59. </root>
  60. </instance>
  61. <submission id="TRZHI00601" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/search" replace="instance" resultref="/root/main/eqmtitemlist"/>
  62. <submission id="TXZHI00601" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtiteminfo" replace="instance" resultref="/temp"/>
  63. <submission id="TXZHI00602" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtiteminfo" replace="instance" resultref="/temp"/>
  64. <submission id="TXZHI00603" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtiteminfo" replace="instance" resultref="/temp"/>
  65. </model>
  66. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  71. <script type="javascript" src="../../../com/irmsweb/js/IrmsCom.js"/>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. // fGetBaseInfo(); //기본/공통코드 정보를 조회
  75. fInitInfo(); //초기화
  76. model.refresh();
  77. ]]>
  78. </script>
  79. <script type="javascript">
  80. <![CDATA[/*
  81. * 기본코드 정보를 조회
  82. */
  83. function fGetBaseInfo(){
  84. }
  85. /*
  86. *입력항목 초기화
  87. */
  88. function fInitInfo(){
  89. model.resetInstanceNode("root/send/search");
  90. model.resetInstanceNode("/root/main/eqmtiteminfo");
  91. model.removeNodeset("/root/main/eqmtitemlist");
  92. model.refresh();
  93. }
  94. function fGetList(){
  95. model.resetInstanceNode("/root/main/eqmtiteminfo");
  96. model.removeNodeset("/root/main/eqmtitemlist");
  97. submit("TRZHI00601");
  98. }
  99. /*
  100. * 부품모델정보 체크
  101. */
  102. function fCheckEqmtiteminfo(){
  103. if(model.getValue("/root/main/eqmtiteminfo/prodcmpycd") == ""){
  104. messageBox("부품모델정보", "C001");
  105. return false;
  106. }else if(model.getValue("/root/main/eqmtiteminfo/itemtype") == ""){
  107. messageBox("부품모델정보", "C001");
  108. return false;
  109. }else if(model.getValue("/root/main/eqmtiteminfo/name") == ""){
  110. messageBox("부품모델정보", "C001");
  111. return false;
  112. }else if(model.getValue("/root/main/eqmtiteminfo/spec") == ""){
  113. messageBox("부품모델정보", "C001");
  114. return false;
  115. }
  116. return true;
  117. }
  118. /*
  119. * 부품모델정보 저장
  120. */
  121. function fSetEqmtiteminfo(){
  122. if(fCheckEqmtiteminfo()){
  123. if(model.getValue("/root/main/eqmtiteminfo/itemseq") == ""){
  124. //입력
  125. model.removenode("/root/send/saveEqmtiteminfo");
  126. model.makeNode("/root/send/saveEqmtiteminfo");
  127. model.copyNode("/root/send/saveEqmtiteminfo", "/root/main/eqmtiteminfo");
  128. if(submit("TXZHI00601")){
  129. messageBox("부품모델정보", "I001");
  130. return true;
  131. }
  132. }else{
  133. //수정
  134. model.removenode("/root/send/saveEqmtiteminfo");
  135. model.makeNode("/root/send/saveEqmtiteminfo");
  136. model.copyNode("/root/send/saveEqmtiteminfo", "/root/main/eqmtiteminfo");
  137. if(submit("TXZHI00602")){
  138. messageBox("부품모델정보", "I001");
  139. return true;
  140. }
  141. }
  142. }
  143. }
  144. /*
  145. * 부품모델정보 삭제
  146. */
  147. function fDelEqmtiteminfo(){
  148. if(fCheckEqmtiteminfo()){
  149. if(model.getValue("/root/main/eqmtiteminfo/itemseq") != ""){
  150. model.removenode("/root/send/saveEqmtiteminfo");
  151. model.makeNode("/root/send/saveEqmtiteminfo");
  152. model.copyNode("/root/send/saveEqmtiteminfo", "/root/main/eqmtiteminfo");
  153. if(submit("TXZHI00603")){
  154. messageBox("부품모델정보", "I001");
  155. return true;
  156. }
  157. }
  158. }
  159. }
  160. ]]>
  161. </script>
  162. </xhtml:head>
  163. <xhtml:body>
  164. <group id="grp_tle" style="left:0px; top:0px; width:1210px; height:13px; ">
  165. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:217px; height:14px; ">부품모델관리</caption>
  166. </group>
  167. <group id="grp_ipt" style="left:0px; top:15px; width:1210px; height:25px; ">
  168. <button id="btn_new" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1019px; top:2px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  169. <caption>초기화</caption>
  170. <script type="javascript" ev:event="DOMActivate">
  171. <![CDATA[
  172. fInitInfo();
  173. ]]>
  174. </script>
  175. </button>
  176. <button id="btn_save" class="btn4_letter2" disabled="false" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1090px; top:2px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  177. <caption>저장</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. if(fSetEqmtiteminfo()){
  181. fGetList();
  182. }
  183. ]]>
  184. </script>
  185. </button>
  186. <button id="btn_delete" class="btn4_letter2" disabled="false" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1149px; top:2px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  187. <caption>삭제</caption>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. if(messageBox("부품모델정보", "Q001") != 6) return -1;
  191. if(fDelEqmtiteminfo()){
  192. fGetList();
  193. }
  194. ]]>
  195. </script>
  196. </button>
  197. </group>
  198. <group id="grp_search" style="left:0px; top:40px; width:1210px; height:75px; ">
  199. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:5px; width:1205px; height:65px; "/>
  200. <caption id="caption18" class="search_name" style="left:5px; top:15px; width:85px; height:17px; ">기관</caption>
  201. <select1 id="combo3" ref="/root/send/search/instcd" appearance="minimal" style="left:85px; top:15px; width:100px; height:19px; ">
  202. <choices>
  203. <item>
  204. <label>본원</label>
  205. <value>031</value>
  206. </item>
  207. <item>
  208. <label>칠곡</label>
  209. <value>032</value>
  210. </item>
  211. </choices>
  212. </select1>
  213. <caption id="caption11" class="search_name" style="left:195px; top:15px; width:90px; height:17px; ">제조사코드</caption>
  214. <input id="ipt_sProdcmpycd" ref="/root/send/search/prodcmpynm" style="left:290px; top:15px; width:65px; height:19px; ">
  215. <script type="javascript" ev:event="onkeyup">
  216. <![CDATA[
  217. if(event.keyCode == 13){
  218. btn_sprodcmpycd.dispatch("DOMActivate");
  219. }
  220. ]]>
  221. </script>
  222. </input>
  223. <button id="btn_sprodcmpycd" class="icon_search" navindex="5" style="left:360px; top:15px; width:16px; height:16px; ">
  224. <caption/>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. fGetCmpyCd("SMZHI00600", "nm", ipt_sProdcmpycd.currentText, "/root/send/search/prodcmpycd", "/root/send/search/prodcmpynm");
  228. ]]>
  229. </script>
  230. </button>
  231. <input id="ipt_sProdcmpynm" ref="/root/send/search/prodcmpycd" disabled="true" style="left:380px; top:15px; width:145px; height:19px; "/>
  232. <caption id="caption14" class="search_name" style="left:535px; top:15px; width:89px; height:17px; ">부속품종류</caption>
  233. <select1 id="combo11" ref="/root/send/search/itemtype" appearance="minimal" style="left:630px; top:15px; width:100px; height:19px; ">
  234. <choices>
  235. <item>
  236. <label>본원</label>
  237. <value>031</value>
  238. </item>
  239. <item>
  240. <label>칠곡</label>
  241. <value>032</value>
  242. </item>
  243. </choices>
  244. </select1>
  245. <caption id="caption23" class="search_name" style="left:745px; top:15px; width:89px; height:17px; ">규격</caption>
  246. <select1 id="combo12" ref="/root/send/search/spec" appearance="minimal" style="left:840px; top:15px; width:100px; height:19px; ">
  247. <choices>
  248. <item>
  249. <label>본원</label>
  250. <value>031</value>
  251. </item>
  252. <item>
  253. <label>칠곡</label>
  254. <value>032</value>
  255. </item>
  256. </choices>
  257. </select1>
  258. <caption id="caption7" class="search_name" style="left:5px; top:40px; width:90px; height:17px; ">부품명</caption>
  259. <input id="input2" ref="/root/send/search/name" navindex="9" appearance="minimal" style="left:85px; top:40px; width:100px; height:19px; "/>
  260. <button id="button1" class="btn1_letter2" navindex="15" style="left:1142px; top:27px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  261. <caption>조회</caption>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. fGetList();
  265. ]]>
  266. </script>
  267. </button>
  268. <line id="line15" class="line_4" style="x1:1135px; y1:12px; x2:1135px; y2:62px; font-family:돋움체; border-color:#ffd799; "/>
  269. </group>
  270. <group id="group1" style="left:0px; top:115px; width:1210px; height:615px; ">
  271. <caption id="caption9" class="tit_2" style="left:0px; top:5px; width:180px; height:13px; ">부품모델정보</caption>
  272. <line id="line4" class="line_1" style="x1:0px; y1:22px; x2:575px; y2:22px; "/>
  273. <datagrid id="grd_eqmtitemlist" nodeset="/root/main/eqmtitemlist/item" class="datagrid" caption="제조사코드^제조사명^부품모델코드^부속품종류^부속품명^규격" colsep="^" colwidth="70, 70, 70, 70, 70" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:25px; width:575px; height:590px; ">
  274. <col ref="prodcmpycd"/>
  275. <col ref="prodcmpynm"/>
  276. <col ref="itemseq"/>
  277. <col ref="itemtype"/>
  278. <col ref="name"/>
  279. <col ref="spec"/>
  280. <script type="javascript" ev:event="ondblclick">
  281. <![CDATA[
  282. model.copyNode("/root/main/eqmtiteminfo", "/root/main/eqmtitemlist/item["+ grd_eqmtitemlist.row+"]");
  283. model.refresh();
  284. ]]>
  285. </script>
  286. </datagrid>
  287. <caption id="caption27" class="tit_2" style="left:584px; top:7px; width:176px; height:13px; ">부품모델정보</caption>
  288. <line id="line8" class="line_1" style="x1:584px; y1:22px; x2:1201px; y2:22px; "/>
  289. <caption id="caption26" class="cell_1" style="left:584px; top:27px; width:91px; height:23px; vertical-align:middle; ">제조사</caption>
  290. <input id="ipt_prodcmpynm" ref="/root/main/eqmtiteminfo/prodcmpynm" class="input_essential" style="left:678px; top:29px; width:100px; height:19px; ">
  291. <script type="javascript" ev:event="onkeyup">
  292. <![CDATA[
  293. if(event.keyCode == 13){
  294. btn_prodcmpycd.dispatch("DOMActivate");
  295. }
  296. ]]>
  297. </script>
  298. </input>
  299. <button id="btn_prodcmpycd" class="icon_search" style="left:783px; top:29px; width:16px; height:16px; ">
  300. <caption/>
  301. <script type="javascript" ev:event="DOMActivate">
  302. <![CDATA[
  303. fGetCmpyCd("SMZHI00600", "nm", ipt_prodcmpynm.currentText, "/root/main/eqmtiteminfo/prodcmpycd", "/root/main/eqmtiteminfo/prodcmpynm");
  304. ]]>
  305. </script>
  306. </button>
  307. <output id="ipt_prodcmpycd" ref="/root/main/eqmtiteminfo/prodcmpycd" class="output_fix" style="left:805px; top:29px; width:100px; height:19px; "/>
  308. <caption id="caption21" class="cell_1" style="left:584px; top:52px; width:91px; height:23px; vertical-align:middle; ">부품모델코드</caption>
  309. <input id="input19" ref="/root/main/eqmtiteminfo/itemseq" disabled="true" style="left:678px; top:54px; width:100px; height:19px; "/>
  310. <caption id="caption28" class="cell_1" style="left:584px; top:77px; width:91px; height:23px; vertical-align:middle; ">부속품종류</caption>
  311. <select1 id="combo2" ref="/root/main/eqmtiteminfo/itemtype" class="combo_essential" appearance="minimal" style="left:678px; top:79px; width:100px; height:19px; ">
  312. <choices>
  313. <itemset nodeset="/root/init/baseinfo/item/test">
  314. <label ref="cdnm"/>
  315. <value ref="cdid"/>
  316. </itemset>
  317. </choices>
  318. <script type="javascript" ev:event="xforms-value-changed">
  319. <![CDATA[
  320. model.setFocus("cmb_uncocd");
  321. ]]>
  322. </script>
  323. </select1>
  324. <caption id="caption33" class="cell_1" style="left:584px; top:102px; width:91px; height:23px; vertical-align:middle; ">부품명</caption>
  325. <input id="input18" ref="/root/main/eqmtiteminfo/name" class="input_essential" style="left:678px; top:104px; width:100px; height:19px; "/>
  326. <caption id="caption3" class="cell_1" style="left:584px; top:127px; width:91px; height:23px; vertical-align:middle; ">규격</caption>
  327. <select1 id="combo10" ref="/root/main/eqmtiteminfo/spec" appearance="minimal" style="left:678px; top:129px; width:100px; height:19px; ">
  328. <choices>
  329. <itemset nodeset="/root/init/baseinfo/item/test">
  330. <label ref="cdnm"/>
  331. <value ref="cdid"/>
  332. </itemset>
  333. </choices>
  334. </select1>
  335. </group>
  336. </xhtml:body>
  337. </xhtml:html>