| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853 |
- using System;
- using System.Collections;
- using System.Data;
- using System.Drawing;
- using System.Windows.Forms;
- using Core.LgMes.Client.Comm;
- using CoreFS.CA06;
- using Core.LgMes.Server.lgClassModel;
- namespace Core.LgMes.Client.lgGlobalMap
- {
- public partial class frmBaseSite : CoreFS.CA06.FrmBase
- {
- #region " Class Memeber Variable "
- protected ArrayList _arDataSource = null;
- protected string _heatProcessNo = "";
- protected string[] _szElementSymbol;
- protected string[] _szAdditive;
- protected string[] _szTemperature;
- protected DataTable _dtCraftElement;
- protected DataTable _dtAdditive;
- protected DataTable _dtMaterial;
- protected DataTable _dtTemperature;
- protected DataTable _dtDeviceState;
- protected DataTable _dtEleStd = null; // 标准元素值表
- protected DataTable _dtCraftStdVal = null; // 炼钢工艺标准值
- protected DataTable _dtCraftStdVal2 = null; // 炼钢工艺标准值
- protected DataTable _dtCraftMtrVal = null; //物料消耗标准
- protected string strTemperature = "";
- public CoreFS.CA06.OpeBase ob;
- public string strIronPotNo = ""; //铁包号
- //对应表
- protected DataTable coolWaterTable, crastallorTable; //结晶器,二冷水
- #endregion
- #region " Property "
- public ArrayList arDataSource
- {
- get { return _arDataSource; }
- set { _arDataSource = value; }
- }
- public string HeatProcessNo
- {
- get { return _heatProcessNo; }
- set { _heatProcessNo = value; }
- }
- public DataTable dtMaterial
- {
- get { return _dtMaterial; }
- set { _dtMaterial = value; }
- }
- #endregion
- #region " Construct Function "
- public frmBaseSite()
- {
- InitializeComponent();
- _szElementSymbol = new string[] { "TYPESYMBOL", "C", "Si", "Mn", "P", "S", "V", "Cr", "Mo", "Ti", "As" };//,"Cu","Ni"};
- _szAdditive = new string[] { "项目名", "设定范围", "实际值", "类型", "岗位", "提示" };
- _szTemperature = new string[] { "项目名", "设定范围", "实际值", "提示" };
- }
- #endregion
- #region " Virtual Method "
- protected virtual void GenerateTableFrame()
- {
- //#region " 生成化学成分表 "
- //_dtCraftElement = new DataTable("CraftElement");
- DataColumn myDataColumn = null;
- //for (int i = 0; i < _szElementSymbol.Length; i++)
- //{
- // myDataColumn = new DataColumn();
- // myDataColumn.DataType = System.Type.GetType("System.String");
- // myDataColumn.ColumnName = _szElementSymbol[i];
- // if (i == 0)
- // myDataColumn.Caption = "化验类型";
- // else
- // myDataColumn.Caption = _szElementSymbol[i];
- // _dtCraftElement.Columns.Add(myDataColumn);
- //}
- //ulgridElement.DataSource = _dtCraftElement;
- //for (int i = 0; i < _szElementSymbol.Length; i++)
- //{
- // if (i == 0)
- // ulgridElement.DisplayLayout.Bands[0].Columns[i].Width = 85;
- // else
- // ulgridElement.DisplayLayout.Bands[0].Columns[i].Width = 67;
- // ulgridElement.DisplayLayout.Bands[0].Columns[i].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- //}
- ///#endregion
- #region " 生成过程添加料表 "
- _dtAdditive = new DataTable("Additive");
- for (int i = 0; i < _szAdditive.Length; i++)
- {
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = _szAdditive[i];
- myDataColumn.Caption = _szAdditive[i];
- _dtAdditive.Columns.Add(myDataColumn);
- }
- ulgridMaterial.DataSource = _dtAdditive;
- for (int i = 0; i < _szAdditive.Length; i++)
- {
- if (i <= 1)
- ulgridMaterial.DisplayLayout.Bands[0].Columns[i].Width = 100;
- else if (i == _szAdditive.Length - 1)
- ulgridMaterial.DisplayLayout.Bands[0].Columns[i].Width = 50;
- else
- ulgridMaterial.DisplayLayout.Bands[0].Columns[i].Width = 60;
- ulgridMaterial.DisplayLayout.Bands[0].Columns[i].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- }
- ulgridMaterial.DisplayLayout.Bands[0].Columns["岗位"].MergedCellStyle = Infragistics.Win.UltraWinGrid.MergedCellStyle.Always;
- ulgridMaterial.DisplayLayout.Bands[0].Columns["岗位"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Center;
- ulgridMaterial.DisplayLayout.Bands[0].Columns["岗位"].CellAppearance.TextVAlign = Infragistics.Win.VAlign.Middle;
- #endregion
- #region " 生成温度表 "
- _dtTemperature = new DataTable("temperature");
- for (int i = 0; i < _szTemperature.Length; i++)
- {
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = _szTemperature[i];
- myDataColumn.Caption = _szTemperature[i];
- _dtTemperature.Columns.Add(myDataColumn);
- }
- ulgridTempInfo.DataSource = _dtTemperature;
- for (int i = 0; i < _szTemperature.Length; i++)
- {
- if (i <= 1)
- ulgridTempInfo.DisplayLayout.Bands[0].Columns[i].Width = 90;
- else if (i == _szTemperature.Length - 1)
- ulgridTempInfo.DisplayLayout.Bands[0].Columns[i].Width = 60;
- else
- ulgridTempInfo.DisplayLayout.Bands[0].Columns[i].Width = 70;
- ulgridTempInfo.DisplayLayout.Bands[0].Columns[i].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- }
- #endregion
- }
- /// <summary>
- /// 填充界面数据
- /// </summary>
- protected virtual void FillData()
- {
- JOB_CRAFTINFO plan = new JOB_CRAFTINFO();
- if (_arDataSource == null || _heatProcessNo == "")
- return;
- string szSmeltId = CStaticMethod.getSmeltingID(_heatProcessNo);
- if (_heatProcessNo.Substring(0, 1) == "V") szSmeltId = "V" + szSmeltId;
- Hashtable htCraft = null;
- string strSC = ""; //岗位条件
- htCraft = (Hashtable)_arDataSource[0];
- if (htCraft != null)
- {
- //提钒转炉信息处理
- if (_heatProcessNo.Substring(0, 1) == "V")
- {
- foreach (DictionaryEntry de in htCraft)
- {
- JOB_CRAFTINFO Job_CraftInfo = (JOB_CRAFTINFO)htCraft[de.Key];
- if (Job_CraftInfo.VANHEATNO == szSmeltId)
- {
- szSmeltId = Job_CraftInfo.HEATNO;
- plan = (JOB_CRAFTINFO)htCraft[szSmeltId];
- break; ;
- }
- }
- }
- else
- plan = (JOB_CRAFTINFO)htCraft[szSmeltId]; //炼钢转炉
- if (plan != null)
- {
- //设置顶部信息
- SetTopTittleInfo(plan);
- //温度标准代码
- switch (_heatProcessNo.Substring(0, 1))
- {
- case "V":
- strTemperature = "('L02004')"; //转炉终点温度
- strSC = " and c.name_ = 'V'";
- break;
- case "C":
- strTemperature = "('L02004')"; //转炉终点温度
- strSC = " and c.name_ = 'C'";
- break;
- case "D":
- strTemperature = "('L02004','L02001','L02004')"; //转炉终点温度,吹氩站进站(L02013),出站温度(L02012)
- strSC = " and (c.name_ = 'D' or c.name_='C') ";
- break;
- case "E":
- strTemperature = "('L02004','L02004','L02001','L02004')"; //转炉出站温度,吹氩出站温度,精炼炉进站,出站温度
- strSC = " and (c.name_ = 'D' or c.name_='C' or c.name_='E') ";
- break;
- case "G":
- strTemperature = "('L02004','L02004','L02004','L02007','L02008','L02009')"; ///转炉出站温度,吹氩出站温度,精炼炉出站温度,中包温度(开浇,连浇,上台)
- strSC = " and (c.name_ = 'D' or c.name_='C' or c.name_='E' or c.name_='G') ";
- break;
- }
- //获取化学成分,温度标准
- //GetStandardElement(strSC, plan.STD_CODE,
- // "('C','Si','Mn','P','S','Als','Al','Cr','Mo','Ti','Nb','B','V','Cu','Ca')", strTemperature);
- _dtCraftStdVal = CStaticMethod.GetJobStandardTemp(ob,plan.STEEL);
- _dtCraftStdVal2 = CStaticMethod.GetJobStandardTemp2(ob, _heatProcessNo.Substring(5, 10), plan.STEEL);
- //物料消耗标准
- _dtCraftMtrVal = CStaticMethod.GetJobStandardMateriel(ob, plan.STEEL);
- }
- }
- ///////////////////////////
- string strSteel = "", strCast_ID = "";
- string strM = "";
- if (plan != null)
- {
- strSteel = plan.STEEL;
- strCast_ID = plan.V_HEAT_ID;
- }
- SetCraftElementInfo(szSmeltId, _heatProcessNo.Substring(0, 3), strSteel, strCast_ID);
- }
- /// <summary>
- /// 获取化学成分检验号
- /// </summary>
- /// <param name="strMolirnSource"></param>
- /// <returns></returns>
- protected virtual string GetMolirnSource(string strMolirnSource)
- {
- string szOut = "";
- string strCheckNo = "";
- strCheckNo = "";//hengxing (string)Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("lgJobMgt",
- // "Core.LgMes.Server.lgJobMgt.classTrackObjectInfo", "GetMolirnSource", new object[] { strMolirnSource }, out szOut);
- if (szOut == "")
- return strCheckNo;
- return strCheckNo;
- }
- /// <summary>
- /// 填充过程添加料信息数据
- /// </summary>
- protected virtual void SetAdditiveInfo(string szHashName)
- {
- if (string.IsNullOrEmpty(HeatProcessNo))
- return;
- Hashtable htAdditive = GetHashtableForSite(szHashName);
-
- if (htAdditive != null)
- {
- Hashtable htRead = htAdditive[HeatProcessNo] as Hashtable;
- if (htRead != null)
- {
- string key = CStaticMethod.getSmeltingID(HeatProcessNo);
- if (HeatProcessNo.Substring(0, 1) == "V") key = "V" + key;
- string strStationCode = HeatProcessNo.Substring(0, 3);
- int intCount = 0;
- foreach(DictionaryEntry de in htRead)
- {
- STL_COMMON_ADDITIVES objAddi = (STL_COMMON_ADDITIVES)htRead[de.Key];
- // 这里只显示料仓自动投料的物料名称 JMTYPE 为 1 自动投料 2 手工投料
- if (objAddi != null && objAddi.HEATNO == key && objAddi.JMTYPE == "1")
- {
- AppendTableRows(ref _dtAdditive);
- SetAdditiveGridData(intCount, objAddi, ref _dtAdditive);
- string strTpm = "";
- switch (objAddi.STATIONCODE.Substring(0, 1))
- {
- case "C":
- strTpm = "LG0202";
- break;
- case "D":
- strTpm = "LG0302";
- break;
- case "E":
- strTpm = "LG0402";
- break;
- case "F":
- strTpm = "LG0502";
- break;
- }
- //获取标准值并进行对比
- CStaticMethod.CompareStandard(_dtCraftMtrVal, ref _dtAdditive, strTpm+objAddi.MATERIELTYPE+objAddi.MATERIELCODE, ref ulgridMaterial, intCount, objAddi.STATIONCODE.Substring(0, 1));
- intCount = intCount + 1;
- }
- }
- ulgridMaterial.DisplayLayout.Bands[0].Columns["岗位"].SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Ascending;
- }
- }
- }
- /// <summary>
- /// 填充温度信息数据
- /// </summary>
- //protected virtual void SetTemperatureInfo(string szHashName)
- //{
- // if (string.IsNullOrEmpty(HeatProcessNo))
- // return;
- // Hashtable htTempr = GetHashtableForSite(szHashName);
- // if (htTempr != null)
- // {
- // Hashtable htDetail = htTempr[HeatProcessNo] as Hashtable;
- // if (htDetail != null)
- // {
- // string key = CStaticMethod.getSmeltingID(HeatProcessNo);
- // if (HeatProcessNo.Substring(0, 1) == "V") key = "V" + key;
- // int intCount = 0;
- //
- // //foreach(DictionaryEntry de in htDetail)
- // //{
- // // STL_COMMON_SAMPLING objTempr = (STL_COMMON_SAMPLING)htDetail[de.Key];
- // // if (objTempr != null && objTempr.HEATNO == key && (objTempr.SAMPLINGNAME == "TEMPERATURE" || objTempr.SAMPLINGNAME == "TEMPERATURE1"
- // // || objTempr.SAMPLINGNAME == "TEMPERATURE2" || objTempr.SAMPLINGNAME == "TUNDISHTEMP1" || objTempr.SAMPLINGNAME == "TUNDISHTEMP2"))
- // // {
- // // AppendTableRows(ref _dtTemperature);
- // // //SetTemperatureGridData(intCount, objTempr, ref _dtTemperature); //显示实时温度值
- // // string strTpm = "";
- // // switch (objTempr.STATIONCODE.Substring(0, 1))
- // // {
- // // case "C":
- // // strTpm = "LG0201002";
- // // break;
- // // case "D":
- // // strTpm = "LG0301002";
- // // break;
- // // case "E":
- // // strTpm = "LG0401002";
- // // break;
- // // case "F":
- // // strTpm = "LG0501002";
- // // break;
- // // case "G":
- // // strTpm = "LG0601002";
- // // break;
- // // case "I":
- // // strTpm = "LG0701002";
- // // break;
- // // }
- // // //获取标准值并进行对比
- // // //CStaticMethod.CompareStandard(_dtCraftStdVal, ref _dtTemperature, strTpm, ref ulgridTempInfo, intCount, objTempr.STATIONCODE.Substring(0, 1));
- // // CStaticMethod.CompareStandard2(_dtCraftStdVal2, ref _dtTemperature, strTpm, ref ulgridTempInfo, intCount, objTempr.STATIONCODE.Substring(0, 1));
- // // intCount++;
- // // }
- // //}
- // GetTemperature(HeatProcessNo.Substring(5, 10));//2015-07-10
- // }
- // }
- //}
- protected virtual void SetTemperatureInfo(string szHashName)
- {
- if (HeatProcessNo !="")
- {
- GetTemperature(HeatProcessNo.Substring(5, 10));
- }
- for (int i = 0; i < _dtTemperature.Rows.Count; i++)
- {
- string strStion = "";
- string strstation = _dtTemperature.Rows[i]["项目名"].ToString();
- if (strstation !="")
- {
- strstation = strstation.Substring(0,3);
- switch (strstation)
- {
- case "BOF":
- strStion = "C";
- break;
- case "CAS":
- strStion = "D";
- break;
- case "LFS":
- strStion = "E";
- break;
- case "RHS":
- strStion = "F";
- break;
- case "VDS":
- strStion = "I";
- break;
- case "CCM":
- strStion = "G";
- break;
- }
- CStaticMethod.CompareStandard2(_dtCraftStdVal2, ref _dtTemperature, strStion, ref ulgridTempInfo, i, strstation);
- }
-
- }
- }
- protected virtual void GetTemperature(string HeatProcessNo)
- {
- DataTable bof = ScmLiquidusTemp.BofOptinfo(HeatProcessNo, this.ob);
- if (bof.Rows.Count != 0)
- SetDtTemperature(bof, "BOF");
- DataTable cas = ScmLiquidusTemp.CasOptinfo(HeatProcessNo, this.ob);
- if (cas.Rows.Count != 0)
- SetDtTemperature(cas, "CAS");
- DataTable lfs = ScmLiquidusTemp.LfsOptinfo(HeatProcessNo, this.ob);
- if (lfs.Rows.Count != 0)
- SetDtTemperature(lfs, "LFS");
- DataTable rhs = ScmLiquidusTemp.RhsOptinfo(HeatProcessNo, this.ob);
- if (rhs.Rows.Count != 0)
- SetDtTemperature(rhs, "RHS");
- DataTable vds = ScmLiquidusTemp.VdsOptinfo(HeatProcessNo, this.ob);
- if (vds.Rows.Count != 0)
- SetDtTemperature(vds, "VDS");
- DataTable ccm = ScmLiquidusTemp.CcmOptinfo(HeatProcessNo, this.ob);
- if (ccm.Rows.Count != 0)
- SetDtTemperature(ccm, "CCM");
-
- }
- protected virtual void SetDtTemperature(DataTable dt, string station)
- {
- try
- {
- string arbtempt = "";//出站温度
- string arftempt = "";//进站温度
- if (station == "BOF" || station == "CCM")
- {
- if (station == "BOF")
- {
- arbtempt = dt.Rows[0]["ARBTEMPT"].ToString();
- if (arbtempt != "")
- {
- DataRow row = _dtTemperature.NewRow();//.NowRow();
- row["项目名"] = station + "放钢温度";
- row["实际值"] = arbtempt;
- row["提示"] = "√";
- _dtTemperature.Rows.Add(row);
- }
- }
- if (station == "CCM")
- {
- arftempt = dt.Rows[0]["ARFTEMPT"].ToString();
- if (arftempt != "")
- {
- DataRow row = _dtTemperature.NewRow();//.NowRow();
- row["项目名"] = station + "平台温度";
- row["实际值"] = arftempt;
- row["提示"] = "√";
- _dtTemperature.Rows.Add(row);
- }
- }
- }
- else
- {
- if (station == "LFS")
- {
- arftempt = dt.Rows[0]["ARRIVETEMPT"].ToString();
- arbtempt = dt.Rows[0]["LEAVETEMPT"].ToString();
- }
- else if (station == "CAS")
- {
- arftempt = dt.Rows[0]["ARFTEMPT"].ToString();
- arbtempt = dt.Rows[0]["ARBTEMPT"].ToString();
- }
- else
- {
- arftempt = dt.Rows[0]["ARFTEMPT"].ToString();
- arbtempt = dt.Rows[0]["ARBTEMPT"].ToString();
- }
- if (arftempt != "")
- {
- DataRow row = _dtTemperature.NewRow();//.NowRow();
- row["项目名"] = station + "到站温度";
- row["实际值"] = arftempt;
- row["提示"] = "√";
- _dtTemperature.Rows.Add(row);
- }
- if (arbtempt != "")
- {
- DataRow row1 = _dtTemperature.NewRow();
- row1["项目名"] = station + "出站温度";
- row1["实际值"] = arbtempt;
- row1["提示"] = "√";
- _dtTemperature.Rows.Add(row1);
- }
- }
- }
- catch { }
- }
- /// <summary>
- /// 填充连铸设备采样数据(方坯)
- /// </summary>
- protected virtual void SetFCcmDevSampInfo(string szScwName, string szSmillName)
- {
- if (string.IsNullOrEmpty(HeatProcessNo))
- return;
- Hashtable htScw = GetHashtableForSite(szScwName); // 拉速、配水数据
- Hashtable htSmill = GetHashtableForSite(szSmillName); // 电磁搅拌数据
- if (htScw != null)
- {
- Hashlist list = htScw[HeatProcessNo] as Hashlist;
- if (list != null)
- {
- string key = HeatProcessNo.Substring(HeatProcessNo.Length - 8);
- for (int i = 0; i < list.Count; i++)
- {
- JOB_CCM_SCWSAMPLING objScw = (JOB_CCM_SCWSAMPLING)list[i];
- if (objScw != null && objScw.HEATNO == key)
- {
- try
- {
- SetFCcmScwSampGridData(objScw, ref _dtDeviceState);
- }
- catch { }
- }
- }
- }
- }
- if (htSmill != null)
- {
- Hashlist list = htSmill[HeatProcessNo] as Hashlist;
- if (list != null)
- {
- string key = HeatProcessNo.Substring(HeatProcessNo.Length - 8);
- for (int i = 0; i < list.Count; i++)
- {
- JOB_CCM_SMILLSAMPLING objSmill = (JOB_CCM_SMILLSAMPLING)list[i];
- if (objSmill != null && objSmill.HEATNO == key)
- {
- try
- {
- SetFCcmSmillSampGridData(objSmill, ref _dtDeviceState);
- }
- catch { }
- }
- }
- }
- }
- }
- /// <summary>
- /// 填充连铸设备采样数据(板坯)
- /// </summary>
- protected virtual void SetBCcmDevSampInfo(string szScwName, string szSmillName)
- {
- if (string.IsNullOrEmpty(HeatProcessNo))
- return;
- Hashtable htBcw = GetHashtableForSite(szScwName); // 拉速、配水数据
-
- if (htBcw != null)
- {
-
- Hashtable list = htBcw[HeatProcessNo] as Hashtable;
- if (list != null)
- {
- CoreFS.CA06.FrmBase frm = new FrmBase();
- frm.ob = ob;
- DataTable dtSampInfo = frm.ConvertToDataTable(list[HeatProcessNo.Substring(1, 2)] as IList);
- if (dtSampInfo.Rows.Count==0) return;
- string key = HeatProcessNo.Substring(HeatProcessNo.Length - 10);
- for (int i = 0; i < list.Count; i++)
- {
- //1#铸机
- if (HeatProcessNo.Substring(2, 1) == "1")
- {
- if (dtSampInfo != null && dtSampInfo.Rows[0]["HEATNO"].ToString() == key)
- {
- try
- {
- SetBCcmF1SampGridData(dtSampInfo, ref crastallorTable, ref coolWaterTable);
-
- }
- catch { }
- }
- }
- //2#铸机
- if (HeatProcessNo.Substring(2, 1) == "2")
- {
- if (dtSampInfo != null && dtSampInfo.Rows[0]["HEATNO"].ToString() == key)
- {
- try
- {
- SetBCcmF2SampGridData(dtSampInfo, ref crastallorTable, ref coolWaterTable);
- }
- catch { }
- }
- }
- //3#铸机
- if (HeatProcessNo.Substring(2, 1) == "3")
- {
- if (dtSampInfo != null && dtSampInfo.Rows[0]["HEATNO"].ToString() == key)
- {
- try
- {
- SetBCcmF3SampGridData(dtSampInfo, ref crastallorTable);
- }
- catch { }
- }
- }
- ////4#铸机
- ////if (HeatProcessNo.Substring(2, 1) == "4")
- ////{
- //// JOB_CCM_F4SAMPLING objBcw = (JOB_CCM_F4SAMPLING)list[i];
- //// if (objBcw != null && objBcw.HEATNO == key)
- //// {
- //// try
- //// {
- //// SetBCcmF4SampGridData(objBcw, ref crastallorTable, ref coolWaterTable);
- //// }
- //// catch { }
- //// }
- ////}
- }
- }
- }
- }
- #endregion
- #region " Commonly Function "
- /// <summary>
- /// 设置Grid的卡片显示形式
- /// </summary>
- /// <param name="uGrid"></param>
- protected void SetGridCardView(ref Infragistics.Win.UltraWinGrid.UltraGrid uGrid, int nSize)
- {
- uGrid.DisplayLayout.Override.BorderStyleCardArea = Infragistics.Win.UIElementBorderStyle.None;
- uGrid.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Etched;
- uGrid.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.None;
- uGrid.DisplayLayout.Override.BorderStyleHeader = Infragistics.Win.UIElementBorderStyle.None;
- Infragistics.Win.UltraWinGrid.UltraGridBand band = uGrid.DisplayLayout.Bands[0];
- band.CardSettings.CardScrollbars = Infragistics.Win.UltraWinGrid.CardScrollbars.None;
- band.CardSettings.ShowCaption = false;
- band.CardSettings.Style = Infragistics.Win.UltraWinGrid.CardStyle.StandardLabels;
- band.CardView = true;
- band.UseRowLayout = true;
- int i = 0, j = 1, k = 1;
- foreach (Infragistics.Win.UltraWinGrid.UltraGridColumn col in uGrid.DisplayLayout.Bands[0].Columns)
- {
- //col.RowLayoutColumnInfo.AllowCellSizing = Infragistics.Win.UltraWinGrid.RowLayoutSizing.Default;
- //col.RowLayoutColumnInfo.AllowLabelSizing = Infragistics.Win.UltraWinGrid.RowLayoutSizing.Default;
- //col.RowLayoutColumnInfo.ActualCellSize = new System.Drawing.Size(400, 0);
- col.Header.VisiblePosition = i++;
- if (i <= 4)
- {
- col.RowLayoutColumnInfo.OriginX = 0;
- col.RowLayoutColumnInfo.OriginY = i * 2;
- }
- else if (i > 4 && i <= 8)
- {
- col.RowLayoutColumnInfo.OriginX = 2;
- col.RowLayoutColumnInfo.OriginY = j * 2;
- j++;
- }
- else
- {
- col.RowLayoutColumnInfo.OriginX = 4;
- col.RowLayoutColumnInfo.OriginY = k * 2;
- k++;
- }
- //col.RowLayoutColumnInfo.SpanY = 200;
- col.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(100, 0);
- col.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(100, 0);
- }
- }
- protected override void OnDeactivate(EventArgs e)
- {
- base.OnDeactivate(e);
- this.Close();
- }
- /// <summary>
- ///
- /// </summary>
- /// <param name="szKey">Job, Additive, Sampling</param>
- /// <returns></returns>
- protected Hashtable GetHashtableForSite(string szKey)
- {
- if (arDataSource.Count < 3)
- return null;
- Hashtable ht = (Hashtable)arDataSource[2];
-
- if (ht != null)
- {
- ArrayList ar = (ArrayList)ht[szKey];
- if (ar != null)
- {
- Hashtable hab;
- for (int i = 0; i < ar.Count; i++)
- {
- hab = ar[i] as Hashtable;
- if (hab.Contains(HeatProcessNo))
- {
- return hab;
- }
- }
- }
- }
- return null;
- }
- /// <summary>
- /// 设置界面顶端数据
- /// </summary>
- private void SetTopTittleInfo(JOB_CRAFTINFO objPlan)
- {
- if (objPlan == null)
- return;
- if (_heatProcessNo.Substring(0, 1) == "V")
- ulblRLH.Text = objPlan.VANHEATNO;
- else
- ulblRLH.Text = objPlan.HEATNO;
- ulblJHGZ.Text = objPlan.STEEL;
- string[] potno=new string[]{"1","2","3","6","8","12","13","15","18","25","26","28","29","31","32","36"};
- if (Array.IndexOf<string>(potno, objPlan.SENDTOOLID) != -1)
- {
- ulblGBH.Text = objPlan.SENDTOOLID + "/无碳包";
- }
- else
- ulblGBH.Text = objPlan.SENDTOOLID;
- ulblGBDJ.Text = objPlan.SENDGRADE;
-
- ulblGBBK.Text = objPlan.INSTANCE;
- ulblZYLX.Text = ConvertJobRoute(objPlan.FACT_ROUTE);
- ulblZYLX.Text = ConvertJobRoute(objPlan.FACT_ROUTE);
- ulblGDH.Text = objPlan.ORD_GON_ID;
- ulblWLMS.Text = objPlan.MATERIELDEPICT;
- ulblGYLX.Text = CStaticMethod.analysPlan_Lines(objPlan.PLAN_LINES);
- ulblGSPZ.Text = objPlan.GSPZ;
- ulblSTEELPASS.Text = objPlan.STEELPASS;
- ulblTAPPINGENDTIME.Text = objPlan.TAPPINGENDTIME;
- ulblBALELEAVEWGTPASS.Text = objPlan.BALELEAVEWGTPASS;
- ulblSEDATIONTIME.Text = objPlan.SEDATIONTIME;
- ulblISADDTOP.Text = objPlan.INCLUSION;//钢包加盖改为夹杂物标准 20210802 jiangxin
- }
- /// <summary>
- /// 填充化学成分信息数据
- /// </summary>
- private void SetCraftElementInfo(string _smeltingID, string _DEVICE_POS,string strSteel,string strCast_ID)
- {
- string strM = "";
- try
- {
- // Hashtable htJob = GetHashtableForSite("BofJob");
- DataTable dtJob = (DataTable)arDataSource[3];
- if (dtJob != null)
- {
- if (dtJob.Rows.Count > 0 && _DEVICE_POS.Substring(0,1)=="C")
- strM = dtJob.Rows[0]["MOLIRNSOURCE"].ToString();
- }
- ucChemelEment1.ob = ob;
- ucChemelEment1.GetCraftEleInfo(_smeltingID, _DEVICE_POS, "S", strM);
- if (strSteel.Length > 0)
- ucChemelEment1.GetStandardElement(_smeltingID);
- //ucChemelEment1.GetStandardElementBySteelCode(strSteel);
-
- ucChemelEment1.FillCraftElement();
- ////int nRows = 0;
- //CraftElement objElem = (CraftElement)arDataSource[1];
- //string szSmelt = "";
- //string strStationCode = "";
- //szSmelt = HeatProcessNo.Substring(HeatProcessNo.Length - 8);
- //if (HeatProcessNo.Substring(0, 1) == "V") szSmelt = "V" + szSmelt;
- //strStationCode = HeatProcessNo.Substring(0, 1);
- //if (objElem == null || szSmelt == "")
- // return;
- //int i = 0;
- //#region " C标准"
- //if (_dtEleStd != null && this._dtEleStd.Rows.Count > 0)
- //{
- // AppendTableRows(ref _dtCraftElement);
- // for (int j = 0; j < this._dtEleStd.Rows.Count; j++)
- // {
- // DataRow dr = this._dtEleStd.Rows[j];
- // SetStandardElemData(i, dr, ref _dtCraftElement);
- // }
- // i++;
- //}
- //#endregion
- //#region " 实时值"
- //for (int j = 0; j < objElem.hList.Count; j++)
- //{
- // string strSC = ""; //化学成分岗位信息
- // JOB_CHEMELEMENT obj = (JOB_CHEMELEMENT)objElem.hList[j];
- // strSC = obj.CHECKNO.Substring(obj.CHECKNO.IndexOf("_") + 1, 1);
- // if (obj.HEATNO == szSmelt && strStationCode == strSC)
- // {
- // AppendTableRows(ref _dtCraftElement);
- // SetCraftElemGridData(i, obj, obj.CHECKNO, ref _dtCraftElement);
- // i++;
- // }
- //}
- //#endregion
- }
- catch (Exception ex)
- {
- string Msg = ex.Message;
- }
- }
- protected void AppendTableRows(ref DataTable ATable)
- {
- string[] sTmp = new string[ATable.Columns.Count];
- ATable.Rows.Add(sTmp);
- }
- protected void SetAdditiveGridData(int row, STL_COMMON_ADDITIVES obj, ref DataTable dt)
- {
- try
- {
- DataRow[] rows;
- string szName = "";
- if (_dtMaterial != null)
- {
- rows = _dtMaterial.Select(" MATERIELCODE = '" + obj.MATERIELCODE + "' and MATERIELTYPE = '" + obj.MATERIELTYPE + "'");
- szName = (rows.Length > 0) ? rows[0]["MATERIELFORSHORT"].ToString() : "";
- }
- dt.Rows[row]["项目名"] = szName;
- dt.Rows[row]["设定范围"] = "";
- dt.Rows[row]["实际值"] = obj.JMWGT.ToString();
- dt.Rows[row]["类型"] = obj.MATERIELTYPE == "FL" ? "辅料" : (obj.MATERIELTYPE == "HJ" ? "合金" : (obj.MATERIELTYPE == "GT"?"钢铁料":"喂丝"));
- dt.Rows[row]["岗位"] = obj.STATIONCODE.Substring(0, 1) == "C" ? "转炉" :
- (obj.STATIONCODE.Substring(0, 1) == "D" ? "吹氩" : (obj.STATIONCODE.Substring(0, 1) == "E" ? "精炼炉" : (obj.STATIONCODE.Substring(0,1)=="F"?"RH炉":"")));
- dt.Rows[row]["提示"] = "√";
- }
- catch { }
- }
- protected void SetTemperatureGridData(int row, STL_COMMON_SAMPLING obj, ref DataTable dt)
- {
- try
- {
- dt.Rows[row]["项目名"] = obj.STATIONCODE.Substring(0, 1) == "C" ? "转炉温度" : (obj.STATIONCODE.Substring(0, 1) == "D" ? "吹氩温度" :
- (obj.STATIONCODE.Substring(0, 1) == "E" ? "精炼炉温度" :(obj.STATIONCODE.Substring(0, 1)=="F"?"RH炉温度":
- (obj.STATIONCODE.Substring(0, 1) =="I" ? "VD炉温度":"连铸温度"))));
- dt.Rows[row]["设定范围"] = "";
- dt.Rows[row]["实际值"] = obj.SAMPLINGVALUE.ToString();
- dt.Rows[row]["提示"] = "√";
- }
- catch { }
- }
- protected void SetFCcmScwSampGridData(JOB_CCM_SCWSAMPLING obj, ref DataTable dt)
- {
- if (dt == null)
- return;
- #region "设备实时值"
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- switch (i)
- {
- case 0:
- {
- dt.Rows[i]["拉速设"] = "";
- dt.Rows[i]["拉速"] = obj.S1SPEED.ToString();
- dt.Rows[i]["I区水设"] = "";
- dt.Rows[i]["I区水"] = obj.S1TWPLUX.ToString();
- dt.Rows[i]["II区水设"] = "";
- dt.Rows[i]["II区水"] = obj.S1TWPLUX1.ToString();
- dt.Rows[i]["Ⅲ区水设"] = "";
- dt.Rows[i]["Ⅲ区水"] = obj.S1TWPLUX2.ToString();
- dt.Rows[i]["Ⅳ区水设"] = "";
- dt.Rows[i]["Ⅳ区水"] = obj.S1TWPLUX3.ToString();
- }
- break;
- case 1:
- {
- dt.Rows[i]["拉速设"] = "";
- dt.Rows[i]["拉速"] = obj.S2SPEED.ToString();
- dt.Rows[i]["I区水设"] = "";
- dt.Rows[i]["I区水"] = obj.S2TWPLUX.ToString();
- dt.Rows[i]["II区水设"] = "";
- dt.Rows[i]["II区水"] = obj.S2TWPLUX1.ToString();
- dt.Rows[i]["Ⅲ区水设"] = "";
- dt.Rows[i]["Ⅲ区水"] = obj.S2TWPLUX2.ToString();
- dt.Rows[i]["Ⅳ区水设"] = "";
- dt.Rows[i]["Ⅳ区水"] = obj.S2TWPLUX3.ToString();
- }
- break;
- case 2:
- {
- dt.Rows[i]["拉速设"] = "";
- dt.Rows[i]["拉速"] = obj.S3SPEED.ToString();
- dt.Rows[i]["I区水设"] = "";
- dt.Rows[i]["I区水"] = obj.S3TWPLUX.ToString();
- dt.Rows[i]["II区水设"] = "";
- dt.Rows[i]["II区水"] = obj.S3TWPLUX1.ToString();
- dt.Rows[i]["Ⅲ区水设"] = "";
- dt.Rows[i]["Ⅲ区水"] = obj.S3TWPLUX2.ToString();
- dt.Rows[i]["Ⅳ区水设"] = "";
- dt.Rows[i]["Ⅳ区水"] = obj.S3TWPLUX3.ToString();
- }
- break;
- case 3:
- {
- dt.Rows[i]["拉速设"] = "";
- dt.Rows[i]["拉速"] = obj.S4SPEED.ToString();
- dt.Rows[i]["I区水设"] = "";
- dt.Rows[i]["I区水"] = obj.S4TWPLUX.ToString();
- dt.Rows[i]["II区水设"] = "";
- dt.Rows[i]["II区水"] = obj.S4TWPLUX1.ToString();
- dt.Rows[i]["Ⅲ区水设"] = "";
- dt.Rows[i]["Ⅲ区水"] = obj.S4TWPLUX2.ToString();
- dt.Rows[i]["Ⅳ区水设"] = "";
- dt.Rows[i]["Ⅳ区水"] = obj.S4TWPLUX3.ToString();
- }
- break;
- case 4:
- {
- dt.Rows[i]["拉速设"] = "";
- dt.Rows[i]["拉速"] = obj.S5SPEED.ToString();
- dt.Rows[i]["I区水设"] = "";
- dt.Rows[i]["I区水"] = obj.S5TWPLUX.ToString();
- dt.Rows[i]["II区水设"] = "";
- dt.Rows[i]["II区水"] = obj.S5TWPLUX1.ToString();
- dt.Rows[i]["Ⅲ区水设"] = "";
- dt.Rows[i]["Ⅲ区水"] = obj.S5TWPLUX2.ToString();
- dt.Rows[i]["Ⅳ区水设"] = "";
- dt.Rows[i]["Ⅳ区水"] = obj.S5TWPLUX3.ToString();
- }
- break;
- default:
- break;
- }
- }
- #endregion
- }
- protected void SetFCcmSmillSampGridData(JOB_CCM_SMILLSAMPLING obj, ref DataTable dt)
- {
- if (dt == null)
- return;
- #region "设备实时值"
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- switch (i)
- {
- case 0:
- {
- dt.Rows[i]["水温差(晶)"] = obj.S1CETEMPT.ToString();
- dt.Rows[i]["水流量(晶)"] = obj.S1CEWRTRPLUX.ToString();
- dt.Rows[i]["振动频率(设)"] = "";
- dt.Rows[i]["振动频率"] = obj.S1CEVFRQNCY.ToString();
- dt.Rows[i]["提示"] = "√";
- }
- break;
- case 1:
- {
- dt.Rows[i]["水温差(晶)"] = obj.S2CETEMPT.ToString();
- dt.Rows[i]["水流量(晶)"] = obj.S2CEWRTRPLUX.ToString();
- dt.Rows[i]["振动频率(设)"] = "";
- dt.Rows[i]["振动频率"] = obj.S2CEVFRQNCY.ToString();
- dt.Rows[i]["提示"] = "√";
- }
- break;
- case 2:
- {
- dt.Rows[i]["水温差(晶)"] = obj.S3CETEMPT.ToString();
- dt.Rows[i]["水流量(晶)"] = obj.S3CEWRTRPLUX.ToString();
- dt.Rows[i]["振动频率(设)"] = "";
- dt.Rows[i]["振动频率"] = obj.S3CEVFRQNCY.ToString();
- dt.Rows[i]["提示"] = "√";
- }
- break;
- case 3:
- {
- dt.Rows[i]["水温差(晶)"] = obj.S4CETEMPT.ToString();
- dt.Rows[i]["水流量(晶)"] = obj.S4CEWRTRPLUX.ToString();
- dt.Rows[i]["振动频率(设)"] = "";
- dt.Rows[i]["振动频率"] = obj.S4CEVFRQNCY.ToString();
- dt.Rows[i]["提示"] = "√";
- }
- break;
- case 4:
- {
- dt.Rows[i]["水温差(晶)"] = obj.S5CETEMPT.ToString();
- dt.Rows[i]["水流量(晶)"] = obj.S5CEWRTRPLUX.ToString();
- dt.Rows[i]["振动频率(设)"] = "";
- dt.Rows[i]["振动频率"] = obj.S5CEVFRQNCY.ToString();
- dt.Rows[i]["提示"] = "√";
- }
- break;
- default:
- break;
- }
- }
- #endregion
- }
- protected void SetBCcmF1SampGridData(DataTable _dtDevSampling, ref DataTable crastallorTable,ref DataTable coolWaterTable)
- {
- #region "设备实时值"
- if (crastallorTable == null || coolWaterTable == null)
- return;
- try
- {
- if (_dtDevSampling.Rows.Count > 0)
- { //1流
- crastallorTable.Rows[0]["拉速"] = _dtDevSampling.Rows[0]["S1CASTSPEED"];
- crastallorTable.Rows[0]["臂重"] = _dtDevSampling.Rows[0]["ARMLADLEAWEIGHT"];
- crastallorTable.Rows[0]["铸坯长度"] = _dtDevSampling.Rows[0]["S1DRAWSTEELLENGTH"];
- crastallorTable.Rows[0]["铸坯模式(头/尾)"] = _dtDevSampling.Rows[0]["S1CASTINGLENGTH"];
- crastallorTable.Rows[0]["窄面右侧水流量"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERFLUX"];
- crastallorTable.Rows[0]["宽面内弧水流量"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERFLUX"];
- crastallorTable.Rows[0]["宽面外弧水流量"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERFLUX"];
- crastallorTable.Rows[0]["窄面左侧水流量"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERFLUX"];
- crastallorTable.Rows[0]["窄面右侧水压力"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERPRES"];
- crastallorTable.Rows[0]["宽面内弧水压力"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERPRES"];
- crastallorTable.Rows[0]["宽面外弧水压力"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERPRES"];
- crastallorTable.Rows[0]["窄面左侧水压力"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERPRES"];
- crastallorTable.Rows[0]["窄面右侧水温差"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERTEMPDIFF"];
- crastallorTable.Rows[0]["宽面内弧水温差"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERTEMPDIFF"];
- crastallorTable.Rows[0]["宽面外弧水温差"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERTEMPDIFF"];
- crastallorTable.Rows[0]["窄面左侧水温差"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERTEMPDIFF"];
- crastallorTable.Rows[0]["结晶器编号"] = _dtDevSampling.Rows[0]["S1CRYSTALCODE"];
- crastallorTable.Rows[0]["拉钢长度"] = _dtDevSampling.Rows[0]["S1CASTINGLENGTH"];
- crastallorTable.Rows[0]["振动台频率"] = _dtDevSampling.Rows[0]["S1CRVIBRATORFREQUENCY"];
- crastallorTable.Rows[0]["进水口温度"] = _dtDevSampling.Rows[0]["S1CRINWATERTEMP"];
- crastallorTable.Rows[0]["窄面右侧出口温度"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERTEMP"];
- crastallorTable.Rows[0]["宽面内弧出口温度"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERTEMP"];
- crastallorTable.Rows[0]["宽面外弧出口温度"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERTEMP"];
- crastallorTable.Rows[0]["窄面左侧出口温度"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERTEMP"];
- crastallorTable.Rows[0]["总压力(晶)"] = _dtDevSampling.Rows[0]["CRYLWATERTOTALPRESSURE"];
- crastallorTable.Rows[0]["总管压力(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALPRESSURE"];
- crastallorTable.Rows[0]["总管压力(设备水)"] = _dtDevSampling.Rows[0]["DEVICEWATERTOTALPRESSURE"];
- crastallorTable.Rows[0]["总管流量(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALFLUX"];
- //2流
- crastallorTable.Rows[1]["拉速"] = _dtDevSampling.Rows[0]["S2CASTSPEED"];
- crastallorTable.Rows[1]["臂重"] = _dtDevSampling.Rows[0]["ARMLADLEBWEIGHT"];
- crastallorTable.Rows[1]["铸坯长度"] = _dtDevSampling.Rows[0]["S2DRAWSTEELLENGTH"];
- crastallorTable.Rows[1]["铸坯模式(头/尾)"] = _dtDevSampling.Rows[0]["S2CASTINGLENGTH"];
- crastallorTable.Rows[1]["窄面右侧水流量"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERFLUX"];
- crastallorTable.Rows[1]["宽面内弧水流量"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERFLUX"];
- crastallorTable.Rows[1]["宽面外弧水流量"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERFLUX"];
- crastallorTable.Rows[1]["窄面左侧水流量"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERFLUX"];
- crastallorTable.Rows[1]["窄面右侧水压力"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERPRES"];
- crastallorTable.Rows[1]["宽面内弧水压力"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERPRES"];
- crastallorTable.Rows[1]["宽面外弧水压力"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERPRES"];
- crastallorTable.Rows[1]["窄面左侧水压力"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERPRES"];
- crastallorTable.Rows[1]["窄面右侧水温差"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERTEMPDIFF"];
- crastallorTable.Rows[1]["宽面内弧水温差"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERTEMPDIFF"];
- crastallorTable.Rows[1]["宽面外弧水温差"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERTEMPDIFF"];
- crastallorTable.Rows[1]["窄面左侧水温差"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERTEMPDIFF"];
- crastallorTable.Rows[1]["结晶器编号"] = _dtDevSampling.Rows[0]["S2CRYSTALCODE"];
- crastallorTable.Rows[1]["拉钢长度"] = _dtDevSampling.Rows[0]["S2CASTINGLENGTH"];
- crastallorTable.Rows[1]["振动台频率"] = _dtDevSampling.Rows[0]["S2CRVIBRATORFREQUENCY"];
- crastallorTable.Rows[1]["进水口温度"] = _dtDevSampling.Rows[0]["S2CRINWATERTEMP"];
- crastallorTable.Rows[1]["窄面右侧出口温度"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERTEMP"];
- crastallorTable.Rows[1]["宽面内弧出口温度"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERTEMP"];
- crastallorTable.Rows[1]["宽面外弧出口温度"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERTEMP"];
- crastallorTable.Rows[1]["窄面左侧出口温度"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERTEMP"];
- crastallorTable.Rows[1]["总压力(晶)"] = _dtDevSampling.Rows[0]["CRYLWATERTOTALPRESSURE"];
- crastallorTable.Rows[1]["总管压力(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALPRESSURE"];
- crastallorTable.Rows[1]["总管压力(设备水)"] = _dtDevSampling.Rows[0]["DEVICEWATERTOTALPRESSURE"];
- crastallorTable.Rows[1]["总管流量(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALFLUX"];
- //二冷水流量
- coolWaterTable.Rows[0]["I足辊左右"] = _dtDevSampling.Rows[0]["S1SEG1WATERNARROWLRFLUX"];
- coolWaterTable.Rows[0]["I内外弧"] = _dtDevSampling.Rows[0]["S1SEG1WATERARCFLUX"];
- coolWaterTable.Rows[0]["II内外弧"] = _dtDevSampling.Rows[0]["S1SEG2WATERARCFLUX"];
- coolWaterTable.Rows[0]["III内弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["III内弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["III外弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["III外弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["IV内弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["IV内弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["IV外弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["IV外弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCMFLUX"];
- //二冷水压力
- coolWaterTable.Rows[1]["I足辊左右"] = _dtDevSampling.Rows[0]["S1SEG1WATERNARROWLRPRES"];
- coolWaterTable.Rows[1]["I内外弧"] = _dtDevSampling.Rows[0]["S1SEG1WATERARCPRES"];
- coolWaterTable.Rows[1]["II内外弧"] = _dtDevSampling.Rows[0]["S1SEG2WATERARCPRES"];
- coolWaterTable.Rows[1]["III内弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["III内弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["III外弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["III外弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["IV内弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["IV内弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["IV外弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["IV外弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[0]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S1SEG9WATERINNERARCFLUX"];
- coolWaterTable.Rows[0]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S1SEG9WATEROUTSIDEARCFLUX"];
- coolWaterTable.Rows[0]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S1SEG10WATERINNERARCFLUX"];
- coolWaterTable.Rows[0]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S1SEG10WATEROUTSIDEARCFLUX"];
- coolWaterTable.Rows[1]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S1SEG9WATERINNERARCPRES"];
- coolWaterTable.Rows[1]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S1SEG9WATEROUTSIDEARCPRES"];
- coolWaterTable.Rows[1]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S1SEG10WATERINNERARCPRES"];
- coolWaterTable.Rows[1]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S1SEG10WATEROUTSIDEARCPRES"];
- //二冷水流量
- coolWaterTable.Rows[2]["I足辊左右"] = _dtDevSampling.Rows[0]["S2SEG1WATERNARROWLRFLUX"];
- coolWaterTable.Rows[2]["I内外弧"] = _dtDevSampling.Rows[0]["S2SEG1WATERARCFLUX"];
- coolWaterTable.Rows[2]["II内外弧"] = _dtDevSampling.Rows[0]["S2SEG2WATERARCFLUX"];
- coolWaterTable.Rows[2]["III内弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCEFLUX"];
- coolWaterTable.Rows[2]["III内弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCMFLUX"];
- coolWaterTable.Rows[2]["III外弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[2]["III外弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[2]["IV内弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCEFLUX"];
- coolWaterTable.Rows[2]["IV内弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCMFLUX"];
- coolWaterTable.Rows[2]["IV外弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[2]["IV外弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S2SEG9WATERINNERARCFLUX"];
- coolWaterTable.Rows[2]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S2SEG9WATEROUTSIDEARCFLUX"];
- coolWaterTable.Rows[2]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S2SEG10WATERINNERARCFLUX"];
- coolWaterTable.Rows[2]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S1SEG10WATEROUTSIDEARCFLUX"];
- //二冷水压力
- coolWaterTable.Rows[3]["I足辊左右"] = _dtDevSampling.Rows[0]["S2SEG1WATERNARROWLRPRES"];
- coolWaterTable.Rows[3]["I内外弧"] = _dtDevSampling.Rows[0]["S2SEG1WATERARCPRES"];
- coolWaterTable.Rows[3]["II内外弧"] = _dtDevSampling.Rows[0]["S2SEG2WATERARCPRES"];
- coolWaterTable.Rows[3]["III内弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCEPRES"];
- coolWaterTable.Rows[3]["III内弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCMPRES"];
- coolWaterTable.Rows[3]["III外弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[3]["III外弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[3]["IV内弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCEPRES"];
- coolWaterTable.Rows[3]["IV内弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCMPRES"];
- coolWaterTable.Rows[3]["IV外弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[3]["IV外弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[3]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCEPRES"];
- coolWaterTable.Rows[3]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCMPRES"];
- coolWaterTable.Rows[3]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[3]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[3]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCEPRES"];
- coolWaterTable.Rows[3]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCMPRES"];
- coolWaterTable.Rows[3]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[3]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[3]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCEPRES"];
- coolWaterTable.Rows[3]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCMPRES"];
- coolWaterTable.Rows[3]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[3]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[3]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCEPRES"];
- coolWaterTable.Rows[3]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCMPRES"];
- coolWaterTable.Rows[3]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[3]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[3]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S2SEG9WATERINNERARCPRES"];
- coolWaterTable.Rows[3]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S2SEG9WATEROUTSIDEARCPRES"];
- coolWaterTable.Rows[3]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S2SEG10WATERINNERARCPRES"];
- coolWaterTable.Rows[3]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S2SEG10WATEROUTSIDEARCPRES"];
-
- coolWaterTable.Rows[0]["2-3区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR2TO3ARCMPRES"];
- coolWaterTable.Rows[0]["3区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR3ARCEPRES"];
- coolWaterTable.Rows[0]["4-8区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR4TO8ARCMPRES"];
- coolWaterTable.Rows[0]["4-8区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR4TO8ARCEPRES"];
- coolWaterTable.Rows[0]["9-10区内外弧压力"] = _dtDevSampling.Rows[0]["S1SEGAIR9TO10ARCPRES"];
- coolWaterTable.Rows[3]["2-3区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR2TO3ARCMPRES"];
- coolWaterTable.Rows[3]["3区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR3ARCEPRES"];
- coolWaterTable.Rows[3]["4-8区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR4TO8ARCMPRES"];
- coolWaterTable.Rows[3]["4-8区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR4TO8ARCEPRES"];
- coolWaterTable.Rows[3]["9-10区内外弧压力"] = _dtDevSampling.Rows[0]["S2SEGAIR9TO10ARCPRES"];
- }
- }
- catch (Exception ex)
- {
- string Msg = ex.Message;
- }
- #endregion
- }
- protected void SetBCcmF2SampGridData(DataTable _dtDevSampling, ref DataTable crastallorTable, ref DataTable coolWaterTable)
- {
- #region "设备实时值"
- if (crastallorTable == null || coolWaterTable == null)
- return;
- try
- {
- if (_dtDevSampling.Rows.Count > 0)
- { //1流
- crastallorTable.Rows[0]["拉速"] = _dtDevSampling.Rows[0]["S1CASTSPEED"];
- crastallorTable.Rows[0]["臂重"] = _dtDevSampling.Rows[0]["ARMLADLEAWEIGHT"];
- crastallorTable.Rows[0]["铸坯长度"] = _dtDevSampling.Rows[0]["S1DRAWSTEELLENGTH"];
- crastallorTable.Rows[0]["铸坯模式(头/尾)"] = _dtDevSampling.Rows[0]["S1CASTINGLENGTH"];
- crastallorTable.Rows[0]["窄面右侧水流量"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERFLUX"];
- crastallorTable.Rows[0]["宽面内弧水流量"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERFLUX"];
- crastallorTable.Rows[0]["宽面外弧水流量"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERFLUX"];
- crastallorTable.Rows[0]["窄面左侧水流量"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERFLUX"];
- crastallorTable.Rows[0]["窄面右侧水压力"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERPRES"];
- crastallorTable.Rows[0]["宽面内弧水压力"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERPRES"];
- crastallorTable.Rows[0]["宽面外弧水压力"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERPRES"];
- crastallorTable.Rows[0]["窄面左侧水压力"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERPRES"];
- crastallorTable.Rows[0]["窄面右侧水温差"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERTEMPDIFF"];
- crastallorTable.Rows[0]["宽面内弧水温差"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERTEMPDIFF"];
- crastallorTable.Rows[0]["宽面外弧水温差"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERTEMPDIFF"];
- crastallorTable.Rows[0]["窄面左侧水温差"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERTEMPDIFF"];
- crastallorTable.Rows[0]["结晶器编号"] = _dtDevSampling.Rows[0]["S1CRYSTALCODE"];
- crastallorTable.Rows[0]["拉钢长度"] = _dtDevSampling.Rows[0]["S1CASTINGLENGTH"];
- crastallorTable.Rows[0]["振动台频率"] = _dtDevSampling.Rows[0]["S1CRVIBRATORFREQUENCY"];
- crastallorTable.Rows[0]["进水口温度"] = _dtDevSampling.Rows[0]["S1CRINWATERTEMP"];
- crastallorTable.Rows[0]["窄面右侧出口温度"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERTEMP"];
- crastallorTable.Rows[0]["宽面内弧出口温度"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERTEMP"];
- crastallorTable.Rows[0]["宽面外弧出口温度"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERTEMP"];
- crastallorTable.Rows[0]["窄面左侧出口温度"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERTEMP"];
- crastallorTable.Rows[0]["总压力(晶)"] = _dtDevSampling.Rows[0]["CRYLWATERTOTALPRESSURE"];
- crastallorTable.Rows[0]["总管压力(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALPRESSURE"];
- crastallorTable.Rows[0]["总管压力(设备水)"] = _dtDevSampling.Rows[0]["DEVICEWATERTOTALPRESSURE"];
- crastallorTable.Rows[0]["总管流量(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALFLUX"];
- //2流
- crastallorTable.Rows[1]["拉速"] = _dtDevSampling.Rows[0]["S2CASTSPEED"];
- crastallorTable.Rows[1]["臂重"] = _dtDevSampling.Rows[0]["ARMLADLEBWEIGHT"];
- crastallorTable.Rows[1]["铸坯长度"] = _dtDevSampling.Rows[0]["S2DRAWSTEELLENGTH"];
- crastallorTable.Rows[1]["铸坯模式(头/尾)"] = _dtDevSampling.Rows[0]["S2CASTINGLENGTH"];
- crastallorTable.Rows[1]["窄面右侧水流量"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERFLUX"];
- crastallorTable.Rows[1]["宽面内弧水流量"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERFLUX"];
- crastallorTable.Rows[1]["宽面外弧水流量"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERFLUX"];
- crastallorTable.Rows[1]["窄面左侧水流量"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERFLUX"];
- crastallorTable.Rows[1]["窄面右侧水压力"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERPRES"];
- crastallorTable.Rows[1]["宽面内弧水压力"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERPRES"];
- crastallorTable.Rows[1]["宽面外弧水压力"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERPRES"];
- crastallorTable.Rows[1]["窄面左侧水压力"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERPRES"];
- crastallorTable.Rows[1]["窄面右侧水温差"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERTEMPDIFF"];
- crastallorTable.Rows[1]["宽面内弧水温差"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERTEMPDIFF"];
- crastallorTable.Rows[1]["宽面外弧水温差"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERTEMPDIFF"];
- crastallorTable.Rows[1]["窄面左侧水温差"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERTEMPDIFF"];
- crastallorTable.Rows[1]["结晶器编号"] = _dtDevSampling.Rows[0]["S2CRYSTALCODE"];
- crastallorTable.Rows[1]["拉钢长度"] = _dtDevSampling.Rows[0]["S2CASTINGLENGTH"];
- crastallorTable.Rows[1]["振动台频率"] = _dtDevSampling.Rows[0]["S2CRVIBRATORFREQUENCY"];
- crastallorTable.Rows[1]["进水口温度"] = _dtDevSampling.Rows[0]["S2CRINWATERTEMP"];
- crastallorTable.Rows[1]["窄面右侧出口温度"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERTEMP"];
- crastallorTable.Rows[1]["宽面内弧出口温度"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERTEMP"];
- crastallorTable.Rows[1]["宽面外弧出口温度"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERTEMP"];
- crastallorTable.Rows[1]["窄面左侧出口温度"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERTEMP"];
- crastallorTable.Rows[1]["总压力(晶)"] = _dtDevSampling.Rows[0]["CRYLWATERTOTALPRESSURE"];
- crastallorTable.Rows[1]["总管压力(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALPRESSURE"];
- crastallorTable.Rows[1]["总管压力(设备水)"] = _dtDevSampling.Rows[0]["DEVICEWATERTOTALPRESSURE"];
- crastallorTable.Rows[1]["总管流量(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALFLUX"];
- //二冷水流量
- coolWaterTable.Rows[0]["I足辊左右"] = _dtDevSampling.Rows[0]["S1SEG1WATERNARROWLRFLUX"];
- coolWaterTable.Rows[0]["I内外弧"] = _dtDevSampling.Rows[0]["S1SEG1WATERARCFLUX"];
- coolWaterTable.Rows[0]["II内外弧"] = _dtDevSampling.Rows[0]["S1SEG2WATERARCFLUX"];
- coolWaterTable.Rows[0]["III内弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["III内弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["III外弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["III外弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["IV内弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["IV内弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["IV外弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["IV外弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCMFLUX"];
- //二冷水压力
- coolWaterTable.Rows[1]["I足辊左右"] = _dtDevSampling.Rows[0]["S1SEG1WATERNARROWLRPRES"];
- coolWaterTable.Rows[1]["I内外弧"] = _dtDevSampling.Rows[0]["S1SEG1WATERARCPRES"];
- coolWaterTable.Rows[1]["II内外弧"] = _dtDevSampling.Rows[0]["S1SEG2WATERARCPRES"];
- coolWaterTable.Rows[1]["III内弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["III内弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["III外弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["III外弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["IV内弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["IV内弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["IV外弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["IV外弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[0]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S1SEG9WATERINNERARCFLUX"];
- coolWaterTable.Rows[0]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S1SEG9WATEROUTSIDEARCFLUX"];
- coolWaterTable.Rows[0]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S1SEG10WATERINNERARCFLUX"];
- coolWaterTable.Rows[0]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S1SEG10WATEROUTSIDEARCFLUX"];
- coolWaterTable.Rows[1]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S1SEG9WATERINNERARCPRES"];
- coolWaterTable.Rows[1]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S1SEG9WATEROUTSIDEARCPRES"];
- coolWaterTable.Rows[1]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S1SEG10WATERINNERARCPRES"];
- coolWaterTable.Rows[1]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S1SEG10WATEROUTSIDEARCPRES"];
- //二冷水流量
- coolWaterTable.Rows[2]["I足辊左右"] = _dtDevSampling.Rows[0]["S2SEG1WATERNARROWLRFLUX"];
- coolWaterTable.Rows[2]["I内外弧"] = _dtDevSampling.Rows[0]["S2SEG1WATERARCFLUX"];
- coolWaterTable.Rows[2]["II内外弧"] = _dtDevSampling.Rows[0]["S2SEG2WATERARCFLUX"];
- coolWaterTable.Rows[2]["III内弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCEFLUX"];
- coolWaterTable.Rows[2]["III内弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCMFLUX"];
- coolWaterTable.Rows[2]["III外弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[2]["III外弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[2]["IV内弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCEFLUX"];
- coolWaterTable.Rows[2]["IV内弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCMFLUX"];
- coolWaterTable.Rows[2]["IV外弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[2]["IV外弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[2]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[2]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S2SEG9WATERINNERARCFLUX"];
- coolWaterTable.Rows[2]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S2SEG9WATEROUTSIDEARCFLUX"];
- coolWaterTable.Rows[2]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S2SEG10WATERINNERARCFLUX"];
- coolWaterTable.Rows[2]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S1SEG10WATEROUTSIDEARCFLUX"];
- //二冷水压力
- coolWaterTable.Rows[3]["I足辊左右"] = _dtDevSampling.Rows[0]["S2SEG1WATERNARROWLRPRES"];
- coolWaterTable.Rows[3]["I内外弧"] = _dtDevSampling.Rows[0]["S2SEG1WATERARCPRES"];
- coolWaterTable.Rows[3]["II内外弧"] = _dtDevSampling.Rows[0]["S2SEG2WATERARCPRES"];
- coolWaterTable.Rows[3]["III内弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCEPRES"];
- coolWaterTable.Rows[3]["III内弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCMPRES"];
- coolWaterTable.Rows[3]["III外弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[3]["III外弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[3]["IV内弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCEPRES"];
- coolWaterTable.Rows[3]["IV内弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCMPRES"];
- coolWaterTable.Rows[3]["IV外弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[3]["IV外弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[3]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCEPRES"];
- coolWaterTable.Rows[3]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCMPRES"];
- coolWaterTable.Rows[3]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[3]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[3]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCEPRES"];
- coolWaterTable.Rows[3]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCMPRES"];
- coolWaterTable.Rows[3]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[3]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[3]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCEPRES"];
- coolWaterTable.Rows[3]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCMPRES"];
- coolWaterTable.Rows[3]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[3]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[3]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCEPRES"];
- coolWaterTable.Rows[3]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCMPRES"];
- coolWaterTable.Rows[3]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[3]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[3]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S2SEG9WATERINNERARCPRES"];
- coolWaterTable.Rows[3]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S2SEG9WATEROUTSIDEARCPRES"];
- coolWaterTable.Rows[3]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S2SEG10WATERINNERARCPRES"];
- coolWaterTable.Rows[3]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S2SEG10WATEROUTSIDEARCPRES"];
- coolWaterTable.Rows[0]["2-3区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR2TO3ARCMPRES"];
- coolWaterTable.Rows[0]["3区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR3ARCEPRES"];
- coolWaterTable.Rows[0]["4-8区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR4TO8ARCMPRES"];
- coolWaterTable.Rows[0]["4-8区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR4TO8ARCEPRES"];
- coolWaterTable.Rows[0]["9-10区内外弧压力"] = _dtDevSampling.Rows[0]["S1SEGAIR9TO10ARCPRES"];
- coolWaterTable.Rows[3]["2-3区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR2TO3ARCMPRES"];
- coolWaterTable.Rows[3]["3区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR3ARCEPRES"];
- coolWaterTable.Rows[3]["4-8区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR4TO8ARCMPRES"];
- coolWaterTable.Rows[3]["4-8区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR4TO8ARCEPRES"];
- coolWaterTable.Rows[3]["9-10区内外弧压力"] = _dtDevSampling.Rows[0]["S2SEGAIR9TO10ARCPRES"];
- }
- }
- catch (Exception ex)
- {
- string Msg = ex.Message;
- }
- #endregion
- }
- protected void SetBCcmF3SampGridData(DataTable _dtDevSampling, ref DataTable crastallorTable)
- {
- #region "设备实时值"
- if (crastallorTable == null || coolWaterTable == null)
- return;
- try
- {
- if (_dtDevSampling.Rows.Count > 0)
- {
- //1流
- crastallorTable.Rows[0]["拉速"] = _dtDevSampling.Rows[0]["S1CASTSPEED"];
- crastallorTable.Rows[0]["臂重"] = _dtDevSampling.Rows[0]["ARMLADLEAWEIGHT"];
- crastallorTable.Rows[0]["铸坯长度"] = _dtDevSampling.Rows[0]["S1DRAWSTEELLENGTH"];
- crastallorTable.Rows[0]["铸坯模式(头/尾)"] = _dtDevSampling.Rows[0]["S1CASTINGLENGTH"];
- crastallorTable.Rows[0]["窄面右侧水流量"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERFLUX"];
- crastallorTable.Rows[0]["宽面内弧水流量"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERFLUX"];
- crastallorTable.Rows[0]["宽面外弧水流量"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERFLUX"];
- crastallorTable.Rows[0]["窄面左侧水流量"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERFLUX"];
- crastallorTable.Rows[0]["窄面右侧水压力"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERPRES"];
- crastallorTable.Rows[0]["宽面内弧水压力"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERPRES"];
- crastallorTable.Rows[0]["宽面外弧水压力"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERPRES"];
- crastallorTable.Rows[0]["窄面左侧水压力"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERPRES"];
- crastallorTable.Rows[0]["窄面右侧水温差"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERTEMPDIFF"];
- crastallorTable.Rows[0]["宽面内弧水温差"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERTEMPDIFF"];
- crastallorTable.Rows[0]["宽面外弧水温差"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERTEMPDIFF"];
- crastallorTable.Rows[0]["窄面左侧水温差"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERTEMPDIFF"];
- crastallorTable.Rows[0]["结晶器编号"] = _dtDevSampling.Rows[0]["S1CRYSTALCODE"];
- crastallorTable.Rows[0]["拉钢长度"] = _dtDevSampling.Rows[0]["S1CASTINGLENGTH"];
- crastallorTable.Rows[0]["振动台频率"] = _dtDevSampling.Rows[0]["S1CRVIBRATORFREQUENCY"];
- crastallorTable.Rows[0]["进水口温度"] = _dtDevSampling.Rows[0]["S1CRINWATERTEMP"];
- crastallorTable.Rows[0]["窄面右侧出口温度"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERTEMP"];
- crastallorTable.Rows[0]["宽面内弧出口温度"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERTEMP"];
- crastallorTable.Rows[0]["宽面外弧出口温度"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERTEMP"];
- crastallorTable.Rows[0]["窄面左侧出口温度"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERTEMP"];
- crastallorTable.Rows[0]["总压力(晶)"] = _dtDevSampling.Rows[0]["CRYLWATERTOTALPRESSURE"];
- crastallorTable.Rows[0]["总管压力(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALPRESSURE"];
- crastallorTable.Rows[0]["总管压力(设备水)"] = _dtDevSampling.Rows[0]["DEVICEWATERTOTALPRESSURE"];
- crastallorTable.Rows[0]["总管流量(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALFLUX"];
- //二冷水流量
- coolWaterTable.Rows[0]["I足辊左右"] = _dtDevSampling.Rows[0]["S1SEG1WATERNARROWLRFLUX"];
- coolWaterTable.Rows[0]["I内外弧"] = _dtDevSampling.Rows[0]["S1SEG1WATERARCFLUX"];
- coolWaterTable.Rows[0]["II内外弧"] = _dtDevSampling.Rows[0]["S1SEG2WATERARCFLUX"];
- coolWaterTable.Rows[0]["III内弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["III内弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["III外弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["III外弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["IV内弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["IV内弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["IV外弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["IV外弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCMFLUX"];
- coolWaterTable.Rows[0]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCEFLUX"];
- coolWaterTable.Rows[0]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCMFLUX"];
-
- //二冷水压力
- coolWaterTable.Rows[1]["I足辊左右"] = _dtDevSampling.Rows[0]["S1SEG1WATERNARROWLRPRES"];
- coolWaterTable.Rows[1]["I内外弧"] = _dtDevSampling.Rows[0]["S1SEG1WATERARCPRES"];
- coolWaterTable.Rows[1]["II内外弧"] = _dtDevSampling.Rows[0]["S1SEG2WATERARCPRES"];
- coolWaterTable.Rows[1]["III内弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["III内弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["III外弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["III外弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["IV内弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["IV内弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["IV外弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["IV外弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[1]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCEPRES"];
- coolWaterTable.Rows[1]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCMPRES"];
- coolWaterTable.Rows[1]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCEPRES"];
- coolWaterTable.Rows[1]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCMPRES"];
- coolWaterTable.Rows[0]["Ⅺ内弧侧"] = _dtDevSampling.Rows[0]["S1SEG11WATERINNERARCFLUX"];
- coolWaterTable.Rows[0]["Ⅺ外弧侧"] = _dtDevSampling.Rows[0]["S1SEG11WATEROUTSIDEARCFLUX"];
- coolWaterTable.Rows[0]["Ⅻ内弧侧"] = _dtDevSampling.Rows[0]["S1SEG12WATERINNERARCFLUX"];
- coolWaterTable.Rows[0]["Ⅻ外弧侧"] = _dtDevSampling.Rows[0]["S1SEG12WATEROUTSIDEARCFLUX"];
- coolWaterTable.Rows[0]["13内弧侧"] = _dtDevSampling.Rows[0]["S1SEG13WATERINNERARCFLUX"];
- coolWaterTable.Rows[0]["13外弧侧"] = _dtDevSampling.Rows[0]["S1SEG13WATEROUTSIDEARCFLUX"];
- coolWaterTable.Rows[0]["2-4区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR2TO4ARCMPRES"];
- coolWaterTable.Rows[0]["3-4区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR3TO4ARCEPRES"];
- coolWaterTable.Rows[0]["5-10区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR5TO10ARCMPRES"];
- coolWaterTable.Rows[0]["5-10区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR5TO10ARCEPRES"];
- coolWaterTable.Rows[0]["11-13区内外弧压力"] = _dtDevSampling.Rows[0]["S1SEGAIR11TO13ARCPRES"];
- }
- }
- catch (Exception ex)
- {
- string Msg = ex.Message;
- }
- #endregion
- }
- private void ResetTableRows(ref DataTable ATable, int newRowsCount)
- {
- int arows = Math.Abs(ATable.Rows.Count - newRowsCount);
- string[] sTmp = new string[ATable.Columns.Count];
- if (ATable.Rows.Count < newRowsCount)
- {
- for (int i = 0; i < arows; i++)
- ATable.Rows.Add(sTmp);
- }
- else
- {
- for (int i = arows - 1; i >= 0; i--)
- ATable.Rows[i].Delete();
- }
- }
- /// <summary>
- /// 设置化学元素实时值
- /// </summary>
- /// <param name="row"></param>
- /// <param name="obj"></param>
- /// <param name="key"></param>
- /// <param name="dt"></param>
- protected void SetCraftElemGridData(int row, JOB_CHEMELEMENT obj, string key, ref DataTable dt)
- {
- try
- {
- dt.Rows[row]["TYPESYMBOL"] = key;
- dt.Rows[row]["C"] = obj.C;
- dt.Rows[row]["Si"] = obj.SI;
- dt.Rows[row]["Mn"] = obj.MN;
- dt.Rows[row]["P"] = obj.P;
- dt.Rows[row]["S"] = obj.S;
- dt.Rows[row]["Cr"] = obj.CR;
- dt.Rows[row]["Mo"] = obj.MO;
- dt.Rows[row]["Ti"] = obj.TI;
- dt.Rows[row]["V"] = obj.V;
- dt.Rows[row]["As"] = obj.ASN;
- }
- catch (Exception ex)
- {
- string Msg = ex.Message;
- }
- }
- /// <summary>
- /// 设置元素标准值
- /// </summary>
- /// <param name="row">表行数</param>
- /// <param name="dr">行记录</param>
- /// <param name="dt">被设置的表</param>
- public static void SetStandardElemData(int row, DataRow dr, ref DataTable dt)
- {
- try
- {
- // 取得元素名称
- string szEleName = dr["CRAFTITEMNAME"].ToString();
- dt.Rows[row]["TYPESYMBOL"] = "C标准";
- if (dr["ITEM1MAX"].ToString() != "" && dr["ITEM1MIN"].ToString() != "")
- dt.Rows[row][szEleName] = dr["ITEM1MIN"].ToString() + "~" + dr["ITEM1MAX"].ToString();
- else if (dr["ITEM1MAX"].ToString() != "" && dr["ITEM1MIN"].ToString() == "")
- dt.Rows[row][szEleName] = "≤ " + dr["ITEM1MAX"].ToString();
- else if (dr["ITEM1MAX"].ToString() == "" && dr["ITEM1MIN"].ToString() != "")
- dt.Rows[row][szEleName] = "> " + dr["ITEM1MIN"].ToString();
- }
- catch { }
- }
- /// <summary>
- /// 转换作业路线编码
- /// </summary>
- /// <param name="szPath"></param>
- /// <returns></returns>
- private string ConvertJobRoute(string szPath)
- {
- if (szPath == "")
- return "";
- string strPath = szPath;
- // A0B0C0D0E0F0G0
- strPath = strPath.Replace("A0", "");
- strPath = strPath.Replace("B0", "");
- strPath = strPath.Replace("C0", "");
- strPath = strPath.Replace("D0", "");
- strPath = strPath.Replace("E0", "");
- strPath = strPath.Replace("F0", "");
- strPath = strPath.Replace("I0", "");
- strPath = strPath.Replace("G0", "");
- //strPath = strPath.Replace("A", "@010000");
- strPath = strPath.Replace("B", "@B");
- strPath = strPath.Replace("C", "@C");
- strPath = strPath.Replace("D", "@D");
- strPath = strPath.Replace("E", "@E");
- strPath = strPath.Replace("F", "@F");
- strPath = strPath.Replace("I", "@I");
- strPath = strPath.Replace("G", "@G");
- string[] szStr = strPath.Split('@');
- strPath = "";
- for (int i = 0; i < szStr.Length; i++)
- {
- if (!string.IsNullOrEmpty(szStr[i].ToString()))
- {
- switch (szStr[i].Substring(0, 1))
- {
- case "A":
- strPath = strPath + szStr[i].Substring(1, 1) + "#混铁炉";
- break;
- case "B":
- strPath = strPath + "->" + szStr[i].Substring(1, 1) + "#预处理";
- break;
- case "C":
- strPath = strPath + "->" + szStr[i].Substring(1, 1) + "#转炉";
- break;
- case "D":
- strPath = strPath + "->" + szStr[i].Substring(1, 1) + "#吹氩";
- break;
- case "E":
- strPath = strPath + "->" + szStr[i].Substring(1, 1) + "#精炼炉";
- break;
- case "F":
- strPath = strPath + "->" + szStr[i].Substring(1, 1) + "#RH炉";
- break;
- case "I":
- strPath = strPath + "->" + szStr[i].Substring(1, 1) + "#VD炉";
- break;
- case "G":
- strPath = strPath + "->" + (szStr[i].Substring(1, 1) == "4" ? "0" : szStr[i].Substring(1, 1)) + "#连铸";
- break;
- default:
- break;
- }
- }
- }
- if (strPath.Length < 2)
- return "";
- if (strPath.IndexOf("->", 0) == 0)
- {
- int len = strPath.Length;
- strPath = strPath.Substring(2, len - 2);
- }
- return strPath;
- }
- private void ClearControlText()
- {
- IEnumerator iControls = ultraGroupBox1.Controls.GetEnumerator();
- while (iControls.MoveNext())
- {
- if (iControls.Current.GetType().ToString() != "Infragistics.Win.Misc.UltraLabel")
- {
- System.Windows.Forms.Label ulb = (System.Windows.Forms.Label)iControls.Current;
- if (ulb.Name.IndexOf("ulbl") >= 0)
- ulb.Text = "";
- }
- }
- }
- #endregion
- #region " Form Event "
- protected virtual void frmBaseSite_Load(object sender, EventArgs e)
- {
- ClearControlText();
- ucChemelEment1.ResetData();
- ucChemelEment1.ulgridElement.DisplayLayout.Appearance.BackColor = Color.White;
- ucChemelEment1.ulgridElement.DisplayLayout.Appearance.BackColor2 = Color.White;
- ucChemelEment1.ulgridElement.DisplayLayout.Override.HeaderAppearance.BackColor = Color.LightSteelBlue;
- ucChemelEment1.ulgridElement.DisplayLayout.Override.CellAppearance.ForeColor = Color.Blue;
- ucChemelEment1.ulgridElement.DisplayLayout.Override.RowSelectorAppearance.BackColor = Color.LightSteelBlue;
- ucChemelEment1.ulgridElement.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.White;
- GenerateTableFrame();
-
- }
- private void frmBaseSite_DoubleClick(object sender, EventArgs e)
- {
- if (_arDataSource != null)
- {
- _arDataSource.Clear();
- _arDataSource = null;
- }
- this.Close();
- }
- private void frmBaseSite_FormClosed(object sender, FormClosedEventArgs e)
- {
- if (_arDataSource != null)
- {
- _arDataSource.Clear();
- _arDataSource = null;
- }
- }
- #endregion
- /// <summary>
- /// 获取标准元素值,温度标准 "('C','Si','Mn','P','S','Als','Al','Cr','Mo','Ti','Nb','B','V','Cu','Ca') "
- /// </summary>
- private void GetStandardElement(string strStationCode, string strCraftcode, string strElementCode, string strTemperature)
- {
- try
- {
- string szOut = "", szWhere = strStationCode + " and a.craftcode='" + strCraftcode + "'";
- string szEleStd = strElementCode, szCrfStd = strTemperature;
- //hengxing
- //CallingMessage par = new CallingMessage();
- //par.ServerName = "lgJobMgt";
- //par.AssemblyName = "Core.CgMes.Server.lgJobMgt";
- //par.ClassName = "Core.CgMes.Server.lgJobMgt.classCommonModule";
- //par.MethodName = "GetProcStandardValue";
- //par.args = new object[] { szWhere, szEleStd, szCrfStd };
- object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out szOut);
- if (szOut == "" && obj != null)
- {
- ArrayList ar = obj as ArrayList;
- _dtEleStd = (ar[0] as DataSet).Tables[0];
- _dtEleStd.TableName = "CBZ";
- _dtCraftStdVal = (ar[1] as DataSet).Tables[0];
- }
- }
- catch { }
- }
- }
- }
|