Пример #1
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()));
    }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["Lanid"] == null)
     {
         Response.Write("<script language='javascript'>alert('连接超时,请重新登录.'); location.href='Loginpage.aspx'</script>");
     }
     if (!IsPostBack)
     {
         this.U_nodedata1.Visible       = false;
         this.U_updateNodedata1.Visible = true;
         UseFunc          uf = new UseFunc();
         IList <NodeData> nd = uf.GetNodedataList(int.Parse(Session["Lanid"].ToString()));
         bindlist(nd);
         this.U_updateNodedata1.nodedata = uf.GetNodedata(nd[0].Id);
     }
 }
Пример #3
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()));
    }