yantian yue
2023-12-28 fd5f7c86beec35f6b7cde3f16f23c6cf1279a447
提交 | 用户 | 时间
e46d3b 1 using System;
2 using System.Collections.Generic;
3 using System.Data;
4 using System.Linq;
5 using System.Text;
6 using YX.DAL;
7 using YX.Entity;
8
9 namespace YX.BLL
10 {
11    public static class System_Bll
12     {
13         
14         /// <summary>
15         /// 获取数据库所有表名
16         /// </summary>
17         /// <returns></returns>
18         public static List<string> GetTableName()
19         {
20          
21             try
22             {
23                 return System_Dal. GetTableName(); ;              
24             }
25             catch (Exception ex)
26             {
27
28                 throw ex;
29             }
30         }
31         /// <summary>
32         /// 获取某一个表的所有字段
33         /// </summary>
34         /// <param name="object_id">表名</param>
35         /// <returns></returns>
36         public static DataTable GetSyscolumns(string object_id)
37         {
38             DataTable dt = new DataTable();
39             try
40             {
41                 return System_Dal.GetSyscolumns(object_id);
42
43             }
44             catch (Exception)
45             {
46
47                 throw;
48             }
49            
50         }
51         /// <summary>
52         /// 备份数据库
53         /// </summary>
54         /// <param name="FilePath"></param>
55         /// <returns></returns>
56         public static int DbBackup(string FilePath)
57         {
58             try
59             {
60                 return System_Dal.DbBackup(FilePath);
61
62             }
63             catch (Exception ex)
64             {
65
66                 throw ex;
67             }
68         }
69         //写日志
70         public static int WriteLogToDB(Base_Log loginfo)
71         {
72             try
73             {
74                 return System_Dal.WriteLogToDB(loginfo);
75             }
76             catch (Exception ex)
77             {
78
79                 throw ex;
80             }
81         }
fd5f7c 82         public static DataTable GetSystemLog(string ip,string type)
e46d3b 83         {
84             DataTable dt = new DataTable();
85             try
86             {
fd5f7c 87                 return System_Dal.GetSystemLog(ip, type);
e46d3b 88
89             }
90             catch (Exception ex)
91             {
92
93                 throw ex;
94             }
95
96         }
97     }
98 }