This commit is contained in:
2026-02-10 15:42:58 +08:00
parent c750debcd2
commit 6b80de1c02
63 changed files with 3882 additions and 1417 deletions
+19
View File
@@ -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>