Browse Source

排程表增加状态明细,状态数值字符转换器

master
sc 7 months ago
parent
commit
32b0050b4f
  1. 47
      ConvertMoels/StatenClassConvert.cs
  2. 26
      ConvertMoels/StatenConvert.cs
  3. 159
      Properties/Resources.Designer.cs
  4. 57
      Properties/Resources.en-US.resx
  5. 57
      Properties/Resources.resx
  6. 57
      Properties/Resources.zh-CN.resx
  7. 59
      Properties/Resources.zh-TW.resx
  8. 1
      SunlightCentralizedControlManagement_SCCM_.csproj
  9. 4
      View/ProductionPlanningView.xaml.cs

47
ConvertMoels/StatenClassConvert.cs

@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SunlightCentralizedControlManagement_SCCM_.ConvertMoels
{
internal class StatenClassConvert
{
public static string Convert(object value)
{
if (value == null)
{
return null;
}
else
{
string Staten = null;
string i = value.ToString();
if (i == "100") Staten = Properties.Resources.Await;//等待
else if (i == "101") Staten = Properties.Resources.Ready;//准备
else if (i == "102") Staten = Properties.Resources.Measure;//计量
else if (i == "109") Staten = Properties.Resources.ERR;//错误
else if (i == "110") Staten = Properties.Resources.NotSent;//未发送
else if (i == "111") Staten = Properties.Resources.LtemizedSending;//发送明细
else if (i == "112") Staten = Properties.Resources.DNotSent;//未发送明细
else if (i == "119") Staten = Properties.Resources.Fail;//失败
else if (i == "201") Staten = Properties.Resources.Auto;//自动
else if (i == "202") Staten = Properties.Resources.LineUp;//排队
else if (i == "203") Staten = Properties.Resources.Await;//等待
else if (i == "301") Staten = Properties.Resources.Finish;//完成
else if (i == "309") Staten = Properties.Resources.Abnormal;//错误
else if (i == "800") Staten = Properties.Resources.Notimplementation;//未连接
else if (i == "801") Staten = Properties.Resources.Implementation;//连接成功
else if (i == "801") Staten = Properties.Resources.Online;//在线
else if (i == "899") Staten = Properties.Resources.CloseTheConnection;//关闭连接
else Staten = "null";
return Staten;
}
}
}
}

26
ConvertMoels/StatenConvert.cs

@ -21,15 +21,23 @@ namespace SunlightCentralizedControlManagement_SCCM_.ConvertMoels
string Staten = null;
string i = value.ToString();
if (i == "101") Staten = Properties.Resources.Ready;
else if (i == "102") Staten = Properties.Resources.Measure;
else if (i == "201") Staten = Properties.Resources.Auto;
else if (i == "202") Staten = Properties.Resources.LineUp;
else if (i == "203") Staten = Properties.Resources.Await;
else if (i == "301") Staten = Properties.Resources.Finish;
else if (i == "309") Staten = Properties.Resources.Abnormal;
else if (i == "800") Staten = Properties.Resources.Notimplementation;
else if (i == "801") Staten = Properties.Resources.Implementation;
if (i == "100") Staten = Properties.Resources.Await;//等待
else if (i == "101") Staten = Properties.Resources.Ready;//准备
else if (i == "102") Staten = Properties.Resources.Measure;//计量
else if (i == "109") Staten = Properties.Resources.ERR;//错误
else if (i == "110") Staten = Properties.Resources.NotSent;//未发送
else if (i == "111") Staten = Properties.Resources.LtemizedSending;//发送明细
else if (i == "112") Staten = Properties.Resources.DNotSent;//未发送明细
else if (i == "119") Staten = Properties.Resources.Fail;//失败
else if (i == "201") Staten = Properties.Resources.Auto;//自动
else if (i == "202") Staten = Properties.Resources.LineUp;//排队
else if (i == "203") Staten = Properties.Resources.Await;//等待
else if (i == "301") Staten = Properties.Resources.Finish;//完成
else if (i == "309") Staten = Properties.Resources.Abnormal;//错误
else if (i == "800") Staten = Properties.Resources.Notimplementation;//未连接
else if (i == "801") Staten = Properties.Resources.Implementation;//连接成功
else if (i == "801") Staten = Properties.Resources.Online;//在线
else if (i == "899") Staten = Properties.Resources.CloseTheConnection;//关闭连接
else Staten = "null";
return Staten;

