机台设置页面
This commit is contained in:
commit
9e4d938ef8
7 files changed
+384
-17
No files matched your search
@@ -0,0 +1,78 @@
|
||||
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
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备类型数值转换器
|
||||
///
|
||||
/// </summary>
|
||||
internal class CategoriesSQLConvert : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
string Categories = System.Convert.ToString(value);
|
||||
if (Categories == "0")//类型
|
||||
{
|
||||
return "溢流";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Categories == "1")
|
||||
{
|
||||
return "气流";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Categories == "2")
|
||||
{
|
||||
return "轧染";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Categories == "3")
|
||||
{
|
||||
return "卷染";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Categories == "4")
|
||||
{
|
||||
return "喷染";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Categories == "5")
|
||||
{
|
||||
return "筒纱";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Categories == "7")
|
||||
{
|
||||
return "成衣";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "未知类型";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
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
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备数值转换器
|
||||
///
|
||||
/// </summary>
|
||||
internal class IndustrySQLConvert : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
string Industry = System.Convert.ToString(value);
|
||||
if (Industry == "0")//类型
|
||||
{
|
||||
return "浸染";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Industry == "1")
|
||||
{
|
||||
return "连染";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Industry == "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