Merge branch 'master' of http://www.scserverddns.top:13000/sc/formula_manage
This commit is contained in:
commit
9407221589
6 files changed
+480
-6
No files matched your search
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace formula_manage.ConvertMoels
|
||||
{
|
||||
internal class UserSQLConvert : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
string Capacity = System.Convert.ToString(value);
|
||||
if (Capacity == "0")//类型
|
||||
{
|
||||
return "停用";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Capacity == "1")
|
||||
{
|
||||
return "限制";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Capacity == "2")
|
||||
{
|
||||
return "启用";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
return "未知类型";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user