This commit is contained in:
2023-11-08 17:27:08 +08:00
26 changed files with 4070 additions and 19 deletions
@@ -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;
}
}
}