懒羊羊
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YX.Entity;
using System.Transactions;
using System.Data.Entity;
using System.Security.Cryptography;
using YX.Common.DotNetEncrypt;
using YX.DAL;
using System.Data;
using System.Data.SqlClient;
 
namespace YX.BLL
{
    public class SystemUserInfo_Bll
    {
        SystemUserInfo_Dal user_dal = new SystemUserInfo_Dal();
        public DataTable GetUserInfoByOrganization_Id(StringBuilder SqlWhere, IList<SqlParameter> IList_param)
        {
            try
            {
                return user_dal.GetUserInfoByOrganization_Id(SqlWhere,IList_param);
            }
            catch (Exception)
            {
 
                throw;
            }
        }
        /// <summary>
        /// 后台登陆验证
        /// </summary>
        /// <param name="name">账户</param>
        /// <param name="pwd">密码</param>
        /// <returns></returns>
        public Base_UserInfo UserLogin(string name, string pwd)
        {
        
            try
            {
 
                var password = Md5Helper.Md5(pwd);
                return   user_dal.UserLogin(name, password);
            }
            catch (Exception ex)
            {
 
                throw ex;
            }
        }
        /// <summary>
        /// 添加用户
        /// </summary>
        /// <param name="UserInfo"></param>
        /// <returns></returns>
        public int AddUserInfo(Base_UserInfo UserInfo)
        {
            try
            {              
                UserInfo.User_Pwd = Md5Helper.Md5("123456");
                return   user_dal.AddUserInfo(UserInfo);
            }
            catch (Exception ex)
            {
                
                throw ex;
            }
        }
        /// <summary>
        /// 修改用户
        /// </summary>
        /// <param name="UserInfo"></param>
        /// <returns></returns>
        public int EditUserInfo(Base_UserInfo UserInfo)
        {         
            try
            {
                
              return    user_dal.EditUserInfo(UserInfo);
 
            }
            catch (Exception ex)
            {
 
                throw ex;
            }
        }
    }
}