Merge branch 'master' of http://192.168.0.12:13000/sc/Audit_APP
This commit is contained in:
commit
6bc5d12a29
2 files changed
+5
-4
No files matched your search
@@ -14,12 +14,12 @@ namespace Audit.ConvertMoels
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class ColorSQLConvert : IValueConverter
|
public class ColorSQLConvert : IValueConverter
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||||
{
|
{
|
||||||
if (value != null)
|
if (value != null)
|
||||||
{
|
{
|
||||||
string colorValue = string.Format("{0:X6}", value);//十进制RGB数值转十六进制六位RGB并补0位例“C0C0C0”
|
string colorValue = string.Format("{0:X6}", value);//十进制RGB数值转十六进制六位RGB并补0位例“C0C0C0”
|
||||||
/*string StuffColor = "#FF" + colorValue;//RGB数值拼接为ARGB数值(正向)*/
|
/*string StuffColor = "#FF" + colorValue;//RGB数值拼接为ARGB数值(正向)*/
|
||||||
string StuffColor_B = colorValue.Substring(0, 2);//获取蓝色参数
|
string StuffColor_B = colorValue.Substring(0, 2);//获取蓝色参数
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ using System.Drawing;
|
|||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using Models;
|
using Models;
|
||||||
using Audit.ViewModel;
|
using Audit.ViewModel;
|
||||||
|
using Audit.ConvertMoels;
|
||||||
|
|
||||||
namespace Audit.View
|
namespace Audit.View
|
||||||
{
|
{
|
||||||
@@ -63,7 +64,7 @@ namespace Audit.View
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (int_stuff_ProductType == 0)//判断是否为染料,非染料写空
|
if (int_stuff_ProductType == 0)//判断是否为染料,非染料写空
|
||||||
{
|
{
|
||||||
if (ColorCode_SQL >= 0) product.Color = ColorCode_SQL;//判断色彩数据是否有效,有效写入
|
if (ColorCode_SQL >= 0) product.Color = ColorCode_SQL;//判断色彩数据是否有效,有效写入
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user