| | |
| | | using Yw.Dto; |
| | | using Yw.Vmo; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | public class BimfaceFileStateHelper |
| | | { |
| | | //查找项目是否存在模型 |
| | | public static async Task<BimfaceFileStdDto> IsHaveBimFace(long ProjectID) |
| | | public static async Task<BimfaceFileVmo> IsHaveBimFace(long ProjectID) |
| | | { |
| | | var projectSite = await new BLL.XhsProjectSiteStd().GetDefaultByProjectID(ProjectID); |
| | | var projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(ProjectID); |
| | | if (projectSite == null) |
| | | { |
| | | return null; |
| | | } |
| | | var relation = await new Yw.BLL.BimfaceFileRelationStd() |
| | | var relation = await BLLFactory<Yw.BLL.BimfaceFileRelation>.Instance |
| | | .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); |
| | | var bimfaceFile = await BLLFactory<Yw.BLL.BimfaceFile>.Instance.GetByID(relation.BimfaceFileID); |
| | | if (bimfaceFile == null) |
| | | { |
| | | return null; |