chore: 初始化解放动力大柴MES管理站点

This commit is contained in:
yexingqiang
2026-05-29 13:52:39 +08:00
commit 1aae1cb2d7
164 changed files with 116667 additions and 0 deletions

96
webpage/SQLDemoFile.html Normal file
View File

@@ -0,0 +1,96 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta charset="utf-8" />
<script src="../JS/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
$(function () {
form.reset();
var file;
$("#form").on("change", "#file", function (e) {
console.log(this.value);
//每次选中都保存旧元素,并使用新的控件替换
$(this).clone().replaceAll(file = this);
}).submit(function () {
//提交时把之前保存的旧元素替换回去
$("#file").replaceWith(file);
});
});
function btnTest() {
var SQLJson2 = {
"Type": $("#TYPE").val(),
"Name": $("#NAME").val(),
"Param": $("#PARAM1value").val(),
"Pagination": $("#Pagination").val(),
"UserID": $("#NAME").val(),
HasReturn: $("#HASRETURN").get(0).checked
}
$.ajax({
url: $("#URL").val(),
type: 'POST',
contentType: "application/json; charset=utf-8",
dataType: 'json',
data: JSON.stringify(SQLJson2),
success: function (data) {
$("#testResult").text(JSON.stringify(data));
},
error: function (data) {
}
});
}
</script>
<style>
.td{
width:400px;
}
input{
width:100%;
}
</style>
</head>
<body>
<form id="form">
<input type="file" name="file" id="file">
<input type="submit" />
</form>
<table style="width:600px;">
<tr>
<td>URL:</td>
<td class=".td"><input id="URL" type="text" value="../submit/MESCommonBase.ashx" /></td>
</tr>
<tr>
<td>TYPE:</td>
<td class=".td"><input id="TYPE" type="text" />(1 表示 执行存储过程 2 表示执行sql语句)</td>
</tr>
<tr>
<td>NAME:</td>
<td class=".td"><input id="NAME" type="text" />存储过程或者sql语句的名称</td>
</tr>
<tr>
<td>PARAM: </td>
<td class=".td"><input id="PARAM1value" type="text" />存储过程或者sql的语句的参数</td>
</tr>
<tr>
<td>Pagination: </td>
<td class=".td"><input id="Pagination" type="text" />(分页的参数)</td>
</tr>
<tr>
<td>返回值: <input style="display:inline" id="HASRETURN" type="checkbox" checked="checked" /></td>
<td></td>
</tr>
<tr>
<td><input type="button" onclick="btnTest()" value="testBtn" /></td>
</tr>
<tr style="height:400px;">
<td style="height:100%;" colspan="2">返回数据:<textarea id="testResult" style="width:100%;height:90%;" rows="30" cols="20"></textarea></td>
</tr>
</table>
</body>
</html>