35 lines
835 B
C#
35 lines
835 B
C#
using System;
|
|
using Xylem.Common.CommonCore.Consts;
|
|
|
|
namespace Xylem.Common.Logic.ProductionOrderCore.OrderData
|
|
{
|
|
/// <summary>
|
|
/// Converter for region.
|
|
/// </summary>
|
|
public static class RegionConverter
|
|
{
|
|
/// <summary>
|
|
/// Convert region enumeration to name .
|
|
/// </summary>
|
|
public static String ConvertRegionEnumToRegionName(Region? regionId)
|
|
{
|
|
if (regionId == null) return Constants.StrWildcard;
|
|
|
|
switch (regionId)
|
|
{
|
|
case Region.EMEA:
|
|
return "EMEA";
|
|
|
|
case Region.NA:
|
|
return "NA";
|
|
|
|
case Region.China:
|
|
return "China";
|
|
|
|
default:
|
|
return Constants.StrWildcard;
|
|
}
|
|
}
|
|
}
|
|
}
|