簡易代碼之家

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            157 Posts :: 2 Stories :: 57 Comments :: 0 Trackbacks

          #

          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          <html xmlns="http://www.w3.org/1999/xhtml">
          <head>
          <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
          <title>獲取地區(qū)輪廓線</title>
          <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.3">
          </script>
          <style type="text/css">
          body
          {font-size:13px;margin:10px}
          #container
          {width:800px;height:500px;border:1px solid gray}
          </style>
          </head>
          <body>
          <div id="container"></div>
          <br />
          輸入省、直轄市或縣名稱:
          <input type="text" id="districtName" style="width:80px" value="重慶市">
          <input type="button" onclick="getBoundary()" value="獲取輪廓線">

          <script type="text/javascript">
          var map = new BMap.Map("container");
          map.centerAndZoom(
          new BMap.Point(116.40376539.914850), 5);
          map.addControl(
          new BMap.NavigationControl({type: BMAP_NAVIGATION_CONTROL_SMALL}));
          map.enableScrollWheelZoom();

          function getBoundary(){       
              
          var bdary = new BMap.Boundary();
              
          var name = document.getElementById("districtName").value;
              bdary.get(name, 
          function(rs){       //獲取行政區(qū)域
                  map.clearOverlays();        //清除地圖覆蓋物       
                  var count = rs.boundaries.length; //行政區(qū)域的點有多少個
                  for(var i = 0; i < count; i++){
                      
          var ply = new BMap.Polygon(rs.boundaries[i], {strokeWeight: 2, strokeColor: "#ff0000"}); //建立多邊形覆蓋物
                      map.addOverlay(ply);  //添加覆蓋物
                      map.setViewport(ply.getPath());    //調(diào)整視野         
                  }
                          
              }
          );   
          }


          </script>
          </body>
          </html>

          轉(zhuǎn)自:http://www.cnblogs.com/milkmap/archive/2012/04/11/2442430.html
          posted @ 2014-09-29 11:34 Jakin.zhou 閱讀(4633) | 評論 (0)編輯 收藏

          stsadm -o deploysolution -name ***.wsp -immediate -allowGacDeployment -url http://*** -force 
          posted @ 2014-09-19 11:35 Jakin.zhou 閱讀(171) | 評論 (0)編輯 收藏

          將用戶管理程序部署到SharePoint 2013平臺上,系統(tǒng)編譯報錯:未能找到類型名稱"MembershipProvider",此類型已轉(zhuǎn)發(fā)到程序集System.web.ApplicationServices. Version=4.0.0.0。。。
          解決辦法:添加引用System.Web.ApplicationServices(在 System.Web.ApplicationServices.dll 中)即可。

          posted @ 2014-09-10 12:19 Jakin.zhou 閱讀(172) | 評論 (0)編輯 收藏

          foreach (GridViewRow row in GridView1.Rows)
                      
          {
                          CheckBox cb 
          = (CheckBox)row.FindControl("CheckBox1");
                          
          if (cb.Checked == true)
                          
          {
                              Response.Write(row.Cells[
          1].Text+"--------------");
                          }

                      }
          posted @ 2014-09-01 16:05 Jakin.zhou 閱讀(220) | 評論 (1)編輯 收藏

          Add-SPSolution

          Install-SPSolution -Identity Grain2013.wsp -GACDeployment -CompatibilityLevel {14,15} -WebApplication http://web.perlong.cn
          posted @ 2014-08-19 17:12 Jakin.zhou 閱讀(163) | 評論 (0)編輯 收藏

          public bool IsDate(string str)
                  
          {
                      
          try
                      
          {
                          DateTime.Parse(str);
                          
          return true;
                      }

                      
          catch (Exception e)
                      
          {
                          
          return false;
                      }

                  }
          posted @ 2014-08-05 18:12 Jakin.zhou 閱讀(114) | 評論 (0)編輯 收藏

          CONVERT(varchar(12),DECL_Date,111)
          posted @ 2014-08-05 18:11 Jakin.zhou 閱讀(1444) | 評論 (0)編輯 收藏

           

          <style>
          .zc_lan14 
          {
              TEXT-ALIGN
          : center; FONT-FAMILY: "微軟雅黑"; MARGIN-BOTTOM: 3px; COLOR: #0099ff; FONT-SIZE: 24px
          }
          </style><div class="zc_lan14">出庫申請與登記</div>

           

          posted @ 2014-08-05 11:35 Jakin.zhou 閱讀(158) | 評論 (0)編輯 收藏

          OnClientClick="return confirm('是否確定排除?');"
          posted @ 2014-08-01 17:04 Jakin.zhou 閱讀(142) | 評論 (0)編輯 收藏

          public static bool RegexValidate(string validateString) 
                  
          {
                      Regex regex 
          = new Regex("^[0-9]+(.[0-9]{0,2})?$");
                      
          //驗證有兩位小數(shù)的正實數(shù):^[0-9]+(.[0-9]{2})?$ 
                      
          //驗證有1-3位小數(shù)的正實數(shù):^[0-9]+(.[0-9]{1,3})?$
                      return regex.IsMatch(validateString.Trim()); 
                  }
          posted @ 2014-07-25 09:54 Jakin.zhou 閱讀(149) | 評論 (0)編輯 收藏

          僅列出標(biāo)題
          共16頁: 上一頁 1 2 3 4 5 6 7 8 9 下一頁 Last 
          主站蜘蛛池模板: 高陵县| 兖州市| 扶绥县| 古交市| 寻乌县| 诸城市| 景泰县| 武穴市| 轮台县| 巴楚县| 南涧| 抚州市| 安溪县| 颍上县| 焦作市| 泉州市| 廊坊市| 台东县| 安塞县| 田阳县| 隆子县| 西华县| 唐海县| 千阳县| 沾化县| 平陆县| 丹巴县| 新昌县| 清镇市| 磐安县| 海丰县| 静乐县| 绵阳市| 广宗县| 温州市| 巴南区| 金堂县| 安塞县| 疏勒县| 宝鸡市| 皋兰县|