From 0b417bdc320a980cef619d9a88ce3cb0511b498b Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周五, 22 11月 2024 05:23:38 +0800 Subject: [PATCH] 程序唯一性校验 --- CC/iWareCC_ASRS/FormCC.cs | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CC/iWareCC_ASRS/FormCC.cs b/CC/iWareCC_ASRS/FormCC.cs index 286fe2c..47d2b1a 100644 --- a/CC/iWareCC_ASRS/FormCC.cs +++ b/CC/iWareCC_ASRS/FormCC.cs @@ -12,6 +12,7 @@ using iWareModel.Entity.AGV; using iWareSql.DataAccess; using iWareSql.DBModel; +using iWareSql.WmsDBModel; using Newtonsoft.Json; using System; using System.Collections.Generic; @@ -1715,7 +1716,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 +1775,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 +1791,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