159
Properties/Resources.Designer.cs

@ -276,6 +276,15 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 Close the connection 的本地化字符串。
/// </summary>
public static string CloseTheConnection {
get {
return ResourceManager.GetString("CloseTheConnection", resourceCulture);
}
}
/// <summary>
/// 查找类似 ClothIntake 的本地化字符串。
/// </summary>
@ -654,6 +663,15 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 Details were not sent 的本地化字符串。
/// </summary>
public static string DNotSent {
get {
return ResourceManager.GetString("DNotSent", resourceCulture);
}
}
/// <summary>
/// 查找类似 Does Not Exist 的本地化字符串。
/// </summary>
@ -816,6 +834,15 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 err 的本地化字符串。
/// </summary>
public static string ERR {
get {
return ResourceManager.GetString("ERR", resourceCulture);
}
}
/// <summary>
/// 查找类似 Expected 的本地化字符串。
/// </summary>
@ -834,6 +861,15 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 fail 的本地化字符串。
/// </summary>
public static string Fail {
get {
return ResourceManager.GetString("Fail", resourceCulture);
}
}
/// <summary>
/// 查找类似 FailureRecovery 的本地化字符串。
/// </summary>
@ -1005,15 +1041,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 High-water level 的本地化字符串。
/// </summary>
public static string High_waterlevel1 {
get {
return ResourceManager.GetString("High-waterlevel1", resourceCulture);
}
}
/// <summary>
/// 查找类似 History 的本地化字符串。
/// </summary>
@ -1023,15 +1050,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 History 的本地化字符串。
/// </summary>
public static string HistoryRecords1 {
get {
return ResourceManager.GetString("HistoryRecords1", resourceCulture);
}
}
/// <summary>
/// 查找类似 ID 的本地化字符串。
/// </summary>
@ -1041,15 +1059,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 ID 的本地化字符串。
/// </summary>
public static string ID1 {
get {
return ResourceManager.GetString("ID1", resourceCulture);
}
}
/// <summary>
/// 查找类似 Implementation 的本地化字符串。
/// </summary>
@ -1059,15 +1068,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 Implementation 的本地化字符串。
/// </summary>
public static string Implementation1 {
get {
return ResourceManager.GetString("Implementation1", resourceCulture);
}
}
/// <summary>
/// 查找类似 I/O 的本地化字符串。
/// </summary>
@ -1077,15 +1077,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 I/O 的本地化字符串。
/// </summary>
public static string InOut1 {
get {
return ResourceManager.GetString("InOut1", resourceCulture);
}
}
/// <summary>
/// 查找类似 Insert 的本地化字符串。
/// </summary>
@ -1095,15 +1086,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 Insert 的本地化字符串。
/// </summary>
public static string Insert1 {
get {
return ResourceManager.GetString("Insert1", resourceCulture);
}
}
/// <summary>
/// 查找类似 Invalid features 的本地化字符串。
/// </summary>
@ -1113,15 +1095,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 Invalid features 的本地化字符串。
/// </summary>
public static string Invalidfeatures1 {
get {
return ResourceManager.GetString("Invalidfeatures1", resourceCulture);
}
}
/// <summary>
/// 查找类似 Jump 的本地化字符串。
/// </summary>
@ -1140,15 +1113,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 Language 的本地化字符串。
/// </summary>
public static string Language1 {
get {
return ResourceManager.GetString("Language1", resourceCulture);
}
}
/// <summary>
/// 查找类似 LineUp 的本地化字符串。
/// </summary>
@ -1158,15 +1122,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 LineUp 的本地化字符串。
/// </summary>
public static string LineUp1 {
get {
return ResourceManager.GetString("LineUp1", resourceCulture);
}
}
/// <summary>
/// 查找类似 LnsufficientPower 的本地化字符串。
/// </summary>
@ -1176,24 +1131,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 LnsufficientPower 的本地化字符串。
/// </summary>
public static string LnsufficientPower1 {
get {
return ResourceManager.GetString("LnsufficientPower1", resourceCulture);
}
}
/// <summary>
/// 查找类似 lock 的本地化字符串。
/// </summary>
public static string lock1 {
get {
return ResourceManager.GetString("lock1", resourceCulture);
}
}
/// <summary>
/// 查找类似 Log 的本地化字符串。
/// </summary>
@ -1213,11 +1150,11 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
/// <summary>
/// 查找类似 Low-water level 的本地化字符串。
/// 查找类似 Itemized sending 的本地化字符串。
/// </summary>
public static string Low_waterlevel1 {
public static string LtemizedSending {
get {
return ResourceManager.GetString("Low-waterlevel1", resourceCulture);
return ResourceManager.GetString("LtemizedSending", resourceCulture);
}
}
@ -1491,6 +1428,15 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 Not sent 的本地化字符串。
/// </summary>
public static string NotSent {
get {
return ResourceManager.GetString("NotSent", resourceCulture);
}
}
/// <summary>
/// 查找类似 Nozzle 的本地化字符串。
/// </summary>
@ -1536,6 +1482,15 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties {
}
}
/// <summary>
/// 查找类似 online 的本地化字符串。
/// </summary>
public static string Online {
get {
return ResourceManager.GetString("Online", resourceCulture);
}
}
/// <summary>
/// 查找类似 orders 的本地化字符串。
/// </summary>

