using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.Calculation.DispatchAna.Model
{
///
/// 复杂
///
public class RequestParasSimple
{
///
///
///
public RequestParasSimple() { }
///
/// 公司标识
///
public long CorpID { get; set; }
///
/// 泵站标识
///
public long StationID { get; set; }
///
/// 方案数量
///
public int SchemeNumber { get; set; } = 0;
///
/// 方案排序
///
public IStation.Calculation.DispatchAna.Model.eAnaSchemeSortType SchemeSortType { get; set; }
///
///
///
public string TargetFlow { get; set; }
///
///
///
public string TargetOutletPress { get; set; }
///
///
///
public string WaterLevel { get; set; }
///
/// 流量浮动变量
///
public string TargetFlowRangeMin { get; set; }
///
/// 流量浮动变量
///
public string TargetFlowRangeMax { get; set; }
///
/// 获取默认值
///
///
///
///
public static bool GetDefaultValue(string str,out double doubleValue)
{
doubleValue = 0;
if (string.IsNullOrEmpty(str))
{
return false;
}
if (str.Contains(","))
{
var sss = str.Split(",");
if(!double.TryParse(sss[0], out doubleValue))
{
return false;
}
else
{
return true;
}
}
if (!double.TryParse(str, out doubleValue))
{
return false;
}
return true;
}
}
}