| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165 |
- using System;
- using System.IO;
- using System.Drawing;
- using System.Collections;
- using System.Diagnostics;
- using System.ComponentModel;
- using System.Windows.Forms;
- using System.Data;
- using System.Threading;
- using CoreFS.CA06;
- using Infragistics.Win.UltraWinMaskedEdit;
- using Infragistics.Win.UltraWinGrid;
- using Infragistics.Win;
- using Core.StlMes.Client.LgCommon;
- using Core.Mes.Client.Comm.Control;
- namespace Core.StlMes.Client.LgIntegrationQuery
- {
- /// <summary>
- /// ELEMENTS 的摘要说明。
- /// </summary>
- public class frmLgElements : frmStyleBase
- {
- #region " Construct "
- private Infragistics.Win.Misc.UltraGroupBox ultraGroupBox1;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private System.ComponentModel.IContainer components;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Panel panel1;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.TextBox txtPage;
- private System.Windows.Forms.Button btn_Up;
- private System.Windows.Forms.Button btn_Down;
- private System.Windows.Forms.Button button3;
- private System.Windows.Forms.CheckBox chkRefresh;
- public string StrPost = "0";
- private Label label11;
- private Label label10;
- private Infragistics.Win.UltraWinEditors.UltraDateTimeEditor uldtBeginTime;
- private Infragistics.Win.UltraWinEditors.UltraDateTimeEditor uldtEndTime;
- private Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter GridExcelExporter;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager ultraToolbarsManager1;
- private UltraGrid EMGrid;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panel1_Toolbars_Dock_Area_Left;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panel1_Toolbars_Dock_Area_Right;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panel1_Toolbars_Dock_Area_Top;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panel1_Toolbars_Dock_Area_Bottom;
- private string m_szEntry = "";
- private DataSet dataSet1;
- private DataTable dataTable1;
- private DataColumn dataColumn7;
- private DataColumn dataColumn8;
- private DataColumn dataColumn9;
- private DataColumn dataColumn84;
- private DataColumn dataColumn85;
- string[] strERow;
- private TextBox txtSteel;
- private CheckBox chkGasSample; //化学成份列名
- string[] strRowName = new string[] { "C", "Mn", "S", "P", "Si", "Als", "Alt", "N", "Ti", "Nb", "B", "V", "Asn", "Sn", "Cu", "Sb", "O", "H" };
- bool Isbool = false;
- private DataColumn dataColumn1;
- private Infragistics.Win.UltraWinEditors.UltraComboEditor cmb_BZ;
- private Infragistics.Win.UltraWinEditors.UltraComboEditor cboGW;
- private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox2;
- private DataColumn dataColumn2;
- private DataColumn dataColumn3;
- private Infragistics.Win.UltraWinEditors.UltraPictureBox ultraPictureBox1;
- private DataColumn dataColumn4;
- private DataColumn dataColumn5;
- private DataColumn dataColumn6;
- private DataColumn dataColumn10;
- private TextBox ultraMaskedEdit2;
- private TextBox ultraMaskedEdit1;
- private CheckBox chkSteel;
- private CheckBox chkBZ;
- private Label label7;
- private CheckBox chkHeatbo;
- private DataColumn dataColumn11;
- public frmLgElements(string szPost)
- {
- InitializeComponent();
- this._devPos = szPost;
- }
- public frmLgElements()
- {
- //
- // Windows 窗体设计器支持所必需的
- //
- InitializeComponent();
- this._devPos = StrPost;
- }
- public frmLgElements(string szEntry, string szLH)
- {
- InitializeComponent();
- this._devPos = StrPost;
- this.m_szEntry = szEntry;
- this.ultraMaskedEdit1.Text = szLH;
- }
- /// <summary>
- /// 清理所有正在使用的资源。
- /// </summary>
- protected override void Dispose(bool disposing)
- {
- try
- {
- if (_getDataThread != null)
- _getDataThread.Abort();
- }
- catch { }
- if (disposing)
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
- #region Windows 窗体设计器生成的代码
- /// <summary>
- /// 设计器支持所需的方法 - 不要使用代码编辑器修改
- /// 此方法的内容。
- /// </summary>
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
- Infragistics.Win.ValueListItem valueListItem1 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem2 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem3 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem4 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem30 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem31 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem5 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
- Infragistics.Win.ValueListItem valueListItem11 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem6 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem7 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem8 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem9 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem10 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
- Infragistics.Win.ValueListItem valueListItem12 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem13 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem14 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem15 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.UltraWinGrid.UltraGridBand ultraGridBand1 = new Infragistics.Win.UltraWinGrid.UltraGridBand("Table1", -1);
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn1 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("序号");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn2 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("熔炼号", -1, null, 0, Infragistics.Win.UltraWinGrid.SortIndicator.Ascending, false);
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn3 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("计划牌号");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn4 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("化验时间");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn5 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("JHGZ");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn6 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("shiftcode", -1, 7905313);
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn7 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("Station");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn8 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SumTime");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn9 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("JUDGE_STL_GRD");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn10 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("JUDGE_RESULT");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn11 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("REG_ID");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn12 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("JUDGE_SEQ");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn13 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SIMN");
- Infragistics.Win.ValueList valueList1 = new Infragistics.Win.ValueList(7905313);
- Infragistics.Win.ValueListItem valueListItem32 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem33 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem34 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem35 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem36 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem37 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem38 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem39 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem40 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem41 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem42 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem43 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.UltraWinToolbars.UltraToolbar ultraToolbar1 = new Infragistics.Win.UltraWinToolbars.UltraToolbar("UltraToolbar1");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool1 = new Infragistics.Win.UltraWinToolbars.ButtonTool("query");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool2 = new Infragistics.Win.UltraWinToolbars.ButtonTool("set");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool3 = new Infragistics.Win.UltraWinToolbars.ButtonTool("excel");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool4 = new Infragistics.Win.UltraWinToolbars.ButtonTool("SRow");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool5 = new Infragistics.Win.UltraWinToolbars.ButtonTool("Close");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool6 = new Infragistics.Win.UltraWinToolbars.ButtonTool("query");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool7 = new Infragistics.Win.UltraWinToolbars.ButtonTool("set");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool8 = new Infragistics.Win.UltraWinToolbars.ButtonTool("excel");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool9 = new Infragistics.Win.UltraWinToolbars.ButtonTool("SRow");
- Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool10 = new Infragistics.Win.UltraWinToolbars.ButtonTool("Close");
- this.ultraGroupBox1 = new Infragistics.Win.Misc.UltraGroupBox();
- this.chkHeatbo = new System.Windows.Forms.CheckBox();
- this.chkBZ = new System.Windows.Forms.CheckBox();
- this.chkSteel = new System.Windows.Forms.CheckBox();
- this.ultraMaskedEdit2 = new System.Windows.Forms.TextBox();
- this.ultraMaskedEdit1 = new System.Windows.Forms.TextBox();
- this.comboBox2 = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
- this.cboGW = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
- this.cmb_BZ = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
- this.chkGasSample = new System.Windows.Forms.CheckBox();
- this.txtSteel = new System.Windows.Forms.TextBox();
- this.uldtEndTime = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
- this.uldtBeginTime = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
- this.label11 = new System.Windows.Forms.Label();
- this.label10 = new System.Windows.Forms.Label();
- this.chkRefresh = new System.Windows.Forms.CheckBox();
- this.label7 = new System.Windows.Forms.Label();
- this.button3 = new System.Windows.Forms.Button();
- this.btn_Down = new System.Windows.Forms.Button();
- this.btn_Up = new System.Windows.Forms.Button();
- this.txtPage = new System.Windows.Forms.TextBox();
- this.label6 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.label1 = new System.Windows.Forms.Label();
- this.panel1 = new System.Windows.Forms.Panel();
- this.EMGrid = new Infragistics.Win.UltraWinGrid.UltraGrid();
- this.dataSet1 = new System.Data.DataSet();
- this.dataTable1 = new System.Data.DataTable();
- this.dataColumn7 = new System.Data.DataColumn();
- this.dataColumn8 = new System.Data.DataColumn();
- this.dataColumn9 = new System.Data.DataColumn();
- this.dataColumn84 = new System.Data.DataColumn();
- this.dataColumn85 = new System.Data.DataColumn();
- this.dataColumn1 = new System.Data.DataColumn();
- this.dataColumn2 = new System.Data.DataColumn();
- this.dataColumn3 = new System.Data.DataColumn();
- this.dataColumn4 = new System.Data.DataColumn();
- this.dataColumn5 = new System.Data.DataColumn();
- this.dataColumn6 = new System.Data.DataColumn();
- this.dataColumn10 = new System.Data.DataColumn();
- this.dataColumn11 = new System.Data.DataColumn();
- this.ultraPictureBox1 = new Infragistics.Win.UltraWinEditors.UltraPictureBox();
- this.label3 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this._panel1_Toolbars_Dock_Area_Left = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
- this.ultraToolbarsManager1 = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components);
- this._panel1_Toolbars_Dock_Area_Right = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
- this._panel1_Toolbars_Dock_Area_Top = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
- this._panel1_Toolbars_Dock_Area_Bottom = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
- this.GridExcelExporter = new Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter(this.components);
- ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).BeginInit();
- this.ultraGroupBox1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.comboBox2)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.cboGW)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.cmb_BZ)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.uldtEndTime)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.uldtBeginTime)).BeginInit();
- this.panel1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.EMGrid)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager1)).BeginInit();
- this.SuspendLayout();
- //
- // ultraGroupBox1
- //
- this.ultraGroupBox1.Controls.Add(this.chkHeatbo);
- this.ultraGroupBox1.Controls.Add(this.chkBZ);
- this.ultraGroupBox1.Controls.Add(this.chkSteel);
- this.ultraGroupBox1.Controls.Add(this.ultraMaskedEdit2);
- this.ultraGroupBox1.Controls.Add(this.ultraMaskedEdit1);
- this.ultraGroupBox1.Controls.Add(this.comboBox2);
- this.ultraGroupBox1.Controls.Add(this.cboGW);
- this.ultraGroupBox1.Controls.Add(this.cmb_BZ);
- this.ultraGroupBox1.Controls.Add(this.chkGasSample);
- this.ultraGroupBox1.Controls.Add(this.txtSteel);
- this.ultraGroupBox1.Controls.Add(this.uldtEndTime);
- this.ultraGroupBox1.Controls.Add(this.uldtBeginTime);
- this.ultraGroupBox1.Controls.Add(this.label11);
- this.ultraGroupBox1.Controls.Add(this.label10);
- this.ultraGroupBox1.Controls.Add(this.chkRefresh);
- this.ultraGroupBox1.Controls.Add(this.label7);
- this.ultraGroupBox1.Controls.Add(this.button3);
- this.ultraGroupBox1.Controls.Add(this.btn_Down);
- this.ultraGroupBox1.Controls.Add(this.btn_Up);
- this.ultraGroupBox1.Controls.Add(this.txtPage);
- this.ultraGroupBox1.Controls.Add(this.label6);
- this.ultraGroupBox1.Controls.Add(this.label5);
- this.ultraGroupBox1.Controls.Add(this.label1);
- this.ultraGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
- this.ultraGroupBox1.Location = new System.Drawing.Point(0, 28);
- this.ultraGroupBox1.Name = "ultraGroupBox1";
- this.ultraGroupBox1.Size = new System.Drawing.Size(1350, 71);
- this.ultraGroupBox1.TabIndex = 3;
- //
- // chkHeatbo
- //
- this.chkHeatbo.Font = new System.Drawing.Font("宋体", 9F);
- this.chkHeatbo.Location = new System.Drawing.Point(15, 41);
- this.chkHeatbo.Name = "chkHeatbo";
- this.chkHeatbo.Size = new System.Drawing.Size(60, 24);
- this.chkHeatbo.TabIndex = 291;
- this.chkHeatbo.Text = "炉号从";
- this.chkHeatbo.CheckedChanged += new System.EventHandler(this.chkHeatbo_CheckedChanged);
- //
- // chkBZ
- //
- this.chkBZ.Font = new System.Drawing.Font("宋体", 9F);
- this.chkBZ.Location = new System.Drawing.Point(390, 38);
- this.chkBZ.Name = "chkBZ";
- this.chkBZ.Size = new System.Drawing.Size(51, 24);
- this.chkBZ.TabIndex = 290;
- this.chkBZ.Text = "班组";
- this.chkBZ.CheckedChanged += new System.EventHandler(this.chkBZ_CheckedChanged);
- //
- // chkSteel
- //
- this.chkSteel.Font = new System.Drawing.Font("宋体", 9F);
- this.chkSteel.Location = new System.Drawing.Point(655, 9);
- this.chkSteel.Name = "chkSteel";
- this.chkSteel.Size = new System.Drawing.Size(77, 24);
- this.chkSteel.TabIndex = 289;
- this.chkSteel.Text = "计划牌号";
- this.chkSteel.CheckedChanged += new System.EventHandler(this.chkSteel_CheckedChanged);
- //
- // ultraMaskedEdit2
- //
- this.ultraMaskedEdit2.Enabled = false;
- this.ultraMaskedEdit2.Location = new System.Drawing.Point(234, 41);
- this.ultraMaskedEdit2.MaxLength = 8;
- this.ultraMaskedEdit2.Name = "ultraMaskedEdit2";
- this.ultraMaskedEdit2.Size = new System.Drawing.Size(124, 21);
- this.ultraMaskedEdit2.TabIndex = 288;
- this.ultraMaskedEdit2.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ultraMaskedEdit1_KeyPress);
- //
- // ultraMaskedEdit1
- //
- this.ultraMaskedEdit1.Enabled = false;
- this.ultraMaskedEdit1.Location = new System.Drawing.Point(78, 41);
- this.ultraMaskedEdit1.MaxLength = 8;
- this.ultraMaskedEdit1.Name = "ultraMaskedEdit1";
- this.ultraMaskedEdit1.Size = new System.Drawing.Size(124, 21);
- this.ultraMaskedEdit1.TabIndex = 287;
- this.ultraMaskedEdit1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ultraMaskedEdit1_KeyPress);
- //
- // comboBox2
- //
- appearance1.BorderAlpha = Infragistics.Win.Alpha.UseAlphaLevel;
- appearance1.BorderColor = System.Drawing.Color.Black;
- this.comboBox2.Appearance = appearance1;
- this.comboBox2.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
- this.comboBox2.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;
- this.comboBox2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- valueListItem1.DataValue = "0";
- valueListItem1.DisplayText = "铁水";
- valueListItem2.DataValue = "1";
- valueListItem2.DisplayText = "转炉";
- valueListItem3.DataValue = "2";
- valueListItem3.DisplayText = "吹氩站";
- valueListItem4.DataValue = "3";
- valueListItem4.DisplayText = "精炼炉";
- valueListItem30.DataValue = "4";
- valueListItem30.DisplayText = "RH炉";
- valueListItem31.DataValue = "5";
- valueListItem31.DisplayText = "VD炉";
- valueListItem5.DataValue = "6";
- valueListItem5.DisplayText = "连铸";
- this.comboBox2.Items.AddRange(new Infragistics.Win.ValueListItem[] {
- valueListItem1,
- valueListItem2,
- valueListItem3,
- valueListItem4,
- valueListItem30,
- valueListItem31,
- valueListItem5});
- this.comboBox2.Location = new System.Drawing.Point(523, 9);
- this.comboBox2.Name = "comboBox2";
- this.comboBox2.Size = new System.Drawing.Size(104, 19);
- this.comboBox2.TabIndex = 286;
- this.comboBox2.UseFlatMode = Infragistics.Win.DefaultableBoolean.True;
- //
- // cboGW
- //
- appearance2.BorderAlpha = Infragistics.Win.Alpha.UseAlphaLevel;
- appearance2.BorderColor = System.Drawing.Color.Black;
- this.cboGW.Appearance = appearance2;
- this.cboGW.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
- this.cboGW.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;
- this.cboGW.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- valueListItem11.DataValue = "00";
- valueListItem11.DisplayText = "全部";
- valueListItem6.DataValue = "0";
- valueListItem6.DisplayText = "脱硫站";
- valueListItem7.DataValue = "1";
- valueListItem7.DisplayText = "转炉";
- valueListItem8.DataValue = "2";
- valueListItem8.DisplayText = "吹氩站";
- valueListItem9.DataValue = "3";
- valueListItem9.DisplayText = "精炼炉";
- valueListItem10.DataValue = "6";
- valueListItem10.DisplayText = "连铸";
- this.cboGW.Items.AddRange(new Infragistics.Win.ValueListItem[] {
- valueListItem11,
- valueListItem6,
- valueListItem7,
- valueListItem8,
- valueListItem9,
- valueListItem10});
- this.cboGW.Location = new System.Drawing.Point(444, 10);
- this.cboGW.Name = "cboGW";
- this.cboGW.Size = new System.Drawing.Size(71, 19);
- this.cboGW.TabIndex = 285;
- this.cboGW.UseFlatMode = Infragistics.Win.DefaultableBoolean.True;
- this.cboGW.SelectionChanged += new System.EventHandler(this.cboGW_SelectionChanged);
- //
- // cmb_BZ
- //
- appearance3.BorderAlpha = Infragistics.Win.Alpha.UseAlphaLevel;
- appearance3.BorderColor = System.Drawing.Color.Black;
- this.cmb_BZ.Appearance = appearance3;
- this.cmb_BZ.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
- this.cmb_BZ.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;
- this.cmb_BZ.Enabled = false;
- this.cmb_BZ.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- valueListItem12.DataValue = "1";
- valueListItem12.DisplayText = "甲班";
- valueListItem13.DataValue = "2";
- valueListItem13.DisplayText = "乙班";
- valueListItem14.DataValue = "3";
- valueListItem14.DisplayText = "丙班";
- valueListItem15.DataValue = "4";
- valueListItem15.DisplayText = "丁班";
- this.cmb_BZ.Items.AddRange(new Infragistics.Win.ValueListItem[] {
- valueListItem12,
- valueListItem13,
- valueListItem14,
- valueListItem15});
- this.cmb_BZ.Location = new System.Drawing.Point(445, 41);
- this.cmb_BZ.Name = "cmb_BZ";
- this.cmb_BZ.Size = new System.Drawing.Size(71, 19);
- this.cmb_BZ.TabIndex = 284;
- this.cmb_BZ.UseFlatMode = Infragistics.Win.DefaultableBoolean.True;
- //
- // chkGasSample
- //
- this.chkGasSample.Font = new System.Drawing.Font("宋体", 9F);
- this.chkGasSample.Location = new System.Drawing.Point(654, 37);
- this.chkGasSample.Name = "chkGasSample";
- this.chkGasSample.Size = new System.Drawing.Size(73, 24);
- this.chkGasSample.TabIndex = 85;
- this.chkGasSample.Text = "气体样";
- //
- // txtSteel
- //
- this.txtSteel.Enabled = false;
- this.txtSteel.Location = new System.Drawing.Point(732, 10);
- this.txtSteel.Name = "txtSteel";
- this.txtSteel.Size = new System.Drawing.Size(127, 21);
- this.txtSteel.TabIndex = 84;
- this.txtSteel.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtSteel_KeyPress);
- //
- // uldtEndTime
- //
- this.uldtEndTime.FormatProvider = new System.Globalization.CultureInfo("en-US");
- this.uldtEndTime.FormatString = "yyyy-MM-dd HH:mm";
- this.uldtEndTime.Location = new System.Drawing.Point(234, 9);
- this.uldtEndTime.MaskInput = "yyyy-mm-dd hh:mm";
- this.uldtEndTime.Name = "uldtEndTime";
- this.uldtEndTime.Size = new System.Drawing.Size(126, 21);
- this.uldtEndTime.TabIndex = 80;
- //
- // uldtBeginTime
- //
- this.uldtBeginTime.FormatProvider = new System.Globalization.CultureInfo("en-US");
- this.uldtBeginTime.FormatString = "yyyy-MM-dd HH:mm";
- this.uldtBeginTime.Location = new System.Drawing.Point(78, 9);
- this.uldtBeginTime.MaskInput = "yyyy-mm-dd hh:mm";
- this.uldtBeginTime.Name = "uldtBeginTime";
- this.uldtBeginTime.Size = new System.Drawing.Size(126, 21);
- this.uldtBeginTime.TabIndex = 79;
- //
- // label11
- //
- this.label11.AutoSize = true;
- this.label11.Font = new System.Drawing.Font("宋体", 9F);
- this.label11.Location = new System.Drawing.Point(211, 43);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(17, 12);
- this.label11.TabIndex = 78;
- this.label11.Text = "到";
- //
- // label10
- //
- this.label10.AutoSize = true;
- this.label10.Font = new System.Drawing.Font("宋体", 9F);
- this.label10.Location = new System.Drawing.Point(211, 12);
- this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(17, 12);
- this.label10.TabIndex = 77;
- this.label10.Text = "到";
- //
- // chkRefresh
- //
- this.chkRefresh.Font = new System.Drawing.Font("宋体", 9F);
- this.chkRefresh.Location = new System.Drawing.Point(733, 37);
- this.chkRefresh.Name = "chkRefresh";
- this.chkRefresh.Size = new System.Drawing.Size(82, 24);
- this.chkRefresh.TabIndex = 71;
- this.chkRefresh.Text = "自动刷新";
- this.chkRefresh.CheckedChanged += new System.EventHandler(this.chkRefresh_CheckedChanged);
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Font = new System.Drawing.Font("宋体", 9F);
- this.label7.Location = new System.Drawing.Point(381, 12);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(53, 12);
- this.label7.TabIndex = 68;
- this.label7.Text = "工序位置";
- //
- // button3
- //
- this.button3.Font = new System.Drawing.Font("宋体", 9F);
- this.button3.Location = new System.Drawing.Point(1272, 37);
- this.button3.Name = "button3";
- this.button3.Size = new System.Drawing.Size(72, 23);
- this.button3.TabIndex = 58;
- this.button3.Text = "全部显示";
- this.button3.UseVisualStyleBackColor = false;
- this.button3.Visible = false;
- //
- // btn_Down
- //
- this.btn_Down.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btn_Down.Location = new System.Drawing.Point(1224, 37);
- this.btn_Down.Name = "btn_Down";
- this.btn_Down.Size = new System.Drawing.Size(40, 23);
- this.btn_Down.TabIndex = 57;
- this.btn_Down.Text = ">>";
- this.btn_Down.Visible = false;
- //
- // btn_Up
- //
- this.btn_Up.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btn_Up.Location = new System.Drawing.Point(1120, 37);
- this.btn_Up.Name = "btn_Up";
- this.btn_Up.Size = new System.Drawing.Size(40, 23);
- this.btn_Up.TabIndex = 56;
- this.btn_Up.Text = "<<";
- this.btn_Up.Visible = false;
- //
- // txtPage
- //
- this.txtPage.Location = new System.Drawing.Point(1160, 38);
- this.txtPage.Name = "txtPage";
- this.txtPage.Size = new System.Drawing.Size(64, 21);
- this.txtPage.TabIndex = 55;
- this.txtPage.Text = "40";
- this.txtPage.Visible = false;
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.ForeColor = System.Drawing.Color.Red;
- this.label6.Location = new System.Drawing.Point(1214, 11);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(0, 12);
- this.label6.TabIndex = 54;
- this.label6.Visible = false;
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Font = new System.Drawing.Font("宋体", 9F);
- this.label5.Location = new System.Drawing.Point(1118, 10);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(83, 12);
- this.label5.TabIndex = 52;
- this.label5.Text = "当前数据显示:";
- this.label5.Visible = false;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Font = new System.Drawing.Font("宋体", 9F);
- this.label1.Location = new System.Drawing.Point(7, 12);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(65, 12);
- this.label1.TabIndex = 15;
- this.label1.Text = "化验时间从";
- //
- // panel1
- //
- this.panel1.Controls.Add(this.EMGrid);
- this.panel1.Controls.Add(this.ultraPictureBox1);
- this.panel1.Controls.Add(this.label3);
- this.panel1.Controls.Add(this.label2);
- this.panel1.Controls.Add(this.ultraGroupBox1);
- this.panel1.Controls.Add(this._panel1_Toolbars_Dock_Area_Left);
- this.panel1.Controls.Add(this._panel1_Toolbars_Dock_Area_Right);
- this.panel1.Controls.Add(this._panel1_Toolbars_Dock_Area_Top);
- this.panel1.Controls.Add(this._panel1_Toolbars_Dock_Area_Bottom);
- this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panel1.Location = new System.Drawing.Point(0, 0);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(1350, 653);
- this.panel1.TabIndex = 12;
- //
- // EMGrid
- //
- this.EMGrid.DataMember = "Table1";
- this.EMGrid.DataSource = this.dataSet1;
- ultraGridColumn1.Header.VisiblePosition = 0;
- ultraGridColumn1.Hidden = true;
- ultraGridColumn1.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 25);
- ultraGridColumn1.Width = 54;
- ultraGridColumn2.Header.Caption = "炉号";
- ultraGridColumn2.Header.VisiblePosition = 1;
- ultraGridColumn2.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 25);
- ultraGridColumn2.Width = 179;
- ultraGridColumn3.Header.VisiblePosition = 6;
- ultraGridColumn3.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 25);
- ultraGridColumn3.Width = 116;
- ultraGridColumn4.Header.VisiblePosition = 7;
- ultraGridColumn4.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 25);
- ultraGridColumn4.Width = 160;
- ultraGridColumn5.Header.VisiblePosition = 4;
- ultraGridColumn5.Hidden = true;
- ultraGridColumn5.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 25);
- ultraGridColumn6.Header.VisiblePosition = 5;
- ultraGridColumn6.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 25);
- ultraGridColumn6.Width = 53;
- ultraGridColumn7.Header.VisiblePosition = 2;
- ultraGridColumn7.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 25);
- ultraGridColumn7.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDown;
- ultraGridColumn7.Width = 66;
- ultraGridColumn8.Header.VisiblePosition = 3;
- ultraGridColumn8.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 25);
- ultraGridColumn8.Width = 40;
- ultraGridColumn9.Header.VisiblePosition = 8;
- ultraGridColumn9.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 25);
- ultraGridColumn10.Header.VisiblePosition = 9;
- ultraGridColumn10.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 25);
- ultraGridColumn11.Header.VisiblePosition = 10;
- ultraGridColumn11.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 25);
- ultraGridColumn12.Header.VisiblePosition = 11;
- ultraGridColumn12.Hidden = true;
- ultraGridColumn12.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 25);
- ultraGridColumn13.Header.VisiblePosition = 12;
- ultraGridColumn13.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(70, 0);
- ultraGridColumn13.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 25);
- ultraGridBand1.Columns.AddRange(new object[] {
- ultraGridColumn1,
- ultraGridColumn2,
- ultraGridColumn3,
- ultraGridColumn4,
- ultraGridColumn5,
- ultraGridColumn6,
- ultraGridColumn7,
- ultraGridColumn8,
- ultraGridColumn9,
- ultraGridColumn10,
- ultraGridColumn11,
- ultraGridColumn12,
- ultraGridColumn13});
- ultraGridBand1.RowLayoutStyle = Infragistics.Win.UltraWinGrid.RowLayoutStyle.ColumnLayout;
- this.EMGrid.DisplayLayout.BandsSerializer.Add(ultraGridBand1);
- this.EMGrid.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
- this.EMGrid.DisplayLayout.Override.WrapHeaderText = Infragistics.Win.DefaultableBoolean.True;
- valueListItem32.DataValue = "11";
- valueListItem32.DisplayText = "白班-甲";
- valueListItem33.DataValue = "12";
- valueListItem33.DisplayText = "白班-乙";
- valueListItem34.DataValue = "13";
- valueListItem34.DisplayText = "白班-丙";
- valueListItem35.DataValue = "14";
- valueListItem35.DisplayText = "白班-丁";
- valueListItem36.DataValue = "21";
- valueListItem36.DisplayText = "小夜-甲";
- valueListItem37.DataValue = "22";
- valueListItem37.DisplayText = "小夜-乙";
- valueListItem38.DataValue = "23";
- valueListItem38.DisplayText = "小夜-丙";
- valueListItem39.DataValue = "24";
- valueListItem39.DisplayText = "小夜-丁";
- valueListItem40.DataValue = "31";
- valueListItem40.DisplayText = "夜-甲";
- valueListItem41.DataValue = "32";
- valueListItem41.DisplayText = "大夜-乙";
- valueListItem42.DataValue = "33";
- valueListItem42.DisplayText = "大夜-丙";
- valueListItem43.DataValue = "34";
- valueListItem43.DisplayText = "大夜-丁";
- valueList1.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] {
- valueListItem32,
- valueListItem33,
- valueListItem34,
- valueListItem35,
- valueListItem36,
- valueListItem37,
- valueListItem38,
- valueListItem39,
- valueListItem40,
- valueListItem41,
- valueListItem42,
- valueListItem43});
- this.EMGrid.DisplayLayout.ValueLists.AddRange(new Infragistics.Win.ValueList[] {
- valueList1});
- this.EMGrid.Dock = System.Windows.Forms.DockStyle.Fill;
- this.EMGrid.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.EMGrid.Location = new System.Drawing.Point(0, 99);
- this.EMGrid.Name = "EMGrid";
- this.EMGrid.Size = new System.Drawing.Size(1350, 554);
- this.EMGrid.TabIndex = 6;
- this.EMGrid.DoubleClickRow += new Infragistics.Win.UltraWinGrid.DoubleClickRowEventHandler(this.EMGrid_DoubleClickRow);
- //
- // dataSet1
- //
- this.dataSet1.DataSetName = "NewDataSet";
- this.dataSet1.Locale = new System.Globalization.CultureInfo("zh-CN");
- this.dataSet1.Tables.AddRange(new System.Data.DataTable[] {
- this.dataTable1});
- //
- // dataTable1
- //
- this.dataTable1.Columns.AddRange(new System.Data.DataColumn[] {
- this.dataColumn7,
- this.dataColumn8,
- this.dataColumn9,
- this.dataColumn84,
- this.dataColumn85,
- this.dataColumn1,
- this.dataColumn2,
- this.dataColumn3,
- this.dataColumn4,
- this.dataColumn5,
- this.dataColumn6,
- this.dataColumn10,
- this.dataColumn11});
- this.dataTable1.TableName = "Table1";
- //
- // dataColumn7
- //
- this.dataColumn7.ColumnName = "序号";
- //
- // dataColumn8
- //
- this.dataColumn8.ColumnName = "熔炼号";
- //
- // dataColumn9
- //
- this.dataColumn9.ColumnName = "计划牌号";
- //
- // dataColumn84
- //
- this.dataColumn84.ColumnName = "化验时间";
- //
- // dataColumn85
- //
- this.dataColumn85.Caption = "牌号编码";
- this.dataColumn85.ColumnName = "JHGZ";
- //
- // dataColumn1
- //
- this.dataColumn1.Caption = "班别";
- this.dataColumn1.ColumnName = "shiftcode";
- //
- // dataColumn2
- //
- this.dataColumn2.Caption = "工序";
- this.dataColumn2.ColumnName = "Station";
- //
- // dataColumn3
- //
- this.dataColumn3.Caption = "次数";
- this.dataColumn3.ColumnName = "SumTime";
- //
- // dataColumn4
- //
- this.dataColumn4.Caption = "判定牌号";
- this.dataColumn4.ColumnName = "JUDGE_STL_GRD";
- //
- // dataColumn5
- //
- this.dataColumn5.Caption = "判定结果";
- this.dataColumn5.ColumnName = "JUDGE_RESULT";
- //
- // dataColumn6
- //
- this.dataColumn6.Caption = "判定人";
- this.dataColumn6.ColumnName = "REG_ID";
- //
- // dataColumn10
- //
- this.dataColumn10.Caption = "次数";
- this.dataColumn10.ColumnName = "JUDGE_SEQ";
- //
- // dataColumn11
- //
- this.dataColumn11.Caption = "MN/S";
- this.dataColumn11.ColumnName = "SIMN";
- //
- // ultraPictureBox1
- //
- this.ultraPictureBox1.BorderShadowColor = System.Drawing.Color.Empty;
- this.ultraPictureBox1.Location = new System.Drawing.Point(339, 286);
- this.ultraPictureBox1.Name = "ultraPictureBox1";
- this.ultraPictureBox1.Size = new System.Drawing.Size(100, 50);
- this.ultraPictureBox1.TabIndex = 16;
- //
- // label3
- //
- this.label3.BackColor = System.Drawing.Color.Blue;
- this.label3.ForeColor = System.Drawing.SystemColors.ControlText;
- this.label3.Location = new System.Drawing.Point(564, 271);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(100, 23);
- this.label3.TabIndex = 11;
- this.label3.Text = "label3";
- this.label3.Visible = false;
- //
- // label2
- //
- this.label2.BackColor = System.Drawing.Color.Red;
- this.label2.Location = new System.Drawing.Point(458, 230);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(100, 23);
- this.label2.TabIndex = 6;
- this.label2.Text = "label2";
- this.label2.Visible = false;
- //
- // _panel1_Toolbars_Dock_Area_Left
- //
- this._panel1_Toolbars_Dock_Area_Left.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
- this._panel1_Toolbars_Dock_Area_Left.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(229)))), ((int)(((byte)(215)))));
- this._panel1_Toolbars_Dock_Area_Left.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left;
- this._panel1_Toolbars_Dock_Area_Left.ForeColor = System.Drawing.SystemColors.ControlText;
- this._panel1_Toolbars_Dock_Area_Left.Location = new System.Drawing.Point(0, 28);
- this._panel1_Toolbars_Dock_Area_Left.Name = "_panel1_Toolbars_Dock_Area_Left";
- this._panel1_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(0, 625);
- this._panel1_Toolbars_Dock_Area_Left.ToolbarsManager = this.ultraToolbarsManager1;
- //
- // ultraToolbarsManager1
- //
- this.ultraToolbarsManager1.DesignerFlags = 1;
- this.ultraToolbarsManager1.DockWithinContainer = this.panel1;
- this.ultraToolbarsManager1.LockToolbars = true;
- this.ultraToolbarsManager1.ShowFullMenusDelay = 500;
- this.ultraToolbarsManager1.ShowQuickCustomizeButton = false;
- this.ultraToolbarsManager1.Style = Infragistics.Win.UltraWinToolbars.ToolbarStyle.VisualStudio2005;
- ultraToolbar1.DockedColumn = 0;
- ultraToolbar1.DockedRow = 0;
- buttonTool1.InstanceProps.IsFirstInGroup = true;
- buttonTool2.InstanceProps.IsFirstInGroup = true;
- buttonTool3.InstanceProps.IsFirstInGroup = true;
- buttonTool4.InstanceProps.IsFirstInGroup = true;
- buttonTool5.InstanceProps.IsFirstInGroup = true;
- ultraToolbar1.NonInheritedTools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
- buttonTool1,
- buttonTool2,
- buttonTool3,
- buttonTool4,
- buttonTool5});
- ultraToolbar1.Text = "UltraToolbar1";
- this.ultraToolbarsManager1.Toolbars.AddRange(new Infragistics.Win.UltraWinToolbars.UltraToolbar[] {
- ultraToolbar1});
- buttonTool6.SharedPropsInternal.Caption = "查询(&Q)";
- buttonTool6.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool7.SharedPropsInternal.Caption = "设置样点(&S)";
- buttonTool7.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool8.SharedPropsInternal.Caption = "导出(&P)";
- buttonTool8.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool9.SharedPropsInternal.Caption = "设置列(&R)";
- buttonTool9.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- buttonTool10.SharedPropsInternal.Caption = "关闭(&C)";
- buttonTool10.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
- this.ultraToolbarsManager1.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
- buttonTool6,
- buttonTool7,
- buttonTool8,
- buttonTool9,
- buttonTool10});
- this.ultraToolbarsManager1.Visible = false;
- //
- // _panel1_Toolbars_Dock_Area_Right
- //
- this._panel1_Toolbars_Dock_Area_Right.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
- this._panel1_Toolbars_Dock_Area_Right.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(229)))), ((int)(((byte)(215)))));
- this._panel1_Toolbars_Dock_Area_Right.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right;
- this._panel1_Toolbars_Dock_Area_Right.ForeColor = System.Drawing.SystemColors.ControlText;
- this._panel1_Toolbars_Dock_Area_Right.Location = new System.Drawing.Point(1350, 28);
- this._panel1_Toolbars_Dock_Area_Right.Name = "_panel1_Toolbars_Dock_Area_Right";
- this._panel1_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(0, 625);
- this._panel1_Toolbars_Dock_Area_Right.ToolbarsManager = this.ultraToolbarsManager1;
- //
- // _panel1_Toolbars_Dock_Area_Top
- //
- this._panel1_Toolbars_Dock_Area_Top.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
- this._panel1_Toolbars_Dock_Area_Top.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(229)))), ((int)(((byte)(215)))));
- this._panel1_Toolbars_Dock_Area_Top.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top;
- this._panel1_Toolbars_Dock_Area_Top.ForeColor = System.Drawing.SystemColors.ControlText;
- this._panel1_Toolbars_Dock_Area_Top.Location = new System.Drawing.Point(0, 0);
- this._panel1_Toolbars_Dock_Area_Top.Name = "_panel1_Toolbars_Dock_Area_Top";
- this._panel1_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(1350, 28);
- this._panel1_Toolbars_Dock_Area_Top.ToolbarsManager = this.ultraToolbarsManager1;
- //
- // _panel1_Toolbars_Dock_Area_Bottom
- //
- this._panel1_Toolbars_Dock_Area_Bottom.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
- this._panel1_Toolbars_Dock_Area_Bottom.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(229)))), ((int)(((byte)(215)))));
- this._panel1_Toolbars_Dock_Area_Bottom.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom;
- this._panel1_Toolbars_Dock_Area_Bottom.ForeColor = System.Drawing.SystemColors.ControlText;
- this._panel1_Toolbars_Dock_Area_Bottom.Location = new System.Drawing.Point(0, 653);
- this._panel1_Toolbars_Dock_Area_Bottom.Name = "_panel1_Toolbars_Dock_Area_Bottom";
- this._panel1_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(1350, 0);
- this._panel1_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.ultraToolbarsManager1;
- //
- // frmLgElements
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.ClientSize = new System.Drawing.Size(1350, 653);
- this.Controls.Add(this.panel1);
- this.Name = "frmLgElements";
- this.Text = "化学成分查询";
- this.Load += new System.EventHandler(this.ELEMENTS_Load);
- ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).EndInit();
- this.ultraGroupBox1.ResumeLayout(false);
- this.ultraGroupBox1.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.comboBox2)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.cboGW)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.cmb_BZ)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.uldtEndTime)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.uldtBeginTime)).EndInit();
- this.panel1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.EMGrid)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager1)).EndInit();
- this.ResumeLayout(false);
- }
- #endregion
- #endregion
- private DataSet _dsAll = new DataSet();
- private DataSet _dsSet;
- private int _intBegin = 0;
- private int _intEnd = 40;
- private string _strDuty = "0";
- private string _strGW = "";
- private string _dvRowFilter = "";
- private string _strWhere2 = "";
- private string _szTableName = "";
- public string _devPos = "";
- private Color c1 = Color.PaleGreen;
- private Color c2 = Color.White;
- public string workShopNo="";
- private Color c3 = Color.White;
- private Hashtable tabResult;
- private Hashtable tabSteel;
- public delegate void UpdateUIDelegate(bool IsDataLoaded);
- private void ELEMENTS_Load(object sender, System.EventArgs e)
- {
- label6.Visible = false;
- workShopNo = this.CustomInfo;
- uldtBeginTime.Value = DateTime.Today.ToString("yyyy-MM-dd") + " 00:00:59";
- uldtEndTime.Value = DateTime.Today.ToString("yyyy-MM-dd") + " 23:59:59";
- getElements();
- GetDudgeResult();
- InitSteel();
- GetDataFromAll();
- StartGetDataThread();
- cboGW.SelectedIndex = 1;
- }
- // 获取所有化学成份列名
- /// <summary>
- /// 获取所有化学成份列名
- /// </summary>
- private void getElements()
- {
- try
- {
- string strElementsRow = ElementsConfig.GetElementsRow(); //调用函数获取要显示的列名
- strERow = strElementsRow.Split('*');
- for (int i = 0; i < strERow.Length; i++)
- {
- dataTable1.Columns.Add(strERow[i] , typeof(System.Decimal)); //添加列
- }
- //string strErr = "";
- //ArrayList arry = new ArrayList();
- //arry.Add("FrmLgElements.select");//此ID为XML文件ID
- //CommonClientToServer cctos = new CommonClientToServer();
- //cctos.ob = this.ob;
- //DataSet dsElements = cctos.ExecuteQueryFunctions("Core.LgMes.Server.Common.ComDBQuery",
- // "doSimpleQuery", arry, out strErr);
- //if (strErr == "" && dsElements != null)
- //{
- // foreach (DataRow dr in dsElements.Tables[0].Rows)
- // {
- // dataTable1.Columns.Add(dr["BaseName"].ToString(), typeof(System.Decimal)); //添加列
- // }
- //}
- }
- catch { }
- }
- // 初始化Grind牌号
- /// <summary>
- /// 初始化Grind牌号
- /// </summary>
- private void InitSteel()
- {
- try
- {
- string strErr = "";
- EMGrid.DisplayLayout.ValueLists.Add("SteelCode");
- EMGrid.DisplayLayout.ValueLists.Add("JUDGE_STL_GRD");
- ArrayList arry = new ArrayList();
- arry.Add("ElementsSteel.Query");//此ID为XML文件ID
- CommonClientToServer cctos = new CommonClientToServer();
- cctos.ob = this.ob;
- DataSet dsSteel = cctos.ExecuteQueryFunctions("Core.LgMes.Server.Common.ComDBQuery",
- "doSimpleQuery", arry, out strErr);
- if (strErr == "" && dsSteel != null)
- {
- //SetColumnModeSteel(EMGrid, dsSteel);
- tabSteel = new Hashtable();
- //初始经Grid牌号字段数据集
- for (int i = 0; i < dsSteel.Tables[0].Rows.Count; i++)
- {
- EMGrid.DisplayLayout.ValueLists["SteelCode"].ValueListItems.Add(dsSteel.Tables[0].Rows[i]["SteelCode"].ToString(), dsSteel.Tables[0].Rows[i]["Steel"].ToString());
- EMGrid.DisplayLayout.ValueLists["JUDGE_STL_GRD"].ValueListItems.Add(dsSteel.Tables[0].Rows[i]["SteelCode"].ToString(), dsSteel.Tables[0].Rows[i]["Steel"].ToString());
- tabSteel.Add(dsSteel.Tables[0].Rows[i]["SteelCode"].ToString(), dsSteel.Tables[0].Rows[i]["Steel"].ToString());
- }
- //绑定单位
- EMGrid.DisplayLayout.Bands[0].Columns["计划牌号"].ValueList = EMGrid.DisplayLayout.ValueLists["SteelCode"];
- EMGrid.DisplayLayout.Bands[0].Columns["JUDGE_STL_GRD"].ValueList = EMGrid.DisplayLayout.ValueLists["JUDGE_STL_GRD"];
- }
- }
- catch { }
- }
- // 初始化判定结果编码
- /// <summary>
- /// 初始化判定结果编码
- /// </summary>
- public void GetDudgeResult()
- {
- try
- {
- string strErr = "";
- ArrayList arry = new ArrayList();
- arry.Add("frmBaseInfo_Children.select");
- arry.Add("1031");
- CommonClientToServer ccs = new CommonClientToServer();
- ccs.ob = this.ob;
- DataSet ds = ccs.ExecuteQueryFunctions("Core.LgMes.Server.Common.ComDBQuery", "doSimpleQuery", arry, out strErr);
- tabResult = new Hashtable();
- string strCode = "";
- string strResult = "";
- if (ds.Tables[0].Rows.Count > 0)
- {
- for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
- {
- strCode = ds.Tables[0].Rows[i]["BASECODE"].ToString();
- strResult = ds.Tables[0].Rows[i]["BASENAME"].ToString();
- tabResult.Add(strCode, strResult);
- }
- }
- }
- catch { }
- }
- // 铁水查询条件
- /// <summary>
- /// 铁水查询条件
- /// </summary>
- private void BuildSQLWithHMP()
- {
- try
- {
- _strWhere2 = "";
- string strStartTime = this.uldtBeginTime.DateTime.ToString("yyyy-MM-dd HH:mm:ss");
- string strEndTime = this.uldtEndTime.DateTime.ToString("yyyy-MM-dd HH:mm:ss");
- _strWhere2 += " and b.heatno = a.hudwid and to_char(b.ASSAYDATE, 'yyyy-MM-dd HH24:Mi:ss')"
- + "between '" + strStartTime + "' and '" + strEndTime + "'";
- //岗位
- if (_strGW != "")
- {
- _strWhere2 += String.Format(" and substr(b.STATIONCODE,1,1) ='{0}' ", this._strGW);
- }
- string szWZ = this._devPos.Substring(3, 2);
- if (szWZ != "00")
- {
- _strWhere2 += string.Format(" and substr(b.STATIONCODE,2,2) = '{0}' ", szWZ);
- }
- //班组
- if (chkBZ.Checked)
- {
- _strWhere2 += string.Format(" and substr(a.SHIFTCODE,2,1) = '{0}' ", this._strDuty);
- }
- //气体样
- if (chkGasSample.Checked)
- {
- _strWhere2 += " and (N>0 or H>0 or O>0) ";
- }
- }
- catch { }
- }
- // 非铁水查询条件
- /// <summary>
- /// 非铁水查询条件
- /// </summary>
- private void BuildSQLWithOutHMP()
- {
- try
- {
- string strErr = "";
- _strWhere2 = "";
- string strStartTime = this.uldtBeginTime.DateTime.ToString("yyyy-MM-dd HH:mm:ss");
- string strEndTime = this.uldtEndTime.DateTime.ToString("yyyy-MM-dd HH:mm:ss");
- _strWhere2 += " and b.HEATNO = a.HEATNO and to_char(b.ASSAYDATE, 'yyyy-MM-dd HH24:Mi:ss')"
- +"between '" + strStartTime + "' and '" + strEndTime + "'";
- //熔炼号
- if (chkHeatbo.Checked)
- {
- if (this.ultraMaskedEdit1.Text.Length == 0 && this.ultraMaskedEdit2.Text.Length > 0)
- {
- _strWhere2 += String.Format(" and a.HEATNO like '%{0}%' ", this.ultraMaskedEdit2.Text.Trim());
- }
- if (this.ultraMaskedEdit2.Text.Length == 0 && this.ultraMaskedEdit1.Text.Length > 0)
- {
- _strWhere2 += String.Format(" and a.HEATNO like '%{0}%' ", this.ultraMaskedEdit1.Text.Trim());
- }
- if (this.ultraMaskedEdit2.Text.Length > 0 && this.ultraMaskedEdit1.Text.Length > 0)
- {
- _strWhere2 += String.Format(" and a.HEATNO between '{0}' and '{1}' ", this.ultraMaskedEdit1.Text.Trim(), this.ultraMaskedEdit2.Text.Trim());
- }
- }
- //岗位
- if (_strGW != "")
- {
- _strWhere2 += String.Format(" and substr(b.STATIONCODE,1,1) ='{0}' ", this._strGW);
- }
- string szWZ = this._devPos.Substring(3, 2);
- if (szWZ != "00")
- {
- _strWhere2 += string.Format(" and substr(b.STATIONCODE,2,2) = '{0}' ", szWZ);
- }
- //班组
- if (chkBZ.Checked)
- {
- _strWhere2 += string.Format(" and substr(a.SHIFTCODE,2,1) = '{0}' ", this._strDuty);
- }
- string str = "";
- //牌号
- if (chkSteel.Checked)
- {
- if (txtSteel.Text.Trim() != "")
- str = txtSteel.Text.ToString();
- else
- str = "";
- if (str != "")
- {
- string strSteeAll = "";
- string steel = "";
- string[] strSteel = str.Split(',');
- for (int i = 0; i < strSteel.Length; i++)
- {
- if (!string.IsNullOrEmpty(strSteel[i]))
- {
- if (tabSteel != null)
- {
- foreach (DictionaryEntry dSteel in tabSteel)
- {
- if (dSteel.Value.ToString() == strSteel[i])
- {
- steel = dSteel.Key.ToString();
- strSteeAll += "'" + steel + "',";
- }
- }
- }
- }
- }
- str = strSteeAll.Substring(0, strSteeAll.Length - 1);
- _strWhere2 += string.Format(" and a.plansteel in ({0})", str);
- }
- }
- //气体样
- if (chkGasSample.Checked)
- {
- _strWhere2 += " and (N>0 or H>0 or O>0) ";
- }
- }
- catch { }
- }
- private void BuildSQLWithOutID()
- {
- try
- {
- string begTime = this.uldtBeginTime.DateTime.ToString("yyyy-MM-dd HH:mm:ss");
- string endTime = this.uldtEndTime.DateTime.ToString("yyyy-MM-dd HH:mm:ss");
- string strStartTime = "";
- string strEndTime = "";
- if (Convert.ToDateTime(uldtBeginTime.Text.Trim()) > Convert.ToDateTime(uldtEndTime.Text.Trim()))
- {
- //MessageBox.Show("选择的开始时间不能大于结束时间!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- return ;
- }
- strStartTime = this.uldtBeginTime.DateTime.ToString("yyyy-MM-dd HH:mm:ss");
- strEndTime = this.uldtEndTime.DateTime.ToString("yyyy-MM-dd HH:mm:ss");
-
- if (_devPos.Substring(0, 3) == "HMP" || _devPos.Substring(0, 4) == "SYGW")// 铁水 或者 所有岗位
- {
- _strWhere2 = " and a.hudwid = b.heatno and to_char(b.ASSAYDATE, 'yyyy-MM-dd HH24:Mi:ss') between '" + strStartTime + "' and '" + strEndTime + "' ";
- Isbool = true;
- }
- else
- {
- _strWhere2 = " and b.HEATNO = a.HEATNO and to_char(b.ASSAYDATE, 'yyyy-MM-dd HH24:Mi:ss') between '" + strStartTime + "' and '" + strEndTime + "' ";
- Isbool = false;
- }
- string str = this._devPos.Substring(0, 3), szWZ = this._devPos.Substring(3, 2);
- if (this._strDuty != "0")
- _strWhere2 += string.Format(" and substr(a.SHIFTCODE,2,1) = '{0}' ", this._strDuty);
- if (str != "HMP" && szWZ != "00" && str != "SYG")
- _strWhere2 += string.Format(" and substr(b.STATIONCODE,2,2) = '{0}'", szWZ);
- if (_strGW != "")
- {
- _strWhere2 += String.Format(" and substr(b.STATIONCODE,1,1) ='{0}' ", this._strGW);
- }
- if (chkSteel.Checked)
- {
- if (txtSteel.Text.Trim() != "")
- str = txtSteel.Text.ToString();
- else
- str = "";
- if (str != "")
- {
- string strSteeAll = "";
- string steel = "";
- string[] strSteel = str.Split(',');
- for (int i = 0; i < strSteel.Length; i++)
- {
- if (!string.IsNullOrEmpty(strSteel[i]))
- {
- if (tabSteel != null)
- {
- foreach (DictionaryEntry dSteel in tabSteel)
- {
- if (dSteel.Value.ToString() == strSteel[i].ToUpper())
- {
- steel = dSteel.Key.ToString().ToUpper();
- strSteeAll += "'" + steel + "',";
- }
- }
- }
- }
- }
- if (strSteeAll.Length == 0)
- {
- str = "'1'";
- }
- if (strSteeAll.Length > 1)
- {
- str = strSteeAll.Substring(0, strSteeAll.Length - 1);
- }
- _strWhere2 += string.Format(" and a.plansteel in ({0})", str);
- }
- }
- //气体样
- if (chkGasSample.Checked)
- {
- _strWhere2 += " and (N>0 or H>0 or O>0) ";
- }
- }
- catch { }
- }
- // 查询化学元素
- /// <summary>
- /// 查询化学元素
- /// </summary>
- public void GetDataFromAll()
- {
- try
- {
- if (Convert.ToDateTime(uldtEndTime.Value) < Convert.ToDateTime(uldtBeginTime.Value))
- {
- MessageBox.Show("结束时间必须大于等于开始时间!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
- return;
- }
- if (chkHeatbo.Checked && this.ultraMaskedEdit1.Text.Length == 0 && this.ultraMaskedEdit2.Text.Length == 0)
- {
- MessageBox.Show("炉号不能为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
- ultraMaskedEdit1.Focus();
- return;
- }
- if (chkBZ.Checked && this.cmb_BZ.SelectedIndex<0)
- {
- MessageBox.Show("班组不能为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
- cmb_BZ.Focus();
- return;
- }
- if (chkSteel.Checked && txtSteel.Text.Length == 0)
- {
- MessageBox.Show("计划牌号不能空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
- chkSteel.Focus();
- return;
- }
- GetPost();
- GetDuty();
- string strFindName = "";
- for (int i = 0; i < strERow.Length; i++)
- {
- if (!string.IsNullOrEmpty(strERow[i]))
- strFindName = strFindName + "," + strERow[i];
- }
- if (_devPos.Substring(0, 3) == "HMP")
- {
- BuildSQLWithHMP();
- Isbool = true;
- }
- else
- {
- BuildSQLWithOutHMP();
- Isbool = false;
- }
- _dsAll = new DataSet();
- //定义一个ArrayList集合存储变量[参数]值
- ArrayList arry = new ArrayList();
- ArrayList sqlList = new ArrayList();
- if (Isbool)
- {
- arry.Add("FrmHMPElements_Query.select");
- }
- else
- {
- arry.Add("FrmLgElements_Query.select");
- }
- sqlList.Add(strFindName);
- sqlList.Add(_szTableName);//表名
- sqlList.Add("J#" + _szTableName);//表名
- sqlList.Add(_strWhere2);
- //调用服务端方法
- CoreClientParam CCP_LgEts = new CoreClientParam();
- DataTable dt = new DataTable();
- CCP_LgEts.ServerName = "Core.LgMes.Server.Common.ComDBQuery";
- CCP_LgEts.MethodName = "doQuery";
- CCP_LgEts.ServerParams = new object[] { arry, sqlList };
- CCP_LgEts.SourceDataTable = dt;
- this.ExecuteSortResultByQueryToDataTable(CCP_LgEts, CoreInvokeType.Internal);
- _dsAll.Tables.Add(dt.Copy());
- //_dsAll.Tables[0].DefaultView.RowFilter = _dvRowFilter;
- //DataRow[] row = _dsAll.Tables[0].Select(_dvRowFilter);
- //int currrow = row.Length;
- //if (currrow < 40)
- //{
- // this._intEnd = currrow;
- //}
- //else
- //{ _intEnd = Convert.ToInt32(this.txtPage.Text.Trim()); }
- SetEachRowData();
- }
- catch (Exception ex)
- {
- Debug.WriteLine(ex.Message);
- }
- }
- // 将数据装载到DATASET
- /// <summary>
- /// 将数据装载到DATASET
- /// </summary>
- private void SetEachRowData()
- {
- try
- {
- DataRow newRow = dataTable1.NewRow();
- DataRow Drow=null;
- dataTable1.Rows.Clear();
-
- int RowId = 1;
- if (_dsAll.Tables[0].Rows.Count == 0)
- {
- SetGridRowHidden();
- }
- for (int i = 0; i < this._dsAll.Tables[0].Rows.Count; i++)
- {
- newRow = dataTable1.NewRow();
- // Drow = _dsAll.Tables[0].DefaultView[i].Row;
- Drow = _dsAll.Tables[0].Rows[i];
- newRow[0] = RowId++;
- newRow[1] = Drow["HEATNO"].ToString();
- newRow[6] = ClsBusinessPack.GetDeviceChineseName(Drow["STATIONCODE"].ToString());
- string strAs = Drow["ASSAYTYPECODE"].ToString();
- newRow[7] = strAs.Substring(strAs.Length - 1, 1); //次数
- newRow[2] = Drow["gzbm"].ToString();
- if (Drow["ASSAYDATE"].ToString() != "")
- newRow[3] = Convert.ToDateTime(Drow["ASSAYDATE"]).ToString("yyyy-MM-dd HH:mm:ss");
- //newRow[4] = Drow["GZBM"].ToString();
- newRow[5] = Drow["shiftcode"].ToString();
- //if (_devPos.Substring(0, 3) != "HMP")
- //{
- // newRow[11] = Drow["SIMN"].ToString();//20120109 新增
- //}
- foreach (DataColumn dc in _dsAll.Tables[0].Columns)
- {
- foreach (DataColumn dc1 in dataTable1.Columns)
- {
- if (dc1.ColumnName.ToUpper() == dc.ColumnName.ToUpper())
- {
- if (Drow[dc].ToString() != "")
- newRow[dc1] = Drow[dc].ToString();
- if (_devPos.Substring(0, 3) != "HMP")
- {
- if (newRow[7].ToString() != "" && Drow["JUDGE_SEQ"].ToString() != "")
- {
- if (strAs.Substring(0, 1) == "G")// && Convert.ToInt32(newRow[7]) == Convert.ToInt32(Drow["JUDGE_SEQ"].ToString()))
- {
- newRow[8] = Drow["JUDGE_STL_GRD"].ToString();
- if (tabResult.Contains(Drow["JUDGE_RESULT"].ToString()))
- {
- newRow[9] = tabResult[Drow["JUDGE_RESULT"].ToString()].ToString(); //== "1" ? "合格" : "不合格";
- }
- newRow[10] = Drow["REG_ID"].ToString();
- }
- else
- {
- newRow[8] = null;
- newRow[9] = null;
- newRow[10] = null;
- }
- }
- }
- break;
- }
- }
- }
- dataTable1.Rows.Add(newRow);
- }
- SetGridRowHidden();
- PublicMethod.RefreshAndAutoSize(EMGrid);
- }
- catch (Exception ex)
- {
- throw ex;
- }
- }
- // 根据设置隐藏不要显示的列
- /// <summary>
- /// 根据设置隐藏不要显示的列
- /// </summary>
- private void SetGridRowHidden()
- {
- try
- {
- if (_devPos.Substring(0, 3) == "HMP")
- {
- EMGrid.DisplayLayout.Bands[0].Columns["熔炼号"].Header.Caption = "脱硫号";
- }
- else
- {
- EMGrid.DisplayLayout.Bands[0].Columns["熔炼号"].Header.Caption = "炉号";
- }
- //新增列时,相继修改J的值(新增n列时,j=j+n),否则将不会在界面显示
- //for (int j = 13; j < EMGrid.DisplayLayout.Bands[0].Columns.Count; j++)
- //{
- // EMGrid.DisplayLayout.Bands[0].Columns[j].Hidden = true;
- // EMGrid.DisplayLayout.Bands[0].Columns[j].Width = 60;
- // EMGrid.DisplayLayout.Bands[0].Columns[j].CellActivation = Activation.NoEdit;
- // EMGrid.DisplayLayout.Bands[0].Columns[0].CellActivation = Activation.AllowEdit;
- // EMGrid.DisplayLayout.Bands[0].Columns[1].CellActivation = Activation.AllowEdit;
- // EMGrid.DisplayLayout.Bands[0].Columns[2].CellActivation = Activation.NoEdit;
- // EMGrid.DisplayLayout.Bands[0].Columns[3].CellActivation = Activation.NoEdit;
- // EMGrid.DisplayLayout.Bands[0].Columns[4].CellActivation = Activation.NoEdit;
- // EMGrid.DisplayLayout.Bands[0].Columns[5].CellActivation = Activation.NoEdit;
- // EMGrid.DisplayLayout.Bands[0].Columns[6].CellActivation = Activation.NoEdit;
- // EMGrid.DisplayLayout.Bands[0].Columns[7].CellActivation = Activation.NoEdit;
- //}
- //for (int i = 0; i < strERow.Length; i++)
- //{
- // if (!string.IsNullOrEmpty(strERow[i]))
- // EMGrid.DisplayLayout.Bands[0].Columns[strERow[i]].Hidden = false;
- //}
- for (int j = 0; j < strERow.Length; j++)
- {
- EMGrid.DisplayLayout.Bands[0].Columns[strERow[j]].Header.VisiblePosition = j + 7;
- }
- EMGrid.DisplayLayout.Bands[0].Columns[5].Header.VisiblePosition = EMGrid.DisplayLayout.Bands[0].Columns.Count;
- EMGrid.DisplayLayout.Bands[0].Columns[3].Header.VisiblePosition = EMGrid.DisplayLayout.Bands[0].Columns.Count;
- EMGrid.DisplayLayout.Bands[0].Columns[6].Header.VisiblePosition = 2;
- EMGrid.DisplayLayout.Bands[0].Columns[7].Header.VisiblePosition = 3;
- EMGrid.DisplayLayout.Bands[0].Columns[2].Header.VisiblePosition = 4;
- EMGrid.DisplayLayout.Bands[0].Columns[8].Header.VisiblePosition = 5;
- EMGrid.DisplayLayout.Bands[0].Columns[9].Header.VisiblePosition = 6;
- EMGrid.DisplayLayout.Bands[0].Columns[10].Header.VisiblePosition = 7;
- // EMGrid.DisplayLayout.Bands[0].Columns[12].Header.VisiblePosition = 8;
- EMGrid.DisplayLayout.Bands[0].Columns[1].Header.Fixed = true;
- EMGrid.DisplayLayout.Bands[0].Columns[2].Header.Fixed = true;
- EMGrid.DisplayLayout.Bands[0].Columns[6].Header.Fixed = true;
- EMGrid.DisplayLayout.Bands[0].Columns[7].Header.Fixed = true;
- for (int i = 0; i < EMGrid.DisplayLayout.Bands[0].Columns.Count; i++)
- {
- EMGrid.DisplayLayout.Bands[0].Columns[i].CellActivation = Activation.ActivateOnly;
- }
- }
- catch
- {
- }
- }
- // 获取工序位置
- /// <summary>
- /// 获取工序位置
- /// </summary>
- private void GetPost()
- {
- this._devPos = "";
- switch (this.cboGW.SelectedIndex)
- {
- case 1:
- this._devPos = "HMP0";
- this._strGW = "B";
- this._szTableName = "STL_HMP_OPTINFO";
- break;
- case 2:
- this._devPos = "BOF0";
- this._strGW = "C";
- this._szTableName = "STL_BOF_OPTINFO";
- break;
- case 3:
- this._devPos = "CAS0";
- this._strGW = "D";
- this._szTableName = "STL_CAS_OPTINFO";
- break;
- case 4:
- this._devPos = "LFS0";
- this._strGW = "E";
- this._szTableName = "STL_LFS_OPTINFO";
- break;
- case 5:
- this._devPos = "CCM0";
- this._strGW = "G";
- this._szTableName = "STL_CCM_OPTINFO";
- break;
- default:
- this._devPos = "SYGW"; // 所有岗位
- this._szTableName = "";
- break;
- }
- this._devPos += this.comboBox2.Value.ToString();
- }
- // 根据选择获取班次序号
- /// <summary>
- /// 根据选择获取班次序号
- /// </summary>
- private void GetDuty()
- {
- if (cmb_BZ.SelectedIndex >= 0)
- {
- this._strDuty = this.cmb_BZ.Value.ToString();
- }
- }
- // 工序位置下拉列表设置
- /// <summary>
- /// 工序位置下拉列表设置
- /// </summary>
- private void cboGW_SelectionChanged(object sender, EventArgs e)
- {
- comboBox2.Items.Clear();
- int index;
- index = cboGW.SelectedIndex;
- switch (index)
- {
- case 1:
- comboBox2.Items.Add(0, "所有");
- comboBox2.Items.Add(1, "1#脱硫站");
- comboBox2.Items.Add(2, "2#脱硫站");
- break;
- case 2:
- comboBox2.Items.Add(0, "所有");
- comboBox2.Items.Add(1, "1#转炉");
- comboBox2.Items.Add(2, "2#转炉");
- comboBox2.Items.Add(3, "3#转炉");
- comboBox2.Items.Add(4, "4#转炉");
- comboBox2.Items.Add(5, "5#转炉");
- break;
- case 3:
- comboBox2.Items.Add(0, "所有");
- comboBox2.Items.Add(1, "1#吹氩站");
- comboBox2.Items.Add(2, "2#吹氩站");
- comboBox2.Items.Add(3, "3#吹氩站");
- comboBox2.Items.Add(4, "4#吹氩站");
- comboBox2.Items.Add(5, "5#吹氩站");
- break;
- case 4:
- comboBox2.Items.Add(0, "所有");
- comboBox2.Items.Add(1, "1#精炼炉");
- comboBox2.Items.Add(2, "2#精炼炉");
- comboBox2.Items.Add(3, "3#精炼炉");
- break;
- case 5:
- comboBox2.Items.Add(0, "所有");
- comboBox2.Items.Add(1, "1#连铸");
- comboBox2.Items.Add(2, "2#连铸");
- comboBox2.Items.Add(3, "3#连铸");
- comboBox2.Items.Add(4, "4#连铸");
- comboBox2.Items.Add(5, "5#连铸");
- break;
- default:
- comboBox2.Items.Add(0, "所有");
- break;
- }
- if (index == 0)
- {
- chkHeatbo.Checked = false;
- chkHeatbo.Enabled = false;
- chkSteel.Checked = false;
- chkSteel.Enabled = false;
- }
- else
- {
- chkHeatbo.Enabled = true;
- chkSteel.Enabled = true;
- }
- comboBox2.SelectedIndex = 0;
- }
- #region "自动刷新"
- private Thread _getDataThread;
- private bool On_Off_GetDataThread = false;
- private delegate void getDataFromAllDelegate();
- private void StartGetDataThread()
- {
- try
- {
- ThreadStart ts = new ThreadStart(GetDataThread);
- _getDataThread = new Thread(ts);
- _getDataThread.Name = "GetDataThread ";
- _getDataThread.Start();
- }
- catch { }
- }
- private void GetDataThread()
- {
- ReStartGetDataThread:
- while (true)
- {
- if (!this.On_Off_Thread || !On_Off_GetDataThread)
- {
- System.Threading.Thread.Sleep(500);
- continue;
- }
- try
- {
- this.Invoke(new getDataFromAllDelegate(GetDataFromAll));
- System.Threading.Thread.Sleep(3000);
- }
- catch
- { }
- }
- goto ReStartGetDataThread;
- }
- // 勾选是否自动刷新
- /// <summary>
- /// 勾选是否自动刷新
- /// </summary>
- private void chkRefresh_CheckedChanged(object sender, EventArgs e)
- {
- On_Off_GetDataThread = this.chkRefresh.Checked;
- }
- #endregion
- // 解析作业路线
- /// <summary>
- /// 解析作业路线
- /// </summary>
- /// <param name="craftPath">路线代码</param>
- /// <returns></returns>
- public string analysPath(string craftPath, string strPath)
- {
- string path = "", strcPath = "";
- strcPath = strPath;
- try
- {
- string StationCode = craftPath.Substring(0, 2);
- string strCS = "";
- if (strPath.Length < 5)
- {
- strCS = strcPath.Substring(2, 2);
- }
- else if (strPath.Length > 5 && strcPath.Length < 7)
- {
- strCS = strcPath.Substring(2, 4);
- }
- else
- strCS = strcPath.Substring(2, 3);
- switch (StationCode)
- {
- case "B0":
- path = "脱硫" + Convert.ToInt32(strCS) + "次样";
- break;
- case "B1":
- path = "1#脱硫" + Convert.ToInt32(strCS) + "次样";
- break;
- case "B2":
- path = "2#脱硫" + Convert.ToInt32(strCS) + "次样";
- break;
- case "C0":
- path = "转炉" + Convert.ToInt32(strCS) + "次样";
- break;
- case "C1":
- path = "1#转炉" + Convert.ToInt32(strCS) + "次样";
- break;
- case "C2":
- path = "2#转炉" + Convert.ToInt32(strCS) + "次样";
- break;
- case "C3":
- path = "3#转炉" + Convert.ToInt32(strCS) + "次样";
- break;
- case "C4":
- path = "4#转炉" + Convert.ToInt32(strCS) + "次样";
- break;
- case "C5":
- path = "5#转炉" + Convert.ToInt32(strCS) + "次样";
- break;
- case "D0":
- path = "吹氩" + Convert.ToInt32(strCS) + "次样";
- break;
- case "D1":
- path = "1#吹氩" + Convert.ToInt32(strCS) + "次样";
- break;
- case "D2":
- path = "2#吹氩" + Convert.ToInt32(strCS) + "次样";
- break;
- case "D3":
- path = "3#吹氩" + Convert.ToInt32(strCS) + "次样";
- break;
- case "D4":
- path = "4#吹氩" + Convert.ToInt32(strCS) + "次样";
- break;
- case "D5":
- path = "5#吹氩" + Convert.ToInt32(strCS) + "次样";
- break;
- //case "DQ":
- // path = "CAS前" + Convert.ToInt32(strCS) + "次样";
- // break;
- //case "DH":
- // path = "CAS后" + Convert.ToInt32(strCS) + "次样";
- //break;
- case "E0":
- path = "LF炉" + Convert.ToInt32(strCS) + "次样";
- break;
- case "E1":
- path = "1#LF炉" + Convert.ToInt32(strCS) + "次样";
- break;
- case "E2":
- path = "2#LF炉" + Convert.ToInt32(strCS) + "次样";
- break;
- case "E3":
- path = "3#LF炉" + Convert.ToInt32(strCS) + "次样";
- break;
- case "F0":
- path = "RH炉" + Convert.ToInt32(strCS) + "次样";
- break;
- case "F1":
- path = "RH炉" + Convert.ToInt32(strCS) + "次样";
- break;
- case "I0":
- path = "VD炉" + Convert.ToInt32(strCS) + "次样";
- break;
- case "I1":
- path = "VD炉" + Convert.ToInt32(strCS) + "次样";
- break;
- case "GP":
- path = "连铸" + Convert.ToInt32(strCS) + "次样"; ;
- break;
- }
- }
- catch
- {
- }
- return path;
- }
- public override void ToolBar_Click(object sender, string ToolbarKey)
- {
- switch (ToolbarKey)
- {
- case "Query":
- this.GetDataFromAll();
- break;
- case "SetSampling": //设置样点
- SetSampling();
- break;
- case "SetRowName": //设置化学成份字段显示
- SetRowName();
- break;
- case "Export":
- try
- {
- //Core.Mes.Client.Common.Globals.ulGridToExcel(EMGrid, Text);
- GridHelper.ulGridToExcel(EMGrid, Text);
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.Message);
- }
- break;
- case "Exit":
- this.Close();
- break;
- default:
- break;
- }
- base.ToolBar_Click(sender, ToolbarKey);
- }
- // 设置化学成份列名
- /// <summary>
- /// 设置化学成份列名
- /// </summary>
- private void SetRowName()
- {
- try
- {
- DataSet dsElements = new DataSet();
- //定义一个ArrayList集合存储变量[参数]值
- ArrayList arry = new ArrayList();
- arry.Add("FrmSetRowName.select");
- //调用服务端方法
- CoreClientParam CCP_Sampling = new CoreClientParam();
- DataTable dt = new DataTable();
- CCP_Sampling.ServerName = "Core.LgMes.Server.Common.ComDBQuery";
- CCP_Sampling.MethodName = "doSimpleQuery";
- CCP_Sampling.ServerParams = new object[] { arry };
- CCP_Sampling.SourceDataTable = dt;
- this.ExecuteSortResultByQueryToDataTable(CCP_Sampling, CoreInvokeType.Internal);
- ArrayList alist = new ArrayList();
- Hashtable htbl = new Hashtable();
- if (dt != null)
- {
- if (dt.Rows.Count > 0)
- {
- DataRow newdr = dt.NewRow();
- foreach (DataRow dr in dt.Rows)
- {
- if (dr["BASENAME"].ToString() != "As+Sn+Sb+Pb+Bi")
- {
- alist.Add(dr["BASENAME"].ToString());
- htbl.Add(dr["BASENAME"].ToString(), "0");
- }
- }
- }
- }
- if (htbl != null && htbl.Count > 0)
- {
- frmSetEleCols frm = new frmSetEleCols();
- frm.alist = alist;
- frm.htbl = htbl;
- if (frm.ShowDialog() == DialogResult.OK)
- {
- //dataTable1.Clear();
- //dataTable1.Reset();
- for (int i = 0; i < strERow.Length; i++)
- {
- if (dataTable1.Columns.Contains(strERow[i]))
- {
- dataTable1.Columns.Remove(strERow[i]);
- }
- }
- getElements();
- GetDataFromAll();
- }
- }
- else
- {
- MessageBox.Show("化学成分列获取失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
- return;
- }
- //if (dt != null)
- //{
- // if (dt.Rows.Count > 0)
- // {
- // dt.Rows[0].Table.Columns.Add(new DataColumn("选择", typeof(System.Boolean)));
- // DataRow newdr = dt.NewRow();
- // foreach (DataRow dr in dt.Rows)
- // {
- // dr["选择"] = false;
- // if (dr["BASENAME"].ToString() == "As+Sn+Sb+Pb+Bi")
- // {
- // newdr = dr;
- // }
- // }
- // dt.Rows.Remove(newdr);
- // frmConfigElementsRow frm = new frmConfigElementsRow();
- // frm.StartPosition = FormStartPosition.CenterScreen;
- // frm.WindowState = FormWindowState.Normal;
- // dsElements.Tables.Add(dt);
- // frm._dsSet = dsElements;
- // frm.ShowDialog();
- // // 判断是否有设置
- // if (frm._setFlag)
- // {
- // string strElementsRow = ElementsConfig.GetElementsRow(); //调用函数获取要显示的列名
- // strERow = strElementsRow.Split('*');
- // GetDataFromAll();
- // }
- // }
- // else
- // MessageBox.Show("查询失败!!!", "提示");
- //}
- }
- catch { }
- }
- // 显示样点
- /// <summary>
- /// 显示样点
- /// </summary>
- private void SetSampling()
- {
- try
- {
- DataTable dt = new DataTable();
- if (dataSet1 != null)
- {
- _dsSet = new DataSet();
- //定义一个ArrayList集合存储变量[参数]值
- ArrayList arry = new ArrayList();
- arry.Add("FrmSetSamplin.select");//此ID为XML文件ID
- //调用服务端方法
- CoreClientParam CCP_Sampling = new CoreClientParam();
- CCP_Sampling.ServerName = "Core.LgMes.Server.Common.ComDBQuery";
- CCP_Sampling.MethodName = "doSimpleQuery";
- CCP_Sampling.ServerParams = new object[] { arry };
- CCP_Sampling.SourceDataTable = dt;
- this.ExecuteSortResultByQueryToDataTable(CCP_Sampling, CoreInvokeType.Internal);
- dt.Rows[0].Table.Columns.Add(new DataColumn("工序名", typeof(System.String)));
- dt.Rows[0].Table.Columns.Add(new DataColumn("选择", typeof(System.Boolean)));
- foreach (DataRow dr in dt.Rows)
- {
- string SetColumn = dr["ASSAYTYPECODE"].ToString().Substring(0, 2);
- dr["ASSAYTYPECODE"] = dr["ASSAYTYPECODE"].ToString();
- dr["工序名"] = analysPath(SetColumn, dr["ASSAYTYPECODE"].ToString());
- dr["选择"] = true;
- }
- }
- _dsSet.Tables.Add(dt);
- frmSetSampling frm = new frmSetSampling();
- frm._dsSet = _dsSet;
- frm.ShowDialog();
- if (frm._setFlag)
- {
- _dsSet = frm._dsSet;
- _dsSet.AcceptChanges();
- _dvRowFilter = "";
- foreach (DataRow dr in _dsSet.Tables[0].Rows)
- {
- if (Convert.ToBoolean(dr["选择"]) == true)
- {
- _dvRowFilter += string.Format("or assaytypecode = '{0}' ", dr[0].ToString());
- }
- }
- if (_dvRowFilter.Length > 0)
- {
- _dvRowFilter = _dvRowFilter.Substring(2, _dvRowFilter.Length - 2);
- }
- GetDataFromAll();
- }
- }
- catch { }
- }
- private void EMGrid_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
- {
- try
- {
- //GetId(e.Row.Index, EMGrid);
- //if (EMGrid.Rows[e.Row.Index].Cells[0].Value.ToString().IndexOf("√") > 0)
- //{
- if (cboGW.Text.ToString() == "铁水") return;
- string strHeatNo = EMGrid.Rows[e.Row.Index].Cells["熔炼号"].Value.ToString();
- if (strHeatNo.Length < 8)
- return;
- string strSteelCode = EMGrid.Rows[e.Row.Index].Cells["计划牌号"].Text.Trim();
- //string szEleStd = "";
- ////设置要获取的化学成分标准
- //for (int i = 5; i < EMGrid.DisplayLayout.Bands[0].Columns.Count; i++)
- //{
- // if (EMGrid.DisplayLayout.Bands[0].Columns[i].Hidden == false)
- // {
- // szEleStd = szEleStd + "','" + EMGrid.DisplayLayout.Bands[0].Columns[i].Header.Caption;
- // }
- //}
- //frmLgEleDetail.szEleStd = szEleStd;
- frmLgEleDetail Azhupi = new frmLgEleDetail(strHeatNo, ob);
- Azhupi.ultrgridRow = EMGrid.ActiveRow;
- Azhupi.ShowDialog(this);
- //}
- }
- catch { }
- }
- private void EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e)
- {
- UltraMaskedEdit ume = (UltraMaskedEdit)sender;
- switch (e.Button.Key)
- {
- //case "edit":
- // frmNumberWriter frm = new frmNumberWriter();
- // frm._strText = ume.Text.Trim();
- // frm.Location = GetChildWindowLocation(frm.Size);
- // frm.ShowDialog();
- // ume.Text = frm._strText;
- // break;
- case "clear":
- if (ume.Text.Trim().Length > 0)
- {
- ume.Tag = ume.Text.Trim();
- ume.Text = "";
- }
- else
- {
- if (ume.Tag != null)
- ume.Text = ume.Tag.ToString();
- }
- break;
- }
- }
-
- private void chkSteel_CheckedChanged(object sender, EventArgs e)
- {
- if (chkSteel.Checked)
- {
- txtSteel.Enabled = true;
- }
- else
- {
- txtSteel.Enabled = false;
- txtSteel.BackColor = Color.WhiteSmoke;
- }
- }
- private void ultraMaskedEdit1_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (!(Char.IsNumber(e.KeyChar) || e.KeyChar == '\b'))
- {
- e.Handled = true;
- }
- }
- private void txtSteel_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (!(e.KeyChar == ',' || e.KeyChar == '\b' || char.IsDigit(e.KeyChar) || char.IsLetter(e.KeyChar)))
- {
- e.Handled = true;
- }
-
- }
- private void chkBZ_CheckedChanged(object sender, EventArgs e)
- {
- cmb_BZ.Enabled = chkBZ.Checked;
- }
- private void chkHeatbo_CheckedChanged(object sender, EventArgs e)
- {
- ultraMaskedEdit1.Enabled = ultraMaskedEdit2.Enabled = chkHeatbo.Checked;
- }
- }
- }
|