2023-2-14 001
This commit is contained in:
@@ -2901,6 +2901,12 @@
|
||||
/// 确定分包商审批
|
||||
/// </summary>
|
||||
public const string SetSubReview = "11503AD6-742D-406D-96F1-17BA3B9E7580";
|
||||
/// <summary>
|
||||
/// 招标工作台账
|
||||
/// </summary>
|
||||
public const string BidDocumentsStandingBookMenuId = "11f4f882-28a9-4610-a657-6a58336097d2";
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -377,6 +377,54 @@ namespace BLL
|
||||
return strList;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// json字符串将属性值中的英文双引号变成中文双引号
|
||||
/// </summary>
|
||||
/// <param name="strJson">json字符串</param>
|
||||
/// <returns></returns>
|
||||
public static string JsonReplaceSign(string strJson)
|
||||
{
|
||||
//获取每个字符
|
||||
char[] temp = strJson.ToCharArray();
|
||||
//获取字符数组长度
|
||||
int n = temp.Length;
|
||||
//循环整个字符数组
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
//查找json属性值(:+" )
|
||||
if (temp[i] == ':' && temp[i + 1] == '"')
|
||||
{
|
||||
//循环属性值内的字符(:+2 推算到value值)
|
||||
for (int j = i + 2; j < n; j++)
|
||||
{
|
||||
//判断是否是英文双引号
|
||||
if (temp[j] == '"')
|
||||
{
|
||||
//排除json属性的双引号
|
||||
if (temp[j + 1] != ',' && temp[j + 1] != '}')
|
||||
{
|
||||
//替换成中文双引号
|
||||
temp[j] = '”';
|
||||
}
|
||||
else if (temp[j + 1] == ',' || temp[j + 1] == '}')
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
//else if (temp[j] == '-')
|
||||
//{
|
||||
// temp[j] = ' ';
|
||||
//}
|
||||
//else if (true)
|
||||
//{
|
||||
// // 要过虑其他字符,继续添加判断就可以
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
return new String(temp);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user