11
This commit is contained in:
@@ -18,6 +18,25 @@ namespace BLL
|
||||
return Funs.DB.Base_Contractor.FirstOrDefault(e => e.ContractorId == contractorId);
|
||||
}
|
||||
|
||||
// 返回承包商中英文名称
|
||||
public static string GetContractorNameById(string contractorId)
|
||||
{
|
||||
string contractorName=string.Empty;
|
||||
var con= Funs.DB.Base_Contractor.FirstOrDefault(e => e.ContractorId == contractorId);
|
||||
if (con != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(con.Contractor))
|
||||
{
|
||||
contractorName = con.Contractor;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(con.ContractorCN))
|
||||
{
|
||||
contractorName += con.ContractorCN;
|
||||
}
|
||||
}
|
||||
return contractorName;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取承包商列表
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user