57
Properties/Resources.en-US.resx

@ -150,21 +150,12 @@
<data name="HistoryRecords" xml:space="preserve">
<value>History</value>
</data>
<data name="HistoryRecords1" xml:space="preserve">
<value>History</value>
</data>
<data name="InOut" xml:space="preserve">
<value>I/O</value>
</data>
<data name="InOut1" xml:space="preserve">
<value>I/O</value>
</data>
<data name="lock" xml:space="preserve">
<value>Lock/Unlock</value>
</data>
<data name="lock1" xml:space="preserve">
<value>Lock/Unlock</value>
</data>
<data name="New" xml:space="preserve">
<value>New</value>
</data>
@ -294,9 +285,6 @@
<data name="LineUp" xml:space="preserve">
<value>Line Up</value>
</data>
<data name="LineUp1" xml:space="preserve">
<value>Line Up</value>
</data>
<data name="Notimplementation" xml:space="preserve">
<value>Not Implementation</value>
</data>
@ -348,15 +336,9 @@
<data name="ID" xml:space="preserve">
<value>ID</value>
</data>
<data name="ID1" xml:space="preserve">
<value>ID</value>
</data>
<data name="Insert" xml:space="preserve">
<value>Insert</value>
</data>
<data name="Insert1" xml:space="preserve">
<value>Insert</value>
</data>
<data name="Recover" xml:space="preserve">
<value>Recover</value>
</data>
@ -537,9 +519,6 @@
<data name="Invalidfeatures" xml:space="preserve">
<value>Invalid features</value>
</data>
<data name="Invalidfeatures1" xml:space="preserve">
<value>Invalid features</value>
</data>
<data name="NO" xml:space="preserve">
<value>NO</value>
</data>
@ -657,9 +636,6 @@
<data name="Implementation" xml:space="preserve">
<value>Implementation</value>
</data>
<data name="Implementation1" xml:space="preserve">
<value>Implementation</value>
</data>
<data name="process_not" xml:space="preserve">
<value>The process does not exist</value>
</data>
@ -687,9 +663,6 @@
<data name="Language" xml:space="preserve">
<value>Language</value>
</data>
<data name="Language1" xml:space="preserve">
<value>Language</value>
</data>
<data name="Paused" xml:space="preserve">
<value>Paused</value>
</data>
@ -771,15 +744,9 @@
<data name="High-waterlevel" xml:space="preserve">
<value>High-water level</value>
</data>
<data name="High-waterlevel1" xml:space="preserve">
<value>High-water level</value>
</data>
<data name="Low-waterlevel" xml:space="preserve">
<value>Low-water level</value>
</data>
<data name="Low-waterlevel1" xml:space="preserve">
<value>Low-water level</value>
</data>
<data name="ClothWheel" xml:space="preserve">
<value>Cloth Wheel</value>
</data>
@ -807,9 +774,6 @@
<data name="LnsufficientPower" xml:space="preserve">
<value>Lnsufficient Power</value>
</data>
<data name="LnsufficientPower1" xml:space="preserve">
<value>Lnsufficient Power</value>
</data>
<data name="WorkingStatus" xml:space="preserve">
<value>Working Status</value>
</data>
@ -996,4 +960,25 @@
<data name="ColorName" xml:space="preserve">
<value>ColorName</value>
</data>
<data name="CloseTheConnection" xml:space="preserve">
<value>Close the connection</value>
</data>
<data name="Online" xml:space="preserve">
<value>Online</value>
</data>
<data name="ERR" xml:space="preserve">
<value>ERR</value>
</data>
<data name="Fail" xml:space="preserve">
<value>Fail</value>
</data>
<data name="LtemizedSending" xml:space="preserve">
<value>LtemizedSending</value>
</data>
<data name="NotSent" xml:space="preserve">
<value>Not Sent</value>
</data>
<data name="DNotSent" xml:space="preserve">
<value>Details Were Not Sent</value>
</data>
</root>

