SMAGA00100_거래처관리.xrw 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>거래처 마스터 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <dpcminfo>
  11. <dpcmcust>
  12. <custnm/>
  13. <perchgr/>
  14. <cntctel/>
  15. <faxno/>
  16. <mpphontel/>
  17. <email/>
  18. <auttrsmflag/>
  19. <custcd/>
  20. <suppdeptcd/>
  21. <instcd/>
  22. <trsmtrid/>
  23. <useyn/>
  24. </dpcmcust>
  25. </dpcminfo>
  26. </main>
  27. <send>
  28. <custnm/>
  29. <globalinstance>
  30. <instance1/>
  31. </globalinstance>
  32. <req>
  33. <data/>
  34. </req>
  35. </send>
  36. <hidden>
  37. <item/>
  38. </hidden>
  39. </root>
  40. </instance>
  41. <submission id="TRAGA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dpcminfo"/>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. aezfSetSuppDeptcd();
  45. model.removeNodeset("/root/main/dpcminfo/dpcmcust");
  46. submit("TRAGA00101");
  47. // model.removenode("/root/main/dpcminfo/dpcmcust");
  48. model.refresh();
  49. ]]>
  50. </script>
  51. <submission id="TRZBC00101"/>
  52. <submission id="TXAGA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  53. </model>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  57. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  58. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  59. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  60. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  61. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  62. </xhtml:head>
  63. <xhtml:body guideline="1,1197;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  64. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  65. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  66. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  67. <line id="line13" class="line_4" style="x1:1112px; y1:7px; x2:1112px; y2:29px; "/>
  68. <button id="btn_sea" class="btn1_letter2" style="left:1128px; top:7px; width:56px; height:22px; ">
  69. <caption>조회</caption>
  70. <script type="javascript" ev:event="DOMActivate">
  71. <![CDATA[
  72. model.removeNodeset("/root/main/dpcminfo/dpcmcust");
  73. submit("TRAGA00101");
  74. model.refresh();
  75. ]]>
  76. </script>
  77. </button>
  78. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">거래처명 :</caption>
  79. <input id="input1" ref="/root/send/custnm" style="left:105px; top:8px; width:165px; height:19px; ">
  80. <script type="javascript" ev:event="onkeydown">
  81. <![CDATA[
  82. inputEnterKey("btn_sea", "DOMActivate");
  83. ]]>
  84. </script>
  85. </input>
  86. </group>
  87. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">거래처 마스터 현황</caption>
  88. <line id="line1" class="line_1" style="x1:3px; y1:73px; x2:1194px; y2:74px; "/>
  89. <button id="button3" class="btn2_letter4" style="left:1015px; top:50px; width:64px; height:19px; ">
  90. <caption>엑셀저장</caption>
  91. <script type="javascript" ev:event="DOMActivate">
  92. <![CDATA[
  93. var file = window.fileDialog("save", "", "true", "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  94. if(file != "") {
  95. datagrid1.saveExcel(file);
  96. }
  97. ]]>
  98. </script>
  99. </button>
  100. <button id="btn_grdadd" class="btn2_letter3" style="left:1086px; top:50px; width:53px; height:19px; ">
  101. <caption>행추가</caption>
  102. <script type="javascript" ev:event="DOMActivate">
  103. <![CDATA[
  104. datagrid1.addRow();
  105. model.setValue("/root/main/dpcminfo/dpcmcust[" + datagrid1.row + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  106. model.refresh();
  107. ]]>
  108. </script>
  109. </button>
  110. <button id="btn_grddel" class="btn2_letter3" disabled="false" style="left:1142px; top:50px; width:53px; height:19px; ">
  111. <caption>행삭제</caption>
  112. <script type="javascript" ev:event="DOMActivate">
  113. <![CDATA[
  114. deleteSelectedRows(datagrid1, true);
  115. ]]>
  116. </script>
  117. </button>
  118. <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; ">
  119. <col ref="custnm" type="input"/>
  120. <col ref="perchgr" type="input"/>
  121. <col ref="cntctel" type="input"/>
  122. <col ref="faxno" type="input"/>
  123. <col ref="mpphontel" type="input" maxlength="11"/>
  124. <col ref="email" type="input"/>
  125. <col checkvalue="1,0" ref="auttrsmflag" type="checkbox"/>
  126. <col ref="custcd" visibility="hidden"/>
  127. <col ref="suppdeptcd" visibility="hidden"/>
  128. <col ref="instcd" visibility="hidden"/>
  129. <col ref="trsmtrid" visibility="hidden"/>
  130. <col ref="useyn" visibility="hidden"/>
  131. </datagrid>
  132. </group>
  133. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  134. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  135. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:4px; width:56px; height:22px; ">
  136. <caption>저장</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. for (var i = 1; i < datagrid1.rows; i ++){
  140. if (model.getValue("/root/main/dpcminfo/dpcmcust[" + i + "]/custnm") == ""){
  141. messageBox(i + "번째 거래처명이 입력되지 않았습니다.", "E999", "");
  142. return;
  143. }
  144. }
  145. if ( messageBox("", "Q002")==6 ) {
  146. var update = getGridUpdateData(datagrid1);
  147. if(update ==""){
  148. messageBox("업데이트 정보가 없습니다.", "l");
  149. return 0;
  150. }else {
  151. model.setValue("/root/send/req/data", update);
  152. if (submit("TXAGA00101")){
  153. btn_sea.dispatch("DOMActivate");
  154. }
  155. }
  156. }
  157. ]]>
  158. </script>
  159. </button>
  160. </group>
  161. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  162. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:144px; height:14px; ">거래처 마스터 관리</caption>
  163. </group>
  164. </xhtml:body>
  165. </xhtml:html>