123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- * 제 목 : SMZHI00300_업체관리.xrw
- * 설 명 : 업체선택
- * 설 계 자 : 서원식
- * 작 성 자 : 서원식
- * 작 성 일 : 2012.11.21
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <cmpylist>
- <item>
- <cmpytype/>
- <cmpycd/>
- <cmpynm/>
- <cmpyno/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <addr/>
- <detladdr/>
- <prsdnm/>
- <telno/>
- <faxno/>
- <remcnts/>
- <todd/>
- <fromdd/>
- </item>
- </cmpylist>
- <cmpyinfo>
- <cmpytype/>
- <cmpycd/>
- <cmpynm/>
- <cmpyno/>
- <prsdnm/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <addr/>
- <detladdr/>
- <telno/>
- <faxno/>
- <remcnts/>
- <todd/>
- <fromdd/>
- </cmpyinfo>
- </main>
- <send>
- <search>
- <cmpytype/>
- <cmpynm/>
- <cmpycd/>
- </search>
- <searchCmpyinfo/>
- <saveCmpyinfo/>
- </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="TRZHI00301" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/search" replace="instance" resultref="/root/main/cmpylist"/>
- <submission id="TXZHI00301" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveCmpyinfo" replace="instance" resultref="/temp"/>
- <submission id="TXZHI00302" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveCmpyinfo" replace="instance" resultref="/temp"/>
- <submission id="TXZHI00303" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveCmpyinfo" 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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.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/cmpyinfo");
- model.removeNodeset("/root/main/cmpylist");
-
- model.refresh();
- }
-
- function fGetList(){
- model.resetInstanceNode("/root/main/cmpyinfo");
- model.resetInstanceNode("/root/main/cmpylist");
- submit("TRZHI00301");
- }
-
- /*
- * 업체정보 체크
- */
- function fCheckCmpyinfo(){
- // if(model.getValue("/root/main/eqmtinfo/instcd") == ""){
- // messageBox("사업체정보", "C001");
- // return false;
- // }else if(model.getValue("/root/main/eqmtinfo/instcd") == ""){
- // messageBox("사업체정보", "C001");
- // return false;
- // }else if(model.getValue("/root/main/eqmtinfo/windd") == ""){
- // messageBox("사업체정보", "C001");
- // return false;
- // }else if(model.getValue("/root/main/eqmtinfo/winamt") == ""){
- // messageBox("사업체정보", "C001");
- // return false;
- // }else if(model.getValue("/root/main/eqmtinfo/wintype") == ""){
- // messageBox("사업체정보", "C001");
- // return false;
- // }
- return true;
- }
-
- /*
- * 업체정보 저장
- */
- function fSetCmpyinfo(){
- if(fCheckCmpyinfo()){
- if(model.getValue("/root/main/cmpyinfo/cmpycd") == ""){
- //입력
- model.removenode("/root/send/saveCmpyinfo");
- model.makeNode("/root/send/saveCmpyinfo");
- model.copyNode("/root/send/saveCmpyinfo", "/root/main/cmpyinfo");
- if(submit("TXZHI00301")){
- messageBox("사업체정보", "I001");
- return true;
- }
- }else{
- //수정
- model.removenode("/root/send/saveCmpyinfo");
- model.makeNode("/root/send/saveCmpyinfo");
- model.copyNode("/root/send/saveCmpyinfo", "/root/main/cmpyinfo");
- if(submit("TXZHI00302")){
- messageBox("사업체정보", "I001");
- return true;
- }
- }
- }
- }
-
- /*
- * 업체정보 삭제
- */
- function fDelEqmtinfo(){
- if(fCheckCmpyinfo()){
- if(model.getValue("/root/main/cmpyinfo/cmpycd") != ""){
- model.removenode("/root/send/saveCmpyinfo");
- model.makeNode("/root/send/saveCmpyinfo");
- model.copyNode("/root/send/saveCmpyinfo", "/root/main/cmpyinfo");
- if(submit("TXZHI00303")){
- 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:15px; ">업체 관리</caption>
- </group>
- <group id="group1" style="left:0px; top:120px; width:1210px; height:660px; ">
- <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:560px; y2:22px; "/>
- <datagrid id="grd_cmpylist" nodeset="/root/main/cmpylist/item" class="datagrid" caption="사업체코드^사업장명^사업장등록번호^대표자명^대표전화^팩스번호^비고" colsep="^" colwidth="80, 100, 100, 70, 85, 85" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:25px; width:560px; height:630px; ">
- <col ref="cmpycd"/>
- <col ref="cmpynm"/>
- <col ref="cmpyno"/>
- <col ref="prsdnm"/>
- <col ref="telno"/>
- <col ref="faxno"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.copyNode("/root/main/cmpyinfo", "/root/main/cmpylist/item["+ grd_cmpylist.row+"]");
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption27" class="tit_2" style="left:565px; top:7px; width:155px; height:13px; ">업체 상세정보</caption>
- <line id="line8" class="line_1" style="x1:565px; y1:22px; x2:1192px; y2:22px; "/>
- <caption id="caption26" class="cell_1" style="left:565px; top:27px; width:100px; height:23px; vertical-align:middle; ">업체구분</caption>
- <caption id="caption21" class="cell_1" style="left:565px; top:102px; width:100px; height:23px; vertical-align:middle; ">사업자등록번호</caption>
- <caption id="caption56" class="cell_1" style="left:565px; top:177px; width:100px; height:23px; vertical-align:middle; ">대표자명</caption>
- <caption id="caption28" class="cell_1" style="left:565px; top:127px; width:100px; height:23px; vertical-align:middle; ">우편번호</caption>
- <caption id="caption31" class="cell_1" style="left:565px; top:152px; width:100px; height:23px; vertical-align:middle; ">상세주소</caption>
- <caption id="caption33" class="cell_1" style="left:565px; top:202px; width:100px; height:23px; vertical-align:middle; ">전화번호</caption>
- <caption id="caption65" class="cell_1" style="left:565px; top:226px; width:100px; height:23px; vertical-align:middle; ">팩스번호</caption>
- <caption id="caption30" class="cell_1" style="left:565px; top:251px; width:100px; height:23px; vertical-align:middle; ">비고</caption>
- <input id="input9" ref="/root/main/cmpyinfo/cmpyno" class="input_default" style="left:668px; top:103px; width:100px; height:19px; "/>
- <input id="ipt_prsdnm" ref="/root/main/cmpyinfo/prsdnm" class="input_default" style="left:668px; top:179px; width:100px; height:19px; "/>
- <output id="output3" ref="/root/main/cmpyinfo/zipcd1" class="output_fix" style="left:668px; top:129px; width:42px; height:19px; "/>
- <line id="line6" style="x1:713px; y1:138px; x2:723px; y2:138px; "/>
- <output id="output4" ref="/root/main/cmpyinfo/zipcd2" class="output_fix" style="left:726px; top:129px; width:42px; height:19px; "/>
- <button id="button5" class="icon_search" style="left:773px; top:132px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- zbcfOpenZipCodeList("combination", "", "/root/main/cmpyinfo/zipcd1", "/root/main/cmpyinfo/zipcd2", "/root/main/cmpyinfo/zipcdseq", "/root/main/cmpyinfo/addr", "hangul", "/root/main/cmpyinfo/detladdr");
- ]]>
- </script>
- </button>
- <output id="output5" ref="/root/main/cmpyinfo/addr" class="output_fix" style="left:795px; top:129px; width:396px; height:19px; "/>
- <input id="input7" ref="/root/main/cmpyinfo/detladdr" class="input_default" style="left:668px; top:154px; width:523px; height:19px; "/>
- <input id="input18" ref="/root/main/cmpyinfo/telno" class="input_default" style="left:668px; top:204px; width:100px; height:19px; "/>
- <input id="ipt_faxno" ref="/root/main/cmpyinfo/faxno" class="input_default" style="left:668px; top:227px; width:100px; height:19px; "/>
- <input id="input17" ref="/root/main/cmpyinfo/remcnts" class="input_default" style="left:668px; top:253px; width:523px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:565px; top:77px; width:100px; height:23px; vertical-align:middle; ">업체명</caption>
- <input id="input2" ref="/root/main/cmpyinfo/cmpynm" class="input_essential" style="left:668px; top:78px; width:100px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:566px; top:52px; width:100px; height:23px; vertical-align:middle; ">업체코드</caption>
- <input id="input3" ref="/root/main/cmpyinfo/cmpycd" class="input_essential" disabled="true" style="left:668px; top:53px; width:100px; height:19px; "/>
- <select1 id="combo1" ref="/root/main/cmpyinfo/cmpytype" class="combo_essential" appearance="minimal" style="left:668px; top:28px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/item/test">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </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="caption1" class="search_name" style="left:5px; top:15px; width:89px; height:17px; ">업체구분</caption>
- <button id="button1" class="btn1_letter2" navindex="15" style="left:1140px; top:25px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetList();
- ]]>
- </script>
- </button>
- <select1 id="combo2" ref="/root/send/search/cmpytype" class="combo_essential" appearance="minimal" style="left:90px; top:15px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/item/test">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button2" class="icon_search" navindex="5" style="left:390px; top:15px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCmpyCd("SPZHI00300", "nm", ipt_cmpynm.currentText, "/root/send/search/cmpycd", "/root/send/search/cmpynm");
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:200px; top:15px; width:89px; height:17px; ">업체명</caption>
- <input id="input1" ref="/root/send/search/cmpynm" class="input_search" style="left:270px; top:15px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13){
- btn_cmpy.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="input4" ref="/root/send/search/cmpycd" class="input_search" style="left:410px; top:15px; width:65px; height:19px; "/>
- </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(fSetCmpyinfo()){
- 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(fDelEqmtinfo()){
- fGetList();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|