簡易代碼之家

            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 閱讀(4627) | 評(píng)論 (0)編輯 收藏

          stsadm -o deploysolution -name ***.wsp -immediate -allowGacDeployment -url http://*** -force 
          posted @ 2014-09-19 11:35 Jakin.zhou 閱讀(167) | 評(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 閱讀(218) | 評(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 閱讀(160) | 評(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 閱讀(111) | 評(píng)論 (0)編輯 收藏

          CONVERT(varchar(12),DECL_Date,111)
          posted @ 2014-08-05 18:11 Jakin.zhou 閱讀(1439) | 評(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 閱讀(156) | 評(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 閱讀(147) | 評(píng)論 (0)編輯 收藏

          僅列出標(biāo)題
          共16頁: 上一頁 1 2 3 4 5 6 7 8 9 下一頁 Last 
          主站蜘蛛池模板: 新野县| 贡嘎县| 新蔡县| 南阳市| 玛沁县| 德惠市| 绩溪县| 营山县| 海兴县| 育儿| 镇原县| 昭平县| 双辽市| 雅江县| 滨州市| 合阳县| 泗水县| 时尚| 商水县| 望谟县| 孟州市| 元阳县| 吉林市| 灵山县| 普洱| 桐城市| 英超| 根河市| 利川市| 保山市| 台东县| 西乌| 微博| 关岭| 甘泉县| 潜江市| 上杭县| 鄂伦春自治旗| 宽城| 泾川县| 淮滨县|