From 46e6fa47d1fd07ab5803fb7732095c2d680b38f6 Mon Sep 17 00:00:00 2001
From: zongzhibin <zongzhibin@weben-smart.com>
Date: 周日, 24 11月 2024 14:19:36 +0800
Subject: [PATCH] add

---
 CC/iWareCC_ASRS/FormCC.cs |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/CC/iWareCC_ASRS/FormCC.cs b/CC/iWareCC_ASRS/FormCC.cs
index 286fe2c..6d5a151 100644
--- a/CC/iWareCC_ASRS/FormCC.cs
+++ b/CC/iWareCC_ASRS/FormCC.cs
@@ -5,6 +5,7 @@
 using iWareCC.SrmService;
 using iWareCC.StationService;
 using iWareCC.ThreadService;
+using iWareCC.ThreadService._03_BZ12_鏈哄櫒浜虹爜鍖呭伐浣峗;
 using iWareCC.WCF;
 using iWareCommon.Common.Globle;
 using iWareCommon.Utils;
@@ -12,6 +13,7 @@
 using iWareModel.Entity.AGV;
 using iWareSql.DataAccess;
 using iWareSql.DBModel;
+using iWareSql.WmsDBModel;
 using Newtonsoft.Json;
 using System;
 using System.Collections.Generic;
@@ -30,6 +32,12 @@
 {
     public partial class FormCC : Form
     {
+
+        /// <summary>
+        /// 鍏ㄥ眬鈥旀槸鍚﹀彲浠ヨ繍琛屾墽琛屽嚭搴撴ā寮�
+        /// </summary>
+        public static bool IsAllowRunOutMode = false;
+
         /// <summary>
         /// 1鍙峰爢鍨涙満鍏ュ簱鍙f壂鐮佸己鍒堕獙璇侀�氳繃
         /// </summary>
@@ -224,10 +232,11 @@
 
             //閲嶆柊鑾峰彇鍙戝姩鏈轰俊鎭�
             new Thread(DataProcess_269.Handler).Start();
-
+            
             //1014搴撲綅杞繍鍒�1020绾跨▼
             new Thread(DataProcess_BZ39.Handler).Start();
 
+            new Thread(DataProcess_BZ12.Hander).Start();
 
             new Thread(DeleteData).Start();
 
@@ -300,7 +309,7 @@
             }
             else
             {//姝e紡妯″紡 
-                rgvServiceClient = new RgvServiceClient();
+                stationServiceClient = new StationServiceClient();
             }
 
             this.lbl_IsSimulationPLC.BackColor = IsSimulationPLC ? Color.Red : Color.Green;
@@ -1715,7 +1724,7 @@
             DialogResult dr = MessageBox.Show("纭畾瑕佸惎鍔ㄣ��" + currentCheckModelText + "銆戞ā寮忓悧?", "鍚姩妯″紡", messButton);
             if (dr == DialogResult.OK)//濡傛灉鐐瑰嚮鈥滅‘瀹氣�濇寜閽�
             {
-                using (DbModel edm = new DbModel())
+                using (WmsDBModel edm = new WmsDBModel())
                 {
                     var ccSystem = BasicDataSetHandler.GetCCSystem(edm);
                     if (ccSystem == null)
@@ -1774,7 +1783,7 @@
         /// <returns></returns>
         private bool CommonStopService()
         {
-            using (DbModel edm = new DbModel())
+            using (WmsDBModel edm = new WmsDBModel())
             {
                 var ccSystem = BasicDataSetHandler.GetCCSystem(edm);
                 if (ccSystem == null)
@@ -1790,7 +1799,7 @@
                     ccSystem.Machine = string.Empty;
                     ccSystem.LastMachine = Dns.GetHostName();
                     ccSystem.LastUnLineTime = DateTime.Now;
-                    ccSystem.ModifyTime = DateTime.Now;
+                    ccSystem.UpdateTime = DateTime.Now;
 
                     int i = edm.SaveChanges();
                     if (i <= 0)

--
Gitblit v1.9.3