22
schangxiang@126.com
2024-12-23 fd72c3eabdabd387733459896a8ee14a002fbdc0
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
namespace Admin.NET.Application
{
    /// <summary>
    /// 系统帮助类
    /// </summary>
    public class SysHelper
    {
        /// <summary>
        /// 获取设备报警的db地址
        /// </summary>
        /// <param name="_DeviceAreaCode"></param>
        /// <returns></returns>
        /// <exception cref="Exception"></exception>
        public static string GetDBForDeviceWarning(string _DeviceAreaCode)
        {
            switch (_DeviceAreaCode)
            {
                case "分拣区":
                    return "5000";
                case "码包区":
                    return "5001";
                case "合包区":
                    return "5002";
                case "封箱区":
                    return "5003";
                default:
                    throw new Exception("不支持的区域");
            }
        }
 
        ///// <summary>
        ///// 获取登录人的昵称
        ///// </summary>
        ///// <returns></returns>
        //public static string GetUserName()
        //{
        //    return CurrentUserInfo.Name;
        //}
 
        ///// <summary>
        ///// 获取登录人的用户id
        ///// </summary>
        ///// <returns></returns>
        //public static long GetUserId()
        //{
        //    return CurrentUserInfo.UserId;
        //}
 
        /// <summary>
        /// 获取当前时间
        /// </summary>
        /// <returns></returns>
        public static DateTime GetNowTime()
        {
            return DateTime.Now;
        }
    }
 
}