📄 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("选项字典重名。系统中已有相同名称的选项字典,请更改后再保存。");
else
{
if (Result.value==0)
window.parent.parent.close()
else if (Result.value==3)
alert("选项字典太多,已超出 200 个,无法创建新选项字典。");
else
alert("保存失败。");
}
window.parent.EnableButton();
}
//-->
</SCRIPT>
</HEAD>
<BODY LANGUAGE=javascript onload="return window_onload()">
<%
dim WExcel
set WExcel=server.CreateObject("WExcel.System")
dim Exist,Result
NewRecord=Request.Form("NewRecord")
if NewRecord<>"1" then
RowID=Request.Form("RowID")
Exist=WExcel.CheckDictExist(cstr(NewRecord),clng(RowID))
if Exist<>"1" then
Result=WExcel.SaveDictCaption(cint(UserID),cstr(NewRecord),clng(RowID))
end if
else
Exist=WExcel.CheckDictExist(cstr(NewRecord))
if Exist<>"1" then
Result=WExcel.SaveDictCaption(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 + -