1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace YLShipBuildLandMap.Entity.ViewModel.Build
- {
- public class BuildingView : BdBuilding
- {
- public string FloorList { get; set; }
- }
- public class BuildingXyAxisView : BdBuildingXyAxis
- {
- public string BuildingName { get; set; }
- }
- public class BuildingXyAxisGroupView
- {
- public Guid? BuildingId { get; set; }
- public string BuildingName { get; set; }
- public decimal? MinXAxis { get; set; }
- public decimal? MaxXAxis { get; set; }
- public decimal? MinYAxis { get; set; }
- public decimal? MaxYAxis { get; set; }
- public decimal? XCenter
- {
- get
- {
- if (MinXAxis.HasValue && MaxXAxis.HasValue)
- {
- return (MinXAxis.Value + MaxXAxis.Value) / 2;
- }
- else
- {
- return 0;
- }
- }
- }
- public decimal? YCenter
- {
- get
- {
- if (MinYAxis.HasValue && MaxYAxis.HasValue)
- {
- return (MinYAxis.Value + MaxYAxis.Value) / 2;
- }
- else
- {
- return 0;
- }
- }
- }
- }
- }
|