<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OA_WageProcessAdd.aspx.cs" Inherits="CY.WebForm.Pages.personnel.OA_WageProcessAdd" %>
|
|
<!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 CheckParName() {
|
var IsCanSubmit = undefined;
|
var Name = $.trim($("#txtParName").val());
|
if (Name != "") {
|
$.ajax({
|
url: "/Pages/common/CommonAjax.aspx",
|
type: "POST",
|
dataType: "html",
|
data: { dateType: "WageProcessCheckName", 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;
|
}
|
}
|
return true;
|
}
|
|
$(function () {
|
$("#txtParName").blur(function () {
|
CheckParName();
|
});
|
});
|
</script>
|
</head>
|
<body>
|
<%--<textarea id="txtExaminedRecore" runat="server" style="width: 370px; height: 50px;" class=""></textarea>--%>
|
<form id="form1" class="form2" runat="server">
|
<div>
|
<table class="tableStyle" style="margin: 10px auto; line-height:30px;" cellpadding="0" cellspacing="0">
|
<tr>
|
<td class="ali03 w100px">
|
名称:
|
</td>
|
<td>
|
<input id="txtParName" type="text" class="w100px req" runat="server" msg="请填写工序名称" />
|
</td>
|
</tr>
|
<tr>
|
<td colspan="2" style="text-align: center;">
|
<asp:Button ID="btn_submit" runat="server" OnClick="btn_submit_form" Text="提交" OnClientClick="if(CheckParName())return true;else return false; " />
|
</td>
|
</tr>
|
</table>
|
</div>
|
</form>
|
</body>
|
</html>
|