Example #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);
        }
Example #2
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);
     }
 }
Example #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()));
    }