lixiaojun
2024-07-11 8d8cd298ab46aee191baf53ff320fd3290d1ec9a
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace IStation.WinFrmUI
{
    public static class GlobeParas
    {
        //当前软件版本
        public static string CurrentSoftVersion = "";
 
        //主界面
        public static IStation.WinFrmUI.MainFluentForm MainForm = null;
 
        //是否绘制水印
        public static bool IsPrintWaterMark = true;
        public static string WaterMarkText = "义维科技";
 
        //电脑屏幕缩放比例
        public static float ScreenScale = 1.0f;
        public static bool IsNeedTip4ScreenScale = false;
 
 
        /// <summary>
        /// 登录参数
        /// </summary>
        public static IStation.Model.UserInfo CurrentUser { get; set; }
 
        #region 存放的客户数据的文件夹路径
        private static string _dataFolder = null;
        public static string DataFolder
        {
            set
            {
                _dataFolder = value;
            }
            get
            {
                if (!string.IsNullOrEmpty(_dataFolder))
                    return _dataFolder;
                if (string.IsNullOrEmpty(_dataFolder))
                {
                    _dataFolder = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Data");
                }
                else if (_dataFolder.StartsWith(".\\"))
                {
                    _dataFolder = AppDomain.CurrentDomain.BaseDirectory + _dataFolder.Substring(2, _dataFolder.Length - 2);
                }
                else if (_dataFolder.StartsWith(".."))
                {
                    _dataFolder = AppDomain.CurrentDomain.BaseDirectory.Substring(0, AppDomain.CurrentDomain.BaseDirectory.LastIndexOf(@"\")) + _dataFolder.Substring(2, _dataFolder.Length - 2);
                }
 
                return _dataFolder;
            }
        }
 
        #endregion 
 
 
        //当前登陆用户
        //static public IStation.Model.LoginUser CurrentLoginUser = null;
 
        ////
        //public static IStation.Bimface.BimFaceClient BimfaceClient
        //{
        //    get
        //    {
        //        if (_bimfaceClient == null)
        //        {
        //            var bimAppKey = System.Configuration.ConfigurationManager.AppSettings["BIMKEY"];
        //            var bimAppSecret = System.Configuration.ConfigurationManager.AppSettings["BIMTOKEN"];
 
        //            _bimfaceClient = IStation.Bimface.BimFaceClient.GetClient(bimAppKey, bimAppSecret);
        //        }
        //        return _bimfaceClient;
        //    }
        //}
        //private static IStation.Bimface.BimFaceClient _bimfaceClient = null;
    }
}