Exemplo n.º 1
0
 public CylinderEntry GetNextCylinderEntry(CasingOrderTypeEnum currCasingOrder)
 {
     if (currCasingOrder == MaxCasingOrder)
     {
         return(null);
     }
     return(GetBlankCylinderEntry(currCasingOrder + 1));
 }
Exemplo n.º 2
0
        public CylinderEntry GetNextCylinderEntry(string currCasingOrder)
        {
            CasingOrderTypeEnum currEnum = (CasingOrderTypeEnum)Enum.Parse(typeof(CasingOrderTypeEnum), currCasingOrder);

            if (currEnum == MaxCasingOrder)
            {
                return(null);
            }
            return(GetBlankCylinderEntry(currEnum + 1));
        }
Exemplo n.º 3
0
        private CylinderEntry GetBlankCylinderEntry(CasingOrderTypeEnum casingOrder)
        {
            CylinderEntry resultCylinderEntry =
                new CylinderEntry(casingChartService)
            {
                Id = Guid.Empty,
                CasingOrderType     = Enum.GetName(typeof(CasingOrderTypeEnum), casingOrder),
                OuterDiameter       = 0.0,
                Grade               = string.Empty,
                Weight              = 0.0,
                ActualMeasuredDepth = 0.0,
                MeasuredDepth       = 0.0,
                InnerDiameter       = 0.0,
                TopOfLiner          = 0.0,
                CalculatedVolume    = 0.0
            };

            return(resultCylinderEntry);
        }