Guest User

Untitled

a guest
Nov 17th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.26 KB | None | 0 0
  1.         public static class VoidReasonCodes
  2.         {
  3.             public const string AddressIssue = "AI";
  4.             public const string OutOfStock = "OS";
  5.             public const string PartReq = "PR";
  6.             public const string Other = "OT";
  7.             public const string CSIssue = "CS";
  8.             public const string NoReply = "NR";
  9.             public const string LostInTransit = "LT";
  10.             public const string DeliveryIssue = "DI";
  11.             public const string ReplacementRefused = "RR";
  12.             public const string ItemZoning = "IZ";
  13.             public const string PartPref = "PP";
  14.             public const string ItemIssue = "RI";
  15.         }        
  16.  
  17. public static class VoidNotes
  18.         {
  19.             public static string VoidAddressIssue = "Void email sent because of an address issue";
  20.             public static string VoidOutOfStock = "Void email sent because the item was out of stock";
  21.             public static string VoidPartReq = "Void email sent because of participant cancellation request";
  22.             public static string VoidOther = "Void email sent because of miscellaneous/other reason";
  23.             public static string NoReply = "Void email sent because of no reply";
  24.             public static string LostInTransit = "Void email sent because it was lost in transit";
  25.             public static string DeliveryIssue = "Void email sent because there was a delivery issue";
  26.             public static string CSIssue = "Void email sent because there was a CS issue";
  27.             public static string ReplacementRefused = "Void email sent because the replacement was refused";
  28.             public static string ItemZoning = "Void email sent because there was an item zoning issue";
  29.             public static string PartPref = "Void email sent because of participant preference";
  30.             public static string ItemIssue = "Void email sent because there was an item issue";
  31.         }
  32.  
  33.                         switch (voidReasonCode)
  34.                         {
  35.                             case Constants.VoidReasonCodes.AddressIssue:
  36.                                 note = Constants.VoidNotes.VoidAddressIssue;
  37.                                 break;
  38.                             case Constants.VoidReasonCodes.OutOfStock:
  39.                                 note = Constants.VoidNotes.VoidOutOfStock;
  40.                                 break;
  41.                             case Constants.VoidReasonCodes.PartReq:
  42.                                 note = Constants.VoidNotes.VoidPartReq;
  43.                                 break;
  44.                             case Constants.VoidReasonCodes.Other:
  45.                                 note = Constants.VoidNotes.VoidOther;
  46.                                 break;
  47.                             case Constants.VoidReasonCodes.CSIssue:
  48.                                 note = Constants.VoidNotes.CSIssue;
  49.                                 break;
  50.                             case Constants.VoidReasonCodes.NoReply:
  51.                                 note = Constants.VoidNotes.NoReply;
  52.                                 break;
  53.                             case Constants.VoidReasonCodes.LostInTransit:
  54.                                 note = Constants.VoidNotes.LostInTransit;
  55.                                 break;
  56.                             case Constants.VoidReasonCodes.DeliveryIssue:
  57.                                 note = Constants.VoidNotes.DeliveryIssue;
  58.                                 break;
  59.                             case Constants.VoidReasonCodes.ReplacementRefused:
  60.                                 note = Constants.VoidNotes.ReplacementRefused;
  61.                                 break;
  62.                             case Constants.VoidReasonCodes.ItemZoning:
  63.                                 note = Constants.VoidNotes.ItemZoning;
  64.                                 break;
  65.                                 break;
  66.                             case Constants.VoidReasonCodes.PartPref:
  67.                                 note = Constants.VoidNotes.PartPref;
  68.                                 break;
  69.                                 break;
  70.                             case Constants.VoidReasonCodes.ItemIssue:
  71.                                 note = Constants.VoidNotes.ItemIssue;
  72.                                 break;
  73.                         }
Add Comment
Please, Sign In to add comment