构建PageRootDirName|如:WebForms\Adms\Blanks\Pm\User\Role
2017-11-04 10:31:33 访问(2068) 赞(0) 踩(0)
#region PageRootDirName
/// <summary>
/// 构建PageRootDirName|如:WebForms\Adms\Blanks\Pm\User\Role
/// </summary>
/// <param name="tableName">UTB_PM_USER_ROLE</param>
/// <returns></returns>
public string PageRootDirNameBuild(string tableName)
{
if (tableName.StartsWith("UTB_"))
tableName = tableName.Substring(4);
string[] sA = tableName.Split('_');
StringBuilder theResult = new StringBuilder();
theResult.Append("WebForms\\Adms\\Blanks");
foreach (string s in sA)
{
theResult.Append("\\");
theResult.Append(s.Substring(0, 1).ToUpper());
theResult.Append(s.Substring(1).ToLower());
}
return theResult.ToString();
}
#endregion PageRootDirName
上一条:
下一条:
相关评论
发表评论