using DataEntity.Share;
using HxEnum;
using System;
using System.Xml;
using XCommon;
using XImagingXhandler.XDAL;
namespace XCore
{
///
/// 子方法
///
public class SubMethodBll
{
string strCurrentCulture = "";
WellCalc wellCalc = new WellCalc();
public SubMethodBll()
{
strCurrentCulture = Shared.SoftwareInformation.currentculture;
}
///
/// xml转化为方法实体
///
///
///
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 检查所有属性设置是否满足要求
///
/// 检查所有属性设置是否满足要求
///
/// 吸液属性对象
/// 检查所有属性设置是否满足要求
public MethodPropertyInfo CheckProperty(MethodAspirate methodAspirate)
{
MethodPropertyInfo methodPropertyInfo = new MethodPropertyInfo();
if (strCurrentCulture== "zh-CN")
{
}
else if(strCurrentCulture == "en-US")
{
}
return methodPropertyInfo;
}
#endregion
}
}