懒羊羊
2023-12-28 e46d3baaf3e8d7d85f4bafec3aad75e52b078408
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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
    {
        
        /// <summary>
        /// 获取数据库所有表名
        /// </summary>
        /// <returns></returns>
        public static List<string> GetTableName()
        {
         
            try
            {
                return System_Dal. GetTableName(); ;              
            }
            catch (Exception ex)
            {
 
                throw ex;
            }
        }
        /// <summary>
        /// 获取某一个表的所有字段
        /// </summary>
        /// <param name="object_id">表名</param>
        /// <returns></returns>
        public static DataTable GetSyscolumns(string object_id)
        {
            DataTable dt = new DataTable();
            try
            {
                return System_Dal.GetSyscolumns(object_id);
 
            }
            catch (Exception)
            {
 
                throw;
            }
           
        }
        /// <summary>
        /// 备份数据库
        /// </summary>
        /// <param name="FilePath"></param>
        /// <returns></returns>
        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)
        {
            DataTable dt = new DataTable();
            try
            {
                return System_Dal.GetSystemLog(ip);
 
            }
            catch (Exception ex)
            {
 
                throw ex;
            }
 
        }
    }
}