112 changed files with 2599 additions and 7874 deletions
@ -0,0 +1,46 @@ |
|||||
|
using Audit.View; |
||||
|
using Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Globalization; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using System.Windows.Data; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 统计消耗量变换器
|
||||
|
/// 输入:原料代码、时间区间
|
||||
|
/// 输出:消耗总量(KG)
|
||||
|
/// </summary>
|
||||
|
namespace Audit.ConvertMoels |
||||
|
{ |
||||
|
internal class ConsumptionConvert : IValueConverter |
||||
|
{ |
||||
|
private DyelotsBulkedRecipe dyelotsBulkedRecipe = new DyelotsBulkedRecipe(); |
||||
|
// public static string Code = null;
|
||||
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
||||
|
{ |
||||
|
if (string.IsNullOrWhiteSpace(StatisticsView.query_start)) StatisticsView.query_start = DateTime.Now.AddDays(-30).ToString("yyyy-MM-dd");//默认开始时间当前日期前30天
|
||||
|
if (string.IsNullOrWhiteSpace(StatisticsView.query_end)) StatisticsView.query_end = DateTime.Now.AddDays(1).ToString("yyyy-MM-dd");//默认结束时间当前日期后一天
|
||||
|
dyelotsBulkedRecipe.ProductCode = System.Convert.ToString(value);//传递原料代码
|
||||
|
dyelotsBulkedRecipe.DispenseStartTime = System.Convert.ToDateTime(StatisticsView.query_start);//传递开始时间
|
||||
|
dyelotsBulkedRecipe.DispenseEndTime = System.Convert.ToDateTime(StatisticsView.query_end);//传递结束时间
|
||||
|
float sum_grams = (float)new DyelotsBulkedRecipeProvider().SelectCode(dyelotsBulkedRecipe).Sum(x => x.DispenseGrams);//查询并返回统计结果
|
||||
|
if (sum_grams == 0)//统计结果为0返回空非0返回实际值
|
||||
|
{ |
||||
|
return null; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
float sum = sum_grams / 1000;//计算
|
||||
|
return sum.ToString("#0.00");//返回总成本两位小数(元)
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,47 @@ |
|||||
|
using Audit.View; |
||||
|
using Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Globalization; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using System.Windows.Data; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 统计成本变换器
|
||||
|
/// 输入:原料代码、原料价格、时间区间
|
||||
|
/// 输出:总成本
|
||||
|
/// </summary>
|
||||
|
namespace Audit.ConvertMoels |
||||
|
{ |
||||
|
internal class GramsSumConvert : IMultiValueConverter |
||||
|
{ |
||||
|
private DyelotsBulkedRecipe dyelotsBulkedRecipe = new DyelotsBulkedRecipe(); |
||||
|
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) |
||||
|
{ |
||||
|
string productcode = System.Convert.ToString(values[0]);//转换数组1的信息原料代码
|
||||
|
float price = System.Convert.ToSingle(values[1]);//转换数组2的信息单价
|
||||
|
if (string.IsNullOrWhiteSpace(StatisticsView.query_start)) StatisticsView.query_start = DateTime.Now.AddDays(-30).ToString("yyyy-MM-dd");//默认开始时间当前日期前30天
|
||||
|
if (string.IsNullOrWhiteSpace(StatisticsView.query_end)) StatisticsView.query_end = DateTime.Now.AddDays(1).ToString("yyyy-MM-dd");//默认结束时间当前日期后一天
|
||||
|
dyelotsBulkedRecipe.ProductCode = System.Convert.ToString(productcode);//传递原料代码
|
||||
|
dyelotsBulkedRecipe.DispenseStartTime = System.Convert.ToDateTime(StatisticsView.query_start);//传递开始时间
|
||||
|
dyelotsBulkedRecipe.DispenseEndTime = System.Convert.ToDateTime(StatisticsView.query_end);//传递结束时间
|
||||
|
float sum_grams = (float)new DyelotsBulkedRecipeProvider().SelectCode(dyelotsBulkedRecipe).Sum(x => x.DispenseGrams);//查询并返回统计结果
|
||||
|
if (sum_grams > 0 && price > 0) |
||||
|
{ |
||||
|
float sum = (sum_grams * price) / 1000;//计算
|
||||
|
return sum.ToString("#0.00");//返回总成本两位小数(元)
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
return null; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public object[] ConvertBack(object value, Type[] targetType, object parameter, CultureInfo culture) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,58 @@ |
|||||
|
using Audit.View; |
||||
|
using Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Globalization; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using System.Windows.Data; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 统计机台单料数变换器
|
||||
|
/// 输入:原料代码、机台代码、时间区间
|
||||
|
/// 输出:机台料单数
|
||||
|
/// </summary>
|
||||
|
namespace Audit.ConvertMoels |
||||
|
{ |
||||
|
internal class MachinesDyelotsNumberConvert : IValueConverter |
||||
|
{ |
||||
|
private Dyelots dyelots = new Dyelots(); |
||||
|
private DyelotsBulkedRecipe dyelotsBulkedRecipe = new DyelotsBulkedRecipe(); |
||||
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
||||
|
{ |
||||
|
string machines = System.Convert.ToString(value);//转换机台号
|
||||
|
if (string.IsNullOrWhiteSpace(StatisticsView.query_start)) StatisticsView.query_start = DateTime.Now.AddDays(-30).ToString("yyyy-MM-dd");//默认开始时间当前日期前30天
|
||||
|
if (string.IsNullOrWhiteSpace(StatisticsView.query_end)) StatisticsView.query_end = DateTime.Now.AddDays(1).ToString("yyyy-MM-dd");//默认结束时间当前日期后一天
|
||||
|
dyelots.Machine = System.Convert.ToString(machines);//传递机台
|
||||
|
//dyelots.StartTime = System.Convert.ToString(machines);
|
||||
|
//float sum_grams = (float)new DyelotsBulkedRecipeProvider().SelectCode(dyelotsBulkedRecipe).Sum(x => x.DispenseGrams);//查询并返回统计结果
|
||||
|
if (string.IsNullOrWhiteSpace(StatisticsView.DataGridStatistics_ProductCode))//原料代码名有效返回数据,无效返回空
|
||||
|
{ |
||||
|
return null; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
dyelotsBulkedRecipe.Dispenser = System.Convert.ToString(machines);//传递机台
|
||||
|
dyelotsBulkedRecipe.ProductCode = StatisticsView.DataGridStatistics_ProductCode; |
||||
|
dyelotsBulkedRecipe.DispenseStartTime = System.Convert.ToDateTime(StatisticsView.query_start); |
||||
|
dyelotsBulkedRecipe.DispenseEndTime = System.Convert.ToDateTime(StatisticsView.query_end); |
||||
|
float Machines_Number = (float)new DyelotsBulkedRecipeProvider().SelectMachineSUM(dyelotsBulkedRecipe).Count(t => t.ReDye == 0);//查询并返回统计结果
|
||||
|
if (Machines_Number == 0) |
||||
|
{ |
||||
|
return null; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
return Machines_Number; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) |
||||
|
{ |
||||
|
return null; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,57 @@ |
|||||
|
using Audit.View; |
||||
|
using Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Globalization; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using System.Windows.Data; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 统计机台消耗变换器
|
||||
|
/// 输入:原料代码、机台代码、时间区间
|
||||
|
/// 输出:机台消耗
|
||||
|
/// </summary>
|
||||
|
namespace Audit.ConvertMoels |
||||
|
{ |
||||
|
internal class MachinesGramsSumConvert : IValueConverter |
||||
|
{ |
||||
|
private Dyelots dyelots = new Dyelots(); |
||||
|
private DyelotsBulkedRecipe dyelotsBulkedRecipe = new DyelotsBulkedRecipe(); |
||||
|
|
||||
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
||||
|
{ |
||||
|
string machines = System.Convert.ToString(value);//转换机台号
|
||||
|
if (string.IsNullOrWhiteSpace(StatisticsView.query_start)) StatisticsView.query_start = DateTime.Now.AddDays(-30).ToString("yyyy-MM-dd");//默认开始时间当前日期前30天
|
||||
|
if (string.IsNullOrWhiteSpace(StatisticsView.query_end)) StatisticsView.query_end = DateTime.Now.AddDays(1).ToString("yyyy-MM-dd");//默认结束时间当前日期后一天
|
||||
|
if (string.IsNullOrWhiteSpace(StatisticsView.DataGridStatistics_ProductCode))//原料代码名有效返回数据,无效返回空
|
||||
|
{ |
||||
|
return null; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
dyelotsBulkedRecipe.Dispenser = System.Convert.ToString(machines);//传递机台
|
||||
|
dyelotsBulkedRecipe.ProductCode = StatisticsView.DataGridStatistics_ProductCode; |
||||
|
dyelotsBulkedRecipe.DispenseStartTime = System.Convert.ToDateTime(StatisticsView.query_start); |
||||
|
dyelotsBulkedRecipe.DispenseEndTime = System.Convert.ToDateTime(StatisticsView.query_end); |
||||
|
float Machines_sum = (float)new DyelotsBulkedRecipeProvider().SelectMachineSUM(dyelotsBulkedRecipe).Sum(x => x.DispenseGrams);//查询并返回统计结果
|
||||
|
if (Machines_sum == 0) |
||||
|
{ |
||||
|
return null; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
string Machines_grams_sum = (Machines_sum / 1000).ToString("#0.00"); |
||||
|
return Machines_grams_sum; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
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.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Controls; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 运行状态变换器
|
||||
|
/// 输入:状态码
|
||||
|
/// 输出:状态文字
|
||||
|
/// </summary>
|
||||
|
namespace Audit.ConvertMoels |
||||
|
{ |
||||
|
internal class StatenConvert : IValueConverter |
||||
|
{ |
||||
|
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
||||
|
{ |
||||
|
if (value == null) |
||||
|
{ |
||||
|
return null; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
string Staten = null; |
||||
|
string i = value.ToString(); |
||||
|
|
||||
|
if (i == "101") Staten = "准备就绪"; |
||||
|
if (i == "102") Staten = "计量输送"; |
||||
|
if (i == "201") Staten = "自动状态"; |
||||
|
if (i == "202") Staten = "转入排队"; |
||||
|
if (i == "203") Staten = "等待命令"; |
||||
|
if (i == "301") Staten = "工单完成"; |
||||
|
if (i == "309") Staten = "输送异常"; |
||||
|
|
||||
|
return Staten; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,40 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Controls; |
||||
|
|
||||
|
namespace Audit.ConvertMoels |
||||
|
{ |
||||
|
internal class StatenERRConvert : IValueConverter |
||||
|
{ |
||||
|
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
||||
|
{ |
||||
|
if (value == null) |
||||
|
{ |
||||
|
return null; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
if (value.ToString() == "309") |
||||
|
{ |
||||
|
return "red";//零返回红色
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
return "black";//非零返回黑色
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
using Audit.View; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Globalization; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using System.Windows.Data; |
||||
|
|
||||
|
namespace Audit.ConvertMoels |
||||
|
{ |
||||
|
internal class SumSQLConvert : IValueConverter |
||||
|
{ |
||||
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
||||
|
{ |
||||
|
string a = StatisticsView.query_start; |
||||
|
string b = StatisticsView.query_end; |
||||
|
return null; |
||||
|
} |
||||
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) |
||||
|
{ |
||||
|
return null; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -1,29 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class AuxDslvQueue |
|
||||
{ |
|
||||
public Nullable<int> TankNo { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string Station { get; set; } |
|
||||
public Nullable<int> Industry { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public string Machine { get; set; } |
|
||||
public string Volume { get; set; } |
|
||||
public Nullable<int> ShelfID { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,29 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class AuxDslvQueueHistory |
|
||||
{ |
|
||||
public Nullable<int> TankNo { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string Station { get; set; } |
|
||||
public Nullable<int> Industry { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public string Machine { get; set; } |
|
||||
public string Volume { get; set; } |
|
||||
public Nullable<int> ShelfID { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,26 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class BucketCrane |
|
||||
{ |
|
||||
public string Dyelot { get; set; } |
|
||||
public Nullable<int> ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> DevideNo { get; set; } |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public string DID { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,26 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class BucketCraneHistory |
|
||||
{ |
|
||||
public string Dyelot { get; set; } |
|
||||
public Nullable<int> ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> DevideNo { get; set; } |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public string DID { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,24 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class BucketInfo |
|
||||
{ |
|
||||
public int BucketNo { get; set; } |
|
||||
public string DID { get; set; } |
|
||||
public Nullable<System.DateTime> StartTime { get; set; } |
|
||||
public Nullable<System.DateTime> EndTime { get; set; } |
|
||||
public Nullable<int> Used { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,35 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class BucketShelf |
|
||||
{ |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public Nullable<int> ShelfID { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string Station { get; set; } |
|
||||
public string DID { get; set; } |
|
||||
public Nullable<int> TotalBuckets { get; set; } |
|
||||
public Nullable<int> DevideNo { get; set; } |
|
||||
public Nullable<int> XPos { get; set; } |
|
||||
public Nullable<int> YPos { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<System.DateTime> OnShelfTime { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
public Nullable<int> Locked { get; set; } |
|
||||
public string ProductCode { get; set; } |
|
||||
public string OriginDyelot { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,35 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class BucketShelfHistory |
|
||||
{ |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public Nullable<int> ShelfID { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string Station { get; set; } |
|
||||
public string DID { get; set; } |
|
||||
public Nullable<int> TotalBuckets { get; set; } |
|
||||
public Nullable<int> DevideNo { get; set; } |
|
||||
public Nullable<int> XPos { get; set; } |
|
||||
public Nullable<int> YPos { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<System.DateTime> OnShelfTime { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
public Nullable<int> Locked { get; set; } |
|
||||
public string ProductCode { get; set; } |
|
||||
public string OriginDyelot { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,29 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class BucketShelfQueue |
|
||||
{ |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public Nullable<int> ShelfID { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> TotalBuckets { get; set; } |
|
||||
public Nullable<int> DevideNo { get; set; } |
|
||||
public Nullable<int> XPos { get; set; } |
|
||||
public Nullable<int> YPos { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,29 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class BucketShelfQueueHistory |
|
||||
{ |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public Nullable<int> ShelfID { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> TotalBuckets { get; set; } |
|
||||
public Nullable<int> DevideNo { get; set; } |
|
||||
public Nullable<int> XPos { get; set; } |
|
||||
public Nullable<int> YPos { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,21 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class CleanDevice |
|
||||
{ |
|
||||
public string ID { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<int> Enabled { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,40 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DBRDetail |
|
||||
{ |
|
||||
public long ID { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int Redye { get; set; } |
|
||||
public int StepNumber { get; set; } |
|
||||
public string ProductCode { get; set; } |
|
||||
public string ProductName { get; set; } |
|
||||
public Nullable<double> Grams { get; set; } |
|
||||
public Nullable<double> DispenseGrams { get; set; } |
|
||||
public Nullable<int> Buckets { get; set; } |
|
||||
public System.DateTime DispenseStartTime { get; set; } |
|
||||
public Nullable<System.DateTime> DispenseEndTime { get; set; } |
|
||||
public Nullable<int> DispenseSeconds { get; set; } |
|
||||
public Nullable<System.DateTime> ProductStartTime { get; set; } |
|
||||
public Nullable<System.DateTime> ProductEndTime { get; set; } |
|
||||
public Nullable<int> ProductSeconds { get; set; } |
|
||||
public Nullable<double> LDXGrams { get; set; } |
|
||||
public Nullable<int> LDXBuckets { get; set; } |
|
||||
public Nullable<int> IsDeduct { get; set; } |
|
||||
public Nullable<int> DeductBox { get; set; } |
|
||||
public string BoxNo { get; set; } |
|
||||
public Nullable<int> DispenseResult { get; set; } |
|
||||
public Nullable<double> BucketWeight { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,34 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DispenserEvent |
|
||||
{ |
|
||||
public int EventID { get; set; } |
|
||||
public Nullable<int> EventType { get; set; } |
|
||||
public string Dispenser { get; set; } |
|
||||
public string Device { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public Nullable<int> ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> Code { get; set; } |
|
||||
public string Description { get; set; } |
|
||||
public string Description_BIG { get; set; } |
|
||||
public string Description_GB { get; set; } |
|
||||
public Nullable<System.DateTime> CreateDate { get; set; } |
|
||||
public Nullable<System.DateTime> ConfirmDate { get; set; } |
|
||||
public Nullable<System.DateTime> FinishDate { get; set; } |
|
||||
public string Shift { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,24 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DispenserLifeStatus |
|
||||
{ |
|
||||
public string Dispenser { get; set; } |
|
||||
public string Device { get; set; } |
|
||||
public Nullable<int> HeartBeat { get; set; } |
|
||||
public Nullable<int> LifeTime { get; set; } |
|
||||
public Nullable<System.DateTime> UpdateDate { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,27 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DispenserUtilization |
|
||||
{ |
|
||||
public string Dispenser { get; set; } |
|
||||
public string Device { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public Nullable<int> ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<System.DateTime> UtilStartDate { get; set; } |
|
||||
public Nullable<System.DateTime> UtilEndDate { get; set; } |
|
||||
public Nullable<int> UtilTimes { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,37 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class Dispensers |
|
||||
{ |
|
||||
public string Name { get; set; } |
|
||||
public string Description { get; set; } |
|
||||
public string Device { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public Nullable<int> ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string Station { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public string Status { get; set; } |
|
||||
public string Action { get; set; } |
|
||||
public string ProductCode { get; set; } |
|
||||
public Nullable<int> SN { get; set; } |
|
||||
public Nullable<int> Automatic { get; set; } |
|
||||
public Nullable<int> Enabled { get; set; } |
|
||||
public Nullable<int> HeartBeat { get; set; } |
|
||||
public Nullable<int> CheckPeriod { get; set; } |
|
||||
public Nullable<System.DateTime> UpdateDate { get; set; } |
|
||||
public Nullable<System.DateTime> CreateDate { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,29 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DissolveArt |
|
||||
{ |
|
||||
public string Name { get; set; } |
|
||||
public Nullable<int> ProductClass { get; set; } |
|
||||
public Nullable<double> LiquidRatio { get; set; } |
|
||||
public Nullable<double> MinWeight { get; set; } |
|
||||
public Nullable<double> MaxWeight { get; set; } |
|
||||
public Nullable<int> DissolveTemperature { get; set; } |
|
||||
public Nullable<int> UseLiquidDye { get; set; } |
|
||||
public Nullable<int> UseChemical { get; set; } |
|
||||
public string Process { get; set; } |
|
||||
public Nullable<int> TankSize { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,29 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DissolveArtHistory |
|
||||
{ |
|
||||
public string Name { get; set; } |
|
||||
public Nullable<int> ProductClass { get; set; } |
|
||||
public Nullable<double> LiquidRatio { get; set; } |
|
||||
public Nullable<double> MinWeight { get; set; } |
|
||||
public Nullable<double> MaxWeight { get; set; } |
|
||||
public Nullable<int> DissolveTemperature { get; set; } |
|
||||
public Nullable<int> UseLiquidDye { get; set; } |
|
||||
public Nullable<int> UseChemical { get; set; } |
|
||||
public string Process { get; set; } |
|
||||
public Nullable<int> TankSize { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,24 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DyelotBucketSummary |
|
||||
{ |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> TotalBuckets { get; set; } |
|
||||
public Nullable<int> Final { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,28 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DyelotBuckets |
|
||||
{ |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> DevideNo { get; set; } |
|
||||
public string ProductCode { get; set; } |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public string DID { get; set; } |
|
||||
public Nullable<int> Final { get; set; } |
|
||||
public Nullable<int> Dissolved { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,28 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DyelotBucketsHistory |
|
||||
{ |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> DevideNo { get; set; } |
|
||||
public string ProductCode { get; set; } |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public string DID { get; set; } |
|
||||
public Nullable<int> Final { get; set; } |
|
||||
public Nullable<int> Dissolved { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,40 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DyelotDetail |
|
||||
{ |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string Station { get; set; } |
|
||||
public string ProductCode { get; set; } |
|
||||
public string ProductName { get; set; } |
|
||||
public int ProductType { get; set; } |
|
||||
public Nullable<double> Grams { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
public Nullable<int> SN { get; set; } |
|
||||
public Nullable<System.DateTime> DispenseTime { get; set; } |
|
||||
public Nullable<double> DispenseGrams { get; set; } |
|
||||
public Nullable<double> CurrDispGrams { get; set; } |
|
||||
public Nullable<int> LADispenseResult { get; set; } |
|
||||
public Nullable<int> Error { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
public string Volume { get; set; } |
|
||||
public Nullable<int> CurrDispTime { get; set; } |
|
||||
public string CurrVolume { get; set; } |
|
||||
public string RemainVolume { get; set; } |
|
||||
public Nullable<double> FinalPickup { get; set; } |
|
||||
public Nullable<int> LFManual { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,29 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DyelotDslvQueue |
|
||||
{ |
|
||||
public Nullable<int> TankNo { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> TotalBuckets { get; set; } |
|
||||
public Nullable<int> DivideNo { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<int> ShelfID { get; set; } |
|
||||
public Nullable<System.DateTime> SchDispenseTime { get; set; } |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,29 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DyelotDslvQueueHistory |
|
||||
{ |
|
||||
public Nullable<int> TankNo { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> TotalBuckets { get; set; } |
|
||||
public Nullable<int> DivideNo { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<int> ShelfID { get; set; } |
|
||||
public Nullable<System.DateTime> SchDispenseTime { get; set; } |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,65 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DyelotHead |
|
||||
{ |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<System.DateTime> StartTime { get; set; } |
|
||||
public Nullable<System.DateTime> EndTime { get; set; } |
|
||||
public Nullable<System.DateTime> CreationTime { get; set; } |
|
||||
public string TotalVolume { get; set; } |
|
||||
public Nullable<int> DispenseTimes { get; set; } |
|
||||
public Nullable<int> CurrDispTime { get; set; } |
|
||||
public string CurrTotalVolume { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<short> Sequence { get; set; } |
|
||||
public Nullable<int> Color { get; set; } |
|
||||
public Nullable<double> PickUp { get; set; } |
|
||||
public Nullable<double> GramsYard { get; set; } |
|
||||
public Nullable<double> TotalLength { get; set; } |
|
||||
public Nullable<double> FabricWidth { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
public string RefTotalVolume { get; set; } |
|
||||
public string RestVolume { get; set; } |
|
||||
public string LFDefine { get; set; } |
|
||||
public string Machine { get; set; } |
|
||||
public Nullable<int> Blocked { get; set; } |
|
||||
public Nullable<int> Industry { get; set; } |
|
||||
public string Volume { get; set; } |
|
||||
public Nullable<double> StandardTime { get; set; } |
|
||||
public Nullable<int> LFArt { get; set; } |
|
||||
public string RemainVolume { get; set; } |
|
||||
public Nullable<double> FinalPickUp { get; set; } |
|
||||
public Nullable<int> LFWasher { get; set; } |
|
||||
public string ActualTotalVolume { get; set; } |
|
||||
public Nullable<double> ActualTotalLength { get; set; } |
|
||||
public Nullable<double> UsedPickup { get; set; } |
|
||||
public string RemainPadderVol { get; set; } |
|
||||
public Nullable<System.DateTime> ExecuteTime { get; set; } |
|
||||
public string RealAdd1 { get; set; } |
|
||||
public string RealAdd2 { get; set; } |
|
||||
public string RealAdd3 { get; set; } |
|
||||
public string RealAdd4 { get; set; } |
|
||||
public string RealAdd5 { get; set; } |
|
||||
public string PromptAdd1 { get; set; } |
|
||||
public string PromptAdd2 { get; set; } |
|
||||
public string PromptAdd3 { get; set; } |
|
||||
public string PromptAdd4 { get; set; } |
|
||||
public string PromptAdd5 { get; set; } |
|
||||
public Nullable<int> StartButton { get; set; } |
|
||||
public Nullable<int> EndButton { get; set; } |
|
||||
public string MergerVol { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,38 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DyelotsBatch |
|
||||
{ |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string Station { get; set; } |
|
||||
public Nullable<int> ShotNo { get; set; } |
|
||||
public string ProductCode { get; set; } |
|
||||
public Nullable<int> SN { get; set; } |
|
||||
public Nullable<double> Grams { get; set; } |
|
||||
public Nullable<System.DateTime> DispenseStartTime { get; set; } |
|
||||
public Nullable<System.DateTime> DispenseEndTime { get; set; } |
|
||||
public Nullable<double> DispenseGrams { get; set; } |
|
||||
public Nullable<int> LADispenseResult { get; set; } |
|
||||
public Nullable<System.DateTime> DyeWeightTime { get; set; } |
|
||||
public string Process { get; set; } |
|
||||
public string FinalProcess { get; set; } |
|
||||
public Nullable<int> DispenseWater { get; set; } |
|
||||
public Nullable<int> DrainWater { get; set; } |
|
||||
public Nullable<int> DissolveTemperature { get; set; } |
|
||||
public Nullable<System.DateTime> SchDispenseTime { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,68 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DyelotsBulkedRecipeHistory |
|
||||
{ |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string Station { get; set; } |
|
||||
public Nullable<int> DevideNo { get; set; } |
|
||||
public Nullable<int> ShotNo { get; set; } |
|
||||
public string ProductCode { get; set; } |
|
||||
public string ProductName { get; set; } |
|
||||
public Nullable<int> ProductType { get; set; } |
|
||||
public string ProductLot { get; set; } |
|
||||
public Nullable<int> ProductClass { get; set; } |
|
||||
public Nullable<int> SN { get; set; } |
|
||||
public string Amount { get; set; } |
|
||||
public Nullable<double> Grams { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
public Nullable<System.DateTime> DispenseStartTime { get; set; } |
|
||||
public Nullable<System.DateTime> DispenseEndTime { get; set; } |
|
||||
public Nullable<System.DateTime> DispenseTime { get; set; } |
|
||||
public Nullable<double> DispenseGrams { get; set; } |
|
||||
public Nullable<int> DispenseResult { get; set; } |
|
||||
public Nullable<int> LADispenseResult { get; set; } |
|
||||
public string Volume { get; set; } |
|
||||
public Nullable<int> HostRead { get; set; } |
|
||||
public string State { get; set; } |
|
||||
public Nullable<int> NeedDispense { get; set; } |
|
||||
public Nullable<int> MixTankNo { get; set; } |
|
||||
public Nullable<System.DateTime> DyeWeightTime { get; set; } |
|
||||
public string Process { get; set; } |
|
||||
public string FinalProcess { get; set; } |
|
||||
public string Dispenser { get; set; } |
|
||||
public Nullable<int> TankNo { get; set; } |
|
||||
public Nullable<int> Error { get; set; } |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public string DID { get; set; } |
|
||||
public Nullable<int> StepDevideNo { get; set; } |
|
||||
public Nullable<int> StepTotalBuckets { get; set; } |
|
||||
public string ReferenceDyelot { get; set; } |
|
||||
public Nullable<int> DispenseWater { get; set; } |
|
||||
public Nullable<int> DrainWater { get; set; } |
|
||||
public Nullable<int> DissolveTemperature { get; set; } |
|
||||
public Nullable<System.DateTime> SchDispenseTime { get; set; } |
|
||||
public Nullable<System.DateTime> FinishTime { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
public string Tagged { get; set; } |
|
||||
public Nullable<int> TotalBuckets { get; set; } |
|
||||
public Nullable<int> Final { get; set; } |
|
||||
public Nullable<int> DissolveManual { get; set; } |
|
||||
public Nullable<int> DeductTotalBuckets { get; set; } |
|
||||
public Nullable<int> DeductBuckets { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,52 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DyelotsHistory |
|
||||
{ |
|
||||
public int ID { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> Industry { get; set; } |
|
||||
public string Machine { get; set; } |
|
||||
public string DispenseMachine { get; set; } |
|
||||
public Nullable<System.DateTime> StartTime { get; set; } |
|
||||
public Nullable<System.DateTime> EndTime { get; set; } |
|
||||
public Nullable<double> StandardTime { get; set; } |
|
||||
public Nullable<int> TotalShot { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<int> Blocked { get; set; } |
|
||||
public string Program { get; set; } |
|
||||
public Nullable<int> Color { get; set; } |
|
||||
public Nullable<System.DateTime> CreationTime { get; set; } |
|
||||
public string Batch { get; set; } |
|
||||
public string OrderNo { get; set; } |
|
||||
public Nullable<double> TotalWeight { get; set; } |
|
||||
public string LiquidRatio { get; set; } |
|
||||
public string TotalVolume { get; set; } |
|
||||
public Nullable<int> AcidQty { get; set; } |
|
||||
public Nullable<int> ActualAcidQty { get; set; } |
|
||||
public Nullable<int> Sequence { get; set; } |
|
||||
public Nullable<int> DispenseMode { get; set; } |
|
||||
public Nullable<int> DyeDissolve { get; set; } |
|
||||
public Nullable<int> CheDissolve { get; set; } |
|
||||
public Nullable<int> TotalBuckets { get; set; } |
|
||||
public Nullable<int> SpcTotalBuckets { get; set; } |
|
||||
public Nullable<int> DissolveMethod { get; set; } |
|
||||
public string ReferenceDyelot { get; set; } |
|
||||
public Nullable<int> Final { get; set; } |
|
||||
public Nullable<int> Shade { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,26 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DyelotsInAuto |
|
||||
{ |
|
||||
public string Machine { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public Nullable<int> ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> DyeState { get; set; } |
|
||||
public Nullable<System.DateTime> SchDispenseTime { get; set; } |
|
||||
public Nullable<int> IsCheck { get; set; } |
|
||||
public Nullable<int> Shade { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,26 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class DyelotsInAutoHistory |
|
||||
{ |
|
||||
public string Machine { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public Nullable<int> ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> DyeState { get; set; } |
|
||||
public Nullable<System.DateTime> SchDispenseTime { get; set; } |
|
||||
public Nullable<int> IsCheck { get; set; } |
|
||||
public Nullable<int> Shade { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,23 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class EventList |
|
||||
{ |
|
||||
public Nullable<int> Code { get; set; } |
|
||||
public string Description { get; set; } |
|
||||
public string Description_BIG { get; set; } |
|
||||
public string Description_GB { get; set; } |
|
||||
public Nullable<System.DateTime> CreateDate { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,23 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class LA571Tanks |
|
||||
{ |
|
||||
public string Name { get; set; } |
|
||||
public string Station { get; set; } |
|
||||
public Nullable<int> Tank { get; set; } |
|
||||
public Nullable<double> Volume { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,27 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class LabDyeDslvQueue |
|
||||
{ |
|
||||
public Nullable<int> TankNo { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<int> ShelfID { get; set; } |
|
||||
public Nullable<int> DistID { get; set; } |
|
||||
public Nullable<System.DateTime> SchDispenseTime { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,27 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class LabDyeDslvQueueHistory |
|
||||
{ |
|
||||
public Nullable<int> TankNo { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<int> ShelfID { get; set; } |
|
||||
public Nullable<int> DistID { get; set; } |
|
||||
public Nullable<System.DateTime> SchDispenseTime { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,41 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class MachineState |
|
||||
{ |
|
||||
public string Machine { get; set; } |
|
||||
public string DispenseDyelot { get; set; } |
|
||||
public Nullable<int> DispenseReDye { get; set; } |
|
||||
public Nullable<int> ChemicalCallOff { get; set; } |
|
||||
public Nullable<int> ChemicalState { get; set; } |
|
||||
public Nullable<int> ChemicalTank { get; set; } |
|
||||
public Nullable<int> ChemicalTankSize { get; set; } |
|
||||
public string ChemicalDispenser { get; set; } |
|
||||
public Nullable<int> ChemicalError { get; set; } |
|
||||
public Nullable<int> ChemicalTargetSelect { get; set; } |
|
||||
public Nullable<int> DyeCallOff { get; set; } |
|
||||
public Nullable<int> DyeState { get; set; } |
|
||||
public Nullable<int> DyeTank { get; set; } |
|
||||
public Nullable<int> DyeTankSize { get; set; } |
|
||||
public string DyeDispenser { get; set; } |
|
||||
public Nullable<int> DyeError { get; set; } |
|
||||
public Nullable<int> PowderCallOff { get; set; } |
|
||||
public Nullable<int> PowderState { get; set; } |
|
||||
public Nullable<int> PowderTank { get; set; } |
|
||||
public Nullable<int> PowderTankSize { get; set; } |
|
||||
public string PowderDispenser { get; set; } |
|
||||
public Nullable<int> PowderError { get; set; } |
|
||||
public Nullable<int> HostRead { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,42 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class MachineStateHistory |
|
||||
{ |
|
||||
public string Machine { get; set; } |
|
||||
public string DispenseDyelot { get; set; } |
|
||||
public Nullable<int> DispenseReDye { get; set; } |
|
||||
public Nullable<int> ChemicalCallOff { get; set; } |
|
||||
public Nullable<int> ChemicalState { get; set; } |
|
||||
public Nullable<int> ChemicalTank { get; set; } |
|
||||
public Nullable<int> ChemicalTankSize { get; set; } |
|
||||
public string ChemicalDispenser { get; set; } |
|
||||
public Nullable<int> ChemicalError { get; set; } |
|
||||
public Nullable<int> ChemicalTargetSelect { get; set; } |
|
||||
public Nullable<int> DyeCallOff { get; set; } |
|
||||
public Nullable<int> DyeState { get; set; } |
|
||||
public Nullable<int> DyeTank { get; set; } |
|
||||
public Nullable<int> DyeTankSize { get; set; } |
|
||||
public string DyeDispenser { get; set; } |
|
||||
public Nullable<int> DyeError { get; set; } |
|
||||
public Nullable<int> PowderCallOff { get; set; } |
|
||||
public Nullable<int> PowderState { get; set; } |
|
||||
public Nullable<int> PowderTank { get; set; } |
|
||||
public Nullable<int> PowderTankSize { get; set; } |
|
||||
public string PowderDispenser { get; set; } |
|
||||
public Nullable<int> PowderError { get; set; } |
|
||||
public Nullable<int> HostRead { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,50 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class MachinesHistory |
|
||||
{ |
|
||||
public string Machine { get; set; } |
|
||||
public string DispenseDyelot { get; set; } |
|
||||
public Nullable<int> DispenseReDye { get; set; } |
|
||||
public Nullable<int> ChemicalCallOff { get; set; } |
|
||||
public Nullable<int> ChemicalState { get; set; } |
|
||||
public Nullable<int> ChemicalTank { get; set; } |
|
||||
public Nullable<int> ChemicalTankSize { get; set; } |
|
||||
public string ChemicalDispenser { get; set; } |
|
||||
public Nullable<int> ChemicalError { get; set; } |
|
||||
public Nullable<int> ChemicalCallOff2 { get; set; } |
|
||||
public Nullable<int> ChemicalState2 { get; set; } |
|
||||
public Nullable<int> ChemicalTank2 { get; set; } |
|
||||
public Nullable<int> DyeCallOff { get; set; } |
|
||||
public Nullable<int> DyeState { get; set; } |
|
||||
public Nullable<int> DyeTank { get; set; } |
|
||||
public Nullable<int> DyeTankSize { get; set; } |
|
||||
public string DyeDispenser { get; set; } |
|
||||
public Nullable<int> DyeError { get; set; } |
|
||||
public Nullable<int> PowderCallOff { get; set; } |
|
||||
public Nullable<int> PowderState { get; set; } |
|
||||
public Nullable<int> PowderTank { get; set; } |
|
||||
public Nullable<int> PowderTankSize { get; set; } |
|
||||
public string PowderDispenser { get; set; } |
|
||||
public Nullable<int> PowderError { get; set; } |
|
||||
public Nullable<int> HostRead { get; set; } |
|
||||
public string DyeDispenseDyelot { get; set; } |
|
||||
public Nullable<int> DyeDispenseReDye { get; set; } |
|
||||
public string CheDispenseDyelot { get; set; } |
|
||||
public Nullable<int> CheDispenseReDye { get; set; } |
|
||||
public string PwdDispenseDyelot { get; set; } |
|
||||
public Nullable<int> PwdDispenseReDye { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,46 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class MachinesHistoryOld |
|
||||
{ |
|
||||
public string Machine { get; set; } |
|
||||
public string DispenseDyelot { get; set; } |
|
||||
public Nullable<int> DispenseReDye { get; set; } |
|
||||
public Nullable<int> ChemicalCallOff { get; set; } |
|
||||
public Nullable<int> ChemicalState { get; set; } |
|
||||
public Nullable<int> ChemicalTank { get; set; } |
|
||||
public Nullable<int> ChemicalTankSize { get; set; } |
|
||||
public string ChemicalDispenser { get; set; } |
|
||||
public Nullable<int> ChemicalError { get; set; } |
|
||||
public Nullable<int> ChemicalCallOff2 { get; set; } |
|
||||
public Nullable<int> ChemicalState2 { get; set; } |
|
||||
public Nullable<int> ChemicalTank2 { get; set; } |
|
||||
public Nullable<int> DyeCallOff { get; set; } |
|
||||
public Nullable<int> DyeState { get; set; } |
|
||||
public Nullable<int> DyeTank { get; set; } |
|
||||
public Nullable<int> DyeTankSize { get; set; } |
|
||||
public string DyeDispenser { get; set; } |
|
||||
public Nullable<int> DyeError { get; set; } |
|
||||
public Nullable<int> PowderCallOff { get; set; } |
|
||||
public Nullable<int> PowderState { get; set; } |
|
||||
public Nullable<int> PowderTank { get; set; } |
|
||||
public Nullable<int> PowderTankSize { get; set; } |
|
||||
public string PowderDispenser { get; set; } |
|
||||
public Nullable<int> PowderError { get; set; } |
|
||||
public Nullable<int> HostRead { get; set; } |
|
||||
public string DyeDispenseDyelot { get; set; } |
|
||||
public Nullable<int> DyeDispenseReDye { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,28 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class ManualWeightQueue |
|
||||
{ |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<System.DateTime> CallTime { get; set; } |
|
||||
public Nullable<int> Module { get; set; } |
|
||||
public string ModuleName { get; set; } |
|
||||
public string Area { get; set; } |
|
||||
public Nullable<System.DateTime> EndTime { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,28 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class ManualWeightQueueHistory |
|
||||
{ |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<System.DateTime> CallTime { get; set; } |
|
||||
public Nullable<int> Module { get; set; } |
|
||||
public string ModuleName { get; set; } |
|
||||
public string Area { get; set; } |
|
||||
public Nullable<System.DateTime> EndTime { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,33 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class PartsStatus |
|
||||
{ |
|
||||
public string CUST_CODE { get; set; } |
|
||||
public string Dispenser { get; set; } |
|
||||
public string Device { get; set; } |
|
||||
public string PartsCode { get; set; } |
|
||||
public string PartsName { get; set; } |
|
||||
public Nullable<int> PartsType { get; set; } |
|
||||
public string Description { get; set; } |
|
||||
public Nullable<int> FactoryValue { get; set; } |
|
||||
public Nullable<int> UsedCount { get; set; } |
|
||||
public Nullable<int> RunningTime { get; set; } |
|
||||
public Nullable<System.DateTime> ResetDate { get; set; } |
|
||||
public Nullable<System.DateTime> WarnDate { get; set; } |
|
||||
public Nullable<System.DateTime> UpdateDate { get; set; } |
|
||||
public Nullable<System.DateTime> CreateDate { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,33 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class PartsStatusHistory |
|
||||
{ |
|
||||
public string CUST_CODE { get; set; } |
|
||||
public string Dispenser { get; set; } |
|
||||
public string Device { get; set; } |
|
||||
public string PartsCode { get; set; } |
|
||||
public string PartsName { get; set; } |
|
||||
public Nullable<int> PartsType { get; set; } |
|
||||
public string Description { get; set; } |
|
||||
public Nullable<int> FactoryValue { get; set; } |
|
||||
public Nullable<int> UsedCount { get; set; } |
|
||||
public Nullable<int> RunningTime { get; set; } |
|
||||
public Nullable<System.DateTime> ResetDate { get; set; } |
|
||||
public Nullable<System.DateTime> WarnDate { get; set; } |
|
||||
public Nullable<System.DateTime> UpdateDate { get; set; } |
|
||||
public Nullable<System.DateTime> CreateDate { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,29 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class PipeRefill |
|
||||
{ |
|
||||
public string ProductCode { get; set; } |
|
||||
public string ProductName { get; set; } |
|
||||
public Nullable<int> ProductType { get; set; } |
|
||||
public string ProductLot { get; set; } |
|
||||
public string Dispenser { get; set; } |
|
||||
public Nullable<int> No { get; set; } |
|
||||
public Nullable<double> Qty { get; set; } |
|
||||
public Nullable<double> Percentage { get; set; } |
|
||||
public Nullable<System.DateTime> RefillTime { get; set; } |
|
||||
public Nullable<System.DateTime> AlarmTime { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,29 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class PipeRefillHistory |
|
||||
{ |
|
||||
public string ProductCode { get; set; } |
|
||||
public string ProductName { get; set; } |
|
||||
public Nullable<int> ProductType { get; set; } |
|
||||
public string ProductLot { get; set; } |
|
||||
public string Dispenser { get; set; } |
|
||||
public Nullable<int> No { get; set; } |
|
||||
public Nullable<double> Qty { get; set; } |
|
||||
public Nullable<double> Percentage { get; set; } |
|
||||
public Nullable<System.DateTime> RefillTime { get; set; } |
|
||||
public Nullable<System.DateTime> AlarmTime { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -0,0 +1,49 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace Models |
||||
|
{ |
||||
|
public class PipesProvider : IProvider<Pipes> |
||||
|
{ |
||||
|
private readonly BatchDyeingCentralEntities db = new BatchDyeingCentralEntities(); |
||||
|
|
||||
|
public int Delete(Pipes t) |
||||
|
{ |
||||
|
if (t == null) return 0; |
||||
|
var model = db.Pipes.ToList().FirstOrDefault(item => t.ProductCode == item.ProductCode); |
||||
|
if (model == null) return 0; |
||||
|
db.Pipes.Remove(model); |
||||
|
int count = db.SaveChanges(); |
||||
|
return count; |
||||
|
} |
||||
|
|
||||
|
public int Insert(Pipes t) |
||||
|
{ |
||||
|
if (t == null) return 0; |
||||
|
if (String.IsNullOrEmpty(t.ProductCode)) return 0; |
||||
|
db.Pipes.Add(t); |
||||
|
int count = db.SaveChanges(); |
||||
|
return count; |
||||
|
} |
||||
|
|
||||
|
public List<Pipes> Select() |
||||
|
{ |
||||
|
string sqlselect = "select * from Pipes "; |
||||
|
return db.Pipes.SqlQuery(sqlselect).ToList(); |
||||
|
} |
||||
|
|
||||
|
public List<Pipes> Selectsql(Pipes t) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
|
||||
|
public int Update(Pipes t) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -1,30 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class ProductLocation |
|
||||
{ |
|
||||
public string ProductCode { get; set; } |
|
||||
public string ProductName { get; set; } |
|
||||
public string Type { get; set; } |
|
||||
public string Dispenser { get; set; } |
|
||||
public Nullable<int> Position { get; set; } |
|
||||
public string TablePosition { get; set; } |
|
||||
public Nullable<System.DateTime> StockDate { get; set; } |
|
||||
public Nullable<double> StockUsage { get; set; } |
|
||||
public Nullable<double> StockOnHand { get; set; } |
|
||||
public string Alarm { get; set; } |
|
||||
public Nullable<System.DateTime> AlarmTime { get; set; } |
|
||||
public Nullable<int> Enabled { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,31 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class ProductLocationHistory |
|
||||
{ |
|
||||
public string ProductCode { get; set; } |
|
||||
public string ProductName { get; set; } |
|
||||
public string Type { get; set; } |
|
||||
public string Dispenser { get; set; } |
|
||||
public Nullable<int> Position { get; set; } |
|
||||
public string TablePosition { get; set; } |
|
||||
public Nullable<System.DateTime> StockDate { get; set; } |
|
||||
public Nullable<double> StockUsage { get; set; } |
|
||||
public Nullable<double> StockOnHand { get; set; } |
|
||||
public string Alarm { get; set; } |
|
||||
public Nullable<System.DateTime> AlarmTime { get; set; } |
|
||||
public Nullable<int> Enabled { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,32 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class RFIDRecordQueue |
|
||||
{ |
|
||||
public Nullable<int> Station { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string Machine { get; set; } |
|
||||
public Nullable<int> DevideNo { get; set; } |
|
||||
public Nullable<int> TotalBuckets { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public string DID { get; set; } |
|
||||
public string Source { get; set; } |
|
||||
public string Dest { get; set; } |
|
||||
public string ProductCode { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,30 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class RFIDRecordQueueHistory |
|
||||
{ |
|
||||
public Nullable<int> Station { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string Machine { get; set; } |
|
||||
public Nullable<int> DevideNo { get; set; } |
|
||||
public Nullable<int> TotalBuckets { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public string DID { get; set; } |
|
||||
public string ProductCode { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,29 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class RecipeDeduct |
|
||||
{ |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string Station { get; set; } |
|
||||
public Nullable<int> ShotNo { get; set; } |
|
||||
public string ProductCode { get; set; } |
|
||||
public Nullable<System.DateTime> DeductTime { get; set; } |
|
||||
public Nullable<double> DeductGrams { get; set; } |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public string DID { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,30 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class RecipeDeductHistory |
|
||||
{ |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string Station { get; set; } |
|
||||
public Nullable<int> ShotNo { get; set; } |
|
||||
public string ProductCode { get; set; } |
|
||||
public Nullable<System.DateTime> DeductTime { get; set; } |
|
||||
public Nullable<double> DeductGrams { get; set; } |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public string DID { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,24 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class RecipeDetail |
|
||||
{ |
|
||||
public string RcpCode { get; set; } |
|
||||
public string ProductCode { get; set; } |
|
||||
public string ProductName { get; set; } |
|
||||
public Nullable<double> Conc { get; set; } |
|
||||
public Nullable<int> HostRead { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,22 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class Recipes |
|
||||
{ |
|
||||
public string RcpCode { get; set; } |
|
||||
public string RcpName { get; set; } |
|
||||
public string Unit { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
File diff suppressed because it is too large
@ -1,28 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class SampleDyeDslvQueue |
|
||||
{ |
|
||||
public Nullable<int> TankNo { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<int> PassAuto { get; set; } |
|
||||
public Nullable<int> ShelfID { get; set; } |
|
||||
public string Machine { get; set; } |
|
||||
public Nullable<System.DateTime> SchDispenseTime { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,28 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class SampleDyeDslvQueueHistory |
|
||||
{ |
|
||||
public Nullable<int> TankNo { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public Nullable<int> PassAuto { get; set; } |
|
||||
public Nullable<int> ShelfID { get; set; } |
|
||||
public string Machine { get; set; } |
|
||||
public Nullable<System.DateTime> SchDispenseTime { get; set; } |
|
||||
public Nullable<System.DateTime> Created { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,29 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class ScheduledDyelot |
|
||||
{ |
|
||||
public int ID { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string Process { get; set; } |
|
||||
public string Dispenser { get; set; } |
|
||||
public string Machine { get; set; } |
|
||||
public Nullable<int> TankNo { get; set; } |
|
||||
public Nullable<System.DateTime> ScheduledTime { get; set; } |
|
||||
public string Checked { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,30 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class ScheduledDyelotHistory |
|
||||
{ |
|
||||
public int ID { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string Process { get; set; } |
|
||||
public string Dispenser { get; set; } |
|
||||
public string Machine { get; set; } |
|
||||
public Nullable<int> TankNo { get; set; } |
|
||||
public Nullable<System.DateTime> ScheduledTime { get; set; } |
|
||||
public string Checked { get; set; } |
|
||||
public string UserAccount { get; set; } |
|
||||
public Nullable<System.DateTime> Updated { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,26 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class SchedulingLog |
|
||||
{ |
|
||||
public int ID { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public int Redye { get; set; } |
|
||||
public string Machine { get; set; } |
|
||||
public System.DateTime CallTime { get; set; } |
|
||||
public Nullable<System.DateTime> EndTime { get; set; } |
|
||||
public Nullable<int> State { get; set; } |
|
||||
public string Status { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,21 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class Shelf |
|
||||
{ |
|
||||
public int ShelfID { get; set; } |
|
||||
public Nullable<int> MaxLayer { get; set; } |
|
||||
public Nullable<int> MaxPosition { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,28 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <auto-generated>
|
|
||||
// 此代码已从模板生成。
|
|
||||
//
|
|
||||
// 手动更改此文件可能导致应用程序出现意外的行为。
|
|
||||
// 如果重新生成代码,将覆盖对此文件的手动更改。
|
|
||||
// </auto-generated>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace Models |
|
||||
{ |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
public partial class TagShelf |
|
||||
{ |
|
||||
public Nullable<int> BucketNo { get; set; } |
|
||||
public string Dyelot { get; set; } |
|
||||
public string Machines { get; set; } |
|
||||
public Nullable<int> TagManagerNo { get; set; } |
|
||||
public int ReDye { get; set; } |
|
||||
public Nullable<int> StepNumber { get; set; } |
|
||||
public string DID { get; set; } |
|
||||
public Nullable<int> TotalBuckets { get; set; } |
|
||||
public Nullable<int> DevideNo { get; set; } |
|
||||
public Nullable<System.DateTime> OnShelfTime { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -0,0 +1,181 @@ |
|||||
|
<UserControl x:Class="Audit.View.MachinesView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:local="clr-namespace:Audit.View" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="900" d:DesignWidth="1140" |
||||
|
xmlns:ConvertMoels="clr-namespace:Audit.ConvertMoels" |
||||
|
DataContext="{Binding Source={StaticResource Locator},Path=Machines}"> |
||||
|
|
||||
|
<UserControl.Resources> |
||||
|
<ConvertMoels:StatenConvert x:Key="StatenConvert"/> |
||||
|
<ConvertMoels:StatenERRConvert x:Key="StatenERRConvert"/> |
||||
|
</UserControl.Resources> |
||||
|
|
||||
|
<Grid> |
||||
|
<!--布局--> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Border BorderThickness="0,0,0,1" BorderBrush="#CCCCCC"> |
||||
|
</Border> |
||||
|
<Grid Grid.Row="0"/> |
||||
|
<Grid Grid.Row="1"> |
||||
|
<!--表--> |
||||
|
<DataGrid x:Name="DataGridMachines" MouseDoubleClick="DataGridStuff_MouseDoubleClick" ItemsSource="{Binding Machines, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
||||
|
SelectionMode="Single" AlternationCount="2" IsReadOnly="True" HorizontalAlignment="Left" Margin="15,15,0,150" d:ItemsSource="{d:SampleData ItemCount=200}" AutoGenerateColumns="False" MinColumnWidth="30" HorizontalGridLinesBrush="#FFC9C9C9" VerticalGridLinesBrush="#FFC9C9C9" GridLinesVisibility="All" BorderBrush="#CCCCCC" BorderThickness="1,1,1,1" ColumnHeaderHeight="40" HorizontalContentAlignment="Right" Grid.ColumnSpan="2" CanUserReorderColumns="False"> |
||||
|
<DataGrid.RowStyle > |
||||
|
<Style TargetType="{x:Type DataGridRow}"> |
||||
|
<Style.Triggers> |
||||
|
<Trigger Property="ItemsControl.AlternationIndex" Value="0"> |
||||
|
<Setter Property="Background" Value="#FFFFFFFF" /> |
||||
|
</Trigger> |
||||
|
<Trigger Property="ItemsControl.AlternationIndex" Value="1"> |
||||
|
<Setter Property="Background" Value="#FFF5F5F5" /> |
||||
|
</Trigger> |
||||
|
<Trigger Property="IsMouseOver" Value="False"> |
||||
|
</Trigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</DataGrid.RowStyle> |
||||
|
<DataGrid.CellStyle> |
||||
|
<Style TargetType="DataGridCell"> |
||||
|
<Setter Property="BorderThickness" Value="0"/> |
||||
|
<Setter Property="MinWidth" Value="20"/> |
||||
|
<Style.Triggers> |
||||
|
<Trigger Property="IsSelected" Value="True"> |
||||
|
<Setter Property="Background" Value="#FFC0C0C0"/> |
||||
|
<Setter Property="BorderBrush" Value="#FFC0C0C0"/> |
||||
|
<Setter Property="Foreground" Value="#000000"/> |
||||
|
</Trigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</DataGrid.CellStyle> |
||||
|
<DataGrid.Columns> |
||||
|
<!--列信息绑定--> |
||||
|
<DataGridTextColumn Header="染机代码" Width="100" FontSize="15" Binding="{Binding Name}" MaxWidth="130" MinWidth="100" CanUserReorder="False"/> |
||||
|
<DataGridTextColumn Header="染机名称" Width="100" FontSize="15" Binding="{Binding ChemicalStation}" MaxWidth="200" MinWidth="100" CanUserReorder="False"/> |
||||
|
<DataGridTextColumn Header="运行单号" Width="120" FontSize="15" Binding="{Binding DispenseDyelot}" MaxWidth="200" MinWidth="100" CanUserReorder="False"/> |
||||
|
<DataGridTextColumn Header="助剂状态" Width="80" FontSize="15" MaxWidth="80" MinWidth="50" CanUserReorder="False"> |
||||
|
<!--事件名称:工作状态数字转文字显示,转换器StatenConvert--> |
||||
|
<DataGridTextColumn.ElementStyle> |
||||
|
<Style TargetType="{x:Type TextBlock}"> |
||||
|
<Setter Property="Text" Value="{Binding Path=ChemicalState,Converter={StaticResource StatenConvert}}"> |
||||
|
</Setter> |
||||
|
<Setter Property="Foreground" Value="{Binding Path=ChemicalState,Converter={StaticResource StatenERRConvert}}"> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
</DataGridTextColumn.ElementStyle> |
||||
|
</DataGridTextColumn> |
||||
|
<DataGridTextColumn Header="助剂状态2" Width="80" FontSize="15" MaxWidth="80" MinWidth="50" CanUserReorder="False"> |
||||
|
<!--事件名称:工作状态数字转文字显示,转换器StatenConvertt--> |
||||
|
<DataGridTextColumn.ElementStyle> |
||||
|
<Style TargetType="{x:Type TextBlock}"> |
||||
|
<Setter Property="Text" Value="{Binding Path=ChemicalState2,Converter={StaticResource StatenConvert}}"> |
||||
|
</Setter> |
||||
|
<Setter Property="Foreground" Value="{Binding Path=ChemicalState2,Converter={StaticResource StatenERRConvert}}"> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
</DataGridTextColumn.ElementStyle> |
||||
|
</DataGridTextColumn> |
||||
|
<DataGridTextColumn Header="液体助剂组" Width="100" FontSize="15" Binding="{Binding ChemicalDispenser}" MaxWidth="100" MinWidth="100" CanUserReorder="False"/> |
||||
|
<DataGridTextColumn Header="液体助剂启用" Width="0" FontSize="15" Binding="{Binding ChemicalEnabled}" MaxWidth="0" MinWidth="0" CanUserReorder="False"/> |
||||
|
<DataGridTextColumn Header="染料状态" Width="80" FontSize="15" MaxWidth="80" MinWidth="50" CanUserReorder="False"> |
||||
|
<!--事件名称:工作状态数字转文字显示,转换器StatenConvert--> |
||||
|
<DataGridTextColumn.ElementStyle> |
||||
|
<Style TargetType="{x:Type TextBlock}"> |
||||
|
<Setter Property="Text" Value="{Binding Path=DyeState,Converter={StaticResource StatenConvert}}"> |
||||
|
</Setter> |
||||
|
<Setter Property="Foreground" Value="{Binding Path=DyeState,Converter={StaticResource StatenERRConvert}}"> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
</DataGridTextColumn.ElementStyle> |
||||
|
</DataGridTextColumn> |
||||
|
<DataGridTextColumn Header="染料溶解组" Width="100" FontSize="15" Binding="{Binding DyeDispenser}" MaxWidth="100" MinWidth="100" CanUserReorder="False"/> |
||||
|
<DataGridTextColumn Header="染料启用" Width="0" FontSize="15" Binding="{Binding DyeEnabled}" MaxWidth="0" MinWidth="0" CanUserReorder="False"/> |
||||
|
<DataGridTextColumn Header="粉体状态" Width="80" FontSize="15" MaxWidth="80" MinWidth="50" CanUserReorder="False"> |
||||
|
<!--事件名称:工作状态数字转文字显示,转换器StatenConvert--> |
||||
|
<DataGridTextColumn.ElementStyle> |
||||
|
<Style TargetType="{x:Type TextBlock}"> |
||||
|
<Setter Property="Text" Value="{Binding Path=PowderState,Converter={StaticResource StatenConvert}}"> |
||||
|
</Setter> |
||||
|
<Setter Property="Foreground" Value="{Binding Path=PowderState,Converter={StaticResource StatenERRConvert}}"> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
</DataGridTextColumn.ElementStyle> |
||||
|
</DataGridTextColumn> |
||||
|
<DataGridTextColumn Header="粉体助剂组" Width="100" FontSize="15" Binding="{Binding PowderDispenser}" MaxWidth="100" MinWidth="100" CanUserReorder="False"/> |
||||
|
<DataGridTextColumn Header="粉体启用" Width="0" FontSize="15" Binding="{Binding PowderEnabled}" MaxWidth="0" MinWidth="0" CanUserReorder="False"/> |
||||
|
</DataGrid.Columns> |
||||
|
</DataGrid> |
||||
|
<!--染机代码--> |
||||
|
<TextBox x:Name="name" HorizontalAlignment="Left" Height="30" Margin="105,0,0,100" Text="" |
||||
|
VerticalAlignment="Bottom" Width="155" FontSize="16" MaxLines="1" MaxLength="25" |
||||
|
InputMethod.IsInputMethodEnabled="False"/> |
||||
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="15,0,0,100" TextWrapping="Wrap" Text="染机代码" |
||||
|
VerticalAlignment="Bottom" Width="100" FontSize="20"/> |
||||
|
<!--染机名称--> |
||||
|
<TextBox x:Name="Station" HorizontalAlignment="Left" Height="30" Margin="360,0,0,100" Text="" |
||||
|
VerticalAlignment="Bottom" Width="200" FontSize="16" MaxLines="1" MaxLength="50"/> |
||||
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="270,0,0,100" TextWrapping="Wrap" Text="染机名称" |
||||
|
VerticalAlignment="Bottom" Width="100" FontSize="20"/> |
||||
|
<!--操作--> |
||||
|
<ComboBox x:Name="operate" HorizontalAlignment="Left" Height="30" Margin="620,0,0,100" Text="" |
||||
|
VerticalAlignment="Bottom" Width="140" FontSize="16" IsReadOnly="True" IsEditable="True"> |
||||
|
<ComboBoxItem Content="清除工单"></ComboBoxItem> |
||||
|
<ComboBoxItem Content="助剂完成"></ComboBoxItem> |
||||
|
<ComboBoxItem Content="染料完成"></ComboBoxItem> |
||||
|
<ComboBoxItem Content="粉体完成"></ComboBoxItem> |
||||
|
<ComboBoxItem Content="修改信息"></ComboBoxItem> |
||||
|
</ComboBox> |
||||
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="575,0,0,100" TextWrapping="Wrap" Text="操作" |
||||
|
VerticalAlignment="Bottom" Width="100" FontSize="20"/> |
||||
|
<!--液体助剂机组--> |
||||
|
<TextBox x:Name="chemicaldispenser" HorizontalAlignment="Left" Height="30" Margin="130,0,0,50" Text="" |
||||
|
VerticalAlignment="Bottom" Width="130" FontSize="16" MaxLines="1" MaxLength="25" |
||||
|
InputMethod.IsInputMethodEnabled="False"/> |
||||
|
<ComboBox x:Name="chemicaldispenser_operate" HorizontalAlignment="Left" Height="30" Margin="60,0,0,50" Text="" |
||||
|
VerticalAlignment="Bottom" Width="65" FontSize="16" IsReadOnly="True" IsEditable="True"> |
||||
|
<ComboBoxItem Content="禁用"></ComboBoxItem> |
||||
|
<ComboBoxItem Content="启用"></ComboBoxItem> |
||||
|
</ComboBox> |
||||
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="15,0,0,50" TextWrapping="Wrap" Text="助剂" |
||||
|
VerticalAlignment="Bottom" Width="50" FontSize="20"/> |
||||
|
<!--染料染剂机组--> |
||||
|
<TextBox x:Name="dyedispenser" HorizontalAlignment="Left" Height="30" Margin="380,0,0,50" Text="" |
||||
|
VerticalAlignment="Bottom" Width="130" FontSize="16" MaxLines="1" MaxLength="25" |
||||
|
InputMethod.IsInputMethodEnabled="False"/> |
||||
|
<ComboBox x:Name="dyedispenser_operate" HorizontalAlignment="Left" Height="30" Margin="310,0,0,50" Text="" |
||||
|
VerticalAlignment="Bottom" Width="65" FontSize="16" IsReadOnly="True" IsEditable="True"> |
||||
|
<ComboBoxItem Content="禁用"></ComboBoxItem> |
||||
|
<ComboBoxItem Content="启用"></ComboBoxItem> |
||||
|
</ComboBox> |
||||
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="265,0,0,50" TextWrapping="Wrap" Text="染料" |
||||
|
VerticalAlignment="Bottom" Width="50" FontSize="20"/> |
||||
|
<!--粉体助剂机组--> |
||||
|
<TextBox x:Name="powderdispenser" HorizontalAlignment="Left" Height="30" Margin="630,0,0,50" Text="" |
||||
|
VerticalAlignment="Bottom" Width="130" FontSize="16" MaxLines="1" MaxLength="25" |
||||
|
InputMethod.IsInputMethodEnabled="False"/> |
||||
|
<ComboBox x:Name="powderdispenser_operate" HorizontalAlignment="Left" Height="30" Margin="560,0,0,50" Text="" |
||||
|
VerticalAlignment="Bottom" Width="65" FontSize="16" IsReadOnly="True" IsEditable="True"> |
||||
|
<ComboBoxItem Content="禁用"></ComboBoxItem> |
||||
|
<ComboBoxItem Content="启用"></ComboBoxItem> |
||||
|
</ComboBox> |
||||
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="515,0,0,50" TextWrapping="Wrap" Text="粉体" |
||||
|
VerticalAlignment="Bottom" Width="50" FontSize="20"/> |
||||
|
<!--存储按钮--> |
||||
|
<Button Content="确认" HorizontalAlignment="Left" Height="65" Margin="795,0,0,60" |
||||
|
VerticalAlignment="Bottom" Width="145" FontSize="40" BorderBrush="{x:Null}" Background="#FFCECECE" |
||||
|
Click="Button_Preservation"> |
||||
|
</Button> |
||||
|
<!--删除按钮--> |
||||
|
<Button Content="删除" HorizontalAlignment="Left" Height="65" Margin="975,0,0,60" |
||||
|
VerticalAlignment="Bottom" Width="145" FontSize="40" BorderBrush="{x:Null}" Background="#FFCECECE" |
||||
|
Click="Button_Delete"> |
||||
|
</Button> |
||||
|
</Grid> |
||||
|
</Grid> |
||||
|
</UserControl> |
||||
@ -0,0 +1,246 @@ |
|||||
|
using Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Text.RegularExpressions; |
||||
|
using System.Threading.Tasks; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Audit.View |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// MachinesView.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class MachinesView : UserControl |
||||
|
{ |
||||
|
public MachinesView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
|
||||
|
private Machines machines = new Machines();//最终存入sql的实体
|
||||
|
private Machines machines_temp = new Machines();//取出自sql的实体缓存
|
||||
|
public static Boolean Button_sql = true; |
||||
|
public static int Buttontype_sql = -1; |
||||
|
|
||||
|
private void DataGridStuff_MouseDoubleClick(object sender, MouseButtonEventArgs e) |
||||
|
{ |
||||
|
int rownum = DataGridMachines.SelectedIndex;//获取鼠标选中行并定义变量
|
||||
|
if (rownum != -1)//判断鼠标定位是否有效
|
||||
|
{ |
||||
|
string DataGridMachines_Name = (DataGridMachines.Columns[0].GetCellContent(DataGridMachines.Items[rownum]) as TextBlock).Text;//定位第0列,
|
||||
|
string DataGridMachines_ChemicalStation = (DataGridMachines.Columns[1].GetCellContent(DataGridMachines.Items[rownum]) as TextBlock).Text;//定位第1列,
|
||||
|
string DataGridMachines_ChemicalDispenser = (DataGridMachines.Columns[5].GetCellContent(DataGridMachines.Items[rownum]) as TextBlock).Text;//定位第2列,
|
||||
|
string DataGridMachines_Chemicale = (DataGridMachines.Columns[6].GetCellContent(DataGridMachines.Items[rownum]) as TextBlock).Text;//定位第2列,
|
||||
|
string DataGridMachines_DyeDispenser = (DataGridMachines.Columns[8].GetCellContent(DataGridMachines.Items[rownum]) as TextBlock).Text;//定位第3列,
|
||||
|
string DataGridMachines_Dyee = (DataGridMachines.Columns[9].GetCellContent(DataGridMachines.Items[rownum]) as TextBlock).Text;//定位第3列,
|
||||
|
string DataGridMachines_PowderDispenser = (DataGridMachines.Columns[11].GetCellContent(DataGridMachines.Items[rownum]) as TextBlock).Text;//定位第4列,
|
||||
|
string DataGridMachines_Powdere = (DataGridMachines.Columns[12].GetCellContent(DataGridMachines.Items[rownum]) as TextBlock).Text;//定位第4列,
|
||||
|
name.Text = DataGridMachines_Name.Trim(); |
||||
|
Station.Text = DataGridMachines_ChemicalStation.Trim(); |
||||
|
chemicaldispenser.Text = DataGridMachines_ChemicalDispenser.Trim(); |
||||
|
dyedispenser.Text = DataGridMachines_DyeDispenser.Trim(); |
||||
|
powderdispenser.Text = DataGridMachines_PowderDispenser.Trim(); |
||||
|
if (DataGridMachines_Chemicale == "1") this.chemicaldispenser_operate.Text = "启用"; |
||||
|
else this.chemicaldispenser_operate.Text = "禁用"; |
||||
|
if (DataGridMachines_Dyee == "1") this.dyedispenser_operate.Text = "启用"; |
||||
|
else this.dyedispenser_operate.Text = "禁用"; |
||||
|
if (DataGridMachines_Powdere == "1") this.powderdispenser_operate.Text = "启用"; |
||||
|
else this.powderdispenser_operate.Text = "禁用"; |
||||
|
this.operate.Text =null;//清除附属操作
|
||||
|
machines_temp.Name = DataGridMachines_Name;//写入sql实体缓存
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
private void Button_Preservation(object sender, RoutedEventArgs e)//存储按钮
|
||||
|
{ |
||||
|
int int_operate = 0; |
||||
|
Regex re_char = new Regex(@"^[A-Za-z0-9\s@()()/+!!_-]+$");//校验用正则表达式由数字,26个英文字母,空白字符和@()()/+!!_-组成的字符串
|
||||
|
if (this.operate.Text == "") int_operate = 0;//创建机台
|
||||
|
if (this.operate.Text == "清除工单") int_operate = 1;//附属操作
|
||||
|
if (this.operate.Text == "助剂完成") int_operate = 2; |
||||
|
if (this.operate.Text == "染料完成") int_operate = 3; |
||||
|
if (this.operate.Text == "粉体完成") int_operate = 4; |
||||
|
if (this.operate.Text == "修改信息") int_operate = 5; |
||||
|
if (re_char.IsMatch(this.name.Text) == false) System.Windows.MessageBox.Show("ERR.C0201:无效的机台信息", "错误");//检查机台代码
|
||||
|
else |
||||
|
if (string.IsNullOrEmpty(this.Station.Text)) System.Windows.MessageBox.Show("ERR.C0201-2:无效的机台信息", "错误");//检查机台名称
|
||||
|
else |
||||
|
{ |
||||
|
if (int_operate == 0)//创建机台
|
||||
|
{ |
||||
|
machines.Name = this.name.Text; |
||||
|
machines.DispenseDyelot = null; |
||||
|
machines.DyeDispenseDyelot = null; |
||||
|
machines.ChemicalStation = this.Station.Text; |
||||
|
machines.DyeStation = this.Station.Text; |
||||
|
machines.PowderStation = this.Station.Text; |
||||
|
machines.ChemicalDispenser = this.chemicaldispenser.Text; |
||||
|
machines.DyeDispenser = this.dyedispenser.Text; |
||||
|
machines.PowderDispenser = this.powderdispenser.Text; |
||||
|
machines.ChemicalCallOff = 0; |
||||
|
machines.ChemicalCallOff2 = 0; |
||||
|
machines.ChemicalState = 101; |
||||
|
machines.ChemicalState2 = 101; |
||||
|
machines.DyeCallOff = 0; |
||||
|
machines.DyeState = 101; |
||||
|
machines.PowderCallOff = 0; |
||||
|
machines.PowderState = 101; |
||||
|
if (this.chemicaldispenser_operate.Text == "启用") machines.ChemicalEnabled = 1; |
||||
|
else machines.ChemicalEnabled = 0; |
||||
|
if (this.dyedispenser_operate.Text == "启用") machines.DyeEnabled = 1; |
||||
|
else machines.DyeEnabled = 0; |
||||
|
if (this.powderdispenser_operate.Text == "启用") machines.PowderEnabled = 1; |
||||
|
else machines.PowderEnabled = 0; |
||||
|
if (new MachinesProvider().Selectsql(machines).Count == 0)//判断数据库设定目标信息是否存在。
|
||||
|
{ |
||||
|
var count = new MachinesProvider().Insert(machines);//添加数据库信息
|
||||
|
Button_sql = true; |
||||
|
if (count == 0) MessageBox.Show("ERR.C0210-2:机台创建失败", "错误"); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
System.Windows.MessageBox.Show("ERR.C0211:机台已存在终止操作", "错误");//判断执行是否成功
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if (int_operate == 1)//清除信息
|
||||
|
{ |
||||
|
machines.Name = this.name.Text; |
||||
|
machines.DispenseDyelot = null; |
||||
|
machines.DyeDispenseDyelot = null; |
||||
|
machines.ChemicalCallOff = 0; |
||||
|
machines.ChemicalCallOff2 = 0; |
||||
|
machines.ChemicalState = 101; |
||||
|
machines.ChemicalState2 = 101; |
||||
|
machines.DyeCallOff = 0; |
||||
|
machines.DyeState = 101; |
||||
|
machines.PowderCallOff = 0; |
||||
|
machines.PowderState = 101; |
||||
|
if (new MachinesProvider().Selectsql(machines).Count == 0)//判断数据库设定目标信息是否存在。
|
||||
|
{ |
||||
|
System.Windows.MessageBox.Show("ERR.C0202-5:机台信息错误", "错误");//执行是否成功
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
var count = new MachinesProvider().Update1(machines);//添加数据库信息。
|
||||
|
Button_sql = true; |
||||
|
if (count == 0) MessageBox.Show("ERR.C0210-2:机台创建失败", "错误"); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if (int_operate == 2)//助剂完成
|
||||
|
{ |
||||
|
machines.Name = this.name.Text; |
||||
|
machines.ChemicalCallOff = 0; |
||||
|
machines.ChemicalCallOff2 = 0; |
||||
|
machines.ChemicalState = 101; |
||||
|
machines.ChemicalState2 = 101; |
||||
|
if (new MachinesProvider().Selectsql(machines).Count == 0)//判断数据库设定目标信息是否存在。
|
||||
|
{ |
||||
|
System.Windows.MessageBox.Show("ERR.C0202-5:机台信息错误", "错误");//执行是否成功
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
var count = new MachinesProvider().Update2(machines);//修改数据库信息。
|
||||
|
Button_sql = true; |
||||
|
if (count == 0) System.Windows.MessageBox.Show("ERR.C0210-1:信息修改失败", "错误");//判断执行是否成功
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if (int_operate == 3)//染料完成
|
||||
|
{ |
||||
|
machines.Name = this.name.Text; |
||||
|
machines.DyeCallOff = 0; |
||||
|
machines.DyeState = 101; |
||||
|
if (new MachinesProvider().Selectsql(machines).Count == 0)//判断数据库设定目标信息是否存在。
|
||||
|
{ |
||||
|
System.Windows.MessageBox.Show("ERR.C0202-5:机台信息错误", "错误");//执行是否成功
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
var count = new MachinesProvider().Update3(machines);//修改数据库信息。
|
||||
|
Button_sql = true; |
||||
|
if (count == 0) System.Windows.MessageBox.Show("ERR.C0210-1:信息修改失败", "错误");//判断执行是否成功
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if (int_operate == 4)//粉体完成
|
||||
|
{ |
||||
|
machines.Name = this.name.Text; |
||||
|
machines.PowderCallOff = 0; |
||||
|
machines.PowderState = 101; |
||||
|
if (new MachinesProvider().Selectsql(machines).Count == 0)//判断数据库设定目标信息是否存在。
|
||||
|
{ |
||||
|
System.Windows.MessageBox.Show("ERR.C0202-5:机台信息错误", "错误");//执行是否成功
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
var count = new MachinesProvider().Update4(machines);//添加数据库信息。
|
||||
|
Button_sql = true; |
||||
|
if (count == 0) System.Windows.MessageBox.Show("ERR.C0210-1:信息修改失败", "错误");//判断执行是否成功
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if (int_operate == 5)//修改机台
|
||||
|
{ |
||||
|
machines.Name = this.name.Text; |
||||
|
machines.DispenseDyelot = null; |
||||
|
machines.DyeDispenseDyelot = null; |
||||
|
machines.ChemicalStation = this.Station.Text; |
||||
|
machines.DyeStation = this.Station.Text; |
||||
|
machines.PowderStation = this.Station.Text; |
||||
|
machines.ChemicalDispenser = this.chemicaldispenser.Text; |
||||
|
machines.DyeDispenser = this.dyedispenser.Text; |
||||
|
machines.PowderDispenser = this.powderdispenser.Text; |
||||
|
machines.ChemicalCallOff = 0; |
||||
|
machines.ChemicalCallOff2 = 0; |
||||
|
machines.ChemicalState = 101; |
||||
|
machines.ChemicalState2 = 101; |
||||
|
machines.DyeCallOff = 0; |
||||
|
machines.DyeState = 101; |
||||
|
machines.PowderCallOff = 0; |
||||
|
machines.PowderState = 101; |
||||
|
if (this.chemicaldispenser_operate.Text == "启用") machines.ChemicalEnabled = 1; |
||||
|
else machines.ChemicalEnabled = 0; |
||||
|
if (this.dyedispenser_operate.Text == "启用") machines.DyeEnabled = 1; |
||||
|
else machines.DyeEnabled = 0; |
||||
|
if (this.powderdispenser_operate.Text == "启用") machines.PowderEnabled = 1; |
||||
|
else machines.PowderEnabled = 0; |
||||
|
if (new MachinesProvider().Selectsql(machines).Count == 0)//判断数据库设定目标信息是否存在。
|
||||
|
{ |
||||
|
System.Windows.MessageBox.Show("ERR.C0202-5:机台信息错误", "错误");//执行是否成功
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
var count = new MachinesProvider().Update(machines);//添加数据库信息
|
||||
|
Button_sql = true; |
||||
|
if (count == 0) MessageBox.Show("ERR.C0210-2:机台修改失败", "错误"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
private void Button_Delete(object sender, RoutedEventArgs e)//删除按钮
|
||||
|
{ |
||||
|
machines.Name = this.name.Text;//原料代码
|
||||
|
string ShowProductName = "是否删除机台【" + this.name.Text + "】" + this.Station.Text;//获取原料信息并拼接提示字符串
|
||||
|
MessageBoxResult showProductName = System.Windows.MessageBox.Show(ShowProductName, "提示", MessageBoxButton.YesNo, MessageBoxImage.Warning, MessageBoxResult.Yes);//弹窗提示是否删除目标原料
|
||||
|
if (showProductName == MessageBoxResult.Yes)//判断是否删除原料
|
||||
|
{ |
||||
|
var count = new MachinesProvider().Delete(machines_temp);//删除数据库目标信息。
|
||||
|
if (count == 0) System.Windows.MessageBox.Show("ERR.C0210-2:删除失败", "错误");//判断执行是否成功
|
||||
|
else Button_sql = true; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,69 @@ |
|||||
|
<UserControl x:Class="Audit.View.PipesView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:local="clr-namespace:Audit.View" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="900" d:DesignWidth="1140" |
||||
|
xmlns:ConvertMoels="clr-namespace:Audit.ConvertMoels" |
||||
|
DataContext="{Binding Source={StaticResource Locator},Path=Pipes}"> |
||||
|
|
||||
|
<UserControl.Resources> |
||||
|
|
||||
|
</UserControl.Resources> |
||||
|
|
||||
|
<Grid> |
||||
|
<!--布局--> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Border BorderThickness="0,0,0,1" BorderBrush="#CCCCCC"> |
||||
|
</Border> |
||||
|
<Grid Grid.Row="0"/> |
||||
|
<Grid Grid.Row="1"> |
||||
|
<!--表--> |
||||
|
<DataGrid x:Name="DataGridStatistics" MouseDoubleClick="DataGridStatistics_MouseDoubleClick" |
||||
|
ItemsSource="{Binding Pipes, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
||||
|
SelectionMode="Single" AlternationCount="2" IsReadOnly="True" HorizontalAlignment="Left" |
||||
|
Margin="15,15,0,150" d:ItemsSource="{d:SampleData ItemCount=200}" AutoGenerateColumns="False" |
||||
|
MinColumnWidth="30" HorizontalGridLinesBrush="#FFC9C9C9" VerticalGridLinesBrush="#FFC9C9C9" |
||||
|
GridLinesVisibility="All" BorderBrush="#CCCCCC" BorderThickness="1,1,1,1" ColumnHeaderHeight="40" |
||||
|
HorizontalContentAlignment="Right" Grid.ColumnSpan="2" CanUserReorderColumns="False"> |
||||
|
<DataGrid.RowStyle > |
||||
|
<Style TargetType="{x:Type DataGridRow}"> |
||||
|
<Style.Triggers> |
||||
|
<Trigger Property="ItemsControl.AlternationIndex" Value="0"> |
||||
|
<Setter Property="Background" Value="#FFFFFFFF" /> |
||||
|
</Trigger> |
||||
|
<Trigger Property="ItemsControl.AlternationIndex" Value="1"> |
||||
|
<Setter Property="Background" Value="#FFF5F5F5" /> |
||||
|
</Trigger> |
||||
|
<Trigger Property="IsMouseOver" Value="False"> |
||||
|
</Trigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</DataGrid.RowStyle> |
||||
|
<DataGrid.CellStyle> |
||||
|
<Style TargetType="DataGridCell"> |
||||
|
<Setter Property="BorderThickness" Value="0"/> |
||||
|
<Setter Property="MinWidth" Value="20"/> |
||||
|
<Style.Triggers> |
||||
|
<Trigger Property="IsSelected" Value="True"> |
||||
|
<Setter Property="Background" Value="#FFC0C0C0"/> |
||||
|
<Setter Property="BorderBrush" Value="#FFC0C0C0"/> |
||||
|
<Setter Property="Foreground" Value="#000000"/> |
||||
|
</Trigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</DataGrid.CellStyle> |
||||
|
<DataGrid.Columns> |
||||
|
<!--列信息绑定--> |
||||
|
<DataGridTextColumn Header="原料代码" Width="100" FontSize="15" Binding="{Binding ProductCode}" MaxWidth="150" MinWidth="100" CanUserReorder="False"/> |
||||
|
<DataGridTextColumn Header="原料名称" Width="130" FontSize="15" Binding="{Binding ProductName}" MaxWidth="200" MinWidth="50" CanUserReorder="False"/> |
||||
|
</DataGrid.Columns> |
||||
|
</DataGrid> |
||||
|
</Grid> |
||||
|
</Grid> |
||||
|
</UserControl> |
||||
@ -0,0 +1,35 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Audit.View |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// PipesView.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class PipesView : UserControl |
||||
|
{ |
||||
|
public PipesView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
|
||||
|
public static Boolean Button_pipessql = true;//全局变量按钮状态
|
||||
|
|
||||
|
private void DataGridStatistics_MouseDoubleClick(object sender, MouseButtonEventArgs e)//数据表双击事件
|
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue