Merge branch 'master' of https://gitee.com/frane-yang/SGGL_SeDin_New
This commit is contained in:
@@ -368,6 +368,29 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetMajorName(string majorIds)
|
||||
{
|
||||
string majorName = string.Empty;
|
||||
if (!string.IsNullOrEmpty(majorIds))
|
||||
{
|
||||
string[] strs = majorIds.Split(',');
|
||||
var items = GetMajorItems2();
|
||||
foreach (var item in strs)
|
||||
{
|
||||
var un = items.FirstOrDefault(x => x.Text == item);
|
||||
if (un != null)
|
||||
{
|
||||
majorName += un.Value + ",";
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(majorName))
|
||||
{
|
||||
majorName = majorName.Substring(0, majorName.LastIndexOf(","));
|
||||
}
|
||||
}
|
||||
return majorName;
|
||||
}
|
||||
|
||||
#region 获取列表
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -205,5 +205,26 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetContractName(string contractIds)
|
||||
{
|
||||
string contractName = string.Empty;
|
||||
if (!string.IsNullOrEmpty(contractIds))
|
||||
{
|
||||
string[] strs = contractIds.Split(',');
|
||||
foreach (var item in strs)
|
||||
{
|
||||
var cn = GetContractById(item);
|
||||
if (cn != null)
|
||||
{
|
||||
contractName += cn.ContractName + ",";
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(contractName))
|
||||
{
|
||||
contractName = contractName.Substring(0, contractName.LastIndexOf(","));
|
||||
}
|
||||
}
|
||||
return contractName;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user