#region 字符串位数截断 public string strCa(string Str,int I) { string ReStr = Str; if(!(Str==""||Str==null)) { if (Str.Length > I) ReStr = Str.Substring(0, I); ReStr = ReStr.Replace("'", ""); } return ReStr; } #endregion