createFilialeCost.jsp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>新增分公司费用</title>
  8. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <link href="${ pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  10. <script type="text/javascript" src="/shares/js/jquery-1.3.2.min.js"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript">
  12. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript" src="/shares/js/file.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/yongfu/common.js"></script>
  17. <script type="text/javascript">
  18. $(function() {
  19. $("#filialectcost_date").ligerDateEditor({
  20. labelWidth : 100,
  21. labelAlign : 'right',
  22. initValue : ''
  23. });
  24. });
  25. function chooseFiliale(o) {
  26. var checkValue = $("#"+o.sid+"").val();
  27. var obj = window.top;
  28. if (obj != undefined && obj != null) {
  29. obj.$.ligerDialog
  30. .open({
  31. url : 'FilialeAction.do?task=listFilialeForLookup',
  32. height : 400,
  33. width : 1000,
  34. title:'选择分公司',
  35. buttons : [
  36. {
  37. text : '确定',
  38. onclick : function(item, dialog) {
  39. var rows = dialog.frame.f_select();
  40. var sids = "", sname = "", sman = "", stel = "";
  41. if(rows.length ==1){
  42. if (rows) {
  43. sids = rows[0].filiale_id;
  44. sname = rows[0].filiale_name;
  45. sman = rows[0].filiale_principal;
  46. stel = rows[0].filiale_principal_phone;
  47. sname = sname == null ? "" : sname;
  48. sman = sman == null ? "" : sman;
  49. stel = stel == null ? "" : stel;
  50. }
  51. if ($("#" + o.sid).length > 0)
  52. $("#" + o.sid).val(sids);
  53. if ($("#" + o.sname).length > 0)
  54. $("#" + o.sname).val(sname);
  55. if ($("#" + o.sman).length > 0)
  56. $("#" + o.sman).val(sman);
  57. if ($("#" + o.stel).length > 0)
  58. $("#" + o.stel).val(stel);
  59. dialog.close();
  60. $(".l-dialog-win").remove();
  61. }else{
  62. obj.$.ligerDialog.warn("请选择一行!");
  63. $(".l-dialog-win").remove();
  64. return;
  65. }
  66. }
  67. }, {
  68. text : '取消',
  69. onclick : function(item, dialog) {
  70. dialog.close();
  71. $(".l-dialog-win").remove();
  72. }
  73. } ],
  74. name : "listDialog"
  75. });
  76. }
  77. }
  78. function checkForm() {
  79. var rs = $.validate({
  80. name : "filialectcost_name",
  81. model : [ {
  82. type : "require",
  83. msg : "分公司名称不能为空!"
  84. }]
  85. });
  86. if(rs){
  87. return true;
  88. }
  89. return false;
  90. }
  91. </script>
  92. </head>
  93. <body>
  94. <form name="addForm" action="CostAction.do" method="post" onsubmit="return checkForm();">
  95. <div id="title" class="form-button">
  96. <input type="submit" id="subBtu" class="l-button" value="保存" />
  97. </div>
  98. <div class="container-layout">
  99. <div class="forum-container">
  100. <center>
  101. <table class="l-table-edit line">
  102. <tr>
  103. <th colspan="2">新增分公司费用</th>
  104. </tr>
  105. <tr>
  106. <td>分公司名称<FONT COLOR="red">*</FONT>:</td>
  107. <td >
  108. <input type="hidden" id="filiale_id" name="filiale_id" value="${requestScope.filialeCost.filiale_id }" >
  109. <input type="text" id="filialectcost_name" name="filialectcost_name" value="${requestScope.filialeCost.filialectcost_name }" size="50">
  110. <input type="button" id="subBtu" class="l-button" value="请选择" onclick="chooseFiliale({sid:'filiale_id',sname:'filialectcost_name',sman:'filialectcost_duty_man',stel:'filialectcost_duty_tel'});" />
  111. </td>
  112. </tr>
  113. <tr>
  114. <td>成立时间:</td>
  115. <td>
  116. <input type="text" id="filialectcost_date" name="filialectcost_date" value="${requestScope.filialeCost.filialectcost_date }" >
  117. </td>
  118. </tr>
  119. <tr>
  120. <td>责任人:</td>
  121. <td>
  122. <input type="text" id="filialectcost_duty_man" name="filialectcost_duty_man" value="${requestScope.filialeCost.filialectcost_duty_man }" >
  123. </td>
  124. </tr>
  125. <tr>
  126. <td>联系电话:</td>
  127. <td>
  128. <input type="text" id="filialectcost_duty_tel" name="filialectcost_duty_tel" value="${requestScope.filialeCost.filialectcost_duty_tel }">
  129. </td>
  130. </tr>
  131. <tr>
  132. <td>备注:</td>
  133. <td>
  134. <input type="text" id="filialectcost_remark" name="filialectcost_remark" value="${requestScope.filialeCost.filialectcost_remark }">
  135. </td>
  136. </tr>
  137. <tr>
  138. <td colspan="2" style="text-align: center;">
  139. &nbsp;
  140. </td>
  141. </tr>
  142. </table>
  143. <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
  144. <input type="hidden" id="filialectcost_id" name="filialectcost_id" value="${requestScope.filialeCost.filialectcost_id }">
  145. <input type="hidden" id="task" name="task" value="createFilialeCost">
  146. </center>
  147. </div>
  148. </div>
  149. </form>
  150. <%@ include file="/include/message.jsp"%>
  151. </body>
  152. </html>