Esempio n. 1
0
    protected void show_nodedata(object sender, CommandEventArgs e)
    {
        this.U_local1.Visible = true;
        UseFunction uf = new UseFunction();

        this.U_local1.localdata = uf.get_local(int.Parse(e.CommandName.ToString()));
    }
Esempio n. 2
0
        static void showhtml()
        {
            UseFunction       uf   = new UseFunction();
            IList <LocalData> ls   = uf.get_local("司法行政机关");
            string            html = LbsMaker.MakeMapTDT("106.720537, 26.615896", "12", LbsMaker.MakeMapPointsTDT(ls));

            File.WriteAllText("C:/ttxy/desktop/lbs/mapTDT.html", html);
            Console.WriteLine(html);
        }
Esempio n. 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         this.U_local1.Visible = false;
         UseFunction uf = new UseFunction();
         bindlist(uf.get_local());
     }
 }
Esempio n. 4
0
        static void testcontent()
        {
            double[]          ct  = LbsTrans.BD09toGCJ02(106.720537, 26.615896);
            UseFunction       uf  = new UseFunction();
            IList <LocalData> ls  = uf.get_local("司法行政机关");
            string            tmp = LbsMaker.MakeMap(ct[0] + ", " + ct[1], "12", LbsMaker.MakeMapPoints(ls));

            File.WriteAllText("C:/ttxy/desktop/lbs/test.txt", tmp);
            Console.WriteLine(tmp);
        }
Esempio n. 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         UseFunction       uf = new UseFunction();
         IList <LocalData> ls = uf.get_local("司法行政机关");
         Literal_map.Text = LbsMaker.MakeMap("106.720537, 26.615896", "12", LbsMaker.MakeMapPoints(ls));
         keyword.Text     = "类别:司法行政机关,可按关键字查询";
     }
 }
Esempio n. 6
0
    protected void btn_cate4_Click(object sender, ImageClickEventArgs e)
    {
        this.Label_title.Text = "司法鉴定机构";
        UseFunction       uf = new UseFunction();
        IList <LocalData> ls = uf.get_local("司法鉴定机构");

        if (ls == null || ls.Count == 0)
        {
            Response.Write("<script language='javascript'>alert('未检索到数据');</script>");
        }
        else
        {
            this.Literal_map.Text = LbsMaker.MakeMap(ls[0].Lng + ", " + ls[0].Lat, "14", LbsMaker.MakeMapPoints(ls));
            keyword.Text          = "类别:司法鉴定机构,可按关键字查询";
        }
    }
Esempio n. 7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string url = HttpContext.Current.Request.Url.Query;
            int    id  = int.Parse(url.Substring(1));

            UseFunction uf = new UseFunction();
            LocalData   ld = uf.get_local(id);
            e_lng = ld.Lng;
            e_lat = ld.Lat;
            this.label_title.Text = ld.Name;
            this.label_addr.Text  = ld.Address;
            this.Literal_tel.Text = "<a href=\"tel:" + ld.Tele + "\">" + ld.Tele + "<i class=\"glyphicon glyphicon-phone-alt\"></i></a>";
        }
    }