📄 save.asp
字号:
<!-- #include file = "../../../include/function.asp" -->
<%CheckUser()%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function window_onload() {
if (Exist.value=="1")
{
alert("重复设置,您指定的数据表已有关联关系。");
window.parent.EnableButton();
}
else if (Exist.value=="2")
{
alert("重复设置,子表的关联字段已有关联关系,同一子表字段不允许关联多个主表。");
window.parent.EnableButton();
}
else if (Exist.value=="3")
{
alert("关联字段的数据类型不匹配,这是不允许的,请更正。");
window.parent.EnableButton();
}
else
if (Result.value==0)
window.parent.parent.close()
else
alert("保存失败。");
}
//-->
</SCRIPT>
</HEAD>
<BODY LANGUAGE=javascript onload="return window_onload()">
<%
dim WExcel
set WExcel=server.CreateObject("WExcel.System")
NewRecord=Request.Form("NewRecord")
dim Result
dim Exist
if NewRecord<>"1" then
RowID=Request.Form("RowID")
Exist=WExcel.CheckRelation(cstr(NewRecord),clng(RowID))
if Exist=0 then
Result=WExcel.SaveRelation(cint(UserID),cstr(NewRecord),clng(RowID))
end if
else
Exist=WExcel.CheckRelation(cstr(NewRecord))
if Exist=0 then
Result=WExcel.SaveRelation(cint(UserID),cstr(NewRecord))
end if
end if
CheckErr
%>
<input TYPE="hidden" NAME="Exist" value="<%=Exist%>">
<input TYPE="hidden" NAME="Result" value="<%=Result%>">
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -