Exemplo n.º 1
0
        /// <summary>
        /// 获取楼层设备列表
        /// </summary>
        /// <param name="nid"></param>
        /// <returns></returns>
        public IList <EquipData> getequips(string nid)
        {
            UseFunc           uf     = new UseFunc();
            IList <EquipData> eqlist = uf.GetEquipdataList(int.Parse(nid));

            return(eqlist);
        }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        UseFunc      uf         = new UseFunc();
        IList <News> mynewslist = uf.GetNews(true);

        bind(mynewslist);
    }
Exemplo n.º 3
0
    protected void Button_search_Click(object sender, EventArgs e)
    {
        this.U_landdata1.Visible = false;
        IList <LanData> lanlist     = new List <LanData>();
        SysFunc         sf          = new SysFunc();
        UseFunc         uf          = new UseFunc();
        Area            currentarea = sf.GetArea(short.Parse(Session["Areaid"].ToString()));

        if (Session["Type"].ToString() == "0")  // 超级权限
        {
            lanlist = uf.GetLandataList(this.TextBox_key.Text);
            //lanlist = uf.GetLandataList();
        }
        else
        {
            if (currentarea.Type == true)
            {
                IList <Area> areas = sf.GetAreaList(currentarea.Cid, false);
                for (int i = 0; i < areas.Count; i++)
                {
                    IList <LanData> tmp = uf.GetLandataList(this.TextBox_key.Text, areas[i].ID);
                    for (int j = 0; j < tmp.Count; j++)
                    {
                        lanlist.Add(tmp[j]);
                    }
                }
            }
            else
            {
                lanlist = uf.GetLandataList(this.TextBox_key.Text, short.Parse(Session["Areaid"].ToString()));
            }
        }
        bindlist(lanlist);
    }
Exemplo n.º 4
0
 public Tool(string Name, string IconPath, string Description, string ID, ToolTypes type, float StaminaCost, bool IsSellable, UseFunc UseFunction = null, float BuyingPrice = 0, float SellingPrice = 0)
     : base(Name, IconPath, Description, ID, IsSellable, 0, BuyingPrice, SellingPrice)
 {
     Type             = type;
     this.UseFunction = UseFunction;
     this.StaminaCost = StaminaCost;
 }
Exemplo n.º 5
0
        /// <summary>
        /// 获取大楼楼层信息
        /// </summary>
        /// <param name="lanid">大楼id</param>
        /// <returns></returns>
        public IList <NodeData> getlevels(string lid)
        {
            UseFunc          uf       = new UseFunc();
            IList <NodeData> nodelist = uf.GetNodedataList(int.Parse(lid));

            return(nodelist);
        }
Exemplo n.º 6
0
    protected void show_nodedata(object sender, CommandEventArgs e)
    {
        this.U_nodedata1.Visible       = false;
        this.U_updateNodedata1.Visible = true;
        UseFunc uf = new UseFunc();

        this.U_updateNodedata1.nodedata = uf.GetNodedata(int.Parse(e.CommandName.ToString()));
    }
Exemplo n.º 7
0
    protected void show_member(object sender, CommandEventArgs e)
    {
        this.U_insertMember1.Visible = false;
        this.U_Member1.Visible       = true;
        UseFunc uf = new UseFunc();

        this.U_Member1.member = uf.GetMembers(int.Parse(e.CommandName.ToString()));
    }
Exemplo n.º 8
0
    protected void show_equip(object sender, CommandEventArgs e)
    {
        this.U_equipdata1.Visible       = false;
        this.U_updateEquipdata1.Visible = true;
        UseFunc uf = new UseFunc();

        this.U_updateEquipdata1.equipdata = uf.GetEquipdata(long.Parse(e.CommandName.ToString()));
    }
Exemplo n.º 9
0
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="username">用户名</param>
        /// <param name="password">密码</param>
        /// <returns></returns>
        public Members login(string username, string password)
        {
            UseFunc uf = new UseFunc();
            Members mb = new Members();

            mb.Account  = username;
            mb.Password = password;
            return(uf.userLogin(mb));
        }
