SMZHI00500_장비모델관리.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <eqmtmodellist>
  11. <item>
  12. <prodcmpycd/>
  13. <prodcmpynm/>
  14. <modelcd/>
  15. <lrgcd/>
  16. <midcd/>
  17. <name/>
  18. <cpucnt/>
  19. <corecnt/>
  20. <memamt/>
  21. <storamt/>
  22. <moninch/>
  23. <spec/>
  24. </item>
  25. </eqmtmodellist>
  26. <eqmtmodelinfo>
  27. <prodcmpycd/>
  28. <prodcmpynm/>
  29. <modelcd/>
  30. <lrgcd/>
  31. <midcd/>
  32. <name/>
  33. <cpucnt/>
  34. <corecnt/>
  35. <memamt/>
  36. <storamt/>
  37. <moninch/>
  38. <spec/>
  39. </eqmtmodelinfo>
  40. </main>
  41. <send>
  42. <search>
  43. <instcd/>
  44. <prodcmpycd/>
  45. <prodcmpynm/>
  46. <lrgcd/>
  47. <midcd/>
  48. <name/>
  49. </search>
  50. <saveEqmtmodelinfo/>
  51. </send>
  52. <init>
  53. <baseinfo>
  54. <item>
  55. <test>
  56. <cdid>1</cdid>
  57. <cdnm>
  58. test1
  59. </cdnm>
  60. </test>
  61. <test>
  62. <cdid>2</cdid>
  63. <cdnm>
  64. test2
  65. </cdnm>
  66. </test>
  67. </item>
  68. </baseinfo>
  69. </init>
  70. <temp/>
  71. </root>
  72. </instance>
  73. <submission id="TRZHI00501" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/search" replace="instance" resultref="/root/main/eqmtmodellist"/>
  74. <submission id="TXZHI00501" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtmodelinfo" replace="instance" resultref="/temp"/>
  75. <submission id="TXZHI00502" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtmodelinfo" replace="instance" resultref="/temp"/>
  76. <submission id="TXZHI00503" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtmodelinfo" replace="instance" resultref="/temp"/>
  77. </model>
  78. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/irmsweb/js/IrmsCom.js"/>
  84. <script type="javascript" ev:event="xforms-ready">
  85. <![CDATA[
  86. // fGetBaseInfo(); //기본/공통코드 정보를 조회
  87. fInitInfo(); //초기화
  88. model.refresh();
  89. ]]>
  90. </script>
  91. <script type="javascript">
  92. <![CDATA[/*
  93. * 기본코드 정보를 조회
  94. */
  95. function fGetBaseInfo(){
  96. }
  97. /*
  98. *입력항목 초기화
  99. */
  100. function fInitInfo(){
  101. model.resetInstanceNode("root/send/search");
  102. model.resetInstanceNode("/root/main/eqmtmodelinfo");
  103. model.removeNodeset("/root/main/eqmtmodellist");
  104. model.refresh();
  105. }
  106. function fGetList(){
  107. model.resetInstanceNode("/root/main/eqmtmodelinfo");
  108. model.removeNodeset("/root/main/eqmtmodellist");
  109. submit("TRZHI00501");
  110. }
  111. /*
  112. * 장비모델정보 체크
  113. */
  114. function fCheckEqmtmodelinfo(){
  115. if(model.getValue("/root/main/eqmtmodelinfo/cmpytype") == ""){
  116. messageBox("장비모델정보", "C001");
  117. return false;
  118. }else if(model.getValue("/root/main/eqmtmodelinfo/prodcmpynm") == ""){
  119. messageBox("장비모델정보", "C001");
  120. return false;
  121. }else if(model.getValue("/root/main/eqmtmodelinfo/lrgcd") == ""){
  122. messageBox("장비모델정보", "C001");
  123. return false;
  124. }else if(model.getValue("/root/main/eqmtmodelinfo/midcd") == ""){
  125. messageBox("장비모델정보", "C001");
  126. return false;
  127. }else if(model.getValue("/root/main/eqmtmodelinfo/name") == ""){
  128. messageBox("장비모델정보", "C001");
  129. return false;
  130. }
  131. return true;
  132. }
  133. /*
  134. * 장비모델정보 저장
  135. */
  136. function fSetEqmtmodelinfo(){
  137. if(fCheckEqmtmodelinfo()){
  138. if(model.getValue("/root/main/eqmtmodelinfo/modelcd") == ""){
  139. //입력
  140. model.removenode("/root/send/saveEqmtmodelinfo");
  141. model.makeNode("/root/send/saveEqmtmodelinfo");
  142. model.copyNode("/root/send/saveEqmtmodelinfo", "/root/main/eqmtmodelinfo");
  143. if(submit("TXZHI00501")){
  144. messageBox("장비모델정보", "I001");
  145. return true;
  146. }
  147. }else{
  148. //수정
  149. model.removenode("/root/send/saveEqmtmodelinfo");
  150. model.makeNode("/root/send/saveEqmtmodelinfo");
  151. model.copyNode("/root/send/saveEqmtmodelinfo", "/root/main/eqmtmodelinfo");
  152. if(submit("TXZHI00502")){
  153. messageBox("장비모델정보", "I001");
  154. return true;
  155. }
  156. }
  157. }
  158. }
  159. /*
  160. * 장비모델정보 삭제
  161. */
  162. function fDelEqmtmodelinfo(){
  163. if(fCheckEqmtmodelinfo()){
  164. if(model.getValue("/root/main/eqmtmodelinfo/modelcd") != ""){
  165. model.removenode("/root/send/saveEqmtmodelinfo");
  166. model.makeNode("/root/send/saveEqmtmodelinfo");
  167. model.copyNode("/root/send/saveEqmtmodelinfo", "/root/main/eqmtmodelinfo");
  168. if(submit("TXZHI00503")){
  169. messageBox("장비모델정보", "I001");
  170. return true;
  171. }
  172. }
  173. }
  174. }
  175. ]]>
  176. </script>
  177. </xhtml:head>
  178. <xhtml:body>
  179. <group id="grp_tle" style="left:0px; top:0px; width:1210px; height:13px; ">
  180. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:217px; height:14px; ">장비모델관리</caption>
  181. </group>
  182. <group id="grp_ipt" style="left:0px; top:15px; width:1210px; height:25px; ">
  183. <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; ">
  184. <caption>초기화</caption>
  185. <script type="javascript" ev:event="DOMActivate">
  186. <![CDATA[
  187. fInitInfo();
  188. ]]>
  189. </script>
  190. </button>
  191. <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; ">
  192. <caption>저장</caption>
  193. <script type="javascript" ev:event="DOMActivate">
  194. <![CDATA[
  195. if(fSetEqmtmodelinfo()){
  196. fGetList();
  197. }
  198. ]]>
  199. </script>
  200. </button>
  201. <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; ">
  202. <caption>삭제</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. if(messageBox("장비모델정보", "Q001") != 6) return -1;
  206. if(fDelEqmtmodelinfo()){
  207. fGetList();
  208. }
  209. ]]>
  210. </script>
  211. </button>
  212. </group>
  213. <group id="grp_search" style="left:0px; top:40px; width:1210px; height:75px; ">
  214. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:5px; width:1205px; height:65px; "/>
  215. <caption id="caption18" class="search_name" style="left:5px; top:15px; width:85px; height:17px; ">기관</caption>
  216. <select1 id="combo3" ref="/root/send/search/instcd" appearance="minimal" style="left:85px; top:15px; width:100px; height:19px; ">
  217. <choices>
  218. <item>
  219. <label>본원</label>
  220. <value>031</value>
  221. </item>
  222. <item>
  223. <label>칠곡</label>
  224. <value>032</value>
  225. </item>
  226. </choices>
  227. </select1>
  228. <caption id="caption11" class="search_name" style="left:195px; top:15px; width:90px; height:17px; ">공급처코드</caption>
  229. <input id="ipt_sProdcmpycd" ref="/root/send/search/prodcmpynm" style="left:290px; top:15px; width:65px; height:19px; ">
  230. <script type="javascript" ev:event="onkeyup">
  231. <![CDATA[
  232. if(event.keyCode == 13){
  233. btn_sprodcmpycd.dispatch("DOMActivate");
  234. }
  235. ]]>
  236. </script>
  237. </input>
  238. <button id="btn_sprodcmpycd" class="icon_search" navindex="5" style="left:360px; top:15px; width:16px; height:16px; ">
  239. <caption/>
  240. <script type="javascript" ev:event="DOMActivate">
  241. <![CDATA[
  242. fGetCmpyCd("SMZHI00500", "nm", ipt_sProdcmpycd.currentText, "/root/send/search/prodcmpycd", "/root/send/search/prodcmpynm");
  243. ]]>
  244. </script>
  245. </button>
  246. <input id="ipt_sProdcmpynm" ref="/root/send/search/prodcmpycd" disabled="true" style="left:380px; top:15px; width:145px; height:19px; "/>
  247. <caption id="caption14" class="search_name" style="left:535px; top:15px; width:89px; height:17px; ">장비대분류</caption>
  248. <select1 id="combo11" ref="/root/send/search/lrgcd" appearance="minimal" style="left:630px; top:15px; width:100px; height:19px; ">
  249. <choices>
  250. <item>
  251. <label>본원</label>
  252. <value>031</value>
  253. </item>
  254. <item>
  255. <label>칠곡</label>
  256. <value>032</value>
  257. </item>
  258. </choices>
  259. </select1>
  260. <caption id="caption23" class="search_name" style="left:745px; top:15px; width:89px; height:17px; ">장비중분류</caption>
  261. <select1 id="combo12" ref="/root/send/search/midcd" appearance="minimal" style="left:840px; top:15px; width:100px; height:19px; ">
  262. <choices>
  263. <item>
  264. <label>본원</label>
  265. <value>031</value>
  266. </item>
  267. <item>
  268. <label>칠곡</label>
  269. <value>032</value>
  270. </item>
  271. </choices>
  272. </select1>
  273. <caption id="caption7" class="search_name" style="left:5px; top:40px; width:90px; height:17px; ">장비명</caption>
  274. <input id="input2" ref="/root/send/search/name" navindex="9" appearance="minimal" style="left:85px; top:40px; width:100px; height:19px; "/>
  275. <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; ">
  276. <caption>조회</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. fGetList();
  280. ]]>
  281. </script>
  282. </button>
  283. <line id="line15" class="line_4" style="x1:1135px; y1:12px; x2:1135px; y2:62px; font-family:돋움체; border-color:#ffd799; "/>
  284. </group>
  285. <group id="group1" style="left:0px; top:115px; width:1210px; height:615px; ">
  286. <caption id="caption9" class="tit_2" style="left:0px; top:5px; width:180px; height:13px; ">장비모델정보</caption>
  287. <line id="line4" class="line_1" style="x1:0px; y1:22px; x2:575px; y2:22px; "/>
  288. <datagrid id="grd_eqmtmodellist" nodeset="/root/main/eqmtmodellist/item" class="datagrid" caption="제조사코드^제조사명^장비모델코드^장비대분류^장비중분류^장비명^CPU수^CORE수^메모리용량^저장공간용량^모니터인치^규격" colsep="^" colwidth="40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:25px; width:575px; height:590px; ">
  289. <col ref="prodcmpycd"/>
  290. <col ref="prodcmpynm"/>
  291. <col ref="modelcd"/>
  292. <col ref="lrgcd"/>
  293. <col ref="midcd"/>
  294. <col ref="name"/>
  295. <col ref="cpucnt"/>
  296. <col ref="corecnt"/>
  297. <col ref="memamt"/>
  298. <col ref="storamt"/>
  299. <col ref="moninch"/>
  300. <col ref="spec"/>
  301. <script type="javascript" ev:event="ondblclick">
  302. <![CDATA[
  303. model.copyNode("/root/main/eqmtmodelinfo", "/root/main/eqmtmodellist/item["+ grd_eqmtmodellist.row+"]");
  304. model.refresh();
  305. ]]>
  306. </script>
  307. </datagrid>
  308. <caption id="caption27" class="tit_2" style="left:584px; top:7px; width:176px; height:13px; ">장비모델정보</caption>
  309. <line id="line8" class="line_1" style="x1:584px; y1:22px; x2:1201px; y2:22px; "/>
  310. <caption id="caption26" class="cell_1" style="left:584px; top:27px; width:91px; height:23px; vertical-align:middle; ">제조사</caption>
  311. <input id="ipt_prodcmpynm" ref="/root/main/eqmtmodelinfo/prodcmpynm" class="input_essential" style="left:678px; top:29px; width:100px; height:19px; ">
  312. <script type="javascript" ev:event="onkeyup">
  313. <![CDATA[
  314. if(event.keyCode == 13){
  315. btn_prodcmpy.dispatch("DOMActivate");
  316. }
  317. ]]>
  318. </script>
  319. </input>
  320. <button id="btn_prodcmpy" class="icon_search" style="left:783px; top:29px; width:16px; height:16px; ">
  321. <caption/>
  322. <script type="javascript" ev:event="DOMActivate">
  323. <![CDATA[
  324. fGetCmpyCd("SMZHI00500", "nm", ipt_prodcmpynm.currentText, "/root/main/eqmtmodelinfo/prodcmpycd", "/root/main/eqmtmodelinfo/prodcmpynm");
  325. ]]>
  326. </script>
  327. </button>
  328. <output id="ipt_prodcmpycd" ref="/root/main/eqmtmodelinfo/prodcmpycd" class="output_fix" style="left:805px; top:29px; width:100px; height:19px; "/>
  329. <caption id="caption21" class="cell_1" style="left:584px; top:52px; width:91px; height:23px; vertical-align:middle; ">장비모델코드</caption>
  330. <input id="input19" ref="/root/main/eqmtmodelinfo/modelcd" disabled="true" style="left:678px; top:54px; width:100px; height:19px; "/>
  331. <caption id="caption28" class="cell_1" style="left:584px; top:76px; width:91px; height:23px; vertical-align:middle; ">장비대분류</caption>
  332. <select1 id="combo2" ref="/root/main/eqmtmodelinfo/lrgcd" class="combo_essential" appearance="minimal" style="left:678px; top:78px; width:100px; height:19px; ">
  333. <choices>
  334. <itemset nodeset="/root/init/baseinfo/item/test">
  335. <label ref="cdnm"/>
  336. <value ref="cdid"/>
  337. </itemset>
  338. </choices>
  339. <script type="javascript" ev:event="xforms-value-changed">
  340. <![CDATA[
  341. model.setFocus("cmb_uncocd");
  342. ]]>
  343. </script>
  344. </select1>
  345. <caption id="caption31" class="cell_1" style="left:584px; top:101px; width:91px; height:23px; vertical-align:middle; ">장비중분류</caption>
  346. <select1 id="combo4" ref="/root/main/eqmtmodelinfo/midcd" class="combo_essential" appearance="minimal" style="left:678px; top:103px; width:100px; height:19px; ">
  347. <choices>
  348. <itemset nodeset="/root/init/baseinfo/item/test">
  349. <label ref="cdnm"/>
  350. <value ref="cdid"/>
  351. </itemset>
  352. </choices>
  353. <script type="javascript" ev:event="xforms-value-changed">
  354. <![CDATA[
  355. model.setFocus("cmb_uncocd");
  356. ]]>
  357. </script>
  358. </select1>
  359. <caption id="caption33" class="cell_1" style="left:584px; top:126px; width:91px; height:23px; vertical-align:middle; ">장비명</caption>
  360. <input id="input18" ref="/root/main/eqmtmodelinfo/name" class="input_essential" style="left:678px; top:128px; width:100px; height:19px; "/>
  361. <caption id="caption20" class="cell_1" style="left:584px; top:151px; width:91px; height:23px; vertical-align:middle; ">CPU수</caption>
  362. <select1 id="combo5" ref="/root/main/eqmtmodelinfo/cpucnt" appearance="minimal" style="left:678px; top:153px; width:100px; height:19px; ">
  363. <choices>
  364. <itemset nodeset="/root/init/baseinfo/item/test">
  365. <label ref="cdnm"/>
  366. <value ref="cdid"/>
  367. </itemset>
  368. </choices>
  369. <script type="javascript" ev:event="xforms-value-changed">
  370. <![CDATA[
  371. model.setFocus("cmb_uncocd");
  372. ]]>
  373. </script>
  374. </select1>
  375. <caption id="caption13" class="cell_1" style="left:584px; top:176px; width:91px; height:23px; vertical-align:middle; ">CORE수</caption>
  376. <select1 id="combo6" ref="/root/main/eqmtmodelinfo/corecnt" appearance="minimal" style="left:678px; top:178px; width:100px; height:19px; ">
  377. <choices>
  378. <itemset nodeset="/root/init/baseinfo/item/test">
  379. <label ref="cdnm"/>
  380. <value ref="cdid"/>
  381. </itemset>
  382. </choices>
  383. <script type="javascript" ev:event="xforms-value-changed">
  384. <![CDATA[
  385. model.setFocus("cmb_uncocd");
  386. ]]>
  387. </script>
  388. </select1>
  389. <caption id="caption37" class="cell_1" style="left:584px; top:201px; width:91px; height:23px; vertical-align:middle; ">메모리용량</caption>
  390. <select1 id="combo7" ref="/root/main/eqmtmodelinfo/memamt" appearance="minimal" style="left:678px; top:203px; width:100px; height:19px; ">
  391. <choices>
  392. <itemset nodeset="/root/init/baseinfo/item/test">
  393. <label ref="cdnm"/>
  394. <value ref="cdid"/>
  395. </itemset>
  396. </choices>
  397. <script type="javascript" ev:event="xforms-value-changed">
  398. <![CDATA[
  399. model.setFocus("cmb_uncocd");
  400. ]]>
  401. </script>
  402. </select1>
  403. <caption id="caption35" class="cell_1" style="left:584px; top:226px; width:91px; height:23px; vertical-align:middle; ">저장공간용량</caption>
  404. <select1 id="combo8" ref="/root/main/eqmtmodelinfo/storamt" appearance="minimal" style="left:678px; top:228px; width:100px; height:19px; ">
  405. <choices>
  406. <itemset nodeset="/root/init/baseinfo/item/test">
  407. <label ref="cdnm"/>
  408. <value ref="cdid"/>
  409. </itemset>
  410. </choices>
  411. <script type="javascript" ev:event="xforms-value-changed">
  412. <![CDATA[
  413. model.setFocus("cmb_uncocd");
  414. ]]>
  415. </script>
  416. </select1>
  417. <caption id="caption19" class="cell_1" style="left:584px; top:251px; width:91px; height:23px; vertical-align:middle; ">모니터인치</caption>
  418. <select1 id="combo9" ref="/root/main/eqmtmodelinfo/moninch" appearance="minimal" style="left:678px; top:253px; width:100px; height:19px; ">
  419. <choices>
  420. <itemset nodeset="/root/init/baseinfo/item/test">
  421. <label ref="cdnm"/>
  422. <value ref="cdid"/>
  423. </itemset>
  424. </choices>
  425. <script type="javascript" ev:event="xforms-value-changed">
  426. <![CDATA[
  427. model.setFocus("cmb_uncocd");
  428. ]]>
  429. </script>
  430. </select1>
  431. <caption id="caption3" class="cell_1" style="left:584px; top:276px; width:91px; height:23px; vertical-align:middle; ">규격</caption>
  432. <select1 id="combo10" ref="/root/main/eqmtmodelinfo/spec" appearance="minimal" style="left:678px; top:279px; width:100px; height:19px; ">
  433. <choices>
  434. <itemset nodeset="/root/init/baseinfo/item/test">
  435. <label ref="cdnm"/>
  436. <value ref="cdid"/>
  437. </itemset>
  438. </choices>
  439. </select1>
  440. </group>
  441. </xhtml:body>
  442. </xhtml:html>