57
Properties/Resources.resx

@ -150,21 +150,12 @@
<data name="HistoryRecords" xml:space="preserve">
<value>History</value>
</data>
<data name="HistoryRecords1" xml:space="preserve">
<value>History</value>
</data>
<data name="InOut" xml:space="preserve">
<value>I/O</value>
</data>
<data name="InOut1" xml:space="preserve">
<value>I/O</value>
</data>
<data name="lock" xml:space="preserve">
<value>lock</value>
</data>
<data name="lock1" xml:space="preserve">
<value>lock</value>
</data>
<data name="New" xml:space="preserve">
<value>New</value>
</data>
@ -294,9 +285,6 @@
<data name="LineUp" xml:space="preserve">
<value>LineUp</value>
</data>
<data name="LineUp1" xml:space="preserve">
<value>LineUp</value>
</data>
<data name="Notimplementation" xml:space="preserve">
<value>Notimplementation</value>
</data>
@ -348,15 +336,9 @@
<data name="ID" xml:space="preserve">
<value>ID</value>
</data>
<data name="ID1" xml:space="preserve">
<value>ID</value>
</data>
<data name="Insert" xml:space="preserve">
<value>Insert</value>
</data>
<data name="Insert1" xml:space="preserve">
<value>Insert</value>
</data>
<data name="Recover" xml:space="preserve">
<value>Recover</value>
</data>
@ -537,9 +519,6 @@
<data name="Invalidfeatures" xml:space="preserve">
<value>Invalid features</value>
</data>
<data name="Invalidfeatures1" xml:space="preserve">
<value>Invalid features</value>
</data>
<data name="NO" xml:space="preserve">
<value>NO</value>
</data>
@ -657,9 +636,6 @@
<data name="Implementation" xml:space="preserve">
<value>Implementation</value>
</data>
<data name="Implementation1" xml:space="preserve">
<value>Implementation</value>
</data>
<data name="process_not" xml:space="preserve">
<value>The process does not exist</value>
</data>
@ -687,9 +663,6 @@
<data name="Language" xml:space="preserve">
<value>Language</value>
</data>
<data name="Language1" xml:space="preserve">
<value>Language</value>
</data>
<data name="Paused" xml:space="preserve">
<value>Paused</value>
</data>
@ -771,15 +744,9 @@
<data name="High-waterlevel" xml:space="preserve">
<value>High-water level</value>
</data>
<data name="High-waterlevel1" xml:space="preserve">
<value>High-water level</value>
</data>
<data name="Low-waterlevel" xml:space="preserve">
<value>Low-water level</value>
</data>
<data name="Low-waterlevel1" xml:space="preserve">
<value>Low-water level</value>
</data>
<data name="ClothWheel" xml:space="preserve">
<value>ClothWheel</value>
</data>
@ -807,9 +774,6 @@
<data name="LnsufficientPower" xml:space="preserve">
<value>LnsufficientPower</value>
</data>
<data name="LnsufficientPower1" xml:space="preserve">
<value>LnsufficientPower</value>
</data>
<data name="WorkingStatus" xml:space="preserve">
<value>WorkingStatus</value>
</data>
@ -996,4 +960,25 @@
<data name="ColorName" xml:space="preserve">
<value>ColorName</value>
</data>
<data name="CloseTheConnection" xml:space="preserve">
<value>Close the connection</value>
</data>
<data name="Online" xml:space="preserve">
<value>online</value>
</data>
<data name="ERR" xml:space="preserve">
<value>err</value>
</data>
<data name="Fail" xml:space="preserve">
<value>fail</value>
</data>
<data name="LtemizedSending" xml:space="preserve">
<value>Itemized sending</value>
</data>
<data name="NotSent" xml:space="preserve">
<value>Not sent</value>
</data>
<data name="DNotSent" xml:space="preserve">
<value>Details were not sent</value>
</data>
</root>

