1
This commit is contained in:
@@ -1729,6 +1729,14 @@ namespace BLL
|
||||
#region 岗位培训
|
||||
|
||||
/// <summary>
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
/// 岗位培训记录
|
||||
/// </summary>
|
||||
public const string PostTrainingRecordMenuId = "CEF2A108-DDC2-46A2-A47B-7431F1F890F1";
|
||||
|
||||
/// <summary>
|
||||
>>>>>>> 7396d1b654f9a1d0172b2ac898a20175abe94d74
|
||||
/// 岗位培训类别
|
||||
/// </summary>
|
||||
public const string PostTrainingCategoryMenuId = "465786B2-AD20-483A-A082-B2C944BE998F";
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 字符串操作辅助类
|
||||
/// </summary>
|
||||
public class StringHelper
|
||||
{
|
||||
/// <summary>
|
||||
/// 字符串转换
|
||||
/// 'A,B,C' => 'A','B','C'
|
||||
/// </summary>
|
||||
/// <param name="str"></param>
|
||||
/// <returns></returns>
|
||||
public static string StringConvert(string str)
|
||||
{
|
||||
string result = string.Empty;
|
||||
if (!string.IsNullOrWhiteSpace(str))
|
||||
{
|
||||
string[] items = str.Split(',');
|
||||
result = string.Join(",", items.Select(x => $"'{x}'"));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user