Ejemplo n.º 1
0
        /// <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);
            }
        }
Ejemplo n.º 2
0
        public int existsDirectional(string dStr)
        {
            string tmpString = string.Format("select count(DetectionInfo) from CodeSender_Directional where DetectionInfo='{}'", dStr);

            return(dba.ExistsSql(tmpString));
        }
Ejemplo n.º 3
0
        public int UpdateSWAfterTime(string afterTime, string strWhere)
        {
            string strUpdate = "update TimerInterval set SWfrontTime = '" + afterTime + "' where " + strWhere;

            return(DB.ExistsSql(strUpdate));
        }