57
Properties/Resources.zh-CN.resx

@ -150,21 +150,12 @@
<data name="HistoryRecords" xml:space="preserve">
<value>历史</value>
</data>
<data name="HistoryRecords1" xml:space="preserve">
<value>历史</value>
</data>
<data name="InOut" xml:space="preserve">
<value>输入输出</value>
</data>
<data name="InOut1" xml:space="preserve">
<value>输入输出</value>
</data>
<data name="lock" xml:space="preserve">
<value>锁定/解锁</value>
</data>
<data name="lock1" xml:space="preserve">
<value>锁定/解锁</value>
</data>
<data name="New" xml:space="preserve">
<value>新建</value>
</data>
@ -294,9 +285,6 @@
<data name="LineUp" xml:space="preserve">
<value>排队</value>
</data>
<data name="LineUp1" xml:space="preserve">
<value>排队</value>
</data>
<data name="Notimplementation" xml:space="preserve">
<value>未执行</value>
</data>
@ -348,15 +336,9 @@
<data name="ID" xml:space="preserve">
<value>ID</value>
</data>
<data name="ID1" xml:space="preserve">
<value>ID</value>
</data>
<data name="Insert" xml:space="preserve">
<value>插入</value>
</data>
<data name="Insert1" xml:space="preserve">
<value>插入</value>
</data>
<data name="Recover" xml:space="preserve">
<value>恢复</value>
</data>
@ -537,9 +519,6 @@
<data name="Invalidfeatures" xml:space="preserve">
<value>功能无效</value>
</data>
<data name="Invalidfeatures1" xml:space="preserve">
<value>功能无效</value>
</data>
<data name="NO" xml:space="preserve">
<value>否</value>
</data>
@ -657,9 +636,6 @@
<data name="Implementation" xml:space="preserve">
<value>执行</value>
</data>
<data name="Implementation1" xml:space="preserve">
<value>执行</value>
</data>
<data name="process_not" xml:space="preserve">
<value>工艺不存在</value>
</data>
@ -687,9 +663,6 @@
<data name="Language" xml:space="preserve">
<value>语言</value>
</data>
<data name="Language1" xml:space="preserve">
<value>语言</value>
</data>
<data name="Paused" xml:space="preserve">
<value>暂停</value>
</data>
@ -771,15 +744,9 @@
<data name="High-waterlevel" xml:space="preserve">
<value>高水位</value>
</data>
<data name="High-waterlevel1" xml:space="preserve">
<value>高水位</value>
</data>
<data name="Low-waterlevel" xml:space="preserve">
<value>低水位</value>
</data>
<data name="Low-waterlevel1" xml:space="preserve">
<value>低水位</value>
</data>
<data name="ClothWheel" xml:space="preserve">
<value>布轮</value>
</data>
@ -807,9 +774,6 @@
<data name="LnsufficientPower" xml:space="preserve">
<value>功率不足</value>
</data>
<data name="LnsufficientPower1" xml:space="preserve">
<value>功率不足</value>
</data>
<data name="WorkingStatus" xml:space="preserve">
<value>工作状态</value>
</data>
@ -996,4 +960,25 @@
<data name="ColorName" xml:space="preserve">
<value>色名</value>
</data>
<data name="CloseTheConnection" xml:space="preserve">
<value>断开连接</value>
</data>
<data name="Online" xml:space="preserve">
<value>在线</value>
</data>
<data name="ERR" xml:space="preserve">
<value>错误</value>
</data>
<data name="Fail" xml:space="preserve">
<value>失败</value>
</data>
<data name="LtemizedSending" xml:space="preserve">
<value>发送明细</value>
</data>
<data name="NotSent" xml:space="preserve">
<value>未发送</value>
</data>
<data name="DNotSent" xml:space="preserve">
<value>未发送明细</value>
</data>
</root>

