/// <summary> /// 用检测线编号获当前在线车辆数 /// </summary> /// <param name="JCX">检测线编号</param> /// <returns>车辆数 int</returns> public int Get_CLS(int JCX) { int cls = 0; string sql = "select COUNT(JCBH) from BJCLXXB where JCBJ=@jcx"; SqlParameter[] spr = { new SqlParameter("@jcx", JCX) }; try { cls = (int)DBHelperSQL.GetOnline(sql, CommandType.Text, spr); return(cls); } catch (Exception) { throw; } }