/// <summary> 转换成字符串 </summary> public override string ToString() { if (this.BaseFile != null && this.BaseFile.Key != null) { MODELTYPE modeltype = this.BaseFile.Key.Find <MODELTYPE>(); if (modeltype != null) { // Todo :气水或油水模型,平衡初始化数据只有前5个参数 if (modeltype.MetricType == MetricType.GASWATER || modeltype.MetricType == MetricType.OILWATER) { return(string.Format(formatStrGasWater, szstzdhs0.ToSDD(), szstljs1.ToSDD(), ctstyxhs2.ToSDD(), ctstyxzdhs3.ToSDD(), jxstzds4.ToSDD())); } } } return(string.Format(formatStr, szstzdhs0.ToSDD(), szstljs1.ToSDD(), ctstyxhs2.ToSDD(), ctstyxzdhs3.ToSDD(), jxstzds4.ToSDD(), e100wgzds5.ToSDD(), e300jxstzds6.ToSDD())); }
/// <summary> 转换成字符串 </summary> public override string ToString() { MODELTYPE modeltype = this.BaseFile.Key.Find <MODELTYPE>(); if (modeltype.MetricType == MetricType.BLACKOIL || modeltype.MetricType == MetricType.HFOIL) { #region - 说明 - this.PGAS = false; #endregion } else if (modeltype.MetricType == MetricType.GASWATER) { #region - 说明 - this.OILIP = false; this.POIL = false; this.SOIL = false; this.RS = false; #endregion } else if (modeltype.MetricType == MetricType.OILWATER) { #region - 说明 - this.GASIP = false; this.PGAS = false; this.SGAS = false; this.RS = false; #endregion } return(string.Format(type, this.freq0, this.precs1, this.printw2, this.binout3, this.rstbin4, this.plot5, this.geom6, this.wloc9, this.watip7, this.gasip8, this.oilip10, this.poil11, this.pgas19, this.sgas12, this.soil13, this.swat14, this.rs15, this.separate16, this.restart, this.rptresult17, this.rptonly18, this.netonly19)); }