username@email.com
2025-10-09 b63e4e9f97aba58867a01b85e7d128b6eb738a0a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShebeimanageEdit.aspx.cs" Inherits="CY.WebForm.Pages.Property.ShebeimanageEdit" %>
 
<!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: "shebeiNamecheckname", 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;" cellpadding="0" cellspacing="0">
            <tr>
                <td class="ali03">
                    设备类型:
                </td>
                <td>
                    <select id="selCateId" runat="server" keepdefaultstyle="true">
                        <option value="">请选择</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="ali03">
                    设备名称:
                </td>
                <td>
                    <input id="txtCarNumber" style="width: 100px;" type="text" runat="server" class="req" maxlength="50" />
                </td>
            </tr>
            <tr>
                <td class="ali03">
                    设备价值:
                </td>
                <td>
                    <input id="txtPrice" class="float req" style="width: 100px;" type="text" runat="server" />
                </td>
            </tr>
         
             <tr>
                <td class="ali03">
                    安装地点:
                </td>
                <td>
                     <select id="selAnzhuangdidian" runat="server" keepdefaultstyle="true">
                              <option value="一车间">一车间</option>
                              <option value="二车间">二车间</option>
                              <option value="三车间">三车间</option>
                              <option value="智能车间">智能车间</option>
                              <option value="公司汽车">公司汽车</option>
                              <option value="成都公司">成都公司</option>
                                    <option value="其他车间">其他车间</option>
                        </select>
                </td>
            </tr>
                <tr>
                <td class="ali03">
                    启用日期:
                </td>
                <td>
                   <input id='txtQiyongTime' class='date req' runat="server" />
                </td>
            </tr>
            <tr>
                <td class="ali03">
                    责任人:
                </td>
                <td >
                    <select id="selZerenren" runat="server" keepdefaultstyle="true">
                        <option value="">请选择</option>
                    </select>
                </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>