Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class VoidReasonCodes
- {
- public const string AddressIssue = "AI";
- public const string OutOfStock = "OS";
- public const string PartReq = "PR";
- public const string Other = "OT";
- public const string CSIssue = "CS";
- public const string NoReply = "NR";
- public const string LostInTransit = "LT";
- public const string DeliveryIssue = "DI";
- public const string ReplacementRefused = "RR";
- public const string ItemZoning = "IZ";
- public const string PartPref = "PP";
- public const string ItemIssue = "RI";
- }
- public static class VoidNotes
- {
- public static string VoidAddressIssue = "Void email sent because of an address issue";
- public static string VoidOutOfStock = "Void email sent because the item was out of stock";
- public static string VoidPartReq = "Void email sent because of participant cancellation request";
- public static string VoidOther = "Void email sent because of miscellaneous/other reason";
- public static string NoReply = "Void email sent because of no reply";
- public static string LostInTransit = "Void email sent because it was lost in transit";
- public static string DeliveryIssue = "Void email sent because there was a delivery issue";
- public static string CSIssue = "Void email sent because there was a CS issue";
- public static string ReplacementRefused = "Void email sent because the replacement was refused";
- public static string ItemZoning = "Void email sent because there was an item zoning issue";
- public static string PartPref = "Void email sent because of participant preference";
- public static string ItemIssue = "Void email sent because there was an item issue";
- }
- switch (voidReasonCode)
- {
- case Constants.VoidReasonCodes.AddressIssue:
- note = Constants.VoidNotes.VoidAddressIssue;
- break;
- case Constants.VoidReasonCodes.OutOfStock:
- note = Constants.VoidNotes.VoidOutOfStock;
- break;
- case Constants.VoidReasonCodes.PartReq:
- note = Constants.VoidNotes.VoidPartReq;
- break;
- case Constants.VoidReasonCodes.Other:
- note = Constants.VoidNotes.VoidOther;
- break;
- case Constants.VoidReasonCodes.CSIssue:
- note = Constants.VoidNotes.CSIssue;
- break;
- case Constants.VoidReasonCodes.NoReply:
- note = Constants.VoidNotes.NoReply;
- break;
- case Constants.VoidReasonCodes.LostInTransit:
- note = Constants.VoidNotes.LostInTransit;
- break;
- case Constants.VoidReasonCodes.DeliveryIssue:
- note = Constants.VoidNotes.DeliveryIssue;
- break;
- case Constants.VoidReasonCodes.ReplacementRefused:
- note = Constants.VoidNotes.ReplacementRefused;
- break;
- case Constants.VoidReasonCodes.ItemZoning:
- note = Constants.VoidNotes.ItemZoning;
- break;
- break;
- case Constants.VoidReasonCodes.PartPref:
- note = Constants.VoidNotes.PartPref;
- break;
- break;
- case Constants.VoidReasonCodes.ItemIssue:
- note = Constants.VoidNotes.ItemIssue;
- break;
- }
Add Comment
Please, Sign In to add comment