Exemplo n.º 10
0
    protected void Button_list_edit_Click(object sender, CommandEventArgs e)
    {
        UseFunc uf = new UseFunc();

        this.U_updatenews1.Visible = true;
        this.U_insertnews1.Visible = false;
        this.Panel_news.Visible    = false;
        //this.Panel_news.Height = 30;
        this.U_updatenews1.news = uf.GetNews(int.Parse(e.CommandName.ToString()));
    }
Exemplo n.º 11
0
    //ExUserFunction eu = new ExUserFunction();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Areaid"] == null || Session["LinkId"] == null || Session["Type"] == null)
        {
            Response.Write("<script language='javascript'>alert('连接超时,请重新登录.'); location.href='Loginpage.aspx'</script>");
        }
        else
        {
            short type = short.Parse(Session["Type"].ToString());
            if (type != 0 && type != 3 && type != 1 && type != 6)
            {
                Response.Write("<script language='javascript'>alert('该账号无此操作权限.'); location.href='HomePage.aspx'</script>");
                return;
            }
            if (!IsPostBack)
            {
                this.U_landdata1.Visible = false;
                IList <LanData> lanlist     = new List <LanData>();
                SysFunc         sf          = new SysFunc();
                UseFunc         uf          = new UseFunc();
                Area            currentarea = sf.GetArea(short.Parse(Session["Areaid"].ToString()));
                int             linkid      = int.Parse(Session["LinkId"].ToString());
                if (type == 0)  // 超级权限
                {
                    lanlist = uf.GetLandataList();
                }
                else if (type == 6)
                {
                    lanlist.Add(uf.GetLandata(short.Parse(Session["LinkId"].ToString())));
                }
                else
                {
                    if (currentarea.Type == true)
                    {
                        IList <Area> areas = sf.GetAreaList(currentarea.Cid, false);
                        for (int i = 0; i < areas.Count; i++)
                        {
                            IList <LanData> tmp = uf.GetLandataList(areas[i].ID);
                            for (int j = 0; j < tmp.Count; j++)
                            {
                                lanlist.Add(tmp[j]);
                            }
                        }
                    }
                    else
                    {
                        lanlist = uf.GetLandataList(currentarea.ID);
                    }
                }
                bindlist(lanlist);
            }
            //this.Button_back.Attributes["onclick"] = "javascript:location.href='HomePage.aspx'";
            //this.ImageButton_submit.Attributes["onclick"] = "javascript:return confirm('确认提交?提交后无法更改');";
        }
    }
Exemplo n.º 12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         UseFunc      uf         = new UseFunc();
         IList <News> mynewslist = uf.GetNews(true);
         this.U_newstitlelist1.bind(top8list(mynewslist));
         mynewslist = uf.GetNews(false);
         this.U_newstitlelist2.bind(top8list(mynewslist));
     }
 }
Exemplo n.º 13
0
    protected void Page_Load(object sender, EventArgs e)
    {
        UseFunc uf     = new UseFunc();
        News    mynews = uf.GetNews(int.Parse(Session["newsid"].ToString()));

        this.Label_newstitle.Text  = mynews.Title;
        this.Label_newsauthor.Text = "作者:" + uf.GetMembers(mynews.Mid).Name;
        this.Label_time.Text       = "时间:" + mynews.Datetime;
        //this.Label_newscontext.Text = huanhang(mynews.Context);
        this.Label_newscontext.Text = mynews.Context.Replace("\r\n", "<br> ");
    }
Exemplo n.º 14
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["Nodeid"] == null)
     {
         Response.Write("<script language='javascript'>alert('连接超时,请重新登录.'); location.href='Loginpage.aspx'</script>");
     }
     if (!IsPostBack)
     {
         this.U_equipdata1.Visible       = false;
         this.U_updateEquipdata1.Visible = false;
         UseFunc           uf = new UseFunc();
         IList <EquipData> ed = uf.GetEquipdataList(int.Parse(Session["Nodeid"].ToString()));
         bindlist(ed);
     }
 }
Exemplo n.º 15
0
    protected void Button_search_Click(object sender, EventArgs e)//tangniuzi
    {
        IList <Members> memberlist = new List <Members>();
        UseFunc         uf         = new UseFunc();

        if (this.TextBox_key.Text == "")
        {
            memberlist = uf.GetMembers(true);
        }
        else
        {
            memberlist = uf.GetMembersList(this.TextBox_key.Text);
        }
        bindlist(memberlist);
    }
