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 } /// /// 填充界面数据 /// 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); } /// /// 获取化学成分检验号 /// /// /// 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; } /// /// 填充过程添加料信息数据 /// 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; } } } /// /// 填充温度信息数据 /// //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 { } } /// /// 填充连铸设备采样数据(方坯) /// 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 { } } } } } } /// /// 填充连铸设备采样数据(板坯) /// 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 " /// /// 设置Grid的卡片显示形式 /// /// 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(); } /// /// /// /// Job, Additive, Sampling /// 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; } /// /// 设置界面顶端数据 /// 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(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 } /// /// 填充化学成分信息数据 /// 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(); } } /// /// 设置化学元素实时值 /// /// /// /// /// 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; } } /// /// 设置元素标准值 /// /// 表行数 /// 行记录 /// 被设置的表 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 { } } /// /// 转换作业路线编码 /// /// /// 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 /// /// 获取标准元素值,温度标准 "('C','Si','Mn','P','S','Als','Al','Cr','Mo','Ti','Nb','B','V','Cu','Ca') " /// 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 { } } } }