Ai
2 Star 0 Fork 0

lemonzhang/控制器软件

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
PervalueHelper.cs 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
lemonzhang 提交于 2021-05-04 21:29 +08:00 . 控制器软件-方案一
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;
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lemonzhang4/ControllerClient.git
git@gitee.com:lemonzhang4/ControllerClient.git
lemonzhang4
ControllerClient
控制器软件
master

搜索帮助