schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XImagingXhandler.XDAL;
using XCoreBLL.Resource;
namespace XCore
{
    public class SetChannelBll
    {
        string strCurrentCulture = "";
        public SetChannelBll() 
        {
            strCurrentCulture = System.Threading.Thread.CurrentThread.CurrentCulture.Name;
        }
        #region 检查所有属性设置是否满足要求
        /// <summary>
        /// 检查所有属性设置是否满足要求
        /// </summary>
        /// <param name="methodAspirate">设置通道属性对象</param>
        /// <returns>检查所有属性设置是否满足要求</returns>
        public MethodPropertyInfo CheckProperty(MethodSetChannel methodSetChannel)
        {
            MethodPropertyInfo methodPropertyInfo = new MethodPropertyInfo();
 
            if (strCurrentCulture == "zh-CN")
            {
                methodPropertyInfo.property_tips_info = SetChannelResourceCHS.tipsInfo.ToString();
 
                if (methodSetChannel.labwaretipValue == null || methodSetChannel.labwaretipValue == "")
                {
                    methodPropertyInfo.property_name_info = SetChannelResourceCHS.labwaretipText.ToString();
                }
                if (methodSetChannel.armValue == null || methodSetChannel.armValue == "")
                {
                    methodPropertyInfo.property_name_info = SetChannelResourceCHS.armText.ToString();
                }
                if (methodSetChannel.ChannelText == null || methodSetChannel.ChannelText == "")
                {
                    methodPropertyInfo.property_name_info = SetChannelResourceCHS.ChannelText.ToString();
                }
            }
            else if (strCurrentCulture == "en-US")
            {
                methodPropertyInfo.property_tips_info = SetChannelResourceENU.tipsInfo.ToString();
 
                if (methodSetChannel.labwaretipValue == null || methodSetChannel.labwaretipValue == "")
                {
                    methodPropertyInfo.property_name_info = SetChannelResourceENU.labwaretipText.ToString();
                }
                if (methodSetChannel.armValue == null || methodSetChannel.armValue == "")
                {
                    methodPropertyInfo.property_name_info = SetChannelResourceENU.armText.ToString();
                }
                if (methodSetChannel.ChannelText == null || methodSetChannel.ChannelText == "")
                {
                    methodPropertyInfo.property_name_info = SetChannelResourceENU.ChannelText.ToString();
                }
            }
            return methodPropertyInfo;
        }
        #endregion
    }
}