From 2a55eedc9ba903c6a0b9cab8fa5ddc8fee9682aa Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周一, 02 9月 2024 09:22:26 +0800 Subject: [PATCH] 显示 [StringLength(50)] public string DataCapturePointCname { get; set; } --- DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_DataCaptureV3/FormMain.cs | 300 ++++++++++++++++++++++++++++++------------------------------ 1 files changed, 150 insertions(+), 150 deletions(-) diff --git a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_DataCaptureV3/FormMain.cs b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_DataCaptureV3/FormMain.cs index b6e683c..f2d3302 100644 --- a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_DataCaptureV3/FormMain.cs +++ b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_DataCaptureV3/FormMain.cs @@ -912,22 +912,22 @@ private void button9_Click(object sender, EventArgs e) { - try - { - if (!SystemValue.isStartedImitateModel) - { - MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); - return; - } - DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); - DataCaptureHandler_OP3001.Instance.DataCaptureStart(); + //try + //{ + // if (!SystemValue.isStartedImitateModel) + // { + // MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); + // return; + // } + // DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); + // DataCaptureHandler_OP3001.Instance.DataCaptureStart(); - } - catch (Exception ex) - { - MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); - Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); - } + //} + //catch (Exception ex) + //{ + // MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); + // Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); + //} } private void button11_Click(object sender, EventArgs e) @@ -955,85 +955,85 @@ { - try - { - if (!SystemValue.isStartedImitateModel) - { - MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); - return; - } - DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); - DataCaptureHandler_OP3003.Instance.DataCaptureStart(); + //try + //{ + // if (!SystemValue.isStartedImitateModel) + // { + // MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); + // return; + // } + // DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); + // DataCaptureHandler_OP3003.Instance.DataCaptureStart(); - } - catch (Exception ex) - { - MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); - Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); - } + //} + //catch (Exception ex) + //{ + // MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); + // Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); + //} } private void button15_Click(object sender, EventArgs e) { - try - { - if (!SystemValue.isStartedImitateModel) - { - MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); - return; - } - DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); - DataCaptureHandler_OP3007.Instance.DataCaptureStart(); + //try + //{ + // if (!SystemValue.isStartedImitateModel) + // { + // MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); + // return; + // } + // DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); + // DataCaptureHandler_OP3007.Instance.DataCaptureStart(); - } - catch (Exception ex) - { - MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); - Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); - } + //} + //catch (Exception ex) + //{ + // MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); + // Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); + //} } private void button13_Click(object sender, EventArgs e) { - try - { - if (!SystemValue.isStartedImitateModel) - { - MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); - return; - } - DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); - DataCaptureHandler_OP3004.Instance.DataCaptureStart(); + //try + //{ + // if (!SystemValue.isStartedImitateModel) + // { + // MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); + // return; + // } + // DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); + // DataCaptureHandler_OP3004.Instance.DataCaptureStart(); - } - catch (Exception ex) - { - MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); - Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); - } + //} + //catch (Exception ex) + //{ + // MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); + // Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); + //} } private void button14_Click(object sender, EventArgs e) { - try - { - if (!SystemValue.isStartedImitateModel) - { - MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); - return; - } - DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); - DataCaptureHandler_OP3005.Instance.DataCaptureStart(); + //try + //{ + // if (!SystemValue.isStartedImitateModel) + // { + // MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); + // return; + // } + // DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); + // DataCaptureHandler_OP3005.Instance.DataCaptureStart(); - } - catch (Exception ex) - { - MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); - Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); - } + //} + //catch (Exception ex) + //{ + // MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); + // Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); + //} } private void button16_Click(object sender, EventArgs e) @@ -1124,22 +1124,22 @@ { - try - { - if (!SystemValue.isStartedImitateModel) - { - MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); - return; - } - DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); - DataCaptureHandler_OP8001.Instance.DataCaptureStart(); + //try + //{ + // if (!SystemValue.isStartedImitateModel) + // { + // MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); + // return; + // } + // DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); + // DataCaptureHandler_OP8001.Instance.DataCaptureStart(); - } - catch (Exception ex) - { - MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); - Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); - } + //} + //catch (Exception ex) + //{ + // MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); + // Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); + //} } private void button21_Click(object sender, EventArgs e) @@ -1168,88 +1168,88 @@ { - try - { - if (!SystemValue.isStartedImitateModel) - { - MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); - return; - } - DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); - DataCaptureHandler_OP8003.Instance.DataCaptureStart(); + //try + //{ + // if (!SystemValue.isStartedImitateModel) + // { + // MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); + // return; + // } + // DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); + // DataCaptureHandler_OP8003.Instance.DataCaptureStart(); - } - catch (Exception ex) - { - MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); - Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); - } + //} + //catch (Exception ex) + //{ + // MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); + // Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); + //} } private void button19_Click(object sender, EventArgs e) { - try - { - if (!SystemValue.isStartedImitateModel) - { - MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); - return; - } - DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); - DataCaptureHandler_OP8004.Instance.DataCaptureStart(); + //try + //{ + // if (!SystemValue.isStartedImitateModel) + // { + // MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); + // return; + // } + // DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); + // DataCaptureHandler_OP8004.Instance.DataCaptureStart(); - } - catch (Exception ex) - { - MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); - Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); - } + //} + //catch (Exception ex) + //{ + // MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); + // Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); + //} } private void button18_Click(object sender, EventArgs e) { - try - { - if (!SystemValue.isStartedImitateModel) - { - MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); - return; - } - DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); - DataCaptureHandler_OP8005.Instance.DataCaptureStart(); + //try + //{ + // if (!SystemValue.isStartedImitateModel) + // { + // MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); + // return; + // } + // DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); + // DataCaptureHandler_OP8005.Instance.DataCaptureStart(); - } - catch (Exception ex) - { - MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); - Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); - } + //} + //catch (Exception ex) + //{ + // MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); + // Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); + //} } private void button17_Click(object sender, EventArgs e) { - try - { - if (!SystemValue.isStartedImitateModel) - { - MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); - return; - } - DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); - DataCaptureHandler_OP8007.Instance.DataCaptureStart(); + //try + //{ + // if (!SystemValue.isStartedImitateModel) + // { + // MessageBox.Show("璇风偣鍑昏皟璇曟ā寮忔寜閽�"); + // return; + // } + // DataCaptureHandler.WorkPieceID = textBox10.Text.Trim(); + // DataCaptureHandler_OP8007.Instance.DataCaptureStart(); - } - catch (Exception ex) - { - MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); - Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); - } + //} + //catch (Exception ex) + //{ + // MessageBox.Show($"妯℃嫙寮傚父锛歿ex.Message}"); + // Log4NetHelper.WriteErrorLog(LogType.FormMain, "----button10_Click all鎶ラ敊锛�", ex); + //} } /// <summary> -- Gitblit v1.9.3