修改项目结构
This commit is contained in:
@@ -15,6 +15,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using System.Windows.Forms;
|
||||
using CleanMachine.Model.BAS;
|
||||
|
||||
namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
@@ -27,7 +28,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
}
|
||||
|
||||
|
||||
private List<BasCleanTypeMsg> basCleanTypeMsgList = new List<BasCleanTypeMsg>();
|
||||
private List<CleanType> basCleanTypeMsgList = new List<CleanType>();
|
||||
/// <summary>
|
||||
/// 模板地址
|
||||
/// </summary>
|
||||
@@ -140,7 +141,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
string contaminationTypeName = item["CONTAMINATION_TYPE_NAME"] == null ? "" : item["CONTAMINATION_TYPE_NAME"].ToString();
|
||||
string contaminationDtlCode = item["CONTAMINATION_DTL_CODE"] == null ? "" : item["CONTAMINATION_DTL_CODE"].ToString();
|
||||
string contaminationDtlName = item["CONTAMINATION_DTL_NAME"] == null ? "" : item["CONTAMINATION_DTL_NAME"].ToString();
|
||||
basCleanTypeMsgList.Add(new BasCleanTypeMsg
|
||||
basCleanTypeMsgList.Add(new CleanType
|
||||
{
|
||||
CleanModeCode = cleanTypeCode,
|
||||
CleanModeName = cleanTypeName,
|
||||
@@ -328,7 +329,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
}));
|
||||
|
||||
//清空当前内存污染计数
|
||||
foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
|
||||
foreach (CleanType item in basCleanTypeMsgList)
|
||||
{
|
||||
if (string.IsNullOrEmpty(item.ContaminationDtlCode))
|
||||
{//常规清洗 清零(其他污染)
|
||||
@@ -631,7 +632,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
|
||||
|
||||
//清空当前内存污染计数
|
||||
foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
|
||||
foreach (CleanType item in basCleanTypeMsgList)
|
||||
{
|
||||
if (string.IsNullOrEmpty(item.ContaminationDtlCode))
|
||||
{//常规清洗 清零(其他污染)
|
||||
@@ -758,7 +759,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
}));
|
||||
|
||||
//清空当前内存污染计数
|
||||
foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
|
||||
foreach (CleanType item in basCleanTypeMsgList)
|
||||
{
|
||||
if (string.IsNullOrEmpty(item.ContaminationDtlCode))
|
||||
{//常规清洗 清零(其他污染)
|
||||
@@ -833,7 +834,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
}));
|
||||
|
||||
|
||||
foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
|
||||
foreach (CleanType item in basCleanTypeMsgList)
|
||||
{
|
||||
string sqlInsertWorkPalletDtl = $@"
|
||||
INSERT INTO [CM_WORKING_PALLET_DTL] (
|
||||
@@ -907,7 +908,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
}));
|
||||
|
||||
//清空当前内存污染计数
|
||||
foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
|
||||
foreach (CleanType item in basCleanTypeMsgList)
|
||||
{
|
||||
if (string.IsNullOrEmpty(item.ContaminationDtlCode))
|
||||
{//常规清洗 清零(其他污染)
|
||||
@@ -1795,7 +1796,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
//curPalletid = dtWorkPalletSel.Rows[0]["WORKING_PALLET_CODE"].ToString();
|
||||
curPalletid = trayCode;
|
||||
|
||||
foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
|
||||
foreach (CleanType item in basCleanTypeMsgList)
|
||||
{
|
||||
string sqlInsertWorkPalletDtl = $@"
|
||||
INSERT INTO [CM_WORKING_PALLET_DTL] (
|
||||
@@ -1887,7 +1888,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
}
|
||||
|
||||
KryptonButton kbtnMd = sender as KryptonButton;
|
||||
BasCleanTypeMsg md = basCleanTypeMsgList.Find(x => x.ContaminationDtlCode == kbtnMd.Name.Replace("kbtn_", ""));
|
||||
CleanType md = basCleanTypeMsgList.Find(x => x.ContaminationDtlCode == kbtnMd.Name.Replace("kbtn_", ""));
|
||||
if (ktb_SaveIR.Enabled)
|
||||
{
|
||||
//KryptonMessageBox.Show("未录入板材信息和IR收货编号信息,不能进行计数处理!");
|
||||
@@ -1981,7 +1982,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
kbtn_Scrap_1.Enabled = false;
|
||||
|
||||
//清空当前内存污染计数
|
||||
foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
|
||||
foreach (CleanType item in basCleanTypeMsgList)
|
||||
{
|
||||
if (string.IsNullOrEmpty(item.ContaminationDtlCode))
|
||||
{//常规清洗 清零(其他污染)
|
||||
@@ -3033,7 +3034,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
return;
|
||||
}
|
||||
KryptonButton kbtnMd = sender as KryptonButton;
|
||||
BasCleanTypeMsg md = basCleanTypeMsgList.Find(x => x.ContaminationDtlCode == kbtnMd.Name.Replace("kbtn_", "").Replace("_1", ""));
|
||||
CleanType md = basCleanTypeMsgList.Find(x => x.ContaminationDtlCode == kbtnMd.Name.Replace("kbtn_", "").Replace("_1", ""));
|
||||
if (ktb_SaveIR.Enabled)
|
||||
{
|
||||
KryptonMessageBox.Show("The plate information and IR receiving number information are not entered, so the counting process cannot be carried out!");
|
||||
@@ -3218,7 +3219,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
}));
|
||||
|
||||
//清空当前内存污染计数
|
||||
foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
|
||||
foreach (CleanType item in basCleanTypeMsgList)
|
||||
{
|
||||
if (string.IsNullOrEmpty(item.ContaminationDtlCode))
|
||||
{//常规清洗 清零(其他污染)
|
||||
@@ -3348,7 +3349,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
}));
|
||||
|
||||
//清空当前内存污染计数
|
||||
foreach (BasCleanTypeMsg item in basCleanTypeMsgList)
|
||||
foreach (CleanType item in basCleanTypeMsgList)
|
||||
{
|
||||
if (string.IsNullOrEmpty(item.ContaminationDtlCode))
|
||||
{//常规清洗 清零(其他污染)
|
||||
|
||||
Reference in New Issue
Block a user