简易代码之家

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  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>获取地区轮廓线</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){       //获取行政区域
        map.clearOverlays();        //清除地图覆盖物       
        var count = rs.boundaries.length; //行政区域的点有多少个
        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());    //调整视野         
        }
                
    }
);   
}


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

转自:http://www.cnblogs.com/milkmap/archive/2012/04/11/2442430.html
posted @ 2014-09-29 11:34 Jakin.zhou 阅读(4597) | 评论 (0)编辑 收藏

stsadm -o deploysolution -name ***.wsp -immediate -allowGacDeployment -url http://*** -force 
posted @ 2014-09-19 11:35 Jakin.zhou 阅读(162) | 评论 (0)编辑 收藏

将用户管理程序部署到SharePoint 2013平台上,系统编译报错:未能找到类型名称"MembershipProvider",此类型已转发到程序集System.web.ApplicationServices. Version=4.0.0.0。。。
解决办法:添加引用System.Web.ApplicationServices(在 System.Web.ApplicationServices.dll 中)即可。

posted @ 2014-09-10 12:19 Jakin.zhou 阅读(163) | 评论 (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 阅读(210) | 评论 (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 阅读(146) | 评论 (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 阅读(109) | 评论 (0)编辑 收藏

CONVERT(varchar(12),DECL_Date,111)
posted @ 2014-08-05 18:11 Jakin.zhou 阅读(1417) | 评论 (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 阅读(147) | 评论 (0)编辑 收藏

OnClientClick="return confirm('是否确定排除?');"
posted @ 2014-08-01 17:04 Jakin.zhou 阅读(130) | 评论 (0)编辑 收藏

public static bool RegexValidate(string validateString) 
        
{
            Regex regex 
= new Regex("^[0-9]+(.[0-9]{0,2})?$");
            
//验证有两位小数的正实数:^[0-9]+(.[0-9]{2})?$ 
            
//验证有1-3位小数的正实数:^[0-9]+(.[0-9]{1,3})?$
            return regex.IsMatch(validateString.Trim()); 
        }
posted @ 2014-07-25 09:54 Jakin.zhou 阅读(133) | 评论 (0)编辑 收藏

仅列出标题
共16页: 上一页 1 2 3 4 5 6 7 8 9 下一页 Last