代码拉取完成,页面将自动刷新
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace ControllerClient
{
public class PervalueHelper
{
private readonly static string cash100 = "百元券";
private readonly static string cash50 = "五十元券";
private readonly static string cash20 = "二十元券";
private readonly static string cash10 = "十元券";
private readonly static string cash5 = "五元券";
private readonly static string cash1 = "一元券";
private static Decimal val100 = 100.00M;
private static Decimal val50 = 50.00M;
private static Decimal val20 = 20.00M;
private static Decimal val10 = 10.00M;
private static Decimal val5 = 5.00M;
private static Decimal val1 = 1.00M;
public static string getPervalue(int pervalueid)
{
switch (pervalueid)
{
case 1:
return cash100;
case 2:
return cash50;
case 3:
return cash20;
case 4:
return cash10;
case 5:
return cash5;
case 6:
return cash1;
}
return null;
}
public static Decimal getVal(int pervalueid)
{
switch (pervalueid)
{
case 1:
return val100;
case 2:
return val50;
case 3:
return val20;
case 4:
return val10;
case 5:
return val5;
case 6:
return val1;
}
return 0;
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。