| | |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | public bool AllowPrev => throw new NotImplementedException(); |
| | | |
| | | public bool AllowNext => throw new NotImplementedException(); |
| | | |
| | | public bool AllowCancel => throw new NotImplementedException(); |
| | | |
| | | public bool AllowComplete => throw new NotImplementedException(); |
| | | |
| | | public bool IsInitialize => throw new NotImplementedException(); |
| | | |
| | | /// <summary> |
| | | /// 页面状态改变事件 |
| | | /// </summary> |
| | | public event Action PageStateChangedEvent; |
| | | |
| | | public bool CanCancel() |
| | | private ImportXhsProjectViewModel _vm = null;//操作对象 |
| | | |
| | | /// <summary> |
| | | /// 初始化页面 |
| | | /// </summary> |
| | | public void InitialPage(ImportXhsProjectViewModel vm) |
| | | { |
| | | throw new NotImplementedException(); |
| | | _vm = vm; |
| | | if (vm.HydroID.HasValue) |
| | | { |
| | | this.stepProgressBar1.SelectNext(); |
| | | if (vm.ProjectID.HasValue) |
| | | { |
| | | this.stepProgressBar1.SelectNext(); |
| | | if (vm.HydroRelationID.HasValue) |
| | | { |
| | | this.stepProgressBar1.SelectNext(); |
| | | if (!vm.MapInfoID.HasValue) |
| | | { |
| | | this.stepItemFormMap.ContentBlock2.Description = "自动跳过"; |
| | | } |
| | | this.stepProgressBar1.SelectNext(); |
| | | if (vm.BimfaceId.HasValue) |
| | | { |
| | | this.stepProgressBar1.SelectNext(); |
| | | if (vm.BimfaceFileRelationID.HasValue) |
| | | { |
| | | this.stepProgressBar1.SelectNext(); |
| | | if (!vm.BimfaceConverted) |
| | | { |
| | | this.stepItemForBimfaceTranslate.ContentBlock2.Description = "跳过Bimface轻量化等待..."; |
| | | } |
| | | this.stepProgressBar1.SelectNext(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | this.stepProgressBar1.SelectNext(); |
| | | if (vm.ProjectID.HasValue) |
| | | { |
| | | this.stepProgressBar1.SelectNext(); |
| | | if (!vm.MapInfoID.HasValue) |
| | | { |
| | | this.stepItemFormMap.ContentBlock2.Description = "自动跳过"; |
| | | } |
| | | this.stepItemForBimfaceRelation.ContentBlock2.Description = "未上传模型或模型有误 已跳过..."; |
| | | this.stepItemForBimfaceUpload.ContentBlock2.Description = "未上传模型或模型有误 已跳过..."; |
| | | this.stepItemForHydro.ContentBlock2.Description = "未上传模型或模型有误 已跳过..."; |
| | | this.stepItemForHydroRelation.ContentBlock2.Description = "未上传模型或模型有误 已跳过..."; |
| | | this.stepItemForBimfaceTranslate.ContentBlock2.Description = "未上传模型或模型有误 已跳过..."; |
| | | } |
| | | } |
| | | } |
| | | |
| | | public bool CanComplete() |
| | | /// <summary> |
| | | /// 允许上一步 |
| | | /// </summary> |
| | | public bool AllowPrev |
| | | { |
| | | throw new NotImplementedException(); |
| | | get { return false; } |
| | | } |
| | | |
| | | public bool CanNext() |
| | | /// <summary> |
| | | /// 允许下一步 |
| | | /// </summary> |
| | | public bool AllowNext |
| | | { |
| | | throw new NotImplementedException(); |
| | | get { return false; } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 允许取消 |
| | | /// </summary> |
| | | public bool AllowCancel |
| | | { |
| | | get { return false; } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 允许完成 |
| | | /// </summary> |
| | | public bool AllowComplete |
| | | { |
| | | get { return true; } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 能否上一步 |
| | | /// </summary> |
| | | public bool CanPrev() |
| | | { |
| | | throw new NotImplementedException(); |
| | | return false; |
| | | } |
| | | |
| | | public void InitialPage(ImportXhsProjectViewModel t) |
| | | /// <summary> |
| | | /// 能否下一步 |
| | | /// </summary> |
| | | public bool CanNext() |
| | | { |
| | | throw new NotImplementedException(); |
| | | return false; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 能否取消 |
| | | /// </summary> |
| | | public bool CanCancel() |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 能否完成 |
| | | /// </summary> |
| | | public bool CanComplete() |
| | | { |
| | | _vm.IsCompleted = true; |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | | } |