diff --git a/App.config b/App.config
index 26df152..3e8cf76 100644
--- a/App.config
+++ b/App.config
@@ -24,13 +24,14 @@
+
diff --git a/App.xaml b/App.xaml
index d51fbec..f38e254 100644
--- a/App.xaml
+++ b/App.xaml
@@ -1,4 +1,4 @@
-
+
diff --git a/App.xaml.cs b/App.xaml.cs
index c245e59..1b7dcbf 100644
--- a/App.xaml.cs
+++ b/App.xaml.cs
@@ -1,4 +1,5 @@
-using System;
+using MahApps.Metro.Controls;
+using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
@@ -7,9 +8,11 @@ using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
+using System.Threading;
using System.Threading.Tasks;
using System.Windows;
+
namespace Audit
{
///
@@ -20,26 +23,55 @@ namespace Audit
///
/// App.xaml 的交互逻辑
///
- System.Threading.Mutex mutex;
- ///
- ///检查应用进程,防止重复启动。
- ///
+
public App()
+ {
+ this.Startup += new StartupEventHandler(App_Startup);
+ this.DispatcherUnhandledException += new System.Windows.Threading.DispatcherUnhandledExceptionEventHandler(App_DispatcherUnhandledException);
+ }
+
+ System.Threading.Mutex mutex;
+ void App_Startup(object sender, StartupEventArgs e)
+ {
+ bool ret;
+ mutex = new System.Threading.Mutex(true, "ElectronicNeedleTherapySystem", out ret);
+ if (!ret)
{
- this.Startup += new StartupEventHandler(App_Startup);
+ MessageBox.Show("SC:审计管理已启动");
+ Environment.Exit(0);
}
+ }
- void App_Startup(object sender, StartupEventArgs e)
- {
- bool ret;
- mutex = new System.Threading.Mutex(true, "ElectronicNeedleTherapySystem", out ret);
+ protected override void OnStartup(StartupEventArgs e)
+ {
+ base.OnStartup(e);
+ //UI线程的异常捕捉
+ this.DispatcherUnhandledException += App_DispatcherUnhandledException;
+ }
- if (!ret)
+ private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
+ {
+
+ e.Handled = true;
+ if (e.Exception.InnerException == null)
{
- MessageBox.Show("SC:审计管理已启动");
- Environment.Exit(0);
+ MessageBox.Show("(1)发生了一个错误!请联系开发人员!" + Environment.NewLine
+ + "(2)错误源:" + e.Exception.Source + Environment.NewLine
+ + "(3)详细信息:" + e.Exception.Message + Environment.NewLine
+ // + "(4)报错区域:" + e.Exception.StackTrace
+ );
+ }
+ else
+ {
+ MessageBox.Show("(1)发生了一个错误!请联系开发人员!" + Environment.NewLine
+ + "(2)错误源:" + e.Exception.InnerException.Source + Environment.NewLine
+ + "(3)错误信息:" + e.Exception.Message + Environment.NewLine
+ + "(4)详细信息:" + e.Exception.InnerException.Message + Environment.NewLine
+ // + "(5)报错区域:" + e.Exception.InnerException.StackTrace
+ );
}
- }
+
+ }
}
-}
+}
\ No newline at end of file
diff --git a/Audit.csproj b/Audit.csproj
index 89e4732..243c80d 100644
--- a/Audit.csproj
+++ b/Audit.csproj
@@ -18,7 +18,7 @@
false
- publish\
+ C:\Users\尚彩-沈忱\Desktop\
true
Disk
false
@@ -166,15 +166,30 @@
+
+
+
+
+
+
+
+
+
+
+ MachinesView.xaml
+
+
+ PipesView.xaml
+
QueryView.xaml
@@ -193,6 +208,9 @@
Set_up_Sql.xaml
+
+ user.xaml
+
MSBuild:Compile
Designer
@@ -209,6 +227,14 @@
Designer
MSBuild:Compile
+
+ Designer
+ MSBuild:Compile
+
+
+ Designer
+ MSBuild:Compile
+
Designer
MSBuild:Compile
@@ -233,6 +259,10 @@
Designer
MSBuild:Compile
+
+ Designer
+ MSBuild:Compile
+
diff --git a/ConvertMoels/ConsumptionConvert.cs b/ConvertMoels/ConsumptionConvert.cs
new file mode 100644
index 0000000..300d603
--- /dev/null
+++ b/ConvertMoels/ConsumptionConvert.cs
@@ -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;
+
+///
+/// 统计消耗量变换器
+/// 输入:原料代码、时间区间
+/// 输出:消耗总量(KG)
+///
+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();
+ }
+ }
+}
diff --git a/ConvertMoels/DeviationConvert.cs b/ConvertMoels/DeviationConvert.cs
index 8dc99bb..934f487 100644
--- a/ConvertMoels/DeviationConvert.cs
+++ b/ConvertMoels/DeviationConvert.cs
@@ -12,11 +12,11 @@ namespace Audit.ConvertMoels
{
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{
- string a = System.Convert.ToString(values[0]);
- string b = System.Convert.ToString(values[1]);
+ string a = System.Convert.ToString(values[0]);//转换数组1的信息
+ string b = System.Convert.ToString(values[1]);//转换数组2的信息
if (a != "" && b != "")
{
- string c = (System.Convert.ToSingle(b) - System.Convert.ToSingle(a)).ToString("0.0");
+ string c = (System.Convert.ToSingle(b) - System.Convert.ToSingle(a)).ToString("0.0");//计算值1和2的差值并返回字符串
//string c = "0";
return c;
}
diff --git a/ConvertMoels/GramsSumConvert.cs b/ConvertMoels/GramsSumConvert.cs
new file mode 100644
index 0000000..f4f26e9
--- /dev/null
+++ b/ConvertMoels/GramsSumConvert.cs
@@ -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;
+
+///
+/// 统计成本变换器
+/// 输入:原料代码、原料价格、时间区间
+/// 输出:总成本
+///
+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();
+ }
+ }
+}
diff --git a/ConvertMoels/MachinesDyelotsNumberConvert.cs b/ConvertMoels/MachinesDyelotsNumberConvert.cs
new file mode 100644
index 0000000..9bcfa28
--- /dev/null
+++ b/ConvertMoels/MachinesDyelotsNumberConvert.cs
@@ -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;
+
+///
+/// 统计机台单料数变换器
+/// 输入:原料代码、机台代码、时间区间
+/// 输出:机台料单数
+///
+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;
+ }
+ }
+}
diff --git a/ConvertMoels/MachinesGramsSumConvert.cs b/ConvertMoels/MachinesGramsSumConvert.cs
new file mode 100644
index 0000000..ca223a0
--- /dev/null
+++ b/ConvertMoels/MachinesGramsSumConvert.cs
@@ -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;
+
+///
+/// 统计机台消耗变换器
+/// 输入:原料代码、机台代码、时间区间
+/// 输出:机台消耗
+///
+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;
+ }
+ }
+}
diff --git a/ConvertMoels/ProductTypeSQLConvert.cs b/ConvertMoels/ProductTypeSQLConvert.cs
index 7b47e92..3823969 100644
--- a/ConvertMoels/ProductTypeSQLConvert.cs
+++ b/ConvertMoels/ProductTypeSQLConvert.cs
@@ -19,7 +19,7 @@ namespace Audit.ConvertMoels
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
string ProductType = System.Convert.ToString(value);
- if (ProductType == "0")//类型0:染料,1:助剂,2:粉体助剂,其它:未知
+ if (ProductType == "0")//类型0:染料,1:助剂,2:粉体助剂,3:液体染料,其它:未知
{
return "染料";
}
@@ -37,7 +37,14 @@ namespace Audit.ConvertMoels
}
else
{
- return "未知类型";
+ if (ProductType == "3")
+ {
+ return "液体染料";
+ }
+ else
+ {
+ return "未知类型";
+ }
}
}
}
diff --git a/ConvertMoels/StatenConvert.cs b/ConvertMoels/StatenConvert.cs
new file mode 100644
index 0000000..c24c943
--- /dev/null
+++ b/ConvertMoels/StatenConvert.cs
@@ -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;
+
+///
+/// 运行状态变换器
+/// 输入:状态码
+/// 输出:状态文字
+///
+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();
+ }
+
+ }
+}
diff --git a/ConvertMoels/StatenERRConvert.cs b/ConvertMoels/StatenERRConvert.cs
new file mode 100644
index 0000000..48e0420
--- /dev/null
+++ b/ConvertMoels/StatenERRConvert.cs
@@ -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();
+ }
+ }
+}
diff --git a/ConvertMoels/SumSQLConvert.cs b/ConvertMoels/SumSQLConvert.cs
new file mode 100644
index 0000000..504db26
--- /dev/null
+++ b/ConvertMoels/SumSQLConvert.cs
@@ -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;
+ }
+ }
+}
diff --git a/MainWindow.xaml b/MainWindow.xaml
index 97f99fd..d92f27c 100644
--- a/MainWindow.xaml
+++ b/MainWindow.xaml
@@ -4,13 +4,16 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Audit"
+ xmlns:ConvertMoels="clr-namespace:Audit.ConvertMoels"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
x:Class="Audit.MainWindow"
mc:Ignorable="d"
Background="#FFF5F5F5"
Title="SUNLIGHT" Height="900" Width="1280" WindowStartupLocation="CenterScreen">
+
+
+
-
-
-
-
+
+
+
+
+
+
@@ -120,6 +172,11 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs
index e4894e7..45782c9 100644
--- a/MainWindow.xaml.cs
+++ b/MainWindow.xaml.cs
@@ -15,6 +15,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
+using System.Windows.Threading;
namespace Audit
{
@@ -29,15 +30,17 @@ namespace Audit
public MainWindow()
{
InitializeComponent();
- }
-
- private void TimePicker_SelectedDateTimeChanged(object sender, RoutedPropertyChangedEventArgs e)
- {
+ this.RadioButtonk1.Visibility = Visibility.Collapsed;//隐藏管理
+ this.RadioButtonk12.Visibility = Visibility.Collapsed;//隐藏设置
+ CountDown();//执行循环方法
}
private void Exit(object sender, RoutedEventArgs e)
{
- Application.Current.Shutdown();//关闭全部窗口
+ if (user_t > 0)//判断登录状态
+ user_t = 0;//登录倒计时清除
+ else
+ Application.Current.Shutdown();//关闭全部窗口
}
private void Help(object sender, RoutedEventArgs e)
@@ -45,6 +48,60 @@ namespace Audit
Windows.help help = new Windows.help();
help.ShowDialog();//实例化并置顶打开信息窗口
}
+ private void User(object sender, RoutedEventArgs e)
+ {
+ Windows.user user = new Windows.user();
+ user.ShowDialog();//实例化并置顶打开用户窗口
+ }
+
+ private void Set_up(object sender, RoutedEventArgs e)
+ {
+ Windows.Set_up_Sql set = new Windows.Set_up_Sql();
+ set.ShowDialog();//实例化并置顶打开设置窗口
+ }
+
+ public static int user_t = 0;
+ public static string user_n = null;
+
+ public void DisTimer_Tick(object sender, EventArgs e)//循环事件
+ {
+ if (string.IsNullOrEmpty(user_n))
+ {
+
+ }
+ else
+ {
+ if (user_t > 0)
+ {
+ this.RadioButtonk1.Visibility = Visibility.Visible;//显示管理
+ this.RadioButtonk12.Visibility = Visibility.Visible;//显示设置
+ user_time.Text = user_n + ":" + user_t.ToString();//前端计时显示
+ user_t--;//计时减一
+ }
+ else
+ {
+ container.Content = new QueryView();//打开查询
+ this.RadioButtonk1.Visibility = Visibility.Collapsed;//隐藏管理
+ this.RadioButtonk12.Visibility = Visibility.Collapsed;//隐藏设置
+ this.RadioButtonk2.Visibility = Visibility.Collapsed;
+ this.RadioButtonk21.Visibility = Visibility.Collapsed;
+ this.RadioButtonk22.Visibility = Visibility.Collapsed;
+ this.RadioButtonk23.Visibility = Visibility.Collapsed;
+ this.RadioButtonk24.Visibility = Visibility.Collapsed;//隐藏管理副目录
+ user_n = null;//状态清空
+ user_time.Text = null;//前端计数显示空
+ }
+ }
+ }
+
+ private DispatcherTimer disTimer = new DispatcherTimer();//循环功能
+ public void CountDown()
+ {
+ //设置定时器
+ disTimer.Tick += new EventHandler(DisTimer_Tick);//每一秒执行的方法
+ disTimer.Interval = new TimeSpan(10000000); //时间间隔为一秒。
+ disTimer.Start();//计时开始
+ }
private void RadioButton_Checked(object sender, RoutedEventArgs e)
{
@@ -52,12 +109,83 @@ namespace Audit
if (string.IsNullOrEmpty(button.Content.ToString())) return;
switch (button.Content.ToString())
{
- case "查询": container.Content = new QueryView(); break;
- case "原料": container.Content = new StuffView(); break;
- case "统计": container.Content = new StatisticsView(); break;
+ case "查询":
+ container.Content = new QueryView();
+ this.RadioButtonk2.Visibility = Visibility.Collapsed;
+ this.RadioButtonk21.Visibility = Visibility.Collapsed;
+ this.RadioButtonk22.Visibility = Visibility.Collapsed;
+ this.RadioButtonk23.Visibility = Visibility.Collapsed;
+ this.RadioButtonk24.Visibility = Visibility.Collapsed;
+ break;
+ case "统计":
+ container.Content = new StatisticsView();
+ this.RadioButtonk2.Visibility = Visibility.Collapsed;
+ this.RadioButtonk21.Visibility = Visibility.Collapsed;
+ this.RadioButtonk22.Visibility = Visibility.Collapsed;
+ this.RadioButtonk23.Visibility = Visibility.Collapsed;
+ this.RadioButtonk24.Visibility = Visibility.Collapsed;
+ break;
+ case "管理":
+ this.RadioButtonk2.Visibility = Visibility.Visible;
+ this.RadioButtonk21.Visibility = Visibility.Visible;
+ this.RadioButtonk22.Visibility = Visibility.Visible;
+ this.RadioButtonk23.Visibility = Visibility.Visible;
+ this.RadioButtonk24.Visibility = Visibility.Visible;
+ break;
default:
break;
}
}
+
+ private void RadioButton_Checked2(object sender, RoutedEventArgs e)
+ {
+ if (!(sender is RadioButton button)) return;
+ if (string.IsNullOrEmpty(button.Content.ToString())) return;
+ switch (button.Content.ToString())
+ {
+ case "-":
+ this.RadioButtonk2.Visibility = Visibility.Collapsed;
+ this.RadioButtonk21.Visibility = Visibility.Collapsed;
+ this.RadioButtonk22.Visibility = Visibility.Collapsed;
+ this.RadioButtonk23.Visibility = Visibility.Collapsed;
+ this.RadioButtonk24.Visibility = Visibility.Collapsed;
+ break;
+ case "原料管理":
+ container.Content = new StuffView();
+ this.RadioButtonk2.Visibility = Visibility.Collapsed;
+ this.RadioButtonk21.Visibility = Visibility.Collapsed;
+ this.RadioButtonk22.Visibility = Visibility.Collapsed;
+ this.RadioButtonk23.Visibility = Visibility.Collapsed;
+ this.RadioButtonk24.Visibility = Visibility.Collapsed;
+ break;
+ case "染机管理":
+ container.Content = new View.MachinesView();
+ this.RadioButtonk2.Visibility = Visibility.Collapsed;
+ this.RadioButtonk21.Visibility = Visibility.Collapsed;
+ this.RadioButtonk22.Visibility = Visibility.Collapsed;
+ this.RadioButtonk23.Visibility = Visibility.Collapsed;
+ this.RadioButtonk24.Visibility = Visibility.Collapsed;
+ break;
+ case "设备管理":
+
+ this.RadioButtonk2.Visibility = Visibility.Collapsed;
+ this.RadioButtonk21.Visibility = Visibility.Collapsed;
+ this.RadioButtonk22.Visibility = Visibility.Collapsed;
+ this.RadioButtonk23.Visibility = Visibility.Collapsed;
+ this.RadioButtonk24.Visibility = Visibility.Collapsed;
+ break;
+ case "输送原料":
+ container.Content = new PipesView();
+ this.RadioButtonk2.Visibility = Visibility.Collapsed;
+ this.RadioButtonk21.Visibility = Visibility.Collapsed;
+ this.RadioButtonk22.Visibility = Visibility.Collapsed;
+ this.RadioButtonk23.Visibility = Visibility.Collapsed;
+ this.RadioButtonk24.Visibility = Visibility.Collapsed;
+ break;
+ default:
+ break;
+ }
+ }
+
}
}
diff --git a/Models/App.Config b/Models/App.Config
index 89b21ce..3e888b9 100644
--- a/Models/App.Config
+++ b/Models/App.Config
@@ -3,5 +3,5 @@
-
+
\ No newline at end of file
diff --git a/Models/AuxDslvQueue.cs b/Models/AuxDslvQueue.cs
deleted file mode 100644
index b9bddbc..0000000
--- a/Models/AuxDslvQueue.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class AuxDslvQueue
- {
- public Nullable TankNo { get; set; }
- public string Dyelot { get; set; }
- public int ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public string Station { get; set; }
- public Nullable Industry { get; set; }
- public Nullable State { get; set; }
- public string Machine { get; set; }
- public string Volume { get; set; }
- public Nullable ShelfID { get; set; }
- public Nullable Updated { get; set; }
- }
-}
diff --git a/Models/AuxDslvQueueHistory.cs b/Models/AuxDslvQueueHistory.cs
deleted file mode 100644
index 42287b5..0000000
--- a/Models/AuxDslvQueueHistory.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class AuxDslvQueueHistory
- {
- public Nullable TankNo { get; set; }
- public string Dyelot { get; set; }
- public int ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public string Station { get; set; }
- public Nullable Industry { get; set; }
- public Nullable State { get; set; }
- public string Machine { get; set; }
- public string Volume { get; set; }
- public Nullable ShelfID { get; set; }
- public Nullable Created { get; set; }
- }
-}
diff --git a/Models/BucketCrane.cs b/Models/BucketCrane.cs
deleted file mode 100644
index 1a6f8ce..0000000
--- a/Models/BucketCrane.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class BucketCrane
- {
- public string Dyelot { get; set; }
- public Nullable ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public Nullable DevideNo { get; set; }
- public Nullable BucketNo { get; set; }
- public string DID { get; set; }
- public Nullable State { get; set; }
- public Nullable Updated { get; set; }
- }
-}
diff --git a/Models/BucketCraneHistory.cs b/Models/BucketCraneHistory.cs
deleted file mode 100644
index 5647989..0000000
--- a/Models/BucketCraneHistory.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class BucketCraneHistory
- {
- public string Dyelot { get; set; }
- public Nullable ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public Nullable DevideNo { get; set; }
- public Nullable BucketNo { get; set; }
- public string DID { get; set; }
- public Nullable State { get; set; }
- public Nullable Created { get; set; }
- }
-}
diff --git a/Models/BucketInfo.cs b/Models/BucketInfo.cs
deleted file mode 100644
index 31b47a6..0000000
--- a/Models/BucketInfo.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class BucketInfo
- {
- public int BucketNo { get; set; }
- public string DID { get; set; }
- public Nullable StartTime { get; set; }
- public Nullable EndTime { get; set; }
- public Nullable Used { get; set; }
- public string UserAccount { get; set; }
- }
-}
diff --git a/Models/BucketShelf.cs b/Models/BucketShelf.cs
deleted file mode 100644
index dfb20a6..0000000
--- a/Models/BucketShelf.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class BucketShelf
- {
- public Nullable BucketNo { get; set; }
- public Nullable ShelfID { get; set; }
- public string Dyelot { get; set; }
- public int ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public string Station { get; set; }
- public string DID { get; set; }
- public Nullable TotalBuckets { get; set; }
- public Nullable DevideNo { get; set; }
- public Nullable XPos { get; set; }
- public Nullable YPos { get; set; }
- public Nullable State { get; set; }
- public Nullable OnShelfTime { get; set; }
- public string UserAccount { get; set; }
- public Nullable Locked { get; set; }
- public string ProductCode { get; set; }
- public string OriginDyelot { get; set; }
- }
-}
diff --git a/Models/BucketShelfHistory.cs b/Models/BucketShelfHistory.cs
deleted file mode 100644
index 492014a..0000000
--- a/Models/BucketShelfHistory.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class BucketShelfHistory
- {
- public Nullable BucketNo { get; set; }
- public Nullable ShelfID { get; set; }
- public string Dyelot { get; set; }
- public int ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public string Station { get; set; }
- public string DID { get; set; }
- public Nullable TotalBuckets { get; set; }
- public Nullable DevideNo { get; set; }
- public Nullable XPos { get; set; }
- public Nullable YPos { get; set; }
- public Nullable State { get; set; }
- public Nullable OnShelfTime { get; set; }
- public string UserAccount { get; set; }
- public Nullable Locked { get; set; }
- public string ProductCode { get; set; }
- public string OriginDyelot { get; set; }
- }
-}
diff --git a/Models/BucketShelfQueue.cs b/Models/BucketShelfQueue.cs
deleted file mode 100644
index bad4ada..0000000
--- a/Models/BucketShelfQueue.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class BucketShelfQueue
- {
- public Nullable BucketNo { get; set; }
- public Nullable ShelfID { get; set; }
- public string Dyelot { get; set; }
- public int ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public Nullable TotalBuckets { get; set; }
- public Nullable DevideNo { get; set; }
- public Nullable XPos { get; set; }
- public Nullable YPos { get; set; }
- public Nullable State { get; set; }
- public Nullable Updated { get; set; }
- }
-}
diff --git a/Models/BucketShelfQueueHistory.cs b/Models/BucketShelfQueueHistory.cs
deleted file mode 100644
index 5585f7e..0000000
--- a/Models/BucketShelfQueueHistory.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class BucketShelfQueueHistory
- {
- public Nullable BucketNo { get; set; }
- public Nullable ShelfID { get; set; }
- public string Dyelot { get; set; }
- public int ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public Nullable TotalBuckets { get; set; }
- public Nullable DevideNo { get; set; }
- public Nullable XPos { get; set; }
- public Nullable YPos { get; set; }
- public Nullable State { get; set; }
- public Nullable Created { get; set; }
- }
-}
diff --git a/Models/CleanDevice.cs b/Models/CleanDevice.cs
deleted file mode 100644
index 59e91a5..0000000
--- a/Models/CleanDevice.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class CleanDevice
- {
- public string ID { get; set; }
- public Nullable State { get; set; }
- public Nullable Enabled { get; set; }
- }
-}
diff --git a/Models/DBRDetail.cs b/Models/DBRDetail.cs
deleted file mode 100644
index 6b5a017..0000000
--- a/Models/DBRDetail.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-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 Grams { get; set; }
- public Nullable DispenseGrams { get; set; }
- public Nullable Buckets { get; set; }
- public System.DateTime DispenseStartTime { get; set; }
- public Nullable DispenseEndTime { get; set; }
- public Nullable DispenseSeconds { get; set; }
- public Nullable ProductStartTime { get; set; }
- public Nullable ProductEndTime { get; set; }
- public Nullable ProductSeconds { get; set; }
- public Nullable LDXGrams { get; set; }
- public Nullable LDXBuckets { get; set; }
- public Nullable IsDeduct { get; set; }
- public Nullable DeductBox { get; set; }
- public string BoxNo { get; set; }
- public Nullable DispenseResult { get; set; }
- public Nullable BucketWeight { get; set; }
- }
-}
diff --git a/Models/DispenserEvent.cs b/Models/DispenserEvent.cs
deleted file mode 100644
index e40815b..0000000
--- a/Models/DispenserEvent.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class DispenserEvent
- {
- public int EventID { get; set; }
- public Nullable EventType { get; set; }
- public string Dispenser { get; set; }
- public string Device { get; set; }
- public string Dyelot { get; set; }
- public Nullable ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public Nullable Code { get; set; }
- public string Description { get; set; }
- public string Description_BIG { get; set; }
- public string Description_GB { get; set; }
- public Nullable CreateDate { get; set; }
- public Nullable ConfirmDate { get; set; }
- public Nullable FinishDate { get; set; }
- public string Shift { get; set; }
- public string UserAccount { get; set; }
- }
-}
diff --git a/Models/DispenserLifeStatus.cs b/Models/DispenserLifeStatus.cs
deleted file mode 100644
index c6d890d..0000000
--- a/Models/DispenserLifeStatus.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class DispenserLifeStatus
- {
- public string Dispenser { get; set; }
- public string Device { get; set; }
- public Nullable HeartBeat { get; set; }
- public Nullable LifeTime { get; set; }
- public Nullable UpdateDate { get; set; }
- public Nullable Created { get; set; }
- }
-}
diff --git a/Models/DispenserUtilization.cs b/Models/DispenserUtilization.cs
deleted file mode 100644
index 17dbf31..0000000
--- a/Models/DispenserUtilization.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-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 ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public Nullable UtilStartDate { get; set; }
- public Nullable UtilEndDate { get; set; }
- public Nullable UtilTimes { get; set; }
- public string UserAccount { get; set; }
- }
-}
diff --git a/Models/Dispensers.cs b/Models/Dispensers.cs
deleted file mode 100644
index 1db2963..0000000
--- a/Models/Dispensers.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-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 ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public string Station { get; set; }
- public Nullable State { get; set; }
- public string Status { get; set; }
- public string Action { get; set; }
- public string ProductCode { get; set; }
- public Nullable SN { get; set; }
- public Nullable Automatic { get; set; }
- public Nullable Enabled { get; set; }
- public Nullable HeartBeat { get; set; }
- public Nullable CheckPeriod { get; set; }
- public Nullable UpdateDate { get; set; }
- public Nullable CreateDate { get; set; }
- public string UserAccount { get; set; }
- }
-}
diff --git a/Models/DissolveArt.cs b/Models/DissolveArt.cs
deleted file mode 100644
index ee2dec3..0000000
--- a/Models/DissolveArt.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class DissolveArt
- {
- public string Name { get; set; }
- public Nullable ProductClass { get; set; }
- public Nullable LiquidRatio { get; set; }
- public Nullable MinWeight { get; set; }
- public Nullable MaxWeight { get; set; }
- public Nullable DissolveTemperature { get; set; }
- public Nullable UseLiquidDye { get; set; }
- public Nullable UseChemical { get; set; }
- public string Process { get; set; }
- public Nullable TankSize { get; set; }
- public Nullable Created { get; set; }
- }
-}
diff --git a/Models/DissolveArtHistory.cs b/Models/DissolveArtHistory.cs
deleted file mode 100644
index 9bb1e32..0000000
--- a/Models/DissolveArtHistory.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class DissolveArtHistory
- {
- public string Name { get; set; }
- public Nullable ProductClass { get; set; }
- public Nullable LiquidRatio { get; set; }
- public Nullable MinWeight { get; set; }
- public Nullable MaxWeight { get; set; }
- public Nullable DissolveTemperature { get; set; }
- public Nullable UseLiquidDye { get; set; }
- public Nullable UseChemical { get; set; }
- public string Process { get; set; }
- public Nullable TankSize { get; set; }
- public Nullable Updated { get; set; }
- }
-}
diff --git a/Models/DyelotBucketSummary.cs b/Models/DyelotBucketSummary.cs
deleted file mode 100644
index 865adac..0000000
--- a/Models/DyelotBucketSummary.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class DyelotBucketSummary
- {
- public string Dyelot { get; set; }
- public int ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public Nullable TotalBuckets { get; set; }
- public Nullable Final { get; set; }
- public Nullable Created { get; set; }
- }
-}
diff --git a/Models/DyelotBuckets.cs b/Models/DyelotBuckets.cs
deleted file mode 100644
index daf3396..0000000
--- a/Models/DyelotBuckets.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class DyelotBuckets
- {
- public string Dyelot { get; set; }
- public int ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public Nullable DevideNo { get; set; }
- public string ProductCode { get; set; }
- public Nullable BucketNo { get; set; }
- public string DID { get; set; }
- public Nullable Final { get; set; }
- public Nullable Dissolved { get; set; }
- public Nullable Created { get; set; }
- }
-}
diff --git a/Models/DyelotBucketsHistory.cs b/Models/DyelotBucketsHistory.cs
deleted file mode 100644
index 33962e1..0000000
--- a/Models/DyelotBucketsHistory.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class DyelotBucketsHistory
- {
- public string Dyelot { get; set; }
- public int ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public Nullable DevideNo { get; set; }
- public string ProductCode { get; set; }
- public Nullable BucketNo { get; set; }
- public string DID { get; set; }
- public Nullable Final { get; set; }
- public Nullable Dissolved { get; set; }
- public Nullable Created { get; set; }
- }
-}
diff --git a/Models/DyelotDetail.cs b/Models/DyelotDetail.cs
deleted file mode 100644
index 5d7df35..0000000
--- a/Models/DyelotDetail.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class DyelotDetail
- {
- public string Dyelot { get; set; }
- public int ReDye { get; set; }
- public Nullable 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 Grams { get; set; }
- public Nullable Created { get; set; }
- public Nullable SN { get; set; }
- public Nullable DispenseTime { get; set; }
- public Nullable DispenseGrams { get; set; }
- public Nullable CurrDispGrams { get; set; }
- public Nullable LADispenseResult { get; set; }
- public Nullable Error { get; set; }
- public string UserAccount { get; set; }
- public string Volume { get; set; }
- public Nullable CurrDispTime { get; set; }
- public string CurrVolume { get; set; }
- public string RemainVolume { get; set; }
- public Nullable FinalPickup { get; set; }
- public Nullable LFManual { get; set; }
- }
-}
diff --git a/Models/DyelotDslvQueue.cs b/Models/DyelotDslvQueue.cs
deleted file mode 100644
index c6c63f6..0000000
--- a/Models/DyelotDslvQueue.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class DyelotDslvQueue
- {
- public Nullable TankNo { get; set; }
- public string Dyelot { get; set; }
- public int ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public Nullable TotalBuckets { get; set; }
- public Nullable DivideNo { get; set; }
- public Nullable State { get; set; }
- public Nullable ShelfID { get; set; }
- public Nullable SchDispenseTime { get; set; }
- public Nullable BucketNo { get; set; }
- public Nullable Updated { get; set; }
- }
-}
diff --git a/Models/DyelotDslvQueueHistory.cs b/Models/DyelotDslvQueueHistory.cs
deleted file mode 100644
index 9b28807..0000000
--- a/Models/DyelotDslvQueueHistory.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class DyelotDslvQueueHistory
- {
- public Nullable TankNo { get; set; }
- public string Dyelot { get; set; }
- public int ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public Nullable TotalBuckets { get; set; }
- public Nullable DivideNo { get; set; }
- public Nullable State { get; set; }
- public Nullable ShelfID { get; set; }
- public Nullable SchDispenseTime { get; set; }
- public Nullable BucketNo { get; set; }
- public Nullable Created { get; set; }
- }
-}
diff --git a/Models/DyelotHead.cs b/Models/DyelotHead.cs
deleted file mode 100644
index 306f5e4..0000000
--- a/Models/DyelotHead.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class DyelotHead
- {
- public string Dyelot { get; set; }
- public int ReDye { get; set; }
- public Nullable StartTime { get; set; }
- public Nullable EndTime { get; set; }
- public Nullable CreationTime { get; set; }
- public string TotalVolume { get; set; }
- public Nullable DispenseTimes { get; set; }
- public Nullable CurrDispTime { get; set; }
- public string CurrTotalVolume { get; set; }
- public Nullable State { get; set; }
- public Nullable Sequence { get; set; }
- public Nullable Color { get; set; }
- public Nullable PickUp { get; set; }
- public Nullable GramsYard { get; set; }
- public Nullable TotalLength { get; set; }
- public Nullable 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 Blocked { get; set; }
- public Nullable Industry { get; set; }
- public string Volume { get; set; }
- public Nullable StandardTime { get; set; }
- public Nullable LFArt { get; set; }
- public string RemainVolume { get; set; }
- public Nullable FinalPickUp { get; set; }
- public Nullable LFWasher { get; set; }
- public string ActualTotalVolume { get; set; }
- public Nullable ActualTotalLength { get; set; }
- public Nullable UsedPickup { get; set; }
- public string RemainPadderVol { get; set; }
- public Nullable 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 StartButton { get; set; }
- public Nullable EndButton { get; set; }
- public string MergerVol { get; set; }
- }
-}
diff --git a/Models/Dyelots.cs b/Models/Dyelots.cs
index 985faf0..cb39751 100644
--- a/Models/Dyelots.cs
+++ b/Models/Dyelots.cs
@@ -17,51 +17,12 @@ namespace Models
public int ID { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
- public Nullable Industry { get; set; }
public string Machine { get; set; }
public string DispenseMachine { get; set; }
public Nullable StartTime { get; set; }
public Nullable EndTime { get; set; }
public Nullable StandardTime { get; set; }
- public Nullable TotalShot { get; set; }
- public Nullable State { get; set; }
- public Nullable Blocked { get; set; }
- public string Program { get; set; }
- public Nullable Color { get; set; }
- public Nullable CreationTime { get; set; }
- public string Batch { get; set; }
- public string OrderNo { get; set; }
- public Nullable TotalWeight { get; set; }
- public string LiquidRatio { get; set; }
- public string TotalVolume { get; set; }
- public Nullable AcidQty { get; set; }
- public Nullable ActualAcidQty { get; set; }
- public Nullable Sequence { get; set; }
- public Nullable DispenseMode { get; set; }
- public Nullable DyeDissolve { get; set; }
- public Nullable CheDissolve { get; set; }
- public Nullable TotalBuckets { get; set; }
- public Nullable SpcTotalBuckets { get; set; }
- public Nullable DissolveMethod { get; set; }
- public string ReferenceDyelot { get; set; }
public Nullable Final { get; set; }
- public Nullable Shade { get; set; }
- public Nullable OnSchedule { get; set; }
- public Nullable DyeStep { get; set; }
- public Nullable PowderBlocked { get; set; }
- public Nullable PowderOnSchedule { get; set; }
- public Nullable PowderStep { get; set; }
- public string DispensedVolume { get; set; }
- public Nullable Times { get; set; }
public string UserAccount { get; set; }
- public string FabricName { get; set; }
- public string ColorNo { get; set; }
- public string ColorName { get; set; }
- public string CustomerName { get; set; }
- public string CUSTOMER_CODE { get; set; }
- public string FABRIC_CODE { get; set; }
- public Nullable GRAMS_YARD { get; set; }
- public Nullable ModifyDT { get; set; }
- public Nullable CreateDT { get; set; }
}
}
diff --git a/Models/DyelotsBatch.cs b/Models/DyelotsBatch.cs
deleted file mode 100644
index 8a93f75..0000000
--- a/Models/DyelotsBatch.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码已从模板生成。
-//
-// 手动更改此文件可能导致应用程序出现意外的行为。
-// 如果重新生成代码,将覆盖对此文件的手动更改。
-//
-//------------------------------------------------------------------------------
-
-namespace Models
-{
- using System;
- using System.Collections.Generic;
-
- public partial class DyelotsBatch
- {
- public string Dyelot { get; set; }
- public int ReDye { get; set; }
- public Nullable StepNumber { get; set; }
- public string Station { get; set; }
- public Nullable ShotNo { get; set; }
- public string ProductCode { get; set; }
- public Nullable SN { get; set; }
- public Nullable Grams { get; set; }
- public Nullable DispenseStartTime { get; set; }
- public Nullable DispenseEndTime { get; set; }
- public Nullable DispenseGrams { get; set; }
- public Nullable LADispenseResult { get; set; }
- public Nullable DyeWeightTime { get; set; }
- public string Process { get; set; }
- public string FinalProcess { get; set; }
- public Nullable DispenseWater { get; set; }
- public Nullable DrainWater { get; set; }
- public Nullable DissolveTemperature { get; set; }
- public Nullable SchDispenseTime { get; set; }
- public string UserAccount { get; set; }
- }
-}
diff --git a/Models/DyelotsBulkedRecipe.cs b/Models/DyelotsBulkedRecipe.cs
index e5c07b1..dd6e446 100644
--- a/Models/DyelotsBulkedRecipe.cs
+++ b/Models/DyelotsBulkedRecipe.cs
@@ -19,14 +19,11 @@ namespace Models
public int ReDye { get; set; }
public Nullable StepNumber { get; set; }
public string Station { get; set; }
- public Nullable DevideNo { get; set; }
- public Nullable ShotNo { get; set; }
public string ProductCode { get; set; }
public string ProductName { get; set; }
public Nullable ProductType { get; set; }
public string ProductLot { get; set; }
public Nullable ProductClass { get; set; }
- public Nullable SN { get; set; }
public string Amount { get; set; }
public Nullable Grams { get; set; }
public Nullable Created { get; set; }
@@ -35,51 +32,9 @@ namespace Models
public Nullable