<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PropertyCateEdit.aspx.cs" Inherits="CY.WebForm.Pages.Property.PropertyCateEdit" %>
|
|
<!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 id="Head1" runat="server">
|
<title>行政物品分类</title>
|
<uc:CMSHead ID="CMSHead1" runat="server" />
|
<script type="text/javascript">
|
function CheckStaff() {
|
var IsCanSubmit = undefined;
|
var Name = $.trim($("#txtCarNumber").val());
|
if (Name != "") {
|
$.ajax({
|
url: "/Pages/common/CommonAjax.aspx",
|
type: "POST",
|
dataType: "html",
|
data: { dateType: "propertycheckname", name: Name, keyid: '<%=Request["keyid"] %>' },
|
global: false,
|
cache: false,
|
async: false,
|
success: function (data) {
|
if (data == "1") {
|
IsCanSubmit = false;
|
} else {
|
IsCanSubmit = true;
|
}
|
}
|
});
|
if (!IsCanSubmit) {
|
alertMsg("此分类已存在,如有相同,请注意区分添加");
|
return false;
|
}
|
} else {
|
alertMsg("请填写分类名称");
|
return false;
|
}
|
return true;
|
}
|
|
$(function () {
|
$("#txtCarNumber").blur(function () {
|
CheckStaff();
|
});
|
});
|
</script>
|
</head>
|
<body>
|
<form id="form1" class="form2" runat="server">
|
<div>
|
<table class="tableStyle" style="margin: 10px auto; line-height:40px;" cellpadding="0" cellspacing="0">
|
<tr>
|
<td class="ali03">
|
分类名称:
|
</td>
|
<td>
|
<input id="txtCarNumber" style="width: 100px;" type="text" runat="server" />
|
</td>
|
</tr>
|
<tr>
|
<td colspan="2" style="text-align: center;">
|
<asp:Button ID="btn_submit" runat="server" OnClick="btn_submit_form" OnClientClick="if(CheckStaff())return true;else return false; " Text="提交" />
|
</td>
|
</tr>
|
</table>
|
</div>
|
</form>
|
</body>
|
</html>
|