using Yw.Dto;
|
|
namespace HStation.WinFrmUI
|
{
|
public class BimfaceFileStateHelper
|
{
|
//查找项目是否存在模型
|
public static async Task<BimfaceFileStdDto> IsHaveBimFace(long ProjectID)
|
{
|
var projectSite = await new BLL.XhsProjectSiteStd().GetDefaultByProjectID(ProjectID);
|
if (projectSite == null)
|
{
|
return null;
|
}
|
var relation = await new Yw.BLL.BimfaceFileRelationStd()
|
.GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, projectSite.ID, Yw.Bimface.Purpose.Simulation);
|
if (relation == null)
|
{
|
return null;
|
}
|
var bimfaceFile = await new Yw.BLL.BimfaceFileStd().GetByID(relation.BimfaceFileID);
|
if (bimfaceFile == null)
|
{
|
return null;
|
}
|
return bimfaceFile;
|
}
|
}
|
}
|