コード例 #1
0
        public bool ClearServers(string serverid)
        {
            try
            {
                SCADA_DRIVER DriverBll = new SCADA_DRIVER();

                IO_ALARM_CONFIG  alarmBll  = new IO_ALARM_CONFIG();
                IO_COMMUNICATION commBll   = new IO_COMMUNICATION();
                IO_DEVICE        deviceBll = new IO_DEVICE();
                IO_PARA          paraBll   = new IO_PARA();
                IO_SERVER        serverBll = new IO_SERVER();
                alarmBll.Clear(serverid.Trim());
                commBll.Clear(serverid.Trim());
                deviceBll.Clear(serverid.Trim());
                paraBll.Clear(serverid.Trim());
                serverBll.Clear(serverid.Trim());
                DbHelperSQLite.Compress();
                return(true);
            }
            catch
            {
                return(false);
            }
        }