Exemplo n.º 16
0
    private static string mainurl = StrUtil.mainurl;//ConfigurationManager.AppSettings["hostname"];

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string url = HttpContext.Current.Request.Url.Query;
            int    id  = int.Parse(url.Substring(1));

            Session["Lanid"] = id.ToString();
            UseFunc uf = new UseFunc();
            LanData ld = uf.GetLandata(id);
            this.Label_maptitle1.Text = ld.Building;
            IList <NodeData> nodelist = uf.GetNodedataList(id);

            bindlist(nodelist);
        }
    }
Exemplo n.º 17
0
    private IList <LanData> get_my_lanlist()
    {
        IList <LanData> landatalist = new List <LanData>();
        SysFunc         sf          = new SysFunc();
        UseFunc         uf          = new UseFunc();
        Area            currentarea = sf.GetArea(short.Parse(Session["curAreaid"].ToString()));
        short           type        = short.Parse(Session["Type"].ToString());

        if (type == 0)  // 超级权限
        {
            landatalist = uf.GetLandataList();
        }
        else if (type == 6)
        {
            landatalist.Add(uf.GetLandata(short.Parse(Session["LinkId"].ToString())));
        }
        else if (type == 5)
        {
            landatalist = uf.GetLandataListPt(short.Parse(Session["LinkId"].ToString()));
        }
        else if (type == 4)
        {
            landatalist = uf.GetLandataListMt(short.Parse(Session["LinkId"].ToString()));
        }
        else
        {
            if (currentarea.Type == true)
            {
                IList <Area> areas = sf.GetAreaList(currentarea.Cid, false);
                for (int i = 0; i < areas.Count; i++)
                {
                    IList <LanData> tmp = uf.GetLandataList(areas[i].ID);
                    for (int j = 0; j < tmp.Count; j++)
                    {
                        landatalist.Add(tmp[j]);
                    }
                }
                //landatalist = eu.getLandatalist_by_areaid(short.Parse(Session["Areaid"].ToString()));
            }
            else
            {
                landatalist = uf.GetLandataList(currentarea.ID);
            }
        }
        return(landatalist);
    }
Exemplo n.º 18
0
    protected void Button_submit_Click(object sender, EventArgs e)
    {
        long    result = 0;
        UseFunc uf     = new UseFunc();
        ExcFunc ef     = new ExcFunc();

        result = ef.AddNews(news, int.Parse(Session["Userid"].ToString()));
        if (result > 0)
        {
            this.Label_fix_tip.Text = "数据成功提交";
            this.Response.Redirect("NewslistShow.aspx");
        }
        else
        {
            this.Label_fix_tip.Text = "数据提交失败";
        }
    }
Exemplo n.º 19
0
    protected void Button_choose_Click(object sender, EventArgs e)
    {
        this.U_updatenews1.Visible = false;
        this.U_insertnews1.Visible = false;
        this.Panel_news.Visible    = true;
        IList <News> newslist = new List <News>();
        UseFunc      uf       = new UseFunc();

        if (this.TextBox_key.Text == "")
        {
            newslist = uf.GetNewsIsused(true);
        }
        else
        {
            newslist = uf.GetNewsList(this.TextBox_key.Text);
        }
        bind(newslist);
    }
Exemplo n.º 20
0
    protected void show_building(object sender, CommandEventArgs e)
    {
        int      nid = int.Parse(e.CommandName.ToString());
        UseFunc  uf  = new UseFunc();
        NodeData nd  = uf.GetNodedata(nid);

        if (nd.PicName == "预案图")
        {
            this.U_landetail1.Visible = true;
        }
        else
        {
            this.U_landetail1.Visible = false;
        }
        IList <EquipData> eqlist = uf.GetEquipdataList(nid);

        this.Label_maptitle2.Text = nd.PicName;
        this.Literal_map.Text     = LbsMaker.MakeEquipMap(nd, eqlist, int.Parse(Session["Lanid"].ToString()));
    }
