簡(jiǎn)易代碼之家

            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ū)域的點(diǎn)有多少個(gè)
                  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 閱讀(4632) | 評(píng)論 (0)編輯 收藏

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

          將用戶管理程序部署到SharePoint 2013平臺(tái)上,系統(tǒng)編譯報(bào)錯(cuò):未能找到類型名稱"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 閱讀(170) | 評(píng)論 (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 閱讀(219) | 評(píng)論 (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 閱讀(162) | 評(píng)論 (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 閱讀(113) | 評(píng)論 (0)編輯 收藏

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

           

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

           

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

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

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

          僅列出標(biāo)題
          共16頁: 上一頁 1 2 3 4 5 6 7 8 9 下一頁 Last 
          主站蜘蛛池模板: 林周县| 友谊县| 古田县| 拜城县| 韶山市| 高安市| 唐海县| 全椒县| 平乐县| 林口县| 临沂市| 阜城县| 阿瓦提县| 新闻| 离岛区| 纳雍县| 湄潭县| 大埔区| 和硕县| 合作市| 迁安市| 西畴县| 嵩明县| 剑河县| 广丰县| 洛浦县| 萍乡市| 永靖县| 枝江市| 玛沁县| 舟曲县| 宜章县| 扎赉特旗| 沂水县| 黔东| 连平县| 绿春县| 怀宁县| 砀山县| 广饶县| 深圳市|