59
Properties/Resources.zh-TW.resx

@ -150,21 +150,12 @@
<data name="HistoryRecords" xml:space="preserve">
<value>歷史</value>
</data>
<data name="HistoryRecords1" xml:space="preserve">
<value>歷史</value>
</data>
<data name="InOut" xml:space="preserve">
<value>輸入輸出</value>
</data>
<data name="InOut1" xml:space="preserve">
<value>輸入輸出</value>
</data>
<data name="lock" xml:space="preserve">
<value>鎖定</value>
</data>
<data name="lock1" xml:space="preserve">
<value>鎖定</value>
</data>
<data name="New" xml:space="preserve">
<value>新建</value>
</data>
@ -294,9 +285,6 @@
<data name="LineUp" xml:space="preserve">
<value>轉入</value>
</data>
<data name="LineUp1" xml:space="preserve">
<value>轉入</value>
</data>
<data name="Notimplementation" xml:space="preserve">
<value>未執行</value>
</data>
@ -348,15 +336,9 @@
<data name="ID" xml:space="preserve">
<value>ID</value>
</data>
<data name="ID1" xml:space="preserve">
<value>ID</value>
</data>
<data name="Insert" xml:space="preserve">
<value>插入</value>
</data>
<data name="Insert1" xml:space="preserve">
<value>插入</value>
</data>
<data name="Recover" xml:space="preserve">
<value>恢復</value>
</data>
@ -537,9 +519,6 @@
<data name="Invalidfeatures" xml:space="preserve">
<value>無效的圖徵</value>
</data>
<data name="Invalidfeatures1" xml:space="preserve">
<value>無效的圖徵</value>
</data>
<data name="NO" xml:space="preserve">
<value>否</value>
</data>
@ -657,9 +636,6 @@
<data name="Implementation" xml:space="preserve">
<value>執行</value>
</data>
<data name="Implementation1" xml:space="preserve">
<value>執行</value>
</data>
<data name="process_not" xml:space="preserve">
<value>流程不存在</value>
</data>
@ -687,9 +663,6 @@
<data name="Language" xml:space="preserve">
<value>語言</value>
</data>
<data name="Language1" xml:space="preserve">
<value>語言</value>
</data>
<data name="Paused" xml:space="preserve">
<value>已暫停</value>
</data>
@ -771,15 +744,9 @@
<data name="High-waterlevel" xml:space="preserve">
<value>高水位</value>
</data>
<data name="High-waterlevel1" xml:space="preserve">
<value>高水位</value>
</data>
<data name="Low-waterlevel" xml:space="preserve">
<value>低水位</value>
</data>
<data name="Low-waterlevel1" xml:space="preserve">
<value>低水位</value>
</data>
<data name="ClothWheel" xml:space="preserve">
<value>布輪</value>
</data>
@ -807,9 +774,6 @@
<data name="LnsufficientPower" xml:space="preserve">
<value>功率不足</value>
</data>
<data name="LnsufficientPower1" xml:space="preserve">
<value>功率不足</value>
</data>
<data name="WorkingStatus" xml:space="preserve">
<value>工作狀態</value>
</data>
@ -994,6 +958,27 @@
<value>總浴量</value>
</data>
<data name="ColorName" xml:space="preserve">
<value />
<value>色名</value>
</data>
<data name="CloseTheConnection" xml:space="preserve">
<value>斷開連線</value>
</data>
<data name="Online" xml:space="preserve">
<value>在線</value>
</data>
<data name="ERR" xml:space="preserve">
<value>錯誤</value>
</data>
<data name="Fail" xml:space="preserve">
<value>失敗</value>
</data>
<data name="LtemizedSending" xml:space="preserve">
<value>發送明細</value>
</data>
<data name="NotSent" xml:space="preserve">
<value>未發送</value>
</data>
<data name="DNotSent" xml:space="preserve">
<value>未發送明細</value>
</data>
</root>

