ASP.NET公交调度管理系统(9)

来源:xiaoniu168.com 作者:毕业辅导 添加时间:2012-01-01 点击数:23813

计算机毕业设计介绍:

4.3  公交查询模块设计与实现
公交查询模块是本系统的核心模块,如果是司机登录,该页面只能用于查询公交的班次、站点和运载车辆信息,如果是调度员或者管理员登录,还可以对公交的站点、班次和运载车辆信息进行维护,包括添加、修改和删除,调度元或管理员登入系统后的公交查询页面。

以下是引用片段:

$(function() {
    $("#idTable .btnDetailCar").click(function() {
        $.getJSON("Handler1.ashx?Action=SearchBusLine_CarList&BusLineID=" + $(this).attr("id") + "&ran=" + Math.random(), function(data) {
            if (data.length > 0) {
                var js = "";
                for (var i = 0; i < data.length; i++) {
                    js += data[i].CarNO + " (" + data[i].Affiliation + ")
";
          ,;    &nbs,p; }
                $("#iddiv_detail").html(js);
            }
        })

    })

})
$(function() {
    if (getCookie("CookieIdentity") == "Driver") {
        $("#idTable tr").each(function() {
            $(this).find("th").eq(6).addClass("th_right");

            $(this).find("th").eq(7).remove();
            $(this).find("th").eq(7).remove();
            $(this).find("th").eq(7).remove();
            $(this).find("th").eq(7).remove();

            $(this).find("td").eq(6).addClass("td_right");
            $(this).find("td").eq(7).remove();
            $(this).find("td").eq(7).remove();
            $(this).find("td").eq(7).remove();
            $(this).find("td").eq(7).remove();

        })
    }
})
$(function() {
    $("#idTable .btnDelete").click(function() {
        var _r = confirm("确定删除该线路吗?");
        var CommandID = $(this).attr("id");
        if (_r == true) {
            $.get("Handler1.ashx", { Action: "PublicDeleteMethod", CommandID: CommandID, Command: "BusLineInfo" }, function(data, textStatus) {
                if (data != "0") {
                    alert("删除成功!");
                    location.reload();
                }
                else {
                    alert("该线路存在其他信息,不能删除!");
                }

〖资料来源:计算机毕业论文 www.xiaoniu168.com

第10页为计算机毕业论文部分......

【联系方式】

【本站信誉】

用心做计算机毕业设计论文网