• IE6 Select控件挡住DIV内容解决办法


    前言:最近在开发系统的时候,碰到有一个信息提示插件在IE6 div内容会被select控件挡住,试了各个方法,最后用jquery的bgiframe解决,因为有多个页面引用了这个插件,所以我直接在信息提示插件脚本里加入了bgiframe的源代码。

    完整的信息提示插件脚本如下:

    ;(function($){
        jQuery.fn.extend({
            showTip:function(settings)
            {
                $(this).each(function(){
                    //初始化配置信息
                    var options = jQuery.extend({
                        flagCss:"tip",
                        flagWidth:$(this).outerWidth(),
                        flagInfo:$(this).attr("title"),
                        isAnimate:false
                    },
                    settings);
                    if(!options.flagInfo)
                    {
                        return;
                    }
                    $(this).removeAttr("title");
                    $(this).focus(function(){
                        //设置提示信息最小宽度为163
                        options.flagWidth = (parseInt(options.flagWidth) < 100) ? 363 : parseInt(options.flagWidth);
                        var oTip = $("<div class='ui-slider-tooltip  ui-corner-all'></div>");
                        var oPointer = $("<div class='ui-tooltip-pointer-down'><div class='ui-tooltip-pointer-down-inner'></div></div>");
                        var oTipInfo = $("<div>" + options.flagInfo + "</div>").attr("class", options.flagCss).css("width", options.flagWidth + "px");                   
                        //合并提示信息
                        var oToolTip = $(oTip).append(oTipInfo).append(oPointer);
                       
                        //添加淡入效果
                        if(options.isAnimate)
                        {
                            $(oToolTip).fadeIn("slow");
                        }
                        $(this).after(oToolTip);
                       
                        //计算提示信息的top、left和width
                        var position = $(this).position();
                        var oTipTop = eval(position.top - $(oTip).outerHeight() - 8);
                        var oTipLeft = position.left;
                        $(oToolTip).css("top" , oTipTop + "px").css("left" , oTipLeft + "px");
                        $(oTip).bgiframe();/**在原有的插件代码里添加这句就可以解决IE6的BUG**/
                        $(this).blur(function(){
                            $(oToolTip).remove();
                        });
                    });
                });
                return this;
            }
        })
    })(jQuery);
    (function($) {

        $.fn.bgiframe = ($.browser.msie && /msie 6\.0/i.test(navigator.userAgent) ? function(s) {
            s = $.extend({
                top: 'auto', // auto == .currentStyle.borderTopWidth
                left: 'auto', // auto == .currentStyle.borderLeftWidth
                'auto', // auto == offsetWidth
                height: 'auto', // auto == offsetHeight
                opacity: true,
                src: 'javascript:false;'
            }, s);
            var html = '<iframe class="bgiframe"frameborder="0"tabindex="-1"src="' + s.src + '"' +
                       'style="display:block;position:absolute;z-index:-1;' +
                           (s.opacity !== false ? 'filter:Alpha(Opacity=\'0\');' : '') +
                           'top:' + (s.top == 'auto' ? 'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')' : prop(s.top)) + ';' +
                           'left:' + (s.left == 'auto' ? 'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')' : prop(s.left)) + ';' +
                           '' + (s.width == 'auto' ? 'expression(this.parentNode.offsetWidth+\'px\')' : prop(s.width)) + ';' +
                           'height:' + (s.height == 'auto' ? 'expression(this.parentNode.offsetHeight+\'px\')' : prop(s.height)) + ';' +
                    '"/>';
            return this.each(function() {
                if ($(this).children('iframe.bgiframe').length === 0)
                    this.insertBefore(document.createElement(html), this.firstChild);
            });
        } : function() { return this; });

        // old alias
        $.fn.bgIframe = $.fn.bgiframe;

        function prop(n) {
            return n && n.constructor === Number ? n + 'px' : n;
        }

    })(jQuery);

    页面代码:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="DeviceAdd.aspx.cs" Inherits="device_DeviceAdd1" %>

    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
    <!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>
        <base target="_self"></base>
        <link href="../css/MasterPage.css" type="text/css" rel="stylesheet" />
        <link rel="stylesheet" href="../css/validator.css" />
        <link rel="Stylesheet" href="../css/ButtonStyleSheet.css" />
        <style type="text/css">
            .style15
            {
                height: 17px;
            }
            .style16
            {
                200px;
            }
            .style17
            {
                height: 17px;
                200px;
            }
            .style18
            {
                160px;
            }
            .style27
            {
                85px;
            }
            .style29
            {
                85px;
                height: 17px;
            }
            .style31
            {
                85px;
                height: 24px;
            }
            .style32
            {
                200px;
                height: 24px;
            }
            .style35
            {
                176px;
                height: 24px;
            }
            .style39
            {
                85px;
                height: 20px;
            }
            .style40
            {
                200px;
                height: 20px;
            }
            .style42
            {
                height: 20px;
                176px;
            }
            .style49
            {
                176px;
                height: 17px;
            }
            .style52
            {
                height: 24px;
                71px;
            }
            .style54
            {
                height: 20px;
                71px;
            }
            .style61
            {
                height: 14px;
                71px;
            }
            .style63
            {
                85px;
                height: 14px;
            }
            .style64
            {
                height: 14px;
                200px;
            }
            .style65
            {
                height: 14px;
            }
            .style67
            {
                height: 10px;
            }
            .style70
            {
                height: 10px;
                176px;
            }
            .style71
            {
                71px;
            }
            .style72
            {
                height: 10px;
                71px;
            }
            .style73
            {
                height: 14px;
                176px;
            }
            .autocomplete_completionListElement
            {
                border: 1px solid #090;
                list-style-type: none;
                margin: 0px;
                background-color: #FFF;
                text-align: left;
                font-size: small;
            }
            .autocomplete_completionListElement li
            {
                padding: 2px 5px;
            }
            .autocomplete_listItem
            {
                color: #999;
            }
            .autocomplete_highlightedListItem
            {
                background-color: #F0FFF8;
            }
        </style>
        <link rel="stylesheet" type="text/css" href="../css/jquery.autocomplete.css" />
        <link rel="stylesheet" type="text/css" href="../css/tooltip.css" />

        <script src="../jscript/jquery-1.3.2.js" type="text/javascript"></script>

        <script type="text/javascript" src="../jscript/tooltip.js"></script>/**信息提示插件**/

        <script type='text/javascript' src='../jscript/jquery.autocomplete.js'></script>

        <script language="javascript" src="../jscript/StringTools.js" type="text/javascript"></script>

        <script language="javascript" src="../jscript/formValidator.js" type="text/javascript"></script>

        <script language="javascript" src="../jscript/formValidatorRegex.js" type="text/javascript"></script>

        <script language="javascript" src="../jscript/DateTimeMask.js" type="text/javascript"></script>

        <script language="javascript" src="../jscript/datepicker/WdatePicker.js" type="text/javascript"></script>

        <script language="javascript" type="text/javascript">
            $(document).ready(function() {
                var now = new Date();
                var today = now.getYear() + "-" + (now.getMonth() + 1) + "-" + now.getDate() + " " + now.toLocaleTimeString();
                $.formValidator.initConfig({ autotip: true, onerror: function(msg) { alert(msg) } });
                $("#TextBoxccdate").focus(function() { WdatePicker({ skin: 'whyGreen', dateFmt: 'yyyy-MM-dd', oncleared: function() { $(this).blur(); }, onpicked: function() { $(this).blur(); } }) }).formValidator({ onshow: "", onfocus: "", oncorrect: "" }).inputValidator({ min: "1900-01-01 00:00:00", max: today, type: "longdate", onerror: "日期必须在\"1900-01-01\"和\"'" + today + "'\"之间" }); //.defaultPassed();
                $("#TextBoxbuydate").focus(function() { WdatePicker({ skin: 'whyGreen', dateFmt: 'yyyy-MM-dd', oncleared: function() { $(this).blur(); }, onpicked: function() { $(this).blur(); } }) }).formValidator({ onshow: "", onfocus: "", oncorrect: "" }).inputValidator({ min: "1900-01-01 00:00:00", max: today, type: "date", onerror: "日期必须在\"1900-01-01\"和\"'" + today + "'\"之间" }); //.defaultPassed();
                $("#TextBoxusedate").focus(function() { WdatePicker({ skin: 'whyGreen', dateFmt: 'yyyy-MM-dd', oncleared: function() { $(this).blur(); }, onpicked: function() { $(this).blur(); } }) }).formValidator({ onshow: "", onfocus: "", oncorrect: "" }).inputValidator({ min: "1900-01-01 00:00:00", max: today, type: "date", onerror: "日期必须在\"1900-01-01\"和\"'" + today + "'\"之间" }); //.defaultPassed();

            }
            );

            //        $(function() { //给页面全部select加title属性
            //            $("select option").each(function() {
            //                $(this).attr("title", $(this).text())
            //            });
            //        });

            $(document).ready(function() {
                //所有的Input同意添加tooltip
                //$("input").showTip();
                $("#TextBoxnote").showTip({ flagInfo: "备注格式:时间+事件,例:2007年7月报废" });//这句是信息提示
            });

            function personOpen() {
                var num = Math.random();
                var returnstr = window.showModalDialog('SelectEmployee.aspx?num=' + num + '', "window", "dialogWidth:700px;DialogHeight=500px;status:no;scroll=yes;help:no");

                if (returnstr != null) {
                    var myArray = returnstr.split("|");

                    for (var i = 0; i < myArray.length; i++) {
                        document.getElementById("TextBoxpersoncode").value = myArray[0];
                        document.getElementById("DropDownListperson").value = myArray[1].replace("&#183;", "·");
                        document.getElementById("TextBoxpersonname").value = myArray[1].replace("&#183;", "·");
                        document.getElementById("TextBoxdepart").value = myArray[2];
                        document.getElementById("TextBoxdepartmentname").value = myArray[3];
                        document.getElementById("TextBoxcompcode").value = myArray[4];
                        document.getElementById("TextBoxcompanyname").value = myArray[5];
                    }
                }
                else {

                }

            }


            //董亚军09.11.04提交之前检查非空项
            function CheckNull() {

                //检查设备编号
                if (document.getElementById("TextBoxno").value == "") {
                    alert("请录入设备编号");
                    document.getElementById("TextBoxno").focus();
                    return false;

                }

                //检查设备名称
                if (document.getElementById("textboxname").value == "") {
                    alert("请录入设备名称");
                    document.getElementById("textboxname").focus();
                    return false;

                }

                //检查设备型号
                if (document.getElementById("TextBoxsbxh").value == "") {
                    alert("请录入设备型号");
                    document.getElementById("TextBoxsbxh").focus();
                    return false;

                }

                //检查制造厂家
                if (document.getElementById("DropDownListfactory").value == "") {
                    alert("请录入制造厂家");
                    document.getElementById("DropDownListfactory").focus();
                    return false;

                }

                //检查供应厂家
                if (document.getElementById("DropDownListsupply").value == "") {
                    alert("请录入供应厂家");
                    document.getElementById("DropDownListsupply").focus();
                    return false;

                }

                //检查责任人
                if (document.getElementById("DropDownListperson").value == "") {
                    alert("请录入责任人");
                    document.getElementById("DropDownListperson").focus();
                    return false;

                }

                //检查cpu
                if (document.getElementById("DropDownListcpu").value == "") {
                    alert("请录入CPU");
                    document.getElementById("DropDownListcpu").focus();
                    return false;

                }


                //检查内存
                if (document.getElementById("DropDownListmem").value == "") {
                    alert("请录入内存");
                    document.getElementById("DropDownListmem").focus();
                    return false;

                }

                //检查硬盘
                if (document.getElementById("DropDownListdisk").value == "") {
                    alert("请录入硬盘");
                    document.getElementById("DropDownListdisk").focus();
                    return false;

                }


                //检查主板
                if (document.getElementById("DropDownListmb").value == "") {
                    alert("请录入主板");
                    document.getElementById("DropDownListmb").focus();
                    return false;

                }


                //检查显卡
                if (document.getElementById("DropDownListgrahis").value == "") {
                    alert("请录入显卡");
                    document.getElementById("DropDownListgrahis").focus();
                    return false;

                }

                //检查显示器
                if (document.getElementById("DropDownListvido").value == "") {
                    alert("请录入显示器");
                    document.getElementById("DropDownListvido").focus();
                    return false;

                }


                //检查网卡
                if (document.getElementById("DropDownListnetwork").value == "") {
                    alert("请录入网卡");
                    document.getElementById("DropDownListnetwork").focus();
                    return false;

                }

                //检查资产归属
                if (document.getElementById("DropDownListao").value == "") {
                    alert("请录入资产归属");
                    document.getElementById("DropDownListao").focus();
                    return false;

                }
                return true;


            }

            //董亚军09.11.04提交之前检查非空项
            function CheckNullTemp() {

                //            //检查设备编号
                //            if (document.getElementById("TextBoxno").value == "") {
                //                 alert("请录入设备编号");
                //                 document.getElementById("TextBoxno").focus();
                //                return false;

                //            }

                //检查设备名称
                //            if (document.getElementById("textboxname").value == "") {
                //                alert("请录入设备名称");
                //                document.getElementById("textboxname").focus();
                //                return false;

                //            }

                //检查设备型号
                if (document.getElementById("TextBoxsbxh").value == "") {
                    alert("请录入设备型号");
                    document.getElementById("TextBoxsbxh").focus();
                    return false;

                }

                //检查制造厂家
                if (document.getElementById("DropDownListfactory").value == "") {
                    alert("请录入制造厂家");
                    document.getElementById("DropDownListfactory").focus();
                    return false;

                }

                //检查供应厂家
                if (document.getElementById("DropDownListsupply").value == "") {
                    alert("请录入供应厂家");
                    document.getElementById("DropDownListsupply").focus();
                    return false;

                }

                //检查cpu
                if (document.getElementById("DropDownListcpu").value == "") {
                    alert("请录入CPU");
                    document.getElementById("DropDownListcpu").focus();
                    return false;

                }


                //检查内存
                if (document.getElementById("DropDownListmem").value == "") {
                    alert("请录入内存");
                    document.getElementById("DropDownListmem").focus();
                    return false;

                }

                //检查硬盘
                if (document.getElementById("DropDownListdisk").value == "") {
                    alert("请录入硬盘");
                    document.getElementById("DropDownListdisk").focus();
                    return false;

                }


                //检查主板
                if (document.getElementById("DropDownListmb").value == "") {
                    alert("请录入主板");
                    document.getElementById("DropDownListmb").focus();
                    return false;

                }


                //检查显卡
                if (document.getElementById("DropDownListgrahis").value == "") {
                    alert("请录入显卡");
                    document.getElementById("DropDownListgrahis").focus();
                    return false;

                }

                //检查显示器
                if (document.getElementById("DropDownListvido").value == "") {
                    alert("请录入显示器");
                    document.getElementById("DropDownListvido").focus();
                    return false;

                }


                //检查网卡
                if (document.getElementById("DropDownListnetwork").value == "") {
                    alert("请录入网卡");
                    document.getElementById("DropDownListnetwork").focus();
                    return false;

                }

                else {
                    return true;
                }

            }

            function formatNum(obj) {

                var n3;

                if (obj.value.split(".").length > 1)//带小数点的  
                {

                    n3 = obj.value.split(".")[0];

                }

                else {

                    n3 = obj.value;

                }

                var brr = new Array();

                var m = 0;

                for (i = 0; i < n3.length; i += 3) {

                    m++;

                }

                for (k = 0; k <= m; k++) {

                    obj.value = obj.value.replace(",", "");

                }

                if (isNaN(obj.value)) {

                    alert('请填写数字!');

                    obj.value = "";

                }

                var n1 = obj.value;

                if (obj.value.split(".").length > 1)//带小数点的  
                {

                    var n1 = obj.value.split(".")[0];

                    var n2 = obj.value.split(".")[1].substring(0, 2);

                    if (n1 > 3) {

                        var tempStr = "";

                        var arr = new Array();

                        var j = 0;

                        for (i = 0; i < n1.length; i += 3) {

                            arr[j] = n1.substring(n1.length - (i + 3), n1.length - i); j++

                        }

                        tempStr = arr.reverse();

                        obj.value = tempStr + "." + n2;

                    }

                }

                else//不带小数点的  
                {

                    var n1 = obj.value;

                    if (n1 > 3) {

                        var tempStr = "";

                        var arr = new Array();

                        var j = 0;

                        for (i = 0; i < n1.length; i += 3) {

                            arr[j] = n1.substring(n1.length - (i + 3), n1.length - i); j++

                        }

                        tempStr = arr.reverse();

                        obj.value = tempStr;

                    }

                }

            }

            function out(obj) {
                if (obj.value.split(".").length > 1)//带小数点的  
                {

                    if (obj.value.split(".")[1].length == 1) {
                        obj.value = obj.value + "0";
                    }
                    else if (obj.value.split(".")[1].length == 2) {
                        return;
                    }

                }
                else {
                    if (obj.value == "") {
                        obj.value = "0.00";
                    }
                    else {
                        obj.value = obj.value + ".00";
                    }
                }
            }

            //自动选择时,把员工编号、员工姓名存入相应字段
            function OnACEItemSelected(source, eventArgs) {
                //            alert(eventArgs.get_value());
                //            alert(eventArgs.get_text());

                var myArray = eventArgs.get_value().split("|");

                for (var i = 0; i < myArray.length; i++) {
                    document.getElementById("TextBoxpersoncode").value = myArray[0];
                    document.getElementById("DropDownListperson").value = myArray[1].replace("&#183;", "·");
                    document.getElementById("TextBoxdepartmentname").value = myArray[2];
                }


            }

            //        $().ready(function() {
            //                $("#DropDownListperson").autocomplete("../account/AutoComplete.aspx", {
            //                    minChars: 0,
            //                    200,
            //                    autoFill: true,
            //                    scroll:true,
            //                    scrollHeight: 180,
            //                    //需要把data转换成json数据格式
            //                    parse: function(data) {
            //                        return $.map(eval(data), function(row) {
            //                            return {
            //                                data: row,
            //                                value: row.to,
            //                                result: row.to
            //                            }
            //                        });
            //                    },
            //                    formatItem: function(data, i, total) {
            //                        return data.to +data.name+ data.pa
            //                    },
            //                    formatMatch: function(data, i, total) {
            //                    return data.to;
            //                    },
            //                    formatResult: function(data, value) {
            //                    return data.to;
            //                    }
            //                }).result(function(event, data, formatted) { //回调
            //                document.getElementById("DropDownListperson").value = data.to;
            //                    document.getElementById("TextBoxpersoncode").value = data.name;
            //                    document.getElementById("Button1").click();
            //                });

            //        })
        </script>

    </head>
    <body>
        <form id="form1" runat="server">
        <div style="font-family: 宋体, Arial, Helvetica, sans-serif; font-size: small;">
                <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                </cc1:ToolkitScriptManager>
                <table style="font-family: 宋体, Arial, Helvetica, sans-serif; font-size: small" width="700">
                    <tr>
                        <td class="style27" align="right">
                            已有模板
                        </td>
                        <td colspan="5">
                            <asp:DropDownList ID="DropDownListTemplate" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownListTemplate_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label1" runat="server" Text="设备编号"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:TextBox ID="TextBoxno" runat="server" Height="16px"></asp:TextBox>
                        </td>
                        <td align="right" class="style71">
                            <asp:Label ID="Label2" runat="server" Text="设备名称"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:TextBox ID="textboxname" runat="server" Height="16px" Width="100%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style31" align="right">
                            <asp:Label ID="Label3" runat="server" Text="设备型号"></asp:Label>
                        </td>
                        <td class="style32">
                            <asp:TextBox ID="TextBoxsbxh" runat="server" Height="16px" Width="270px"></asp:TextBox>
                        </td>
                        <td align="right" class="style71">
                            <asp:Label ID="Label7" runat="server" Text="出厂日期"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:TextBox ID="TextBoxccdate" runat="server" Width="100%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            资产归属
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListao" runat="server" Width="133px" Height="20">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label5" runat="server" Text="制造厂家"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:DropDownList ID="DropDownListfactory" runat="server" Height="25px" Width="270px">
                            </asp:DropDownList>
                        </td>
                        <td align="right" class="style71">
                            <asp:Label ID="Label8" runat="server" Text="购买日期"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:TextBox ID="TextBoxbuydate" runat="server" Width="100%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label6" runat="server" Text="供应厂家"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:DropDownList ID="DropDownListsupply" runat="server" Height="23px" Width="270px">
                            </asp:DropDownList>
                        </td>
                        <td align="right" class="style71">
                            <asp:Label ID="Label46" runat="server" Text="启用日期"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:TextBox ID="TextBoxusedate" runat="server" Width="100%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label9" runat="server" Text="服务代码"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:TextBox ID="TextBoxservesn" runat="server" Height="17px" Width="270px"></asp:TextBox>
                        </td>
                        <td class="style52" align="right">
                            <asp:Label ID="Label4" runat="server" Text="出厂编号"></asp:Label>
                        </td>
                        <td class="style35">
                            <asp:TextBox ID="TextBoxsn" runat="server" Height="16px" Width="100%"></asp:TextBox>
                        </td>                   
                    </tr>
                    <tr>
                        <td class="style39" align="right">
                            <asp:Label ID="Label12" runat="server" Text="预装系统"></asp:Label>
                        </td>
                        <td class="style40">
                            <asp:DropDownList ID="DropDownListos" runat="server" Height="23px" Width="270px">
                            </asp:DropDownList>
                        </td>
                        <td class="style54" align="right">
                            <asp:Label ID="Label10" runat="server" Text="金额"></asp:Label>
                        </td>
                        <td class="style42">
                            <asp:TextBox ID="TextBoxamount" runat="server" onkeyup="formatNum(this);" onfocusout="out(this)" Width="100%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label13" runat="server" Text="系统KEY"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:TextBox ID="TextBoxossn" runat="server" Width="270px" Height="16px"></asp:TextBox>
                        </td>
                        <td align="right" class="style71">
                            <asp:Label ID="Label11" runat="server" Text="保修期"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:DropDownList ID="TextBoxbxny" runat="server" Width="50px">
                                <asp:ListItem Text="0" Value="0"></asp:ListItem>
                                <asp:ListItem Text="1" Value="1.00"></asp:ListItem>
                                <asp:ListItem Text="2" Value="2.00"></asp:ListItem>
                                <asp:ListItem Text="3" Value="3.00"></asp:ListItem>
                                <asp:ListItem Text="5" Value="5.00"></asp:ListItem>
                            </asp:DropDownList>
                            年
                            <%--<asp:TextBox ID="TextBoxbxny" onkeypress="var k=event.keyCode; return (k>=48&amp;&amp;k<=57)||k==46;"
                            onpaste="return false" runat="server"></asp:TextBox>--%>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label14" runat="server" Text="性能类型"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:DropDownList ID="DropDownListsbxn" runat="server" Height="24px" Width="133px">
                            </asp:DropDownList>
                        </td>
                        <td align="right" class="style71">
                            <asp:Label ID="Label15" runat="server" Text="设备类型"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:DropDownList ID="DropDownListsbtype" runat="server" Height="25px" Width="133px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" align="right" class="style67">
                            <asp:Label ID="Label17" runat="server" Text="责任人"></asp:Label>
                        </td>
                        <td class="style67">
                            <asp:TextBox ID="DropDownListperson" runat="server" AutoPostBack="true" Height="16px"
                                OnTextChanged="DropDownListperson_TextChanged"></asp:TextBox>
                            <cc1:AutoCompleteExtender ID="acName" runat="server" FirstRowSelected="true" OnClientItemSelected="OnACEItemSelected"
                                DelimiterCharacters="" Enabled="true" MinimumPrefixLength="0" ServiceMethod="GetCompleteList"
                                ServicePath="~\device\WebServiceEmployee.asmx" TargetControlID="DropDownListperson"
                                CompletionSetCount="10" UseContextKey="true" ShowOnlyCurrentWordInCompletionListItem="true"
                                CompletionInterval="300" CompletionListCssClass="autocomplete_completionListElement"
                                CompletionListItemCssClass="autocomplete_listItem" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem">
                            </cc1:AutoCompleteExtender>
                            <%--<asp:DropDownList ID="DropDownListperson" runat="server" Height="23px" Width="177px"
                                OnSelectedIndexChanged="DropDownListperson_SelectedIndexChanged"
                                AutoPostBack="True">
                            </asp:DropDownList>--%>
                            <a href="javascript:void(0)">
                                <img onclick="personOpen();" alt="" src="../images/i_blue/FDJ.gif" border="0"></a>
                        </td>
                        <td class="style72" align="right">
                            <asp:Label ID="Label16" runat="server" Text="使用范围"></asp:Label>
                        </td>
                        <td class="style70">
                            <asp:DropDownList ID="DropDownListrange" runat="server" Height="23px" Width="133px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label20" runat="server" Text="责任公司"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:TextBox ID="TextBoxcompanyname" runat="server" Width="270px"></asp:TextBox>
                        </td>
                        <td align="right" class="style71">
                            <asp:Label ID="Label18" runat="server" Text="状态"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:DropDownList ID="DropDownListstate" runat="server" Height="25px" Width="133px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label21" runat="server" Text="责任部门"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:TextBox ID="TextBoxdepartmentname" runat="server" Width="270px" Height="16px"></asp:TextBox>
                        </td>
                        <td align="right" class="style71">
                            <asp:Label ID="Label19" runat="server" Text="区域"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:DropDownList ID="DropDownListoffice" runat="server" Height="25px" Width="133px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label22" runat="server" Text="IP地址"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:TextBox ID="TextBoxIP" runat="server" Height="16px" Width="270px"></asp:TextBox>
                        </td>
                        <td align="right" class="style71">
                            <asp:Label ID="Label23" runat="server" Text="MAC地址"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:TextBox ID="TextBoxMAC" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label24" runat="server" Text="交换机"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:DropDownList ID="DropDownListswith" runat="server" Height="19px" Width="270px"
                                OnDataBound="DropDownListswith_DataBound">
                            </asp:DropDownList>
                        </td>
                        <td align="right" class="style71">
                            <asp:Label ID="Label25" runat="server" Text="交换机端口"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:TextBox ID="TextBoxswport" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style63" align="right">
                            <asp:Label ID="Label26" runat="server" Text="网线编号"></asp:Label>
                        </td>
                        <td class="style64">
                            <asp:TextBox ID="TextBoxnetport" runat="server"></asp:TextBox>
                        </td>
                        <td class="style61">
                            &nbsp;
                        </td>
                        <td class="style73">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label27" runat="server" Text="CPU"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:DropDownList ID="DropDownListcpu" runat="server" Height="24px" Width="270px">
                            </asp:DropDownList>
                        </td>
                        <td align="right" class="style71">
                            <asp:Label ID="Label28" runat="server" Text="数量"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:TextBox ID="TextBoxcpusl" runat="server" onkeypress="var k=event.keyCode; return (k>=48&amp;&amp;k<=57)||k==46;"
                                onpaste="return false"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label29" runat="server" Text="内存"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:DropDownList ID="DropDownListmem" runat="server" Height="25px" Width="270px">
                            </asp:DropDownList>
                        </td>
                        <td align="right" class="style71">
                            <asp:Label ID="Label30" runat="server" Text="数量"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:TextBox ID="TextBoxmemsl" runat="server" onkeypress="var k=event.keyCode; return (k>=48&amp;&amp;k<=57)||k==46;"
                                onpaste="return false"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label31" runat="server" Text="硬盘"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:DropDownList ID="DropDownListdisk" runat="server" Height="25px" Width="270px">
                            </asp:DropDownList>
                        </td>
                        <td align="right" class="style71">
                            <asp:Label ID="Label32" runat="server" Text="数量"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:TextBox ID="TextBoxdisksl" runat="server" onkeypress="var k=event.keyCode; return (k>=48&amp;&amp;k<=57)||k==46;"
                                onpaste="return false"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label33" runat="server" Text="主板"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:DropDownList ID="DropDownListmb" runat="server" Height="25px" Width="270px">
                            </asp:DropDownList>
                        </td>
                        <td align="right" class="style71">
                            <asp:Label ID="Label38" runat="server" Text="光驱"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:DropDownList ID="DropDownListdrive" runat="server" Height="25px" Width="133px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style63" align="right">
                            <asp:Label ID="Label34" runat="server" Text="显卡"></asp:Label>
                        </td>
                        <td class="style64">
                            <asp:DropDownList ID="DropDownListgrahis" runat="server" Height="25px" Width="270px">
                            </asp:DropDownList>
                        </td>
                        <td align="right" class="style65">
                            <asp:Label ID="Label39" runat="server" Text="软驱"></asp:Label>
                        </td>
                        <td class="style73">
                            <asp:DropDownList ID="DropDownListfloppy" runat="server" Height="25px" Width="133px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label35" runat="server" Text="显示器"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:DropDownList ID="DropDownListvido" runat="server" Height="26px" Width="270px">
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            <asp:Label ID="Label36" runat="server" Text="出厂编号"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:TextBox ID="TextBoxvidono" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style29" align="right">
                            <asp:Label ID="Label37" runat="server" Text="网卡"></asp:Label>
                        </td>
                        <td class="style17">
                            <asp:DropDownList ID="DropDownListnetwork" runat="server" Height="25px" Width="270px">
                            </asp:DropDownList>
                        </td>
                        <td class="style15" align="right">
                            键鼠
                        </td>
                        <td class="style49">
                            <asp:DropDownList ID="DropDownListkey" runat="server" Height="25px" Width="133px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label40" runat="server" Text="UPS"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:DropDownList ID="DropDownListups" runat="server" Height="25px" Width="270px">
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            UPS编号
                        </td>
                        <td class="style18">
                            <asp:TextBox ID="TextBoxupsno" runat="server" Height="17px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label43" runat="server" Text="备注"></asp:Label>
                        </td>
                        <td class="style16" colspan="3">
                            <asp:TextBox ID="TextBoxnote" runat="server" TextMode="MultiLine" Width="480px" Height="60px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27" align="right">
                            <asp:Label ID="Label44" runat="server" Text="录入者"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:TextBox ID="TextBoxinput" runat="server"></asp:TextBox>
                        </td>
                        <td align="right">
                            <asp:Label ID="Label45" runat="server" Text="录入日期"></asp:Label>
                        </td>
                        <td class="style18">
                            <asp:TextBox ID="TextBoxinputdate" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style27">
                            &nbsp;
                        </td>
                        <td class="style16">
                            <asp:ImageButton ID="BTcommit" runat="server" ImageUrl="~/images/i_blue/ok.jpg" OnClientClick="return CheckNull();"
                                OnClick="BTcommit_Click" />
                            <%--<asp:Button ID="BTcommit" runat="server" OnClientClick="return CheckNull();" OnClick="BTcommit_Click" Text="保存" CssClass="save" />--%>
                            <asp:TextBox ID="TextBoxdepart" runat="server" Width="53px" Enabled="False" Height="16px"
                                ReadOnly="True" Style="display: none"></asp:TextBox>
                            <asp:TextBox ID="TextBoxpersonname" runat="server" Height="16px" Width="52px" Style="display: none"></asp:TextBox>
                            <asp:TextBox ID="TextBoxcompcode" runat="server" Height="16px" Width="43px" Style="display: none"></asp:TextBox>
                            <asp:TextBox ID="TextBoxpersoncode" runat="server" Height="16px" Width="43px" Style="display: none"></asp:TextBox>
                        </td>
                        <td class="style71">
                            <asp:Button ID="Button1" runat="server" Text="保存至模板" OnClientClick="return CheckNullTemp();"
                                OnClick="Button1_Click" class="btn1_mouseout" onmouseover="this.className='btn1_mouseover'"
                                onmouseout="this.className='btn1_mouseout'" />
                        </td>
                        <td class="style18">
                            &nbsp;
                        </td>
                    </tr>
                </table>
        </div>
        </form>
    </body>
    </html>

  • 相关阅读:
    自适应图形的绘制
    红色椭圆、蓝色正方形、黄色三角形、紫色五角星
    [2020牛客寒假算法基础集训营2]G-判正误
    [2020牛客寒假算法基础集训营1]I-nico和niconiconi
    [2020牛客寒假算法基础集训营1]H-nozomi和字符串
    [2020牛客寒假算法基础集训营1]A-honoka和格点三角形
    约瑟夫环以及其变种集合
    unsign long long 与 long long
    【POJ-3279】Fliptile
    B--Bookshelf 2
  • 原文地址:https://www.cnblogs.com/your568/p/2610076.html
Copyright © 2020-2023  润新知