/// <summary> /// 单位信息表 /// </summary> /// <param name="UnitCode"></param> /// <returns></returns> public bool GetGpsUnitInfoData(string UnitCode, string XZBM) { bool Vehicle = false; try { string sql = "select DWBH from DWXXB t where DWBH='" + UnitCode + "' and xzbm='" + XZBM + "'"; object obj = GPSDBHelperOracle.GetSingle(sql); if (obj != null) { Vehicle = true; } } catch (Exception ex) { LOG.LogHelper.WriteLog("GetUnitInfoData", ex); } return(Vehicle); }
public bool GetBoolBSSVehicleData(string clbh, string XZBM) { bool Vehicle = false; try { string sql = "select clbh from clxxb where clbh='" + clbh + "' and xzbm='" + XZBM + "'"; object obj = GPSDBHelperOracle.GetSingle(sql); if (obj != null) { Vehicle = true; } } catch (Exception ex) { LOG.LogHelper.WriteLog("GetBoolVehicleData", ex); } return(Vehicle); }