| | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 点击按钮【启动模拟】 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void button8_Click(object sender, EventArgs e) |
| | | { |
| | | try |
| | |
| | | DataCaptureHandler.RefreshDataCommonStatic(); |
| | | button8.Text = "模拟已启动"; |
| | | button8.BackColor = Color.Green; |
| | | SystemValue.isStartedModel = true; |
| | | SystemValue.isStartedImitateModel = true; |
| | | #region 数据采集项确定 |
| | | var dataCaptureConfigslist = DataCaptureConfigManager.GetDataCaptureConfigs(); |
| | | var columnList = DataCaptureConfigManager.GetDataCaptureColumnConfig(); |
| | |
| | | { |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | { |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | { |
| | | try |
| | | { |
| | | if (!SystemValue.isStartedModel) |
| | | if (!SystemValue.isStartedImitateModel) |
| | | { |
| | | MessageBox.Show("请点击调试模式按钮"); |
| | | return; |
| | |
| | | DataCaptureHandler_OP6002.Instance._dataCaptureConfig = config; |
| | | _dataCaptureHandler.Add(DataCaptureHandler_OP6002.Instance); |
| | | break; |
| | | |
| | | #endregion |
| | | #region 03 NOOK推出 |
| | | |
| | |
| | | _dataCaptureHandler.Add(dc06); |
| | | break; |
| | | #endregion |
| | | |
| | | case "OP7009"://清洗机获取采集数据 |
| | | DataCaptureHandler_OP7009.Instance._dataCaptureConfig = config; |
| | | _dataCaptureHandler.Add(DataCaptureHandler_OP7009.Instance); |
| | | break; |
| | | //#region 07 数采盒子告警采集 |
| | | |
| | | ////case "OP1007": |
| | |
| | | { |
| | | switch (config.DataCapturePointCode) |
| | | { |
| | | case "OP3002CH3": |
| | | //case "OP3002CH4": |
| | | //case "OP3002CH5": |
| | | //case "OP3002CH6": |
| | | DataCaptureHandler_02 dc02 = new DataCaptureHandler_02(); |
| | | dc02._dataCaptureConfig = config; |
| | | _dataCaptureHandler.Add(dc02); |
| | | case "OP7009"://清洗机获取采集数据 |
| | | DataCaptureHandler_OP7009.Instance._dataCaptureConfig = config; |
| | | _dataCaptureHandler.Add(DataCaptureHandler_OP7009.Instance); |
| | | break; |
| | | //case "OP3002CH3": |
| | | // //case "OP3002CH4": |
| | | // //case "OP3002CH5": |
| | | // //case "OP3002CH6": |
| | | // DataCaptureHandler_02 dc02 = new DataCaptureHandler_02(); |
| | | // dc02._dataCaptureConfig = config; |
| | | // _dataCaptureHandler.Add(dc02); |
| | | // break; |
| | | //case "OP2002A": |
| | | // //case "OP2002B": |
| | | // //case "OP2002C": |