This commit is contained in:
hanjian
2024-08-14 15:17:51 +08:00
parent 20a221c1a2
commit b610f94b2e
3483 changed files with 650965 additions and 0 deletions

View File

@@ -0,0 +1,120 @@
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>创建模型</title>
<script>
$(document).ready(function() {
$.Tipmsg.r=null;
$("#modelForm").Validform({
tiptype:function(msg){
alert(msg);//验证提示信息
},
tipSweep:true,
datatype:{
"zh1-10":/^[\u4E00-\u9FA5\uf900-\ufa2d\a-zA-Z_]{1}[\u4E00-\u9FA5\uf900-\ufa2d\a-zA-Z_0-9()-]{1,20}$/,
"en1-10":/^[a-zA-Z_]{1}[a-zA-Z_0-9]{1,20}$/
},
btnSubmit:"#submitButton",//提交按钮
callback:submitForm//验证通过后提交函数
});
//$('#key').keyup(trimkeyup);
});
function submitForm(){
try{
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type: "POST",
url: "${ctx}/procModelMgr/copy.do",
data: $('#modelForm').serialize(),
success: function(result)
{
alert(result);
if(result=="操作成功"){
art.dialog.opener.location.reload();
}
}
});
}catch(e){}
return false;
}
</script>
</head>
<body>
<form action="${ctx}/procModelMgr/copy.do" method="post" id="modelForm">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放表单的区域 -->
<input type="hidden" name="modelId" value="${modelData.id}" id="modelId" class="validate[required,length[0,100]]"/>
<tr>
<td>
模型名称<font color="red">*</font>
</td>
<td>
<input type="text" style="width:300px" name="name" value="${modelData.name}" id="name"
datatype="zh1-10" errormsg="模型名称不能以数字开头,且不能包括空格,请您重新填写!" nullmsg="请您填写模型名称"
class="validate[required,length[0,100]]"/>
</td>
</tr>
<tr>
<td>
模型KEY<font color="red">*</font>
</td>
<td>
<input type="text" name="key" style="width:300px" value="" id="key"、
datatype="en1-10" errormsg="模型KEY不能以数字开头且不能包括空格和汉字请您重新填写!"
nullmsg="请您填写模型KEY"
class="validate[length[0,100]]"
onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"/>
</td>
</tr>
<tr>
<td>
模型描述:
</td>
<td>
<textarea id="description" name="description" style="width:300px;height: 50px;"
></textarea>
</td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<!-- <input type="button" onclick="copyModel();"
class="btn btn-sm btn-primary"
id="submitButton" value="保 存"/>-->
<button type="button"
class="btn btn-sm btn-primary"
id="submitButton">
保 存
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
</div>
</div>
</div>
</div>
</form>
</body>
</html>