123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" 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">
- <xhtml:head>
- <xhtml:title>거래처 마스터 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <dpcminfo>
- <dpcmcust>
- <custnm/>
- <perchgr/>
- <cntctel/>
- <faxno/>
- <mpphontel/>
- <email/>
- <auttrsmflag/>
- <custcd/>
- <suppdeptcd/>
- <instcd/>
- <trsmtrid/>
- <useyn/>
- </dpcmcust>
- </dpcminfo>
- </main>
- <send>
- <custnm/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <req>
- <data/>
- </req>
- </send>
- <hidden>
- <item/>
- </hidden>
- </root>
- </instance>
- <submission id="TRAGA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dpcminfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
- model.removeNodeset("/root/main/dpcminfo/dpcmcust");
- submit("TRAGA00101");
- // model.removenode("/root/main/dpcminfo/dpcmcust");
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TXAGA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1197;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1112px; y1:7px; x2:1112px; y2:29px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1128px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/dpcminfo/dpcmcust");
- submit("TRAGA00101");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">거래처명 :</caption>
- <input id="input1" ref="/root/send/custnm" style="left:105px; top:8px; width:165px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_sea", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">거래처 마스터 현황</caption>
- <line id="line1" class="line_1" style="x1:3px; y1:73px; x2:1194px; y2:74px; "/>
- <button id="button3" class="btn2_letter4" style="left:1015px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save", "", "true", "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if(file != "") {
- datagrid1.saveExcel(file);
- }
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1086px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid1.addRow();
- model.setValue("/root/main/dpcminfo/dpcmcust[" + datagrid1.row + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" disabled="false" style="left:1142px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(datagrid1, true);
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/main/dpcminfo/dpcmcust" caption="거래처명^담당자^전화번호^FAX^핸드폰^E-mail^핸드폰전송여부^거래처코드^지원부서코드^caption1^caption2^caption3" colsep="^" colwidth="328, 113, 125, 125, 125, 223, 109, 80, 80, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:1195px; height:655px; font-weight:bold; ">
- <col ref="custnm" type="input"/>
- <col ref="perchgr" type="input"/>
- <col ref="cntctel" type="input"/>
- <col ref="faxno" type="input"/>
- <col ref="mpphontel" type="input" maxlength="11"/>
- <col ref="email" type="input"/>
- <col checkvalue="1,0" ref="auttrsmflag" type="checkbox"/>
- <col ref="custcd" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="trsmtrid" visibility="hidden"/>
- <col ref="useyn" visibility="hidden"/>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- for (var i = 1; i < datagrid1.rows; i ++){
- if (model.getValue("/root/main/dpcminfo/dpcmcust[" + i + "]/custnm") == ""){
- messageBox(i + "번째 거래처명이 입력되지 않았습니다.", "E999", "");
- return;
- }
- }
-
- if ( messageBox("", "Q002")==6 ) {
- var update = getGridUpdateData(datagrid1);
- if(update ==""){
- messageBox("업데이트 정보가 없습니다.", "l");
- return 0;
-
- }else {
- model.setValue("/root/send/req/data", update);
- if (submit("TXAGA00101")){
- btn_sea.dispatch("DOMActivate");
- }
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:144px; height:14px; ">거래처 마스터 관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|