添加运作中限制开启工艺设置
This commit is contained in:
commit
8997238efd
7 files changed
+63
-8
No files matched your search
Generated
+18
@@ -879,6 +879,15 @@ namespace DyeingComputer.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Process lock-in 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string Process_lock {
|
||||
get {
|
||||
return ResourceManager.GetString("Process_lock", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 The process does not exist 的本地化字符串。
|
||||
/// </summary>
|
||||
@@ -1050,6 +1059,15 @@ namespace DyeingComputer.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Refuse 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string refuse {
|
||||
get {
|
||||
return ResourceManager.GetString("refuse", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Remark 的本地化字符串。
|
||||
/// </summary>
|
||||
|
||||
@@ -537,4 +537,10 @@
|
||||
<data name="Fault" xml:space="preserve">
|
||||
<value>Fault</value>
|
||||
</data>
|
||||
<data name="Process_lock" xml:space="preserve">
|
||||
<value>Process lock-in</value>
|
||||
</data>
|
||||
<data name="refuse" xml:space="preserve">
|
||||
<value>Refuse</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -537,4 +537,10 @@
|
||||
<data name="Fault" xml:space="preserve">
|
||||
<value>Fault</value>
|
||||
</data>
|
||||
<data name="Process_lock" xml:space="preserve">
|
||||
<value>Process lock-in</value>
|
||||
</data>
|
||||
<data name="refuse" xml:space="preserve">
|
||||
<value>Refuse</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -537,4 +537,10 @@
|
||||
<data name="Fault" xml:space="preserve">
|
||||
<value>故障</value>
|
||||
</data>
|
||||
<data name="Process_lock" xml:space="preserve">
|
||||
<value>工艺已锁定</value>
|
||||
</data>
|
||||
<data name="refuse" xml:space="preserve">
|
||||
<value>拒绝</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -537,4 +537,10 @@
|
||||
<data name="Fault" xml:space="preserve">
|
||||
<value>故障</value>
|
||||
</data>
|
||||
<data name="Process_lock" xml:space="preserve">
|
||||
<value />
|
||||
</data>
|
||||
<data name="refuse" xml:space="preserve">
|
||||
<value />
|
||||
</data>
|
||||
</root>
|
||||
@@ -235,11 +235,17 @@ namespace DyeingComputer.View
|
||||
|
||||
private void start_Click(object sender, RoutedEventArgs e)//开始
|
||||
{
|
||||
if (string.IsNullOrEmpty(WorkOrder_Numder)) return;
|
||||
if (_lock == "1")
|
||||
{
|
||||
MessageBoxResult messageBox = System.Windows.MessageBox.Show(Properties.Resources.Process_lock, "800", MessageBoxButton.OK);
|
||||
return;
|
||||
}
|
||||
|
||||
DataTable WorkorderSteps = new DataTable();
|
||||
DataTable data_t = new DataTable();
|
||||
int a;
|
||||
|
||||
if (string.IsNullOrEmpty(WorkOrder_Numder)) return;
|
||||
SQLiteHelpers = new SQLiteHelper(DBAddress); //数据库连接路径
|
||||
SQLiteHelpers.Open(); //打开数据库
|
||||
|
||||
@@ -247,10 +253,17 @@ namespace DyeingComputer.View
|
||||
if (R_D > 0)
|
||||
{
|
||||
SQLiteHelpers.Close(); //关闭连接
|
||||
|
||||
MessageBoxResult messageBoxResult = System.Windows.MessageBox.Show(Properties.Resources.RunningProcess, "800", MessageBoxButton.YesNo);
|
||||
if (messageBoxResult == MessageBoxResult.No) return;
|
||||
if (messageBoxResult == MessageBoxResult.Yes)
|
||||
{
|
||||
if(MainWindowViewModel.S17 == 1) //拒绝操作
|
||||
{
|
||||
System.Windows.MessageBox.Show(Properties.Resources.refuse, "800", MessageBoxButton.OK);
|
||||
return;
|
||||
}
|
||||
|
||||
SQLiteHelpers = new SQLiteHelper(DBAddress); //数据库连接路径
|
||||
SQLiteHelpers.Open(); //打开数据库
|
||||
}
|
||||
@@ -323,8 +336,6 @@ namespace DyeingComputer.View
|
||||
Picture.Content = dataGrid;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void TEMP()
|
||||
{
|
||||
//处理计划温度图表
|
||||
@@ -405,6 +416,5 @@ namespace DyeingComputer.View
|
||||
Picture.Content = new View.CurveTemp(TEMPTable);
|
||||
} //计划温度图表
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -142,13 +142,15 @@ namespace DyeingComputer.ViewModel
|
||||
public static string S03;//设备组
|
||||
public static string S05;//管控模式
|
||||
public static string S06;//通讯编码
|
||||
public static int S16;//机型
|
||||
public static int S16;//风机联动
|
||||
public static int S17;//
|
||||
public static int SM01;//副缸
|
||||
public static int SM02;//副缸
|
||||
public static int SM03;//副缸
|
||||
public int MI01;//
|
||||
public int MI02;//
|
||||
public int MI03;//
|
||||
public int MI01;//布轮信息
|
||||
public int MI02;//喷射流量信息
|
||||
public int MI03;//动态压力
|
||||
public int MI04;//能耗信息
|
||||
|
||||
private double MS01;//1缸温度偏差
|
||||
private double MS02;//2缸温度偏差
|
||||
@@ -201,6 +203,7 @@ namespace DyeingComputer.ViewModel
|
||||
MI02 = Convert.ToInt16(Selet_sys("MI02"));//工作信息
|
||||
MI03 = Convert.ToInt16(Selet_sys("MI03"));//工作信息
|
||||
S16 = Convert.ToInt16(Selet_sys("S16"));//工作信息
|
||||
S17 = Convert.ToInt16(Selet_sys("S17"));//
|
||||
|
||||
SM01 = Convert.ToInt16(Selet_sys("SM01"));//FG
|
||||
SM02 = Convert.ToInt16(Selet_sys("SM02"));//FG
|
||||
|
||||
Reference in new issue
Block a user