• 大小: 3.55MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-05
  • 语言: C#
  • 标签: ASP  物流管理  

资源简介

毕业设计做的项目,基于ASP.NET平台,采用C#编写,花了整整两个月.

资源截图

代码片段和文件信息

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender EventArgs e)
    {
        Session[“CompanyName“] = null;
        Session[“Admin“] = null;

        Alter.Text = ““;
    }
    protected void CancelButton_Click(object sender EventArgs e)
    {
        Name.Text = ““;
        Pwd.Text = ““;
    }
    protected void LoginButton_Click(object sender EventArgs e)
    {
        string userName = this.Name.Text.ToString().Trim();
        string pwd = this.Pwd.Text.ToString().Trim();

        //系统管理员登陆
        string sql1 = string.Format(“select * from Admini where AdminiName=‘{0}‘and AdminiPwd=‘{1}‘“
                                userNamepwd);
        int admin = 0;
        admin = Convert.ToInt32(Database.DBExecutScalar(sql1));


        if (admin > 0)
        {
            Session[“Admin“] = this.Name.Text.ToString();
            Response.Redirect(“InnerIndex/AdminIndex.aspx“);
            return;
        }

        //普通用户登陆
        string sqlLogin = “select * from Users where UserName = ‘“ 
            + Name.Text.ToString() 
            + “‘and Pwd = ‘“ 
            + Pwd.Text.ToString() + “‘“;
        int result = 0;
        result = Convert.ToInt32(Database.DBExecutScalar(sqlLogin));
       


        if (result > 0)
        {
            Session[“CompanyName“] = Users.GetCompanyNameByUserName(userName);
            string sqlPopedom = “select Popedom from Users where UserName=‘“
             + Name.Text.ToString()
             + “‘and Pwd = ‘“
             + Pwd.Text.ToString() + “‘“;

            int popedom = Convert.ToInt32(Database.DBExecutScalar(sqlPopedom));
            if (popedom == 0)
            {
                Session[“UserName“] = Name.Text.ToString();
                Response.Redirect(“~/InnerIndex/CompanyIndex.aspx“);
            }
            else if (popedom == 1)
            {
                Session[“UserName“] = Name.Text.ToString();
                Response.Redirect(“~/InnerIndex/BCompanyIndex.aspx“);
            }
            else
                Alter.Text = “未知错误,请重试“;
        }
        else
            Alter.Text = “用户名或密码错误“;
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5889  2009-05-14 03:07  wuliu\App_Code\BCompany.cs

     文件       3084  2009-06-19 15:32  wuliu\App_Code\Database.cs

     文件       2516  2009-06-19 15:32  wuliu\App_Code\DisPatchForm.cs

     文件       3755  2009-06-13 04:32  wuliu\App_Code\DispatchPrice.cs

     文件       3344  2009-04-22 02:13  wuliu\App_Code\MailForm.cs

     文件      12595  2009-06-19 15:32  wuliu\App_Code\Orders.cs

     文件       3273  2009-06-19 15:32  wuliu\App_Code\Path.cs

     文件       6357  2009-06-13 18:50  wuliu\App_Code\Truck.cs

     文件      11179  2009-06-19 15:32  wuliu\App_Code\Users.cs

     文件    1310720  2009-06-21 21:30  wuliu\App_Data\wuliu_Data.MDF

     文件    1048576  2009-06-21 21:30  wuliu\App_Data\wuliu_Log.LDF

     文件     782336  2007-03-02 00:50  wuliu\Bin\AjaxControlToolkit.dll

     文件       1013  2009-06-11 06:41  wuliu\Bin\Control\ALeftTreeContent.ascx

     文件        542  2009-06-13 02:34  wuliu\Bin\Control\ALeftTreeContent.ascx.cs

     文件        303  2008-10-13 20:44  wuliu\Bin\Control\Bottom.ascx

     文件        414  2008-10-07 15:51  wuliu\Bin\Control\Bottom.ascx.cs

     文件       2280  2009-05-31 04:35  wuliu\Bin\Control\CLeftTreeContent.ascx

     文件       3919  2009-06-11 06:06  wuliu\Bin\Control\CLeftTreeContent.ascx.cs

     文件       3030  2008-10-19 10:08  wuliu\Bin\Control\SLeftTreeContent.ascx

     文件       3554  2009-05-31 05:00  wuliu\Bin\Control\SLeftTreeContent.ascx.cs

     文件        570  2008-10-17 13:47  wuliu\Bin\Control\Top.ascx

     文件        640  2009-06-11 06:00  wuliu\Bin\Control\Top.ascx.cs

    ..A.SHR       408  2008-10-20 16:16  wuliu\Bin\Control\vssver2.scc

     文件       1021  2008-10-13 20:44  wuliu\Control\ALeftTreeContent.ascx

     文件        540  2008-10-19 11:13  wuliu\Control\ALeftTreeContent.ascx.cs

     文件        303  2008-10-13 20:44  wuliu\Control\Bottom.ascx

     文件        414  2008-10-07 15:51  wuliu\Control\Bottom.ascx.cs

     文件       2280  2008-10-20 16:16  wuliu\Control\CLeftTreeContent.ascx

     文件        539  2008-10-20 16:16  wuliu\Control\CLeftTreeContent.ascx.cs

     文件       3030  2008-10-19 10:08  wuliu\Control\SLeftTreeContent.ascx

............此处省略175个文件信息

评论

共有 条评论