解决字符串空格问题
作者:互联网
if(actionName == "Submit")
{
H3.DataModel.BizObject[] childBoList = (H3.DataModel.BizObject[]) this.Request.BizObject["D002033StructuresLibraryDailyReport"];
if(childBoList != null && childBoList.Length > 0)
{
foreach(H3.DataModel.BizObject childBo in childBoList)
{
string joinStructuresLibraryName = childBo["joinStructuresLibraryName"] + string.Empty;
while(joinStructuresLibraryName.Contains(" "))
{
joinStructuresLibraryName = joinStructuresLibraryName.Replace(" ", " ");
}
childBo["joinStructuresLibraryName"] = joinStructuresLibraryName.Replace(" ", "--");
}
}
}
标签:BizObject,H3,childBoList,空格,解决,childBo,字符串,joinStructuresLibraryName,DataModel 来源: https://www.cnblogs.com/FaustDream/p/16313768.html