Exemplo n.º 21
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["Type"] == null)
     {
         Response.Write("<script language='javascript'>alert('连接超时,请重新登录.'); location.href='Loginpage.aspx'</script>");
     }
     if (int.Parse(Session["Type"].ToString()) != 0)
     {
         Response.Write("<script language='javascript'>alert('该账号无此操作权限.'); location.href='HomePage.aspx'</script>");
     }
     if (!IsPostBack)
     {
         this.U_insertMember1.Visible = false;
         this.U_Member1.Visible       = false;
         UseFunc         uf    = new UseFunc();
         IList <Members> mlist = uf.GetMembers(true);
         bindlist(mlist);
     }
 }
Exemplo n.º 22
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            UseFunc uf = new UseFunc();
            LanData ld = uf.GetLandata(int.Parse(Session["Lanid"].ToString()));
            //LanData ld = uf.GetLandata(36);
            IList <FireHouse> fhlist = uf.GetFirehouse(ld.AreaData);

            this.Label_building.Text = ld.Building + "," + ld.Address;

            IList <double> result = new List <double>();
            for (int i = 0; i < fhlist.Count; i++)
            {
                double tmp = (fhlist[i].Lng - ld.Lng) * (fhlist[i].Lng - ld.Lng) + (fhlist[i].Lat - ld.Lat) * (fhlist[i].Lat - ld.Lat);
                result.Add(tmp);
            }
            if (result.Count > 2)
            {
            }
            int first = 0;
            for (int j = 1; j < result.Count; j++)
            {
                if (result[first] > result[j])
                {
                    first = j;
                }
            }


            int second = 1;

            this.S_CountPath1.s1_Lng = fhlist[first].Lng;
            this.S_CountPath1.s1_Lat = fhlist[first].Lat;
            this.S_CountPath1.s2_Lng = fhlist[second].Lng;
            this.S_CountPath1.s2_Lat = fhlist[second].Lat;
            this.S_CountPath1.e_Lng  = ld.Lng;
            this.S_CountPath1.e_Lat  = ld.Lat;
        }
    }
Exemplo n.º 23
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Type"] == null)
        {
            Response.Write("<script language='javascript'>alert('请重新登录.'); location.href='Loginpage.aspx'</script>");
            return;
        }
        short type = short.Parse(Session["Type"].ToString());

        if (type != 0)
        {
            Response.Write("<script language='javascript'>alert('该账号无此操作权限.'); location.href='HomePage.aspx'</script>");
            return;
        }
        if (!IsPostBack)
        {
            UseFunc uf = new UseFunc();
            this.Panel_news.Visible = true;
            IList <News> mynewslist = uf.GetNewsIsused(true);
            bind(mynewslist);
        }
    }
Exemplo n.º 24
0
    protected void Button_submit_Click(object sender, EventArgs e)
    {
        if (this.TextBox_newpw.Text != this.TextBox_checkpw.Text)
        {
            this.Label_result.Text = "两次输入密码不一致,请重新输入。";
            return;
        }
        UseFunc uf  = new UseFunc();
        Members mbs = uf.GetMembers(int.Parse(Session["Userid"].ToString()));

        if (md5.Md5Encode(this.TextBox_oldpw.Text) != mbs.Password)
        {
            this.Label_result.Text = "原始密码错误,请重新输入。";
            return;
        }
        ExcFunc euf    = new ExcFunc();
        int     result = euf.Editmembers(member, int.Parse(Session["Userid"].ToString()));

        if (result != 0)
        {
            Response.Write("<script language='javascript'>alert('密码更改成功,请重新登录。'); location.href='LoginOut.aspx'</script>");
        }
    }
Exemplo n.º 25
0
    protected void Button_submit_Click(object sender, EventArgs e)
    {
        int     result = 0;
        UseFunc uf     = new UseFunc();

        if (!uf.userCheck(member.Account))
        {
            this.Label_fix_tip.Text = "该账号已被占用";
            return;
        }
        ExcFunc ef = new ExcFunc();

        result = ef.Addmembers(member, int.Parse(Session["Userid"].ToString()));
        if (result > 0)
        {
            this.Label_fix_tip.Text = "数据成功提交";
            //Session["Lanid"] = result;
            this.Response.Redirect("U_Manager.aspx");
        }
        else
        {
            this.Label_fix_tip.Text = "数据提交失败";
        }
    }
