1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
[NonAction] public string FRULE_NAME(int? Rule_number) { string result = ""; if (Rule_number != null) { switch (Rule_number) { case 0: result = "0.APPLICAT"; break; case 1: result = "1.ELIGIBILITY"; break; case 2: result = "2.DAY/TIME"; break; case 3: result = "3.SEASONS"; break; case 4: result = "4.ADV/TKT"; break; case 6: result = "6.MIN STAY"; break; case 7: result = "7.MAX STAY"; break; case 11: result = "11.BLACKOUT"; break; case 13: result = "13.ACCOMPAN"; break; case 14: result = "14.TVL RESTR"; break; case 15: result = "15.SALES RES"; break; case 16: result = "16.PENALTIES"; break; } } return result; } |