1
SunlightCentralizedControlManagement_SCCM_.csproj

@ -100,6 +100,7 @@
<SubType>Designer</SubType>
</ApplicationDefinition>
<Compile Include="ConvertMoels\BoolRBConvert.cs" />
<Compile Include="ConvertMoels\StatenClassConvert.cs" />
<Compile Include="Login.xaml.cs">
<DependentUpon>Login.xaml</DependentUpon>
</Compile>

4
View/ProductionPlanningView.xaml.cs

@ -42,6 +42,7 @@ using System.Windows.Markup;
using System.Collections.ObjectModel;
using SkiaSharp;
using System.Windows.Threading;
using SunlightCentralizedControlManagement_SCCM_.ConvertMoels;
namespace SunlightCentralizedControlManagement_SCCM_.View
@ -123,7 +124,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
Name = Properties.Resources.ProcessName + ";" + dataRows[j].Field<string>("ProgramName"),
Background = colorBackground,
Status = colorStatus,
ID = Properties.Resources.WorkOrder + ";" + dataRows[j].Field<string>("WorkOrder"),
ID = Properties.Resources.WorkOrder + ";" + dataRows[j].Field<string>("WorkOrder").ToString(),
Dyelot = Properties.Resources.Dyelot + ";" + dataRows[j].Field<string>("Dyelot"),
Remark = Properties.Resources.Remark + ";" + dataRows[j].Field<string>("Remark"),
ColorNumber = Properties.Resources.ColorNumber + ";" + dataRows[j].Field<string>("ColorNumber"),
@ -134,6 +135,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
BathRatio = Properties.Resources.BathRatio + ";" + dataRows[j].Field<string>("BathRatio"),
Total = Properties.Resources.Total + ";" + dataRows[j].Field<string>("Total"),
USER = Properties.Resources.USER + ";" + dataRows[j].Field<string>("user"),
STATE = Properties.Resources.State + ";" +StatenClassConvert.Convert( dataRows[j].Field<Int32 >("State").ToString()),
TaskProgressVisibility = System.Windows.Visibility.Hidden
});
}

Loading…
Cancel
Save