You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
3.1 KiB
Plaintext
96 lines
3.1 KiB
Plaintext
11 months ago
|
<!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">
|
||
|
<head>
|
||
|
<title>信息编辑</title>
|
||
|
<script src="../../Scripts/easyUI145/jquery.min.js" type="text/javascript"></script>
|
||
|
<script src="../../Scripts/config.js" type="text/javascript"></script>
|
||
|
<script src="../../Comm/Gener.js" type="text/javascript"></script>
|
||
|
<script src="../../Scripts/QueryString.js" type="text/javascript"></script>
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
$(function () {
|
||
|
|
||
|
var mypk = GetQueryString("MyPK");
|
||
|
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_AttrFlow");
|
||
|
handler.AddUrlData(); //加入url的参数.
|
||
|
//执行方法返回string数据.
|
||
|
var data = handler.DoMethodReturnString("EditTrackDtl_Init");
|
||
|
|
||
|
if (data.indexOf("WorkCheck@") != -1) {
|
||
|
var val = data.replace('null', '').split("WorkCheck@");
|
||
|
if (val.length == 2)
|
||
|
data = val[1];
|
||
|
else {
|
||
|
data = "";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if (data.indexOf('err@') == 0) {
|
||
|
alert(data); //如果是异常,就提提示.
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
$("#TB_Msg").val(data);
|
||
|
|
||
|
});
|
||
|
|
||
|
function Delete() {
|
||
|
if (window.confirm('您确定要删除吗?') == false)
|
||
|
return;
|
||
|
|
||
|
var mypk = GetQueryString("MyPK");
|
||
|
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_AttrFlow");
|
||
|
handler.AddUrlData();
|
||
|
var data = handler.DoMethodReturnString("EditTrackDtl_Delete");
|
||
|
|
||
|
if (data.indexOf('err@') == 0) {
|
||
|
alert(data); //如果是异常,就提提示.
|
||
|
return;
|
||
|
}
|
||
|
alert("删除成功.");
|
||
|
window.close(); //
|
||
|
}
|
||
|
|
||
|
function Save() {
|
||
|
|
||
|
var msg = $("#TB_Msg").val(); //获得页面数据.
|
||
|
if (msg == "" || msg == undefined || msg == null) {
|
||
|
alert("办理情况不能为空");
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_AttrFlow");
|
||
|
handler.AddUrlData(); //增加url里面的参数.
|
||
|
handler.AddPara("Msg", msg); //加入指定的参数.
|
||
|
//执行方法返回执行结果.
|
||
|
var data = handler.DoMethodReturnString("EditTrackDtl_Save");
|
||
|
if (data.indexOf('err@') == 0) {
|
||
|
alert(data); //如果是异常,就提提示.
|
||
|
return;
|
||
|
}
|
||
|
alert("保存成功");
|
||
|
window.close(); //
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<table id="Table1" style="width:90%;">
|
||
|
<tr>
|
||
|
<td>
|
||
|
<textarea type="text" id="TB_Msg" style="width:100%;">
|
||
|
</textarea>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>
|
||
|
<button onclick="Save()"> 保存</button>
|
||
|
<button onclick="Delete()"> 删除</button>
|
||
|
|
||
|
</th>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
</body>
|
||
|
</html>
|