1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MSHO.Collection.Service.IO
- {
- partial class IOServer
- {
- private Dictionary<string, MSHO.Collection.DataAccess.Models.CollectConfig> m_CollectConfigs = new Dictionary<string, DataAccess.Models.CollectConfig>();
- private void Process_Exception(System.Net.Sockets.Socket client, Msg data) {
- var msg = new ErrorMsgRespMsg();
- msg.ClientCode = data.ClientCode;
- var error_msg = data as ErrorMsg;
- if (error_msg != null)
- {
- var clientConfig = MSHO.Collection.DataAccess.MSHOService.Instance.GetCollectConfigByCode(msg.ClientCode);
- if (clientConfig != null) {
- if (MSHO.Collection.DataAccess.MSHOService.Instance.SaveSystemLog(MSHO.Collection.DataAccess.Enums.SystemLogTypeEnum.ERROR, "MSHO.Collection.Client", error_msg.Model, error_msg.LogMessage, error_msg.LogDetails, clientConfig.CollectorName, clientConfig.Code))
- {
- msg.Result = true;
- }
- }
- }
- SendMsg(client, new Message(msg));
- }
- private void Process_Bus_Weighting(DataReportRespMsg msg, DataReportMsg data_report) {
- var weighting = JsonSerializable.FromJson<MSHO.Collection.DataAccess.ClientModels.Bus_Weighting>(data_report.Result);
- if (weighting != null)
- {
- #region clientConfig
- MSHO.Collection.DataAccess.Models.CollectConfig clientConfig = null;
- if (m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- clientConfig = m_CollectConfigs[msg.ClientCode];
- }
- if (clientConfig == null)
- {
- clientConfig = MSHO.Collection.DataAccess.MSHOService.Instance.GetCollectConfigByCode(msg.ClientCode);
- }
- #endregion
-
- if (clientConfig != null)
- {
- #region check exist
- if (!m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- m_CollectConfigs.Add(msg.ClientCode, clientConfig);
- }
- clientConfig.LastSourceTime = weighting.ReceiveTime;
- bool exist = false;
- if (weighting.Id.HasValue)
- {
- clientConfig.LastSourceID = weighting.Id.ToString();
- exist = MSHO.Collection.DataAccess.MSHOService.Instance.ExistWeighting(clientConfig.StationID, clientConfig.DeviceID, clientConfig.LastSourceID);
- }
- #endregion
- string weightId = weighting.Id.HasValue ? weighting.Id.ToString() : string.Empty;
- if (exist)
- {
- msg.Result = true;
- msg.DataId = weightId;
- }
- else
- {
- var serverWeighting = new MSHO.Collection.DataAccess.Models.Weighting()
- {
- StationID = clientConfig.StationID,
- DeviceID = clientConfig.DeviceID,
- WeightID = weightId,
- WeightTime = weighting.WeightTime,
- TruckNumber = weighting.TruckNumber,
- TruckColor = weighting.TruckCorlor,
- CaptureTime = weighting.TruckCapTime,
- ThroughDuring = weighting.Difference,
- LimitMode = weighting.LimitModeName,
- VehicleType = weighting.VehicleType,
- AxleType = weighting.AxleType,
- AxleCount = weighting.AxleCount,
- LaneNumber = weighting.LaneNum,
- Way = weighting.Way,
- IsReverse = weighting.IsReverse,
- IsBoast = weighting.IsBoast,
- Speed = weighting.Speed,
- PressColumn = weighting.PressColumns,
- Gross = weighting.Gross,
- LimitWeight = weighting.LimitWeight,
- OverloadWeight = weighting.OverWeight,
- OverloadRate = weighting.LimiteRate,
- AxleWeight1 = weighting.AxleWeight1,
- AxleWeight2 = weighting.AxleWeight2,
- AxleWeight3 = weighting.AxleWeight3,
- AxleWeight4 = weighting.AxleWeight4,
- AxleWeight5 = weighting.AxleWeight5,
- AxleWeight6 = weighting.AxleWeight6,
- AxleWeight7 = weighting.AxleWeight7,
- AxleWeight8 = weighting.AxleWeight8,
- UploadTime = DateTime.Now
- };
- if (serverWeighting.WeightTime.HasValue)
- {
- serverWeighting.WeightTime_Year = serverWeighting.WeightTime.Value.Year;
- serverWeighting.WeightTime_Month = serverWeighting.WeightTime.Value.Month;
- serverWeighting.WeightTime_Day = serverWeighting.WeightTime.Value.Day;
- serverWeighting.WeightTime_Hour = serverWeighting.WeightTime.Value.Hour;
- serverWeighting.WeightTime_Minute = serverWeighting.WeightTime.Value.Minute;
- }
- #region 附件
- foreach (var file in weighting.WeightingFiles)
- {
- file.DeviceID = serverWeighting.DeviceID;
- serverWeighting.WeightingFiles.Add(file);
- }
- #endregion
- try
- {
- if (MSHO.Collection.DataAccess.MSHOService.Instance.SaveWeighting(clientConfig, serverWeighting))
- {
- msg.Result = true;
- msg.DataId = weightId;
- msg.WeightingFiles = serverWeighting.WeightingFiles.ToList();
- }
- }
- catch (Exception ex)
- {
- MSHO.Collection.DataAccess.MSHOService.Instance.SaveSystemLog("MSHO.Collection.Service", "Process_Bus_Weighting", ex);
- msg.Result = false;
- msg.DataId = weightId;
- }
- }
- }
- }
- }
- private void Process_Kdtc_Weighting(DataReportRespMsg msg, DataReportMsg data_report)
- {
- var weighting = JsonSerializable.FromJson<MSHO.Collection.DataAccess.ClientModels.Kdtc_Weighting>(data_report.Result);
- if (weighting != null)
- {
- #region clientConfig
- MSHO.Collection.DataAccess.Models.CollectConfig clientConfig = null;
- if (m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- clientConfig = m_CollectConfigs[msg.ClientCode];
- }
- if (clientConfig == null)
- {
- clientConfig = MSHO.Collection.DataAccess.MSHOService.Instance.GetCollectConfigByCode(msg.ClientCode);
- }
- #endregion
- if (clientConfig != null)
- {
- #region check exist
- if (!m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- m_CollectConfigs.Add(msg.ClientCode, clientConfig);
- }
- clientConfig.LastSourceTime = weighting.CollectTime;
- bool exist = false;
- if (weighting.Id.HasValue)
- {
- clientConfig.LastSourceID = weighting.Id.ToString();
- exist = MSHO.Collection.DataAccess.MSHOService.Instance.ExistWeighting(clientConfig.StationID, clientConfig.DeviceID, clientConfig.LastSourceID);
- }
- #endregion
- string weightId = weighting.Id.HasValue ? weighting.Id.ToString() : string.Empty;
- if (exist)
- {
- msg.Result = true;
- msg.DataId = weightId;
- } else {
- var serverWeighting = new MSHO.Collection.DataAccess.Models.Weighting()
- {
- StationID = clientConfig.StationID,
- DeviceID = clientConfig.DeviceID,
- WeightID = weightId,
- WeightTime = weighting.WeightTime,
- TruckNumber = weighting.TruckNumber,
- TruckColor = weighting.TruckCorlor,
- CaptureTime = weighting.TruckCapTime,
- ThroughDuring = weighting.Difference,
- LimitMode = weighting.LimitModeName,
- VehicleType = weighting.VehicleType,
- AxleType = weighting.AxleType,
- AxleCount = weighting.AxleCount,
- LaneNumber = weighting.EnterLane,
- LeaveLane = weighting.LeaveLane,
- Way = weighting.Way,
- IsReverse = weighting.IsReverse,
- IsBoast = weighting.IsBoast,
- Speed = weighting.Speed,
- LimitSpeed = weighting.LimitSpeed,
- OverSpeed = weighting.OverSpeed,
- PressColumn = weighting.PressColumns,
- Gross = weighting.Gross,
- LimitWeight = weighting.LimitWeight,
- OverloadWeight = weighting.OverWeight,
- OverloadRate = weighting.LimiteRate,
- AxleWeight1 = weighting.AxleWeight1,
- AxleWeight2 = weighting.AxleWeight2,
- AxleWeight3 = weighting.AxleWeight3,
- AxleWeight4 = weighting.AxleWeight4,
- AxleWeight5 = weighting.AxleWeight5,
- AxleWeight6 = weighting.AxleWeight6,
- AxleWeight7 = weighting.AxleWeight7,
- AxleWeight8 = weighting.AxleWeight8,
- Length = weighting.Length,
- Width = weighting.Width,
- Height = weighting.Height,
- UploadTime = DateTime.Now
- };
- if (serverWeighting.OverloadRate.HasValue)
- {//计算限载率
- if (serverWeighting.OverloadRate.Value > 0)
- {
- serverWeighting.OverloadRate = serverWeighting.OverloadRate.Value / (decimal)100.00;
- }
- }
- if (serverWeighting.WeightTime.HasValue)
- {
- serverWeighting.WeightTime_Year = serverWeighting.WeightTime.Value.Year;
- serverWeighting.WeightTime_Month = serverWeighting.WeightTime.Value.Month;
- serverWeighting.WeightTime_Day = serverWeighting.WeightTime.Value.Day;
- serverWeighting.WeightTime_Hour = serverWeighting.WeightTime.Value.Hour;
- serverWeighting.WeightTime_Minute = serverWeighting.WeightTime.Value.Minute;
- }
- #region 附件
- foreach (var file in weighting.WeightingFiles)
- {
- file.DeviceID = serverWeighting.DeviceID;
- serverWeighting.WeightingFiles.Add(file);
- }
- #endregion
- try
- {
- if (MSHO.Collection.DataAccess.MSHOService.Instance.SaveWeighting(clientConfig, serverWeighting))
- {
- msg.Result = true;
- msg.DataId = weightId;
- msg.WeightingFiles = serverWeighting.WeightingFiles.ToList();
- }
- }
- catch (Exception ex)
- {
- MSHO.Collection.DataAccess.MSHOService.Instance.SaveSystemLog("MSHO.Collection.Service", "Process_Kdtc_Weighting", ex);
- msg.Result = false;
- msg.DataId = weightId;
- }
- }
- }
- }
- }
- private void Process_Access_Weighting(DataReportRespMsg msg, DataReportMsg data_report)
- {
- var weighting = JsonSerializable.FromJson<MSHO.Collection.DataAccess.ClientModels.Access_Weighting>(data_report.Result);
- if (weighting != null)
- {
- #region clientConfig
- MSHO.Collection.DataAccess.Models.CollectConfig clientConfig = null;
- if (m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- clientConfig = m_CollectConfigs[msg.ClientCode];
- }
- if (clientConfig == null)
- {
- clientConfig = MSHO.Collection.DataAccess.MSHOService.Instance.GetCollectConfigByCode(msg.ClientCode);
- }
- #endregion
- if (clientConfig != null)
- {
- #region check exist
- if (!m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- m_CollectConfigs.Add(msg.ClientCode, clientConfig);
- }
- clientConfig.LastSourceTime = weighting.WeightTime;
- bool exist = false;
- if (weighting.ID.HasValue)
- {
- clientConfig.LastSourceID = weighting.ID.ToString();
- exist = MSHO.Collection.DataAccess.MSHOService.Instance.ExistWeighting(clientConfig.StationID, clientConfig.DeviceID, clientConfig.LastSourceID);
- }
- #endregion
- string weightId = weighting.ID.HasValue ? weighting.ID.ToString() : string.Empty;
- if (exist)
- {
- msg.Result = true;
- msg.DataId = weightId;
- }
- else
- {
- string axleType = null;
- if (!string.IsNullOrEmpty(weighting.LicenseNo)) {
- var n = weighting.LicenseNo.LastIndexOf("-");
- if (n > 0)
- {
- axleType = weighting.LicenseNo.Substring(n + 1);
- }
- }
- var serverWeighting = new MSHO.Collection.DataAccess.Models.Weighting()
- {
- StationID = clientConfig.StationID,
- DeviceID = clientConfig.DeviceID,
- WeightID = weightId,
- WeightTime = weighting.WeightTime,
- TruckNumber = weighting.TruckNumber,
- CaptureTime = weighting.WeightTime,
- AxleCount = weighting.AxleCount,
- AxleType = axleType,
- Speed = weighting.Speed,
- Gross = weighting.Gross,
- LimitWeight = weighting.LimitWeight,
- OverloadRate = weighting.OverloadRate,
- Checker = weighting.Checker,
- LicenseNo = weighting.LicenseNo,
- Sequence = weighting.Sequence,
- GPRS = weighting.GPRS,
- Width = weighting.w,
- Height = weighting.h,
- UploadTime = DateTime.Now
- };
- if (serverWeighting.Gross.HasValue && weighting.LimitWeight.HasValue)
- {
- serverWeighting.OverloadWeight = weighting.Gross.Value - weighting.LimitWeight.Value;
- if (serverWeighting.OverloadWeight < 0)
- {
- serverWeighting.OverloadWeight = 0;
- }
- }
- if (serverWeighting.OverloadRate.HasValue)
- {
- if (serverWeighting.OverloadRate.Value > 0)
- {
- serverWeighting.OverloadRate = serverWeighting.OverloadRate.Value / (decimal)100.00;
- }
- }
- if (serverWeighting.WeightTime.HasValue)
- {
- serverWeighting.WeightTime_Year = serverWeighting.WeightTime.Value.Year;
- serverWeighting.WeightTime_Month = serverWeighting.WeightTime.Value.Month;
- serverWeighting.WeightTime_Day = serverWeighting.WeightTime.Value.Day;
- serverWeighting.WeightTime_Hour = serverWeighting.WeightTime.Value.Hour;
- serverWeighting.WeightTime_Minute = serverWeighting.WeightTime.Value.Minute;
- }
- #region 附件
- foreach (var file in weighting.WeightingFiles) {
- file.DeviceID = serverWeighting.DeviceID;
- serverWeighting.WeightingFiles.Add(file);
- }
- #endregion
- try
- {
- if (MSHO.Collection.DataAccess.MSHOService.Instance.SaveWeighting(clientConfig, serverWeighting))
- {
- msg.Result = true;
- msg.DataId = weightId;
- msg.WeightingFiles = serverWeighting.WeightingFiles.ToList();
- }
- }
- catch (Exception ex)
- {
- MSHO.Collection.DataAccess.MSHOService.Instance.SaveSystemLog("MSHO.Collection.Service", "Process_Access_Weighting", ex);
- msg.Result = false;
- msg.DataId = weightId;
- }
- }
- }
- }
- }
- private void Process_SQL2000_DiBangData_Weighting(DataReportRespMsg msg, DataReportMsg data_report)
- {
- var weighting = JsonSerializable.FromJson<MSHO.Collection.DataAccess.ClientModels.SQL2000_DiBangData_Weighting>(data_report.Result);
- if (weighting != null)
- {
- #region clientConfig
- MSHO.Collection.DataAccess.Models.CollectConfig clientConfig = null;
- if (m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- clientConfig = m_CollectConfigs[msg.ClientCode];
- }
- if (clientConfig == null)
- {
- clientConfig = MSHO.Collection.DataAccess.MSHOService.Instance.GetCollectConfigByCode(msg.ClientCode);
- }
- #endregion
- if (clientConfig != null)
- {
- #region check exist
- string prexWeightId = string.Empty;
- if (!m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- m_CollectConfigs.Add(msg.ClientCode, clientConfig);
- }
- clientConfig.LastSourceTime = weighting.WeightTime;
- bool exist = false;
- if (weighting.ID.HasValue)
- {
- prexWeightId = string.Format("SQL2000_{0}", weighting.ID.Value);
- clientConfig.LastSourceID = weighting.ID.ToString();
- exist = MSHO.Collection.DataAccess.MSHOService.Instance.ExistWeighting(clientConfig.StationID, clientConfig.DeviceID, prexWeightId);
- }
- #endregion
- string weightId = weighting.ID.HasValue ? weighting.ID.Value.ToString() : string.Empty;
- if (exist)
- {
- msg.Result = true;
- msg.DataId = weightId;
- }
- else
- {
- string axleType = null;
- if (!string.IsNullOrEmpty(weighting.LicenseNo))
- {
- var n = weighting.LicenseNo.LastIndexOf("-");
- if (n > 0)
- {
- axleType = weighting.LicenseNo.Substring(n + 1);
- }
- }
- var serverWeighting = new MSHO.Collection.DataAccess.Models.Weighting()
- {
- StationID = clientConfig.StationID,
- DeviceID = clientConfig.DeviceID,
- WeightID = prexWeightId,
- WeightTime = weighting.WeightTime,
- TruckNumber = weighting.TruckNumber,
- CaptureTime = weighting.WeightTime,
- AxleType = axleType,
- AxleCount = weighting.AxleCount,
- Speed = weighting.Speed,
- Gross = weighting.Gross,
- LimitWeight = weighting.LimitWeight,
- OverloadRate = weighting.OverloadRate,
- Checker = weighting.Checker,
- LicenseNo = weighting.LicenseNo,
- Sequence = weighting.Sequence,
- GPRS = weighting.GPRS,
- UploadTime = DateTime.Now
- };
- if (serverWeighting.Gross.HasValue && weighting.LimitWeight.HasValue)
- {
- serverWeighting.OverloadWeight = weighting.Gross.Value - weighting.LimitWeight.Value;
- if (serverWeighting.OverloadWeight < 0)
- {
- serverWeighting.OverloadWeight = 0;
- }
- }
- if (serverWeighting.OverloadRate.HasValue)
- {
- if (serverWeighting.OverloadRate.Value > 0)
- {
- serverWeighting.OverloadRate = serverWeighting.OverloadRate.Value / (decimal)100.00;
- }
- }
- if (serverWeighting.WeightTime.HasValue)
- {
- serverWeighting.WeightTime_Year = serverWeighting.WeightTime.Value.Year;
- serverWeighting.WeightTime_Month = serverWeighting.WeightTime.Value.Month;
- serverWeighting.WeightTime_Day = serverWeighting.WeightTime.Value.Day;
- serverWeighting.WeightTime_Hour = serverWeighting.WeightTime.Value.Hour;
- serverWeighting.WeightTime_Minute = serverWeighting.WeightTime.Value.Minute;
- }
- #region 附件
- foreach (var file in weighting.WeightingFiles)
- {
- file.DeviceID = serverWeighting.DeviceID;
- serverWeighting.WeightingFiles.Add(file);
- }
- #endregion
- try
- {
- if (MSHO.Collection.DataAccess.MSHOService.Instance.SaveWeighting(clientConfig, serverWeighting))
- {
- msg.Result = true;
- msg.DataId = weightId;
- msg.WeightingFiles = serverWeighting.WeightingFiles.ToList();
- }
- }
- catch (Exception ex)
- {
- MSHO.Collection.DataAccess.MSHOService.Instance.SaveSystemLog("MSHO.Collection.Service", "Process_SQL2000_DiBangData_Weighting", ex);
- msg.Result = false;
- msg.DataId = weightId;
- }
- }
- }
- }
- }
- private void Process_SQL2000_oreManageDBCli_Weighting(DataReportRespMsg msg, DataReportMsg data_report)
- {
- var weighting = JsonSerializable.FromJson<MSHO.Collection.DataAccess.ClientModels.SQL2000_oreManageDBCli_Weighting>(data_report.Result);
- if (weighting != null)
- {
- #region clientConfig
- MSHO.Collection.DataAccess.Models.CollectConfig clientConfig = null;
- if (m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- clientConfig = m_CollectConfigs[msg.ClientCode];
- }
- if (clientConfig == null)
- {
- clientConfig = MSHO.Collection.DataAccess.MSHOService.Instance.GetCollectConfigByCode(msg.ClientCode);
- }
- #endregion
- if (clientConfig != null)
- {
- #region check exist
- if (!m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- m_CollectConfigs.Add(msg.ClientCode, clientConfig);
- }
- clientConfig.LastSourceTime = weighting.WeightTime;
- bool exist = false;
- if (weighting.ID.HasValue)
- {
- clientConfig.LastSourceID = weighting.ID.ToString();
- exist = MSHO.Collection.DataAccess.MSHOService.Instance.ExistWeighting(clientConfig.StationID, clientConfig.DeviceID, clientConfig.LastSourceID);
- }
- #endregion
-
- string weightId = weighting.ID.HasValue ? weighting.ID.Value.ToString() : string.Empty;
- if (exist)
- {
- msg.Result = true;
- msg.DataId = weightId;
- }
- else
- {
- var serverWeighting = new MSHO.Collection.DataAccess.Models.Weighting()
- {
- StationID = clientConfig.StationID,
- DeviceID = clientConfig.DeviceID,
- WeightID = weightId,
- WeightTime = weighting.checkdate,
- TruckNumber = weighting.licenseplate,
- CaptureTime = weighting.checkdate,
- AxleCount = weighting.axleCount,
- Gross = weighting.totalWeigh,
- LimitWeight = weighting.amountWeigh,
- OverloadWeight = 0,
- OverloadRate = weighting.overRatio,
- Checker = weighting.@operator,
- Remark = weighting.descript,
- UploadTime = DateTime.Now
- };
- if (serverWeighting.Gross.HasValue)
- {
- if (serverWeighting.Gross.Value > 0)
- {
- serverWeighting.Gross /= 1000;
- }
- }
- if (serverWeighting.LimitWeight.HasValue)
- {
- if (serverWeighting.LimitWeight.Value > 0)
- {
- serverWeighting.LimitWeight /= 1000;
- }
- }
- if (serverWeighting.Gross.HasValue && serverWeighting.LimitWeight.HasValue)
- {
- if (serverWeighting.Gross.Value > serverWeighting.LimitWeight.Value)
- {
- serverWeighting.OverloadWeight = serverWeighting.Gross.Value - serverWeighting.LimitWeight.Value;
- }
- }
- if (serverWeighting.OverloadRate.HasValue)
- {
- if (serverWeighting.OverloadRate.Value > 0)
- {
- serverWeighting.OverloadRate = serverWeighting.OverloadRate.Value / (decimal)100.00;
- }
- }
- if (serverWeighting.WeightTime.HasValue)
- {
- serverWeighting.WeightTime_Year = serverWeighting.WeightTime.Value.Year;
- serverWeighting.WeightTime_Month = serverWeighting.WeightTime.Value.Month;
- serverWeighting.WeightTime_Day = serverWeighting.WeightTime.Value.Day;
- serverWeighting.WeightTime_Hour = serverWeighting.WeightTime.Value.Hour;
- serverWeighting.WeightTime_Minute = serverWeighting.WeightTime.Value.Minute;
- }
- #region 附件
- foreach (var file in weighting.WeightingFiles)
- {
- file.DeviceID = serverWeighting.DeviceID;
- serverWeighting.WeightingFiles.Add(file);
- }
- #endregion
- try
- {
- if (MSHO.Collection.DataAccess.MSHOService.Instance.SaveWeighting(clientConfig, serverWeighting))
- {
- msg.Result = true;
- msg.DataId = weightId;
- msg.WeightingFiles = serverWeighting.WeightingFiles.ToList();
- }
- }
- catch (Exception ex)
- {
- MSHO.Collection.DataAccess.MSHOService.Instance.SaveSystemLog("MSHO.Collection.Service", "Process_SQL2000_oreManageDBCli_Weighting", ex);
- msg.Result = false;
- msg.DataId = weightId;
- }
- }
- }
- }
- }
- private void Process_SQL2000_oreManageDBCli_2_Weighting(DataReportRespMsg msg, DataReportMsg data_report)
- {
- var weighting = JsonSerializable.FromJson<MSHO.Collection.DataAccess.ClientModels.SQL2000_oreManageDBCli_2_Weighting>(data_report.Result);
- if (weighting != null)
- {
- #region clientConfig
- MSHO.Collection.DataAccess.Models.CollectConfig clientConfig = null;
- if (m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- clientConfig = m_CollectConfigs[msg.ClientCode];
- }
- if (clientConfig == null)
- {
- clientConfig = MSHO.Collection.DataAccess.MSHOService.Instance.GetCollectConfigByCode(msg.ClientCode);
- }
- #endregion
- if (clientConfig != null)
- {
- #region check exist
- if (!m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- m_CollectConfigs.Add(msg.ClientCode, clientConfig);
- }
- clientConfig.LastSourceTime = weighting.WeightTime;
- bool exist = false;
- if (weighting.ID.HasValue)
- {
- clientConfig.LastSourceID = weighting.ID.ToString();
- exist = MSHO.Collection.DataAccess.MSHOService.Instance.ExistWeighting(clientConfig.StationID, clientConfig.DeviceID, clientConfig.LastSourceID);
- }
- #endregion
- string weightId = weighting.ID.HasValue ? weighting.ID.Value.ToString() : string.Empty;
- if (exist)
- {
- msg.Result = true;
- msg.DataId = weightId;
- }
- else
- {
- var serverWeighting = new MSHO.Collection.DataAccess.Models.Weighting()
- {
- StationID = clientConfig.StationID,
- DeviceID = clientConfig.DeviceID,
- WeightID = weightId,
- WeightTime = weighting.checkdate,
- TruckNumber = weighting.licenseplate,
- CaptureTime = weighting.checkdate,
- AxleCount = weighting.axleCount,
- AxleType = weighting.vehicleType,
- Way = weighting.direction,
- LaneNumber = weighting.roadNum,
- Gross = weighting.totalWeigh,
- LimitWeight = weighting.amountWeigh,
- OverloadWeight = weighting.overWeigh,
- OverloadRate = weighting.overRatio,
- Checker = weighting.@operator,
- UploadTime = DateTime.Now
- };
- #region axleWeight
- if (!string.IsNullOrEmpty(weighting.axleWeight)) {
- int num = 0;
- var sp = weighting.axleWeight.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
- switch (sp.Length) {
- case 1:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- break;
- case 2:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- if (int.TryParse(sp[1], out num)) { serverWeighting.AxleWeight2 = num; }
- break;
- case 3:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- if (int.TryParse(sp[1], out num)) { serverWeighting.AxleWeight2 = num; }
- if (int.TryParse(sp[2], out num)) { serverWeighting.AxleWeight3 = num; }
- break;
- case 4:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- if (int.TryParse(sp[1], out num)) { serverWeighting.AxleWeight2 = num; }
- if (int.TryParse(sp[2], out num)) { serverWeighting.AxleWeight3 = num; }
- if (int.TryParse(sp[3], out num)) { serverWeighting.AxleWeight4 = num; }
- break;
- case 5:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- if (int.TryParse(sp[1], out num)) { serverWeighting.AxleWeight2 = num; }
- if (int.TryParse(sp[2], out num)) { serverWeighting.AxleWeight3 = num; }
- if (int.TryParse(sp[3], out num)) { serverWeighting.AxleWeight4 = num; }
- if (int.TryParse(sp[4], out num)) { serverWeighting.AxleWeight5 = num; }
- break;
- case 6:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- if (int.TryParse(sp[1], out num)) { serverWeighting.AxleWeight2 = num; }
- if (int.TryParse(sp[2], out num)) { serverWeighting.AxleWeight3 = num; }
- if (int.TryParse(sp[3], out num)) { serverWeighting.AxleWeight4 = num; }
- if (int.TryParse(sp[4], out num)) { serverWeighting.AxleWeight5 = num; }
- if (int.TryParse(sp[5], out num)) { serverWeighting.AxleWeight6 = num; }
- break;
- case 7:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- if (int.TryParse(sp[1], out num)) { serverWeighting.AxleWeight2 = num; }
- if (int.TryParse(sp[2], out num)) { serverWeighting.AxleWeight3 = num; }
- if (int.TryParse(sp[3], out num)) { serverWeighting.AxleWeight4 = num; }
- if (int.TryParse(sp[4], out num)) { serverWeighting.AxleWeight5 = num; }
- if (int.TryParse(sp[5], out num)) { serverWeighting.AxleWeight6 = num; }
- if (int.TryParse(sp[6], out num)) { serverWeighting.AxleWeight7 = num; }
- break;
- case 8:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- if (int.TryParse(sp[1], out num)) { serverWeighting.AxleWeight2 = num; }
- if (int.TryParse(sp[2], out num)) { serverWeighting.AxleWeight3 = num; }
- if (int.TryParse(sp[3], out num)) { serverWeighting.AxleWeight4 = num; }
- if (int.TryParse(sp[4], out num)) { serverWeighting.AxleWeight5 = num; }
- if (int.TryParse(sp[5], out num)) { serverWeighting.AxleWeight6 = num; }
- if (int.TryParse(sp[6], out num)) { serverWeighting.AxleWeight7 = num; }
- if (int.TryParse(sp[7], out num)) { serverWeighting.AxleWeight8 = num; }
- break;
- }
- }
- #endregion
- if (serverWeighting.Gross.HasValue)
- {
- if (serverWeighting.Gross.Value > 0)
- {
- serverWeighting.Gross /= 1000;
- }
- }
- if (serverWeighting.LimitWeight.HasValue)
- {
- if (serverWeighting.LimitWeight.Value > 0)
- {
- serverWeighting.LimitWeight /= 1000;
- }
- }
- if (serverWeighting.OverloadWeight.HasValue)
- {
- if (serverWeighting.OverloadWeight.Value > 0)
- {
- serverWeighting.OverloadWeight /= 1000;
- }
- }
- if (serverWeighting.OverloadRate.HasValue)
- {
- if (serverWeighting.OverloadRate.Value > 0)
- {
- serverWeighting.OverloadRate = serverWeighting.OverloadRate.Value / (decimal)100.00;
- }
- }
- if (serverWeighting.WeightTime.HasValue)
- {
- serverWeighting.WeightTime_Year = serverWeighting.WeightTime.Value.Year;
- serverWeighting.WeightTime_Month = serverWeighting.WeightTime.Value.Month;
- serverWeighting.WeightTime_Day = serverWeighting.WeightTime.Value.Day;
- serverWeighting.WeightTime_Hour = serverWeighting.WeightTime.Value.Hour;
- serverWeighting.WeightTime_Minute = serverWeighting.WeightTime.Value.Minute;
- }
- #region 附件
- foreach (var file in weighting.WeightingFiles)
- {
- file.DeviceID = serverWeighting.DeviceID;
- serverWeighting.WeightingFiles.Add(file);
- }
- #endregion
- try
- {
- if (MSHO.Collection.DataAccess.MSHOService.Instance.SaveWeighting(clientConfig, serverWeighting))
- {
- msg.Result = true;
- msg.DataId = weightId;
- msg.WeightingFiles = serverWeighting.WeightingFiles.ToList();
- }
- }
- catch (Exception ex)
- {
- MSHO.Collection.DataAccess.MSHOService.Instance.SaveSystemLog("MSHO.Collection.Service", "Process_SQL2000_oreManageDBCli_Weighting", ex);
- msg.Result = false;
- msg.DataId = weightId;
- }
- }
- }
- }
- }
- private void Process_SQL2000_oreManageDBCli_3_Weighting(DataReportRespMsg msg, DataReportMsg data_report)
- {
- var weighting = JsonSerializable.FromJson<MSHO.Collection.DataAccess.ClientModels.SQL2000_oreManageDBCli_3_Weighting>(data_report.Result);
- if (weighting != null)
- {
- #region clientConfig
- MSHO.Collection.DataAccess.Models.CollectConfig clientConfig = null;
- if (m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- clientConfig = m_CollectConfigs[msg.ClientCode];
- }
- if (clientConfig == null)
- {
- clientConfig = MSHO.Collection.DataAccess.MSHOService.Instance.GetCollectConfigByCode(msg.ClientCode);
- }
- #endregion
- if (clientConfig != null)
- {
- #region check exist
- if (!m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- m_CollectConfigs.Add(msg.ClientCode, clientConfig);
- }
- clientConfig.LastSourceTime = weighting.WeightTime;
- bool exist = false;
- if (weighting.ID.HasValue)
- {
- clientConfig.LastSourceID = weighting.ID.ToString();
- exist = MSHO.Collection.DataAccess.MSHOService.Instance.ExistWeighting(clientConfig.StationID, clientConfig.DeviceID, clientConfig.LastSourceID);
- }
- #endregion
- string weightId = weighting.ID.HasValue ? weighting.ID.Value.ToString() : string.Empty;
- if (exist)
- {
- msg.Result = true;
- msg.DataId = weightId;
- }
- else
- {
- var serverWeighting = new MSHO.Collection.DataAccess.Models.Weighting()
- {
- StationID = clientConfig.StationID,
- DeviceID = clientConfig.DeviceID,
- WeightID = weightId,
- WeightTime = weighting.checkdate,
- TruckNumber = weighting.licenseplate,
- CaptureTime = weighting.checkdate,
- AxleCount = weighting.axleCount,
- AxleType = weighting.vehicleType,
- LaneNumber = weighting.roadNum,
- Gross = weighting.totalWeigh,
- LimitWeight = weighting.amountWeigh,
- OverloadWeight = weighting.overWeigh,
- OverloadRate = weighting.overRatio,
- Checker = weighting.@operator,
- UploadTime = DateTime.Now
- };
- #region axleWeight
- if (!string.IsNullOrEmpty(weighting.axleWeight))
- {
- int num = 0;
- var sp = weighting.axleWeight.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
- switch (sp.Length)
- {
- case 1:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- break;
- case 2:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- if (int.TryParse(sp[1], out num)) { serverWeighting.AxleWeight2 = num; }
- break;
- case 3:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- if (int.TryParse(sp[1], out num)) { serverWeighting.AxleWeight2 = num; }
- if (int.TryParse(sp[2], out num)) { serverWeighting.AxleWeight3 = num; }
- break;
- case 4:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- if (int.TryParse(sp[1], out num)) { serverWeighting.AxleWeight2 = num; }
- if (int.TryParse(sp[2], out num)) { serverWeighting.AxleWeight3 = num; }
- if (int.TryParse(sp[3], out num)) { serverWeighting.AxleWeight4 = num; }
- break;
- case 5:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- if (int.TryParse(sp[1], out num)) { serverWeighting.AxleWeight2 = num; }
- if (int.TryParse(sp[2], out num)) { serverWeighting.AxleWeight3 = num; }
- if (int.TryParse(sp[3], out num)) { serverWeighting.AxleWeight4 = num; }
- if (int.TryParse(sp[4], out num)) { serverWeighting.AxleWeight5 = num; }
- break;
- case 6:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- if (int.TryParse(sp[1], out num)) { serverWeighting.AxleWeight2 = num; }
- if (int.TryParse(sp[2], out num)) { serverWeighting.AxleWeight3 = num; }
- if (int.TryParse(sp[3], out num)) { serverWeighting.AxleWeight4 = num; }
- if (int.TryParse(sp[4], out num)) { serverWeighting.AxleWeight5 = num; }
- if (int.TryParse(sp[5], out num)) { serverWeighting.AxleWeight6 = num; }
- break;
- case 7:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- if (int.TryParse(sp[1], out num)) { serverWeighting.AxleWeight2 = num; }
- if (int.TryParse(sp[2], out num)) { serverWeighting.AxleWeight3 = num; }
- if (int.TryParse(sp[3], out num)) { serverWeighting.AxleWeight4 = num; }
- if (int.TryParse(sp[4], out num)) { serverWeighting.AxleWeight5 = num; }
- if (int.TryParse(sp[5], out num)) { serverWeighting.AxleWeight6 = num; }
- if (int.TryParse(sp[6], out num)) { serverWeighting.AxleWeight7 = num; }
- break;
- case 8:
- if (int.TryParse(sp[0], out num)) { serverWeighting.AxleWeight1 = num; }
- if (int.TryParse(sp[1], out num)) { serverWeighting.AxleWeight2 = num; }
- if (int.TryParse(sp[2], out num)) { serverWeighting.AxleWeight3 = num; }
- if (int.TryParse(sp[3], out num)) { serverWeighting.AxleWeight4 = num; }
- if (int.TryParse(sp[4], out num)) { serverWeighting.AxleWeight5 = num; }
- if (int.TryParse(sp[5], out num)) { serverWeighting.AxleWeight6 = num; }
- if (int.TryParse(sp[6], out num)) { serverWeighting.AxleWeight7 = num; }
- if (int.TryParse(sp[7], out num)) { serverWeighting.AxleWeight8 = num; }
- break;
- }
- }
- #endregion
- if (serverWeighting.Gross.HasValue)
- {
- if (serverWeighting.Gross.Value > 0)
- {
- serverWeighting.Gross /= 1000;
- }
- }
- if (serverWeighting.LimitWeight.HasValue)
- {
- if (serverWeighting.LimitWeight.Value > 0)
- {
- serverWeighting.LimitWeight /= 1000;
- }
- }
- if (serverWeighting.OverloadWeight.HasValue)
- {
- if (serverWeighting.OverloadWeight.Value > 0)
- {
- serverWeighting.OverloadWeight /= 1000;
- }
- }
- if (serverWeighting.OverloadRate.HasValue)
- {
- if (serverWeighting.OverloadRate.Value > 0)
- {
- serverWeighting.OverloadRate = serverWeighting.OverloadRate.Value / (decimal)100.00;
- }
- }
- if (serverWeighting.WeightTime.HasValue)
- {
- serverWeighting.WeightTime_Year = serverWeighting.WeightTime.Value.Year;
- serverWeighting.WeightTime_Month = serverWeighting.WeightTime.Value.Month;
- serverWeighting.WeightTime_Day = serverWeighting.WeightTime.Value.Day;
- serverWeighting.WeightTime_Hour = serverWeighting.WeightTime.Value.Hour;
- serverWeighting.WeightTime_Minute = serverWeighting.WeightTime.Value.Minute;
- }
- #region 附件
- foreach (var file in weighting.WeightingFiles)
- {
- file.DeviceID = serverWeighting.DeviceID;
- serverWeighting.WeightingFiles.Add(file);
- }
- #endregion
- try
- {
- if (MSHO.Collection.DataAccess.MSHOService.Instance.SaveWeighting(clientConfig, serverWeighting))
- {
- msg.Result = true;
- msg.DataId = weightId;
- msg.WeightingFiles = serverWeighting.WeightingFiles.ToList();
- }
- }
- catch (Exception ex)
- {
- MSHO.Collection.DataAccess.MSHOService.Instance.SaveSystemLog("MSHO.Collection.Service", "Process_SQL2000_oreManageDBCli_Weighting", ex);
- msg.Result = false;
- msg.DataId = weightId;
- }
- }
- }
- }
- }
- private void Process_LowSpeedNew_Weighting(DataReportRespMsg msg, DataReportMsg data_report)
- {
- var weighting = JsonSerializable.FromJson<MSHO.Collection.DataAccess.ClientModels.LowSpeedNew_Weighting>(data_report.Result);
- if (weighting != null)
- {
- #region clientConfig
- MSHO.Collection.DataAccess.Models.CollectConfig clientConfig = null;
- if (m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- clientConfig = m_CollectConfigs[msg.ClientCode];
- }
- if (clientConfig == null)
- {
- clientConfig = MSHO.Collection.DataAccess.MSHOService.Instance.GetCollectConfigByCode(msg.ClientCode);
- }
- #endregion
- if (clientConfig != null)
- {
- #region check exist
- if (!m_CollectConfigs.ContainsKey(msg.ClientCode))
- {
- m_CollectConfigs.Add(msg.ClientCode, clientConfig);
- }
- clientConfig.LastSourceTime = weighting.WeightTime;
- bool exist = false;
- if (!string.IsNullOrEmpty(weighting.CheckCode))
- {
- clientConfig.LastSourceID = weighting.CheckCode;
- exist = MSHO.Collection.DataAccess.MSHOService.Instance.ExistWeighting(clientConfig.StationID, clientConfig.DeviceID, clientConfig.LastSourceID);
- }
- #endregion
- string weightId = (string.IsNullOrEmpty(weighting.CheckCode) ? (weighting.LSData_ID.HasValue ? weighting.LSData_ID.Value.ToString() : string.Empty) : weighting.CheckCode);
- if (exist)
- {
- msg.Result = true;
- msg.DataId = weightId;
- }
- else
- {
- var serverWeighting = new MSHO.Collection.DataAccess.Models.Weighting()
- {
- StationID = clientConfig.StationID,
- DeviceID = clientConfig.DeviceID,
- WeightID = weightId,
- WeightTime = weighting.Check_DT,
- TruckNumber = weighting.License_Plate,
- TruckColor = weighting.Plate_Color,
- CaptureTime = weighting.Check_DT,
- LaneNumber = (int)weighting.Lane_ID,
- Speed = weighting.Veh_Speed,
- AxleCount = (int)weighting.Axle_Num,
- AxleType = (weighting.Axle_Type.HasValue ? weighting.Axle_Type.Value.ToString() : null),
- Gross = weighting.Whole_Weight,
- LimitWeight = weighting.Whole_Limit,
- OverloadWeight = weighting.Whole_Over,
- OverloadRate = weighting.Whole_Overrate,
- Checker = weighting.Staff_ID,
- Remark = (weighting.Over_Num > 0 ? string.Format("超限次数{0}", weighting.Over_Num) : null),
- AxleWeight1 = weighting.Axle1_Weight,
- AxleWeight2 = weighting.Axle2_Weight,
- AxleWeight3 = weighting.Axle3_Weight,
- AxleWeight4 = weighting.Axle4_Weight,
- AxleWeight5 = weighting.Axle5_Weight,
- AxleWeight6 = weighting.Axle6_Weight,
- AxleWeight7 = weighting.Axle7_Weight,
- AxleWeight8 = weighting.Axle8_Weight,
- Width = weighting.Veh_Width,
- Height = weighting.Veh_Height,
- Length = weighting.Veh_Length,
- UploadTime = DateTime.Now
- };
- #region process value
- if (serverWeighting.Gross.HasValue)
- {
- if (serverWeighting.Gross.Value > 0)
- {
- serverWeighting.Gross /= 1000;
- }
- }
- if (serverWeighting.LimitWeight.HasValue)
- {
- if (serverWeighting.LimitWeight.Value > 0)
- {
- serverWeighting.LimitWeight /= 1000;
- }
- }
- if (serverWeighting.OverloadWeight.HasValue)
- {
- if (serverWeighting.OverloadWeight.Value > 0)
- {
- serverWeighting.OverloadWeight /= 1000;
- }
- }
-
- if (serverWeighting.OverloadWeight.HasValue && serverWeighting.LimitWeight.HasValue && serverWeighting.OverloadWeight.Value > 0 && serverWeighting.LimitWeight > 0)
- {
- serverWeighting.OverloadRate = serverWeighting.OverloadWeight.Value / serverWeighting.LimitWeight.Value;
- }
- else if (serverWeighting.OverloadRate.HasValue)
- {
- if (serverWeighting.OverloadRate.Value > 0)
- {
- serverWeighting.OverloadRate = serverWeighting.OverloadRate.Value / (decimal)100.00;
- }
- }
- if (serverWeighting.WeightTime.HasValue)
- {
- serverWeighting.WeightTime_Year = serverWeighting.WeightTime.Value.Year;
- serverWeighting.WeightTime_Month = serverWeighting.WeightTime.Value.Month;
- serverWeighting.WeightTime_Day = serverWeighting.WeightTime.Value.Day;
- serverWeighting.WeightTime_Hour = serverWeighting.WeightTime.Value.Hour;
- serverWeighting.WeightTime_Minute = serverWeighting.WeightTime.Value.Minute;
- }
- #endregion
- #region 附件
- foreach (var file in weighting.WeightingFiles)
- {
- file.DeviceID = serverWeighting.DeviceID;
- serverWeighting.WeightingFiles.Add(file);
- }
- #endregion
- try
- {
- if (MSHO.Collection.DataAccess.MSHOService.Instance.SaveWeighting(clientConfig, serverWeighting))
- {
- msg.Result = true;
- msg.DataId = weightId;
- msg.WeightingFiles = serverWeighting.WeightingFiles.ToList();
- }
- }
- catch (Exception ex)
- {
- MSHO.Collection.DataAccess.MSHOService.Instance.SaveSystemLog("MSHO.Collection.Service", "Process_LowSpeedNew_Weighting", ex);
- msg.Result = false;
- msg.DataId = weightId;
- }
- }
- }
- }
- }
- }
- }
|