frmBaseSite.cs 106 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853
  1. using System;
  2. using System.Collections;
  3. using System.Data;
  4. using System.Drawing;
  5. using System.Windows.Forms;
  6. using Core.LgMes.Client.Comm;
  7. using CoreFS.CA06;
  8. using Core.LgMes.Server.lgClassModel;
  9. namespace Core.LgMes.Client.lgGlobalMap
  10. {
  11. public partial class frmBaseSite : CoreFS.CA06.FrmBase
  12. {
  13. #region " Class Memeber Variable "
  14. protected ArrayList _arDataSource = null;
  15. protected string _heatProcessNo = "";
  16. protected string[] _szElementSymbol;
  17. protected string[] _szAdditive;
  18. protected string[] _szTemperature;
  19. protected DataTable _dtCraftElement;
  20. protected DataTable _dtAdditive;
  21. protected DataTable _dtMaterial;
  22. protected DataTable _dtTemperature;
  23. protected DataTable _dtDeviceState;
  24. protected DataTable _dtEleStd = null; // 标准元素值表
  25. protected DataTable _dtCraftStdVal = null; // 炼钢工艺标准值
  26. protected DataTable _dtCraftStdVal2 = null; // 炼钢工艺标准值
  27. protected DataTable _dtCraftMtrVal = null; //物料消耗标准
  28. protected string strTemperature = "";
  29. public CoreFS.CA06.OpeBase ob;
  30. public string strIronPotNo = ""; //铁包号
  31. //对应表
  32. protected DataTable coolWaterTable, crastallorTable; //结晶器,二冷水
  33. #endregion
  34. #region " Property "
  35. public ArrayList arDataSource
  36. {
  37. get { return _arDataSource; }
  38. set { _arDataSource = value; }
  39. }
  40. public string HeatProcessNo
  41. {
  42. get { return _heatProcessNo; }
  43. set { _heatProcessNo = value; }
  44. }
  45. public DataTable dtMaterial
  46. {
  47. get { return _dtMaterial; }
  48. set { _dtMaterial = value; }
  49. }
  50. #endregion
  51. #region " Construct Function "
  52. public frmBaseSite()
  53. {
  54. InitializeComponent();
  55. _szElementSymbol = new string[] { "TYPESYMBOL", "C", "Si", "Mn", "P", "S", "V", "Cr", "Mo", "Ti", "As" };//,"Cu","Ni"};
  56. _szAdditive = new string[] { "项目名", "设定范围", "实际值", "类型", "岗位", "提示" };
  57. _szTemperature = new string[] { "项目名", "设定范围", "实际值", "提示" };
  58. }
  59. #endregion
  60. #region " Virtual Method "
  61. protected virtual void GenerateTableFrame()
  62. {
  63. //#region " 生成化学成分表 "
  64. //_dtCraftElement = new DataTable("CraftElement");
  65. DataColumn myDataColumn = null;
  66. //for (int i = 0; i < _szElementSymbol.Length; i++)
  67. //{
  68. // myDataColumn = new DataColumn();
  69. // myDataColumn.DataType = System.Type.GetType("System.String");
  70. // myDataColumn.ColumnName = _szElementSymbol[i];
  71. // if (i == 0)
  72. // myDataColumn.Caption = "化验类型";
  73. // else
  74. // myDataColumn.Caption = _szElementSymbol[i];
  75. // _dtCraftElement.Columns.Add(myDataColumn);
  76. //}
  77. //ulgridElement.DataSource = _dtCraftElement;
  78. //for (int i = 0; i < _szElementSymbol.Length; i++)
  79. //{
  80. // if (i == 0)
  81. // ulgridElement.DisplayLayout.Bands[0].Columns[i].Width = 85;
  82. // else
  83. // ulgridElement.DisplayLayout.Bands[0].Columns[i].Width = 67;
  84. // ulgridElement.DisplayLayout.Bands[0].Columns[i].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  85. //}
  86. ///#endregion
  87. #region " 生成过程添加料表 "
  88. _dtAdditive = new DataTable("Additive");
  89. for (int i = 0; i < _szAdditive.Length; i++)
  90. {
  91. myDataColumn = new DataColumn();
  92. myDataColumn.DataType = System.Type.GetType("System.String");
  93. myDataColumn.ColumnName = _szAdditive[i];
  94. myDataColumn.Caption = _szAdditive[i];
  95. _dtAdditive.Columns.Add(myDataColumn);
  96. }
  97. ulgridMaterial.DataSource = _dtAdditive;
  98. for (int i = 0; i < _szAdditive.Length; i++)
  99. {
  100. if (i <= 1)
  101. ulgridMaterial.DisplayLayout.Bands[0].Columns[i].Width = 100;
  102. else if (i == _szAdditive.Length - 1)
  103. ulgridMaterial.DisplayLayout.Bands[0].Columns[i].Width = 50;
  104. else
  105. ulgridMaterial.DisplayLayout.Bands[0].Columns[i].Width = 60;
  106. ulgridMaterial.DisplayLayout.Bands[0].Columns[i].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  107. }
  108. ulgridMaterial.DisplayLayout.Bands[0].Columns["岗位"].MergedCellStyle = Infragistics.Win.UltraWinGrid.MergedCellStyle.Always;
  109. ulgridMaterial.DisplayLayout.Bands[0].Columns["岗位"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Center;
  110. ulgridMaterial.DisplayLayout.Bands[0].Columns["岗位"].CellAppearance.TextVAlign = Infragistics.Win.VAlign.Middle;
  111. #endregion
  112. #region " 生成温度表 "
  113. _dtTemperature = new DataTable("temperature");
  114. for (int i = 0; i < _szTemperature.Length; i++)
  115. {
  116. myDataColumn = new DataColumn();
  117. myDataColumn.DataType = System.Type.GetType("System.String");
  118. myDataColumn.ColumnName = _szTemperature[i];
  119. myDataColumn.Caption = _szTemperature[i];
  120. _dtTemperature.Columns.Add(myDataColumn);
  121. }
  122. ulgridTempInfo.DataSource = _dtTemperature;
  123. for (int i = 0; i < _szTemperature.Length; i++)
  124. {
  125. if (i <= 1)
  126. ulgridTempInfo.DisplayLayout.Bands[0].Columns[i].Width = 90;
  127. else if (i == _szTemperature.Length - 1)
  128. ulgridTempInfo.DisplayLayout.Bands[0].Columns[i].Width = 60;
  129. else
  130. ulgridTempInfo.DisplayLayout.Bands[0].Columns[i].Width = 70;
  131. ulgridTempInfo.DisplayLayout.Bands[0].Columns[i].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  132. }
  133. #endregion
  134. }
  135. /// <summary>
  136. /// 填充界面数据
  137. /// </summary>
  138. protected virtual void FillData()
  139. {
  140. JOB_CRAFTINFO plan = new JOB_CRAFTINFO();
  141. if (_arDataSource == null || _heatProcessNo == "")
  142. return;
  143. string szSmeltId = CStaticMethod.getSmeltingID(_heatProcessNo);
  144. if (_heatProcessNo.Substring(0, 1) == "V") szSmeltId = "V" + szSmeltId;
  145. Hashtable htCraft = null;
  146. string strSC = ""; //岗位条件
  147. htCraft = (Hashtable)_arDataSource[0];
  148. if (htCraft != null)
  149. {
  150. //提钒转炉信息处理
  151. if (_heatProcessNo.Substring(0, 1) == "V")
  152. {
  153. foreach (DictionaryEntry de in htCraft)
  154. {
  155. JOB_CRAFTINFO Job_CraftInfo = (JOB_CRAFTINFO)htCraft[de.Key];
  156. if (Job_CraftInfo.VANHEATNO == szSmeltId)
  157. {
  158. szSmeltId = Job_CraftInfo.HEATNO;
  159. plan = (JOB_CRAFTINFO)htCraft[szSmeltId];
  160. break; ;
  161. }
  162. }
  163. }
  164. else
  165. plan = (JOB_CRAFTINFO)htCraft[szSmeltId]; //炼钢转炉
  166. if (plan != null)
  167. {
  168. //设置顶部信息
  169. SetTopTittleInfo(plan);
  170. //温度标准代码
  171. switch (_heatProcessNo.Substring(0, 1))
  172. {
  173. case "V":
  174. strTemperature = "('L02004')"; //转炉终点温度
  175. strSC = " and c.name_ = 'V'";
  176. break;
  177. case "C":
  178. strTemperature = "('L02004')"; //转炉终点温度
  179. strSC = " and c.name_ = 'C'";
  180. break;
  181. case "D":
  182. strTemperature = "('L02004','L02001','L02004')"; //转炉终点温度,吹氩站进站(L02013),出站温度(L02012)
  183. strSC = " and (c.name_ = 'D' or c.name_='C') ";
  184. break;
  185. case "E":
  186. strTemperature = "('L02004','L02004','L02001','L02004')"; //转炉出站温度,吹氩出站温度,精炼炉进站,出站温度
  187. strSC = " and (c.name_ = 'D' or c.name_='C' or c.name_='E') ";
  188. break;
  189. case "G":
  190. strTemperature = "('L02004','L02004','L02004','L02007','L02008','L02009')"; ///转炉出站温度,吹氩出站温度,精炼炉出站温度,中包温度(开浇,连浇,上台)
  191. strSC = " and (c.name_ = 'D' or c.name_='C' or c.name_='E' or c.name_='G') ";
  192. break;
  193. }
  194. //获取化学成分,温度标准
  195. //GetStandardElement(strSC, plan.STD_CODE,
  196. // "('C','Si','Mn','P','S','Als','Al','Cr','Mo','Ti','Nb','B','V','Cu','Ca')", strTemperature);
  197. _dtCraftStdVal = CStaticMethod.GetJobStandardTemp(ob,plan.STEEL);
  198. _dtCraftStdVal2 = CStaticMethod.GetJobStandardTemp2(ob, _heatProcessNo.Substring(5, 10), plan.STEEL);
  199. //物料消耗标准
  200. _dtCraftMtrVal = CStaticMethod.GetJobStandardMateriel(ob, plan.STEEL);
  201. }
  202. }
  203. ///////////////////////////
  204. string strSteel = "", strCast_ID = "";
  205. string strM = "";
  206. if (plan != null)
  207. {
  208. strSteel = plan.STEEL;
  209. strCast_ID = plan.V_HEAT_ID;
  210. }
  211. SetCraftElementInfo(szSmeltId, _heatProcessNo.Substring(0, 3), strSteel, strCast_ID);
  212. }
  213. /// <summary>
  214. /// 获取化学成分检验号
  215. /// </summary>
  216. /// <param name="strMolirnSource"></param>
  217. /// <returns></returns>
  218. protected virtual string GetMolirnSource(string strMolirnSource)
  219. {
  220. string szOut = "";
  221. string strCheckNo = "";
  222. strCheckNo = "";//hengxing (string)Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("lgJobMgt",
  223. // "Core.LgMes.Server.lgJobMgt.classTrackObjectInfo", "GetMolirnSource", new object[] { strMolirnSource }, out szOut);
  224. if (szOut == "")
  225. return strCheckNo;
  226. return strCheckNo;
  227. }
  228. /// <summary>
  229. /// 填充过程添加料信息数据
  230. /// </summary>
  231. protected virtual void SetAdditiveInfo(string szHashName)
  232. {
  233. if (string.IsNullOrEmpty(HeatProcessNo))
  234. return;
  235. Hashtable htAdditive = GetHashtableForSite(szHashName);
  236. if (htAdditive != null)
  237. {
  238. Hashtable htRead = htAdditive[HeatProcessNo] as Hashtable;
  239. if (htRead != null)
  240. {
  241. string key = CStaticMethod.getSmeltingID(HeatProcessNo);
  242. if (HeatProcessNo.Substring(0, 1) == "V") key = "V" + key;
  243. string strStationCode = HeatProcessNo.Substring(0, 3);
  244. int intCount = 0;
  245. foreach(DictionaryEntry de in htRead)
  246. {
  247. STL_COMMON_ADDITIVES objAddi = (STL_COMMON_ADDITIVES)htRead[de.Key];
  248. // 这里只显示料仓自动投料的物料名称 JMTYPE 为 1 自动投料 2 手工投料
  249. if (objAddi != null && objAddi.HEATNO == key && objAddi.JMTYPE == "1")
  250. {
  251. AppendTableRows(ref _dtAdditive);
  252. SetAdditiveGridData(intCount, objAddi, ref _dtAdditive);
  253. string strTpm = "";
  254. switch (objAddi.STATIONCODE.Substring(0, 1))
  255. {
  256. case "C":
  257. strTpm = "LG0202";
  258. break;
  259. case "D":
  260. strTpm = "LG0302";
  261. break;
  262. case "E":
  263. strTpm = "LG0402";
  264. break;
  265. case "F":
  266. strTpm = "LG0502";
  267. break;
  268. }
  269. //获取标准值并进行对比
  270. CStaticMethod.CompareStandard(_dtCraftMtrVal, ref _dtAdditive, strTpm+objAddi.MATERIELTYPE+objAddi.MATERIELCODE, ref ulgridMaterial, intCount, objAddi.STATIONCODE.Substring(0, 1));
  271. intCount = intCount + 1;
  272. }
  273. }
  274. ulgridMaterial.DisplayLayout.Bands[0].Columns["岗位"].SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Ascending;
  275. }
  276. }
  277. }
  278. /// <summary>
  279. /// 填充温度信息数据
  280. /// </summary>
  281. //protected virtual void SetTemperatureInfo(string szHashName)
  282. //{
  283. // if (string.IsNullOrEmpty(HeatProcessNo))
  284. // return;
  285. // Hashtable htTempr = GetHashtableForSite(szHashName);
  286. // if (htTempr != null)
  287. // {
  288. // Hashtable htDetail = htTempr[HeatProcessNo] as Hashtable;
  289. // if (htDetail != null)
  290. // {
  291. // string key = CStaticMethod.getSmeltingID(HeatProcessNo);
  292. // if (HeatProcessNo.Substring(0, 1) == "V") key = "V" + key;
  293. // int intCount = 0;
  294. //
  295. // //foreach(DictionaryEntry de in htDetail)
  296. // //{
  297. // // STL_COMMON_SAMPLING objTempr = (STL_COMMON_SAMPLING)htDetail[de.Key];
  298. // // if (objTempr != null && objTempr.HEATNO == key && (objTempr.SAMPLINGNAME == "TEMPERATURE" || objTempr.SAMPLINGNAME == "TEMPERATURE1"
  299. // // || objTempr.SAMPLINGNAME == "TEMPERATURE2" || objTempr.SAMPLINGNAME == "TUNDISHTEMP1" || objTempr.SAMPLINGNAME == "TUNDISHTEMP2"))
  300. // // {
  301. // // AppendTableRows(ref _dtTemperature);
  302. // // //SetTemperatureGridData(intCount, objTempr, ref _dtTemperature); //显示实时温度值
  303. // // string strTpm = "";
  304. // // switch (objTempr.STATIONCODE.Substring(0, 1))
  305. // // {
  306. // // case "C":
  307. // // strTpm = "LG0201002";
  308. // // break;
  309. // // case "D":
  310. // // strTpm = "LG0301002";
  311. // // break;
  312. // // case "E":
  313. // // strTpm = "LG0401002";
  314. // // break;
  315. // // case "F":
  316. // // strTpm = "LG0501002";
  317. // // break;
  318. // // case "G":
  319. // // strTpm = "LG0601002";
  320. // // break;
  321. // // case "I":
  322. // // strTpm = "LG0701002";
  323. // // break;
  324. // // }
  325. // // //获取标准值并进行对比
  326. // // //CStaticMethod.CompareStandard(_dtCraftStdVal, ref _dtTemperature, strTpm, ref ulgridTempInfo, intCount, objTempr.STATIONCODE.Substring(0, 1));
  327. // // CStaticMethod.CompareStandard2(_dtCraftStdVal2, ref _dtTemperature, strTpm, ref ulgridTempInfo, intCount, objTempr.STATIONCODE.Substring(0, 1));
  328. // // intCount++;
  329. // // }
  330. // //}
  331. // GetTemperature(HeatProcessNo.Substring(5, 10));//2015-07-10
  332. // }
  333. // }
  334. //}
  335. protected virtual void SetTemperatureInfo(string szHashName)
  336. {
  337. if (HeatProcessNo !="")
  338. {
  339. GetTemperature(HeatProcessNo.Substring(5, 10));
  340. }
  341. for (int i = 0; i < _dtTemperature.Rows.Count; i++)
  342. {
  343. string strStion = "";
  344. string strstation = _dtTemperature.Rows[i]["项目名"].ToString();
  345. if (strstation !="")
  346. {
  347. strstation = strstation.Substring(0,3);
  348. switch (strstation)
  349. {
  350. case "BOF":
  351. strStion = "C";
  352. break;
  353. case "CAS":
  354. strStion = "D";
  355. break;
  356. case "LFS":
  357. strStion = "E";
  358. break;
  359. case "RHS":
  360. strStion = "F";
  361. break;
  362. case "VDS":
  363. strStion = "I";
  364. break;
  365. case "CCM":
  366. strStion = "G";
  367. break;
  368. }
  369. CStaticMethod.CompareStandard2(_dtCraftStdVal2, ref _dtTemperature, strStion, ref ulgridTempInfo, i, strstation);
  370. }
  371. }
  372. }
  373. protected virtual void GetTemperature(string HeatProcessNo)
  374. {
  375. DataTable bof = ScmLiquidusTemp.BofOptinfo(HeatProcessNo, this.ob);
  376. if (bof.Rows.Count != 0)
  377. SetDtTemperature(bof, "BOF");
  378. DataTable cas = ScmLiquidusTemp.CasOptinfo(HeatProcessNo, this.ob);
  379. if (cas.Rows.Count != 0)
  380. SetDtTemperature(cas, "CAS");
  381. DataTable lfs = ScmLiquidusTemp.LfsOptinfo(HeatProcessNo, this.ob);
  382. if (lfs.Rows.Count != 0)
  383. SetDtTemperature(lfs, "LFS");
  384. DataTable rhs = ScmLiquidusTemp.RhsOptinfo(HeatProcessNo, this.ob);
  385. if (rhs.Rows.Count != 0)
  386. SetDtTemperature(rhs, "RHS");
  387. DataTable vds = ScmLiquidusTemp.VdsOptinfo(HeatProcessNo, this.ob);
  388. if (vds.Rows.Count != 0)
  389. SetDtTemperature(vds, "VDS");
  390. DataTable ccm = ScmLiquidusTemp.CcmOptinfo(HeatProcessNo, this.ob);
  391. if (ccm.Rows.Count != 0)
  392. SetDtTemperature(ccm, "CCM");
  393. }
  394. protected virtual void SetDtTemperature(DataTable dt, string station)
  395. {
  396. try
  397. {
  398. string arbtempt = "";//出站温度
  399. string arftempt = "";//进站温度
  400. if (station == "BOF" || station == "CCM")
  401. {
  402. if (station == "BOF")
  403. {
  404. arbtempt = dt.Rows[0]["ARBTEMPT"].ToString();
  405. if (arbtempt != "")
  406. {
  407. DataRow row = _dtTemperature.NewRow();//.NowRow();
  408. row["项目名"] = station + "放钢温度";
  409. row["实际值"] = arbtempt;
  410. row["提示"] = "√";
  411. _dtTemperature.Rows.Add(row);
  412. }
  413. }
  414. if (station == "CCM")
  415. {
  416. arftempt = dt.Rows[0]["ARFTEMPT"].ToString();
  417. if (arftempt != "")
  418. {
  419. DataRow row = _dtTemperature.NewRow();//.NowRow();
  420. row["项目名"] = station + "平台温度";
  421. row["实际值"] = arftempt;
  422. row["提示"] = "√";
  423. _dtTemperature.Rows.Add(row);
  424. }
  425. }
  426. }
  427. else
  428. {
  429. if (station == "LFS")
  430. {
  431. arftempt = dt.Rows[0]["ARRIVETEMPT"].ToString();
  432. arbtempt = dt.Rows[0]["LEAVETEMPT"].ToString();
  433. }
  434. else if (station == "CAS")
  435. {
  436. arftempt = dt.Rows[0]["ARFTEMPT"].ToString();
  437. arbtempt = dt.Rows[0]["ARBTEMPT"].ToString();
  438. }
  439. else
  440. {
  441. arftempt = dt.Rows[0]["ARFTEMPT"].ToString();
  442. arbtempt = dt.Rows[0]["ARBTEMPT"].ToString();
  443. }
  444. if (arftempt != "")
  445. {
  446. DataRow row = _dtTemperature.NewRow();//.NowRow();
  447. row["项目名"] = station + "到站温度";
  448. row["实际值"] = arftempt;
  449. row["提示"] = "√";
  450. _dtTemperature.Rows.Add(row);
  451. }
  452. if (arbtempt != "")
  453. {
  454. DataRow row1 = _dtTemperature.NewRow();
  455. row1["项目名"] = station + "出站温度";
  456. row1["实际值"] = arbtempt;
  457. row1["提示"] = "√";
  458. _dtTemperature.Rows.Add(row1);
  459. }
  460. }
  461. }
  462. catch { }
  463. }
  464. /// <summary>
  465. /// 填充连铸设备采样数据(方坯)
  466. /// </summary>
  467. protected virtual void SetFCcmDevSampInfo(string szScwName, string szSmillName)
  468. {
  469. if (string.IsNullOrEmpty(HeatProcessNo))
  470. return;
  471. Hashtable htScw = GetHashtableForSite(szScwName); // 拉速、配水数据
  472. Hashtable htSmill = GetHashtableForSite(szSmillName); // 电磁搅拌数据
  473. if (htScw != null)
  474. {
  475. Hashlist list = htScw[HeatProcessNo] as Hashlist;
  476. if (list != null)
  477. {
  478. string key = HeatProcessNo.Substring(HeatProcessNo.Length - 8);
  479. for (int i = 0; i < list.Count; i++)
  480. {
  481. JOB_CCM_SCWSAMPLING objScw = (JOB_CCM_SCWSAMPLING)list[i];
  482. if (objScw != null && objScw.HEATNO == key)
  483. {
  484. try
  485. {
  486. SetFCcmScwSampGridData(objScw, ref _dtDeviceState);
  487. }
  488. catch { }
  489. }
  490. }
  491. }
  492. }
  493. if (htSmill != null)
  494. {
  495. Hashlist list = htSmill[HeatProcessNo] as Hashlist;
  496. if (list != null)
  497. {
  498. string key = HeatProcessNo.Substring(HeatProcessNo.Length - 8);
  499. for (int i = 0; i < list.Count; i++)
  500. {
  501. JOB_CCM_SMILLSAMPLING objSmill = (JOB_CCM_SMILLSAMPLING)list[i];
  502. if (objSmill != null && objSmill.HEATNO == key)
  503. {
  504. try
  505. {
  506. SetFCcmSmillSampGridData(objSmill, ref _dtDeviceState);
  507. }
  508. catch { }
  509. }
  510. }
  511. }
  512. }
  513. }
  514. /// <summary>
  515. /// 填充连铸设备采样数据(板坯)
  516. /// </summary>
  517. protected virtual void SetBCcmDevSampInfo(string szScwName, string szSmillName)
  518. {
  519. if (string.IsNullOrEmpty(HeatProcessNo))
  520. return;
  521. Hashtable htBcw = GetHashtableForSite(szScwName); // 拉速、配水数据
  522. if (htBcw != null)
  523. {
  524. Hashtable list = htBcw[HeatProcessNo] as Hashtable;
  525. if (list != null)
  526. {
  527. CoreFS.CA06.FrmBase frm = new FrmBase();
  528. frm.ob = ob;
  529. DataTable dtSampInfo = frm.ConvertToDataTable(list[HeatProcessNo.Substring(1, 2)] as IList);
  530. if (dtSampInfo.Rows.Count==0) return;
  531. string key = HeatProcessNo.Substring(HeatProcessNo.Length - 10);
  532. for (int i = 0; i < list.Count; i++)
  533. {
  534. //1#铸机
  535. if (HeatProcessNo.Substring(2, 1) == "1")
  536. {
  537. if (dtSampInfo != null && dtSampInfo.Rows[0]["HEATNO"].ToString() == key)
  538. {
  539. try
  540. {
  541. SetBCcmF1SampGridData(dtSampInfo, ref crastallorTable, ref coolWaterTable);
  542. }
  543. catch { }
  544. }
  545. }
  546. //2#铸机
  547. if (HeatProcessNo.Substring(2, 1) == "2")
  548. {
  549. if (dtSampInfo != null && dtSampInfo.Rows[0]["HEATNO"].ToString() == key)
  550. {
  551. try
  552. {
  553. SetBCcmF2SampGridData(dtSampInfo, ref crastallorTable, ref coolWaterTable);
  554. }
  555. catch { }
  556. }
  557. }
  558. //3#铸机
  559. if (HeatProcessNo.Substring(2, 1) == "3")
  560. {
  561. if (dtSampInfo != null && dtSampInfo.Rows[0]["HEATNO"].ToString() == key)
  562. {
  563. try
  564. {
  565. SetBCcmF3SampGridData(dtSampInfo, ref crastallorTable);
  566. }
  567. catch { }
  568. }
  569. }
  570. ////4#铸机
  571. ////if (HeatProcessNo.Substring(2, 1) == "4")
  572. ////{
  573. //// JOB_CCM_F4SAMPLING objBcw = (JOB_CCM_F4SAMPLING)list[i];
  574. //// if (objBcw != null && objBcw.HEATNO == key)
  575. //// {
  576. //// try
  577. //// {
  578. //// SetBCcmF4SampGridData(objBcw, ref crastallorTable, ref coolWaterTable);
  579. //// }
  580. //// catch { }
  581. //// }
  582. ////}
  583. }
  584. }
  585. }
  586. }
  587. #endregion
  588. #region " Commonly Function "
  589. /// <summary>
  590. /// 设置Grid的卡片显示形式
  591. /// </summary>
  592. /// <param name="uGrid"></param>
  593. protected void SetGridCardView(ref Infragistics.Win.UltraWinGrid.UltraGrid uGrid, int nSize)
  594. {
  595. uGrid.DisplayLayout.Override.BorderStyleCardArea = Infragistics.Win.UIElementBorderStyle.None;
  596. uGrid.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Etched;
  597. uGrid.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.None;
  598. uGrid.DisplayLayout.Override.BorderStyleHeader = Infragistics.Win.UIElementBorderStyle.None;
  599. Infragistics.Win.UltraWinGrid.UltraGridBand band = uGrid.DisplayLayout.Bands[0];
  600. band.CardSettings.CardScrollbars = Infragistics.Win.UltraWinGrid.CardScrollbars.None;
  601. band.CardSettings.ShowCaption = false;
  602. band.CardSettings.Style = Infragistics.Win.UltraWinGrid.CardStyle.StandardLabels;
  603. band.CardView = true;
  604. band.UseRowLayout = true;
  605. int i = 0, j = 1, k = 1;
  606. foreach (Infragistics.Win.UltraWinGrid.UltraGridColumn col in uGrid.DisplayLayout.Bands[0].Columns)
  607. {
  608. //col.RowLayoutColumnInfo.AllowCellSizing = Infragistics.Win.UltraWinGrid.RowLayoutSizing.Default;
  609. //col.RowLayoutColumnInfo.AllowLabelSizing = Infragistics.Win.UltraWinGrid.RowLayoutSizing.Default;
  610. //col.RowLayoutColumnInfo.ActualCellSize = new System.Drawing.Size(400, 0);
  611. col.Header.VisiblePosition = i++;
  612. if (i <= 4)
  613. {
  614. col.RowLayoutColumnInfo.OriginX = 0;
  615. col.RowLayoutColumnInfo.OriginY = i * 2;
  616. }
  617. else if (i > 4 && i <= 8)
  618. {
  619. col.RowLayoutColumnInfo.OriginX = 2;
  620. col.RowLayoutColumnInfo.OriginY = j * 2;
  621. j++;
  622. }
  623. else
  624. {
  625. col.RowLayoutColumnInfo.OriginX = 4;
  626. col.RowLayoutColumnInfo.OriginY = k * 2;
  627. k++;
  628. }
  629. //col.RowLayoutColumnInfo.SpanY = 200;
  630. col.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(100, 0);
  631. col.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(100, 0);
  632. }
  633. }
  634. protected override void OnDeactivate(EventArgs e)
  635. {
  636. base.OnDeactivate(e);
  637. this.Close();
  638. }
  639. /// <summary>
  640. ///
  641. /// </summary>
  642. /// <param name="szKey">Job, Additive, Sampling</param>
  643. /// <returns></returns>
  644. protected Hashtable GetHashtableForSite(string szKey)
  645. {
  646. if (arDataSource.Count < 3)
  647. return null;
  648. Hashtable ht = (Hashtable)arDataSource[2];
  649. if (ht != null)
  650. {
  651. ArrayList ar = (ArrayList)ht[szKey];
  652. if (ar != null)
  653. {
  654. Hashtable hab;
  655. for (int i = 0; i < ar.Count; i++)
  656. {
  657. hab = ar[i] as Hashtable;
  658. if (hab.Contains(HeatProcessNo))
  659. {
  660. return hab;
  661. }
  662. }
  663. }
  664. }
  665. return null;
  666. }
  667. /// <summary>
  668. /// 设置界面顶端数据
  669. /// </summary>
  670. private void SetTopTittleInfo(JOB_CRAFTINFO objPlan)
  671. {
  672. if (objPlan == null)
  673. return;
  674. if (_heatProcessNo.Substring(0, 1) == "V")
  675. ulblRLH.Text = objPlan.VANHEATNO;
  676. else
  677. ulblRLH.Text = objPlan.HEATNO;
  678. ulblJHGZ.Text = objPlan.STEEL;
  679. string[] potno=new string[]{"1","2","3","6","8","12","13","15","18","25","26","28","29","31","32","36"};
  680. if (Array.IndexOf<string>(potno, objPlan.SENDTOOLID) != -1)
  681. {
  682. ulblGBH.Text = objPlan.SENDTOOLID + "/无碳包";
  683. }
  684. else
  685. ulblGBH.Text = objPlan.SENDTOOLID;
  686. ulblGBDJ.Text = objPlan.SENDGRADE;
  687. ulblGBBK.Text = objPlan.INSTANCE;
  688. ulblZYLX.Text = ConvertJobRoute(objPlan.FACT_ROUTE);
  689. ulblZYLX.Text = ConvertJobRoute(objPlan.FACT_ROUTE);
  690. ulblGDH.Text = objPlan.ORD_GON_ID;
  691. ulblWLMS.Text = objPlan.MATERIELDEPICT;
  692. ulblGYLX.Text = CStaticMethod.analysPlan_Lines(objPlan.PLAN_LINES);
  693. ulblGSPZ.Text = objPlan.GSPZ;
  694. ulblSTEELPASS.Text = objPlan.STEELPASS;
  695. ulblTAPPINGENDTIME.Text = objPlan.TAPPINGENDTIME;
  696. ulblBALELEAVEWGTPASS.Text = objPlan.BALELEAVEWGTPASS;
  697. ulblSEDATIONTIME.Text = objPlan.SEDATIONTIME;
  698. ulblISADDTOP.Text = objPlan.INCLUSION;//钢包加盖改为夹杂物标准 20210802 jiangxin
  699. }
  700. /// <summary>
  701. /// 填充化学成分信息数据
  702. /// </summary>
  703. private void SetCraftElementInfo(string _smeltingID, string _DEVICE_POS,string strSteel,string strCast_ID)
  704. {
  705. string strM = "";
  706. try
  707. {
  708. // Hashtable htJob = GetHashtableForSite("BofJob");
  709. DataTable dtJob = (DataTable)arDataSource[3];
  710. if (dtJob != null)
  711. {
  712. if (dtJob.Rows.Count > 0 && _DEVICE_POS.Substring(0,1)=="C")
  713. strM = dtJob.Rows[0]["MOLIRNSOURCE"].ToString();
  714. }
  715. ucChemelEment1.ob = ob;
  716. ucChemelEment1.GetCraftEleInfo(_smeltingID, _DEVICE_POS, "S", strM);
  717. if (strSteel.Length > 0)
  718. ucChemelEment1.GetStandardElement(_smeltingID);
  719. //ucChemelEment1.GetStandardElementBySteelCode(strSteel);
  720. ucChemelEment1.FillCraftElement();
  721. ////int nRows = 0;
  722. //CraftElement objElem = (CraftElement)arDataSource[1];
  723. //string szSmelt = "";
  724. //string strStationCode = "";
  725. //szSmelt = HeatProcessNo.Substring(HeatProcessNo.Length - 8);
  726. //if (HeatProcessNo.Substring(0, 1) == "V") szSmelt = "V" + szSmelt;
  727. //strStationCode = HeatProcessNo.Substring(0, 1);
  728. //if (objElem == null || szSmelt == "")
  729. // return;
  730. //int i = 0;
  731. //#region " C标准"
  732. //if (_dtEleStd != null && this._dtEleStd.Rows.Count > 0)
  733. //{
  734. // AppendTableRows(ref _dtCraftElement);
  735. // for (int j = 0; j < this._dtEleStd.Rows.Count; j++)
  736. // {
  737. // DataRow dr = this._dtEleStd.Rows[j];
  738. // SetStandardElemData(i, dr, ref _dtCraftElement);
  739. // }
  740. // i++;
  741. //}
  742. //#endregion
  743. //#region " 实时值"
  744. //for (int j = 0; j < objElem.hList.Count; j++)
  745. //{
  746. // string strSC = ""; //化学成分岗位信息
  747. // JOB_CHEMELEMENT obj = (JOB_CHEMELEMENT)objElem.hList[j];
  748. // strSC = obj.CHECKNO.Substring(obj.CHECKNO.IndexOf("_") + 1, 1);
  749. // if (obj.HEATNO == szSmelt && strStationCode == strSC)
  750. // {
  751. // AppendTableRows(ref _dtCraftElement);
  752. // SetCraftElemGridData(i, obj, obj.CHECKNO, ref _dtCraftElement);
  753. // i++;
  754. // }
  755. //}
  756. //#endregion
  757. }
  758. catch (Exception ex)
  759. {
  760. string Msg = ex.Message;
  761. }
  762. }
  763. protected void AppendTableRows(ref DataTable ATable)
  764. {
  765. string[] sTmp = new string[ATable.Columns.Count];
  766. ATable.Rows.Add(sTmp);
  767. }
  768. protected void SetAdditiveGridData(int row, STL_COMMON_ADDITIVES obj, ref DataTable dt)
  769. {
  770. try
  771. {
  772. DataRow[] rows;
  773. string szName = "";
  774. if (_dtMaterial != null)
  775. {
  776. rows = _dtMaterial.Select(" MATERIELCODE = '" + obj.MATERIELCODE + "' and MATERIELTYPE = '" + obj.MATERIELTYPE + "'");
  777. szName = (rows.Length > 0) ? rows[0]["MATERIELFORSHORT"].ToString() : "";
  778. }
  779. dt.Rows[row]["项目名"] = szName;
  780. dt.Rows[row]["设定范围"] = "";
  781. dt.Rows[row]["实际值"] = obj.JMWGT.ToString();
  782. dt.Rows[row]["类型"] = obj.MATERIELTYPE == "FL" ? "辅料" : (obj.MATERIELTYPE == "HJ" ? "合金" : (obj.MATERIELTYPE == "GT"?"钢铁料":"喂丝"));
  783. dt.Rows[row]["岗位"] = obj.STATIONCODE.Substring(0, 1) == "C" ? "转炉" :
  784. (obj.STATIONCODE.Substring(0, 1) == "D" ? "吹氩" : (obj.STATIONCODE.Substring(0, 1) == "E" ? "精炼炉" : (obj.STATIONCODE.Substring(0,1)=="F"?"RH炉":"")));
  785. dt.Rows[row]["提示"] = "√";
  786. }
  787. catch { }
  788. }
  789. protected void SetTemperatureGridData(int row, STL_COMMON_SAMPLING obj, ref DataTable dt)
  790. {
  791. try
  792. {
  793. dt.Rows[row]["项目名"] = obj.STATIONCODE.Substring(0, 1) == "C" ? "转炉温度" : (obj.STATIONCODE.Substring(0, 1) == "D" ? "吹氩温度" :
  794. (obj.STATIONCODE.Substring(0, 1) == "E" ? "精炼炉温度" :(obj.STATIONCODE.Substring(0, 1)=="F"?"RH炉温度":
  795. (obj.STATIONCODE.Substring(0, 1) =="I" ? "VD炉温度":"连铸温度"))));
  796. dt.Rows[row]["设定范围"] = "";
  797. dt.Rows[row]["实际值"] = obj.SAMPLINGVALUE.ToString();
  798. dt.Rows[row]["提示"] = "√";
  799. }
  800. catch { }
  801. }
  802. protected void SetFCcmScwSampGridData(JOB_CCM_SCWSAMPLING obj, ref DataTable dt)
  803. {
  804. if (dt == null)
  805. return;
  806. #region "设备实时值"
  807. for (int i = 0; i < dt.Rows.Count; i++)
  808. {
  809. switch (i)
  810. {
  811. case 0:
  812. {
  813. dt.Rows[i]["拉速设"] = "";
  814. dt.Rows[i]["拉速"] = obj.S1SPEED.ToString();
  815. dt.Rows[i]["I区水设"] = "";
  816. dt.Rows[i]["I区水"] = obj.S1TWPLUX.ToString();
  817. dt.Rows[i]["II区水设"] = "";
  818. dt.Rows[i]["II区水"] = obj.S1TWPLUX1.ToString();
  819. dt.Rows[i]["Ⅲ区水设"] = "";
  820. dt.Rows[i]["Ⅲ区水"] = obj.S1TWPLUX2.ToString();
  821. dt.Rows[i]["Ⅳ区水设"] = "";
  822. dt.Rows[i]["Ⅳ区水"] = obj.S1TWPLUX3.ToString();
  823. }
  824. break;
  825. case 1:
  826. {
  827. dt.Rows[i]["拉速设"] = "";
  828. dt.Rows[i]["拉速"] = obj.S2SPEED.ToString();
  829. dt.Rows[i]["I区水设"] = "";
  830. dt.Rows[i]["I区水"] = obj.S2TWPLUX.ToString();
  831. dt.Rows[i]["II区水设"] = "";
  832. dt.Rows[i]["II区水"] = obj.S2TWPLUX1.ToString();
  833. dt.Rows[i]["Ⅲ区水设"] = "";
  834. dt.Rows[i]["Ⅲ区水"] = obj.S2TWPLUX2.ToString();
  835. dt.Rows[i]["Ⅳ区水设"] = "";
  836. dt.Rows[i]["Ⅳ区水"] = obj.S2TWPLUX3.ToString();
  837. }
  838. break;
  839. case 2:
  840. {
  841. dt.Rows[i]["拉速设"] = "";
  842. dt.Rows[i]["拉速"] = obj.S3SPEED.ToString();
  843. dt.Rows[i]["I区水设"] = "";
  844. dt.Rows[i]["I区水"] = obj.S3TWPLUX.ToString();
  845. dt.Rows[i]["II区水设"] = "";
  846. dt.Rows[i]["II区水"] = obj.S3TWPLUX1.ToString();
  847. dt.Rows[i]["Ⅲ区水设"] = "";
  848. dt.Rows[i]["Ⅲ区水"] = obj.S3TWPLUX2.ToString();
  849. dt.Rows[i]["Ⅳ区水设"] = "";
  850. dt.Rows[i]["Ⅳ区水"] = obj.S3TWPLUX3.ToString();
  851. }
  852. break;
  853. case 3:
  854. {
  855. dt.Rows[i]["拉速设"] = "";
  856. dt.Rows[i]["拉速"] = obj.S4SPEED.ToString();
  857. dt.Rows[i]["I区水设"] = "";
  858. dt.Rows[i]["I区水"] = obj.S4TWPLUX.ToString();
  859. dt.Rows[i]["II区水设"] = "";
  860. dt.Rows[i]["II区水"] = obj.S4TWPLUX1.ToString();
  861. dt.Rows[i]["Ⅲ区水设"] = "";
  862. dt.Rows[i]["Ⅲ区水"] = obj.S4TWPLUX2.ToString();
  863. dt.Rows[i]["Ⅳ区水设"] = "";
  864. dt.Rows[i]["Ⅳ区水"] = obj.S4TWPLUX3.ToString();
  865. }
  866. break;
  867. case 4:
  868. {
  869. dt.Rows[i]["拉速设"] = "";
  870. dt.Rows[i]["拉速"] = obj.S5SPEED.ToString();
  871. dt.Rows[i]["I区水设"] = "";
  872. dt.Rows[i]["I区水"] = obj.S5TWPLUX.ToString();
  873. dt.Rows[i]["II区水设"] = "";
  874. dt.Rows[i]["II区水"] = obj.S5TWPLUX1.ToString();
  875. dt.Rows[i]["Ⅲ区水设"] = "";
  876. dt.Rows[i]["Ⅲ区水"] = obj.S5TWPLUX2.ToString();
  877. dt.Rows[i]["Ⅳ区水设"] = "";
  878. dt.Rows[i]["Ⅳ区水"] = obj.S5TWPLUX3.ToString();
  879. }
  880. break;
  881. default:
  882. break;
  883. }
  884. }
  885. #endregion
  886. }
  887. protected void SetFCcmSmillSampGridData(JOB_CCM_SMILLSAMPLING obj, ref DataTable dt)
  888. {
  889. if (dt == null)
  890. return;
  891. #region "设备实时值"
  892. for (int i = 0; i < dt.Rows.Count; i++)
  893. {
  894. switch (i)
  895. {
  896. case 0:
  897. {
  898. dt.Rows[i]["水温差(晶)"] = obj.S1CETEMPT.ToString();
  899. dt.Rows[i]["水流量(晶)"] = obj.S1CEWRTRPLUX.ToString();
  900. dt.Rows[i]["振动频率(设)"] = "";
  901. dt.Rows[i]["振动频率"] = obj.S1CEVFRQNCY.ToString();
  902. dt.Rows[i]["提示"] = "√";
  903. }
  904. break;
  905. case 1:
  906. {
  907. dt.Rows[i]["水温差(晶)"] = obj.S2CETEMPT.ToString();
  908. dt.Rows[i]["水流量(晶)"] = obj.S2CEWRTRPLUX.ToString();
  909. dt.Rows[i]["振动频率(设)"] = "";
  910. dt.Rows[i]["振动频率"] = obj.S2CEVFRQNCY.ToString();
  911. dt.Rows[i]["提示"] = "√";
  912. }
  913. break;
  914. case 2:
  915. {
  916. dt.Rows[i]["水温差(晶)"] = obj.S3CETEMPT.ToString();
  917. dt.Rows[i]["水流量(晶)"] = obj.S3CEWRTRPLUX.ToString();
  918. dt.Rows[i]["振动频率(设)"] = "";
  919. dt.Rows[i]["振动频率"] = obj.S3CEVFRQNCY.ToString();
  920. dt.Rows[i]["提示"] = "√";
  921. }
  922. break;
  923. case 3:
  924. {
  925. dt.Rows[i]["水温差(晶)"] = obj.S4CETEMPT.ToString();
  926. dt.Rows[i]["水流量(晶)"] = obj.S4CEWRTRPLUX.ToString();
  927. dt.Rows[i]["振动频率(设)"] = "";
  928. dt.Rows[i]["振动频率"] = obj.S4CEVFRQNCY.ToString();
  929. dt.Rows[i]["提示"] = "√";
  930. }
  931. break;
  932. case 4:
  933. {
  934. dt.Rows[i]["水温差(晶)"] = obj.S5CETEMPT.ToString();
  935. dt.Rows[i]["水流量(晶)"] = obj.S5CEWRTRPLUX.ToString();
  936. dt.Rows[i]["振动频率(设)"] = "";
  937. dt.Rows[i]["振动频率"] = obj.S5CEVFRQNCY.ToString();
  938. dt.Rows[i]["提示"] = "√";
  939. }
  940. break;
  941. default:
  942. break;
  943. }
  944. }
  945. #endregion
  946. }
  947. protected void SetBCcmF1SampGridData(DataTable _dtDevSampling, ref DataTable crastallorTable,ref DataTable coolWaterTable)
  948. {
  949. #region "设备实时值"
  950. if (crastallorTable == null || coolWaterTable == null)
  951. return;
  952. try
  953. {
  954. if (_dtDevSampling.Rows.Count > 0)
  955. { //1流
  956. crastallorTable.Rows[0]["拉速"] = _dtDevSampling.Rows[0]["S1CASTSPEED"];
  957. crastallorTable.Rows[0]["臂重"] = _dtDevSampling.Rows[0]["ARMLADLEAWEIGHT"];
  958. crastallorTable.Rows[0]["铸坯长度"] = _dtDevSampling.Rows[0]["S1DRAWSTEELLENGTH"];
  959. crastallorTable.Rows[0]["铸坯模式(头/尾)"] = _dtDevSampling.Rows[0]["S1CASTINGLENGTH"];
  960. crastallorTable.Rows[0]["窄面右侧水流量"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERFLUX"];
  961. crastallorTable.Rows[0]["宽面内弧水流量"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERFLUX"];
  962. crastallorTable.Rows[0]["宽面外弧水流量"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERFLUX"];
  963. crastallorTable.Rows[0]["窄面左侧水流量"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERFLUX"];
  964. crastallorTable.Rows[0]["窄面右侧水压力"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERPRES"];
  965. crastallorTable.Rows[0]["宽面内弧水压力"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERPRES"];
  966. crastallorTable.Rows[0]["宽面外弧水压力"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERPRES"];
  967. crastallorTable.Rows[0]["窄面左侧水压力"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERPRES"];
  968. crastallorTable.Rows[0]["窄面右侧水温差"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERTEMPDIFF"];
  969. crastallorTable.Rows[0]["宽面内弧水温差"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERTEMPDIFF"];
  970. crastallorTable.Rows[0]["宽面外弧水温差"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERTEMPDIFF"];
  971. crastallorTable.Rows[0]["窄面左侧水温差"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERTEMPDIFF"];
  972. crastallorTable.Rows[0]["结晶器编号"] = _dtDevSampling.Rows[0]["S1CRYSTALCODE"];
  973. crastallorTable.Rows[0]["拉钢长度"] = _dtDevSampling.Rows[0]["S1CASTINGLENGTH"];
  974. crastallorTable.Rows[0]["振动台频率"] = _dtDevSampling.Rows[0]["S1CRVIBRATORFREQUENCY"];
  975. crastallorTable.Rows[0]["进水口温度"] = _dtDevSampling.Rows[0]["S1CRINWATERTEMP"];
  976. crastallorTable.Rows[0]["窄面右侧出口温度"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERTEMP"];
  977. crastallorTable.Rows[0]["宽面内弧出口温度"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERTEMP"];
  978. crastallorTable.Rows[0]["宽面外弧出口温度"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERTEMP"];
  979. crastallorTable.Rows[0]["窄面左侧出口温度"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERTEMP"];
  980. crastallorTable.Rows[0]["总压力(晶)"] = _dtDevSampling.Rows[0]["CRYLWATERTOTALPRESSURE"];
  981. crastallorTable.Rows[0]["总管压力(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALPRESSURE"];
  982. crastallorTable.Rows[0]["总管压力(设备水)"] = _dtDevSampling.Rows[0]["DEVICEWATERTOTALPRESSURE"];
  983. crastallorTable.Rows[0]["总管流量(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALFLUX"];
  984. //2流
  985. crastallorTable.Rows[1]["拉速"] = _dtDevSampling.Rows[0]["S2CASTSPEED"];
  986. crastallorTable.Rows[1]["臂重"] = _dtDevSampling.Rows[0]["ARMLADLEBWEIGHT"];
  987. crastallorTable.Rows[1]["铸坯长度"] = _dtDevSampling.Rows[0]["S2DRAWSTEELLENGTH"];
  988. crastallorTable.Rows[1]["铸坯模式(头/尾)"] = _dtDevSampling.Rows[0]["S2CASTINGLENGTH"];
  989. crastallorTable.Rows[1]["窄面右侧水流量"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERFLUX"];
  990. crastallorTable.Rows[1]["宽面内弧水流量"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERFLUX"];
  991. crastallorTable.Rows[1]["宽面外弧水流量"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERFLUX"];
  992. crastallorTable.Rows[1]["窄面左侧水流量"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERFLUX"];
  993. crastallorTable.Rows[1]["窄面右侧水压力"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERPRES"];
  994. crastallorTable.Rows[1]["宽面内弧水压力"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERPRES"];
  995. crastallorTable.Rows[1]["宽面外弧水压力"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERPRES"];
  996. crastallorTable.Rows[1]["窄面左侧水压力"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERPRES"];
  997. crastallorTable.Rows[1]["窄面右侧水温差"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERTEMPDIFF"];
  998. crastallorTable.Rows[1]["宽面内弧水温差"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERTEMPDIFF"];
  999. crastallorTable.Rows[1]["宽面外弧水温差"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERTEMPDIFF"];
  1000. crastallorTable.Rows[1]["窄面左侧水温差"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERTEMPDIFF"];
  1001. crastallorTable.Rows[1]["结晶器编号"] = _dtDevSampling.Rows[0]["S2CRYSTALCODE"];
  1002. crastallorTable.Rows[1]["拉钢长度"] = _dtDevSampling.Rows[0]["S2CASTINGLENGTH"];
  1003. crastallorTable.Rows[1]["振动台频率"] = _dtDevSampling.Rows[0]["S2CRVIBRATORFREQUENCY"];
  1004. crastallorTable.Rows[1]["进水口温度"] = _dtDevSampling.Rows[0]["S2CRINWATERTEMP"];
  1005. crastallorTable.Rows[1]["窄面右侧出口温度"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERTEMP"];
  1006. crastallorTable.Rows[1]["宽面内弧出口温度"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERTEMP"];
  1007. crastallorTable.Rows[1]["宽面外弧出口温度"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERTEMP"];
  1008. crastallorTable.Rows[1]["窄面左侧出口温度"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERTEMP"];
  1009. crastallorTable.Rows[1]["总压力(晶)"] = _dtDevSampling.Rows[0]["CRYLWATERTOTALPRESSURE"];
  1010. crastallorTable.Rows[1]["总管压力(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALPRESSURE"];
  1011. crastallorTable.Rows[1]["总管压力(设备水)"] = _dtDevSampling.Rows[0]["DEVICEWATERTOTALPRESSURE"];
  1012. crastallorTable.Rows[1]["总管流量(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALFLUX"];
  1013. //二冷水流量
  1014. coolWaterTable.Rows[0]["I足辊左右"] = _dtDevSampling.Rows[0]["S1SEG1WATERNARROWLRFLUX"];
  1015. coolWaterTable.Rows[0]["I内外弧"] = _dtDevSampling.Rows[0]["S1SEG1WATERARCFLUX"];
  1016. coolWaterTable.Rows[0]["II内外弧"] = _dtDevSampling.Rows[0]["S1SEG2WATERARCFLUX"];
  1017. coolWaterTable.Rows[0]["III内弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCEFLUX"];
  1018. coolWaterTable.Rows[0]["III内弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCMFLUX"];
  1019. coolWaterTable.Rows[0]["III外弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCEFLUX"];
  1020. coolWaterTable.Rows[0]["III外弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCMFLUX"];
  1021. coolWaterTable.Rows[0]["IV内弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCEFLUX"];
  1022. coolWaterTable.Rows[0]["IV内弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCMFLUX"];
  1023. coolWaterTable.Rows[0]["IV外弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCEFLUX"];
  1024. coolWaterTable.Rows[0]["IV外弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCMFLUX"];
  1025. coolWaterTable.Rows[0]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCEFLUX"];
  1026. coolWaterTable.Rows[0]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCMFLUX"];
  1027. coolWaterTable.Rows[0]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCEFLUX"];
  1028. coolWaterTable.Rows[0]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCMFLUX"];
  1029. coolWaterTable.Rows[0]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCEFLUX"];
  1030. coolWaterTable.Rows[0]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCMFLUX"];
  1031. coolWaterTable.Rows[0]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCEFLUX"];
  1032. coolWaterTable.Rows[0]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCMFLUX"];
  1033. coolWaterTable.Rows[0]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCEFLUX"];
  1034. coolWaterTable.Rows[0]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCMFLUX"];
  1035. coolWaterTable.Rows[0]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCEFLUX"];
  1036. coolWaterTable.Rows[0]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCMFLUX"];
  1037. coolWaterTable.Rows[0]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCEFLUX"];
  1038. coolWaterTable.Rows[0]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCMFLUX"];
  1039. coolWaterTable.Rows[0]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCEFLUX"];
  1040. coolWaterTable.Rows[0]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCMFLUX"];
  1041. //二冷水压力
  1042. coolWaterTable.Rows[1]["I足辊左右"] = _dtDevSampling.Rows[0]["S1SEG1WATERNARROWLRPRES"];
  1043. coolWaterTable.Rows[1]["I内外弧"] = _dtDevSampling.Rows[0]["S1SEG1WATERARCPRES"];
  1044. coolWaterTable.Rows[1]["II内外弧"] = _dtDevSampling.Rows[0]["S1SEG2WATERARCPRES"];
  1045. coolWaterTable.Rows[1]["III内弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCEPRES"];
  1046. coolWaterTable.Rows[1]["III内弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCMPRES"];
  1047. coolWaterTable.Rows[1]["III外弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCEPRES"];
  1048. coolWaterTable.Rows[1]["III外弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCMPRES"];
  1049. coolWaterTable.Rows[1]["IV内弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCEPRES"];
  1050. coolWaterTable.Rows[1]["IV内弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCMPRES"];
  1051. coolWaterTable.Rows[1]["IV外弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCEPRES"];
  1052. coolWaterTable.Rows[1]["IV外弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCMPRES"];
  1053. coolWaterTable.Rows[1]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCEPRES"];
  1054. coolWaterTable.Rows[1]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCMPRES"];
  1055. coolWaterTable.Rows[1]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCEPRES"];
  1056. coolWaterTable.Rows[1]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCMPRES"];
  1057. coolWaterTable.Rows[1]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCEPRES"];
  1058. coolWaterTable.Rows[1]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCMPRES"];
  1059. coolWaterTable.Rows[1]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCEPRES"];
  1060. coolWaterTable.Rows[1]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCMPRES"];
  1061. coolWaterTable.Rows[1]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCEPRES"];
  1062. coolWaterTable.Rows[1]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCMPRES"];
  1063. coolWaterTable.Rows[1]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCEPRES"];
  1064. coolWaterTable.Rows[1]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCMPRES"];
  1065. coolWaterTable.Rows[1]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCEPRES"];
  1066. coolWaterTable.Rows[1]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCMPRES"];
  1067. coolWaterTable.Rows[1]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCEPRES"];
  1068. coolWaterTable.Rows[1]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCMPRES"];
  1069. coolWaterTable.Rows[0]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S1SEG9WATERINNERARCFLUX"];
  1070. coolWaterTable.Rows[0]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S1SEG9WATEROUTSIDEARCFLUX"];
  1071. coolWaterTable.Rows[0]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S1SEG10WATERINNERARCFLUX"];
  1072. coolWaterTable.Rows[0]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S1SEG10WATEROUTSIDEARCFLUX"];
  1073. coolWaterTable.Rows[1]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S1SEG9WATERINNERARCPRES"];
  1074. coolWaterTable.Rows[1]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S1SEG9WATEROUTSIDEARCPRES"];
  1075. coolWaterTable.Rows[1]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S1SEG10WATERINNERARCPRES"];
  1076. coolWaterTable.Rows[1]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S1SEG10WATEROUTSIDEARCPRES"];
  1077. //二冷水流量
  1078. coolWaterTable.Rows[2]["I足辊左右"] = _dtDevSampling.Rows[0]["S2SEG1WATERNARROWLRFLUX"];
  1079. coolWaterTable.Rows[2]["I内外弧"] = _dtDevSampling.Rows[0]["S2SEG1WATERARCFLUX"];
  1080. coolWaterTable.Rows[2]["II内外弧"] = _dtDevSampling.Rows[0]["S2SEG2WATERARCFLUX"];
  1081. coolWaterTable.Rows[2]["III内弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCEFLUX"];
  1082. coolWaterTable.Rows[2]["III内弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCMFLUX"];
  1083. coolWaterTable.Rows[2]["III外弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCEFLUX"];
  1084. coolWaterTable.Rows[2]["III外弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCMFLUX"];
  1085. coolWaterTable.Rows[2]["IV内弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCEFLUX"];
  1086. coolWaterTable.Rows[2]["IV内弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCMFLUX"];
  1087. coolWaterTable.Rows[2]["IV外弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCEFLUX"];
  1088. coolWaterTable.Rows[2]["IV外弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCMFLUX"];
  1089. coolWaterTable.Rows[2]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCEFLUX"];
  1090. coolWaterTable.Rows[2]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCMFLUX"];
  1091. coolWaterTable.Rows[2]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCEFLUX"];
  1092. coolWaterTable.Rows[2]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCMFLUX"];
  1093. coolWaterTable.Rows[2]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCEFLUX"];
  1094. coolWaterTable.Rows[2]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCMFLUX"];
  1095. coolWaterTable.Rows[2]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCEFLUX"];
  1096. coolWaterTable.Rows[2]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCMFLUX"];
  1097. coolWaterTable.Rows[2]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCEFLUX"];
  1098. coolWaterTable.Rows[2]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCMFLUX"];
  1099. coolWaterTable.Rows[2]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCEFLUX"];
  1100. coolWaterTable.Rows[2]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCMFLUX"];
  1101. coolWaterTable.Rows[2]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCEFLUX"];
  1102. coolWaterTable.Rows[2]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCMFLUX"];
  1103. coolWaterTable.Rows[2]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCEFLUX"];
  1104. coolWaterTable.Rows[2]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCMFLUX"];
  1105. coolWaterTable.Rows[2]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S2SEG9WATERINNERARCFLUX"];
  1106. coolWaterTable.Rows[2]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S2SEG9WATEROUTSIDEARCFLUX"];
  1107. coolWaterTable.Rows[2]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S2SEG10WATERINNERARCFLUX"];
  1108. coolWaterTable.Rows[2]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S1SEG10WATEROUTSIDEARCFLUX"];
  1109. //二冷水压力
  1110. coolWaterTable.Rows[3]["I足辊左右"] = _dtDevSampling.Rows[0]["S2SEG1WATERNARROWLRPRES"];
  1111. coolWaterTable.Rows[3]["I内外弧"] = _dtDevSampling.Rows[0]["S2SEG1WATERARCPRES"];
  1112. coolWaterTable.Rows[3]["II内外弧"] = _dtDevSampling.Rows[0]["S2SEG2WATERARCPRES"];
  1113. coolWaterTable.Rows[3]["III内弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCEPRES"];
  1114. coolWaterTable.Rows[3]["III内弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCMPRES"];
  1115. coolWaterTable.Rows[3]["III外弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCEPRES"];
  1116. coolWaterTable.Rows[3]["III外弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCMPRES"];
  1117. coolWaterTable.Rows[3]["IV内弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCEPRES"];
  1118. coolWaterTable.Rows[3]["IV内弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCMPRES"];
  1119. coolWaterTable.Rows[3]["IV外弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCEPRES"];
  1120. coolWaterTable.Rows[3]["IV外弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCMPRES"];
  1121. coolWaterTable.Rows[3]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCEPRES"];
  1122. coolWaterTable.Rows[3]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCMPRES"];
  1123. coolWaterTable.Rows[3]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCEPRES"];
  1124. coolWaterTable.Rows[3]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCMPRES"];
  1125. coolWaterTable.Rows[3]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCEPRES"];
  1126. coolWaterTable.Rows[3]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCMPRES"];
  1127. coolWaterTable.Rows[3]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCEPRES"];
  1128. coolWaterTable.Rows[3]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCMPRES"];
  1129. coolWaterTable.Rows[3]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCEPRES"];
  1130. coolWaterTable.Rows[3]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCMPRES"];
  1131. coolWaterTable.Rows[3]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCEPRES"];
  1132. coolWaterTable.Rows[3]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCMPRES"];
  1133. coolWaterTable.Rows[3]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCEPRES"];
  1134. coolWaterTable.Rows[3]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCMPRES"];
  1135. coolWaterTable.Rows[3]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCEPRES"];
  1136. coolWaterTable.Rows[3]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCMPRES"];
  1137. coolWaterTable.Rows[3]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S2SEG9WATERINNERARCPRES"];
  1138. coolWaterTable.Rows[3]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S2SEG9WATEROUTSIDEARCPRES"];
  1139. coolWaterTable.Rows[3]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S2SEG10WATERINNERARCPRES"];
  1140. coolWaterTable.Rows[3]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S2SEG10WATEROUTSIDEARCPRES"];
  1141. coolWaterTable.Rows[0]["2-3区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR2TO3ARCMPRES"];
  1142. coolWaterTable.Rows[0]["3区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR3ARCEPRES"];
  1143. coolWaterTable.Rows[0]["4-8区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR4TO8ARCMPRES"];
  1144. coolWaterTable.Rows[0]["4-8区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR4TO8ARCEPRES"];
  1145. coolWaterTable.Rows[0]["9-10区内外弧压力"] = _dtDevSampling.Rows[0]["S1SEGAIR9TO10ARCPRES"];
  1146. coolWaterTable.Rows[3]["2-3区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR2TO3ARCMPRES"];
  1147. coolWaterTable.Rows[3]["3区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR3ARCEPRES"];
  1148. coolWaterTable.Rows[3]["4-8区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR4TO8ARCMPRES"];
  1149. coolWaterTable.Rows[3]["4-8区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR4TO8ARCEPRES"];
  1150. coolWaterTable.Rows[3]["9-10区内外弧压力"] = _dtDevSampling.Rows[0]["S2SEGAIR9TO10ARCPRES"];
  1151. }
  1152. }
  1153. catch (Exception ex)
  1154. {
  1155. string Msg = ex.Message;
  1156. }
  1157. #endregion
  1158. }
  1159. protected void SetBCcmF2SampGridData(DataTable _dtDevSampling, ref DataTable crastallorTable, ref DataTable coolWaterTable)
  1160. {
  1161. #region "设备实时值"
  1162. if (crastallorTable == null || coolWaterTable == null)
  1163. return;
  1164. try
  1165. {
  1166. if (_dtDevSampling.Rows.Count > 0)
  1167. { //1流
  1168. crastallorTable.Rows[0]["拉速"] = _dtDevSampling.Rows[0]["S1CASTSPEED"];
  1169. crastallorTable.Rows[0]["臂重"] = _dtDevSampling.Rows[0]["ARMLADLEAWEIGHT"];
  1170. crastallorTable.Rows[0]["铸坯长度"] = _dtDevSampling.Rows[0]["S1DRAWSTEELLENGTH"];
  1171. crastallorTable.Rows[0]["铸坯模式(头/尾)"] = _dtDevSampling.Rows[0]["S1CASTINGLENGTH"];
  1172. crastallorTable.Rows[0]["窄面右侧水流量"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERFLUX"];
  1173. crastallorTable.Rows[0]["宽面内弧水流量"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERFLUX"];
  1174. crastallorTable.Rows[0]["宽面外弧水流量"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERFLUX"];
  1175. crastallorTable.Rows[0]["窄面左侧水流量"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERFLUX"];
  1176. crastallorTable.Rows[0]["窄面右侧水压力"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERPRES"];
  1177. crastallorTable.Rows[0]["宽面内弧水压力"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERPRES"];
  1178. crastallorTable.Rows[0]["宽面外弧水压力"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERPRES"];
  1179. crastallorTable.Rows[0]["窄面左侧水压力"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERPRES"];
  1180. crastallorTable.Rows[0]["窄面右侧水温差"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERTEMPDIFF"];
  1181. crastallorTable.Rows[0]["宽面内弧水温差"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERTEMPDIFF"];
  1182. crastallorTable.Rows[0]["宽面外弧水温差"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERTEMPDIFF"];
  1183. crastallorTable.Rows[0]["窄面左侧水温差"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERTEMPDIFF"];
  1184. crastallorTable.Rows[0]["结晶器编号"] = _dtDevSampling.Rows[0]["S1CRYSTALCODE"];
  1185. crastallorTable.Rows[0]["拉钢长度"] = _dtDevSampling.Rows[0]["S1CASTINGLENGTH"];
  1186. crastallorTable.Rows[0]["振动台频率"] = _dtDevSampling.Rows[0]["S1CRVIBRATORFREQUENCY"];
  1187. crastallorTable.Rows[0]["进水口温度"] = _dtDevSampling.Rows[0]["S1CRINWATERTEMP"];
  1188. crastallorTable.Rows[0]["窄面右侧出口温度"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERTEMP"];
  1189. crastallorTable.Rows[0]["宽面内弧出口温度"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERTEMP"];
  1190. crastallorTable.Rows[0]["宽面外弧出口温度"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERTEMP"];
  1191. crastallorTable.Rows[0]["窄面左侧出口温度"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERTEMP"];
  1192. crastallorTable.Rows[0]["总压力(晶)"] = _dtDevSampling.Rows[0]["CRYLWATERTOTALPRESSURE"];
  1193. crastallorTable.Rows[0]["总管压力(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALPRESSURE"];
  1194. crastallorTable.Rows[0]["总管压力(设备水)"] = _dtDevSampling.Rows[0]["DEVICEWATERTOTALPRESSURE"];
  1195. crastallorTable.Rows[0]["总管流量(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALFLUX"];
  1196. //2流
  1197. crastallorTable.Rows[1]["拉速"] = _dtDevSampling.Rows[0]["S2CASTSPEED"];
  1198. crastallorTable.Rows[1]["臂重"] = _dtDevSampling.Rows[0]["ARMLADLEBWEIGHT"];
  1199. crastallorTable.Rows[1]["铸坯长度"] = _dtDevSampling.Rows[0]["S2DRAWSTEELLENGTH"];
  1200. crastallorTable.Rows[1]["铸坯模式(头/尾)"] = _dtDevSampling.Rows[0]["S2CASTINGLENGTH"];
  1201. crastallorTable.Rows[1]["窄面右侧水流量"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERFLUX"];
  1202. crastallorTable.Rows[1]["宽面内弧水流量"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERFLUX"];
  1203. crastallorTable.Rows[1]["宽面外弧水流量"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERFLUX"];
  1204. crastallorTable.Rows[1]["窄面左侧水流量"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERFLUX"];
  1205. crastallorTable.Rows[1]["窄面右侧水压力"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERPRES"];
  1206. crastallorTable.Rows[1]["宽面内弧水压力"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERPRES"];
  1207. crastallorTable.Rows[1]["宽面外弧水压力"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERPRES"];
  1208. crastallorTable.Rows[1]["窄面左侧水压力"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERPRES"];
  1209. crastallorTable.Rows[1]["窄面右侧水温差"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERTEMPDIFF"];
  1210. crastallorTable.Rows[1]["宽面内弧水温差"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERTEMPDIFF"];
  1211. crastallorTable.Rows[1]["宽面外弧水温差"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERTEMPDIFF"];
  1212. crastallorTable.Rows[1]["窄面左侧水温差"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERTEMPDIFF"];
  1213. crastallorTable.Rows[1]["结晶器编号"] = _dtDevSampling.Rows[0]["S2CRYSTALCODE"];
  1214. crastallorTable.Rows[1]["拉钢长度"] = _dtDevSampling.Rows[0]["S2CASTINGLENGTH"];
  1215. crastallorTable.Rows[1]["振动台频率"] = _dtDevSampling.Rows[0]["S2CRVIBRATORFREQUENCY"];
  1216. crastallorTable.Rows[1]["进水口温度"] = _dtDevSampling.Rows[0]["S2CRINWATERTEMP"];
  1217. crastallorTable.Rows[1]["窄面右侧出口温度"] = _dtDevSampling.Rows[0]["S2CRNARROWROUTWATERTEMP"];
  1218. crastallorTable.Rows[1]["宽面内弧出口温度"] = _dtDevSampling.Rows[0]["S2CRINNERARCWATERTEMP"];
  1219. crastallorTable.Rows[1]["宽面外弧出口温度"] = _dtDevSampling.Rows[0]["S2CROUTSIDEARCWATERTEMP"];
  1220. crastallorTable.Rows[1]["窄面左侧出口温度"] = _dtDevSampling.Rows[0]["S2CRNARROWLOUTWATERTEMP"];
  1221. crastallorTable.Rows[1]["总压力(晶)"] = _dtDevSampling.Rows[0]["CRYLWATERTOTALPRESSURE"];
  1222. crastallorTable.Rows[1]["总管压力(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALPRESSURE"];
  1223. crastallorTable.Rows[1]["总管压力(设备水)"] = _dtDevSampling.Rows[0]["DEVICEWATERTOTALPRESSURE"];
  1224. crastallorTable.Rows[1]["总管流量(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALFLUX"];
  1225. //二冷水流量
  1226. coolWaterTable.Rows[0]["I足辊左右"] = _dtDevSampling.Rows[0]["S1SEG1WATERNARROWLRFLUX"];
  1227. coolWaterTable.Rows[0]["I内外弧"] = _dtDevSampling.Rows[0]["S1SEG1WATERARCFLUX"];
  1228. coolWaterTable.Rows[0]["II内外弧"] = _dtDevSampling.Rows[0]["S1SEG2WATERARCFLUX"];
  1229. coolWaterTable.Rows[0]["III内弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCEFLUX"];
  1230. coolWaterTable.Rows[0]["III内弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCMFLUX"];
  1231. coolWaterTable.Rows[0]["III外弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCEFLUX"];
  1232. coolWaterTable.Rows[0]["III外弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCMFLUX"];
  1233. coolWaterTable.Rows[0]["IV内弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCEFLUX"];
  1234. coolWaterTable.Rows[0]["IV内弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCMFLUX"];
  1235. coolWaterTable.Rows[0]["IV外弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCEFLUX"];
  1236. coolWaterTable.Rows[0]["IV外弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCMFLUX"];
  1237. coolWaterTable.Rows[0]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCEFLUX"];
  1238. coolWaterTable.Rows[0]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCMFLUX"];
  1239. coolWaterTable.Rows[0]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCEFLUX"];
  1240. coolWaterTable.Rows[0]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCMFLUX"];
  1241. coolWaterTable.Rows[0]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCEFLUX"];
  1242. coolWaterTable.Rows[0]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCMFLUX"];
  1243. coolWaterTable.Rows[0]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCEFLUX"];
  1244. coolWaterTable.Rows[0]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCMFLUX"];
  1245. coolWaterTable.Rows[0]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCEFLUX"];
  1246. coolWaterTable.Rows[0]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCMFLUX"];
  1247. coolWaterTable.Rows[0]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCEFLUX"];
  1248. coolWaterTable.Rows[0]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCMFLUX"];
  1249. coolWaterTable.Rows[0]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCEFLUX"];
  1250. coolWaterTable.Rows[0]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCMFLUX"];
  1251. coolWaterTable.Rows[0]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCEFLUX"];
  1252. coolWaterTable.Rows[0]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCMFLUX"];
  1253. //二冷水压力
  1254. coolWaterTable.Rows[1]["I足辊左右"] = _dtDevSampling.Rows[0]["S1SEG1WATERNARROWLRPRES"];
  1255. coolWaterTable.Rows[1]["I内外弧"] = _dtDevSampling.Rows[0]["S1SEG1WATERARCPRES"];
  1256. coolWaterTable.Rows[1]["II内外弧"] = _dtDevSampling.Rows[0]["S1SEG2WATERARCPRES"];
  1257. coolWaterTable.Rows[1]["III内弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCEPRES"];
  1258. coolWaterTable.Rows[1]["III内弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCMPRES"];
  1259. coolWaterTable.Rows[1]["III外弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCEPRES"];
  1260. coolWaterTable.Rows[1]["III外弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCMPRES"];
  1261. coolWaterTable.Rows[1]["IV内弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCEPRES"];
  1262. coolWaterTable.Rows[1]["IV内弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCMPRES"];
  1263. coolWaterTable.Rows[1]["IV外弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCEPRES"];
  1264. coolWaterTable.Rows[1]["IV外弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCMPRES"];
  1265. coolWaterTable.Rows[1]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCEPRES"];
  1266. coolWaterTable.Rows[1]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCMPRES"];
  1267. coolWaterTable.Rows[1]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCEPRES"];
  1268. coolWaterTable.Rows[1]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCMPRES"];
  1269. coolWaterTable.Rows[1]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCEPRES"];
  1270. coolWaterTable.Rows[1]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCMPRES"];
  1271. coolWaterTable.Rows[1]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCEPRES"];
  1272. coolWaterTable.Rows[1]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCMPRES"];
  1273. coolWaterTable.Rows[1]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCEPRES"];
  1274. coolWaterTable.Rows[1]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCMPRES"];
  1275. coolWaterTable.Rows[1]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCEPRES"];
  1276. coolWaterTable.Rows[1]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCMPRES"];
  1277. coolWaterTable.Rows[1]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCEPRES"];
  1278. coolWaterTable.Rows[1]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCMPRES"];
  1279. coolWaterTable.Rows[1]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCEPRES"];
  1280. coolWaterTable.Rows[1]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCMPRES"];
  1281. coolWaterTable.Rows[0]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S1SEG9WATERINNERARCFLUX"];
  1282. coolWaterTable.Rows[0]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S1SEG9WATEROUTSIDEARCFLUX"];
  1283. coolWaterTable.Rows[0]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S1SEG10WATERINNERARCFLUX"];
  1284. coolWaterTable.Rows[0]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S1SEG10WATEROUTSIDEARCFLUX"];
  1285. coolWaterTable.Rows[1]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S1SEG9WATERINNERARCPRES"];
  1286. coolWaterTable.Rows[1]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S1SEG9WATEROUTSIDEARCPRES"];
  1287. coolWaterTable.Rows[1]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S1SEG10WATERINNERARCPRES"];
  1288. coolWaterTable.Rows[1]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S1SEG10WATEROUTSIDEARCPRES"];
  1289. //二冷水流量
  1290. coolWaterTable.Rows[2]["I足辊左右"] = _dtDevSampling.Rows[0]["S2SEG1WATERNARROWLRFLUX"];
  1291. coolWaterTable.Rows[2]["I内外弧"] = _dtDevSampling.Rows[0]["S2SEG1WATERARCFLUX"];
  1292. coolWaterTable.Rows[2]["II内外弧"] = _dtDevSampling.Rows[0]["S2SEG2WATERARCFLUX"];
  1293. coolWaterTable.Rows[2]["III内弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCEFLUX"];
  1294. coolWaterTable.Rows[2]["III内弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCMFLUX"];
  1295. coolWaterTable.Rows[2]["III外弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCEFLUX"];
  1296. coolWaterTable.Rows[2]["III外弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCMFLUX"];
  1297. coolWaterTable.Rows[2]["IV内弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCEFLUX"];
  1298. coolWaterTable.Rows[2]["IV内弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCMFLUX"];
  1299. coolWaterTable.Rows[2]["IV外弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCEFLUX"];
  1300. coolWaterTable.Rows[2]["IV外弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCMFLUX"];
  1301. coolWaterTable.Rows[2]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCEFLUX"];
  1302. coolWaterTable.Rows[2]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCMFLUX"];
  1303. coolWaterTable.Rows[2]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCEFLUX"];
  1304. coolWaterTable.Rows[2]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCMFLUX"];
  1305. coolWaterTable.Rows[2]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCEFLUX"];
  1306. coolWaterTable.Rows[2]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCMFLUX"];
  1307. coolWaterTable.Rows[2]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCEFLUX"];
  1308. coolWaterTable.Rows[2]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCMFLUX"];
  1309. coolWaterTable.Rows[2]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCEFLUX"];
  1310. coolWaterTable.Rows[2]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCMFLUX"];
  1311. coolWaterTable.Rows[2]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCEFLUX"];
  1312. coolWaterTable.Rows[2]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCMFLUX"];
  1313. coolWaterTable.Rows[2]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCEFLUX"];
  1314. coolWaterTable.Rows[2]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCMFLUX"];
  1315. coolWaterTable.Rows[2]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCEFLUX"];
  1316. coolWaterTable.Rows[2]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCMFLUX"];
  1317. coolWaterTable.Rows[2]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S2SEG9WATERINNERARCFLUX"];
  1318. coolWaterTable.Rows[2]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S2SEG9WATEROUTSIDEARCFLUX"];
  1319. coolWaterTable.Rows[2]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S2SEG10WATERINNERARCFLUX"];
  1320. coolWaterTable.Rows[2]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S1SEG10WATEROUTSIDEARCFLUX"];
  1321. //二冷水压力
  1322. coolWaterTable.Rows[3]["I足辊左右"] = _dtDevSampling.Rows[0]["S2SEG1WATERNARROWLRPRES"];
  1323. coolWaterTable.Rows[3]["I内外弧"] = _dtDevSampling.Rows[0]["S2SEG1WATERARCPRES"];
  1324. coolWaterTable.Rows[3]["II内外弧"] = _dtDevSampling.Rows[0]["S2SEG2WATERARCPRES"];
  1325. coolWaterTable.Rows[3]["III内弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCEPRES"];
  1326. coolWaterTable.Rows[3]["III内弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATERINNERARCMPRES"];
  1327. coolWaterTable.Rows[3]["III外弧边部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCEPRES"];
  1328. coolWaterTable.Rows[3]["III外弧中部"] = _dtDevSampling.Rows[0]["S2SEG3WATEROUTSIDEARCMPRES"];
  1329. coolWaterTable.Rows[3]["IV内弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCEPRES"];
  1330. coolWaterTable.Rows[3]["IV内弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATERINNERARCMPRES"];
  1331. coolWaterTable.Rows[3]["IV外弧边部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCEPRES"];
  1332. coolWaterTable.Rows[3]["IV外弧中部"] = _dtDevSampling.Rows[0]["S2SEG4WATEROUTSIDEARCMPRES"];
  1333. coolWaterTable.Rows[3]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCEPRES"];
  1334. coolWaterTable.Rows[3]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATERINNERARCMPRES"];
  1335. coolWaterTable.Rows[3]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCEPRES"];
  1336. coolWaterTable.Rows[3]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG5WATEROUTSIDEARCMPRES"];
  1337. coolWaterTable.Rows[3]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCEPRES"];
  1338. coolWaterTable.Rows[3]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATERINNERARCMPRES"];
  1339. coolWaterTable.Rows[3]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCEPRES"];
  1340. coolWaterTable.Rows[3]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG6WATEROUTSIDEARCMPRES"];
  1341. coolWaterTable.Rows[3]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCEPRES"];
  1342. coolWaterTable.Rows[3]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATERINNERARCMPRES"];
  1343. coolWaterTable.Rows[3]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCEPRES"];
  1344. coolWaterTable.Rows[3]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG7WATEROUTSIDEARCMPRES"];
  1345. coolWaterTable.Rows[3]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCEPRES"];
  1346. coolWaterTable.Rows[3]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATERINNERARCMPRES"];
  1347. coolWaterTable.Rows[3]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCEPRES"];
  1348. coolWaterTable.Rows[3]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S2SEG8WATEROUTSIDEARCMPRES"];
  1349. coolWaterTable.Rows[3]["Ⅸ内弧"] = _dtDevSampling.Rows[0]["S2SEG9WATERINNERARCPRES"];
  1350. coolWaterTable.Rows[3]["Ⅸ外弧"] = _dtDevSampling.Rows[0]["S2SEG9WATEROUTSIDEARCPRES"];
  1351. coolWaterTable.Rows[3]["Ⅹ内弧"] = _dtDevSampling.Rows[0]["S2SEG10WATERINNERARCPRES"];
  1352. coolWaterTable.Rows[3]["Ⅹ外弧"] = _dtDevSampling.Rows[0]["S2SEG10WATEROUTSIDEARCPRES"];
  1353. coolWaterTable.Rows[0]["2-3区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR2TO3ARCMPRES"];
  1354. coolWaterTable.Rows[0]["3区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR3ARCEPRES"];
  1355. coolWaterTable.Rows[0]["4-8区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR4TO8ARCMPRES"];
  1356. coolWaterTable.Rows[0]["4-8区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR4TO8ARCEPRES"];
  1357. coolWaterTable.Rows[0]["9-10区内外弧压力"] = _dtDevSampling.Rows[0]["S1SEGAIR9TO10ARCPRES"];
  1358. coolWaterTable.Rows[3]["2-3区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR2TO3ARCMPRES"];
  1359. coolWaterTable.Rows[3]["3区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR3ARCEPRES"];
  1360. coolWaterTable.Rows[3]["4-8区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR4TO8ARCMPRES"];
  1361. coolWaterTable.Rows[3]["4-8区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S2SEGAIR4TO8ARCEPRES"];
  1362. coolWaterTable.Rows[3]["9-10区内外弧压力"] = _dtDevSampling.Rows[0]["S2SEGAIR9TO10ARCPRES"];
  1363. }
  1364. }
  1365. catch (Exception ex)
  1366. {
  1367. string Msg = ex.Message;
  1368. }
  1369. #endregion
  1370. }
  1371. protected void SetBCcmF3SampGridData(DataTable _dtDevSampling, ref DataTable crastallorTable)
  1372. {
  1373. #region "设备实时值"
  1374. if (crastallorTable == null || coolWaterTable == null)
  1375. return;
  1376. try
  1377. {
  1378. if (_dtDevSampling.Rows.Count > 0)
  1379. {
  1380. //1流
  1381. crastallorTable.Rows[0]["拉速"] = _dtDevSampling.Rows[0]["S1CASTSPEED"];
  1382. crastallorTable.Rows[0]["臂重"] = _dtDevSampling.Rows[0]["ARMLADLEAWEIGHT"];
  1383. crastallorTable.Rows[0]["铸坯长度"] = _dtDevSampling.Rows[0]["S1DRAWSTEELLENGTH"];
  1384. crastallorTable.Rows[0]["铸坯模式(头/尾)"] = _dtDevSampling.Rows[0]["S1CASTINGLENGTH"];
  1385. crastallorTable.Rows[0]["窄面右侧水流量"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERFLUX"];
  1386. crastallorTable.Rows[0]["宽面内弧水流量"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERFLUX"];
  1387. crastallorTable.Rows[0]["宽面外弧水流量"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERFLUX"];
  1388. crastallorTable.Rows[0]["窄面左侧水流量"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERFLUX"];
  1389. crastallorTable.Rows[0]["窄面右侧水压力"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERPRES"];
  1390. crastallorTable.Rows[0]["宽面内弧水压力"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERPRES"];
  1391. crastallorTable.Rows[0]["宽面外弧水压力"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERPRES"];
  1392. crastallorTable.Rows[0]["窄面左侧水压力"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERPRES"];
  1393. crastallorTable.Rows[0]["窄面右侧水温差"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERTEMPDIFF"];
  1394. crastallorTable.Rows[0]["宽面内弧水温差"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERTEMPDIFF"];
  1395. crastallorTable.Rows[0]["宽面外弧水温差"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERTEMPDIFF"];
  1396. crastallorTable.Rows[0]["窄面左侧水温差"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERTEMPDIFF"];
  1397. crastallorTable.Rows[0]["结晶器编号"] = _dtDevSampling.Rows[0]["S1CRYSTALCODE"];
  1398. crastallorTable.Rows[0]["拉钢长度"] = _dtDevSampling.Rows[0]["S1CASTINGLENGTH"];
  1399. crastallorTable.Rows[0]["振动台频率"] = _dtDevSampling.Rows[0]["S1CRVIBRATORFREQUENCY"];
  1400. crastallorTable.Rows[0]["进水口温度"] = _dtDevSampling.Rows[0]["S1CRINWATERTEMP"];
  1401. crastallorTable.Rows[0]["窄面右侧出口温度"] = _dtDevSampling.Rows[0]["S1CRNARROWROUTWATERTEMP"];
  1402. crastallorTable.Rows[0]["宽面内弧出口温度"] = _dtDevSampling.Rows[0]["S1CRINNERARCWATERTEMP"];
  1403. crastallorTable.Rows[0]["宽面外弧出口温度"] = _dtDevSampling.Rows[0]["S1CROUTSIDEARCWATERTEMP"];
  1404. crastallorTable.Rows[0]["窄面左侧出口温度"] = _dtDevSampling.Rows[0]["S1CRNARROWLOUTWATERTEMP"];
  1405. crastallorTable.Rows[0]["总压力(晶)"] = _dtDevSampling.Rows[0]["CRYLWATERTOTALPRESSURE"];
  1406. crastallorTable.Rows[0]["总管压力(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALPRESSURE"];
  1407. crastallorTable.Rows[0]["总管压力(设备水)"] = _dtDevSampling.Rows[0]["DEVICEWATERTOTALPRESSURE"];
  1408. crastallorTable.Rows[0]["总管流量(二冷)"] = _dtDevSampling.Rows[0]["COOLWATERTOTALFLUX"];
  1409. //二冷水流量
  1410. coolWaterTable.Rows[0]["I足辊左右"] = _dtDevSampling.Rows[0]["S1SEG1WATERNARROWLRFLUX"];
  1411. coolWaterTable.Rows[0]["I内外弧"] = _dtDevSampling.Rows[0]["S1SEG1WATERARCFLUX"];
  1412. coolWaterTable.Rows[0]["II内外弧"] = _dtDevSampling.Rows[0]["S1SEG2WATERARCFLUX"];
  1413. coolWaterTable.Rows[0]["III内弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCEFLUX"];
  1414. coolWaterTable.Rows[0]["III内弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCMFLUX"];
  1415. coolWaterTable.Rows[0]["III外弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCEFLUX"];
  1416. coolWaterTable.Rows[0]["III外弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCMFLUX"];
  1417. coolWaterTable.Rows[0]["IV内弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCEFLUX"];
  1418. coolWaterTable.Rows[0]["IV内弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCMFLUX"];
  1419. coolWaterTable.Rows[0]["IV外弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCEFLUX"];
  1420. coolWaterTable.Rows[0]["IV外弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCMFLUX"];
  1421. coolWaterTable.Rows[0]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCEFLUX"];
  1422. coolWaterTable.Rows[0]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCMFLUX"];
  1423. coolWaterTable.Rows[0]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCEFLUX"];
  1424. coolWaterTable.Rows[0]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCMFLUX"];
  1425. coolWaterTable.Rows[0]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCEFLUX"];
  1426. coolWaterTable.Rows[0]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCMFLUX"];
  1427. coolWaterTable.Rows[0]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCEFLUX"];
  1428. coolWaterTable.Rows[0]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCMFLUX"];
  1429. coolWaterTable.Rows[0]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCEFLUX"];
  1430. coolWaterTable.Rows[0]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCMFLUX"];
  1431. coolWaterTable.Rows[0]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCEFLUX"];
  1432. coolWaterTable.Rows[0]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCMFLUX"];
  1433. coolWaterTable.Rows[0]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCEFLUX"];
  1434. coolWaterTable.Rows[0]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCMFLUX"];
  1435. coolWaterTable.Rows[0]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCEFLUX"];
  1436. coolWaterTable.Rows[0]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCMFLUX"];
  1437. //二冷水压力
  1438. coolWaterTable.Rows[1]["I足辊左右"] = _dtDevSampling.Rows[0]["S1SEG1WATERNARROWLRPRES"];
  1439. coolWaterTable.Rows[1]["I内外弧"] = _dtDevSampling.Rows[0]["S1SEG1WATERARCPRES"];
  1440. coolWaterTable.Rows[1]["II内外弧"] = _dtDevSampling.Rows[0]["S1SEG2WATERARCPRES"];
  1441. coolWaterTable.Rows[1]["III内弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCEPRES"];
  1442. coolWaterTable.Rows[1]["III内弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATERINNERARCMPRES"];
  1443. coolWaterTable.Rows[1]["III外弧边部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCEPRES"];
  1444. coolWaterTable.Rows[1]["III外弧中部"] = _dtDevSampling.Rows[0]["S1SEG3WATEROUTSIDEARCMPRES"];
  1445. coolWaterTable.Rows[1]["IV内弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCEPRES"];
  1446. coolWaterTable.Rows[1]["IV内弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATERINNERARCMPRES"];
  1447. coolWaterTable.Rows[1]["IV外弧边部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCEPRES"];
  1448. coolWaterTable.Rows[1]["IV外弧中部"] = _dtDevSampling.Rows[0]["S1SEG4WATEROUTSIDEARCMPRES"];
  1449. coolWaterTable.Rows[1]["Ⅴ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCEPRES"];
  1450. coolWaterTable.Rows[1]["Ⅴ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATERINNERARCMPRES"];
  1451. coolWaterTable.Rows[1]["Ⅴ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCEPRES"];
  1452. coolWaterTable.Rows[1]["Ⅴ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG5WATEROUTSIDEARCMPRES"];
  1453. coolWaterTable.Rows[1]["Ⅵ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCEPRES"];
  1454. coolWaterTable.Rows[1]["Ⅵ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATERINNERARCMPRES"];
  1455. coolWaterTable.Rows[1]["Ⅵ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCEPRES"];
  1456. coolWaterTable.Rows[1]["Ⅵ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG6WATEROUTSIDEARCMPRES"];
  1457. coolWaterTable.Rows[1]["Ⅶ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCEPRES"];
  1458. coolWaterTable.Rows[1]["Ⅶ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATERINNERARCMPRES"];
  1459. coolWaterTable.Rows[1]["Ⅶ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCEPRES"];
  1460. coolWaterTable.Rows[1]["Ⅶ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG7WATEROUTSIDEARCMPRES"];
  1461. coolWaterTable.Rows[1]["Ⅷ内弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCEPRES"];
  1462. coolWaterTable.Rows[1]["Ⅷ内弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATERINNERARCMPRES"];
  1463. coolWaterTable.Rows[1]["Ⅷ外弧边部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCEPRES"];
  1464. coolWaterTable.Rows[1]["Ⅷ外弧中部"] = _dtDevSampling.Rows[0]["S1SEG8WATEROUTSIDEARCMPRES"];
  1465. coolWaterTable.Rows[0]["Ⅺ内弧侧"] = _dtDevSampling.Rows[0]["S1SEG11WATERINNERARCFLUX"];
  1466. coolWaterTable.Rows[0]["Ⅺ外弧侧"] = _dtDevSampling.Rows[0]["S1SEG11WATEROUTSIDEARCFLUX"];
  1467. coolWaterTable.Rows[0]["Ⅻ内弧侧"] = _dtDevSampling.Rows[0]["S1SEG12WATERINNERARCFLUX"];
  1468. coolWaterTable.Rows[0]["Ⅻ外弧侧"] = _dtDevSampling.Rows[0]["S1SEG12WATEROUTSIDEARCFLUX"];
  1469. coolWaterTable.Rows[0]["13内弧侧"] = _dtDevSampling.Rows[0]["S1SEG13WATERINNERARCFLUX"];
  1470. coolWaterTable.Rows[0]["13外弧侧"] = _dtDevSampling.Rows[0]["S1SEG13WATEROUTSIDEARCFLUX"];
  1471. coolWaterTable.Rows[0]["2-4区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR2TO4ARCMPRES"];
  1472. coolWaterTable.Rows[0]["3-4区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR3TO4ARCEPRES"];
  1473. coolWaterTable.Rows[0]["5-10区内外弧(中)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR5TO10ARCMPRES"];
  1474. coolWaterTable.Rows[0]["5-10区内外弧(边)压力"] = _dtDevSampling.Rows[0]["S1SEGAIR5TO10ARCEPRES"];
  1475. coolWaterTable.Rows[0]["11-13区内外弧压力"] = _dtDevSampling.Rows[0]["S1SEGAIR11TO13ARCPRES"];
  1476. }
  1477. }
  1478. catch (Exception ex)
  1479. {
  1480. string Msg = ex.Message;
  1481. }
  1482. #endregion
  1483. }
  1484. private void ResetTableRows(ref DataTable ATable, int newRowsCount)
  1485. {
  1486. int arows = Math.Abs(ATable.Rows.Count - newRowsCount);
  1487. string[] sTmp = new string[ATable.Columns.Count];
  1488. if (ATable.Rows.Count < newRowsCount)
  1489. {
  1490. for (int i = 0; i < arows; i++)
  1491. ATable.Rows.Add(sTmp);
  1492. }
  1493. else
  1494. {
  1495. for (int i = arows - 1; i >= 0; i--)
  1496. ATable.Rows[i].Delete();
  1497. }
  1498. }
  1499. /// <summary>
  1500. /// 设置化学元素实时值
  1501. /// </summary>
  1502. /// <param name="row"></param>
  1503. /// <param name="obj"></param>
  1504. /// <param name="key"></param>
  1505. /// <param name="dt"></param>
  1506. protected void SetCraftElemGridData(int row, JOB_CHEMELEMENT obj, string key, ref DataTable dt)
  1507. {
  1508. try
  1509. {
  1510. dt.Rows[row]["TYPESYMBOL"] = key;
  1511. dt.Rows[row]["C"] = obj.C;
  1512. dt.Rows[row]["Si"] = obj.SI;
  1513. dt.Rows[row]["Mn"] = obj.MN;
  1514. dt.Rows[row]["P"] = obj.P;
  1515. dt.Rows[row]["S"] = obj.S;
  1516. dt.Rows[row]["Cr"] = obj.CR;
  1517. dt.Rows[row]["Mo"] = obj.MO;
  1518. dt.Rows[row]["Ti"] = obj.TI;
  1519. dt.Rows[row]["V"] = obj.V;
  1520. dt.Rows[row]["As"] = obj.ASN;
  1521. }
  1522. catch (Exception ex)
  1523. {
  1524. string Msg = ex.Message;
  1525. }
  1526. }
  1527. /// <summary>
  1528. /// 设置元素标准值
  1529. /// </summary>
  1530. /// <param name="row">表行数</param>
  1531. /// <param name="dr">行记录</param>
  1532. /// <param name="dt">被设置的表</param>
  1533. public static void SetStandardElemData(int row, DataRow dr, ref DataTable dt)
  1534. {
  1535. try
  1536. {
  1537. // 取得元素名称
  1538. string szEleName = dr["CRAFTITEMNAME"].ToString();
  1539. dt.Rows[row]["TYPESYMBOL"] = "C标准";
  1540. if (dr["ITEM1MAX"].ToString() != "" && dr["ITEM1MIN"].ToString() != "")
  1541. dt.Rows[row][szEleName] = dr["ITEM1MIN"].ToString() + "~" + dr["ITEM1MAX"].ToString();
  1542. else if (dr["ITEM1MAX"].ToString() != "" && dr["ITEM1MIN"].ToString() == "")
  1543. dt.Rows[row][szEleName] = "≤ " + dr["ITEM1MAX"].ToString();
  1544. else if (dr["ITEM1MAX"].ToString() == "" && dr["ITEM1MIN"].ToString() != "")
  1545. dt.Rows[row][szEleName] = "> " + dr["ITEM1MIN"].ToString();
  1546. }
  1547. catch { }
  1548. }
  1549. /// <summary>
  1550. /// 转换作业路线编码
  1551. /// </summary>
  1552. /// <param name="szPath"></param>
  1553. /// <returns></returns>
  1554. private string ConvertJobRoute(string szPath)
  1555. {
  1556. if (szPath == "")
  1557. return "";
  1558. string strPath = szPath;
  1559. // A0B0C0D0E0F0G0
  1560. strPath = strPath.Replace("A0", "");
  1561. strPath = strPath.Replace("B0", "");
  1562. strPath = strPath.Replace("C0", "");
  1563. strPath = strPath.Replace("D0", "");
  1564. strPath = strPath.Replace("E0", "");
  1565. strPath = strPath.Replace("F0", "");
  1566. strPath = strPath.Replace("I0", "");
  1567. strPath = strPath.Replace("G0", "");
  1568. //strPath = strPath.Replace("A", "@010000");
  1569. strPath = strPath.Replace("B", "@B");
  1570. strPath = strPath.Replace("C", "@C");
  1571. strPath = strPath.Replace("D", "@D");
  1572. strPath = strPath.Replace("E", "@E");
  1573. strPath = strPath.Replace("F", "@F");
  1574. strPath = strPath.Replace("I", "@I");
  1575. strPath = strPath.Replace("G", "@G");
  1576. string[] szStr = strPath.Split('@');
  1577. strPath = "";
  1578. for (int i = 0; i < szStr.Length; i++)
  1579. {
  1580. if (!string.IsNullOrEmpty(szStr[i].ToString()))
  1581. {
  1582. switch (szStr[i].Substring(0, 1))
  1583. {
  1584. case "A":
  1585. strPath = strPath + szStr[i].Substring(1, 1) + "#混铁炉";
  1586. break;
  1587. case "B":
  1588. strPath = strPath + "->" + szStr[i].Substring(1, 1) + "#预处理";
  1589. break;
  1590. case "C":
  1591. strPath = strPath + "->" + szStr[i].Substring(1, 1) + "#转炉";
  1592. break;
  1593. case "D":
  1594. strPath = strPath + "->" + szStr[i].Substring(1, 1) + "#吹氩";
  1595. break;
  1596. case "E":
  1597. strPath = strPath + "->" + szStr[i].Substring(1, 1) + "#精炼炉";
  1598. break;
  1599. case "F":
  1600. strPath = strPath + "->" + szStr[i].Substring(1, 1) + "#RH炉";
  1601. break;
  1602. case "I":
  1603. strPath = strPath + "->" + szStr[i].Substring(1, 1) + "#VD炉";
  1604. break;
  1605. case "G":
  1606. strPath = strPath + "->" + (szStr[i].Substring(1, 1) == "4" ? "0" : szStr[i].Substring(1, 1)) + "#连铸";
  1607. break;
  1608. default:
  1609. break;
  1610. }
  1611. }
  1612. }
  1613. if (strPath.Length < 2)
  1614. return "";
  1615. if (strPath.IndexOf("->", 0) == 0)
  1616. {
  1617. int len = strPath.Length;
  1618. strPath = strPath.Substring(2, len - 2);
  1619. }
  1620. return strPath;
  1621. }
  1622. private void ClearControlText()
  1623. {
  1624. IEnumerator iControls = ultraGroupBox1.Controls.GetEnumerator();
  1625. while (iControls.MoveNext())
  1626. {
  1627. if (iControls.Current.GetType().ToString() != "Infragistics.Win.Misc.UltraLabel")
  1628. {
  1629. System.Windows.Forms.Label ulb = (System.Windows.Forms.Label)iControls.Current;
  1630. if (ulb.Name.IndexOf("ulbl") >= 0)
  1631. ulb.Text = "";
  1632. }
  1633. }
  1634. }
  1635. #endregion
  1636. #region " Form Event "
  1637. protected virtual void frmBaseSite_Load(object sender, EventArgs e)
  1638. {
  1639. ClearControlText();
  1640. ucChemelEment1.ResetData();
  1641. ucChemelEment1.ulgridElement.DisplayLayout.Appearance.BackColor = Color.White;
  1642. ucChemelEment1.ulgridElement.DisplayLayout.Appearance.BackColor2 = Color.White;
  1643. ucChemelEment1.ulgridElement.DisplayLayout.Override.HeaderAppearance.BackColor = Color.LightSteelBlue;
  1644. ucChemelEment1.ulgridElement.DisplayLayout.Override.CellAppearance.ForeColor = Color.Blue;
  1645. ucChemelEment1.ulgridElement.DisplayLayout.Override.RowSelectorAppearance.BackColor = Color.LightSteelBlue;
  1646. ucChemelEment1.ulgridElement.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.White;
  1647. GenerateTableFrame();
  1648. }
  1649. private void frmBaseSite_DoubleClick(object sender, EventArgs e)
  1650. {
  1651. if (_arDataSource != null)
  1652. {
  1653. _arDataSource.Clear();
  1654. _arDataSource = null;
  1655. }
  1656. this.Close();
  1657. }
  1658. private void frmBaseSite_FormClosed(object sender, FormClosedEventArgs e)
  1659. {
  1660. if (_arDataSource != null)
  1661. {
  1662. _arDataSource.Clear();
  1663. _arDataSource = null;
  1664. }
  1665. }
  1666. #endregion
  1667. /// <summary>
  1668. /// 获取标准元素值,温度标准 "('C','Si','Mn','P','S','Als','Al','Cr','Mo','Ti','Nb','B','V','Cu','Ca') "
  1669. /// </summary>
  1670. private void GetStandardElement(string strStationCode, string strCraftcode, string strElementCode, string strTemperature)
  1671. {
  1672. try
  1673. {
  1674. string szOut = "", szWhere = strStationCode + " and a.craftcode='" + strCraftcode + "'";
  1675. string szEleStd = strElementCode, szCrfStd = strTemperature;
  1676. //hengxing
  1677. //CallingMessage par = new CallingMessage();
  1678. //par.ServerName = "lgJobMgt";
  1679. //par.AssemblyName = "Core.CgMes.Server.lgJobMgt";
  1680. //par.ClassName = "Core.CgMes.Server.lgJobMgt.classCommonModule";
  1681. //par.MethodName = "GetProcStandardValue";
  1682. //par.args = new object[] { szWhere, szEleStd, szCrfStd };
  1683. object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out szOut);
  1684. if (szOut == "" && obj != null)
  1685. {
  1686. ArrayList ar = obj as ArrayList;
  1687. _dtEleStd = (ar[0] as DataSet).Tables[0];
  1688. _dtEleStd.TableName = "CBZ";
  1689. _dtCraftStdVal = (ar[1] as DataSet).Tables[0];
  1690. }
  1691. }
  1692. catch { }
  1693. }
  1694. }
  1695. }