private void method_4(DataTable dataTable_0) { lock (this.hashtable_0.SyncRoot) { if (this.hashtable_0.Count > 0) { this.hashtable_0.Clear(); } CarFilterInfo info = null; foreach (DataRow row in dataTable_0.Rows) { if (row["simNum"] != DBNull.Value) { info = new CarFilterInfo { SimNum = Convert.ToString(row["simNum"]), CarInfoData = CarDataInfoBuffer.GetDataCarInfoBySimNum(Convert.ToString(row["simNum"])) }; if (info.CarInfoData != null) { info.PosReadTime = info.CarInfoData.IsNewPosTime; info.PicReadTime = info.CarInfoData.IsNewPicTime; this.hashtable_0.Add(info.SimNum, info); } } } } }
public Hashtable GpsCarFilterToHashTable(int int_0) { SqlParameter[] parameterArray = new SqlParameter[] { new SqlParameter("@workId", int_0) }; DataTable table = new SqlDataAccess().getDataBySP("WebGpsClient_GetCarFilter", parameterArray); Hashtable hashtable = new Hashtable(); if (hashtable.Count > 0) { hashtable.Clear(); } CarFilterInfo info = null; foreach (DataRow row in table.Rows) { if (row["simNum"] != DBNull.Value) { info = new CarFilterInfo { SimNum = Convert.ToString(row["simNum"]), CarInfoData = CarDataInfoBuffer.GetDataCarInfoBySimNum(info.SimNum) }; if (info.CarInfoData != null) { info.PosReadTime = info.CarInfoData.IsNewPosTime; info.PicReadTime = info.CarInfoData.IsNewPicTime; hashtable.Add(info.SimNum, info); } } } return(hashtable); }
public Hashtable GpsCarFilterToHashTable(int int_0) { SqlParameter[] parameterArray = new SqlParameter[] { new SqlParameter("@workId", int_0) }; DataTable table = new SqlDataAccess().getDataBySP("WebGpsClient_GetCarFilter", parameterArray); Hashtable hashtable = new Hashtable(); if (hashtable.Count > 0) { hashtable.Clear(); } CarFilterInfo info = null; foreach (DataRow row in table.Rows) { if (row["simNum"] != DBNull.Value) { info = new CarFilterInfo { SimNum = Convert.ToString(row["simNum"]), CarInfoData = CarDataInfoBuffer.GetDataCarInfoBySimNum(info.SimNum) }; if (info.CarInfoData != null) { info.PosReadTime = info.CarInfoData.IsNewPosTime; info.PicReadTime = info.CarInfoData.IsNewPicTime; hashtable.Add(info.SimNum, info); } } } return hashtable; }
public void UpdatePosSearchFlag(string string_0, int int_0, string string_1) { if (("位置查询".Equals(string_0) || "实时点名查询".Equals(string_0)) || ("LBS位置查询".Equals(string_0) || "获得当前车台温度".Equals(string_0))) { CarFilterInfo info = this.method_0(string_1); if (info != null) { info.IsPosSearchFlag = true; info.OrderId = int_0; } } }
public void AddCarFilterList(CarInfo carInfo_0) { if ((this.hashtable_0 != null) && !this.hashtable_0.ContainsKey(carInfo_0.SimNum)) { CarFilterInfo info = new CarFilterInfo { SimNum = carInfo_0.SimNum, CarInfoData = carInfo_0, PosReadTime = carInfo_0.IsNewPosTime, PicReadTime = carInfo_0.IsNewPicTime }; lock (this.hashtable_0.SyncRoot) { this.hashtable_0.Add(info.SimNum, info); } } }