FrmCutBilletDetailQuery.cs 146 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635
  1. using System;
  2. using System.Data;
  3. using System.Drawing;
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using Core.Mes.ClientFrameWork;
  10. using Core.Mes.ServerFrameWork;
  11. using Infragistics.Win.UltraWinGrid;
  12. using Core.LgMes.Client.LgIntegrationQuery;
  13. using Core.Mes.IBaseInterface;
  14. using System.Threading;
  15. namespace Core.LgMes.Client.LgJobMgt
  16. {
  17. /// <summary>
  18. /// FrmCutBilletDetailQuery 的摘要说明。
  19. /// </summary>
  20. public partial class FrmCutBilletDetailQuery : Core.Mes.Client.Common.frmStyleBase, IDisposable
  21. {
  22. #region " Construct "
  23. private System.Data.DataSet dataSet1;
  24. private Infragistics.Win.UltraWinGrid.UltraGrid ultraGrid1;
  25. private Infragistics.Win.Misc.UltraGroupBox ultraGroupBox1;
  26. private System.Windows.Forms.TextBox textBox1;
  27. private System.Windows.Forms.ComboBox comboBox4;
  28. private System.Windows.Forms.CheckBox checkBox3;
  29. private System.Windows.Forms.CheckBox checkBox2;
  30. private System.Windows.Forms.Label label9;
  31. public System.Windows.Forms.DateTimePicker dateTimePicker4;
  32. private System.Windows.Forms.CheckBox checkBox1;
  33. private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager ultraToolbarsManager1;
  34. private System.Windows.Forms.Panel panel1;
  35. private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panel1_Toolbars_Dock_Area_Left;
  36. private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panel1_Toolbars_Dock_Area_Right;
  37. private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panel1_Toolbars_Dock_Area_Top;
  38. private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panel1_Toolbars_Dock_Area_Bottom;
  39. private System.Data.DataTable dataTable1;
  40. private System.Data.DataColumn dataColumn1;
  41. private System.Data.DataColumn dataColumn2;
  42. private System.Data.DataColumn dataColumn3;
  43. private System.Data.DataColumn dataColumn4;
  44. private System.Data.DataColumn dataColumn5;
  45. private System.Data.DataColumn dataColumn6;
  46. private System.Data.DataColumn dataColumn7;
  47. private System.Data.DataColumn dataColumn8;
  48. private System.Data.DataColumn dataColumn9;
  49. private System.Data.DataColumn dataColumn10;
  50. private System.Data.DataColumn dataColumn11;
  51. private System.Data.DataColumn dataColumn12;
  52. private System.Data.DataColumn dataColumn13;
  53. private System.Data.DataColumn dataColumn14;
  54. private System.Data.DataColumn dataColumn15;
  55. private System.Data.DataColumn dataColumn16;
  56. private Infragistics.Win.Misc.UltraExpandableGroupBox ultraExpandableGroupBox1;
  57. private Infragistics.Win.Misc.UltraExpandableGroupBoxPanel ultraExpandableGroupBoxPanel1;
  58. private System.Windows.Forms.DateTimePicker dateTimePicker5;
  59. private System.Windows.Forms.Label label19;
  60. private System.Windows.Forms.Label label18;
  61. private System.Windows.Forms.TextBox textBox12;
  62. private System.Windows.Forms.TextBox textBox11;
  63. private System.Windows.Forms.Label label16;
  64. private System.Windows.Forms.TextBox textBox10;
  65. private System.Windows.Forms.Label label14;
  66. private System.Windows.Forms.TextBox textBox9;
  67. private System.Windows.Forms.Label label12;
  68. private System.Windows.Forms.TextBox textBox3;
  69. private System.Windows.Forms.Label label6;
  70. private System.Windows.Forms.TextBox textBox8;
  71. private System.Windows.Forms.TextBox textBox7;
  72. private System.Windows.Forms.TextBox textBox6;
  73. private System.Windows.Forms.TextBox textBox5;
  74. private System.Windows.Forms.TextBox textBox4;
  75. private System.Windows.Forms.TextBox textBox2;
  76. private System.Windows.Forms.Label label15;
  77. private System.Windows.Forms.Label label13;
  78. private System.Windows.Forms.ComboBox comboBox5;
  79. private System.Windows.Forms.Label label8;
  80. private System.Windows.Forms.Label label11;
  81. private System.Windows.Forms.ComboBox comboBox2;
  82. private System.Windows.Forms.Label label10;
  83. private System.Windows.Forms.ComboBox comboBox3;
  84. private System.Windows.Forms.Label label3;
  85. private System.Windows.Forms.Label label7;
  86. private System.Windows.Forms.Label label2;
  87. private System.Windows.Forms.Label label1;
  88. private System.Windows.Forms.Splitter splitter1;
  89. private System.Data.DataColumn dataColumn17;
  90. private System.Windows.Forms.ComboBox comboBox6;
  91. private System.Windows.Forms.Label label4;
  92. private System.Windows.Forms.TextBox textBox13;
  93. private System.Windows.Forms.TextBox textBox14;
  94. private System.Windows.Forms.TextBox textBox15;
  95. private System.Windows.Forms.Panel panel3;
  96. private System.Windows.Forms.TextBox textBox16;
  97. private System.Windows.Forms.Label label5;
  98. private System.Windows.Forms.TextBox textBox17;
  99. private System.Windows.Forms.Label label17;
  100. private System.Windows.Forms.TextBox textBox18;
  101. private System.Windows.Forms.Label label20;
  102. private System.Windows.Forms.TextBox textBox19;
  103. private System.Windows.Forms.Label label21;
  104. private System.Windows.Forms.Label label22;
  105. private System.Windows.Forms.TextBox textBox21;
  106. private System.Windows.Forms.Label label23;
  107. private System.Windows.Forms.Label label24;
  108. private System.Windows.Forms.Button button1;
  109. private System.Windows.Forms.TextBox textBox22;
  110. private System.Windows.Forms.TextBox textBox20;
  111. private System.Windows.Forms.TextBox textBox23;
  112. private System.Windows.Forms.Label label25;
  113. private System.Windows.Forms.TextBox txt_heatidnoy;
  114. private System.Windows.Forms.Button btn_setheatid;
  115. private Panel panel2;
  116. private Label richTextBox1;
  117. private Label label26;
  118. public DateTimePicker dateTimePicker3;
  119. private System.ComponentModel.IContainer components;
  120. public FrmCutBilletDetailQuery()
  121. {
  122. //
  123. // Windows 窗体设计器支持所必需的
  124. //
  125. InitializeComponent();
  126. //
  127. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  128. //
  129. }
  130. /// <summary>
  131. /// 清理所有正在使用的资源。
  132. /// </summary>
  133. protected override void Dispose( bool disposing )
  134. {
  135. try
  136. {
  137. if (_refreshDataThread != null)
  138. _refreshDataThread.Abort();
  139. }
  140. catch { }
  141. if( disposing )
  142. {
  143. if(components != null)
  144. {
  145. components.Dispose();
  146. }
  147. }
  148. base.Dispose( disposing );
  149. }
  150. #region Windows 窗体设计器生成的代码
  151. /// <summary>
  152. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  153. /// 此方法的内容。
  154. /// </summary>
  155. private void InitializeComponent()
  156. {
  157. this.components = new System.ComponentModel.Container();
  158. Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
  159. Infragistics.Win.UltraWinGrid.UltraGridBand ultraGridBand1 = new Infragistics.Win.UltraWinGrid.UltraGridBand("Table1", -1);
  160. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn1 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HEATNO");
  161. Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
  162. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn2 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CCMSTOVENO");
  163. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn3 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CCMID", -1, 134929704);
  164. Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
  165. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn4 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FLOWNO", -1, 134938501);
  166. Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
  167. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn5 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CUTSEQNO");
  168. Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();
  169. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn6 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("MOULDNO");
  170. Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance();
  171. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn7 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HEATSEQ");
  172. Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance();
  173. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn8 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HEATCNT");
  174. Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance();
  175. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn9 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("LENGTH");
  176. Infragistics.Win.Appearance appearance9 = new Infragistics.Win.Appearance();
  177. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn10 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("WIDTH");
  178. Infragistics.Win.Appearance appearance10 = new Infragistics.Win.Appearance();
  179. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn11 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("THICKNESS");
  180. Infragistics.Win.Appearance appearance11 = new Infragistics.Win.Appearance();
  181. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn12 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("WEIGHT");
  182. Infragistics.Win.Appearance appearance12 = new Infragistics.Win.Appearance();
  183. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn13 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SPECRULE");
  184. Infragistics.Win.Appearance appearance13 = new Infragistics.Win.Appearance();
  185. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn14 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CUTTIME");
  186. Infragistics.Win.Appearance appearance14 = new Infragistics.Win.Appearance();
  187. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn15 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SHIFTCODE", -1, 38914641);
  188. Infragistics.Win.Appearance appearance15 = new Infragistics.Win.Appearance();
  189. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn16 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("LASTBILLETFLAG", -1, 1197251);
  190. Infragistics.Win.Appearance appearance16 = new Infragistics.Win.Appearance();
  191. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn17 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FLAG");
  192. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn18 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CutSize", 0);
  193. Infragistics.Win.Appearance appearance17 = new Infragistics.Win.Appearance();
  194. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn19 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("RESFLAG", 1, 1197252);
  195. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn20 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("BILLETNO", 2, null, 0, Infragistics.Win.UltraWinGrid.SortIndicator.Ascending, false);
  196. Infragistics.Win.Appearance appearance18 = new Infragistics.Win.Appearance();
  197. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn21 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CHILDBLOCKNO", 3);
  198. Infragistics.Win.Appearance appearance19 = new Infragistics.Win.Appearance();
  199. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn22 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("BILLETCODE", 4);
  200. Infragistics.Win.Appearance appearance20 = new Infragistics.Win.Appearance();
  201. Infragistics.Win.Appearance appearance21 = new Infragistics.Win.Appearance();
  202. Infragistics.Win.Appearance appearance22 = new Infragistics.Win.Appearance();
  203. Infragistics.Win.Appearance appearance23 = new Infragistics.Win.Appearance();
  204. Infragistics.Win.Appearance appearance24 = new Infragistics.Win.Appearance();
  205. Infragistics.Win.Appearance appearance25 = new Infragistics.Win.Appearance();
  206. Infragistics.Win.Appearance appearance26 = new Infragistics.Win.Appearance();
  207. Infragistics.Win.Appearance appearance27 = new Infragistics.Win.Appearance();
  208. Infragistics.Win.Appearance appearance28 = new Infragistics.Win.Appearance();
  209. Infragistics.Win.Appearance appearance29 = new Infragistics.Win.Appearance();
  210. Infragistics.Win.Appearance appearance30 = new Infragistics.Win.Appearance();
  211. Infragistics.Win.Appearance appearance31 = new Infragistics.Win.Appearance();
  212. Infragistics.Win.ValueList valueList1 = new Infragistics.Win.ValueList(38914641);
  213. Infragistics.Win.ValueListItem valueListItem1 = new Infragistics.Win.ValueListItem();
  214. Infragistics.Win.ValueListItem valueListItem2 = new Infragistics.Win.ValueListItem();
  215. Infragistics.Win.ValueListItem valueListItem3 = new Infragistics.Win.ValueListItem();
  216. Infragistics.Win.ValueListItem valueListItem4 = new Infragistics.Win.ValueListItem();
  217. Infragistics.Win.ValueListItem valueListItem5 = new Infragistics.Win.ValueListItem();
  218. Infragistics.Win.ValueListItem valueListItem6 = new Infragistics.Win.ValueListItem();
  219. Infragistics.Win.ValueListItem valueListItem7 = new Infragistics.Win.ValueListItem();
  220. Infragistics.Win.ValueListItem valueListItem8 = new Infragistics.Win.ValueListItem();
  221. Infragistics.Win.ValueListItem valueListItem9 = new Infragistics.Win.ValueListItem();
  222. Infragistics.Win.ValueListItem valueListItem10 = new Infragistics.Win.ValueListItem();
  223. Infragistics.Win.ValueListItem valueListItem11 = new Infragistics.Win.ValueListItem();
  224. Infragistics.Win.ValueListItem valueListItem12 = new Infragistics.Win.ValueListItem();
  225. Infragistics.Win.ValueList valueList2 = new Infragistics.Win.ValueList(134929704);
  226. Infragistics.Win.ValueListItem valueListItem13 = new Infragistics.Win.ValueListItem();
  227. Infragistics.Win.ValueListItem valueListItem14 = new Infragistics.Win.ValueListItem();
  228. Infragistics.Win.ValueListItem valueListItem15 = new Infragistics.Win.ValueListItem();
  229. Infragistics.Win.ValueListItem valueListItem16 = new Infragistics.Win.ValueListItem();
  230. Infragistics.Win.ValueList valueList3 = new Infragistics.Win.ValueList(134938501);
  231. Infragistics.Win.ValueListItem valueListItem17 = new Infragistics.Win.ValueListItem();
  232. Infragistics.Win.ValueListItem valueListItem18 = new Infragistics.Win.ValueListItem();
  233. Infragistics.Win.ValueListItem valueListItem19 = new Infragistics.Win.ValueListItem();
  234. Infragistics.Win.ValueListItem valueListItem20 = new Infragistics.Win.ValueListItem();
  235. Infragistics.Win.ValueListItem valueListItem21 = new Infragistics.Win.ValueListItem();
  236. Infragistics.Win.ValueList valueList4 = new Infragistics.Win.ValueList(1197251);
  237. Infragistics.Win.ValueListItem valueListItem22 = new Infragistics.Win.ValueListItem();
  238. Infragistics.Win.ValueListItem valueListItem23 = new Infragistics.Win.ValueListItem();
  239. Infragistics.Win.ValueList valueList5 = new Infragistics.Win.ValueList(1197252);
  240. Infragistics.Win.ValueListItem valueListItem24 = new Infragistics.Win.ValueListItem();
  241. Infragistics.Win.ValueListItem valueListItem25 = new Infragistics.Win.ValueListItem();
  242. Infragistics.Win.UltraWinToolbars.UltraToolbar ultraToolbar1 = new Infragistics.Win.UltraWinToolbars.UltraToolbar("HkBar");
  243. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool1 = new Infragistics.Win.UltraWinToolbars.ButtonTool("query");
  244. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool2 = new Infragistics.Win.UltraWinToolbars.ButtonTool("add");
  245. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool3 = new Infragistics.Win.UltraWinToolbars.ButtonTool("del");
  246. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool4 = new Infragistics.Win.UltraWinToolbars.ButtonTool("edit");
  247. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool5 = new Infragistics.Win.UltraWinToolbars.ButtonTool("exit");
  248. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool6 = new Infragistics.Win.UltraWinToolbars.ButtonTool("plan");
  249. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool7 = new Infragistics.Win.UltraWinToolbars.ButtonTool("Existplan");
  250. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool8 = new Infragistics.Win.UltraWinToolbars.ButtonTool("add");
  251. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool9 = new Infragistics.Win.UltraWinToolbars.ButtonTool("del");
  252. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool10 = new Infragistics.Win.UltraWinToolbars.ButtonTool("edit");
  253. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool11 = new Infragistics.Win.UltraWinToolbars.ButtonTool("save");
  254. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool12 = new Infragistics.Win.UltraWinToolbars.ButtonTool("exit");
  255. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool13 = new Infragistics.Win.UltraWinToolbars.ButtonTool("query");
  256. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool14 = new Infragistics.Win.UltraWinToolbars.ButtonTool("plan");
  257. Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool15 = new Infragistics.Win.UltraWinToolbars.ButtonTool("Existplan");
  258. this.dataSet1 = new System.Data.DataSet();
  259. this.dataTable1 = new System.Data.DataTable();
  260. this.dataColumn1 = new System.Data.DataColumn();
  261. this.dataColumn2 = new System.Data.DataColumn();
  262. this.dataColumn3 = new System.Data.DataColumn();
  263. this.dataColumn4 = new System.Data.DataColumn();
  264. this.dataColumn5 = new System.Data.DataColumn();
  265. this.dataColumn6 = new System.Data.DataColumn();
  266. this.dataColumn7 = new System.Data.DataColumn();
  267. this.dataColumn8 = new System.Data.DataColumn();
  268. this.dataColumn9 = new System.Data.DataColumn();
  269. this.dataColumn10 = new System.Data.DataColumn();
  270. this.dataColumn11 = new System.Data.DataColumn();
  271. this.dataColumn12 = new System.Data.DataColumn();
  272. this.dataColumn13 = new System.Data.DataColumn();
  273. this.dataColumn14 = new System.Data.DataColumn();
  274. this.dataColumn15 = new System.Data.DataColumn();
  275. this.dataColumn16 = new System.Data.DataColumn();
  276. this.dataColumn17 = new System.Data.DataColumn();
  277. this.ultraGrid1 = new Infragistics.Win.UltraWinGrid.UltraGrid();
  278. this.ultraGroupBox1 = new Infragistics.Win.Misc.UltraGroupBox();
  279. this.label26 = new System.Windows.Forms.Label();
  280. this.richTextBox1 = new System.Windows.Forms.Label();
  281. this.txt_heatidnoy = new System.Windows.Forms.TextBox();
  282. this.dateTimePicker4 = new System.Windows.Forms.DateTimePicker();
  283. this.textBox1 = new System.Windows.Forms.TextBox();
  284. this.comboBox4 = new System.Windows.Forms.ComboBox();
  285. this.checkBox3 = new System.Windows.Forms.CheckBox();
  286. this.checkBox2 = new System.Windows.Forms.CheckBox();
  287. this.label9 = new System.Windows.Forms.Label();
  288. this.dateTimePicker3 = new System.Windows.Forms.DateTimePicker();
  289. this.checkBox1 = new System.Windows.Forms.CheckBox();
  290. this.ultraToolbarsManager1 = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components);
  291. this.panel1 = new System.Windows.Forms.Panel();
  292. this._panel1_Toolbars_Dock_Area_Left = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
  293. this._panel1_Toolbars_Dock_Area_Right = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
  294. this._panel1_Toolbars_Dock_Area_Top = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
  295. this._panel1_Toolbars_Dock_Area_Bottom = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
  296. this.ultraExpandableGroupBox1 = new Infragistics.Win.Misc.UltraExpandableGroupBox();
  297. this.ultraExpandableGroupBoxPanel1 = new Infragistics.Win.Misc.UltraExpandableGroupBoxPanel();
  298. this.panel3 = new System.Windows.Forms.Panel();
  299. this.btn_setheatid = new System.Windows.Forms.Button();
  300. this.textBox23 = new System.Windows.Forms.TextBox();
  301. this.label25 = new System.Windows.Forms.Label();
  302. this.button1 = new System.Windows.Forms.Button();
  303. this.textBox22 = new System.Windows.Forms.TextBox();
  304. this.label22 = new System.Windows.Forms.Label();
  305. this.textBox21 = new System.Windows.Forms.TextBox();
  306. this.label23 = new System.Windows.Forms.Label();
  307. this.textBox20 = new System.Windows.Forms.TextBox();
  308. this.label24 = new System.Windows.Forms.Label();
  309. this.textBox19 = new System.Windows.Forms.TextBox();
  310. this.label21 = new System.Windows.Forms.Label();
  311. this.textBox18 = new System.Windows.Forms.TextBox();
  312. this.label20 = new System.Windows.Forms.Label();
  313. this.textBox17 = new System.Windows.Forms.TextBox();
  314. this.label17 = new System.Windows.Forms.Label();
  315. this.textBox16 = new System.Windows.Forms.TextBox();
  316. this.label5 = new System.Windows.Forms.Label();
  317. this.textBox15 = new System.Windows.Forms.TextBox();
  318. this.textBox13 = new System.Windows.Forms.TextBox();
  319. this.label4 = new System.Windows.Forms.Label();
  320. this.comboBox6 = new System.Windows.Forms.ComboBox();
  321. this.dateTimePicker5 = new System.Windows.Forms.DateTimePicker();
  322. this.label19 = new System.Windows.Forms.Label();
  323. this.label18 = new System.Windows.Forms.Label();
  324. this.textBox11 = new System.Windows.Forms.TextBox();
  325. this.label16 = new System.Windows.Forms.Label();
  326. this.textBox10 = new System.Windows.Forms.TextBox();
  327. this.label14 = new System.Windows.Forms.Label();
  328. this.textBox9 = new System.Windows.Forms.TextBox();
  329. this.label12 = new System.Windows.Forms.Label();
  330. this.textBox3 = new System.Windows.Forms.TextBox();
  331. this.label6 = new System.Windows.Forms.Label();
  332. this.textBox8 = new System.Windows.Forms.TextBox();
  333. this.textBox7 = new System.Windows.Forms.TextBox();
  334. this.textBox6 = new System.Windows.Forms.TextBox();
  335. this.textBox5 = new System.Windows.Forms.TextBox();
  336. this.textBox2 = new System.Windows.Forms.TextBox();
  337. this.label15 = new System.Windows.Forms.Label();
  338. this.label13 = new System.Windows.Forms.Label();
  339. this.comboBox5 = new System.Windows.Forms.ComboBox();
  340. this.label8 = new System.Windows.Forms.Label();
  341. this.label11 = new System.Windows.Forms.Label();
  342. this.comboBox2 = new System.Windows.Forms.ComboBox();
  343. this.label10 = new System.Windows.Forms.Label();
  344. this.comboBox3 = new System.Windows.Forms.ComboBox();
  345. this.label3 = new System.Windows.Forms.Label();
  346. this.label7 = new System.Windows.Forms.Label();
  347. this.label2 = new System.Windows.Forms.Label();
  348. this.label1 = new System.Windows.Forms.Label();
  349. this.textBox14 = new System.Windows.Forms.TextBox();
  350. this.textBox12 = new System.Windows.Forms.TextBox();
  351. this.textBox4 = new System.Windows.Forms.TextBox();
  352. this.splitter1 = new System.Windows.Forms.Splitter();
  353. this.panel2 = new System.Windows.Forms.Panel();
  354. ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit();
  355. ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).BeginInit();
  356. ((System.ComponentModel.ISupportInitialize)(this.ultraGrid1)).BeginInit();
  357. ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).BeginInit();
  358. this.ultraGroupBox1.SuspendLayout();
  359. ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager1)).BeginInit();
  360. this.panel1.SuspendLayout();
  361. ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).BeginInit();
  362. this.ultraExpandableGroupBox1.SuspendLayout();
  363. this.ultraExpandableGroupBoxPanel1.SuspendLayout();
  364. this.panel3.SuspendLayout();
  365. this.SuspendLayout();
  366. //
  367. // dataSet1
  368. //
  369. this.dataSet1.DataSetName = "NewDataSet";
  370. this.dataSet1.Locale = new System.Globalization.CultureInfo("zh-CN");
  371. this.dataSet1.Tables.AddRange(new System.Data.DataTable[] {
  372. this.dataTable1});
  373. //
  374. // dataTable1
  375. //
  376. this.dataTable1.Columns.AddRange(new System.Data.DataColumn[] {
  377. this.dataColumn1,
  378. this.dataColumn2,
  379. this.dataColumn3,
  380. this.dataColumn4,
  381. this.dataColumn5,
  382. this.dataColumn6,
  383. this.dataColumn7,
  384. this.dataColumn8,
  385. this.dataColumn9,
  386. this.dataColumn10,
  387. this.dataColumn11,
  388. this.dataColumn12,
  389. this.dataColumn13,
  390. this.dataColumn14,
  391. this.dataColumn15,
  392. this.dataColumn16,
  393. this.dataColumn17});
  394. this.dataTable1.TableName = "Table1";
  395. //
  396. // dataColumn1
  397. //
  398. this.dataColumn1.ColumnName = "HEATNO";
  399. //
  400. // dataColumn2
  401. //
  402. this.dataColumn2.ColumnName = "CCMSTOVENO";
  403. //
  404. // dataColumn3
  405. //
  406. this.dataColumn3.ColumnName = "CCMID";
  407. //
  408. // dataColumn4
  409. //
  410. this.dataColumn4.ColumnName = "FLOWNO";
  411. //
  412. // dataColumn5
  413. //
  414. this.dataColumn5.ColumnName = "CUTSEQNO";
  415. //
  416. // dataColumn6
  417. //
  418. this.dataColumn6.ColumnName = "MOULDNO";
  419. //
  420. // dataColumn7
  421. //
  422. this.dataColumn7.ColumnName = "HEATSEQ";
  423. //
  424. // dataColumn8
  425. //
  426. this.dataColumn8.ColumnName = "HEATCNT";
  427. //
  428. // dataColumn9
  429. //
  430. this.dataColumn9.ColumnName = "LENGTH";
  431. //
  432. // dataColumn10
  433. //
  434. this.dataColumn10.ColumnName = "WIDTH";
  435. //
  436. // dataColumn11
  437. //
  438. this.dataColumn11.ColumnName = "THICKNESS";
  439. this.dataColumn11.DataType = typeof(decimal);
  440. //
  441. // dataColumn12
  442. //
  443. this.dataColumn12.ColumnName = "WEIGHT";
  444. //
  445. // dataColumn13
  446. //
  447. this.dataColumn13.ColumnName = "SPECRULE";
  448. //
  449. // dataColumn14
  450. //
  451. this.dataColumn14.ColumnName = "CUTTIME";
  452. //
  453. // dataColumn15
  454. //
  455. this.dataColumn15.ColumnName = "SHIFTCODE";
  456. //
  457. // dataColumn16
  458. //
  459. this.dataColumn16.ColumnName = "LASTBILLETFLAG";
  460. //
  461. // dataColumn17
  462. //
  463. this.dataColumn17.ColumnName = "FLAG";
  464. //
  465. // ultraGrid1
  466. //
  467. this.ultraGrid1.DataSource = this.dataTable1;
  468. appearance1.BackColor = System.Drawing.SystemColors.Window;
  469. appearance1.BorderColor = System.Drawing.SystemColors.InactiveCaption;
  470. appearance1.FontData.SizeInPoints = 10F;
  471. this.ultraGrid1.DisplayLayout.Appearance = appearance1;
  472. ultraGridColumn1.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  473. appearance2.TextHAlign = Infragistics.Win.HAlign.Center;
  474. appearance2.TextVAlign = Infragistics.Win.VAlign.Middle;
  475. ultraGridColumn1.Header.Appearance = appearance2;
  476. ultraGridColumn1.Header.Caption = "炉号";
  477. ultraGridColumn1.Header.VisiblePosition = 0;
  478. ultraGridColumn1.RowLayoutColumnInfo.OriginX = 0;
  479. ultraGridColumn1.RowLayoutColumnInfo.OriginY = 0;
  480. ultraGridColumn1.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(76, 0);
  481. ultraGridColumn1.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
  482. ultraGridColumn1.RowLayoutColumnInfo.SpanX = 2;
  483. ultraGridColumn1.RowLayoutColumnInfo.SpanY = 2;
  484. ultraGridColumn2.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  485. ultraGridColumn2.Header.Caption = "连铸炉号";
  486. ultraGridColumn2.Header.VisiblePosition = 1;
  487. ultraGridColumn2.Hidden = true;
  488. ultraGridColumn3.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  489. appearance3.TextHAlign = Infragistics.Win.HAlign.Center;
  490. appearance3.TextVAlign = Infragistics.Win.VAlign.Middle;
  491. ultraGridColumn3.Header.Appearance = appearance3;
  492. ultraGridColumn3.Header.Caption = "铸机号";
  493. ultraGridColumn3.Header.VisiblePosition = 2;
  494. ultraGridColumn3.RowLayoutColumnInfo.OriginX = 8;
  495. ultraGridColumn3.RowLayoutColumnInfo.OriginY = 0;
  496. ultraGridColumn3.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(64, 0);
  497. ultraGridColumn3.RowLayoutColumnInfo.SpanX = 2;
  498. ultraGridColumn3.RowLayoutColumnInfo.SpanY = 2;
  499. ultraGridColumn4.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  500. appearance4.TextHAlign = Infragistics.Win.HAlign.Center;
  501. ultraGridColumn4.Header.Appearance = appearance4;
  502. ultraGridColumn4.Header.Caption = "流号";
  503. ultraGridColumn4.Header.VisiblePosition = 3;
  504. ultraGridColumn4.RowLayoutColumnInfo.OriginX = 4;
  505. ultraGridColumn4.RowLayoutColumnInfo.OriginY = 0;
  506. ultraGridColumn4.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(36, 0);
  507. ultraGridColumn4.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
  508. ultraGridColumn4.RowLayoutColumnInfo.SpanX = 2;
  509. ultraGridColumn4.RowLayoutColumnInfo.SpanY = 2;
  510. ultraGridColumn4.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDown;
  511. ultraGridColumn4.Width = 60;
  512. ultraGridColumn5.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  513. appearance5.TextHAlign = Infragistics.Win.HAlign.Center;
  514. ultraGridColumn5.Header.Appearance = appearance5;
  515. ultraGridColumn5.Header.Caption = "切割序号";
  516. ultraGridColumn5.Header.VisiblePosition = 4;
  517. ultraGridColumn5.RowLayoutColumnInfo.OriginX = 18;
  518. ultraGridColumn5.RowLayoutColumnInfo.OriginY = 0;
  519. ultraGridColumn5.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(64, 0);
  520. ultraGridColumn5.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
  521. ultraGridColumn5.RowLayoutColumnInfo.SpanX = 2;
  522. ultraGridColumn5.RowLayoutColumnInfo.SpanY = 2;
  523. ultraGridColumn5.Width = 70;
  524. ultraGridColumn6.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  525. appearance6.TextHAlign = Infragistics.Win.HAlign.Center;
  526. appearance6.TextVAlign = Infragistics.Win.VAlign.Middle;
  527. ultraGridColumn6.Header.Appearance = appearance6;
  528. ultraGridColumn6.Header.Caption = "浇次号";
  529. ultraGridColumn6.Header.VisiblePosition = 5;
  530. ultraGridColumn6.RowLayoutColumnInfo.OriginX = 24;
  531. ultraGridColumn6.RowLayoutColumnInfo.OriginY = 0;
  532. ultraGridColumn6.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(67, 0);
  533. ultraGridColumn6.RowLayoutColumnInfo.SpanX = 2;
  534. ultraGridColumn6.RowLayoutColumnInfo.SpanY = 2;
  535. ultraGridColumn7.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  536. appearance7.TextHAlign = Infragistics.Win.HAlign.Center;
  537. appearance7.TextVAlign = Infragistics.Win.VAlign.Middle;
  538. ultraGridColumn7.Header.Appearance = appearance7;
  539. ultraGridColumn7.Header.Caption = " 浇次内炉序";
  540. ultraGridColumn7.Header.VisiblePosition = 6;
  541. ultraGridColumn7.RowLayoutColumnInfo.OriginX = 26;
  542. ultraGridColumn7.RowLayoutColumnInfo.OriginY = 0;
  543. ultraGridColumn7.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(76, 0);
  544. ultraGridColumn7.RowLayoutColumnInfo.SpanX = 2;
  545. ultraGridColumn7.RowLayoutColumnInfo.SpanY = 2;
  546. ultraGridColumn8.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  547. appearance8.TextHAlign = Infragistics.Win.HAlign.Center;
  548. appearance8.TextVAlign = Infragistics.Win.VAlign.Middle;
  549. ultraGridColumn8.Header.Appearance = appearance8;
  550. ultraGridColumn8.Header.Caption = "浇次内炉数";
  551. ultraGridColumn8.Header.VisiblePosition = 7;
  552. ultraGridColumn8.RowLayoutColumnInfo.OriginX = 28;
  553. ultraGridColumn8.RowLayoutColumnInfo.OriginY = 0;
  554. ultraGridColumn8.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(62, 0);
  555. ultraGridColumn8.RowLayoutColumnInfo.SpanX = 2;
  556. ultraGridColumn8.RowLayoutColumnInfo.SpanY = 2;
  557. ultraGridColumn9.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  558. appearance9.TextHAlign = Infragistics.Win.HAlign.Center;
  559. ultraGridColumn9.Header.Appearance = appearance9;
  560. ultraGridColumn9.Header.Caption = "长度";
  561. ultraGridColumn9.Header.VisiblePosition = 8;
  562. ultraGridColumn9.RowLayoutColumnInfo.OriginX = 10;
  563. ultraGridColumn9.RowLayoutColumnInfo.OriginY = 1;
  564. ultraGridColumn9.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(69, 0);
  565. ultraGridColumn9.RowLayoutColumnInfo.SpanX = 2;
  566. ultraGridColumn9.RowLayoutColumnInfo.SpanY = 2;
  567. ultraGridColumn9.Width = 70;
  568. ultraGridColumn10.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  569. appearance10.TextHAlign = Infragistics.Win.HAlign.Center;
  570. ultraGridColumn10.Header.Appearance = appearance10;
  571. ultraGridColumn10.Header.Caption = "宽度";
  572. ultraGridColumn10.Header.VisiblePosition = 9;
  573. ultraGridColumn10.RowLayoutColumnInfo.OriginX = 12;
  574. ultraGridColumn10.RowLayoutColumnInfo.OriginY = 1;
  575. ultraGridColumn10.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(79, 0);
  576. ultraGridColumn10.RowLayoutColumnInfo.SpanX = 2;
  577. ultraGridColumn10.RowLayoutColumnInfo.SpanY = 2;
  578. ultraGridColumn10.Width = 70;
  579. ultraGridColumn11.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  580. appearance11.TextHAlign = Infragistics.Win.HAlign.Center;
  581. appearance11.TextVAlign = Infragistics.Win.VAlign.Middle;
  582. ultraGridColumn11.Header.Appearance = appearance11;
  583. ultraGridColumn11.Header.Caption = "厚度";
  584. ultraGridColumn11.Header.VisiblePosition = 10;
  585. ultraGridColumn11.RowLayoutColumnInfo.OriginX = 14;
  586. ultraGridColumn11.RowLayoutColumnInfo.OriginY = 1;
  587. ultraGridColumn11.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(59, 0);
  588. ultraGridColumn11.RowLayoutColumnInfo.SpanX = 2;
  589. ultraGridColumn11.RowLayoutColumnInfo.SpanY = 2;
  590. ultraGridColumn12.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  591. appearance12.TextHAlign = Infragistics.Win.HAlign.Center;
  592. appearance12.TextVAlign = Infragistics.Win.VAlign.Middle;
  593. ultraGridColumn12.Header.Appearance = appearance12;
  594. ultraGridColumn12.Header.Caption = "重量";
  595. ultraGridColumn12.Header.VisiblePosition = 11;
  596. ultraGridColumn12.RowLayoutColumnInfo.OriginX = 30;
  597. ultraGridColumn12.RowLayoutColumnInfo.OriginY = 0;
  598. ultraGridColumn12.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
  599. ultraGridColumn12.RowLayoutColumnInfo.SpanX = 2;
  600. ultraGridColumn12.RowLayoutColumnInfo.SpanY = 2;
  601. ultraGridColumn12.Width = 60;
  602. ultraGridColumn13.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  603. appearance13.TextHAlign = Infragistics.Win.HAlign.Center;
  604. ultraGridColumn13.Header.Appearance = appearance13;
  605. ultraGridColumn13.Header.Caption = "定尺";
  606. ultraGridColumn13.Header.VisiblePosition = 12;
  607. ultraGridColumn13.Hidden = true;
  608. ultraGridColumn13.RowLayoutColumnInfo.OriginX = 28;
  609. ultraGridColumn13.RowLayoutColumnInfo.OriginY = 0;
  610. ultraGridColumn13.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
  611. ultraGridColumn13.RowLayoutColumnInfo.SpanX = 2;
  612. ultraGridColumn13.RowLayoutColumnInfo.SpanY = 2;
  613. ultraGridColumn13.Width = 60;
  614. ultraGridColumn14.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  615. ultraGridColumn14.Format = "yyyy-MM-dd HH:mm:ss";
  616. appearance14.TextHAlign = Infragistics.Win.HAlign.Center;
  617. ultraGridColumn14.Header.Appearance = appearance14;
  618. ultraGridColumn14.Header.Caption = "切割时间";
  619. ultraGridColumn14.Header.VisiblePosition = 13;
  620. ultraGridColumn14.RowLayoutColumnInfo.OriginX = 6;
  621. ultraGridColumn14.RowLayoutColumnInfo.OriginY = 0;
  622. ultraGridColumn14.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(144, 0);
  623. ultraGridColumn14.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
  624. ultraGridColumn14.RowLayoutColumnInfo.SpanX = 2;
  625. ultraGridColumn14.RowLayoutColumnInfo.SpanY = 2;
  626. ultraGridColumn14.Width = 150;
  627. ultraGridColumn15.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  628. appearance15.TextHAlign = Infragistics.Win.HAlign.Center;
  629. appearance15.TextVAlign = Infragistics.Win.VAlign.Middle;
  630. ultraGridColumn15.Header.Appearance = appearance15;
  631. ultraGridColumn15.Header.Caption = "班组";
  632. ultraGridColumn15.Header.VisiblePosition = 14;
  633. ultraGridColumn15.RowLayoutColumnInfo.OriginX = 32;
  634. ultraGridColumn15.RowLayoutColumnInfo.OriginY = 0;
  635. ultraGridColumn15.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(69, 0);
  636. ultraGridColumn15.RowLayoutColumnInfo.SpanX = 2;
  637. ultraGridColumn15.RowLayoutColumnInfo.SpanY = 2;
  638. ultraGridColumn16.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  639. appearance16.TextHAlign = Infragistics.Win.HAlign.Center;
  640. appearance16.TextVAlign = Infragistics.Win.VAlign.Middle;
  641. ultraGridColumn16.Header.Appearance = appearance16;
  642. ultraGridColumn16.Header.Caption = "末块";
  643. ultraGridColumn16.Header.VisiblePosition = 15;
  644. ultraGridColumn16.RowLayoutColumnInfo.OriginX = 16;
  645. ultraGridColumn16.RowLayoutColumnInfo.OriginY = 0;
  646. ultraGridColumn16.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(58, 0);
  647. ultraGridColumn16.RowLayoutColumnInfo.SpanX = 2;
  648. ultraGridColumn16.RowLayoutColumnInfo.SpanY = 2;
  649. ultraGridColumn17.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  650. ultraGridColumn17.Header.VisiblePosition = 16;
  651. ultraGridColumn17.Hidden = true;
  652. ultraGridColumn18.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  653. appearance17.TextHAlign = Infragistics.Win.HAlign.Center;
  654. ultraGridColumn18.Header.Appearance = appearance17;
  655. ultraGridColumn18.Header.Caption = "切割尺寸";
  656. ultraGridColumn18.Header.VisiblePosition = 17;
  657. ultraGridColumn18.RowLayoutColumnInfo.LabelPosition = Infragistics.Win.UltraWinGrid.LabelPosition.LabelOnly;
  658. ultraGridColumn18.RowLayoutColumnInfo.OriginX = 10;
  659. ultraGridColumn18.RowLayoutColumnInfo.OriginY = 0;
  660. ultraGridColumn18.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 23);
  661. ultraGridColumn18.RowLayoutColumnInfo.SpanX = 6;
  662. ultraGridColumn18.RowLayoutColumnInfo.SpanY = 1;
  663. ultraGridColumn19.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  664. ultraGridColumn19.Header.Caption = "人工指定";
  665. ultraGridColumn19.Header.VisiblePosition = 18;
  666. ultraGridColumn19.RowLayoutColumnInfo.OriginX = 20;
  667. ultraGridColumn19.RowLayoutColumnInfo.OriginY = 0;
  668. ultraGridColumn19.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(64, 0);
  669. ultraGridColumn19.RowLayoutColumnInfo.SpanX = 2;
  670. ultraGridColumn19.RowLayoutColumnInfo.SpanY = 2;
  671. ultraGridColumn20.AutoEdit = false;
  672. ultraGridColumn20.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  673. appearance18.TextHAlign = Infragistics.Win.HAlign.Center;
  674. ultraGridColumn20.Header.Appearance = appearance18;
  675. ultraGridColumn20.Header.Caption = "坯料号";
  676. ultraGridColumn20.Header.VisiblePosition = 19;
  677. ultraGridColumn20.RowLayoutColumnInfo.OriginX = 2;
  678. ultraGridColumn20.RowLayoutColumnInfo.OriginY = 0;
  679. ultraGridColumn20.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(86, 0);
  680. ultraGridColumn20.RowLayoutColumnInfo.SpanX = 2;
  681. ultraGridColumn20.RowLayoutColumnInfo.SpanY = 2;
  682. ultraGridColumn21.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  683. ultraGridColumn21.CellDisplayStyle = Infragistics.Win.UltraWinGrid.CellDisplayStyle.PlainText;
  684. appearance19.TextHAlign = Infragistics.Win.HAlign.Center;
  685. ultraGridColumn21.Header.Appearance = appearance19;
  686. ultraGridColumn21.Header.Caption = "块号";
  687. ultraGridColumn21.Header.VisiblePosition = 20;
  688. ultraGridColumn21.RowLayoutColumnInfo.OriginX = 22;
  689. ultraGridColumn21.RowLayoutColumnInfo.OriginY = 0;
  690. ultraGridColumn21.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(39, 0);
  691. ultraGridColumn21.RowLayoutColumnInfo.SpanX = 2;
  692. ultraGridColumn21.RowLayoutColumnInfo.SpanY = 2;
  693. ultraGridColumn21.TabStop = false;
  694. ultraGridColumn22.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  695. ultraGridColumn22.Header.Caption = "坯料编码";
  696. ultraGridColumn22.Header.VisiblePosition = 21;
  697. ultraGridColumn22.Hidden = true;
  698. ultraGridBand1.Columns.AddRange(new object[] {
  699. ultraGridColumn1,
  700. ultraGridColumn2,
  701. ultraGridColumn3,
  702. ultraGridColumn4,
  703. ultraGridColumn5,
  704. ultraGridColumn6,
  705. ultraGridColumn7,
  706. ultraGridColumn8,
  707. ultraGridColumn9,
  708. ultraGridColumn10,
  709. ultraGridColumn11,
  710. ultraGridColumn12,
  711. ultraGridColumn13,
  712. ultraGridColumn14,
  713. ultraGridColumn15,
  714. ultraGridColumn16,
  715. ultraGridColumn17,
  716. ultraGridColumn18,
  717. ultraGridColumn19,
  718. ultraGridColumn20,
  719. ultraGridColumn21,
  720. ultraGridColumn22});
  721. ultraGridBand1.UseRowLayout = true;
  722. this.ultraGrid1.DisplayLayout.BandsSerializer.Add(ultraGridBand1);
  723. this.ultraGrid1.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
  724. appearance20.TextHAlign = Infragistics.Win.HAlign.Left;
  725. this.ultraGrid1.DisplayLayout.CaptionAppearance = appearance20;
  726. appearance21.BackColor = System.Drawing.SystemColors.ActiveBorder;
  727. appearance21.BackColor2 = System.Drawing.SystemColors.ControlDark;
  728. appearance21.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
  729. appearance21.BorderColor = System.Drawing.SystemColors.Window;
  730. this.ultraGrid1.DisplayLayout.GroupByBox.Appearance = appearance21;
  731. appearance22.ForeColor = System.Drawing.SystemColors.GrayText;
  732. this.ultraGrid1.DisplayLayout.GroupByBox.BandLabelAppearance = appearance22;
  733. this.ultraGrid1.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
  734. this.ultraGrid1.DisplayLayout.GroupByBox.Hidden = true;
  735. appearance23.BackColor = System.Drawing.SystemColors.ControlLightLight;
  736. appearance23.BackColor2 = System.Drawing.SystemColors.Control;
  737. appearance23.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
  738. appearance23.ForeColor = System.Drawing.SystemColors.GrayText;
  739. this.ultraGrid1.DisplayLayout.GroupByBox.PromptAppearance = appearance23;
  740. this.ultraGrid1.DisplayLayout.MaxColScrollRegions = 1;
  741. this.ultraGrid1.DisplayLayout.MaxRowScrollRegions = 1;
  742. appearance24.BackColor = System.Drawing.SystemColors.Info;
  743. appearance24.ForeColor = System.Drawing.SystemColors.ControlText;
  744. this.ultraGrid1.DisplayLayout.Override.ActiveCellAppearance = appearance24;
  745. appearance25.BackColor = System.Drawing.SystemColors.Highlight;
  746. appearance25.ForeColor = System.Drawing.SystemColors.HighlightText;
  747. this.ultraGrid1.DisplayLayout.Override.ActiveRowAppearance = appearance25;
  748. this.ultraGrid1.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.RaisedSoft;
  749. this.ultraGrid1.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.None;
  750. appearance26.BackColor = System.Drawing.SystemColors.Window;
  751. this.ultraGrid1.DisplayLayout.Override.CardAreaAppearance = appearance26;
  752. appearance27.BorderColor = System.Drawing.Color.Silver;
  753. appearance27.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
  754. this.ultraGrid1.DisplayLayout.Override.CellAppearance = appearance27;
  755. this.ultraGrid1.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
  756. this.ultraGrid1.DisplayLayout.Override.CellPadding = 0;
  757. this.ultraGrid1.DisplayLayout.Override.DefaultRowHeight = 21;
  758. appearance28.BackColor = System.Drawing.SystemColors.Control;
  759. appearance28.BackColor2 = System.Drawing.SystemColors.ControlDark;
  760. appearance28.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
  761. appearance28.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
  762. appearance28.BorderColor = System.Drawing.SystemColors.Window;
  763. this.ultraGrid1.DisplayLayout.Override.GroupByRowAppearance = appearance28;
  764. appearance29.TextHAlign = Infragistics.Win.HAlign.Left;
  765. this.ultraGrid1.DisplayLayout.Override.HeaderAppearance = appearance29;
  766. this.ultraGrid1.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.Select;
  767. this.ultraGrid1.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
  768. appearance30.BackColor = System.Drawing.SystemColors.Window;
  769. appearance30.BorderColor = System.Drawing.Color.Silver;
  770. this.ultraGrid1.DisplayLayout.Override.RowAppearance = appearance30;
  771. this.ultraGrid1.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex;
  772. this.ultraGrid1.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
  773. this.ultraGrid1.DisplayLayout.Override.RowSelectorWidth = 45;
  774. appearance31.BackColor = System.Drawing.SystemColors.ControlLight;
  775. this.ultraGrid1.DisplayLayout.Override.TemplateAddRowAppearance = appearance31;
  776. this.ultraGrid1.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
  777. this.ultraGrid1.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
  778. this.ultraGrid1.DisplayLayout.UseFixedHeaders = true;
  779. valueList1.Key = "SHIFTCODE";
  780. valueListItem1.DataValue = "11";
  781. valueListItem1.DisplayText = "白班甲组";
  782. valueListItem2.DataValue = "12";
  783. valueListItem2.DisplayText = "白班乙组";
  784. valueListItem3.DataValue = "13";
  785. valueListItem3.DisplayText = "白班丙组";
  786. valueListItem4.DataValue = "14";
  787. valueListItem4.DisplayText = "白班丁组";
  788. valueListItem5.DataValue = "21";
  789. valueListItem5.DisplayText = "中班甲组";
  790. valueListItem6.DataValue = "22";
  791. valueListItem6.DisplayText = "中班乙组";
  792. valueListItem7.DataValue = "23";
  793. valueListItem7.DisplayText = "中班丙组";
  794. valueListItem8.DataValue = "24";
  795. valueListItem8.DisplayText = "中班丁组";
  796. valueListItem9.DataValue = "31";
  797. valueListItem9.DisplayText = "夜班甲组";
  798. valueListItem10.DataValue = "32";
  799. valueListItem10.DisplayText = "夜班乙组";
  800. valueListItem11.DataValue = "33";
  801. valueListItem11.DisplayText = "夜班丙组";
  802. valueListItem12.DataValue = "34";
  803. valueListItem12.DisplayText = "夜班丁组";
  804. valueList1.ValueListItems.Add(valueListItem1);
  805. valueList1.ValueListItems.Add(valueListItem2);
  806. valueList1.ValueListItems.Add(valueListItem3);
  807. valueList1.ValueListItems.Add(valueListItem4);
  808. valueList1.ValueListItems.Add(valueListItem5);
  809. valueList1.ValueListItems.Add(valueListItem6);
  810. valueList1.ValueListItems.Add(valueListItem7);
  811. valueList1.ValueListItems.Add(valueListItem8);
  812. valueList1.ValueListItems.Add(valueListItem9);
  813. valueList1.ValueListItems.Add(valueListItem10);
  814. valueList1.ValueListItems.Add(valueListItem11);
  815. valueList1.ValueListItems.Add(valueListItem12);
  816. valueList2.Key = "CCMID";
  817. valueListItem13.DataValue = "1";
  818. valueListItem13.DisplayText = "1#铸机";
  819. valueListItem14.DataValue = "2";
  820. valueListItem14.DisplayText = "2#铸机";
  821. valueListItem15.DataValue = "3";
  822. valueListItem15.DisplayText = "3#铸机";
  823. valueListItem16.DataValue = "4";
  824. valueListItem16.DisplayText = "4#铸机";
  825. valueList2.ValueListItems.Add(valueListItem13);
  826. valueList2.ValueListItems.Add(valueListItem14);
  827. valueList2.ValueListItems.Add(valueListItem15);
  828. valueList2.ValueListItems.Add(valueListItem16);
  829. valueList3.Key = "flow";
  830. valueListItem17.DataValue = "1";
  831. valueListItem17.DisplayText = "1流";
  832. valueListItem18.DataValue = "2";
  833. valueListItem18.DisplayText = "2流";
  834. valueListItem19.DataValue = "3";
  835. valueListItem19.DisplayText = "3流";
  836. valueListItem20.DataValue = "4";
  837. valueListItem20.DisplayText = "4流";
  838. valueListItem21.DataValue = "5";
  839. valueListItem21.DisplayText = "5流";
  840. valueList3.ValueListItems.Add(valueListItem17);
  841. valueList3.ValueListItems.Add(valueListItem18);
  842. valueList3.ValueListItems.Add(valueListItem19);
  843. valueList3.ValueListItems.Add(valueListItem20);
  844. valueList3.ValueListItems.Add(valueListItem21);
  845. valueList4.Key = "LASTBILLETFLAG";
  846. valueListItem22.DataValue = "N";
  847. valueListItem22.DisplayText = "否";
  848. valueListItem23.DataValue = "Y";
  849. valueListItem23.DisplayText = "是";
  850. valueList4.ValueListItems.Add(valueListItem22);
  851. valueList4.ValueListItems.Add(valueListItem23);
  852. valueList5.Key = "resflag";
  853. valueListItem24.DataValue = "0";
  854. valueListItem24.DisplayText = "是";
  855. valueListItem25.DataValue = "1";
  856. valueListItem25.DisplayText = "否";
  857. valueList5.ValueListItems.Add(valueListItem24);
  858. valueList5.ValueListItems.Add(valueListItem25);
  859. this.ultraGrid1.DisplayLayout.ValueLists.AddRange(new Infragistics.Win.ValueList[] {
  860. valueList1,
  861. valueList2,
  862. valueList3,
  863. valueList4,
  864. valueList5});
  865. this.ultraGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
  866. this.ultraGrid1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  867. this.ultraGrid1.Location = new System.Drawing.Point(0, 82);
  868. this.ultraGrid1.Name = "ultraGrid1";
  869. this.ultraGrid1.Size = new System.Drawing.Size(692, 331);
  870. this.ultraGrid1.TabIndex = 34;
  871. this.ultraGrid1.BeforeRowUpdate += new Infragistics.Win.UltraWinGrid.CancelableRowEventHandler(this.ultraGrid1_BeforeRowUpdate);
  872. this.ultraGrid1.AfterRowActivate += new System.EventHandler(this.ultraGrid1_AfterRowActivate);
  873. this.ultraGrid1.BeforeRowFixedStateChanged += new Infragistics.Win.UltraWinGrid.BeforeRowFixedStateChangedEventHandler(this.ultraGrid1_BeforeRowFixedStateChanged);
  874. //
  875. // ultraGroupBox1
  876. //
  877. this.ultraGroupBox1.Controls.Add(this.label26);
  878. this.ultraGroupBox1.Controls.Add(this.richTextBox1);
  879. this.ultraGroupBox1.Controls.Add(this.txt_heatidnoy);
  880. this.ultraGroupBox1.Controls.Add(this.dateTimePicker4);
  881. this.ultraGroupBox1.Controls.Add(this.textBox1);
  882. this.ultraGroupBox1.Controls.Add(this.comboBox4);
  883. this.ultraGroupBox1.Controls.Add(this.checkBox3);
  884. this.ultraGroupBox1.Controls.Add(this.checkBox2);
  885. this.ultraGroupBox1.Controls.Add(this.label9);
  886. this.ultraGroupBox1.Controls.Add(this.dateTimePicker3);
  887. this.ultraGroupBox1.Controls.Add(this.checkBox1);
  888. this.ultraGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
  889. this.ultraGroupBox1.Location = new System.Drawing.Point(0, 26);
  890. this.ultraGroupBox1.Name = "ultraGroupBox1";
  891. this.ultraGroupBox1.Size = new System.Drawing.Size(692, 56);
  892. this.ultraGroupBox1.SupportThemes = false;
  893. this.ultraGroupBox1.TabIndex = 32;
  894. this.ultraGroupBox1.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2000;
  895. //
  896. // label26
  897. //
  898. this.label26.AutoSize = true;
  899. this.label26.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  900. this.label26.Location = new System.Drawing.Point(202, 33);
  901. this.label26.Name = "label26";
  902. this.label26.Size = new System.Drawing.Size(65, 12);
  903. this.label26.TabIndex = 110;
  904. this.label26.Text = "未置是炉号";
  905. //
  906. // richTextBox1
  907. //
  908. this.richTextBox1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  909. this.richTextBox1.Location = new System.Drawing.Point(8, 31);
  910. this.richTextBox1.Name = "richTextBox1";
  911. this.richTextBox1.Size = new System.Drawing.Size(197, 18);
  912. this.richTextBox1.TabIndex = 109;
  913. //
  914. // txt_heatidnoy
  915. //
  916. this.txt_heatidnoy.Location = new System.Drawing.Point(268, 30);
  917. this.txt_heatidnoy.Name = "txt_heatidnoy";
  918. this.txt_heatidnoy.ReadOnly = true;
  919. this.txt_heatidnoy.Size = new System.Drawing.Size(404, 21);
  920. this.txt_heatidnoy.TabIndex = 24;
  921. //
  922. // dateTimePicker4
  923. //
  924. this.dateTimePicker4.CustomFormat = "yyyy-MM-dd HH:mm";
  925. this.dateTimePicker4.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
  926. this.dateTimePicker4.Location = new System.Drawing.Point(271, 7);
  927. this.dateTimePicker4.Name = "dateTimePicker4";
  928. this.dateTimePicker4.Size = new System.Drawing.Size(120, 21);
  929. this.dateTimePicker4.TabIndex = 6;
  930. //
  931. // textBox1
  932. //
  933. this.textBox1.Enabled = false;
  934. this.textBox1.Location = new System.Drawing.Point(465, 7);
  935. this.textBox1.Name = "textBox1";
  936. this.textBox1.Size = new System.Drawing.Size(80, 21);
  937. this.textBox1.TabIndex = 22;
  938. //
  939. // comboBox4
  940. //
  941. this.comboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  942. this.comboBox4.Enabled = false;
  943. this.comboBox4.Location = new System.Drawing.Point(608, 7);
  944. this.comboBox4.Name = "comboBox4";
  945. this.comboBox4.Size = new System.Drawing.Size(64, 20);
  946. this.comboBox4.TabIndex = 16;
  947. //
  948. // checkBox3
  949. //
  950. this.checkBox3.Location = new System.Drawing.Point(552, 6);
  951. this.checkBox3.Name = "checkBox3";
  952. this.checkBox3.Size = new System.Drawing.Size(64, 24);
  953. this.checkBox3.TabIndex = 17;
  954. this.checkBox3.Text = "铸机号";
  955. this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged);
  956. //
  957. // checkBox2
  958. //
  959. this.checkBox2.Location = new System.Drawing.Point(409, 6);
  960. this.checkBox2.Name = "checkBox2";
  961. this.checkBox2.Size = new System.Drawing.Size(72, 24);
  962. this.checkBox2.TabIndex = 10;
  963. this.checkBox2.Text = "熔炼号";
  964. this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
  965. //
  966. // label9
  967. //
  968. this.label9.Location = new System.Drawing.Point(247, 11);
  969. this.label9.Name = "label9";
  970. this.label9.Size = new System.Drawing.Size(29, 17);
  971. this.label9.TabIndex = 7;
  972. this.label9.Text = "到:";
  973. //
  974. // dateTimePicker3
  975. //
  976. this.dateTimePicker3.CustomFormat = "yyyy-MM-dd HH:mm";
  977. this.dateTimePicker3.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
  978. this.dateTimePicker3.Location = new System.Drawing.Point(108, 7);
  979. this.dateTimePicker3.Name = "dateTimePicker3";
  980. this.dateTimePicker3.Size = new System.Drawing.Size(124, 21);
  981. this.dateTimePicker3.TabIndex = 5;
  982. //
  983. // checkBox1
  984. //
  985. this.checkBox1.Checked = true;
  986. this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
  987. this.checkBox1.Location = new System.Drawing.Point(8, 4);
  988. this.checkBox1.Name = "checkBox1";
  989. this.checkBox1.Size = new System.Drawing.Size(120, 24);
  990. this.checkBox1.TabIndex = 4;
  991. this.checkBox1.Text = "切割时间 从:";
  992. this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
  993. //
  994. // ultraToolbarsManager1
  995. //
  996. this.ultraToolbarsManager1.DesignerFlags = 1;
  997. this.ultraToolbarsManager1.DockWithinContainer = this.panel1;
  998. this.ultraToolbarsManager1.LockToolbars = true;
  999. this.ultraToolbarsManager1.ShowFullMenusDelay = 500;
  1000. this.ultraToolbarsManager1.ShowQuickCustomizeButton = false;
  1001. this.ultraToolbarsManager1.Style = Infragistics.Win.UltraWinToolbars.ToolbarStyle.VisualStudio2005;
  1002. ultraToolbar1.DockedColumn = 0;
  1003. ultraToolbar1.DockedRow = 0;
  1004. ultraToolbar1.Text = "HkBar";
  1005. buttonTool1.InstanceProps.IsFirstInGroup = true;
  1006. buttonTool2.InstanceProps.IsFirstInGroup = true;
  1007. buttonTool3.InstanceProps.IsFirstInGroup = true;
  1008. buttonTool4.InstanceProps.IsFirstInGroup = true;
  1009. buttonTool5.InstanceProps.IsFirstInGroup = true;
  1010. buttonTool6.InstanceProps.IsFirstInGroup = true;
  1011. ultraToolbar1.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
  1012. buttonTool1,
  1013. buttonTool2,
  1014. buttonTool3,
  1015. buttonTool4,
  1016. buttonTool5,
  1017. buttonTool6,
  1018. buttonTool7});
  1019. this.ultraToolbarsManager1.Toolbars.AddRange(new Infragistics.Win.UltraWinToolbars.UltraToolbar[] {
  1020. ultraToolbar1});
  1021. buttonTool8.SharedProps.Caption = "新增(&N)";
  1022. buttonTool8.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  1023. buttonTool8.SharedProps.Shortcut = System.Windows.Forms.Shortcut.CtrlN;
  1024. buttonTool8.SharedProps.Visible = false;
  1025. buttonTool9.SharedProps.Caption = "删除(&D)";
  1026. buttonTool9.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  1027. buttonTool9.SharedProps.Shortcut = System.Windows.Forms.Shortcut.CtrlD;
  1028. buttonTool9.SharedProps.Visible = false;
  1029. buttonTool10.SharedProps.Caption = "修改(&E)";
  1030. buttonTool10.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  1031. buttonTool10.SharedProps.Shortcut = System.Windows.Forms.Shortcut.CtrlE;
  1032. buttonTool10.SharedProps.Visible = false;
  1033. buttonTool11.SharedProps.Caption = "保存(&S)";
  1034. buttonTool11.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  1035. buttonTool11.SharedProps.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
  1036. buttonTool12.SharedProps.Caption = "退出(&X)";
  1037. buttonTool12.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  1038. buttonTool12.SharedProps.Shortcut = System.Windows.Forms.Shortcut.CtrlX;
  1039. buttonTool12.SharedProps.Visible = false;
  1040. buttonTool13.SharedProps.Caption = "查询(&Q)";
  1041. buttonTool13.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  1042. buttonTool13.SharedProps.Shortcut = System.Windows.Forms.Shortcut.CtrlQ;
  1043. buttonTool14.SharedProps.Caption = "单独查询";
  1044. buttonTool14.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  1045. buttonTool15.SharedProps.Caption = "显示切换";
  1046. buttonTool15.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
  1047. buttonTool15.SharedProps.Shortcut = System.Windows.Forms.Shortcut.CtrlR;
  1048. this.ultraToolbarsManager1.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
  1049. buttonTool8,
  1050. buttonTool9,
  1051. buttonTool10,
  1052. buttonTool11,
  1053. buttonTool12,
  1054. buttonTool13,
  1055. buttonTool14,
  1056. buttonTool15});
  1057. this.ultraToolbarsManager1.ToolClick += new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.ultraToolbarsManager1_ToolClick);
  1058. //
  1059. // panel1
  1060. //
  1061. this.panel1.Controls.Add(this._panel1_Toolbars_Dock_Area_Left);
  1062. this.panel1.Controls.Add(this._panel1_Toolbars_Dock_Area_Right);
  1063. this.panel1.Controls.Add(this._panel1_Toolbars_Dock_Area_Top);
  1064. this.panel1.Controls.Add(this._panel1_Toolbars_Dock_Area_Bottom);
  1065. this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
  1066. this.panel1.Location = new System.Drawing.Point(0, 0);
  1067. this.panel1.Name = "panel1";
  1068. this.panel1.Size = new System.Drawing.Size(692, 26);
  1069. this.panel1.TabIndex = 35;
  1070. //
  1071. // _panel1_Toolbars_Dock_Area_Left
  1072. //
  1073. this._panel1_Toolbars_Dock_Area_Left.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
  1074. this._panel1_Toolbars_Dock_Area_Left.BackColor = System.Drawing.SystemColors.Control;
  1075. this._panel1_Toolbars_Dock_Area_Left.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left;
  1076. this._panel1_Toolbars_Dock_Area_Left.ForeColor = System.Drawing.SystemColors.ControlText;
  1077. this._panel1_Toolbars_Dock_Area_Left.Location = new System.Drawing.Point(0, 52);
  1078. this._panel1_Toolbars_Dock_Area_Left.Name = "_panel1_Toolbars_Dock_Area_Left";
  1079. this._panel1_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(0, 0);
  1080. this._panel1_Toolbars_Dock_Area_Left.ToolbarsManager = this.ultraToolbarsManager1;
  1081. //
  1082. // _panel1_Toolbars_Dock_Area_Right
  1083. //
  1084. this._panel1_Toolbars_Dock_Area_Right.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
  1085. this._panel1_Toolbars_Dock_Area_Right.BackColor = System.Drawing.SystemColors.Control;
  1086. this._panel1_Toolbars_Dock_Area_Right.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right;
  1087. this._panel1_Toolbars_Dock_Area_Right.ForeColor = System.Drawing.SystemColors.ControlText;
  1088. this._panel1_Toolbars_Dock_Area_Right.Location = new System.Drawing.Point(692, 52);
  1089. this._panel1_Toolbars_Dock_Area_Right.Name = "_panel1_Toolbars_Dock_Area_Right";
  1090. this._panel1_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(0, 0);
  1091. this._panel1_Toolbars_Dock_Area_Right.ToolbarsManager = this.ultraToolbarsManager1;
  1092. //
  1093. // _panel1_Toolbars_Dock_Area_Top
  1094. //
  1095. this._panel1_Toolbars_Dock_Area_Top.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
  1096. this._panel1_Toolbars_Dock_Area_Top.BackColor = System.Drawing.SystemColors.Control;
  1097. this._panel1_Toolbars_Dock_Area_Top.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top;
  1098. this._panel1_Toolbars_Dock_Area_Top.ForeColor = System.Drawing.SystemColors.ControlText;
  1099. this._panel1_Toolbars_Dock_Area_Top.Location = new System.Drawing.Point(0, 0);
  1100. this._panel1_Toolbars_Dock_Area_Top.Name = "_panel1_Toolbars_Dock_Area_Top";
  1101. this._panel1_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(692, 52);
  1102. this._panel1_Toolbars_Dock_Area_Top.ToolbarsManager = this.ultraToolbarsManager1;
  1103. //
  1104. // _panel1_Toolbars_Dock_Area_Bottom
  1105. //
  1106. this._panel1_Toolbars_Dock_Area_Bottom.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
  1107. this._panel1_Toolbars_Dock_Area_Bottom.BackColor = System.Drawing.SystemColors.Control;
  1108. this._panel1_Toolbars_Dock_Area_Bottom.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom;
  1109. this._panel1_Toolbars_Dock_Area_Bottom.ForeColor = System.Drawing.SystemColors.ControlText;
  1110. this._panel1_Toolbars_Dock_Area_Bottom.Location = new System.Drawing.Point(0, 26);
  1111. this._panel1_Toolbars_Dock_Area_Bottom.Name = "_panel1_Toolbars_Dock_Area_Bottom";
  1112. this._panel1_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(692, 0);
  1113. this._panel1_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.ultraToolbarsManager1;
  1114. //
  1115. // ultraExpandableGroupBox1
  1116. //
  1117. this.ultraExpandableGroupBox1.Controls.Add(this.ultraExpandableGroupBoxPanel1);
  1118. this.ultraExpandableGroupBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
  1119. this.ultraExpandableGroupBox1.ExpandedSize = new System.Drawing.Size(713, 160);
  1120. this.ultraExpandableGroupBox1.Location = new System.Drawing.Point(0, 413);
  1121. this.ultraExpandableGroupBox1.Name = "ultraExpandableGroupBox1";
  1122. this.ultraExpandableGroupBox1.Size = new System.Drawing.Size(692, 168);
  1123. this.ultraExpandableGroupBox1.SupportThemes = false;
  1124. this.ultraExpandableGroupBox1.TabIndex = 36;
  1125. this.ultraExpandableGroupBox1.Text = "编辑";
  1126. this.ultraExpandableGroupBox1.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2000;
  1127. this.ultraExpandableGroupBox1.Visible = false;
  1128. //
  1129. // ultraExpandableGroupBoxPanel1
  1130. //
  1131. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.panel3);
  1132. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox15);
  1133. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox13);
  1134. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label4);
  1135. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.comboBox6);
  1136. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.dateTimePicker5);
  1137. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label19);
  1138. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label18);
  1139. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox11);
  1140. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label16);
  1141. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox10);
  1142. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label14);
  1143. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox9);
  1144. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label12);
  1145. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox3);
  1146. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label6);
  1147. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox8);
  1148. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox7);
  1149. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox6);
  1150. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox5);
  1151. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox2);
  1152. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label15);
  1153. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label13);
  1154. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.comboBox5);
  1155. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label8);
  1156. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label11);
  1157. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.comboBox2);
  1158. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label10);
  1159. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.comboBox3);
  1160. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label3);
  1161. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label7);
  1162. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label2);
  1163. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label1);
  1164. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox14);
  1165. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox12);
  1166. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox4);
  1167. this.ultraExpandableGroupBoxPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
  1168. this.ultraExpandableGroupBoxPanel1.Location = new System.Drawing.Point(3, 19);
  1169. this.ultraExpandableGroupBoxPanel1.Name = "ultraExpandableGroupBoxPanel1";
  1170. this.ultraExpandableGroupBoxPanel1.Size = new System.Drawing.Size(686, 146);
  1171. this.ultraExpandableGroupBoxPanel1.TabIndex = 0;
  1172. //
  1173. // panel3
  1174. //
  1175. this.panel3.BackColor = System.Drawing.Color.Gainsboro;
  1176. this.panel3.Controls.Add(this.btn_setheatid);
  1177. this.panel3.Controls.Add(this.textBox23);
  1178. this.panel3.Controls.Add(this.label25);
  1179. this.panel3.Controls.Add(this.button1);
  1180. this.panel3.Controls.Add(this.textBox22);
  1181. this.panel3.Controls.Add(this.label22);
  1182. this.panel3.Controls.Add(this.textBox21);
  1183. this.panel3.Controls.Add(this.label23);
  1184. this.panel3.Controls.Add(this.textBox20);
  1185. this.panel3.Controls.Add(this.label24);
  1186. this.panel3.Controls.Add(this.textBox19);
  1187. this.panel3.Controls.Add(this.label21);
  1188. this.panel3.Controls.Add(this.textBox18);
  1189. this.panel3.Controls.Add(this.label20);
  1190. this.panel3.Controls.Add(this.textBox17);
  1191. this.panel3.Controls.Add(this.label17);
  1192. this.panel3.Controls.Add(this.textBox16);
  1193. this.panel3.Controls.Add(this.label5);
  1194. this.panel3.Dock = System.Windows.Forms.DockStyle.Right;
  1195. this.panel3.Location = new System.Drawing.Point(446, 0);
  1196. this.panel3.Name = "panel3";
  1197. this.panel3.Size = new System.Drawing.Size(240, 146);
  1198. this.panel3.TabIndex = 111;
  1199. //
  1200. // btn_setheatid
  1201. //
  1202. this.btn_setheatid.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1203. this.btn_setheatid.Location = new System.Drawing.Point(80, 24);
  1204. this.btn_setheatid.Name = "btn_setheatid";
  1205. this.btn_setheatid.Size = new System.Drawing.Size(72, 24);
  1206. this.btn_setheatid.TabIndex = 21;
  1207. this.btn_setheatid.Text = "炉号设置";
  1208. this.btn_setheatid.Click += new System.EventHandler(this.btn_setheatid_Click);
  1209. //
  1210. // textBox23
  1211. //
  1212. this.textBox23.Location = new System.Drawing.Point(168, 24);
  1213. this.textBox23.Name = "textBox23";
  1214. this.textBox23.ReadOnly = true;
  1215. this.textBox23.Size = new System.Drawing.Size(48, 21);
  1216. this.textBox23.TabIndex = 20;
  1217. //
  1218. // label25
  1219. //
  1220. this.label25.Location = new System.Drawing.Point(160, 8);
  1221. this.label25.Name = "label25";
  1222. this.label25.Size = new System.Drawing.Size(80, 16);
  1223. this.label25.TabIndex = 19;
  1224. this.label25.Text = "已切坯料总量";
  1225. //
  1226. // button1
  1227. //
  1228. this.button1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1229. this.button1.Location = new System.Drawing.Point(217, 72);
  1230. this.button1.Name = "button1";
  1231. this.button1.Size = new System.Drawing.Size(21, 21);
  1232. this.button1.TabIndex = 18;
  1233. this.button1.Text = "▼";
  1234. this.button1.Click += new System.EventHandler(this.button1_Click);
  1235. //
  1236. // textBox22
  1237. //
  1238. this.textBox22.Location = new System.Drawing.Point(168, 115);
  1239. this.textBox22.Name = "textBox22";
  1240. this.textBox22.ReadOnly = true;
  1241. this.textBox22.Size = new System.Drawing.Size(48, 21);
  1242. this.textBox22.TabIndex = 17;
  1243. //
  1244. // label22
  1245. //
  1246. this.label22.Location = new System.Drawing.Point(166, 99);
  1247. this.label22.Name = "label22";
  1248. this.label22.Size = new System.Drawing.Size(80, 16);
  1249. this.label22.TabIndex = 16;
  1250. this.label22.Text = "剩余支数";
  1251. //
  1252. // textBox21
  1253. //
  1254. this.textBox21.Location = new System.Drawing.Point(90, 115);
  1255. this.textBox21.Name = "textBox21";
  1256. this.textBox21.ReadOnly = true;
  1257. this.textBox21.Size = new System.Drawing.Size(59, 21);
  1258. this.textBox21.TabIndex = 15;
  1259. //
  1260. // label23
  1261. //
  1262. this.label23.Location = new System.Drawing.Point(87, 99);
  1263. this.label23.Name = "label23";
  1264. this.label23.Size = new System.Drawing.Size(71, 16);
  1265. this.label23.TabIndex = 14;
  1266. this.label23.Text = "已切割支数";
  1267. //
  1268. // textBox20
  1269. //
  1270. this.textBox20.Location = new System.Drawing.Point(12, 115);
  1271. this.textBox20.Name = "textBox20";
  1272. this.textBox20.ReadOnly = true;
  1273. this.textBox20.Size = new System.Drawing.Size(59, 21);
  1274. this.textBox20.TabIndex = 13;
  1275. //
  1276. // label24
  1277. //
  1278. this.label24.Location = new System.Drawing.Point(8, 99);
  1279. this.label24.Name = "label24";
  1280. this.label24.Size = new System.Drawing.Size(80, 12);
  1281. this.label24.TabIndex = 12;
  1282. this.label24.Text = "预测支数";
  1283. //
  1284. // textBox19
  1285. //
  1286. this.textBox19.Location = new System.Drawing.Point(168, 72);
  1287. this.textBox19.Name = "textBox19";
  1288. this.textBox19.ReadOnly = true;
  1289. this.textBox19.Size = new System.Drawing.Size(48, 21);
  1290. this.textBox19.TabIndex = 11;
  1291. //
  1292. // label21
  1293. //
  1294. this.label21.Location = new System.Drawing.Point(166, 56);
  1295. this.label21.Name = "label21";
  1296. this.label21.Size = new System.Drawing.Size(80, 16);
  1297. this.label21.TabIndex = 10;
  1298. this.label21.Text = "钢水重量";
  1299. //
  1300. // textBox18
  1301. //
  1302. this.textBox18.Location = new System.Drawing.Point(88, 72);
  1303. this.textBox18.Name = "textBox18";
  1304. this.textBox18.Size = new System.Drawing.Size(59, 21);
  1305. this.textBox18.TabIndex = 9;
  1306. this.textBox18.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox18_KeyDown);
  1307. //
  1308. // label20
  1309. //
  1310. this.label20.Location = new System.Drawing.Point(88, 56);
  1311. this.label20.Name = "label20";
  1312. this.label20.Size = new System.Drawing.Size(64, 16);
  1313. this.label20.TabIndex = 8;
  1314. this.label20.Text = "大包重量";
  1315. //
  1316. // textBox17
  1317. //
  1318. this.textBox17.Location = new System.Drawing.Point(12, 72);
  1319. this.textBox17.Name = "textBox17";
  1320. this.textBox17.Size = new System.Drawing.Size(60, 21);
  1321. this.textBox17.TabIndex = 7;
  1322. this.textBox17.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox17_KeyDown);
  1323. //
  1324. // label17
  1325. //
  1326. this.label17.Location = new System.Drawing.Point(7, 56);
  1327. this.label17.Name = "label17";
  1328. this.label17.Size = new System.Drawing.Size(80, 12);
  1329. this.label17.TabIndex = 6;
  1330. this.label17.Text = "上台重量";
  1331. //
  1332. // textBox16
  1333. //
  1334. this.textBox16.Location = new System.Drawing.Point(8, 24);
  1335. this.textBox16.Name = "textBox16";
  1336. this.textBox16.ReadOnly = true;
  1337. this.textBox16.Size = new System.Drawing.Size(62, 21);
  1338. this.textBox16.TabIndex = 5;
  1339. //
  1340. // label5
  1341. //
  1342. this.label5.Location = new System.Drawing.Point(7, 8);
  1343. this.label5.Name = "label5";
  1344. this.label5.Size = new System.Drawing.Size(80, 23);
  1345. this.label5.TabIndex = 4;
  1346. this.label5.Text = "正在切割炉号";
  1347. //
  1348. // textBox15
  1349. //
  1350. this.textBox15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
  1351. this.textBox15.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1352. this.textBox15.Location = new System.Drawing.Point(205, 50);
  1353. this.textBox15.Name = "textBox15";
  1354. this.textBox15.Size = new System.Drawing.Size(85, 21);
  1355. this.textBox15.TabIndex = 110;
  1356. //
  1357. // textBox13
  1358. //
  1359. this.textBox13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
  1360. this.textBox13.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1361. this.textBox13.Location = new System.Drawing.Point(205, 27);
  1362. this.textBox13.Name = "textBox13";
  1363. this.textBox13.Size = new System.Drawing.Size(85, 21);
  1364. this.textBox13.TabIndex = 108;
  1365. //
  1366. // label4
  1367. //
  1368. this.label4.AutoSize = true;
  1369. this.label4.Location = new System.Drawing.Point(160, 32);
  1370. this.label4.Name = "label4";
  1371. this.label4.Size = new System.Drawing.Size(41, 12);
  1372. this.label4.TabIndex = 107;
  1373. this.label4.Text = "坯料号";
  1374. //
  1375. // comboBox6
  1376. //
  1377. this.comboBox6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
  1378. this.comboBox6.DisplayMember = "id";
  1379. this.comboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  1380. this.comboBox6.Location = new System.Drawing.Point(378, 95);
  1381. this.comboBox6.Name = "comboBox6";
  1382. this.comboBox6.Size = new System.Drawing.Size(56, 20);
  1383. this.comboBox6.TabIndex = 106;
  1384. this.comboBox6.ValueMember = "id";
  1385. //
  1386. // dateTimePicker5
  1387. //
  1388. this.dateTimePicker5.Checked = false;
  1389. this.dateTimePicker5.CustomFormat = "yyyy-MM-dd HH:mm:ss";
  1390. this.dateTimePicker5.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right;
  1391. this.dateTimePicker5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1392. this.dateTimePicker5.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
  1393. this.dateTimePicker5.Location = new System.Drawing.Point(78, 119);
  1394. this.dateTimePicker5.Name = "dateTimePicker5";
  1395. this.dateTimePicker5.Size = new System.Drawing.Size(210, 21);
  1396. this.dateTimePicker5.TabIndex = 83;
  1397. //
  1398. // label19
  1399. //
  1400. this.label19.AutoSize = true;
  1401. this.label19.Location = new System.Drawing.Point(16, 124);
  1402. this.label19.Name = "label19";
  1403. this.label19.Size = new System.Drawing.Size(53, 12);
  1404. this.label19.TabIndex = 82;
  1405. this.label19.Text = "切割时间";
  1406. //
  1407. // label18
  1408. //
  1409. this.label18.AutoSize = true;
  1410. this.label18.Location = new System.Drawing.Point(296, 100);
  1411. this.label18.Name = "label18";
  1412. this.label18.Size = new System.Drawing.Size(77, 12);
  1413. this.label18.TabIndex = 80;
  1414. this.label18.Text = "是否本炉末块";
  1415. //
  1416. // textBox11
  1417. //
  1418. this.textBox11.Location = new System.Drawing.Point(378, 73);
  1419. this.textBox11.Name = "textBox11";
  1420. this.textBox11.Size = new System.Drawing.Size(56, 21);
  1421. this.textBox11.TabIndex = 77;
  1422. //
  1423. // label16
  1424. //
  1425. this.label16.AutoSize = true;
  1426. this.label16.Location = new System.Drawing.Point(344, 78);
  1427. this.label16.Name = "label16";
  1428. this.label16.Size = new System.Drawing.Size(29, 12);
  1429. this.label16.TabIndex = 76;
  1430. this.label16.Text = "重量";
  1431. //
  1432. // textBox10
  1433. //
  1434. this.textBox10.Location = new System.Drawing.Point(378, 50);
  1435. this.textBox10.Name = "textBox10";
  1436. this.textBox10.Size = new System.Drawing.Size(56, 21);
  1437. this.textBox10.TabIndex = 75;
  1438. this.textBox10.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
  1439. //
  1440. // label14
  1441. //
  1442. this.label14.AutoSize = true;
  1443. this.label14.Location = new System.Drawing.Point(344, 55);
  1444. this.label14.Name = "label14";
  1445. this.label14.Size = new System.Drawing.Size(29, 12);
  1446. this.label14.TabIndex = 74;
  1447. this.label14.Text = "厚度";
  1448. //
  1449. // textBox9
  1450. //
  1451. this.textBox9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
  1452. this.textBox9.Location = new System.Drawing.Point(378, 27);
  1453. this.textBox9.Name = "textBox9";
  1454. this.textBox9.Size = new System.Drawing.Size(56, 21);
  1455. this.textBox9.TabIndex = 73;
  1456. this.textBox9.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
  1457. //
  1458. // label12
  1459. //
  1460. this.label12.AutoSize = true;
  1461. this.label12.Location = new System.Drawing.Point(344, 32);
  1462. this.label12.Name = "label12";
  1463. this.label12.Size = new System.Drawing.Size(29, 12);
  1464. this.label12.TabIndex = 72;
  1465. this.label12.Text = "宽度";
  1466. //
  1467. // textBox3
  1468. //
  1469. this.textBox3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
  1470. this.textBox3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1471. this.textBox3.Location = new System.Drawing.Point(378, 4);
  1472. this.textBox3.Name = "textBox3";
  1473. this.textBox3.Size = new System.Drawing.Size(56, 21);
  1474. this.textBox3.TabIndex = 71;
  1475. this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
  1476. //
  1477. // label6
  1478. //
  1479. this.label6.AutoSize = true;
  1480. this.label6.Location = new System.Drawing.Point(344, 8);
  1481. this.label6.Name = "label6";
  1482. this.label6.Size = new System.Drawing.Size(29, 12);
  1483. this.label6.TabIndex = 70;
  1484. this.label6.Text = "长度";
  1485. //
  1486. // textBox8
  1487. //
  1488. this.textBox8.Location = new System.Drawing.Point(78, 4);
  1489. this.textBox8.Name = "textBox8";
  1490. this.textBox8.Size = new System.Drawing.Size(58, 21);
  1491. this.textBox8.TabIndex = 69;
  1492. //
  1493. // textBox7
  1494. //
  1495. this.textBox7.Location = new System.Drawing.Point(78, 50);
  1496. this.textBox7.Name = "textBox7";
  1497. this.textBox7.Size = new System.Drawing.Size(58, 21);
  1498. this.textBox7.TabIndex = 68;
  1499. //
  1500. // textBox6
  1501. //
  1502. this.textBox6.Location = new System.Drawing.Point(78, 27);
  1503. this.textBox6.Name = "textBox6";
  1504. this.textBox6.Size = new System.Drawing.Size(58, 21);
  1505. this.textBox6.TabIndex = 67;
  1506. //
  1507. // textBox5
  1508. //
  1509. this.textBox5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
  1510. this.textBox5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1511. this.textBox5.Location = new System.Drawing.Point(205, 73);
  1512. this.textBox5.Name = "textBox5";
  1513. this.textBox5.Size = new System.Drawing.Size(85, 21);
  1514. this.textBox5.TabIndex = 105;
  1515. //
  1516. // textBox2
  1517. //
  1518. this.textBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
  1519. this.textBox2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1520. this.textBox2.Location = new System.Drawing.Point(205, 4);
  1521. this.textBox2.Name = "textBox2";
  1522. this.textBox2.Size = new System.Drawing.Size(85, 21);
  1523. this.textBox2.TabIndex = 101;
  1524. //
  1525. // label15
  1526. //
  1527. this.label15.AutoSize = true;
  1528. this.label15.Location = new System.Drawing.Point(4, 55);
  1529. this.label15.Name = "label15";
  1530. this.label15.Size = new System.Drawing.Size(65, 12);
  1531. this.label15.TabIndex = 63;
  1532. this.label15.Text = "浇次内炉数";
  1533. //
  1534. // label13
  1535. //
  1536. this.label13.AutoSize = true;
  1537. this.label13.Location = new System.Drawing.Point(4, 32);
  1538. this.label13.Name = "label13";
  1539. this.label13.Size = new System.Drawing.Size(65, 12);
  1540. this.label13.TabIndex = 62;
  1541. this.label13.Text = "浇次内顺序";
  1542. //
  1543. // comboBox5
  1544. //
  1545. this.comboBox5.DisplayMember = "id";
  1546. this.comboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  1547. this.comboBox5.Location = new System.Drawing.Point(78, 95);
  1548. this.comboBox5.Name = "comboBox5";
  1549. this.comboBox5.Size = new System.Drawing.Size(58, 20);
  1550. this.comboBox5.TabIndex = 104;
  1551. this.comboBox5.ValueMember = "id";
  1552. //
  1553. // label8
  1554. //
  1555. this.label8.AutoSize = true;
  1556. this.label8.Location = new System.Drawing.Point(28, 100);
  1557. this.label8.Name = "label8";
  1558. this.label8.Size = new System.Drawing.Size(41, 12);
  1559. this.label8.TabIndex = 61;
  1560. this.label8.Text = "铸流号";
  1561. //
  1562. // label11
  1563. //
  1564. this.label11.AutoSize = true;
  1565. this.label11.Location = new System.Drawing.Point(148, 78);
  1566. this.label11.Name = "label11";
  1567. this.label11.Size = new System.Drawing.Size(53, 12);
  1568. this.label11.TabIndex = 59;
  1569. this.label11.Text = "切割序号";
  1570. //
  1571. // comboBox2
  1572. //
  1573. this.comboBox2.DisplayMember = "id";
  1574. this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  1575. this.comboBox2.Location = new System.Drawing.Point(78, 73);
  1576. this.comboBox2.Name = "comboBox2";
  1577. this.comboBox2.Size = new System.Drawing.Size(58, 20);
  1578. this.comboBox2.TabIndex = 103;
  1579. this.comboBox2.ValueMember = "id";
  1580. //
  1581. // label10
  1582. //
  1583. this.label10.AutoSize = true;
  1584. this.label10.Location = new System.Drawing.Point(28, 78);
  1585. this.label10.Name = "label10";
  1586. this.label10.Size = new System.Drawing.Size(41, 12);
  1587. this.label10.TabIndex = 58;
  1588. this.label10.Text = "铸机号";
  1589. //
  1590. // comboBox3
  1591. //
  1592. this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  1593. this.comboBox3.Items.AddRange(new object[] {
  1594. "1#铸机",
  1595. "2#铸机",
  1596. "3#铸机",
  1597. "其他"});
  1598. this.comboBox3.Location = new System.Drawing.Point(205, 95);
  1599. this.comboBox3.Name = "comboBox3";
  1600. this.comboBox3.Size = new System.Drawing.Size(85, 20);
  1601. this.comboBox3.TabIndex = 54;
  1602. //
  1603. // label3
  1604. //
  1605. this.label3.AutoSize = true;
  1606. this.label3.Location = new System.Drawing.Point(173, 55);
  1607. this.label3.Name = "label3";
  1608. this.label3.Size = new System.Drawing.Size(29, 12);
  1609. this.label3.TabIndex = 56;
  1610. this.label3.Text = "块号";
  1611. //
  1612. // label7
  1613. //
  1614. this.label7.AutoSize = true;
  1615. this.label7.Location = new System.Drawing.Point(28, 8);
  1616. this.label7.Name = "label7";
  1617. this.label7.Size = new System.Drawing.Size(41, 12);
  1618. this.label7.TabIndex = 55;
  1619. this.label7.Text = "浇次号";
  1620. //
  1621. // label2
  1622. //
  1623. this.label2.AutoSize = true;
  1624. this.label2.Location = new System.Drawing.Point(173, 100);
  1625. this.label2.Name = "label2";
  1626. this.label2.Size = new System.Drawing.Size(29, 12);
  1627. this.label2.TabIndex = 53;
  1628. this.label2.Text = "班次";
  1629. //
  1630. // label1
  1631. //
  1632. this.label1.AutoSize = true;
  1633. this.label1.Location = new System.Drawing.Point(160, 8);
  1634. this.label1.Name = "label1";
  1635. this.label1.Size = new System.Drawing.Size(41, 12);
  1636. this.label1.TabIndex = 52;
  1637. this.label1.Text = "熔炼号";
  1638. //
  1639. // textBox14
  1640. //
  1641. this.textBox14.Location = new System.Drawing.Point(320, 120);
  1642. this.textBox14.Name = "textBox14";
  1643. this.textBox14.Size = new System.Drawing.Size(96, 21);
  1644. this.textBox14.TabIndex = 109;
  1645. this.textBox14.Text = "textBox14";
  1646. this.textBox14.Visible = false;
  1647. //
  1648. // textBox12
  1649. //
  1650. this.textBox12.Location = new System.Drawing.Point(312, 122);
  1651. this.textBox12.Name = "textBox12";
  1652. this.textBox12.Size = new System.Drawing.Size(96, 21);
  1653. this.textBox12.TabIndex = 79;
  1654. this.textBox12.Visible = false;
  1655. //
  1656. // textBox4
  1657. //
  1658. this.textBox4.Location = new System.Drawing.Point(312, 122);
  1659. this.textBox4.Name = "textBox4";
  1660. this.textBox4.Size = new System.Drawing.Size(96, 21);
  1661. this.textBox4.TabIndex = 102;
  1662. this.textBox4.Visible = false;
  1663. //
  1664. // splitter1
  1665. //
  1666. this.splitter1.Dock = System.Windows.Forms.DockStyle.Right;
  1667. this.splitter1.Location = new System.Drawing.Point(692, 0);
  1668. this.splitter1.Name = "splitter1";
  1669. this.splitter1.Size = new System.Drawing.Size(3, 581);
  1670. this.splitter1.TabIndex = 107;
  1671. this.splitter1.TabStop = false;
  1672. //
  1673. // panel2
  1674. //
  1675. this.panel2.Dock = System.Windows.Forms.DockStyle.Right;
  1676. this.panel2.Location = new System.Drawing.Point(695, 0);
  1677. this.panel2.Name = "panel2";
  1678. this.panel2.Size = new System.Drawing.Size(333, 581);
  1679. this.panel2.TabIndex = 106;
  1680. this.panel2.Visible = false;
  1681. this.panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint);
  1682. //
  1683. // FrmCutBilletDetailQuery
  1684. //
  1685. this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  1686. this.ClientSize = new System.Drawing.Size(1028, 581);
  1687. this.Controls.Add(this.ultraGrid1);
  1688. this.Controls.Add(this.ultraGroupBox1);
  1689. this.Controls.Add(this.ultraExpandableGroupBox1);
  1690. this.Controls.Add(this.panel1);
  1691. this.Controls.Add(this.splitter1);
  1692. this.Controls.Add(this.panel2);
  1693. this.Name = "FrmCutBilletDetailQuery";
  1694. this.Text = "切割明细";
  1695. this.Load += new System.EventHandler(this.FrmCutBilletDetailQuery_Load);
  1696. ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).EndInit();
  1697. ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).EndInit();
  1698. ((System.ComponentModel.ISupportInitialize)(this.ultraGrid1)).EndInit();
  1699. ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).EndInit();
  1700. this.ultraGroupBox1.ResumeLayout(false);
  1701. this.ultraGroupBox1.PerformLayout();
  1702. ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager1)).EndInit();
  1703. this.panel1.ResumeLayout(false);
  1704. ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).EndInit();
  1705. this.ultraExpandableGroupBox1.ResumeLayout(false);
  1706. this.ultraExpandableGroupBoxPanel1.ResumeLayout(false);
  1707. this.ultraExpandableGroupBoxPanel1.PerformLayout();
  1708. this.panel3.ResumeLayout(false);
  1709. this.panel3.PerformLayout();
  1710. this.ResumeLayout(false);
  1711. }
  1712. #endregion
  1713. #endregion
  1714. #region " Valiable "
  1715. private DataSet _dsMid;
  1716. public bool DataChangedFlag = false;
  1717. private string _strWhere = "";
  1718. private Thread _refreshDataThread = null;
  1719. private DateTime LastUpdateTime;
  1720. #endregion
  1721. public string CCMN0 = "";
  1722. private string strOldBlockNo;
  1723. private string strOldCastNo;
  1724. private delegate void CallRefreshThreadDelegate();
  1725. private bool bExit = false;
  1726. private Hashtable cutHash = new Hashtable();
  1727. private CommandClass _commClass;
  1728. private bool blText = false; //处理装载程序时执行Changed事情
  1729. #region " Init "
  1730. private void InitComboBoxSource()
  1731. {
  1732. this.comboBox3.DataSource = GetDutyData();
  1733. this.comboBox3.DisplayMember = "name";
  1734. this.comboBox3.ValueMember = "id";
  1735. this.comboBox2.DataSource = GetCcmData();
  1736. this.comboBox2.DisplayMember = "name";
  1737. this.comboBox2.ValueMember = "id";
  1738. this.comboBox4.DataSource = GetCcmData();
  1739. this.comboBox4.DisplayMember = "name";
  1740. this.comboBox4.ValueMember = "id";
  1741. this.comboBox5.DataSource = GetFlowData();
  1742. this.comboBox5.DisplayMember = "name";
  1743. this.comboBox5.ValueMember = "id";
  1744. this.comboBox6.DataSource = GetStatusData();
  1745. this.comboBox6.DisplayMember = "name";
  1746. this.comboBox6.ValueMember = "id";
  1747. }
  1748. private DataTable GetDutyData()
  1749. {
  1750. DataTable dt = new DataTable();
  1751. dt.Columns.Add("id", typeof(System.String));
  1752. dt.Columns.Add("name", typeof(System.String));
  1753. dt.Rows.Add(new object[]{"11","白班甲组"});
  1754. dt.Rows.Add(new object[]{"12","白班乙组"});
  1755. dt.Rows.Add(new object[]{"13","白班丙组"});
  1756. dt.Rows.Add(new object[]{"14","白班丁组"});
  1757. dt.Rows.Add(new object[]{"21","中班甲组"});
  1758. dt.Rows.Add(new object[]{"22","中班乙组"});
  1759. dt.Rows.Add(new object[]{"23","中班丙组"});
  1760. dt.Rows.Add(new object[]{"24","中班丁组"});
  1761. dt.Rows.Add(new object[]{"31","夜班甲组"});
  1762. dt.Rows.Add(new object[]{"32","夜班乙组"});
  1763. dt.Rows.Add(new object[]{"33","夜班丙组"});
  1764. dt.Rows.Add(new object[]{"34","夜班丁组"});
  1765. dt.AcceptChanges();
  1766. return dt;
  1767. }
  1768. private DataTable GetCcmData()
  1769. {
  1770. DataTable dt = new DataTable();
  1771. dt.Columns.Add("id", typeof(System.String));
  1772. dt.Columns.Add("name", typeof(System.String));
  1773. dt.Rows.Add(new object[]{"1","1#铸机"});
  1774. dt.Rows.Add(new object[]{"2","2#铸机"});
  1775. dt.Rows.Add(new object[]{"3","3#铸机"});
  1776. dt.Rows.Add(new object[]{"4","4#铸机"});
  1777. dt.AcceptChanges();
  1778. return dt;
  1779. }
  1780. private DataTable GetStatusData()
  1781. {
  1782. DataTable dt = new DataTable();
  1783. dt.Columns.Add("id", typeof(System.String));
  1784. dt.Columns.Add("name", typeof(System.String));
  1785. dt.Rows.Add(new object[]{"Y","是"});
  1786. dt.Rows.Add(new object[]{"N","否"});
  1787. dt.AcceptChanges();
  1788. return dt;
  1789. }
  1790. private DataTable GetFlowData()
  1791. {
  1792. DataTable dt = new DataTable();
  1793. dt.Columns.Add("id", typeof(System.String));
  1794. dt.Columns.Add("name", typeof(System.String));
  1795. dt.Rows.Add(new object[]{"1","1流"});
  1796. dt.Rows.Add(new object[]{"2","2流"});
  1797. dt.Rows.Add(new object[]{"3","3流"});
  1798. dt.Rows.Add(new object[]{"4","4流"});
  1799. dt.Rows.Add(new object[]{"5","5流"});
  1800. dt.AcceptChanges();
  1801. return dt;
  1802. }
  1803. private void GetSqlWhere ()
  1804. {
  1805. this._strWhere = " where 1=1 ";
  1806. if (this.checkBox1.Checked)
  1807. {
  1808. this._strWhere += string.Format(" and CUTTIME between to_date('{0}','yyyy-MM-dd hh24:mi') and to_date('{1}','yyyy-MM-dd hh24:mi')",
  1809. this.dateTimePicker3.Value.ToString("yyyy-MM-dd HH:mm"),this.dateTimePicker4.Value.ToString("yyyy-MM-dd HH:mm"));
  1810. }
  1811. if (this.checkBox2.Checked )
  1812. {
  1813. this._strWhere += string.Format(" and HEATNO = '{0}'", this.textBox1.Text.Trim());
  1814. }
  1815. if (this.checkBox3.Checked)
  1816. {
  1817. this._strWhere += string.Format(" and CCMID = '{0}'", this.comboBox4.SelectedValue);
  1818. }
  1819. if (!checkBox1.Checked && !checkBox2.Checked && !checkBox3.Checked)
  1820. {
  1821. this._strWhere += string.Format(" and CUTTIME between to_date('{0}','yyyy-MM-dd hh24:mi') and to_date('{1}','yyyy-MM-dd hh24:mi')",
  1822. DateTime.Now.ToString("yyyy-MM-dd") + " 00:00", DateTime.Now.ToString("yyyy-MM-dd") + " 23:59");
  1823. }
  1824. }
  1825. private void GetData()
  1826. {
  1827. try
  1828. {
  1829. CallingMessage par = new CallingMessage();
  1830. par.ServerName = "lgJobMgt";
  1831. par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  1832. par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  1833. par.MethodName = "GetCutBillet";
  1834. par.args = new object[]{_strWhere + " order by cuttime asc,ccmid asc, heatno desc "};
  1835. string strOut = "";
  1836. if( _dsMid != null && _dsMid.Tables.Count > 0 )
  1837. {
  1838. _dsMid.Tables.Clear();
  1839. }
  1840. //
  1841. // if( _dsMid != null && _dsMid.Tables[0].Rows.Count > 0 )
  1842. // {
  1843. // _dsMid.Tables[0].Rows.Clear();
  1844. // }
  1845. _dsMid = ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut) as DataSet;
  1846. if( _dsMid != null )
  1847. {
  1848. this.ultraGrid1.DataSource = _dsMid.Tables[0];
  1849. }
  1850. string strOld = "";
  1851. string strNew = "";
  1852. Color c1 = Color.GhostWhite;//Color.White;
  1853. Color c2 = Color.MintCream;//Color.GhostWhite;//Color.LightCyan;
  1854. Color c3 = c1;
  1855. for (int i=0; i< this.ultraGrid1.Rows.Count; i++)
  1856. {
  1857. UltraGridRow ugr = this.ultraGrid1.Rows[i];
  1858. strNew = ugr.Cells["HEATNO"].Value.ToString();
  1859. if (strOld != strNew)
  1860. {
  1861. if (c3 == c1) c3 = c2;
  1862. else c3 = c1;
  1863. strOld = strNew;
  1864. }
  1865. ugr.Appearance.BackColor = c3;
  1866. }
  1867. }
  1868. catch(Exception ex)
  1869. {
  1870. string strMsg = ex.Message;
  1871. }
  1872. }
  1873. private void ultraGrid1_AfterRowActivate(object sender, System.EventArgs e)
  1874. {
  1875. if (this.ultraGrid1.ActiveRow == null) return;
  1876. UltraGridRow ugr = this.ultraGrid1.ActiveRow;
  1877. int i1 = 0; //炉内切割数
  1878. int i2 = 0; //浇次内炉数
  1879. string str1 = ugr.Cells["HEATNO"].Value.ToString(); //smeltingid 炉号
  1880. string str2 = ugr.Cells["MOULDNO"].Value.ToString(); //castno 浇次号
  1881. string str3 = "";
  1882. for (int i = 0; i< this.ultraGrid1.Rows.Count; i++)
  1883. {
  1884. UltraGridRow ugrf = this.ultraGrid1.Rows[i];
  1885. if (str2 == ugrf.Cells["MOULDNO"].Value.ToString())
  1886. {
  1887. if (str1 == ugrf.Cells["HEATNO"].Value.ToString())
  1888. {
  1889. i1++;
  1890. }
  1891. if (str3 != ugrf.Cells["HEATNO"].Value.ToString())
  1892. {
  1893. i2 ++;
  1894. str3 = ugrf.Cells["HEATNO"].Value.ToString();
  1895. }
  1896. }
  1897. }
  1898. try
  1899. {
  1900. this.richTextBox1.Text = "浇次内炉数:" + i2.ToString() +" 炉内切割数:" + i1.ToString();
  1901. }
  1902. catch(Exception ex )
  1903. {
  1904. MessageBox.Show( ex.Message,"提示",MessageBoxButtons.OK,MessageBoxIcon.Warning );
  1905. }
  1906. this.textBox2.Text = ugr.Cells[0].Value.ToString();
  1907. this.textBox4.Text = ugr.Cells[1].Value.ToString();
  1908. this.comboBox2.SelectedValue = ugr.Cells[2].Value.ToString();
  1909. this.comboBox5.SelectedValue = ugr.Cells[3].Value.ToString();
  1910. this.textBox5.Text = ugr.Cells[4].Value.ToString();
  1911. this.textBox8.Text = ugr.Cells[5].Value.ToString();
  1912. if (ugr.Cells[6].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[6].Value.ToString()))
  1913. this.textBox6.Text = "";
  1914. else
  1915. this.textBox6.Text = Convert.ToSingle(ugr.Cells[6].Value).ToString();
  1916. if (ugr.Cells[7].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[7].Value.ToString()))
  1917. this.textBox7.Text = "";
  1918. else
  1919. this.textBox7.Text = Convert.ToSingle(ugr.Cells[7].Value).ToString();
  1920. if (ugr.Cells[8].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[8].Value.ToString()))
  1921. this.textBox3.Text = "";
  1922. else
  1923. this.textBox3.Text = Convert.ToSingle(ugr.Cells[8].Value).ToString();
  1924. if (ugr.Cells[9].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[9].Value.ToString()))
  1925. this.textBox9.Text = "";
  1926. else
  1927. this.textBox9.Text = Convert.ToSingle(ugr.Cells[9].Value).ToString();
  1928. if (ugr.Cells[10].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[10].Value.ToString()))
  1929. this.textBox10.Text = "";
  1930. else
  1931. this.textBox10.Text = Convert.ToSingle(ugr.Cells[10].Value).ToString();
  1932. if (ugr.Cells[11].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[11].Value.ToString()))
  1933. this.textBox11.Text = "";
  1934. else
  1935. this.textBox11.Text = Convert.ToString(Math.Round(Convert.ToSingle(ugr.Cells[11].Value),3));
  1936. if (ugr.Cells[12].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[12].Value.ToString()))
  1937. this.textBox12.Text = "";
  1938. else
  1939. this.textBox12.Text = Convert.ToSingle(ugr.Cells[12].Value).ToString();
  1940. if (ugr.Cells[18].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[18].Value.ToString()))
  1941. this.textBox13.Text = "";
  1942. else
  1943. this.textBox13.Text = ugr.Cells[18].Value.ToString();
  1944. if (ugr.Cells[20].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[20].Value.ToString()))
  1945. this.textBox14.Text = "";
  1946. else
  1947. this.textBox14.Text = ugr.Cells[20].Value.ToString();
  1948. if (ugr.Cells[19].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[19].Value.ToString()))
  1949. this.textBox15.Text = "";
  1950. else
  1951. this.textBox15.Text = ugr.Cells[19].Value.ToString();
  1952. try
  1953. {
  1954. this.dateTimePicker5.Value = Convert.ToDateTime(ugr.Cells[13].Value);
  1955. if (ugr.Cells[14].Value != System.DBNull.Value)
  1956. this.comboBox3.SelectedValue = ugr.Cells[14].Value.ToString();
  1957. else
  1958. {
  1959. this.comboBox3.SelectedIndex = -1;
  1960. this.comboBox3.Text = "";
  1961. }
  1962. if (ugr.Cells[15] == null)
  1963. this.comboBox6.SelectedValue = "N";
  1964. else
  1965. this.comboBox6.SelectedValue = ugr.Cells[15].Value.ToString();
  1966. }
  1967. catch{}
  1968. }
  1969. #endregion
  1970. #region " ToolBar Event "
  1971. private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
  1972. {
  1973. switch(e.Tool.Key)
  1974. {
  1975. case "add" :
  1976. if (!this.ultraExpandableGroupBox1.Expanded)
  1977. {
  1978. this.ultraExpandableGroupBox1.Expanded = true;
  1979. return;
  1980. }
  1981. Add();
  1982. break;
  1983. case "del" :
  1984. Del();
  1985. break;
  1986. case "edit" :
  1987. if (!this.ultraExpandableGroupBox1.Expanded)
  1988. {
  1989. this.ultraExpandableGroupBox1.Expanded = true;
  1990. return;
  1991. }
  1992. Edit();
  1993. break;
  1994. case "query" :
  1995. Query();
  1996. break;
  1997. case "plan" :
  1998. Plan();
  1999. break;
  2000. case "Existplan":
  2001. ShowToolBans();
  2002. break;
  2003. }
  2004. }
  2005. private void ShowToolBans()
  2006. {
  2007. if( this.panel2.Visible )
  2008. {
  2009. //计划框体展现
  2010. this.panel2.Visible = false;
  2011. this.ultraExpandableGroupBox1.Expanded = false;
  2012. }
  2013. else
  2014. {
  2015. //计划框体展现
  2016. this.panel2.Visible = true;
  2017. this.ultraExpandableGroupBox1.Expanded = true;
  2018. }
  2019. }
  2020. private bool IsValidOfHeatNo(string strSmeltingID)
  2021. {
  2022. if (strSmeltingID == "")
  2023. return false;
  2024. if (strSmeltingID.Length != 9)
  2025. {
  2026. MessageBox.Show("请输入炼号错误,长度不够,正确炉号如:06Z104320!");
  2027. return false;
  2028. }
  2029. if (strSmeltingID.Substring(0,1) != "0")
  2030. {
  2031. MessageBox.Show("请输入炼号错误,第一位不是'0',正确炉号如:06Z104320!");
  2032. return false;
  2033. }
  2034. if (strSmeltingID.Substring(2,1) != "Z")
  2035. {
  2036. MessageBox.Show("请输入炼号错误,第一位不是'Z',正确炉号如:06Z104320!");
  2037. return false;
  2038. }
  2039. if (Convert.ToUInt16(strSmeltingID.Substring(3,1)) > 3)
  2040. {
  2041. MessageBox.Show("请输入炼号错误,第一位不是'1','2'或'3',正确炉号如:06Z104320!");
  2042. return false;
  2043. }
  2044. return true;
  2045. }
  2046. public string yncheck()
  2047. {
  2048. string strLastFla="";
  2049. if (this.ultraGrid1.Rows.Count<1)
  2050. {
  2051. strLastFla="N";
  2052. }
  2053. if (this.ultraGrid1.Rows.Count>0)
  2054. {
  2055. UltraGridRow ugr = this.ultraGrid1.Rows[ultraGrid1.Rows.Count-1];
  2056. strLastFla = ugr.Cells["LASTBILLETFLAG"].Value .ToString();
  2057. }
  2058. return Convert.ToString(strLastFla);
  2059. }
  2060. private void Add()
  2061. {
  2062. LastUpdateTime = DateTime.Now;
  2063. string strLastFla="";
  2064. if (this.ultraGrid1.Rows.Count<1)
  2065. {
  2066. strLastFla="N";
  2067. }
  2068. if (this.ultraGrid1.Rows.Count>0)
  2069. {
  2070. UltraGridRow ugr = this.ultraGrid1.Rows[ultraGrid1.Rows.Count-1];
  2071. strLastFla = ugr.Cells["LASTBILLETFLAG"].Value .ToString();
  2072. }
  2073. if (strLastFla=="Y")
  2074. {
  2075. MessageBox.Show("请将本炉最后一块置成否后再增加支数");
  2076. return ;
  2077. }
  2078. if (this.textBox2.Text.Trim().Length ==0)
  2079. {
  2080. MessageBox.Show("请输入熔炼号!");
  2081. return;
  2082. }
  2083. else
  2084. {
  2085. string strHID = this.textBox2.Text.Trim();
  2086. strHID = strHID.ToUpper();
  2087. if (!IsValidOfHeatNo(strHID))
  2088. return;
  2089. this.textBox2.Text = strHID.ToUpper();
  2090. }
  2091. if (this.comboBox2.Text.Trim().Length ==0)
  2092. {
  2093. MessageBox.Show("请输入铸机号!");
  2094. return;
  2095. }
  2096. if (this.comboBox5.Text.Trim().Length ==0)
  2097. {
  2098. MessageBox.Show("请输入铸流号!");
  2099. return;
  2100. }
  2101. if (this.textBox5.Text.Trim().Length ==0)
  2102. {
  2103. MessageBox.Show("请输入切割序号!");
  2104. return;
  2105. }
  2106. //如果是最后一块,需要检查是否多置了标志
  2107. // int nLastBlock = CheckLastBlockCount();
  2108. // if (nLastBlock >= 1)
  2109. // {
  2110. // comboBox6.SelectedIndex = 1;
  2111. // }
  2112. ArrayList ar = GetCurrValue();
  2113. string strCastNo = ar[5].ToString();
  2114. string strHeatNo = ar[0].ToString();
  2115. int nHeatNum = 0;
  2116. for (int i = 0; i< this.ultraGrid1.Rows.Count; i++)
  2117. {
  2118. UltraGridRow ugrf = this.ultraGrid1.Rows[i];
  2119. if (strCastNo == ugrf.Cells["MOULDNO"].Value .ToString())
  2120. {
  2121. if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString())
  2122. {
  2123. int nInt = Convert.ToInt32( ugrf.Cells["CUTSEQNO"].Value.ToString() );
  2124. if (nInt > nHeatNum) nHeatNum = nInt;
  2125. }
  2126. }
  2127. }
  2128. nHeatNum++;
  2129. ar[4] = nHeatNum.ToString();
  2130. ar[13] = DateTime.Now.ToString();
  2131. string strHeatNum = nHeatNum.ToString();
  2132. if ( nHeatNum < 10) ar[16] = strHeatNo.Substring(1,8) + "0" + strHeatNum;
  2133. else if ( nHeatNum >= 100) ar[16] = strHeatNo.Substring(1,8) + strHeatNum.Substring(1,2);
  2134. else ar[16] = strHeatNo.Substring(1,8) + strHeatNum;
  2135. if (ar == null)
  2136. {
  2137. MessageBox.Show("输入数据格式错误!");
  2138. return;
  2139. }
  2140. //////////////////
  2141. string strMsg = "本浇注位是" + CCMN0 + ",您已经标志标示了一个最后块, 操作失败!!!";
  2142. // if( comboBox6.Text == "是" ) nLastBlock = nLastBlock + 1;
  2143. // if( nLastBlock > 1 )
  2144. // {
  2145. // MessageBox.Show( strMsg ,"提示",MessageBoxButtons.OK,MessageBoxIcon.Warning);
  2146. // return;
  2147. // }
  2148. int nCutSequence = -1;
  2149. //检查切割顺序号的合法性
  2150. try
  2151. {
  2152. nCutSequence = Convert.ToInt32( this.textBox5.Text );
  2153. }
  2154. catch
  2155. {
  2156. MessageBox.Show("您输入的切割顺序号不对,应该输入数字,\r\n且要注意输入法采用半角。","提示",MessageBoxButtons.OK,MessageBoxIcon.Warning );
  2157. return;
  2158. }
  2159. //检查是否有两个相同的切割顺序
  2160. if( CheckDuplicatRec( nHeatNum ) )
  2161. {
  2162. MessageBox.Show("您在同一炉中设置了两个相同的切割顺序,操作失败!!!","提示",MessageBoxButtons.OK,MessageBoxIcon.Warning);
  2163. return;
  2164. }
  2165. //////////////////////
  2166. try
  2167. {
  2168. CallingMessage par = new CallingMessage();
  2169. par.ServerName = "lgJobMgt";
  2170. par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  2171. par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  2172. par.MethodName = "InsetCutBillet";
  2173. par.args = new object[]{ar};
  2174. string strOut = "";
  2175. object obj = ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  2176. if (Convert.ToInt32(obj) < 1)
  2177. {
  2178. MessageBox.Show("数据提交失败!\n" + strOut);
  2179. }
  2180. else
  2181. {
  2182. DataRow dr = (this.ultraGrid1.DataSource as DataTable).NewRow();
  2183. for (int i =0; i < dr.Table.Columns.Count ; i++)
  2184. {
  2185. try
  2186. {
  2187. dr[i] = ar[i];
  2188. }
  2189. catch
  2190. {
  2191. dr[i] = DBNull.Value;
  2192. }
  2193. }
  2194. (this.ultraGrid1.DataSource as DataTable).Rows.InsertAt(dr,0);
  2195. (this.ultraGrid1.DataSource as DataTable).AcceptChanges();
  2196. this.ultraGrid1.Rows[0].Activate();
  2197. }
  2198. }
  2199. catch(Exception ex)
  2200. {
  2201. Console.WriteLine(ex.Message );
  2202. }
  2203. Query();
  2204. if(ultraGrid1.Rows.Count>0)
  2205. ultraGrid1.Rows[ultraGrid1.Rows.Count - 1].Activated = true;
  2206. }
  2207. private void Del()
  2208. {
  2209. LastUpdateTime = DateTime.Now;
  2210. int i = 0;
  2211. int nCutNo = 0;
  2212. int nSelCutNo = 0;
  2213. string strHeatNo = "";
  2214. string strCastNo = "";
  2215. UltraGridRow ugr = this.ultraGrid1.ActiveRow;
  2216. if (ugr == null)
  2217. {
  2218. MessageBox.Show("请选择要删除的行!");
  2219. return;
  2220. }
  2221. strHeatNo = ugr.Cells["HEATNO"].Value.ToString();
  2222. strCastNo = ugr.Cells["MOULDNO"].Value .ToString();
  2223. nSelCutNo = Convert.ToInt32(ugr.Cells["CUTSEQNO"].Value .ToString());
  2224. for (int j = 0; j< this.ultraGrid1.Rows.Count; j++)
  2225. {
  2226. UltraGridRow ugrf = this.ultraGrid1.Rows[j];
  2227. if (strCastNo == ugrf.Cells["MOULDNO"].Value .ToString())
  2228. {
  2229. if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString())
  2230. {
  2231. nCutNo++;
  2232. }
  2233. }
  2234. }
  2235. if (nCutNo != nSelCutNo)
  2236. {
  2237. MessageBox.Show("请选择要最后一行删除!");
  2238. return;
  2239. }
  2240. FrmSelDel frm = new FrmSelDel();
  2241. frm.ShowDialog();
  2242. i = ugr.Index;
  2243. string strWhere = "";
  2244. if (frm._Flag == "A")
  2245. {
  2246. strWhere = " where BILLETCODE = '" + ugr.Cells[20].Value.ToString() + "'";
  2247. }
  2248. else if (frm._Flag == "B")
  2249. {
  2250. strWhere = " where HEATNO = '" + ugr.Cells[0].Value.ToString() + "'";
  2251. }
  2252. else
  2253. {
  2254. return;
  2255. }
  2256. try
  2257. {
  2258. CallingMessage par = new CallingMessage();
  2259. par.ServerName = "lgJobMgt";
  2260. par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  2261. par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  2262. par.MethodName = "DelCutBillet";
  2263. par.args = new object[]{strWhere};
  2264. string strOut = "";
  2265. ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  2266. if (strOut != "")
  2267. {
  2268. MessageBox.Show(strOut);
  2269. return;
  2270. }
  2271. }
  2272. catch (Exception ex)
  2273. {
  2274. MessageBox.Show(ex.Message);
  2275. return;
  2276. }
  2277. if (frm._Flag == "B")
  2278. {
  2279. this.GetSqlWhere();
  2280. this.GetData();
  2281. return;
  2282. }
  2283. this.ultraGrid1.ActiveRow.Delete(false);
  2284. this.ultraGrid1.UpdateData();
  2285. try
  2286. {
  2287. this.ultraGrid1.Rows[i].Activate();
  2288. }
  2289. catch
  2290. {
  2291. int count = this.ultraGrid1.Rows.Count;
  2292. if ( count > 0)
  2293. this.ultraGrid1.Rows[count -1].Activate();
  2294. }
  2295. }
  2296. //本函数检查是否有重复的记录( 重点是切割顺序 )
  2297. private bool CheckDuplicatRec( int nCutSeqence )
  2298. {
  2299. // true 不合法
  2300. if( nCutSeqence == -1 ) return true;
  2301. //再次在恰当的数据源查找
  2302. DataTable dtFind = ultraGrid1.DataSource as DataTable;
  2303. //展现的数据行数
  2304. try{
  2305. foreach( DataRow dr in dtFind.Rows )
  2306. {
  2307. int nInt = Convert.ToInt32( dr["CUTSEQNO"].ToString() );
  2308. if( nCutSeqence == nInt )
  2309. return true;
  2310. }
  2311. }catch{}
  2312. //false 合法
  2313. return false;
  2314. }
  2315. //本函数检查是否有两个记录都标示是最后一块
  2316. private int CheckLastBlockCount()
  2317. {
  2318. /*//首先停止现程的扫描
  2319. LastUpdateTime = DateTime.Now;
  2320. //再次在恰当的数据源查找
  2321. DataTable dtFind = ultraGrid1.DataSource as DataTable;
  2322. //展现的数据行数
  2323. //ultraGrid1.Rows.Count+1
  2324. int nRowCount = dtFind.Rows.Count;
  2325. int CheckCount = 0;
  2326. int MaxRows =0;
  2327. foreach( DataRow dr in dtFind.Rows )
  2328. {
  2329. MaxRows=MaxRows+1;
  2330. if (MaxRows==(ultraGrid1.Rows.Count))
  2331. break;
  2332. if( dr["LASTBILLETFLAG"].ToString() == "Y" )
  2333. CheckCount = CheckCount + 1;
  2334. }*/
  2335. bool bHasLastCutBillet = false;
  2336. string strCastNo = "";
  2337. string strHeatNo = "";
  2338. int CheckCount = 0;
  2339. UltraGridRow ugr = this.ultraGrid1.ActiveRow;
  2340. strHeatNo = ugr.Cells["HEATNO"].Value.ToString();
  2341. strCastNo = ugr.Cells["MOULDNO"].Value .ToString();
  2342. for (int j = 0; j< this.ultraGrid1.Rows.Count; j++)
  2343. {
  2344. UltraGridRow ugrf = this.ultraGrid1.Rows[j];
  2345. if (strCastNo == ugrf.Cells["MOULDNO"].Value .ToString())
  2346. {
  2347. if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString())
  2348. {
  2349. if( ugrf.Cells["LASTBILLETFLAG"].Value.ToString() == "Y" )
  2350. {
  2351. bHasLastCutBillet = true;
  2352. break;
  2353. }
  2354. }
  2355. }
  2356. }
  2357. if (bHasLastCutBillet) CheckCount = 1;
  2358. else CheckCount = 0;
  2359. return CheckCount;
  2360. }
  2361. private bool CheckAlpbetCaption( string strSmeltiID )
  2362. {
  2363. //查找z
  2364. int nIndex = strSmeltiID.IndexOf("z");
  2365. if( nIndex >= 0 ) return false;
  2366. return true;
  2367. }
  2368. private string ChangeCaptionAuto( string strSmeltingID )
  2369. {
  2370. //查找
  2371. int nIndex = strSmeltingID.IndexOf("z");
  2372. string strNewSmeltingID = strSmeltingID.Substring(0,nIndex );
  2373. strNewSmeltingID = strNewSmeltingID + "Z";
  2374. strNewSmeltingID = strNewSmeltingID + strSmeltingID.Substring( nIndex,strNewSmeltingID.Length - nIndex - 1 );
  2375. return strNewSmeltingID ;
  2376. }
  2377. private void Edit()
  2378. {
  2379. LastUpdateTime = DateTime.Now;
  2380. UltraGridRow ugr = this.ultraGrid1.ActiveRow;
  2381. if (ugr == null)
  2382. {
  2383. MessageBox.Show("请选择要删除的行!");
  2384. return;
  2385. }
  2386. if (this.ultraGrid1.ActiveRow == null)
  2387. {
  2388. MessageBox.Show("请选择所要修改的行!");
  2389. return ;
  2390. }
  2391. if (this.textBox2.Text.Trim().Length ==0)
  2392. {
  2393. MessageBox.Show("请输入熔炼号!");
  2394. return;
  2395. }
  2396. else
  2397. {
  2398. string strHID = this.textBox2.Text.Trim();
  2399. strHID = strHID.ToUpper();
  2400. if (!IsValidOfHeatNo(strHID))
  2401. return;
  2402. this.textBox2.Text = strHID.ToUpper();
  2403. }
  2404. if (this.textBox13.Text.Trim().Length ==0)
  2405. {
  2406. MessageBox.Show("请输入板坯号!");
  2407. return;
  2408. }
  2409. if (this.comboBox2.Text.Trim().Length ==0)
  2410. {
  2411. MessageBox.Show("请输入铸机号!");
  2412. return;
  2413. }
  2414. if (this.comboBox5.Text.Trim().Length ==0)
  2415. {
  2416. MessageBox.Show("请输入铸流号!");
  2417. return;
  2418. }
  2419. if (this.textBox5.Text.Trim().Length ==0)
  2420. {
  2421. MessageBox.Show("请输入切割序号!");
  2422. return;
  2423. }
  2424. ArrayList ar = GetCurrValue();
  2425. if (ar == null)
  2426. {
  2427. MessageBox.Show("输入数据格式错误!");
  2428. return;
  2429. }
  2430. string strChildNo = this.textBox15.Text.Trim();
  2431. if( strChildNo.Length == 0 ) strChildNo = "NULL";
  2432. //ar.Add( strChildNo );
  2433. int nSelCutNo = Convert.ToInt32(ugr.Cells["CUTSEQNO"].Value .ToString());
  2434. int nCutSequence = -1;
  2435. //检查切割顺序号的合法性
  2436. try
  2437. {
  2438. nCutSequence = Convert.ToInt32( this.textBox5.Text );
  2439. }
  2440. catch
  2441. {
  2442. MessageBox.Show("您输入的切割顺序号不对,应该输入数字,\r\n且要注意输入法采用半角。","提示",MessageBoxButtons.OK,MessageBoxIcon.Warning );
  2443. return;
  2444. }
  2445. if (nCutSequence != nSelCutNo)
  2446. {
  2447. //检查是否有两个相同的切割顺序
  2448. if( CheckDuplicatRec( nCutSequence ) )
  2449. {
  2450. MessageBox.Show("您在同一路中设置了两个相同的切割顺序,这将导致记录重复,操作失败!!!","提示",MessageBoxButtons.OK,MessageBoxIcon.Warning);
  2451. return;
  2452. }
  2453. }
  2454. string strLastFlag = ugr.Cells["LASTBILLETFLAG"].Value .ToString();
  2455. //if( comboBox6.Text == "是" ) nLastBlock = nLastBlock + 1;
  2456. int nMaxCutNo = 0;
  2457. string strHeatNo = ugr.Cells["HEATNO"].Value.ToString();
  2458. string strCastNo = ugr.Cells["MOULDNO"].Value.ToString();
  2459. for (int j = 0; j< this.ultraGrid1.Rows.Count; j++)
  2460. {
  2461. UltraGridRow ugrf = this.ultraGrid1.Rows[j];
  2462. if (strCastNo == ugrf.Cells["MOULDNO"].Value.ToString())
  2463. {
  2464. if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString())
  2465. {
  2466. int nTempCutNo = Convert.ToInt32(ugrf.Cells["CUTSEQNO"].Value);
  2467. if (nTempCutNo > nMaxCutNo) nMaxCutNo = nTempCutNo;
  2468. }
  2469. }
  2470. }
  2471. string strMsg = "本浇注位是" + CCMN0 + ":" + Environment.NewLine + "修改数据禁用,请将最后一块的‘是’改为‘否’后再修改数据!!";
  2472. int nLastBlock = CheckLastBlockCount();//如果是最后一块,需要检查是否多置了标志
  2473. if( nLastBlock >= 1 )
  2474. {
  2475. bool bShowMsg = true;
  2476. if (nSelCutNo == nMaxCutNo)
  2477. {
  2478. if (strLastFlag == "N" && comboBox6.Text.Trim() == "是")
  2479. {
  2480. bShowMsg = false;
  2481. }
  2482. else if (strLastFlag == "Y" && comboBox6.Text.Trim() == "否")
  2483. {
  2484. bShowMsg = false;
  2485. }
  2486. else
  2487. {
  2488. bShowMsg = true;
  2489. }
  2490. }
  2491. if (bShowMsg)
  2492. {
  2493. MessageBox.Show( strMsg ,"提示",MessageBoxButtons.OK,MessageBoxIcon.Warning);
  2494. return;
  2495. }
  2496. }
  2497. if (strLastFlag == "N" && comboBox6.Text.Trim() == "是")
  2498. {
  2499. if (nSelCutNo != nMaxCutNo)
  2500. {
  2501. MessageBox.Show( "请在最后一行置为'是'" ,"提示",MessageBoxButtons.OK,MessageBoxIcon.Warning);
  2502. return;
  2503. }
  2504. }
  2505. try
  2506. {
  2507. CallingMessage par = new CallingMessage();
  2508. par.ServerName = "lgJobMgt";
  2509. par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  2510. par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  2511. par.MethodName = "UpdateCutBilletEx";
  2512. par.args = new object[]{ar};
  2513. string strOut = "";
  2514. object obj = ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  2515. if (Convert.ToInt32(obj) < 1)
  2516. {
  2517. MessageBox.Show("数据提交失败!\n" + strOut);
  2518. }
  2519. else
  2520. {
  2521. //this.ultraGrid1.UpdateData();
  2522. Query();
  2523. if(ultraGrid1.Rows.Count>0)
  2524. ultraGrid1.Rows[ultraGrid1.Rows.Count - 1].Activated = true;
  2525. //if (i == this.ultraGrid1.Rows.Count - 1)
  2526. //{
  2527. // ugr.Activated = true;
  2528. // ugr.Selected = true;
  2529. //}
  2530. //else
  2531. //{
  2532. // ugr.Activated = false;
  2533. // ugr.Selected = false;
  2534. //}
  2535. }
  2536. }
  2537. catch (Exception ex)
  2538. {
  2539. MessageBox.Show(ex.Message);
  2540. return;
  2541. }
  2542. }
  2543. private void Exit()
  2544. {
  2545. this.Close();
  2546. }
  2547. public void Query()
  2548. {
  2549. LastUpdateTime = DateTime.Now;
  2550. this.GetSqlWhere();
  2551. this.GetData();
  2552. }
  2553. //切换到手动匹配模式
  2554. private bool bHandleCoup = false;
  2555. private void Plan()
  2556. {
  2557. if( bHandleCoup )
  2558. {
  2559. bHandleCoup = false;
  2560. }
  2561. else
  2562. {
  2563. bHandleCoup = true;
  2564. if( _dsMid != null && _dsMid.Tables.Count > 0 )
  2565. {
  2566. _dsMid.Tables[0].Rows.Clear();
  2567. this.ultraGrid1.DataSource = _dsMid.Tables[0];
  2568. ultraGrid1.DataBind();
  2569. ultraGrid1.Refresh();
  2570. }
  2571. }
  2572. //上次开始的计时更新时间(开始用到)
  2573. LastUpdateTime = DateTime.Now;
  2574. strOldBlockNo = "";
  2575. strOldCastNo = "";
  2576. //将两个grid利用FixRow分开
  2577. SplitTwoGrid();
  2578. //装载两个对应关系的数据
  2579. RalationUIChange();
  2580. }
  2581. //将两个grid利用FixRow分开
  2582. private void SplitTwoGrid()
  2583. {
  2584. //if( bHandleCoup )
  2585. //{
  2586. // this.ultraGrid1.DisplayLayout.Override.FixedRowsLimit = 5;
  2587. // this.ultraGrid1.DisplayLayout.Override.FixedRowStyle = FixedRowStyle.Top;
  2588. // this.ultraGrid1.DisplayLayout.Override.FixedRowIndicator = FixedRowIndicator.Button;
  2589. // this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparator = SpecialRowSeparator.FixedRows;
  2590. // this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparatorHeight = 4;
  2591. //}
  2592. //else
  2593. //{
  2594. this.ultraGrid1.DisplayLayout.Override.FixedRowsLimit = -1;
  2595. this.ultraGrid1.DisplayLayout.Override.FixedRowStyle = FixedRowStyle.Default;
  2596. this.ultraGrid1.DisplayLayout.Override.FixedRowIndicator = FixedRowIndicator.Default;
  2597. this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparator = SpecialRowSeparator.Default;
  2598. this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparatorHeight = -1;
  2599. //}
  2600. }
  2601. //装载两个对应关系的数据
  2602. private void RalationUIChange()
  2603. {
  2604. if( bHandleCoup )
  2605. {
  2606. ultraToolbarsManager1.Toolbars[0].Tools[5].SharedProps.Caption = "关联察看";
  2607. }
  2608. else
  2609. {
  2610. ultraToolbarsManager1.Toolbars[0].Tools[5].SharedProps.Caption = "单独查询";
  2611. }
  2612. }
  2613. private ArrayList GetCurrValue()
  2614. {
  2615. ArrayList ar = new ArrayList();
  2616. try
  2617. {
  2618. ar.Add(this.textBox2.Text.Trim());
  2619. ar.Add(this.textBox4.Text.Trim());
  2620. ar.Add(this.comboBox2.SelectedValue);
  2621. ar.Add(this.comboBox5.SelectedValue);
  2622. ar.Add(this.textBox5.Text.Trim());
  2623. ar.Add(this.textBox8.Text.Trim());
  2624. ar.Add(GetSingle(this.textBox6.Text.Trim()));
  2625. ar.Add(GetSingle(this.textBox7.Text.Trim()));
  2626. ar.Add(GetSingle(this.textBox3.Text.Trim()));
  2627. ar.Add(GetSingle(this.textBox9.Text.Trim()));
  2628. ar.Add(GetSingle(this.textBox10.Text.Trim()));
  2629. ar.Add(GetSingle(this.textBox11.Text.Trim()));
  2630. ar.Add(GetSingle(this.textBox12.Text.Trim()));
  2631. ar.Add(this.dateTimePicker5.Value.ToString("yyyy-MM-dd HH:mm:ss"));
  2632. ar.Add(this.comboBox3.SelectedValue);
  2633. if (this.comboBox6.SelectedIndex == -1)
  2634. ar.Add("N");
  2635. else
  2636. ar.Add(this.comboBox6.SelectedValue);
  2637. ar.Add(this.textBox13.Text.Trim());
  2638. ar.Add(this.textBox14.Text.Trim());
  2639. return ar;
  2640. }
  2641. catch
  2642. {
  2643. return null;
  2644. }
  2645. }
  2646. private object GetSingle(string str)
  2647. {
  2648. if (str == "")
  2649. return "null";
  2650. else
  2651. return Convert.ToSingle(str);
  2652. }
  2653. #endregion
  2654. private void checkBox1_CheckedChanged(object sender, System.EventArgs e)
  2655. {
  2656. this.dateTimePicker3.Enabled = this.checkBox1.Checked;
  2657. this.dateTimePicker4.Enabled = this.checkBox1.Checked;
  2658. }
  2659. private void checkBox2_CheckedChanged(object sender, System.EventArgs e)
  2660. {
  2661. if (this.checkBox2.Checked)
  2662. {
  2663. this.textBox1.Enabled = true;
  2664. this.textBox1.BackColor = Color.LightCyan;
  2665. }
  2666. else
  2667. {
  2668. this.textBox1.Enabled = false;
  2669. this.textBox1.BackColor = Color.Gainsboro;
  2670. }
  2671. }
  2672. private void checkBox3_CheckedChanged(object sender, System.EventArgs e)
  2673. {
  2674. if (this.checkBox3.Checked)
  2675. {
  2676. this.comboBox4.Enabled = true;
  2677. this.comboBox4.BackColor = Color.LightCyan;
  2678. }
  2679. else
  2680. {
  2681. this.comboBox4.Enabled = false;
  2682. this.comboBox4.BackColor = Color.Gainsboro;
  2683. }
  2684. }
  2685. private void textBox5_TextChanged(object sender, System.EventArgs e)
  2686. {
  2687. try
  2688. {
  2689. this.textBox13.Text = "";
  2690. if (this.textBox5.Text.Trim().Length ==0)
  2691. return;
  2692. if (this.textBox2.Text.Trim().Length == 0 && blText == false)
  2693. {
  2694. MessageBox.Show("请先输入熔炼号!");
  2695. return;
  2696. }
  2697. else
  2698. {
  2699. string strHID = this.textBox2.Text.Trim();
  2700. strHID = strHID.ToUpper();
  2701. if (!IsValidOfHeatNo(strHID))
  2702. return;
  2703. this.textBox2.Text = strHID.ToUpper();
  2704. }
  2705. int cutno = Convert.ToInt32(this.textBox5.Text.Trim());
  2706. string heatno = this.textBox1.Text.Trim();
  2707. string strCutNo = "";
  2708. strCutNo = cutno.ToString();
  2709. if (strCutNo.Length == 1) strCutNo = "0" + strCutNo;
  2710. if (strCutNo.Length == 3)
  2711. {
  2712. int nNum = cutno;
  2713. if (nNum >= 100 && nNum < 110) strCutNo = "A" + strCutNo.Substring(2,1);
  2714. if (nNum >= 110 && nNum < 120) strCutNo = "B" + strCutNo.Substring(2,1);
  2715. if (nNum >= 120 && nNum < 130) strCutNo = "C" + strCutNo.Substring(2,1);
  2716. if (nNum >= 130 && nNum < 140) strCutNo = "D" + strCutNo.Substring(2,1);
  2717. if (nNum >= 140 && nNum < 150) strCutNo = "E" + strCutNo.Substring(2,1);
  2718. if (nNum >= 150 && nNum < 160) strCutNo = "F" + strCutNo.Substring(2,1);
  2719. if (nNum >= 160 && nNum < 170) strCutNo = "G" + strCutNo.Substring(2,1);
  2720. if (nNum >= 170 && nNum < 180) strCutNo = "H" + strCutNo.Substring(2,1);
  2721. if (nNum >= 180 && nNum < 190) strCutNo = "J" + strCutNo.Substring(2,1);
  2722. }
  2723. if (strCutNo.Length >= 3 && cutno >= 190)
  2724. {
  2725. MessageBox.Show("请先切割序号过大!!!,最大不能超过190");
  2726. this.textBox5.Text = "";
  2727. return;
  2728. }
  2729. if(heatno.Trim().Length>0)
  2730. this.textBox13.Text = heatno.Substring(1) + strCutNo;
  2731. blText = false;
  2732. }
  2733. catch
  2734. {
  2735. }
  2736. }
  2737. private void textBox3_TextChanged(object sender, System.EventArgs e)
  2738. {
  2739. try
  2740. {
  2741. float a = Convert.ToSingle(this.textBox3.Text.Trim());
  2742. float b = Convert.ToSingle(this.textBox9.Text.Trim());
  2743. float c = Convert.ToSingle(this.textBox10.Text.Trim());
  2744. this.textBox11.Text = Convert.ToString(Math.Round(a*b*c*7.82/1000000000,3));
  2745. }
  2746. catch{}
  2747. }
  2748. private void SetFixRow(string strBlockNo )
  2749. {
  2750. ultraGrid1.Rows.FixedRows.Clear();
  2751. //解决因交换顺序而导致的辨别不清
  2752. foreach( Infragistics.Win.UltraWinGrid.UltraGridRow row in ultraGrid1.Rows )
  2753. {
  2754. row.Fixed = false; //都去掉选项标记
  2755. }
  2756. //遍历Grid,设定固定行单独标记出来
  2757. foreach( Infragistics.Win.UltraWinGrid.UltraGridRow row in ultraGrid1.Rows )
  2758. {
  2759. string strTargeBlockNo = row.Cells[18].Value.ToString();
  2760. if( strTargeBlockNo == "" )
  2761. {
  2762. continue;
  2763. }
  2764. else
  2765. {
  2766. if( strTargeBlockNo == strBlockNo )
  2767. {
  2768. row.Fixed = true;
  2769. }
  2770. }
  2771. }
  2772. ultraGrid1.Rows[0].Activated = true;
  2773. }
  2774. //将数据清除提交给数据后台组件
  2775. private void HandleSetClear(string strHeatID, int nBegin,int nEnd )
  2776. {
  2777. //提交到后台
  2778. try
  2779. {
  2780. CallingMessage par = new CallingMessage();
  2781. par.ServerName = "lgJobMgt";
  2782. par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  2783. par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  2784. par.MethodName = "ClearCutSeqence";
  2785. par.args = new object[]{strHeatID,nBegin,nEnd};
  2786. string strOut = "";
  2787. object obj = ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  2788. if (Convert.ToInt32(obj) < 1)
  2789. {
  2790. MessageBox.Show("数据提交失败!\n" + strOut);
  2791. }
  2792. else
  2793. {
  2794. Query();
  2795. }
  2796. }
  2797. catch (Exception ex)
  2798. {
  2799. MessageBox.Show(ex.Message);
  2800. return;
  2801. }
  2802. }
  2803. //回调函数
  2804. private void PlanBlockChange( string strCastNo,string strBlockNo )
  2805. {
  2806. //如果没有挂接处理函数
  2807. if( !bHandleCoup ) return;
  2808. //判断是否将浇次号进行了改变
  2809. if( strCastNo != strOldCastNo )
  2810. {
  2811. strOldCastNo = strCastNo;
  2812. this.checkBox1.Checked = false;
  2813. this.dateTimePicker3.Enabled = false;
  2814. this.dateTimePicker4.Enabled = false;
  2815. this.checkBox1.Checked = false;
  2816. this.checkBox2.Checked = true;
  2817. this.checkBox3.Checked = false;
  2818. this.textBox1.Enabled = true;
  2819. this.textBox1.Text = strCastNo;
  2820. this.textBox2.Text = "";
  2821. this.textBox3.Text = "";
  2822. this.textBox4.Text = "";
  2823. this.textBox5.Text = "";
  2824. this.textBox6.Text = "";
  2825. this.textBox7.Text = "";
  2826. this.textBox8.Text = "";
  2827. this.textBox9.Text = "";
  2828. this.textBox10.Text = "";
  2829. this.textBox11.Text = "";
  2830. this.textBox12.Text = "";
  2831. this.textBox13.Text = "";
  2832. this.textBox14.Text = "";
  2833. this.textBox15.Text = "";
  2834. //查询列出浇次所有的切割块
  2835. _dsMid.Tables.Clear();
  2836. Query();
  2837. }
  2838. if( strBlockNo != strOldBlockNo )
  2839. {
  2840. //将选中的匹配情况列出到FixRow中
  2841. strOldBlockNo = strBlockNo;
  2842. //将匹配数据设定为固定的行
  2843. SetFixRow( strBlockNo );
  2844. }
  2845. }
  2846. //手工更改的块号,子块号
  2847. private void ultraGrid1_BeforeRowUpdate(object sender, Infragistics.Win.UltraWinGrid.CancelableRowEventArgs e)
  2848. {
  2849. LastUpdateTime = DateTime.Now;
  2850. string strLastBlock = e.Row.Cells["LASTBILLETFLAG"].Value.ToString().Trim();
  2851. string strBlockNo = e.Row.Cells[ 18 ].Value.ToString().Trim();
  2852. string strChildNo = e.Row.Cells[ 19 ].Value.ToString().Trim();
  2853. string strRecNo = e.Row.Cells[ 20 ].Value.ToString().Trim();
  2854. if( !UpdateSingleRow( strBlockNo,strChildNo,strLastBlock, strRecNo ) )
  2855. {
  2856. MessageBox.Show( "数据更新失败,无法完成更新,请重试!","提示",MessageBoxButtons.OK,MessageBoxIcon.Warning );
  2857. e.Cancel = true;
  2858. }
  2859. }
  2860. private void ultraGrid1_BeforeRowFixedStateChanged(object sender, Infragistics.Win.UltraWinGrid.BeforeRowFixedStateChangedEventArgs e)
  2861. {
  2862. //手动指定为固定行(即计划匹配行)
  2863. string strAffectRow = e.Row.Cells[0].Value.ToString();
  2864. string strCutTime = e.Row.Cells[13].Value.ToString();
  2865. int nChildBlockNo = 0;
  2866. int nFixRows = ultraGrid1.Rows.FixedRows.Count;
  2867. if( nFixRows > 0 )
  2868. {
  2869. nChildBlockNo = ultraGrid1.Rows.FixedRows.Count +1 ;
  2870. }
  2871. else
  2872. {
  2873. nChildBlockNo = 0 ;
  2874. }
  2875. if( !e.Row.Fixed)
  2876. {
  2877. //更新数据库
  2878. if( UpdateHandlePoint( strOldCastNo,strOldBlockNo,strAffectRow,strCutTime,nChildBlockNo ) )
  2879. {
  2880. int nAfterAddRows = ultraGrid1.Rows.FixedRows.Count + 1 ;
  2881. //更新Grid
  2882. e.Row.Cells[16].Value = "是";
  2883. e.Row.Cells[17].Value = "是";
  2884. e.Row.Cells[18].Value = strOldBlockNo ;
  2885. e.Row.Cells[19].Value = nAfterAddRows ;//子块号
  2886. //同时需要将原来的子块号给添上
  2887. if( nAfterAddRows == 2 )
  2888. {
  2889. ultraGrid1.Rows.FixedRows[0].Cells[19].Value = 1;
  2890. }
  2891. }
  2892. else
  2893. {
  2894. e.Cancel = true;
  2895. }
  2896. }
  2897. else
  2898. {
  2899. //或者取消指定
  2900. //如果数据个数只剩下1个,则需要将剩下的那个的子块号清空调
  2901. int nFixRow = ultraGrid1.Rows.FixedRows.Count;
  2902. if( nFixRow == 2 )
  2903. {
  2904. if( CancelHandlePointEx( strOldCastNo,strOldBlockNo,strAffectRow,strCutTime,nChildBlockNo ) )
  2905. {
  2906. //更新Grid
  2907. e.Row.Cells[16].Value = "否";
  2908. e.Row.Cells[17].Value = "是";
  2909. e.Row.Cells[18].Value = "";
  2910. e.Row.Cells[19].Value = DBNull.Value ;//子块号
  2911. //取到第一行
  2912. ultraGrid1.Rows.FixedRows[0].Cells[19].Value = DBNull.Value;
  2913. }
  2914. else
  2915. {
  2916. e.Cancel = true;
  2917. }
  2918. }
  2919. else
  2920. {
  2921. if( CancelHandlePoint( strOldCastNo,strOldBlockNo,strAffectRow,strCutTime,nChildBlockNo ) )
  2922. {
  2923. //更新Grid
  2924. e.Row.Cells[16].Value = "否";
  2925. e.Row.Cells[17].Value = "是";
  2926. e.Row.Cells[18].Value = "";
  2927. e.Row.Cells[19].Value = DBNull.Value ;//子块号
  2928. }
  2929. else
  2930. {
  2931. e.Cancel = true;
  2932. }
  2933. }
  2934. }
  2935. }
  2936. private bool UpdateHandlePoint( string strCastNo,string strBlockNo,string strAffectRow,string strCutTime,int nChildBlockNo )
  2937. {
  2938. try
  2939. {
  2940. CallingMessage par = new CallingMessage();
  2941. par.ServerName = "lgJobMgt";
  2942. par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  2943. par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  2944. par.MethodName = "UpdateHandlePoint"; //CancelHandlePoint
  2945. par.args = new object[]{strCastNo,strBlockNo,strAffectRow,strCutTime,nChildBlockNo};
  2946. string strOut = "";
  2947. object obj = ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  2948. if (Convert.ToInt32(obj) < 1)
  2949. {
  2950. MessageBox.Show("数据更新失败!\n" + strOut);
  2951. return false;
  2952. }
  2953. }
  2954. catch
  2955. {
  2956. return false;
  2957. }
  2958. return true;
  2959. }
  2960. //取消选择
  2961. private bool CancelHandlePointEx( string strCastNo,string strBlockNo,string strAffectRow,string strCutTime,int nChildBlockNo )
  2962. {
  2963. try
  2964. {
  2965. CallingMessage par = new CallingMessage();
  2966. par.ServerName = "lgJobMgt";
  2967. par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  2968. par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  2969. par.MethodName = "CancelHandlePointEx";
  2970. par.args = new object[]{strCastNo,strBlockNo,strAffectRow,strCutTime,nChildBlockNo};
  2971. string strOut = "";
  2972. object obj = ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  2973. if (Convert.ToInt32(obj) < 1)
  2974. {
  2975. MessageBox.Show("数据更新失败!\n" + strOut);
  2976. return false;
  2977. }
  2978. }
  2979. catch
  2980. {
  2981. return false;
  2982. }
  2983. return true;
  2984. }
  2985. private bool CancelHandlePoint( string strCastNo,string strBlockNo,string strAffectRow,string strCutTime,int nChildBlockNo )
  2986. {
  2987. try
  2988. {
  2989. CallingMessage par = new CallingMessage();
  2990. par.ServerName = "lgJobMgt";
  2991. par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  2992. par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  2993. par.MethodName = "CancelHandlePoint";
  2994. par.args = new object[]{strCastNo,strBlockNo,strAffectRow,strCutTime,nChildBlockNo};
  2995. string strOut = "";
  2996. object obj = ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  2997. if (Convert.ToInt32(obj) < 1)
  2998. {
  2999. MessageBox.Show("数据更新失败!\n" + strOut);
  3000. return false;
  3001. }
  3002. }
  3003. catch
  3004. {
  3005. return false;
  3006. }
  3007. return true;
  3008. }
  3009. private bool UpdateSingleRow( string strBlockNo,string strChildNo,string strLastBlock,string strRecNo )
  3010. {
  3011. bool bLastBlock = false;
  3012. if( strLastBlock.Length > 0 && strLastBlock == "Y" ) bLastBlock = true;
  3013. try
  3014. {
  3015. CallingMessage par = new CallingMessage();
  3016. par.ServerName = "lgJobMgt";
  3017. par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  3018. par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  3019. par.MethodName = "UpdateSingleRow";
  3020. par.args = new object[]{strBlockNo,strChildNo,bLastBlock,strRecNo};
  3021. string strOut = "";
  3022. object obj = ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  3023. if (Convert.ToInt32(obj) < 1)
  3024. {
  3025. MessageBox.Show("数据更新失败!\n" + strOut);
  3026. return false;
  3027. }
  3028. }
  3029. catch
  3030. {
  3031. return false;
  3032. }
  3033. return true;
  3034. }
  3035. private void SendCommdForLadleWeight()
  3036. {
  3037. string strDevNo = CCMN0.Substring(0,1);
  3038. string strPosition = "";
  3039. if (Convert.ToString(this.textBox16.Tag) == "") return;
  3040. strPosition = string.Format("CCM0{0}_DEVICE", strDevNo);
  3041. this._commClass.setHeatID(Convert.ToString(this.textBox16.Tag));
  3042. this._commClass.setProcValueCommand(strPosition, "JOB_CCM_OPTINFO", "PFBALEWGT", "FLTTYPE", this.textBox17.Text);
  3043. this._commClass.setProcValueCommand(strPosition, "JOB_CCM_OPTINFO", "MOULDBALEWGT", "FLTTYPE", this.textBox18.Text);
  3044. SendCommResetBilletNum();
  3045. }
  3046. private void button1_Click(object sender, System.EventArgs e)
  3047. {
  3048. SendCommdForLadleWeight();
  3049. }
  3050. public void SendCommResetBilletNum()
  3051. {
  3052. string strHeatNo = "";
  3053. float fltFirstWeight = 0;
  3054. float fltMouldWeight = 0;
  3055. strHeatNo = Convert.ToString(this.textBox16.Tag);
  3056. fltFirstWeight = Convert.ToSingle(this.textBox17.Text);
  3057. fltMouldWeight = Convert.ToSingle(this.textBox18.Text);
  3058. CallingMessage par = new CallingMessage();
  3059. par.ServerName = "lgJobMgt";
  3060. par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  3061. par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  3062. par.MethodName = "ResetBilletNum";
  3063. par.args = new object[]{strHeatNo, fltFirstWeight, fltMouldWeight};
  3064. string strOut = "";
  3065. object obj = ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  3066. if (strOut != "")
  3067. {
  3068. MessageBox.Show("数据更新失败! " + strOut);
  3069. }
  3070. }
  3071. public void GetCutPromptFromServer()
  3072. {
  3073. try
  3074. {
  3075. string strDevNo = CCMN0.Substring(0,1);
  3076. int nDevNo = Convert.ToInt16(strDevNo);
  3077. CallingMessage par = new CallingMessage();
  3078. par.ServerName = "lgJobMgt";
  3079. par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  3080. par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  3081. par.MethodName = "GetCuttinPrompt";
  3082. par.args = new object[]{nDevNo};
  3083. string strOut = "";
  3084. object obj = ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  3085. if (strOut == "")
  3086. {
  3087. cutHash = (Hashtable)obj;
  3088. }
  3089. else
  3090. {
  3091. cutHash.Clear();
  3092. }
  3093. }
  3094. catch (Exception ee)
  3095. {
  3096. Console.WriteLine(ee.Message);
  3097. cutHash.Clear();
  3098. }
  3099. }
  3100. public void RefreshCutPrompt()
  3101. {
  3102. this.textBox16.Tag = "";
  3103. this.textBox16.Text = "";
  3104. this.textBox17.Text = "";
  3105. this.textBox18.Text = "";
  3106. this.textBox19.Text = "";
  3107. this.textBox20.Text = "";
  3108. this.textBox21.Text = "";
  3109. this.textBox22.Text = "";
  3110. this.textBox23.Text = "";
  3111. this.txt_heatidnoy.Text="";
  3112. if (cutHash.Count < 6) return;
  3113. string strHeatNo = cutHash[0].ToString();
  3114. if (strHeatNo == "") return;
  3115. //this.textBox16.Tag = strHeatNo;
  3116. this.textBox16.Text = strHeatNo.Substring(5);
  3117. this.textBox17.Text = cutHash[1].ToString();
  3118. this.textBox18.Text = cutHash[2].ToString();
  3119. this.textBox19.Text = cutHash[3].ToString();
  3120. this.textBox20.Text = cutHash[4].ToString();
  3121. this.textBox21.Text = cutHash[5].ToString();
  3122. this.textBox22.Text = cutHash[6].ToString();
  3123. this.textBox23.Text = cutHash[7].ToString();
  3124. this.txt_heatidnoy.Text=cutHash[8].ToString();
  3125. }
  3126. public void TimerRefresh()
  3127. {
  3128. LastUpdateTime = DateTime.Now;
  3129. this.GetSqlWhere();
  3130. this.RefreshTable();
  3131. }
  3132. private void RefreshTable()
  3133. {
  3134. //将Grid的左侧移动到开始位置
  3135. Infragistics.Win.UltraWinGrid.Scrollbars scrollbars = this.ultraGrid1.DisplayLayout.Scrollbars;
  3136. if( scrollbars == Infragistics.Win.UltraWinGrid.Scrollbars.Automatic ||
  3137. scrollbars == Infragistics.Win.UltraWinGrid.Scrollbars.Both ||
  3138. scrollbars == Infragistics.Win.UltraWinGrid.Scrollbars.Vertical )
  3139. {
  3140. this.ultraGrid1.DisplayLayout.ColScrollRegions[0].Position = 0;
  3141. //RowScrollRegions[0].ScrollPosition = 0;
  3142. //Infragistics.Win.UltraWinGrid.Scrollbar scroll = this.ultraGrid1.DisplayLayout.ColScrollRegions[0].ScrollPosition = 0;
  3143. }
  3144. try
  3145. {
  3146. CallingMessage par = new CallingMessage();
  3147. par.ServerName = "lgJobMgt";
  3148. par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  3149. par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  3150. par.MethodName = "GetCutBillet";
  3151. par.args = new object[] { _strWhere + " order by cuttime asc,ccmid asc, HEATNO desc " };
  3152. string strOut = "";
  3153. this.ultraGrid1.BeginUpdate(); //避免重画
  3154. if( _dsMid != null && _dsMid.Tables.Count > 0 )
  3155. {
  3156. if( _dsMid != null && _dsMid.Tables.Count > 0 )
  3157. _dsMid.Tables[0].Rows.Clear();
  3158. }
  3159. //
  3160. // if( _dsMid != null && _dsMid.Tables[0].Rows.Count > 0 )
  3161. // {
  3162. // _dsMid.Tables[0].Rows.Clear();
  3163. // }
  3164. DataSet dsTemp = ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut) as DataSet;
  3165. if( dsTemp.Tables[0].Rows.Count > 0 )
  3166. {
  3167. foreach( DataRow dr in dsTemp.Tables[0].Rows )
  3168. {
  3169. object[] rowObjArr = dr.ItemArray ;
  3170. _dsMid.Tables[0].Rows.Add( rowObjArr );
  3171. }
  3172. _dsMid.AcceptChanges();
  3173. //_dsMid = dsTemp.Copy();
  3174. }
  3175. dsTemp.Dispose();
  3176. //准许重画
  3177. this.ultraGrid1.EndUpdate();
  3178. string strOld = "";
  3179. string strNew = "";
  3180. Color c1 = Color.GhostWhite;//Color.White;
  3181. Color c2 = Color.MintCream;//Color.GhostWhite;//Color.LightCyan;
  3182. Color c3 = c1;
  3183. //同时定位到最后一行
  3184. for (int i=0; i< this.ultraGrid1.Rows.Count; i++)
  3185. {
  3186. UltraGridRow ugr = this.ultraGrid1.Rows[i];
  3187. strNew = ugr.Cells["HEATNO"].Value.ToString();
  3188. if( i == this.ultraGrid1.Rows.Count - 1 )
  3189. {
  3190. ugr.Activated = true;
  3191. ugr.Selected = true;
  3192. }
  3193. else
  3194. {
  3195. ugr.Activated = false;
  3196. ugr.Selected = false;
  3197. }
  3198. if (strOld != strNew)
  3199. {
  3200. if (c3==c1) c3 = c2;
  3201. else c3 = c1;
  3202. strOld = strNew;
  3203. }
  3204. ugr.Appearance.BackColor = c3;
  3205. }
  3206. }
  3207. catch(Exception ex)
  3208. {
  3209. string strMsg = ex.Message;
  3210. }
  3211. }
  3212. private void SetDataThread( )
  3213. {
  3214. ReStartSetDataThread :
  3215. while(true)
  3216. {
  3217. if (!this.On_Off_Thread)
  3218. {
  3219. System.Threading.Thread.Sleep(500);
  3220. continue;
  3221. }
  3222. if( bExit ) return;
  3223. //在数据处于定时刷新
  3224. if( bHandleCoup )
  3225. {
  3226. //如果更新超过一定的时间长度(半分钟内),即组织刷新
  3227. TimeSpan timespan = DateTime.Now - LastUpdateTime;
  3228. if( timespan.TotalSeconds > 30 )
  3229. {
  3230. LastUpdateTime = DateTime.Now;
  3231. try
  3232. {
  3233. //刷新右边的数据
  3234. this.Invoke( new CallRefreshThreadDelegate( TimerRefresh) );
  3235. }
  3236. catch{}
  3237. }
  3238. if (DateTime.Now.Second %2 == 0)
  3239. {
  3240. GetCutPromptFromServer();
  3241. //this.Invoke(new CallRefreshThreadDelegate(GetCutPromptFromServer));
  3242. Thread.Sleep( 300 );
  3243. }
  3244. if (DateTime.Now.Second %3 == 1)
  3245. {
  3246. //RefreshCutPrompt();
  3247. this.Invoke(new CallRefreshThreadDelegate(RefreshCutPrompt));
  3248. }
  3249. }
  3250. for( int j = 0;j< 3;j++)
  3251. {
  3252. Thread.Sleep( 1000 );
  3253. if( bExit ) return;
  3254. }
  3255. }
  3256. goto ReStartSetDataThread;
  3257. }
  3258. #region IDisposable 成员
  3259. void System.IDisposable.Dispose()
  3260. {
  3261. //要求线程推出
  3262. bExit = true;
  3263. }
  3264. #endregion
  3265. private void btn_setheatid_Click(object sender, System.EventArgs e)
  3266. {
  3267. string strDevNo = CCMN0.Substring(0,1);
  3268. FrmSetHeatid setheatCcmFrm;
  3269. //heatID=heatID.Substring(0,13);
  3270. //this.commClass.setHeatID(heatID);
  3271. setheatCcmFrm = new FrmSetHeatid( );
  3272. setheatCcmFrm.Location = GetChildWindowLocation(setheatCcmFrm.Size);
  3273. setheatCcmFrm.Ccmno=strDevNo;
  3274. setheatCcmFrm.Heatno=textBox16.Text;
  3275. // functionCcmFrm.strSme = this.getSmeltingID(heatID);
  3276. setheatCcmFrm.ShowDialog();
  3277. }
  3278. private Point GetChildWindowLocation(Size ChildWindowSize)
  3279. {
  3280. int width = Cursor.Position.X + ChildWindowSize.Width - Screen.PrimaryScreen.Bounds.Width;
  3281. int height = Cursor.Position.Y + ChildWindowSize.Height - Screen.PrimaryScreen.Bounds.Height;
  3282. if (width > 0)
  3283. width = Cursor.Position.X - width;
  3284. else
  3285. width = Cursor.Position.X;
  3286. if (height > 0)
  3287. height = Cursor.Position.Y - height-50;
  3288. else
  3289. height = Cursor.Position.Y-50;
  3290. return new Point(width, height);
  3291. }
  3292. private void textBox18_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
  3293. {
  3294. if (e.KeyCode == Keys.Enter )
  3295. {
  3296. SendCommdForLadleWeight();
  3297. }
  3298. }
  3299. private void textBox17_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
  3300. {
  3301. if (e.KeyCode == Keys.Enter )
  3302. {
  3303. SendCommdForLadleWeight();
  3304. }
  3305. }
  3306. private void panel2_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
  3307. {
  3308. }
  3309. private void FrmCutBilletDetailQuery_Load(object sender, EventArgs e)
  3310. {
  3311. //ultraGrid1.Font = new System.Drawing.Font("Tahoma", 9F);
  3312. ultraGrid1.DisplayLayout.Appearance.FontData.SizeInPoints = 10;
  3313. this.dateTimePicker3.Text = System.DateTime.Today.ToString("yyyy-MM-dd") + " 00:00";
  3314. this.dateTimePicker4.Text = System.DateTime.Today.ToString("yyyy-MM-dd") + " 23:59";
  3315. GetSqlWhere();
  3316. GetData();
  3317. InitComboBoxSource();
  3318. FrmProductQueryQuery ctr = new FrmProductQueryQuery();
  3319. ctr.reportSelect = new FrmProductQueryQuery.ReportSelect(PlanBlockChange);
  3320. ctr.reportHandSet = new FrmProductQueryQuery.ReportHandSet(HandleSetClear);
  3321. //ctr.RemotingHelp = this.RemotingHelp ;
  3322. ctr.FrmMain = this;
  3323. //_commClass = new CommandClass(this.RemotingHelp);
  3324. this.panel2.Controls.Add(ctr);
  3325. ctr.Dock = System.Windows.Forms.DockStyle.Fill;
  3326. strOldBlockNo = "";
  3327. strOldCastNo = "";
  3328. ////计划框体展现
  3329. this.panel2.Visible = true;
  3330. this.ultraExpandableGroupBox1.Expanded = true;
  3331. CheckForIllegalCrossThreadCalls = false;
  3332. blText = true;
  3333. this.textBox5.TextChanged += new System.EventHandler(this.textBox5_TextChanged);
  3334. //刷新线程
  3335. ThreadStart ts = new ThreadStart(SetDataThread);
  3336. _refreshDataThread = new Thread(ts);
  3337. _refreshDataThread.Name = "RefreshData";
  3338. _refreshDataThread.Start();
  3339. bHandleCoup = true;
  3340. bExit = false;
  3341. }
  3342. }
  3343. }