| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>创建表单</title>
- <link href="${ pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/yw/erp/orderFormSetting.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- // loadTypeTree("v_dept_button",{type:"deptsingle", tab:"1", backId:"v_dept", backName:"groupname"});
- var n_type = "${requestScope.orderFormSetting.n_type}";
- if(n_type != null && n_type != ""){
- $('input:radio[name="n_type"][value="'+n_type+'"]').attr("checked",true);
- } else {
- $('input:radio[name="n_type"][value="0"]').attr("checked",true);
- }
-
- var n_reset_type = "${requestScope.orderFormSetting.n_reset_type}";
- $("#n_reset_type").val(n_reset_type);
- $("#ylbutton").click(function(){
-
- var yl = "";
-
- var rs = $.validate({
- name : "v_layout",
- model : [ {
- type : "require",
- msg : "前缀定义不能为空!"
- }
- ]
- }) ;
-
- rs = $.validate({
- name : "n_digits",
- model : [ {
- type : "require",
- msg : "编码位数不能为空!"
- }, {
- type : "isNumber",
- msg : "编码位数必须为数字!"
- },{
- type:"size",
- min:'4',
- msg:"位数最小值不能小于4!"
- },{
- type:"size",
- max:'50',
- msg:"位数最大值不能大于50!"
- }
- ]
- }) && rs ;
-
- if(rs){
- yl += $("#v_layout").val();
- var n_digits = $("#n_digits").val();
- var n_type1 = $('input:radio[name="n_type"]:checked').val();
-
- if(n_type1 == "3"){
- yl += "2012";
- } else if(n_type1 == "2"){
- yl += "201201";
- } else if(n_type1 == "1"){
- yl += "20120101";
- }
-
- n_digits = n_digits - 1;
- for(var i=0; i<n_digits; i++){
- yl += "0";
- }
- yl+="1";
- $("#yl").text(yl);
- }
-
- });
- $("#n_reset_type").ligerComboBox();
- });
- </script>
- </head>
- <body>
- <form action="orderFormSettingAction.do" method="post" onsubmit="return checkForm();">
- <div id="title" class="form-button">
- <input type="submit" class="l-button" value="保存" />
- <input onclick="closeWindow();" type="button" value="关闭" class="l-button">
- </div>
- <div class="container-layout">
- <div class="forum-container">
-
- <center>
- <table class="l-table-edit line">
- <tr>
- <th colspan="2">修改单号编号设置</th>
- </tr>
- <tr>
- <td class="l-table-edit-text">单据编号名称<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" class="width_150" id="order_form_name" name="order_form_name" value="${requestScope.orderFormSetting.order_form_name }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">备注:</td>
- <td class="l-table-edit-td">
- <textarea id="v_remark" name="v_remark" rows="5" cols="50">${requestScope.orderFormSetting.v_remark }</textarea>
- </td>
- </tr>
- <!-- <tr> -->
- <!-- <td class="l-table-edit-text">所属单位<FONT COLOR="red">*</FONT>:</td> -->
- <!-- <td class="l-table-edit-td"> -->
- <%-- <input type="text" class="width_150" id="groupname" name="groupname" value="${requestScope.orderFormSetting.groupname }"> --%>
- <%-- <input type="hidden" id="v_dept" name="v_dept" value="${requestScope.orderFormSetting.v_dept }"> --%>
- <!-- <input type="button" class="l-button" id="v_dept_button" name="v_dept_button" value="选择单位"> -->
- <!-- </td> -->
- <!-- </tr> -->
- <tr>
- <td class="l-table-edit-text">流水号模式<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="radio" id="n_type" name="n_type" value="0">无
- <input type="radio" id="n_type" name="n_type" value="1">年月日(20120101)
- <input type="radio" id="n_type" name="n_type" value="2">年月(201201)
- <input type="radio" id="n_type" name="n_type" value="3">年(2012)
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">重置计数方式<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <select name="n_reset_type" class="width_150" id="n_reset_type" >
- <c:forEach items="${requestScope.n_reset_types }" var="n_state">
- <option value="${n_state.dvalue }" >${n_state.dname }</option>
- </c:forEach>
- </select>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">单据编号前缀定义<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" class="width_150" id="v_layout" name="v_layout" value="${requestScope.orderFormSetting.v_layout }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">单据编号编码位数<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" class="width_150" id="n_digits" name="n_digits" value="${requestScope.orderFormSetting.n_digits }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">预览:</td>
- <td class="l-table-edit-td">
- <label id="yl" name="yl"></label>
- <input type="button" id="ylbutton" class="l-button" value="点击预览">
- </td>
- </tr>
- <tr>
- <td colspan="2" style="text-align: center;">
-
- </td>
- </tr>
- </table>
- <input type="hidden" id="order_form_id" name="order_form_id" value="${requestScope.orderFormSetting.order_form_id }">
- <input type="hidden" id="task" name="task" value="edit">
- <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
- <input type="hidden" id="v_dept" name="v_dept" value="${requestScope.orderFormSetting.v_dept }">
- </center>
- </div>
- </div>
- </form>
- <%@ include file="/include/message.jsp"%>
- </body>
- </html>
|