public bool Clear(string SERVER_ID) { if (dal.Clear(SERVER_ID.Trim())) { // dal.ClearView(SERVER_ID.Trim()); alarmBll.Clear(SERVER_ID.Trim()); return(true); } return(false); }
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); } }