Exemplo n.º 26
0
    //private ExUserFunction eu = new ExUserFunction();
    //private LbsMaker lm = new LbsMaker();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["curAreaid"] == null || Session["LinkId"] == null || Session["Type"] == null)
        {
            Response.Write("<script language='javascript'>alert('请重新登录.'); location.href='Loginpage.aspx'</script>");
        }
        if (!IsPostBack)
        {
            IList <LanData> landatalist = new List <LanData>();
            SysFunc         sf          = new SysFunc();
            UseFunc         uf          = new UseFunc();
            Area            currentarea = sf.GetArea(short.Parse(Session["curAreaid"].ToString()));
            short           type        = short.Parse(Session["Type"].ToString());
            if (type == 0)  // 超级权限
            {
                landatalist = uf.GetLandataList();
            }
            else if (type == 6)
            {
                landatalist.Add(uf.GetLandata(int.Parse(Session["LinkId"].ToString())));
            }
            else if (type == 5)
            {
                landatalist = uf.GetLandataListPt(short.Parse(Session["LinkId"].ToString()));
            }
            else if (type == 4)
            {
                landatalist = uf.GetLandataListMt(short.Parse(Session["LinkId"].ToString()));
            }
            else
            {
                if (currentarea.Type == true)
                {
                    IList <Area> areas = sf.GetAreaList(currentarea.Cid, false);
                    for (int i = 0; i < areas.Count; i++)
                    {
                        IList <LanData> tmp = uf.GetLandataList(areas[i].ID);
                        for (int j = 0; j < tmp.Count; j++)
                        {
                            landatalist.Add(tmp[j]);
                        }
                    }
                    //landatalist = eu.getLandatalist_by_areaid(short.Parse(Session["Areaid"].ToString()));
                }
                else
                {
                    landatalist = uf.GetLandataList(currentarea.ID);
                }
            }

            // 读取数据,制造地图
            if (landatalist.Count() > 0)
            {
                this.Label_notic.Text = "";
                string gpscenter = currentarea.Lng + "," + currentarea.Lat;
                string zoom      = currentarea.Zoom.ToString();
                // 如果选择全部城区,则生成热力图
                if (currentarea.Type == true)
                {
                    //标记指标点

                    this.Literal_map.Text = LbsMaker.MakeMap(gpscenter, zoom, LbsMaker.MakeMapPoints(landatalist));

                    //区域标签
                    //this.Literal_map.Text = LbsMaker.MakeLabel(currentarea.GpsCenter, zoom, LbsMaker.MakeLabelPoints(landatalist, eu.getArea_All(true)));

                    //热力图
                    //this.Literal_map.Text = LbsMaker.MakeHeat(currentarea.GpsCenter, zoom, LbsMaker.MakeHeatPoints(landatalist));
                }
                else
                {
                    this.Literal_map.Text = LbsMaker.MakeMap(gpscenter, zoom, LbsMaker.MakeMapPoints(landatalist));
                }
            }
            else
            {
                this.Label_notic.Text = "暂无数据,请选择其他区域";
                this.Literal_map.Text = "";
            }
        }
    }
Exemplo n.º 27
0
 protected void Page_Load(object sender, EventArgs e)
 {
     UseFunc         uf      = new UseFunc();
     IList <Members> members = uf.GetMembers(true);
     //bind(members);
 }
