/// <summary> /// 所有发码器状态修改为正常 /// </summary> /// <returns></returns> public bool InitAllCode() { string strSql = string.Format("update CodeSender_Info set CodeSenderStateID={0}", 1); if (dba.ExistsSql(strSql) == -1) { return(false); } else { return(true); } }
public int existsDirectional(string dStr) { string tmpString = string.Format("select count(DetectionInfo) from CodeSender_Directional where DetectionInfo='{}'", dStr); return(dba.ExistsSql(tmpString)); }
public int UpdateSWAfterTime(string afterTime, string strWhere) { string strUpdate = "update TimerInterval set SWfrontTime = '" + afterTime + "' where " + strWhere; return(DB.ExistsSql(strUpdate)); }