123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>장비모델관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <eqmtmodellist>
- <item>
- <prodcmpycd/>
- <prodcmpynm/>
- <modelcd/>
- <lrgcd/>
- <midcd/>
- <name/>
- <cpucnt/>
- <corecnt/>
- <memamt/>
- <storamt/>
- <moninch/>
- <spec/>
- </item>
- </eqmtmodellist>
- <eqmtmodelinfo>
- <prodcmpycd/>
- <prodcmpynm/>
- <modelcd/>
- <lrgcd/>
- <midcd/>
- <name/>
- <cpucnt/>
- <corecnt/>
- <memamt/>
- <storamt/>
- <moninch/>
- <spec/>
- </eqmtmodelinfo>
- </main>
- <send>
- <search>
- <instcd/>
- <prodcmpycd/>
- <prodcmpynm/>
- <lrgcd/>
- <midcd/>
- <name/>
- </search>
- <saveEqmtmodelinfo/>
- </send>
- <init>
- <baseinfo>
- <item>
- <test>
- <cdid>1</cdid>
- <cdnm>
- test1
- </cdnm>
- </test>
- <test>
- <cdid>2</cdid>
- <cdnm>
- test2
- </cdnm>
- </test>
- </item>
- </baseinfo>
- </init>
- <temp/>
- </root>
- </instance>
- <submission id="TRZHI00501" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/search" replace="instance" resultref="/root/main/eqmtmodellist"/>
- <submission id="TXZHI00501" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtmodelinfo" replace="instance" resultref="/temp"/>
- <submission id="TXZHI00502" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtmodelinfo" replace="instance" resultref="/temp"/>
- <submission id="TXZHI00503" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtmodelinfo" replace="instance" resultref="/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/irmsweb/js/IrmsCom.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // fGetBaseInfo(); //기본/공통코드 정보를 조회
- fInitInfo(); //초기화
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[/*
- * 기본코드 정보를 조회
- */
- function fGetBaseInfo(){
-
- }
-
- /*
- *입력항목 초기화
- */
- function fInitInfo(){
- model.resetInstanceNode("root/send/search");
- model.resetInstanceNode("/root/main/eqmtmodelinfo");
- model.removeNodeset("/root/main/eqmtmodellist");
- model.refresh();
- }
-
- function fGetList(){
- model.resetInstanceNode("/root/main/eqmtmodelinfo");
- model.removeNodeset("/root/main/eqmtmodellist");
- submit("TRZHI00501");
- }
-
- /*
- * 장비모델정보 체크
- */
- function fCheckEqmtmodelinfo(){
- if(model.getValue("/root/main/eqmtmodelinfo/cmpytype") == ""){
- messageBox("장비모델정보", "C001");
- return false;
- }else if(model.getValue("/root/main/eqmtmodelinfo/prodcmpynm") == ""){
- messageBox("장비모델정보", "C001");
- return false;
- }else if(model.getValue("/root/main/eqmtmodelinfo/lrgcd") == ""){
- messageBox("장비모델정보", "C001");
- return false;
- }else if(model.getValue("/root/main/eqmtmodelinfo/midcd") == ""){
- messageBox("장비모델정보", "C001");
- return false;
- }else if(model.getValue("/root/main/eqmtmodelinfo/name") == ""){
- messageBox("장비모델정보", "C001");
- return false;
- }
- return true;
- }
-
- /*
- * 장비모델정보 저장
- */
- function fSetEqmtmodelinfo(){
- if(fCheckEqmtmodelinfo()){
- if(model.getValue("/root/main/eqmtmodelinfo/modelcd") == ""){
- //입력
- model.removenode("/root/send/saveEqmtmodelinfo");
- model.makeNode("/root/send/saveEqmtmodelinfo");
- model.copyNode("/root/send/saveEqmtmodelinfo", "/root/main/eqmtmodelinfo");
- if(submit("TXZHI00501")){
- messageBox("장비모델정보", "I001");
- return true;
- }
- }else{
- //수정
- model.removenode("/root/send/saveEqmtmodelinfo");
- model.makeNode("/root/send/saveEqmtmodelinfo");
- model.copyNode("/root/send/saveEqmtmodelinfo", "/root/main/eqmtmodelinfo");
- if(submit("TXZHI00502")){
- messageBox("장비모델정보", "I001");
- return true;
- }
- }
- }
- }
-
- /*
- * 장비모델정보 삭제
- */
- function fDelEqmtmodelinfo(){
- if(fCheckEqmtmodelinfo()){
- if(model.getValue("/root/main/eqmtmodelinfo/modelcd") != ""){
- model.removenode("/root/send/saveEqmtmodelinfo");
- model.makeNode("/root/send/saveEqmtmodelinfo");
- model.copyNode("/root/send/saveEqmtmodelinfo", "/root/main/eqmtmodelinfo");
- if(submit("TXZHI00503")){
- messageBox("장비모델정보", "I001");
- return true;
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="grp_tle" style="left:0px; top:0px; width:1210px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:217px; height:14px; ">장비모델관리</caption>
- </group>
- <group id="grp_ipt" style="left:0px; top:15px; width:1210px; height:25px; ">
- <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; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitInfo();
- ]]>
- </script>
- </button>
- <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; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fSetEqmtmodelinfo()){
- fGetList();
- }
- ]]>
- </script>
- </button>
- <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; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("장비모델정보", "Q001") != 6) return -1;
- if(fDelEqmtmodelinfo()){
- fGetList();
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_search" style="left:0px; top:40px; width:1210px; height:75px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:5px; width:1205px; height:65px; "/>
- <caption id="caption18" class="search_name" style="left:5px; top:15px; width:85px; height:17px; ">기관</caption>
- <select1 id="combo3" ref="/root/send/search/instcd" appearance="minimal" style="left:85px; top:15px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>본원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠곡</label>
- <value>032</value>
- </item>
- </choices>
- </select1>
- <caption id="caption11" class="search_name" style="left:195px; top:15px; width:90px; height:17px; ">공급처코드</caption>
- <input id="ipt_sProdcmpycd" ref="/root/send/search/prodcmpynm" style="left:290px; top:15px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13){
- btn_sprodcmpycd.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_sprodcmpycd" class="icon_search" navindex="5" style="left:360px; top:15px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCmpyCd("SMZHI00500", "nm", ipt_sProdcmpycd.currentText, "/root/send/search/prodcmpycd", "/root/send/search/prodcmpynm");
- ]]>
- </script>
- </button>
- <input id="ipt_sProdcmpynm" ref="/root/send/search/prodcmpycd" disabled="true" style="left:380px; top:15px; width:145px; height:19px; "/>
- <caption id="caption14" class="search_name" style="left:535px; top:15px; width:89px; height:17px; ">장비대분류</caption>
- <select1 id="combo11" ref="/root/send/search/lrgcd" appearance="minimal" style="left:630px; top:15px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>본원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠곡</label>
- <value>032</value>
- </item>
- </choices>
- </select1>
- <caption id="caption23" class="search_name" style="left:745px; top:15px; width:89px; height:17px; ">장비중분류</caption>
- <select1 id="combo12" ref="/root/send/search/midcd" appearance="minimal" style="left:840px; top:15px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>본원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠곡</label>
- <value>032</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:5px; top:40px; width:90px; height:17px; ">장비명</caption>
- <input id="input2" ref="/root/send/search/name" navindex="9" appearance="minimal" style="left:85px; top:40px; width:100px; height:19px; "/>
- <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; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetList();
- ]]>
- </script>
- </button>
- <line id="line15" class="line_4" style="x1:1135px; y1:12px; x2:1135px; y2:62px; font-family:돋움체; border-color:#ffd799; "/>
- </group>
- <group id="group1" style="left:0px; top:115px; width:1210px; height:615px; ">
- <caption id="caption9" class="tit_2" style="left:0px; top:5px; width:180px; height:13px; ">장비모델정보</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:22px; x2:575px; y2:22px; "/>
- <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; ">
- <col ref="prodcmpycd"/>
- <col ref="prodcmpynm"/>
- <col ref="modelcd"/>
- <col ref="lrgcd"/>
- <col ref="midcd"/>
- <col ref="name"/>
- <col ref="cpucnt"/>
- <col ref="corecnt"/>
- <col ref="memamt"/>
- <col ref="storamt"/>
- <col ref="moninch"/>
- <col ref="spec"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.copyNode("/root/main/eqmtmodelinfo", "/root/main/eqmtmodellist/item["+ grd_eqmtmodellist.row+"]");
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption27" class="tit_2" style="left:584px; top:7px; width:176px; height:13px; ">장비모델정보</caption>
- <line id="line8" class="line_1" style="x1:584px; y1:22px; x2:1201px; y2:22px; "/>
- <caption id="caption26" class="cell_1" style="left:584px; top:27px; width:91px; height:23px; vertical-align:middle; ">제조사</caption>
- <input id="ipt_prodcmpynm" ref="/root/main/eqmtmodelinfo/prodcmpynm" class="input_essential" style="left:678px; top:29px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13){
- btn_prodcmpy.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_prodcmpy" class="icon_search" style="left:783px; top:29px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCmpyCd("SMZHI00500", "nm", ipt_prodcmpynm.currentText, "/root/main/eqmtmodelinfo/prodcmpycd", "/root/main/eqmtmodelinfo/prodcmpynm");
- ]]>
- </script>
- </button>
- <output id="ipt_prodcmpycd" ref="/root/main/eqmtmodelinfo/prodcmpycd" class="output_fix" style="left:805px; top:29px; width:100px; height:19px; "/>
- <caption id="caption21" class="cell_1" style="left:584px; top:52px; width:91px; height:23px; vertical-align:middle; ">장비모델코드</caption>
- <input id="input19" ref="/root/main/eqmtmodelinfo/modelcd" disabled="true" style="left:678px; top:54px; width:100px; height:19px; "/>
- <caption id="caption28" class="cell_1" style="left:584px; top:76px; width:91px; height:23px; vertical-align:middle; ">장비대분류</caption>
- <select1 id="combo2" ref="/root/main/eqmtmodelinfo/lrgcd" class="combo_essential" appearance="minimal" style="left:678px; top:78px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/item/test">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("cmb_uncocd");
- ]]>
- </script>
- </select1>
- <caption id="caption31" class="cell_1" style="left:584px; top:101px; width:91px; height:23px; vertical-align:middle; ">장비중분류</caption>
- <select1 id="combo4" ref="/root/main/eqmtmodelinfo/midcd" class="combo_essential" appearance="minimal" style="left:678px; top:103px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/item/test">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("cmb_uncocd");
- ]]>
- </script>
- </select1>
- <caption id="caption33" class="cell_1" style="left:584px; top:126px; width:91px; height:23px; vertical-align:middle; ">장비명</caption>
- <input id="input18" ref="/root/main/eqmtmodelinfo/name" class="input_essential" style="left:678px; top:128px; width:100px; height:19px; "/>
- <caption id="caption20" class="cell_1" style="left:584px; top:151px; width:91px; height:23px; vertical-align:middle; ">CPU수</caption>
- <select1 id="combo5" ref="/root/main/eqmtmodelinfo/cpucnt" appearance="minimal" style="left:678px; top:153px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/item/test">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("cmb_uncocd");
- ]]>
- </script>
- </select1>
- <caption id="caption13" class="cell_1" style="left:584px; top:176px; width:91px; height:23px; vertical-align:middle; ">CORE수</caption>
- <select1 id="combo6" ref="/root/main/eqmtmodelinfo/corecnt" appearance="minimal" style="left:678px; top:178px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/item/test">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("cmb_uncocd");
- ]]>
- </script>
- </select1>
- <caption id="caption37" class="cell_1" style="left:584px; top:201px; width:91px; height:23px; vertical-align:middle; ">메모리용량</caption>
- <select1 id="combo7" ref="/root/main/eqmtmodelinfo/memamt" appearance="minimal" style="left:678px; top:203px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/item/test">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("cmb_uncocd");
- ]]>
- </script>
- </select1>
- <caption id="caption35" class="cell_1" style="left:584px; top:226px; width:91px; height:23px; vertical-align:middle; ">저장공간용량</caption>
- <select1 id="combo8" ref="/root/main/eqmtmodelinfo/storamt" appearance="minimal" style="left:678px; top:228px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/item/test">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("cmb_uncocd");
- ]]>
- </script>
- </select1>
- <caption id="caption19" class="cell_1" style="left:584px; top:251px; width:91px; height:23px; vertical-align:middle; ">모니터인치</caption>
- <select1 id="combo9" ref="/root/main/eqmtmodelinfo/moninch" appearance="minimal" style="left:678px; top:253px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/item/test">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("cmb_uncocd");
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="cell_1" style="left:584px; top:276px; width:91px; height:23px; vertical-align:middle; ">규격</caption>
- <select1 id="combo10" ref="/root/main/eqmtmodelinfo/spec" appearance="minimal" style="left:678px; top:279px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/item/test">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|