Exemplo n.º 28
0
        /// <summary>
        /// 获取可见大楼信息
        /// </summary>
        /// <param name="mb">用户信息</param>
        /// <returns></returns>
        public IList <LanData> getbuildings(string mid)
        {
            SysFunc         sf          = new SysFunc();
            UseFunc         uf          = new UseFunc();
            Members         mb          = uf.GetMembers(int.Parse(mid));
            IList <LanData> landatalist = new List <LanData>();

            if (mb.Type == 0)  // 超级权限
            {
                landatalist = uf.GetLandataList();
            }
            else if (mb.Type == 1)
            {
                Area curArea = sf.GetArea((short)sf.GetFireManage((short)mb.LinkId).Aid);
                if (curArea.Type == true)
                {
                    IList <Area> areas = sf.GetAreaList(curArea.Cid, false);
                    for (int i = 0; i < areas.Count; i++)
                    {
                        IList <LanData> tmp = uf.GetLandataList(areas[i].ID);
                        for (int j = 0; j < tmp.Count; j++)
                        {
                            landatalist.Add(tmp[j]);
                        }
                    }
                }
                else
                {
                    landatalist = uf.GetLandataList(curArea.ID);
                }
            }
            else if (mb.Type == 2)
            {
                Area curArea = sf.GetArea((short)sf.GetFireHouse((short)mb.LinkId).Aid);
                if (curArea.Type == true)
                {
                    IList <Area> areas = sf.GetAreaList(curArea.Cid, false);
                    for (int i = 0; i < areas.Count; i++)
                    {
                        IList <LanData> tmp = uf.GetLandataList(areas[i].ID);
                        for (int j = 0; j < tmp.Count; j++)
                        {
                            landatalist.Add(tmp[j]);
                        }
                    }
                }
                else
                {
                    landatalist = uf.GetLandataList(curArea.ID);
                }
            }
            else if (mb.Type == 3)
            {
                Area curArea = sf.GetArea((short)sf.GetControlCenter((short)mb.LinkId).Aid);
                if (curArea.Type == true)
                {
                    IList <Area> areas = sf.GetAreaList(curArea.Cid, false);
                    for (int i = 0; i < areas.Count; i++)
                    {
                        IList <LanData> tmp = uf.GetLandataList(areas[i].ID);
                        for (int j = 0; j < tmp.Count; j++)
                        {
                            landatalist.Add(tmp[j]);
                        }
                    }
                }
                else
                {
                    landatalist = uf.GetLandataList(curArea.ID);
                }
            }
            else if (mb.Type == 6)
            {
                landatalist.Add(uf.GetLandata((int)mb.LinkId));
            }
            else if (mb.Type == 5)
            {
                landatalist = uf.GetLandataListPt((short)mb.LinkId);
            }
            else if (mb.Type == 4)
            {
                landatalist = uf.GetLandataListMt((short)mb.LinkId);
            }
            else
            {
                landatalist = null;
            }
            return(landatalist);
        }
Exemplo n.º 29
0
    protected void Button_submit_Click(object sender, EventArgs e)
    {
        Members my = new Members();

        my.Account  = this.TextBox_account.Text;
        my.Password = this.TextBox_password.Text;
        UseFunc uf     = new UseFunc();
        Members member = uf.userLogin(my);



        if (member == null)
        {
            this.Label_notic.Text = "无此用户!";
        }
        else
        {
            if (member.Password == member.Account)
            {
                this.Label_notic.Text = "登陆成功!";
                Session["Userid"]     = member.Id;
                Session["Account"]    = member.Account;
                Session["Password"]   = member.Password;
                Session["Name"]       = member.Name;
                Session["Type"]       = member.Type;
                Session["LinkId"]     = member.LinkId;
                //Session["WebType"] = "Myself";
                if (member.Type == 0)
                {
                    Session["Areaid"] = Session["curAreaid"] = "0";
                }
                else if (member.Type == 1)
                {
                    SysFunc esf = new SysFunc();
                    Session["Areaid"] = Session["curAreaid"] = esf.GetFireManage((short)member.LinkId).Aid;
                }
                else if (member.Type == 2)
                {
                    SysFunc esf = new SysFunc();
                    if (member.Type == 2)
                    {
                        Session["Areaid"] = Session["curAreaid"] = esf.GetFireHouse((short)member.LinkId).Aid;
                    }
                }
                else if (member.Type == 3)
                {
                    SysFunc esf = new SysFunc();
                    if (member.Type == 3)
                    {
                        Session["Areaid"] = Session["curAreaid"] = esf.GetControlCenter((short)member.LinkId).Aid;
                    }
                }
                else
                {
                    Session["Areaid"] = "7";
                }
                Response.Redirect("HomePage.aspx");

                //登陆日志
                Log info = new Log();

                Response.Redirect("HomePage.aspx");
            }
            else
            {
                this.Label_notic.Text = "密码错误!";
            }
        }
    }