123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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: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">
- <xhtml:head>
- <xhtml:title>부품모델관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <eqmtitemlist>
- <item>
- <prodcmpycd/>
- <prodcmpynm/>
- <itemseq/>
- <itemtype/>
- <name/>
- <spec/>
- </item>
- </eqmtitemlist>
- <eqmtiteminfo>
- <prodcmpycd/>
- <prodcmpynm/>
- <itemseq/>
- <itemtype/>
- <name/>
- <spec/>
- </eqmtiteminfo>
- </main>
- <send>
- <search>
- <instcd/>
- <prodcmpycd/>
- <prodcmpynm/>
- <itemtype/>
- <spec/>
- <name/>
- </search>
- <saveEqmtiteminfo/>
- </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="TRZHI00601" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/search" replace="instance" resultref="/root/main/eqmtitemlist"/>
- <submission id="TXZHI00601" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtiteminfo" replace="instance" resultref="/temp"/>
- <submission id="TXZHI00602" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtiteminfo" replace="instance" resultref="/temp"/>
- <submission id="TXZHI00603" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtiteminfo" 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/eqmtiteminfo");
- model.removeNodeset("/root/main/eqmtitemlist");
- model.refresh();
- }
-
- function fGetList(){
- model.resetInstanceNode("/root/main/eqmtiteminfo");
- model.removeNodeset("/root/main/eqmtitemlist");
- submit("TRZHI00601");
- }
-
- /*
- * 부품모델정보 체크
- */
- function fCheckEqmtiteminfo(){
- if(model.getValue("/root/main/eqmtiteminfo/prodcmpycd") == ""){
- messageBox("부품모델정보", "C001");
- return false;
- }else if(model.getValue("/root/main/eqmtiteminfo/itemtype") == ""){
- messageBox("부품모델정보", "C001");
- return false;
- }else if(model.getValue("/root/main/eqmtiteminfo/name") == ""){
- messageBox("부품모델정보", "C001");
- return false;
- }else if(model.getValue("/root/main/eqmtiteminfo/spec") == ""){
- messageBox("부품모델정보", "C001");
- return false;
- }
- return true;
- }
-
- /*
- * 부품모델정보 저장
- */
- function fSetEqmtiteminfo(){
- if(fCheckEqmtiteminfo()){
- if(model.getValue("/root/main/eqmtiteminfo/itemseq") == ""){
- //입력
- model.removenode("/root/send/saveEqmtiteminfo");
- model.makeNode("/root/send/saveEqmtiteminfo");
- model.copyNode("/root/send/saveEqmtiteminfo", "/root/main/eqmtiteminfo");
- if(submit("TXZHI00601")){
- messageBox("부품모델정보", "I001");
- return true;
- }
- }else{
- //수정
- model.removenode("/root/send/saveEqmtiteminfo");
- model.makeNode("/root/send/saveEqmtiteminfo");
- model.copyNode("/root/send/saveEqmtiteminfo", "/root/main/eqmtiteminfo");
- if(submit("TXZHI00602")){
- messageBox("부품모델정보", "I001");
- return true;
- }
- }
- }
- }
-
- /*
- * 부품모델정보 삭제
- */
- function fDelEqmtiteminfo(){
- if(fCheckEqmtiteminfo()){
- if(model.getValue("/root/main/eqmtiteminfo/itemseq") != ""){
- model.removenode("/root/send/saveEqmtiteminfo");
- model.makeNode("/root/send/saveEqmtiteminfo");
- model.copyNode("/root/send/saveEqmtiteminfo", "/root/main/eqmtiteminfo");
- if(submit("TXZHI00603")){
- 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(fSetEqmtiteminfo()){
- 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(fDelEqmtiteminfo()){
- 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("SMZHI00600", "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/itemtype" 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/spec" 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_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; ">
- <col ref="prodcmpycd"/>
- <col ref="prodcmpynm"/>
- <col ref="itemseq"/>
- <col ref="itemtype"/>
- <col ref="name"/>
- <col ref="spec"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.copyNode("/root/main/eqmtiteminfo", "/root/main/eqmtitemlist/item["+ grd_eqmtitemlist.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/eqmtiteminfo/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_prodcmpycd.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_prodcmpycd" class="icon_search" style="left:783px; top:29px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCmpyCd("SMZHI00600", "nm", ipt_prodcmpynm.currentText, "/root/main/eqmtiteminfo/prodcmpycd", "/root/main/eqmtiteminfo/prodcmpynm");
- ]]>
- </script>
- </button>
- <output id="ipt_prodcmpycd" ref="/root/main/eqmtiteminfo/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/eqmtiteminfo/itemseq" disabled="true" style="left:678px; top:54px; width:100px; height:19px; "/>
- <caption id="caption28" class="cell_1" style="left:584px; top:77px; width:91px; height:23px; vertical-align:middle; ">부속품종류</caption>
- <select1 id="combo2" ref="/root/main/eqmtiteminfo/itemtype" class="combo_essential" appearance="minimal" style="left:678px; top:79px; 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:102px; width:91px; height:23px; vertical-align:middle; ">부품명</caption>
- <input id="input18" ref="/root/main/eqmtiteminfo/name" class="input_essential" style="left:678px; top:104px; width:100px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:584px; top:127px; width:91px; height:23px; vertical-align:middle; ">규격</caption>
- <select1 id="combo10" ref="/root/main/eqmtiteminfo/spec" appearance="minimal" style="left:678px; top:129px; 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>
|