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
using DataEntity.Share;
using HxEnum;
using System;
using System.Xml;
using XCommon;
using XImagingXhandler.XDAL;
 
namespace XCore
{
    /// <summary>
    /// 子方法
    /// </summary>
    public class SubMethodBll
    {
        string strCurrentCulture = "";
        WellCalc wellCalc = new WellCalc();
 
        public SubMethodBll()
        {
            strCurrentCulture = Shared.SoftwareInformation.currentculture;
        }
 
        /// <summary>
        /// xml转化为方法实体
        /// </summary>
        /// <param name="xmlNode"></param>
        /// <returns></returns>
        public MethodSubMethod GenerateMethodSubMethodDataByXmlNode(XmlNode xmlNode, bool isOpenFile = false)
        {
            MethodSubMethod methodSubMethod = new MethodSubMethod();
 
            // 获取xml共同部分数据
            CommonBll.GenerateMethodBaseDataByXmlNode(xmlNode, methodSubMethod, isOpenFile);
            methodSubMethod.comment = xmlNode.SelectSingleNode("comment")==null?"":xmlNode.SelectSingleNode("comment").InnerText;
            methodSubMethod.filePath = xmlNode.SelectSingleNode("filePath").InnerText;
            methodSubMethod.isConcurrence= xmlNode.SelectSingleNode("isConcurrence").InnerText.ToLower()=="true"?true:false;
 
            return methodSubMethod;
        }
 
        #region 检查所有属性设置是否满足要求
        /// <summary>
        /// 检查所有属性设置是否满足要求
        /// </summary>
        /// <param name="methodAspirate">吸液属性对象</param>
        /// <returns>检查所有属性设置是否满足要求</returns>
        public MethodPropertyInfo CheckProperty(MethodAspirate methodAspirate)
        {
            MethodPropertyInfo methodPropertyInfo = new MethodPropertyInfo();
 
            if (strCurrentCulture== "zh-CN")
            {
               
            }
            else if(strCurrentCulture == "en-US")
            {
               
            }
            return methodPropertyInfo;
        }
        #endregion
    }
}