using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using YX.DAL; using YX.Entity; namespace YX.BLL { public static class System_Bll { /// /// 获取数据库所有表名 /// /// public static List GetTableName() { try { return System_Dal. GetTableName(); ; } catch (Exception ex) { throw ex; } } /// /// 获取某一个表的所有字段 /// /// 表名 /// public static DataTable GetSyscolumns(string object_id) { DataTable dt = new DataTable(); try { return System_Dal.GetSyscolumns(object_id); } catch (Exception) { throw; } } /// /// 备份数据库 /// /// /// public static int DbBackup(string FilePath) { try { return System_Dal.DbBackup(FilePath); } catch (Exception ex) { throw ex; } } //写日志 public static int WriteLogToDB(Base_Log loginfo) { try { return System_Dal.WriteLogToDB(loginfo); } catch (Exception ex) { throw ex; } } public static DataTable GetSystemLog(string ip,string type) { DataTable dt = new DataTable(); try { return System_Dal.GetSystemLog(ip, type); } catch (Exception ex) { throw ex; } } } }