SMMNP02200_거래처 기준자료.xrw 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. <init>
  10. <ComboLists>
  11. <deptlist>
  12. <depthngnm/>
  13. <deptcd/>
  14. </deptlist>
  15. </ComboLists>
  16. <hardcodeinfo>
  17. <cdid/>
  18. <cdnm/>
  19. </hardcodeinfo>
  20. </init>
  21. <main>
  22. <custlist>
  23. <custcd/>
  24. <custnm/>
  25. <custdeptcd/>
  26. <custtel/>
  27. <custmail/>
  28. <chargenm/>
  29. <chargetel/>
  30. <memo/>
  31. <histno/>
  32. </custlist>
  33. </main>
  34. <send/>
  35. <hidden/>
  36. </root>
  37. </instance>
  38. <submission id="TRMNP00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/ComboLists"/>
  39. <submission id="TRMNP04903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hardcodeinfo"/>
  40. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. model.removenode("/root/send");
  48. model.makeValue("/root/send/flag" , "X" );
  49. model.makeValue("/root/send/searchitem", "XX" );
  50. model.makeValue("/root/send/deptflag" , "011" );
  51. submit("TRMNP00107", false);
  52. model.removenode("/root/send");
  53. model.makeValue("/root/send/reqdata/cdgrupid", "200");//메모기준자료
  54. model.makeValue("/root/send/reqdata/supcdid", "");//서브구분
  55. model.makeValue("/root/send/reqdata/cdid", "");//서브구분
  56. submit("TRMNP04903", false);
  57. submit("TRMNP02201");
  58. ]]>
  59. </script>
  60. <submission id="TRMNP02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/custlist"/>
  61. <submission id="TXMNP02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/custlist"/>
  62. </model>
  63. </xhtml:head>
  64. <xhtml:body pagewidth="850" pageheight="550" guideline="1,5;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  65. <line id="line1" class="line_1" style="x1:0px; y1:30px; x2:830px; y2:30px; "/>
  66. <!--(20101114) 경북대
  67. <datagrid id="grd_custlist" nodeset="/root/main/custlist" class="datagrid2" caption="거래처&#xA;코드^거래처명^거래과^거래처대표전화^거래처메일^담당직원^담당자전화^MEMO^이력번호" colsep="^" colwidth="70, 120, 70, 110, 136, 60, 115, 100, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:35px; width:830px; height:500px; ">
  68. -->
  69. <datagrid id="grd_custlist" nodeset="/root/main/custlist" class="datagrid2" caption="거래처코드^거래처명^거래과^거래처대표전화^거래처메일^담당직원^담당자전화^MEMO^이력번호" colsep="^" colwidth="80, 120, 70, 151, 185, 60, 115, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:35px; width:830px; height:500px; ">
  70. <!--(20101114) 경북대 -->
  71. <col ref="custcd" style="text-align:center; "/>
  72. <col ref="custnm" style="text-align:center; "/>
  73. <col ref="custdeptcd" type="combo" style="text-align:center; ">
  74. <choices>
  75. <itemset nodeset="/root/init/ComboLists/deptlist">
  76. <label ref="depthngnm"/>
  77. <value ref="deptcd"/>
  78. </itemset>
  79. </choices>
  80. </col>
  81. <col ref="custtel" type="input" style="text-align:center; "/>
  82. <col ref="custmail" type="input" style="text-align:center; "/>
  83. <col ref="chargenm" type="input" style="text-align:center; "/>
  84. <col ref="chargetel" type="input" style="text-align:left; "/>
  85. <col editmode="inputsearch" ref="memo" type="combo" style="text-align:left; ">
  86. <choices>
  87. <itemset nodeset="/root/init/hardcodeinfo">
  88. <label ref="cdnm"/>
  89. <value ref="cdnm"/>
  90. </itemset>
  91. </choices>
  92. </col>
  93. <col ref="histno"/>
  94. </datagrid>
  95. <caption id="caption1" class="tit_2" style="left:0px; top:10px; width:113px; height:13px; ">거래처 기준자료</caption>
  96. <button id="button4" class="btn2_letter5" style="left:627px; top:10px; width:75px; height:19px; ">
  97. <caption>거래처추가</caption>
  98. <script type="javascript" ev:event="DOMActivate">
  99. <![CDATA[
  100. modal("SMMNP04410" ,"", "100", "100", "SMMNP04410", "", "");
  101. var getData = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
  102. if( getData == "") {
  103. return;
  104. }else {
  105. grd_custlist.addRow();
  106. var getDataTemp = getData.split("|");
  107. model.setValue("/root/main/custlist[" + (grd_custlist.rows-1) + "]/custcd" , getDataTemp[0]);
  108. model.setValue("/root/main/custlist[" + (grd_custlist.rows-1) + "]/custnm", getDataTemp[1]);
  109. model.setValue("/root/main/custlist[" + (grd_custlist.rows-1) + "]/custtel", getDataTemp[2]);
  110. model.refresh();
  111. }
  112. ]]>
  113. </script>
  114. </button>
  115. <button id="button1" class="btn5_letter2" style="left:785px; top:10px; width:42px; height:19px; ">
  116. <caption>저장</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. model.removenode("/root/send");
  120. model.makeValue("/root/send/savedata", grd_custlist.getUpdateData());
  121. submit("TXMNP02201");
  122. ]]>
  123. </script>
  124. </button>
  125. <!--(20101114) 경북대
  126. 기능없음
  127. <button id="button2" class="btn2_letter6" style="left:537px; top:10px; width:86px; height:19px; ">
  128. <caption>메모기준자료</caption>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. modal("SMMNP04420" ,"", "100", "100", "SMMNP04420", "", "");
  132. model.removenode("/root/send");
  133. model.makeValue("/root/send/reqdata/cdgrupid", "200");//메모기준자료
  134. model.makeValue("/root/send/reqdata/supcdid", "");//서브구분
  135. model.makeValue("/root/send/reqdata/cdid", "");//서브구분
  136. submit("TRMNP04903");
  137. ]]>
  138. </script>
  139. </button>
  140. -->
  141. <button id="button3" class="btn2_letter5" style="left:706px; top:10px; width:75px; height:19px; ">
  142. <caption>거래처삭제</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. if( grd_custlist.row < 1 ) {
  146. messageBox("삭제할 거래처를 선택하십시요.!", "E000");
  147. return;
  148. }
  149. grd_custlist.rowStatus(grd_custlist.row) = 4;
  150. model.refresh();
  151. ]]>
  152. </script>
  153. </button>
  154. </xhtml:body>
  155. </xhtml:html>