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
|
}
|
}
|