FrmCutBilletDetail.cs 243 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483
  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 Infragistics.Win.UltraWinGrid;
  10. using System.Threading;
  11. using CoreFS.CA06;
  12. namespace Core.LgMes.Client.LgJobMgt
  13. {
  14. /// <summary>
  15. /// FrmCutBilletDetail 的摘要说明。
  16. /// </summary>
  17. public partial class FrmCutBilletDetail : Core.Mes.Client.Common.frmStyleBase, IDisposable
  18. {
  19. public bool On_Off_Thread = false;
  20. #region " Construct "
  21. private System.Data.DataSet dataSet1;
  22. private Infragistics.Win.UltraWinGrid.UltraGrid ultraGrid1;
  23. private Infragistics.Win.Misc.UltraGroupBox ultraGroupBox1;
  24. private System.Windows.Forms.TextBox textBox1;
  25. private System.Windows.Forms.CheckBox checkBox3;
  26. private System.Windows.Forms.CheckBox checkBox2;
  27. private System.Windows.Forms.Label label9;
  28. private System.Windows.Forms.CheckBox checkBox1;
  29. private System.Data.DataTable dataTable1;
  30. private System.Data.DataColumn dataColumn1;
  31. private System.Data.DataColumn dataColumn2;
  32. private System.Data.DataColumn dataColumn3;
  33. private System.Data.DataColumn dataColumn4;
  34. private System.Data.DataColumn dataColumn5;
  35. private System.Data.DataColumn dataColumn6;
  36. private System.Data.DataColumn dataColumn7;
  37. private System.Data.DataColumn dataColumn8;
  38. private System.Data.DataColumn dataColumn9;
  39. private System.Data.DataColumn dataColumn10;
  40. private System.Data.DataColumn dataColumn11;
  41. private System.Data.DataColumn dataColumn12;
  42. private System.Data.DataColumn dataColumn13;
  43. private System.Data.DataColumn dataColumn14;
  44. private System.Data.DataColumn dataColumn15;
  45. private System.Data.DataColumn dataColumn16;
  46. private Infragistics.Win.Misc.UltraExpandableGroupBox ultraExpandableGroupBox1;
  47. private Infragistics.Win.Misc.UltraExpandableGroupBoxPanel ultraExpandableGroupBoxPanel1;
  48. private System.Windows.Forms.Label label19;
  49. private System.Windows.Forms.Label label18;
  50. private System.Windows.Forms.TextBox textBox12;
  51. private System.Windows.Forms.TextBox textBox11;
  52. private System.Windows.Forms.Label label16;
  53. private System.Windows.Forms.TextBox textBox10;
  54. private System.Windows.Forms.Label label14;
  55. private System.Windows.Forms.TextBox textBox9;
  56. private System.Windows.Forms.Label label12;
  57. private System.Windows.Forms.TextBox textBox3;
  58. private System.Windows.Forms.Label label6;
  59. private System.Windows.Forms.TextBox textBox8;
  60. private System.Windows.Forms.TextBox textBox7;
  61. private System.Windows.Forms.TextBox textBox6;
  62. private System.Windows.Forms.TextBox textBox5;
  63. private System.Windows.Forms.TextBox textBox4;
  64. private System.Windows.Forms.TextBox textBox2;
  65. private System.Windows.Forms.Label label15;
  66. private System.Windows.Forms.Label label13;
  67. private System.Windows.Forms.Label label8;
  68. private System.Windows.Forms.Label label11;
  69. private System.Windows.Forms.Label label10;
  70. private System.Windows.Forms.Label label3;
  71. private System.Windows.Forms.Label label7;
  72. private System.Windows.Forms.Label label2;
  73. private System.Windows.Forms.Label label1;
  74. private System.Windows.Forms.Splitter splitter1;
  75. private System.Data.DataColumn dataColumn17;
  76. private System.Windows.Forms.Label label4;
  77. private System.Windows.Forms.TextBox textBox13;
  78. private System.Windows.Forms.TextBox textBox14;
  79. private System.Windows.Forms.TextBox textBox15;
  80. private System.Windows.Forms.Panel panel3;
  81. private System.Windows.Forms.TextBox textBox16;
  82. private System.Windows.Forms.Label label5;
  83. private System.Windows.Forms.TextBox textBox17;
  84. private System.Windows.Forms.Label label17;
  85. private System.Windows.Forms.TextBox textBox18;
  86. private System.Windows.Forms.Label label20;
  87. private System.Windows.Forms.TextBox textBox19;
  88. private System.Windows.Forms.Label label21;
  89. private System.Windows.Forms.Label label22;
  90. private System.Windows.Forms.TextBox textBox21;
  91. private System.Windows.Forms.Label label23;
  92. private System.Windows.Forms.Label label24;
  93. private System.Windows.Forms.Button button1;
  94. private System.Windows.Forms.TextBox textBox22;
  95. private System.Windows.Forms.TextBox textBox20;
  96. private System.Windows.Forms.TextBox textBox23;
  97. private System.Windows.Forms.Label label25;
  98. private System.Windows.Forms.TextBox txt_heatidnoy;
  99. private System.Windows.Forms.Button btn_setheatid;
  100. private Panel panel2;
  101. private Label richTextBox1;
  102. private Label label26;
  103. private TextBox textBox24;
  104. private Label label27;
  105. private TextBox textBox25;
  106. private Label label28;
  107. private Panel panel1;
  108. private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox3;
  109. private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox5;
  110. private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox2;
  111. private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox6;
  112. private Infragistics.Win.UltraWinEditors.UltraDateTimeEditor dateTimePicker5;
  113. public Infragistics.Win.UltraWinEditors.UltraDateTimeEditor dateTimePicker4;
  114. public Infragistics.Win.UltraWinEditors.UltraDateTimeEditor dateTimePicker3;
  115. private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox4;
  116. private GroupBox groupBox1;
  117. private UltraGrid ultraGrid2;
  118. private GroupBox groupBox2;
  119. private UltraGrid ultraGrid3;
  120. private Infragistics.Win.Misc.UltraGroupBox ultraGroupBox2;
  121. private Infragistics.Win.UltraWinEditors.UltraDateTimeEditor dtpCutTime;
  122. private Label label29;
  123. private ComboBox cboFlowNo;
  124. private Label label30;
  125. private Label label31;
  126. private TextBox txtSurplusFlag;
  127. private TextBox txtProdorderNO;
  128. private Label label32;
  129. private TextBox txtOrderNO;
  130. private Label label33;
  131. private Button button4;
  132. private Button button3;
  133. private TextBox textBox26;
  134. private Label label34;
  135. private Label label35;
  136. private Label label36;
  137. private TextBox tbxWeight;
  138. private TextBox tbxThick;
  139. private TextBox tbxWidth;
  140. private Label label37;
  141. private TextBox tbxLength;
  142. private Label label38;
  143. private ComboBox comboBox1;
  144. private Label label39;
  145. private TextBox textBox27;
  146. private Label label40;
  147. private TextBox textBox28;
  148. private Label label41;
  149. private Infragistics.Win.Misc.UltraGroupBox ultraGroupBox3;
  150. private Button bntSend;
  151. private ComboBox combConNo;
  152. private CheckBox chkConNo;
  153. private Button queryBtn;
  154. private ComboBox ccmNumCobo;
  155. private CheckBox chkCcmNo;
  156. private Panel panel5;
  157. private Panel panel4;
  158. private System.ComponentModel.IContainer components;
  159. public FrmCutBilletDetail()
  160. {
  161. //
  162. // Windows 窗体设计器支持所必需的
  163. //
  164. InitializeComponent();
  165. //
  166. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  167. //
  168. }
  169. /// <summary>
  170. /// 清理所有正在使用的资源。
  171. /// </summary>
  172. protected override void Dispose(bool disposing)
  173. {
  174. try
  175. {
  176. if (_refreshDataThread != null)
  177. _refreshDataThread.Abort();
  178. }
  179. catch { }
  180. if (disposing)
  181. {
  182. if (components != null)
  183. {
  184. components.Dispose();
  185. }
  186. }
  187. base.Dispose(disposing);
  188. }
  189. #region Windows 窗体设计器生成的代码
  190. /// <summary>
  191. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  192. /// 此方法的内容。
  193. /// </summary>
  194. private void InitializeComponent()
  195. {
  196. Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
  197. Infragistics.Win.UltraWinGrid.UltraGridBand ultraGridBand1 = new Infragistics.Win.UltraWinGrid.UltraGridBand("Table1", -1);
  198. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn1 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HEATNO");
  199. Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
  200. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn2 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CCMSTOVENO");
  201. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn3 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CCMID", -1, 134929704);
  202. Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
  203. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn4 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FLOWNO", -1, 134938501);
  204. Infragistics.Win.Appearance appearance32 = new Infragistics.Win.Appearance();
  205. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn5 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CUTSEQNO");
  206. Infragistics.Win.Appearance appearance33 = new Infragistics.Win.Appearance();
  207. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn6 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("MOULDNO");
  208. Infragistics.Win.Appearance appearance34 = new Infragistics.Win.Appearance();
  209. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn7 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HEATSEQ");
  210. Infragistics.Win.Appearance appearance35 = new Infragistics.Win.Appearance();
  211. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn8 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HEATCNT");
  212. Infragistics.Win.Appearance appearance36 = new Infragistics.Win.Appearance();
  213. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn9 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("LENGTH");
  214. Infragistics.Win.Appearance appearance37 = new Infragistics.Win.Appearance();
  215. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn10 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("WIDTH");
  216. Infragistics.Win.Appearance appearance38 = new Infragistics.Win.Appearance();
  217. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn11 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("THICKNESS");
  218. Infragistics.Win.Appearance appearance39 = new Infragistics.Win.Appearance();
  219. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn12 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("WEIGHT");
  220. Infragistics.Win.Appearance appearance40 = new Infragistics.Win.Appearance();
  221. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn13 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SPECRULE");
  222. Infragistics.Win.Appearance appearance41 = new Infragistics.Win.Appearance();
  223. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn14 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CUTTIME");
  224. Infragistics.Win.Appearance appearance42 = new Infragistics.Win.Appearance();
  225. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn15 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SHIFTCODE", -1, 38914641);
  226. Infragistics.Win.Appearance appearance43 = new Infragistics.Win.Appearance();
  227. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn16 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("LASTBILLETFLAG", -1, 1197251);
  228. Infragistics.Win.Appearance appearance44 = new Infragistics.Win.Appearance();
  229. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn17 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FLAG");
  230. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn18 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CutSize", 0);
  231. Infragistics.Win.Appearance appearance45 = new Infragistics.Win.Appearance();
  232. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn19 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("RESFLAG", 1, 1197252);
  233. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn20 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("BILLETNO", 2, null, 0, Infragistics.Win.UltraWinGrid.SortIndicator.Ascending, false);
  234. Infragistics.Win.Appearance appearance46 = new Infragistics.Win.Appearance();
  235. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn21 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CHILDBLOCKNO", 3);
  236. Infragistics.Win.Appearance appearance47 = new Infragistics.Win.Appearance();
  237. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn22 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("BILLETCODE", 4);
  238. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn23 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ORDERNO", 5);
  239. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn24 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("PRODORDERNO", 6);
  240. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn25 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SURPLUSFLAG", 7, 6529876);
  241. Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn26 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("STEELCODE", 8);
  242. Infragistics.Win.Appearance appearance48 = new Infragistics.Win.Appearance();
  243. Infragistics.Win.Appearance appearance21 = new Infragistics.Win.Appearance();
  244. Infragistics.Win.Appearance appearance22 = new Infragistics.Win.Appearance();
  245. Infragistics.Win.Appearance appearance23 = new Infragistics.Win.Appearance();
  246. Infragistics.Win.Appearance appearance24 = new Infragistics.Win.Appearance();
  247. Infragistics.Win.Appearance appearance25 = new Infragistics.Win.Appearance();
  248. Infragistics.Win.Appearance appearance26 = new Infragistics.Win.Appearance();
  249. Infragistics.Win.Appearance appearance27 = new Infragistics.Win.Appearance();
  250. Infragistics.Win.Appearance appearance28 = new Infragistics.Win.Appearance();
  251. Infragistics.Win.Appearance appearance29 = new Infragistics.Win.Appearance();
  252. Infragistics.Win.Appearance appearance30 = new Infragistics.Win.Appearance();
  253. Infragistics.Win.Appearance appearance31 = new Infragistics.Win.Appearance();
  254. Infragistics.Win.ValueList valueList1 = new Infragistics.Win.ValueList(38914641);
  255. Infragistics.Win.ValueListItem valueListItem1 = new Infragistics.Win.ValueListItem();
  256. Infragistics.Win.ValueListItem valueListItem2 = new Infragistics.Win.ValueListItem();
  257. Infragistics.Win.ValueListItem valueListItem3 = new Infragistics.Win.ValueListItem();
  258. Infragistics.Win.ValueListItem valueListItem4 = new Infragistics.Win.ValueListItem();
  259. Infragistics.Win.ValueListItem valueListItem5 = new Infragistics.Win.ValueListItem();
  260. Infragistics.Win.ValueListItem valueListItem6 = new Infragistics.Win.ValueListItem();
  261. Infragistics.Win.ValueListItem valueListItem7 = new Infragistics.Win.ValueListItem();
  262. Infragistics.Win.ValueListItem valueListItem8 = new Infragistics.Win.ValueListItem();
  263. Infragistics.Win.ValueListItem valueListItem9 = new Infragistics.Win.ValueListItem();
  264. Infragistics.Win.ValueListItem valueListItem10 = new Infragistics.Win.ValueListItem();
  265. Infragistics.Win.ValueListItem valueListItem11 = new Infragistics.Win.ValueListItem();
  266. Infragistics.Win.ValueListItem valueListItem28 = new Infragistics.Win.ValueListItem();
  267. Infragistics.Win.ValueList valueList2 = new Infragistics.Win.ValueList(134929704);
  268. Infragistics.Win.ValueListItem valueListItem29 = new Infragistics.Win.ValueListItem();
  269. Infragistics.Win.ValueListItem valueListItem30 = new Infragistics.Win.ValueListItem();
  270. Infragistics.Win.ValueListItem valueListItem31 = new Infragistics.Win.ValueListItem();
  271. Infragistics.Win.ValueListItem valueListItem16 = new Infragistics.Win.ValueListItem();
  272. Infragistics.Win.ValueList valueList3 = new Infragistics.Win.ValueList(134938501);
  273. Infragistics.Win.ValueListItem valueListItem17 = new Infragistics.Win.ValueListItem();
  274. Infragistics.Win.ValueListItem valueListItem18 = new Infragistics.Win.ValueListItem();
  275. Infragistics.Win.ValueListItem valueListItem19 = new Infragistics.Win.ValueListItem();
  276. Infragistics.Win.ValueListItem valueListItem20 = new Infragistics.Win.ValueListItem();
  277. Infragistics.Win.ValueListItem valueListItem21 = new Infragistics.Win.ValueListItem();
  278. Infragistics.Win.ValueList valueList4 = new Infragistics.Win.ValueList(1197251);
  279. Infragistics.Win.ValueListItem valueListItem22 = new Infragistics.Win.ValueListItem();
  280. Infragistics.Win.ValueListItem valueListItem23 = new Infragistics.Win.ValueListItem();
  281. Infragistics.Win.ValueList valueList5 = new Infragistics.Win.ValueList(1197252);
  282. Infragistics.Win.ValueListItem valueListItem24 = new Infragistics.Win.ValueListItem();
  283. Infragistics.Win.ValueListItem valueListItem25 = new Infragistics.Win.ValueListItem();
  284. Infragistics.Win.ValueList valueList6 = new Infragistics.Win.ValueList(6529876);
  285. Infragistics.Win.ValueListItem valueListItem26 = new Infragistics.Win.ValueListItem();
  286. Infragistics.Win.ValueListItem valueListItem27 = new Infragistics.Win.ValueListItem();
  287. Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
  288. this.dataSet1 = new System.Data.DataSet();
  289. this.dataTable1 = new System.Data.DataTable();
  290. this.dataColumn1 = new System.Data.DataColumn();
  291. this.dataColumn2 = new System.Data.DataColumn();
  292. this.dataColumn3 = new System.Data.DataColumn();
  293. this.dataColumn4 = new System.Data.DataColumn();
  294. this.dataColumn5 = new System.Data.DataColumn();
  295. this.dataColumn6 = new System.Data.DataColumn();
  296. this.dataColumn7 = new System.Data.DataColumn();
  297. this.dataColumn8 = new System.Data.DataColumn();
  298. this.dataColumn9 = new System.Data.DataColumn();
  299. this.dataColumn10 = new System.Data.DataColumn();
  300. this.dataColumn11 = new System.Data.DataColumn();
  301. this.dataColumn12 = new System.Data.DataColumn();
  302. this.dataColumn13 = new System.Data.DataColumn();
  303. this.dataColumn14 = new System.Data.DataColumn();
  304. this.dataColumn15 = new System.Data.DataColumn();
  305. this.dataColumn16 = new System.Data.DataColumn();
  306. this.dataColumn17 = new System.Data.DataColumn();
  307. this.ultraGrid1 = new Infragistics.Win.UltraWinGrid.UltraGrid();
  308. this.ultraGroupBox1 = new Infragistics.Win.Misc.UltraGroupBox();
  309. this.comboBox4 = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
  310. this.dateTimePicker4 = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
  311. this.dateTimePicker3 = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
  312. this.label26 = new System.Windows.Forms.Label();
  313. this.richTextBox1 = new System.Windows.Forms.Label();
  314. this.txt_heatidnoy = new System.Windows.Forms.TextBox();
  315. this.textBox1 = new System.Windows.Forms.TextBox();
  316. this.checkBox3 = new System.Windows.Forms.CheckBox();
  317. this.checkBox2 = new System.Windows.Forms.CheckBox();
  318. this.label9 = new System.Windows.Forms.Label();
  319. this.checkBox1 = new System.Windows.Forms.CheckBox();
  320. this.ultraExpandableGroupBox1 = new Infragistics.Win.Misc.UltraExpandableGroupBox();
  321. this.ultraExpandableGroupBoxPanel1 = new Infragistics.Win.Misc.UltraExpandableGroupBoxPanel();
  322. this.panel1 = new System.Windows.Forms.Panel();
  323. this.dateTimePicker5 = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
  324. this.comboBox6 = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
  325. this.comboBox3 = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
  326. this.comboBox5 = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
  327. this.comboBox2 = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
  328. this.textBox8 = new System.Windows.Forms.TextBox();
  329. this.textBox4 = new System.Windows.Forms.TextBox();
  330. this.textBox15 = new System.Windows.Forms.TextBox();
  331. this.textBox12 = new System.Windows.Forms.TextBox();
  332. this.textBox13 = new System.Windows.Forms.TextBox();
  333. this.textBox14 = new System.Windows.Forms.TextBox();
  334. this.label4 = new System.Windows.Forms.Label();
  335. this.label1 = new System.Windows.Forms.Label();
  336. this.label2 = new System.Windows.Forms.Label();
  337. this.label7 = new System.Windows.Forms.Label();
  338. this.label19 = new System.Windows.Forms.Label();
  339. this.label3 = new System.Windows.Forms.Label();
  340. this.label18 = new System.Windows.Forms.Label();
  341. this.textBox11 = new System.Windows.Forms.TextBox();
  342. this.label10 = new System.Windows.Forms.Label();
  343. this.label16 = new System.Windows.Forms.Label();
  344. this.textBox10 = new System.Windows.Forms.TextBox();
  345. this.label11 = new System.Windows.Forms.Label();
  346. this.label14 = new System.Windows.Forms.Label();
  347. this.label8 = new System.Windows.Forms.Label();
  348. this.textBox9 = new System.Windows.Forms.TextBox();
  349. this.label12 = new System.Windows.Forms.Label();
  350. this.label13 = new System.Windows.Forms.Label();
  351. this.textBox3 = new System.Windows.Forms.TextBox();
  352. this.label15 = new System.Windows.Forms.Label();
  353. this.label6 = new System.Windows.Forms.Label();
  354. this.textBox2 = new System.Windows.Forms.TextBox();
  355. this.textBox5 = new System.Windows.Forms.TextBox();
  356. this.textBox7 = new System.Windows.Forms.TextBox();
  357. this.textBox6 = new System.Windows.Forms.TextBox();
  358. this.panel3 = new System.Windows.Forms.Panel();
  359. this.textBox25 = new System.Windows.Forms.TextBox();
  360. this.label28 = new System.Windows.Forms.Label();
  361. this.label22 = new System.Windows.Forms.Label();
  362. this.textBox21 = new System.Windows.Forms.TextBox();
  363. this.label23 = new System.Windows.Forms.Label();
  364. this.textBox24 = new System.Windows.Forms.TextBox();
  365. this.label27 = new System.Windows.Forms.Label();
  366. this.btn_setheatid = new System.Windows.Forms.Button();
  367. this.textBox23 = new System.Windows.Forms.TextBox();
  368. this.label25 = new System.Windows.Forms.Label();
  369. this.button1 = new System.Windows.Forms.Button();
  370. this.textBox22 = new System.Windows.Forms.TextBox();
  371. this.textBox20 = new System.Windows.Forms.TextBox();
  372. this.label24 = new System.Windows.Forms.Label();
  373. this.textBox19 = new System.Windows.Forms.TextBox();
  374. this.label21 = new System.Windows.Forms.Label();
  375. this.textBox18 = new System.Windows.Forms.TextBox();
  376. this.label20 = new System.Windows.Forms.Label();
  377. this.textBox17 = new System.Windows.Forms.TextBox();
  378. this.label17 = new System.Windows.Forms.Label();
  379. this.textBox16 = new System.Windows.Forms.TextBox();
  380. this.label5 = new System.Windows.Forms.Label();
  381. this.splitter1 = new System.Windows.Forms.Splitter();
  382. this.panel2 = new System.Windows.Forms.Panel();
  383. this.panel5 = new System.Windows.Forms.Panel();
  384. this.groupBox1 = new System.Windows.Forms.GroupBox();
  385. this.ultraGrid2 = new Infragistics.Win.UltraWinGrid.UltraGrid();
  386. this.panel4 = new System.Windows.Forms.Panel();
  387. this.groupBox2 = new System.Windows.Forms.GroupBox();
  388. this.ultraGrid3 = new Infragistics.Win.UltraWinGrid.UltraGrid();
  389. this.ultraGroupBox2 = new Infragistics.Win.Misc.UltraGroupBox();
  390. this.dtpCutTime = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
  391. this.label29 = new System.Windows.Forms.Label();
  392. this.cboFlowNo = new System.Windows.Forms.ComboBox();
  393. this.label30 = new System.Windows.Forms.Label();
  394. this.label31 = new System.Windows.Forms.Label();
  395. this.txtSurplusFlag = new System.Windows.Forms.TextBox();
  396. this.txtProdorderNO = new System.Windows.Forms.TextBox();
  397. this.label32 = new System.Windows.Forms.Label();
  398. this.txtOrderNO = new System.Windows.Forms.TextBox();
  399. this.label33 = new System.Windows.Forms.Label();
  400. this.button4 = new System.Windows.Forms.Button();
  401. this.button3 = new System.Windows.Forms.Button();
  402. this.textBox26 = new System.Windows.Forms.TextBox();
  403. this.label34 = new System.Windows.Forms.Label();
  404. this.label35 = new System.Windows.Forms.Label();
  405. this.label36 = new System.Windows.Forms.Label();
  406. this.tbxWeight = new System.Windows.Forms.TextBox();
  407. this.tbxThick = new System.Windows.Forms.TextBox();
  408. this.tbxWidth = new System.Windows.Forms.TextBox();
  409. this.label37 = new System.Windows.Forms.Label();
  410. this.tbxLength = new System.Windows.Forms.TextBox();
  411. this.label38 = new System.Windows.Forms.Label();
  412. this.comboBox1 = new System.Windows.Forms.ComboBox();
  413. this.label39 = new System.Windows.Forms.Label();
  414. this.textBox27 = new System.Windows.Forms.TextBox();
  415. this.label40 = new System.Windows.Forms.Label();
  416. this.textBox28 = new System.Windows.Forms.TextBox();
  417. this.label41 = new System.Windows.Forms.Label();
  418. this.ultraGroupBox3 = new Infragistics.Win.Misc.UltraGroupBox();
  419. this.bntSend = new System.Windows.Forms.Button();
  420. this.combConNo = new System.Windows.Forms.ComboBox();
  421. this.chkConNo = new System.Windows.Forms.CheckBox();
  422. this.queryBtn = new System.Windows.Forms.Button();
  423. this.ccmNumCobo = new System.Windows.Forms.ComboBox();
  424. this.chkCcmNo = new System.Windows.Forms.CheckBox();
  425. ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit();
  426. ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).BeginInit();
  427. ((System.ComponentModel.ISupportInitialize)(this.ultraGrid1)).BeginInit();
  428. ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).BeginInit();
  429. this.ultraGroupBox1.SuspendLayout();
  430. ((System.ComponentModel.ISupportInitialize)(this.comboBox4)).BeginInit();
  431. ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker4)).BeginInit();
  432. ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker3)).BeginInit();
  433. ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).BeginInit();
  434. this.ultraExpandableGroupBox1.SuspendLayout();
  435. this.ultraExpandableGroupBoxPanel1.SuspendLayout();
  436. this.panel1.SuspendLayout();
  437. ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker5)).BeginInit();
  438. ((System.ComponentModel.ISupportInitialize)(this.comboBox6)).BeginInit();
  439. ((System.ComponentModel.ISupportInitialize)(this.comboBox3)).BeginInit();
  440. ((System.ComponentModel.ISupportInitialize)(this.comboBox5)).BeginInit();
  441. ((System.ComponentModel.ISupportInitialize)(this.comboBox2)).BeginInit();
  442. this.panel3.SuspendLayout();
  443. this.panel2.SuspendLayout();
  444. this.panel5.SuspendLayout();
  445. this.groupBox1.SuspendLayout();
  446. ((System.ComponentModel.ISupportInitialize)(this.ultraGrid2)).BeginInit();
  447. this.panel4.SuspendLayout();
  448. this.groupBox2.SuspendLayout();
  449. ((System.ComponentModel.ISupportInitialize)(this.ultraGrid3)).BeginInit();
  450. ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox2)).BeginInit();
  451. this.ultraGroupBox2.SuspendLayout();
  452. ((System.ComponentModel.ISupportInitialize)(this.dtpCutTime)).BeginInit();
  453. ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox3)).BeginInit();
  454. this.ultraGroupBox3.SuspendLayout();
  455. this.SuspendLayout();
  456. //
  457. // dataSet1
  458. //
  459. this.dataSet1.DataSetName = "NewDataSet";
  460. this.dataSet1.Locale = new System.Globalization.CultureInfo("zh-CN");
  461. this.dataSet1.Tables.AddRange(new System.Data.DataTable[] {
  462. this.dataTable1});
  463. //
  464. // dataTable1
  465. //
  466. this.dataTable1.Columns.AddRange(new System.Data.DataColumn[] {
  467. this.dataColumn1,
  468. this.dataColumn2,
  469. this.dataColumn3,
  470. this.dataColumn4,
  471. this.dataColumn5,
  472. this.dataColumn6,
  473. this.dataColumn7,
  474. this.dataColumn8,
  475. this.dataColumn9,
  476. this.dataColumn10,
  477. this.dataColumn11,
  478. this.dataColumn12,
  479. this.dataColumn13,
  480. this.dataColumn14,
  481. this.dataColumn15,
  482. this.dataColumn16,
  483. this.dataColumn17});
  484. this.dataTable1.TableName = "Table1";
  485. //
  486. // dataColumn1
  487. //
  488. this.dataColumn1.ColumnName = "HEATNO";
  489. //
  490. // dataColumn2
  491. //
  492. this.dataColumn2.ColumnName = "CCMSTOVENO";
  493. //
  494. // dataColumn3
  495. //
  496. this.dataColumn3.ColumnName = "CCMID";
  497. //
  498. // dataColumn4
  499. //
  500. this.dataColumn4.ColumnName = "FLOWNO";
  501. //
  502. // dataColumn5
  503. //
  504. this.dataColumn5.ColumnName = "CUTSEQNO";
  505. //
  506. // dataColumn6
  507. //
  508. this.dataColumn6.ColumnName = "MOULDNO";
  509. //
  510. // dataColumn7
  511. //
  512. this.dataColumn7.ColumnName = "HEATSEQ";
  513. //
  514. // dataColumn8
  515. //
  516. this.dataColumn8.ColumnName = "HEATCNT";
  517. //
  518. // dataColumn9
  519. //
  520. this.dataColumn9.ColumnName = "LENGTH";
  521. //
  522. // dataColumn10
  523. //
  524. this.dataColumn10.ColumnName = "WIDTH";
  525. //
  526. // dataColumn11
  527. //
  528. this.dataColumn11.ColumnName = "THICKNESS";
  529. this.dataColumn11.DataType = typeof(decimal);
  530. //
  531. // dataColumn12
  532. //
  533. this.dataColumn12.ColumnName = "WEIGHT";
  534. //
  535. // dataColumn13
  536. //
  537. this.dataColumn13.ColumnName = "SPECRULE";
  538. //
  539. // dataColumn14
  540. //
  541. this.dataColumn14.ColumnName = "CUTTIME";
  542. //
  543. // dataColumn15
  544. //
  545. this.dataColumn15.ColumnName = "SHIFTCODE";
  546. //
  547. // dataColumn16
  548. //
  549. this.dataColumn16.ColumnName = "LASTBILLETFLAG";
  550. //
  551. // dataColumn17
  552. //
  553. this.dataColumn17.ColumnName = "FLAG";
  554. //
  555. // ultraGrid1
  556. //
  557. this.ultraGrid1.DataSource = this.dataTable1;
  558. appearance1.BackColor = System.Drawing.SystemColors.Window;
  559. appearance1.BorderColor = System.Drawing.SystemColors.InactiveCaption;
  560. appearance1.FontData.SizeInPoints = 10F;
  561. this.ultraGrid1.DisplayLayout.Appearance = appearance1;
  562. ultraGridColumn1.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  563. appearance3.TextHAlignAsString = "Center";
  564. appearance3.TextVAlignAsString = "Middle";
  565. ultraGridColumn1.Header.Appearance = appearance3;
  566. ultraGridColumn1.Header.Caption = "炉号";
  567. ultraGridColumn1.Header.VisiblePosition = 0;
  568. ultraGridColumn1.RowLayoutColumnInfo.OriginX = 0;
  569. ultraGridColumn1.RowLayoutColumnInfo.OriginY = 0;
  570. ultraGridColumn1.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(76, 0);
  571. ultraGridColumn1.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
  572. ultraGridColumn1.RowLayoutColumnInfo.SpanX = 2;
  573. ultraGridColumn1.RowLayoutColumnInfo.SpanY = 2;
  574. ultraGridColumn2.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  575. ultraGridColumn2.Header.Caption = "连铸炉号";
  576. ultraGridColumn2.Header.VisiblePosition = 1;
  577. ultraGridColumn2.Hidden = true;
  578. ultraGridColumn3.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  579. appearance4.TextHAlignAsString = "Center";
  580. appearance4.TextVAlignAsString = "Middle";
  581. ultraGridColumn3.Header.Appearance = appearance4;
  582. ultraGridColumn3.Header.Caption = "铸机号";
  583. ultraGridColumn3.Header.VisiblePosition = 2;
  584. ultraGridColumn3.RowLayoutColumnInfo.OriginX = 10;
  585. ultraGridColumn3.RowLayoutColumnInfo.OriginY = 0;
  586. ultraGridColumn3.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(60, 0);
  587. ultraGridColumn3.RowLayoutColumnInfo.SpanX = 2;
  588. ultraGridColumn3.RowLayoutColumnInfo.SpanY = 2;
  589. ultraGridColumn4.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  590. appearance32.TextHAlignAsString = "Center";
  591. ultraGridColumn4.Header.Appearance = appearance32;
  592. ultraGridColumn4.Header.Caption = "流号";
  593. ultraGridColumn4.Header.VisiblePosition = 3;
  594. ultraGridColumn4.RowLayoutColumnInfo.OriginX = 6;
  595. ultraGridColumn4.RowLayoutColumnInfo.OriginY = 0;
  596. ultraGridColumn4.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(45, 0);
  597. ultraGridColumn4.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
  598. ultraGridColumn4.RowLayoutColumnInfo.SpanX = 2;
  599. ultraGridColumn4.RowLayoutColumnInfo.SpanY = 2;
  600. ultraGridColumn4.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDown;
  601. ultraGridColumn4.Width = 60;
  602. ultraGridColumn5.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  603. appearance33.TextHAlignAsString = "Center";
  604. ultraGridColumn5.Header.Appearance = appearance33;
  605. ultraGridColumn5.Header.Caption = "切割序号";
  606. ultraGridColumn5.Header.VisiblePosition = 4;
  607. ultraGridColumn5.Hidden = true;
  608. ultraGridColumn5.RowLayoutColumnInfo.OriginX = 8;
  609. ultraGridColumn5.RowLayoutColumnInfo.OriginY = 0;
  610. ultraGridColumn5.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(74, 0);
  611. ultraGridColumn5.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
  612. ultraGridColumn5.RowLayoutColumnInfo.SpanX = 2;
  613. ultraGridColumn5.RowLayoutColumnInfo.SpanY = 2;
  614. ultraGridColumn5.Width = 70;
  615. ultraGridColumn6.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  616. appearance34.TextHAlignAsString = "Center";
  617. appearance34.TextVAlignAsString = "Middle";
  618. ultraGridColumn6.Header.Appearance = appearance34;
  619. ultraGridColumn6.Header.Caption = "浇次号";
  620. ultraGridColumn6.Header.VisiblePosition = 5;
  621. ultraGridColumn6.RowLayoutColumnInfo.OriginX = 28;
  622. ultraGridColumn6.RowLayoutColumnInfo.OriginY = 0;
  623. ultraGridColumn6.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(67, 0);
  624. ultraGridColumn6.RowLayoutColumnInfo.SpanX = 2;
  625. ultraGridColumn6.RowLayoutColumnInfo.SpanY = 2;
  626. ultraGridColumn7.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  627. appearance35.TextHAlignAsString = "Center";
  628. appearance35.TextVAlignAsString = "Middle";
  629. ultraGridColumn7.Header.Appearance = appearance35;
  630. ultraGridColumn7.Header.Caption = " 浇次内炉序";
  631. ultraGridColumn7.Header.VisiblePosition = 6;
  632. ultraGridColumn7.RowLayoutColumnInfo.OriginX = 30;
  633. ultraGridColumn7.RowLayoutColumnInfo.OriginY = 0;
  634. ultraGridColumn7.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(52, 0);
  635. ultraGridColumn7.RowLayoutColumnInfo.SpanX = 2;
  636. ultraGridColumn7.RowLayoutColumnInfo.SpanY = 2;
  637. ultraGridColumn8.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  638. appearance36.TextHAlignAsString = "Center";
  639. appearance36.TextVAlignAsString = "Middle";
  640. ultraGridColumn8.Header.Appearance = appearance36;
  641. ultraGridColumn8.Header.Caption = "浇次内炉数";
  642. ultraGridColumn8.Header.VisiblePosition = 7;
  643. ultraGridColumn8.Hidden = true;
  644. ultraGridColumn8.RowLayoutColumnInfo.OriginX = 32;
  645. ultraGridColumn8.RowLayoutColumnInfo.OriginY = 0;
  646. ultraGridColumn8.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(62, 0);
  647. ultraGridColumn8.RowLayoutColumnInfo.SpanX = 2;
  648. ultraGridColumn8.RowLayoutColumnInfo.SpanY = 2;
  649. ultraGridColumn9.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  650. appearance37.TextHAlignAsString = "Center";
  651. ultraGridColumn9.Header.Appearance = appearance37;
  652. ultraGridColumn9.Header.Caption = "长度";
  653. ultraGridColumn9.Header.VisiblePosition = 8;
  654. ultraGridColumn9.RowLayoutColumnInfo.OriginX = 12;
  655. ultraGridColumn9.RowLayoutColumnInfo.OriginY = 1;
  656. ultraGridColumn9.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(53, 0);
  657. ultraGridColumn9.RowLayoutColumnInfo.SpanX = 2;
  658. ultraGridColumn9.RowLayoutColumnInfo.SpanY = 2;
  659. ultraGridColumn9.Width = 70;
  660. ultraGridColumn10.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  661. appearance38.TextHAlignAsString = "Center";
  662. ultraGridColumn10.Header.Appearance = appearance38;
  663. ultraGridColumn10.Header.Caption = "宽度";
  664. ultraGridColumn10.Header.VisiblePosition = 9;
  665. ultraGridColumn10.RowLayoutColumnInfo.OriginX = 14;
  666. ultraGridColumn10.RowLayoutColumnInfo.OriginY = 1;
  667. ultraGridColumn10.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(48, 0);
  668. ultraGridColumn10.RowLayoutColumnInfo.SpanX = 2;
  669. ultraGridColumn10.RowLayoutColumnInfo.SpanY = 2;
  670. ultraGridColumn10.Width = 70;
  671. ultraGridColumn11.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  672. appearance39.TextHAlignAsString = "Center";
  673. appearance39.TextVAlignAsString = "Middle";
  674. ultraGridColumn11.Header.Appearance = appearance39;
  675. ultraGridColumn11.Header.Caption = "厚度";
  676. ultraGridColumn11.Header.VisiblePosition = 10;
  677. ultraGridColumn11.RowLayoutColumnInfo.OriginX = 16;
  678. ultraGridColumn11.RowLayoutColumnInfo.OriginY = 1;
  679. ultraGridColumn11.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(48, 0);
  680. ultraGridColumn11.RowLayoutColumnInfo.SpanX = 2;
  681. ultraGridColumn11.RowLayoutColumnInfo.SpanY = 2;
  682. ultraGridColumn12.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  683. appearance40.TextHAlignAsString = "Center";
  684. appearance40.TextVAlignAsString = "Middle";
  685. ultraGridColumn12.Header.Appearance = appearance40;
  686. ultraGridColumn12.Header.Caption = "重量";
  687. ultraGridColumn12.Header.VisiblePosition = 11;
  688. ultraGridColumn12.RowLayoutColumnInfo.OriginX = 18;
  689. ultraGridColumn12.RowLayoutColumnInfo.OriginY = 0;
  690. ultraGridColumn12.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(52, 0);
  691. ultraGridColumn12.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
  692. ultraGridColumn12.RowLayoutColumnInfo.SpanX = 2;
  693. ultraGridColumn12.RowLayoutColumnInfo.SpanY = 2;
  694. ultraGridColumn12.Width = 60;
  695. ultraGridColumn13.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  696. appearance41.TextHAlignAsString = "Center";
  697. ultraGridColumn13.Header.Appearance = appearance41;
  698. ultraGridColumn13.Header.Caption = "定尺";
  699. ultraGridColumn13.Header.VisiblePosition = 12;
  700. ultraGridColumn13.Hidden = true;
  701. ultraGridColumn13.RowLayoutColumnInfo.OriginX = 28;
  702. ultraGridColumn13.RowLayoutColumnInfo.OriginY = 0;
  703. ultraGridColumn13.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
  704. ultraGridColumn13.RowLayoutColumnInfo.SpanX = 2;
  705. ultraGridColumn13.RowLayoutColumnInfo.SpanY = 2;
  706. ultraGridColumn13.Width = 60;
  707. ultraGridColumn14.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  708. ultraGridColumn14.Format = "yyyy-MM-dd HH:mm:ss";
  709. appearance42.TextHAlignAsString = "Center";
  710. ultraGridColumn14.Header.Appearance = appearance42;
  711. ultraGridColumn14.Header.Caption = "切割时间";
  712. ultraGridColumn14.Header.VisiblePosition = 13;
  713. ultraGridColumn14.RowLayoutColumnInfo.OriginX = 8;
  714. ultraGridColumn14.RowLayoutColumnInfo.OriginY = 0;
  715. ultraGridColumn14.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(144, 0);
  716. ultraGridColumn14.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
  717. ultraGridColumn14.RowLayoutColumnInfo.SpanX = 2;
  718. ultraGridColumn14.RowLayoutColumnInfo.SpanY = 2;
  719. ultraGridColumn14.Width = 150;
  720. ultraGridColumn15.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  721. appearance43.TextHAlignAsString = "Center";
  722. appearance43.TextVAlignAsString = "Middle";
  723. ultraGridColumn15.Header.Appearance = appearance43;
  724. ultraGridColumn15.Header.Caption = "班组";
  725. ultraGridColumn15.Header.VisiblePosition = 14;
  726. ultraGridColumn15.RowLayoutColumnInfo.OriginX = 32;
  727. ultraGridColumn15.RowLayoutColumnInfo.OriginY = 0;
  728. ultraGridColumn15.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(69, 0);
  729. ultraGridColumn15.RowLayoutColumnInfo.SpanX = 2;
  730. ultraGridColumn15.RowLayoutColumnInfo.SpanY = 2;
  731. ultraGridColumn16.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  732. appearance44.TextHAlignAsString = "Center";
  733. appearance44.TextVAlignAsString = "Middle";
  734. ultraGridColumn16.Header.Appearance = appearance44;
  735. ultraGridColumn16.Header.Caption = "末块";
  736. ultraGridColumn16.Header.VisiblePosition = 15;
  737. ultraGridColumn16.RowLayoutColumnInfo.OriginX = 20;
  738. ultraGridColumn16.RowLayoutColumnInfo.OriginY = 0;
  739. ultraGridColumn16.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(44, 0);
  740. ultraGridColumn16.RowLayoutColumnInfo.SpanX = 2;
  741. ultraGridColumn16.RowLayoutColumnInfo.SpanY = 2;
  742. ultraGridColumn17.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  743. ultraGridColumn17.Header.VisiblePosition = 16;
  744. ultraGridColumn17.Hidden = true;
  745. ultraGridColumn18.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  746. appearance45.TextHAlignAsString = "Center";
  747. ultraGridColumn18.Header.Appearance = appearance45;
  748. ultraGridColumn18.Header.Caption = "切割尺寸";
  749. ultraGridColumn18.Header.VisiblePosition = 17;
  750. ultraGridColumn18.RowLayoutColumnInfo.LabelPosition = Infragistics.Win.UltraWinGrid.LabelPosition.LabelOnly;
  751. ultraGridColumn18.RowLayoutColumnInfo.OriginX = 12;
  752. ultraGridColumn18.RowLayoutColumnInfo.OriginY = 0;
  753. ultraGridColumn18.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 23);
  754. ultraGridColumn18.RowLayoutColumnInfo.SpanX = 6;
  755. ultraGridColumn18.RowLayoutColumnInfo.SpanY = 1;
  756. ultraGridColumn19.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  757. ultraGridColumn19.Header.Caption = "人工指定";
  758. ultraGridColumn19.Header.VisiblePosition = 18;
  759. ultraGridColumn19.Hidden = true;
  760. ultraGridColumn19.RowLayoutColumnInfo.OriginX = 20;
  761. ultraGridColumn19.RowLayoutColumnInfo.OriginY = 0;
  762. ultraGridColumn19.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(64, 0);
  763. ultraGridColumn19.RowLayoutColumnInfo.SpanX = 2;
  764. ultraGridColumn19.RowLayoutColumnInfo.SpanY = 2;
  765. ultraGridColumn20.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.None;
  766. ultraGridColumn20.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  767. appearance46.TextHAlignAsString = "Center";
  768. ultraGridColumn20.Header.Appearance = appearance46;
  769. ultraGridColumn20.Header.Caption = "坯料号";
  770. ultraGridColumn20.Header.VisiblePosition = 19;
  771. ultraGridColumn20.RowLayoutColumnInfo.OriginX = 4;
  772. ultraGridColumn20.RowLayoutColumnInfo.OriginY = 0;
  773. ultraGridColumn20.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(86, 0);
  774. ultraGridColumn20.RowLayoutColumnInfo.SpanX = 2;
  775. ultraGridColumn20.RowLayoutColumnInfo.SpanY = 2;
  776. ultraGridColumn21.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  777. ultraGridColumn21.CellDisplayStyle = Infragistics.Win.UltraWinGrid.CellDisplayStyle.PlainText;
  778. appearance47.TextHAlignAsString = "Center";
  779. ultraGridColumn21.Header.Appearance = appearance47;
  780. ultraGridColumn21.Header.Caption = "块号";
  781. ultraGridColumn21.Header.VisiblePosition = 20;
  782. ultraGridColumn21.Hidden = true;
  783. ultraGridColumn21.RowLayoutColumnInfo.OriginX = 20;
  784. ultraGridColumn21.RowLayoutColumnInfo.OriginY = 0;
  785. ultraGridColumn21.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(39, 0);
  786. ultraGridColumn21.RowLayoutColumnInfo.SpanX = 2;
  787. ultraGridColumn21.RowLayoutColumnInfo.SpanY = 2;
  788. ultraGridColumn21.TabStop = false;
  789. ultraGridColumn22.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  790. ultraGridColumn22.Header.Caption = "坯料编码";
  791. ultraGridColumn22.Header.VisiblePosition = 21;
  792. ultraGridColumn22.Hidden = true;
  793. ultraGridColumn23.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  794. ultraGridColumn23.Header.Caption = "订单行号";
  795. ultraGridColumn23.Header.VisiblePosition = 22;
  796. ultraGridColumn23.RowLayoutColumnInfo.OriginX = 22;
  797. ultraGridColumn23.RowLayoutColumnInfo.OriginY = 0;
  798. ultraGridColumn23.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(104, 0);
  799. ultraGridColumn23.RowLayoutColumnInfo.SpanX = 2;
  800. ultraGridColumn23.RowLayoutColumnInfo.SpanY = 2;
  801. ultraGridColumn24.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  802. ultraGridColumn24.Header.Caption = "生产订单号";
  803. ultraGridColumn24.Header.VisiblePosition = 23;
  804. ultraGridColumn24.RowLayoutColumnInfo.OriginX = 24;
  805. ultraGridColumn24.RowLayoutColumnInfo.OriginY = 0;
  806. ultraGridColumn24.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(116, 0);
  807. ultraGridColumn24.RowLayoutColumnInfo.SpanX = 2;
  808. ultraGridColumn24.RowLayoutColumnInfo.SpanY = 2;
  809. ultraGridColumn25.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  810. ultraGridColumn25.Header.Caption = "是否余材";
  811. ultraGridColumn25.Header.VisiblePosition = 24;
  812. ultraGridColumn25.RowLayoutColumnInfo.OriginX = 26;
  813. ultraGridColumn25.RowLayoutColumnInfo.OriginY = 0;
  814. ultraGridColumn25.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(38, 0);
  815. ultraGridColumn25.RowLayoutColumnInfo.SpanX = 2;
  816. ultraGridColumn25.RowLayoutColumnInfo.SpanY = 2;
  817. ultraGridColumn26.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  818. appearance48.TextHAlignAsString = "Center";
  819. ultraGridColumn26.Header.Appearance = appearance48;
  820. ultraGridColumn26.Header.Caption = "牌号";
  821. ultraGridColumn26.Header.VisiblePosition = 25;
  822. ultraGridColumn26.RowLayoutColumnInfo.OriginX = 2;
  823. ultraGridColumn26.RowLayoutColumnInfo.OriginY = 0;
  824. ultraGridColumn26.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(66, 0);
  825. ultraGridColumn26.RowLayoutColumnInfo.SpanX = 2;
  826. ultraGridColumn26.RowLayoutColumnInfo.SpanY = 2;
  827. ultraGridColumn26.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDown;
  828. ultraGridBand1.Columns.AddRange(new object[] {
  829. ultraGridColumn1,
  830. ultraGridColumn2,
  831. ultraGridColumn3,
  832. ultraGridColumn4,
  833. ultraGridColumn5,
  834. ultraGridColumn6,
  835. ultraGridColumn7,
  836. ultraGridColumn8,
  837. ultraGridColumn9,
  838. ultraGridColumn10,
  839. ultraGridColumn11,
  840. ultraGridColumn12,
  841. ultraGridColumn13,
  842. ultraGridColumn14,
  843. ultraGridColumn15,
  844. ultraGridColumn16,
  845. ultraGridColumn17,
  846. ultraGridColumn18,
  847. ultraGridColumn19,
  848. ultraGridColumn20,
  849. ultraGridColumn21,
  850. ultraGridColumn22,
  851. ultraGridColumn23,
  852. ultraGridColumn24,
  853. ultraGridColumn25,
  854. ultraGridColumn26});
  855. ultraGridBand1.RowLayoutStyle = Infragistics.Win.UltraWinGrid.RowLayoutStyle.ColumnLayout;
  856. this.ultraGrid1.DisplayLayout.BandsSerializer.Add(ultraGridBand1);
  857. this.ultraGrid1.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
  858. appearance21.TextHAlignAsString = "Left";
  859. this.ultraGrid1.DisplayLayout.CaptionAppearance = appearance21;
  860. appearance22.BackColor = System.Drawing.SystemColors.ActiveBorder;
  861. appearance22.BackColor2 = System.Drawing.SystemColors.ControlDark;
  862. appearance22.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
  863. appearance22.BorderColor = System.Drawing.SystemColors.Window;
  864. this.ultraGrid1.DisplayLayout.GroupByBox.Appearance = appearance22;
  865. appearance23.ForeColor = System.Drawing.SystemColors.GrayText;
  866. this.ultraGrid1.DisplayLayout.GroupByBox.BandLabelAppearance = appearance23;
  867. this.ultraGrid1.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
  868. this.ultraGrid1.DisplayLayout.GroupByBox.Hidden = true;
  869. appearance24.BackColor = System.Drawing.SystemColors.ControlLightLight;
  870. appearance24.BackColor2 = System.Drawing.SystemColors.Control;
  871. appearance24.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
  872. appearance24.ForeColor = System.Drawing.SystemColors.GrayText;
  873. this.ultraGrid1.DisplayLayout.GroupByBox.PromptAppearance = appearance24;
  874. this.ultraGrid1.DisplayLayout.MaxColScrollRegions = 1;
  875. this.ultraGrid1.DisplayLayout.MaxRowScrollRegions = 1;
  876. appearance25.BackColor = System.Drawing.SystemColors.Info;
  877. appearance25.ForeColor = System.Drawing.SystemColors.ControlText;
  878. this.ultraGrid1.DisplayLayout.Override.ActiveCellAppearance = appearance25;
  879. this.ultraGrid1.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.RaisedSoft;
  880. this.ultraGrid1.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.None;
  881. appearance26.BackColor = System.Drawing.SystemColors.Window;
  882. this.ultraGrid1.DisplayLayout.Override.CardAreaAppearance = appearance26;
  883. appearance27.BorderColor = System.Drawing.Color.Silver;
  884. appearance27.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
  885. this.ultraGrid1.DisplayLayout.Override.CellAppearance = appearance27;
  886. this.ultraGrid1.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
  887. this.ultraGrid1.DisplayLayout.Override.CellPadding = 0;
  888. this.ultraGrid1.DisplayLayout.Override.DefaultRowHeight = 21;
  889. appearance28.BackColor = System.Drawing.SystemColors.Control;
  890. appearance28.BackColor2 = System.Drawing.SystemColors.ControlDark;
  891. appearance28.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
  892. appearance28.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
  893. appearance28.BorderColor = System.Drawing.SystemColors.Window;
  894. this.ultraGrid1.DisplayLayout.Override.GroupByRowAppearance = appearance28;
  895. appearance29.TextHAlignAsString = "Left";
  896. this.ultraGrid1.DisplayLayout.Override.HeaderAppearance = appearance29;
  897. this.ultraGrid1.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.Select;
  898. this.ultraGrid1.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
  899. appearance30.BackColor = System.Drawing.SystemColors.Window;
  900. appearance30.BorderColor = System.Drawing.Color.Silver;
  901. this.ultraGrid1.DisplayLayout.Override.RowAppearance = appearance30;
  902. this.ultraGrid1.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex;
  903. this.ultraGrid1.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
  904. this.ultraGrid1.DisplayLayout.Override.RowSelectorWidth = 45;
  905. appearance31.BackColor = System.Drawing.SystemColors.ControlLight;
  906. this.ultraGrid1.DisplayLayout.Override.TemplateAddRowAppearance = appearance31;
  907. this.ultraGrid1.DisplayLayout.Override.WrapHeaderText = Infragistics.Win.DefaultableBoolean.True;
  908. this.ultraGrid1.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
  909. this.ultraGrid1.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
  910. this.ultraGrid1.DisplayLayout.UseFixedHeaders = true;
  911. valueList1.Key = "SHIFTCODE";
  912. valueListItem1.DataValue = "11";
  913. valueListItem1.DisplayText = "白班甲组";
  914. valueListItem2.DataValue = "12";
  915. valueListItem2.DisplayText = "白班乙组";
  916. valueListItem3.DataValue = "13";
  917. valueListItem3.DisplayText = "白班丙组";
  918. valueListItem4.DataValue = "14";
  919. valueListItem4.DisplayText = "白班丁组";
  920. valueListItem5.DataValue = "21";
  921. valueListItem5.DisplayText = "中班甲组";
  922. valueListItem6.DataValue = "22";
  923. valueListItem6.DisplayText = "中班乙组";
  924. valueListItem7.DataValue = "23";
  925. valueListItem7.DisplayText = "中班丙组";
  926. valueListItem8.DataValue = "24";
  927. valueListItem8.DisplayText = "中班丁组";
  928. valueListItem9.DataValue = "31";
  929. valueListItem9.DisplayText = "夜班甲组";
  930. valueListItem10.DataValue = "32";
  931. valueListItem10.DisplayText = "夜班乙组";
  932. valueListItem11.DataValue = "33";
  933. valueListItem11.DisplayText = "夜班丙组";
  934. valueListItem28.DataValue = "34";
  935. valueListItem28.DisplayText = "夜班丁组";
  936. valueList1.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] {
  937. valueListItem1,
  938. valueListItem2,
  939. valueListItem3,
  940. valueListItem4,
  941. valueListItem5,
  942. valueListItem6,
  943. valueListItem7,
  944. valueListItem8,
  945. valueListItem9,
  946. valueListItem10,
  947. valueListItem11,
  948. valueListItem28});
  949. valueList2.Key = "CCMID";
  950. valueListItem29.DataValue = "0";
  951. valueListItem29.DisplayText = "0#铸机";
  952. valueListItem30.DataValue = "1";
  953. valueListItem30.DisplayText = "1#铸机";
  954. valueListItem31.DataValue = "2";
  955. valueListItem31.DisplayText = "2#铸机";
  956. valueListItem16.DataValue = "3";
  957. valueListItem16.DisplayText = "3#铸机";
  958. valueList2.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] {
  959. valueListItem29,
  960. valueListItem30,
  961. valueListItem31,
  962. valueListItem16});
  963. valueList3.Key = "flow";
  964. valueListItem17.DataValue = "1";
  965. valueListItem17.DisplayText = "1流";
  966. valueListItem18.DataValue = "2";
  967. valueListItem18.DisplayText = "2流";
  968. valueListItem19.DataValue = "3";
  969. valueListItem19.DisplayText = "3流";
  970. valueListItem20.DataValue = "4";
  971. valueListItem20.DisplayText = "4流";
  972. valueListItem21.DataValue = "5";
  973. valueListItem21.DisplayText = "5流";
  974. valueList3.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] {
  975. valueListItem17,
  976. valueListItem18,
  977. valueListItem19,
  978. valueListItem20,
  979. valueListItem21});
  980. valueList4.Key = "LASTBILLETFLAG";
  981. valueListItem22.DataValue = "N";
  982. valueListItem22.DisplayText = "否";
  983. valueListItem23.DataValue = "Y";
  984. valueListItem23.DisplayText = "是";
  985. valueList4.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] {
  986. valueListItem22,
  987. valueListItem23});
  988. valueList5.Key = "resflag";
  989. valueListItem24.DataValue = "0";
  990. valueListItem24.DisplayText = "是";
  991. valueListItem25.DataValue = "1";
  992. valueListItem25.DisplayText = "否";
  993. valueList5.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] {
  994. valueListItem24,
  995. valueListItem25});
  996. valueList6.Key = "SURPLUSFLAG";
  997. valueListItem26.DataValue = "0";
  998. valueListItem26.DisplayText = "否";
  999. valueListItem27.DataValue = "1";
  1000. valueListItem27.DisplayText = "是";
  1001. valueList6.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] {
  1002. valueListItem26,
  1003. valueListItem27});
  1004. this.ultraGrid1.DisplayLayout.ValueLists.AddRange(new Infragistics.Win.ValueList[] {
  1005. valueList1,
  1006. valueList2,
  1007. valueList3,
  1008. valueList4,
  1009. valueList5,
  1010. valueList6});
  1011. this.ultraGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
  1012. this.ultraGrid1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1013. this.ultraGrid1.Location = new System.Drawing.Point(0, 50);
  1014. this.ultraGrid1.Name = "ultraGrid1";
  1015. this.ultraGrid1.Size = new System.Drawing.Size(708, 369);
  1016. this.ultraGrid1.TabIndex = 34;
  1017. this.ultraGrid1.BeforeRowFixedStateChanged += new Infragistics.Win.UltraWinGrid.BeforeRowFixedStateChangedEventHandler(this.ultraGrid1_BeforeRowFixedStateChanged);
  1018. this.ultraGrid1.BeforeRowUpdate += new Infragistics.Win.UltraWinGrid.CancelableRowEventHandler(this.ultraGrid1_BeforeRowUpdate);
  1019. this.ultraGrid1.AfterRowActivate += new System.EventHandler(this.ultraGrid1_AfterRowActivate);
  1020. //
  1021. // ultraGroupBox1
  1022. //
  1023. this.ultraGroupBox1.Controls.Add(this.comboBox4);
  1024. this.ultraGroupBox1.Controls.Add(this.dateTimePicker4);
  1025. this.ultraGroupBox1.Controls.Add(this.dateTimePicker3);
  1026. this.ultraGroupBox1.Controls.Add(this.label26);
  1027. this.ultraGroupBox1.Controls.Add(this.richTextBox1);
  1028. this.ultraGroupBox1.Controls.Add(this.txt_heatidnoy);
  1029. this.ultraGroupBox1.Controls.Add(this.textBox1);
  1030. this.ultraGroupBox1.Controls.Add(this.checkBox3);
  1031. this.ultraGroupBox1.Controls.Add(this.checkBox2);
  1032. this.ultraGroupBox1.Controls.Add(this.label9);
  1033. this.ultraGroupBox1.Controls.Add(this.checkBox1);
  1034. this.ultraGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
  1035. this.ultraGroupBox1.Location = new System.Drawing.Point(0, 0);
  1036. this.ultraGroupBox1.Name = "ultraGroupBox1";
  1037. this.ultraGroupBox1.Size = new System.Drawing.Size(708, 50);
  1038. this.ultraGroupBox1.TabIndex = 32;
  1039. this.ultraGroupBox1.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2000;
  1040. //
  1041. // comboBox4
  1042. //
  1043. this.comboBox4.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append;
  1044. this.comboBox4.DisplayMember = "id";
  1045. this.comboBox4.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;
  1046. this.comboBox4.Font = new System.Drawing.Font("宋体", 9.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1047. this.comboBox4.Location = new System.Drawing.Point(613, 14);
  1048. this.comboBox4.Name = "comboBox4";
  1049. this.comboBox4.Size = new System.Drawing.Size(64, 22);
  1050. this.comboBox4.TabIndex = 284;
  1051. //
  1052. // dateTimePicker4
  1053. //
  1054. this.dateTimePicker4.DateTime = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
  1055. this.dateTimePicker4.Enabled = false;
  1056. this.dateTimePicker4.FormatProvider = new System.Globalization.CultureInfo("en-US");
  1057. this.dateTimePicker4.FormatString = "yyyy-MM-dd HH:mm";
  1058. this.dateTimePicker4.Location = new System.Drawing.Point(267, 15);
  1059. this.dateTimePicker4.MaskInput = "yyyy-mm-dd hh:mm";
  1060. this.dateTimePicker4.Name = "dateTimePicker4";
  1061. this.dateTimePicker4.Size = new System.Drawing.Size(124, 21);
  1062. this.dateTimePicker4.TabIndex = 283;
  1063. this.dateTimePicker4.Value = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
  1064. //
  1065. // dateTimePicker3
  1066. //
  1067. this.dateTimePicker3.DateTime = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
  1068. this.dateTimePicker3.Enabled = false;
  1069. this.dateTimePicker3.FormatProvider = new System.Globalization.CultureInfo("en-US");
  1070. this.dateTimePicker3.FormatString = "yyyy-MM-dd HH:mm";
  1071. this.dateTimePicker3.Location = new System.Drawing.Point(106, 15);
  1072. this.dateTimePicker3.MaskInput = "yyyy-mm-dd hh:mm";
  1073. this.dateTimePicker3.Name = "dateTimePicker3";
  1074. this.dateTimePicker3.Size = new System.Drawing.Size(124, 21);
  1075. this.dateTimePicker3.TabIndex = 282;
  1076. this.dateTimePicker3.Value = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
  1077. //
  1078. // label26
  1079. //
  1080. this.label26.AutoSize = true;
  1081. this.label26.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1082. this.label26.Location = new System.Drawing.Point(202, 33);
  1083. this.label26.Name = "label26";
  1084. this.label26.Size = new System.Drawing.Size(65, 12);
  1085. this.label26.TabIndex = 110;
  1086. this.label26.Text = "未置是炉号";
  1087. this.label26.Visible = false;
  1088. //
  1089. // richTextBox1
  1090. //
  1091. this.richTextBox1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1092. this.richTextBox1.Location = new System.Drawing.Point(8, 31);
  1093. this.richTextBox1.Name = "richTextBox1";
  1094. this.richTextBox1.Size = new System.Drawing.Size(197, 18);
  1095. this.richTextBox1.TabIndex = 109;
  1096. this.richTextBox1.Visible = false;
  1097. //
  1098. // txt_heatidnoy
  1099. //
  1100. this.txt_heatidnoy.Location = new System.Drawing.Point(268, 30);
  1101. this.txt_heatidnoy.Name = "txt_heatidnoy";
  1102. this.txt_heatidnoy.ReadOnly = true;
  1103. this.txt_heatidnoy.Size = new System.Drawing.Size(404, 21);
  1104. this.txt_heatidnoy.TabIndex = 24;
  1105. this.txt_heatidnoy.Visible = false;
  1106. //
  1107. // textBox1
  1108. //
  1109. this.textBox1.Enabled = false;
  1110. this.textBox1.Location = new System.Drawing.Point(465, 15);
  1111. this.textBox1.Name = "textBox1";
  1112. this.textBox1.Size = new System.Drawing.Size(80, 21);
  1113. this.textBox1.TabIndex = 22;
  1114. //
  1115. // checkBox3
  1116. //
  1117. this.checkBox3.Location = new System.Drawing.Point(552, 13);
  1118. this.checkBox3.Name = "checkBox3";
  1119. this.checkBox3.Size = new System.Drawing.Size(64, 24);
  1120. this.checkBox3.TabIndex = 17;
  1121. this.checkBox3.Text = "铸机号";
  1122. this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged);
  1123. //
  1124. // checkBox2
  1125. //
  1126. this.checkBox2.Location = new System.Drawing.Point(409, 13);
  1127. this.checkBox2.Name = "checkBox2";
  1128. this.checkBox2.Size = new System.Drawing.Size(72, 24);
  1129. this.checkBox2.TabIndex = 10;
  1130. this.checkBox2.Text = "熔炼号";
  1131. this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
  1132. //
  1133. // label9
  1134. //
  1135. this.label9.Location = new System.Drawing.Point(238, 17);
  1136. this.label9.Name = "label9";
  1137. this.label9.Size = new System.Drawing.Size(29, 17);
  1138. this.label9.TabIndex = 7;
  1139. this.label9.Text = "到:";
  1140. //
  1141. // checkBox1
  1142. //
  1143. this.checkBox1.Location = new System.Drawing.Point(8, 13);
  1144. this.checkBox1.Name = "checkBox1";
  1145. this.checkBox1.Size = new System.Drawing.Size(120, 24);
  1146. this.checkBox1.TabIndex = 4;
  1147. this.checkBox1.Text = "切割时间 从:";
  1148. this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
  1149. //
  1150. // ultraExpandableGroupBox1
  1151. //
  1152. this.ultraExpandableGroupBox1.Controls.Add(this.ultraExpandableGroupBoxPanel1);
  1153. this.ultraExpandableGroupBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
  1154. this.ultraExpandableGroupBox1.ExpandedSize = new System.Drawing.Size(708, 160);
  1155. this.ultraExpandableGroupBox1.Location = new System.Drawing.Point(0, 419);
  1156. this.ultraExpandableGroupBox1.Name = "ultraExpandableGroupBox1";
  1157. this.ultraExpandableGroupBox1.Size = new System.Drawing.Size(708, 160);
  1158. this.ultraExpandableGroupBox1.TabIndex = 36;
  1159. this.ultraExpandableGroupBox1.Text = "编辑";
  1160. this.ultraExpandableGroupBox1.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2000;
  1161. //
  1162. // ultraExpandableGroupBoxPanel1
  1163. //
  1164. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.panel1);
  1165. this.ultraExpandableGroupBoxPanel1.Controls.Add(this.panel3);
  1166. this.ultraExpandableGroupBoxPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
  1167. this.ultraExpandableGroupBoxPanel1.Location = new System.Drawing.Point(3, 19);
  1168. this.ultraExpandableGroupBoxPanel1.Name = "ultraExpandableGroupBoxPanel1";
  1169. this.ultraExpandableGroupBoxPanel1.Size = new System.Drawing.Size(702, 138);
  1170. this.ultraExpandableGroupBoxPanel1.TabIndex = 0;
  1171. //
  1172. // panel1
  1173. //
  1174. this.panel1.Controls.Add(this.dateTimePicker5);
  1175. this.panel1.Controls.Add(this.comboBox6);
  1176. this.panel1.Controls.Add(this.comboBox3);
  1177. this.panel1.Controls.Add(this.comboBox5);
  1178. this.panel1.Controls.Add(this.comboBox2);
  1179. this.panel1.Controls.Add(this.textBox8);
  1180. this.panel1.Controls.Add(this.textBox4);
  1181. this.panel1.Controls.Add(this.textBox15);
  1182. this.panel1.Controls.Add(this.textBox12);
  1183. this.panel1.Controls.Add(this.textBox13);
  1184. this.panel1.Controls.Add(this.textBox14);
  1185. this.panel1.Controls.Add(this.label4);
  1186. this.panel1.Controls.Add(this.label1);
  1187. this.panel1.Controls.Add(this.label2);
  1188. this.panel1.Controls.Add(this.label7);
  1189. this.panel1.Controls.Add(this.label19);
  1190. this.panel1.Controls.Add(this.label3);
  1191. this.panel1.Controls.Add(this.label18);
  1192. this.panel1.Controls.Add(this.textBox11);
  1193. this.panel1.Controls.Add(this.label10);
  1194. this.panel1.Controls.Add(this.label16);
  1195. this.panel1.Controls.Add(this.textBox10);
  1196. this.panel1.Controls.Add(this.label11);
  1197. this.panel1.Controls.Add(this.label14);
  1198. this.panel1.Controls.Add(this.label8);
  1199. this.panel1.Controls.Add(this.textBox9);
  1200. this.panel1.Controls.Add(this.label12);
  1201. this.panel1.Controls.Add(this.label13);
  1202. this.panel1.Controls.Add(this.textBox3);
  1203. this.panel1.Controls.Add(this.label15);
  1204. this.panel1.Controls.Add(this.label6);
  1205. this.panel1.Controls.Add(this.textBox2);
  1206. this.panel1.Controls.Add(this.textBox5);
  1207. this.panel1.Controls.Add(this.textBox7);
  1208. this.panel1.Controls.Add(this.textBox6);
  1209. this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
  1210. this.panel1.Location = new System.Drawing.Point(0, 0);
  1211. this.panel1.Name = "panel1";
  1212. this.panel1.Size = new System.Drawing.Size(449, 138);
  1213. this.panel1.TabIndex = 112;
  1214. //
  1215. // dateTimePicker5
  1216. //
  1217. this.dateTimePicker5.DateTime = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
  1218. this.dateTimePicker5.FormatProvider = new System.Globalization.CultureInfo("en-US");
  1219. this.dateTimePicker5.FormatString = "yyyy-MM-dd HH:mm:ss";
  1220. this.dateTimePicker5.Location = new System.Drawing.Point(79, 119);
  1221. this.dateTimePicker5.MaskInput = "yyyy-mm-dd hh:mm:ss";
  1222. this.dateTimePicker5.Name = "dateTimePicker5";
  1223. this.dateTimePicker5.Size = new System.Drawing.Size(212, 21);
  1224. this.dateTimePicker5.TabIndex = 282;
  1225. this.dateTimePicker5.Value = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
  1226. //
  1227. // comboBox6
  1228. //
  1229. this.comboBox6.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append;
  1230. this.comboBox6.DisplayMember = "id";
  1231. this.comboBox6.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;
  1232. this.comboBox6.Location = new System.Drawing.Point(379, 95);
  1233. this.comboBox6.Name = "comboBox6";
  1234. this.comboBox6.Size = new System.Drawing.Size(56, 21);
  1235. this.comboBox6.TabIndex = 114;
  1236. this.comboBox6.ValueMember = "id";
  1237. //
  1238. // comboBox3
  1239. //
  1240. this.comboBox3.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append;
  1241. this.comboBox3.DisplayMember = "id";
  1242. this.comboBox3.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;
  1243. this.comboBox3.Location = new System.Drawing.Point(206, 95);
  1244. this.comboBox3.Name = "comboBox3";
  1245. this.comboBox3.Size = new System.Drawing.Size(85, 21);
  1246. this.comboBox3.TabIndex = 113;
  1247. //
  1248. // comboBox5
  1249. //
  1250. this.comboBox5.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append;
  1251. this.comboBox5.DisplayMember = "id";
  1252. this.comboBox5.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;
  1253. this.comboBox5.Location = new System.Drawing.Point(79, 95);
  1254. this.comboBox5.Name = "comboBox5";
  1255. this.comboBox5.Size = new System.Drawing.Size(58, 21);
  1256. this.comboBox5.TabIndex = 112;
  1257. //
  1258. // comboBox2
  1259. //
  1260. this.comboBox2.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append;
  1261. this.comboBox2.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;
  1262. this.comboBox2.Location = new System.Drawing.Point(79, 73);
  1263. this.comboBox2.Name = "comboBox2";
  1264. this.comboBox2.Size = new System.Drawing.Size(58, 21);
  1265. this.comboBox2.TabIndex = 111;
  1266. //
  1267. // textBox8
  1268. //
  1269. this.textBox8.Location = new System.Drawing.Point(79, 3);
  1270. this.textBox8.Name = "textBox8";
  1271. this.textBox8.Size = new System.Drawing.Size(58, 21);
  1272. this.textBox8.TabIndex = 69;
  1273. //
  1274. // textBox4
  1275. //
  1276. this.textBox4.Location = new System.Drawing.Point(313, 121);
  1277. this.textBox4.Name = "textBox4";
  1278. this.textBox4.Size = new System.Drawing.Size(96, 21);
  1279. this.textBox4.TabIndex = 102;
  1280. this.textBox4.Visible = false;
  1281. //
  1282. // textBox15
  1283. //
  1284. this.textBox15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
  1285. this.textBox15.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1286. this.textBox15.Location = new System.Drawing.Point(206, 49);
  1287. this.textBox15.Name = "textBox15";
  1288. this.textBox15.Size = new System.Drawing.Size(85, 21);
  1289. this.textBox15.TabIndex = 110;
  1290. //
  1291. // textBox12
  1292. //
  1293. this.textBox12.Location = new System.Drawing.Point(313, 121);
  1294. this.textBox12.Name = "textBox12";
  1295. this.textBox12.Size = new System.Drawing.Size(96, 21);
  1296. this.textBox12.TabIndex = 79;
  1297. this.textBox12.Visible = false;
  1298. //
  1299. // textBox13
  1300. //
  1301. this.textBox13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
  1302. this.textBox13.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1303. this.textBox13.Location = new System.Drawing.Point(206, 26);
  1304. this.textBox13.Name = "textBox13";
  1305. this.textBox13.Size = new System.Drawing.Size(85, 21);
  1306. this.textBox13.TabIndex = 108;
  1307. //
  1308. // textBox14
  1309. //
  1310. this.textBox14.Location = new System.Drawing.Point(321, 119);
  1311. this.textBox14.Name = "textBox14";
  1312. this.textBox14.Size = new System.Drawing.Size(96, 21);
  1313. this.textBox14.TabIndex = 109;
  1314. this.textBox14.Text = "textBox14";
  1315. this.textBox14.Visible = false;
  1316. //
  1317. // label4
  1318. //
  1319. this.label4.AutoSize = true;
  1320. this.label4.Location = new System.Drawing.Point(161, 31);
  1321. this.label4.Name = "label4";
  1322. this.label4.Size = new System.Drawing.Size(41, 12);
  1323. this.label4.TabIndex = 107;
  1324. this.label4.Text = "坯料号";
  1325. //
  1326. // label1
  1327. //
  1328. this.label1.AutoSize = true;
  1329. this.label1.Location = new System.Drawing.Point(161, 7);
  1330. this.label1.Name = "label1";
  1331. this.label1.Size = new System.Drawing.Size(41, 12);
  1332. this.label1.TabIndex = 52;
  1333. this.label1.Text = "熔炼号";
  1334. //
  1335. // label2
  1336. //
  1337. this.label2.AutoSize = true;
  1338. this.label2.Location = new System.Drawing.Point(174, 99);
  1339. this.label2.Name = "label2";
  1340. this.label2.Size = new System.Drawing.Size(29, 12);
  1341. this.label2.TabIndex = 53;
  1342. this.label2.Text = "班次";
  1343. //
  1344. // label7
  1345. //
  1346. this.label7.AutoSize = true;
  1347. this.label7.Location = new System.Drawing.Point(29, 7);
  1348. this.label7.Name = "label7";
  1349. this.label7.Size = new System.Drawing.Size(41, 12);
  1350. this.label7.TabIndex = 55;
  1351. this.label7.Text = "浇次号";
  1352. //
  1353. // label19
  1354. //
  1355. this.label19.AutoSize = true;
  1356. this.label19.Location = new System.Drawing.Point(17, 123);
  1357. this.label19.Name = "label19";
  1358. this.label19.Size = new System.Drawing.Size(53, 12);
  1359. this.label19.TabIndex = 82;
  1360. this.label19.Text = "切割时间";
  1361. //
  1362. // label3
  1363. //
  1364. this.label3.AutoSize = true;
  1365. this.label3.Location = new System.Drawing.Point(174, 54);
  1366. this.label3.Name = "label3";
  1367. this.label3.Size = new System.Drawing.Size(29, 12);
  1368. this.label3.TabIndex = 56;
  1369. this.label3.Text = "块号";
  1370. //
  1371. // label18
  1372. //
  1373. this.label18.AutoSize = true;
  1374. this.label18.Location = new System.Drawing.Point(297, 99);
  1375. this.label18.Name = "label18";
  1376. this.label18.Size = new System.Drawing.Size(77, 12);
  1377. this.label18.TabIndex = 80;
  1378. this.label18.Text = "是否本炉末块";
  1379. //
  1380. // textBox11
  1381. //
  1382. this.textBox11.Location = new System.Drawing.Point(379, 72);
  1383. this.textBox11.Name = "textBox11";
  1384. this.textBox11.Size = new System.Drawing.Size(56, 21);
  1385. this.textBox11.TabIndex = 77;
  1386. //
  1387. // label10
  1388. //
  1389. this.label10.AutoSize = true;
  1390. this.label10.Location = new System.Drawing.Point(29, 77);
  1391. this.label10.Name = "label10";
  1392. this.label10.Size = new System.Drawing.Size(41, 12);
  1393. this.label10.TabIndex = 58;
  1394. this.label10.Text = "铸机号";
  1395. //
  1396. // label16
  1397. //
  1398. this.label16.AutoSize = true;
  1399. this.label16.Location = new System.Drawing.Point(345, 77);
  1400. this.label16.Name = "label16";
  1401. this.label16.Size = new System.Drawing.Size(29, 12);
  1402. this.label16.TabIndex = 76;
  1403. this.label16.Text = "重量";
  1404. //
  1405. // textBox10
  1406. //
  1407. this.textBox10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  1408. this.textBox10.Location = new System.Drawing.Point(379, 49);
  1409. this.textBox10.Name = "textBox10";
  1410. this.textBox10.Size = new System.Drawing.Size(56, 21);
  1411. this.textBox10.TabIndex = 75;
  1412. this.textBox10.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
  1413. //
  1414. // label11
  1415. //
  1416. this.label11.AutoSize = true;
  1417. this.label11.Location = new System.Drawing.Point(149, 77);
  1418. this.label11.Name = "label11";
  1419. this.label11.Size = new System.Drawing.Size(53, 12);
  1420. this.label11.TabIndex = 59;
  1421. this.label11.Text = "切割序号";
  1422. //
  1423. // label14
  1424. //
  1425. this.label14.AutoSize = true;
  1426. this.label14.Location = new System.Drawing.Point(345, 54);
  1427. this.label14.Name = "label14";
  1428. this.label14.Size = new System.Drawing.Size(29, 12);
  1429. this.label14.TabIndex = 74;
  1430. this.label14.Text = "厚度";
  1431. //
  1432. // label8
  1433. //
  1434. this.label8.AutoSize = true;
  1435. this.label8.Location = new System.Drawing.Point(29, 99);
  1436. this.label8.Name = "label8";
  1437. this.label8.Size = new System.Drawing.Size(41, 12);
  1438. this.label8.TabIndex = 61;
  1439. this.label8.Text = "铸流号";
  1440. //
  1441. // textBox9
  1442. //
  1443. this.textBox9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
  1444. this.textBox9.Location = new System.Drawing.Point(379, 26);
  1445. this.textBox9.Name = "textBox9";
  1446. this.textBox9.Size = new System.Drawing.Size(56, 21);
  1447. this.textBox9.TabIndex = 73;
  1448. this.textBox9.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
  1449. //
  1450. // label12
  1451. //
  1452. this.label12.AutoSize = true;
  1453. this.label12.Location = new System.Drawing.Point(345, 31);
  1454. this.label12.Name = "label12";
  1455. this.label12.Size = new System.Drawing.Size(29, 12);
  1456. this.label12.TabIndex = 72;
  1457. this.label12.Text = "宽度";
  1458. //
  1459. // label13
  1460. //
  1461. this.label13.AutoSize = true;
  1462. this.label13.Location = new System.Drawing.Point(5, 31);
  1463. this.label13.Name = "label13";
  1464. this.label13.Size = new System.Drawing.Size(65, 12);
  1465. this.label13.TabIndex = 62;
  1466. this.label13.Text = "浇次内顺序";
  1467. //
  1468. // textBox3
  1469. //
  1470. this.textBox3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
  1471. this.textBox3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1472. this.textBox3.Location = new System.Drawing.Point(379, 3);
  1473. this.textBox3.Name = "textBox3";
  1474. this.textBox3.Size = new System.Drawing.Size(56, 21);
  1475. this.textBox3.TabIndex = 71;
  1476. this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
  1477. //
  1478. // label15
  1479. //
  1480. this.label15.AutoSize = true;
  1481. this.label15.Location = new System.Drawing.Point(5, 54);
  1482. this.label15.Name = "label15";
  1483. this.label15.Size = new System.Drawing.Size(65, 12);
  1484. this.label15.TabIndex = 63;
  1485. this.label15.Text = "浇次内炉数";
  1486. //
  1487. // label6
  1488. //
  1489. this.label6.AutoSize = true;
  1490. this.label6.Location = new System.Drawing.Point(345, 7);
  1491. this.label6.Name = "label6";
  1492. this.label6.Size = new System.Drawing.Size(29, 12);
  1493. this.label6.TabIndex = 70;
  1494. this.label6.Text = "长度";
  1495. //
  1496. // textBox2
  1497. //
  1498. this.textBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
  1499. this.textBox2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1500. this.textBox2.Location = new System.Drawing.Point(206, 3);
  1501. this.textBox2.Name = "textBox2";
  1502. this.textBox2.Size = new System.Drawing.Size(85, 21);
  1503. this.textBox2.TabIndex = 101;
  1504. //
  1505. // textBox5
  1506. //
  1507. this.textBox5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
  1508. this.textBox5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1509. this.textBox5.Location = new System.Drawing.Point(206, 72);
  1510. this.textBox5.Name = "textBox5";
  1511. this.textBox5.Size = new System.Drawing.Size(85, 21);
  1512. this.textBox5.TabIndex = 105;
  1513. //
  1514. // textBox7
  1515. //
  1516. this.textBox7.Location = new System.Drawing.Point(79, 49);
  1517. this.textBox7.Name = "textBox7";
  1518. this.textBox7.Size = new System.Drawing.Size(58, 21);
  1519. this.textBox7.TabIndex = 68;
  1520. //
  1521. // textBox6
  1522. //
  1523. this.textBox6.Location = new System.Drawing.Point(79, 26);
  1524. this.textBox6.Name = "textBox6";
  1525. this.textBox6.Size = new System.Drawing.Size(58, 21);
  1526. this.textBox6.TabIndex = 67;
  1527. //
  1528. // panel3
  1529. //
  1530. this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(228)))), ((int)(((byte)(242)))));
  1531. this.panel3.Controls.Add(this.textBox25);
  1532. this.panel3.Controls.Add(this.label28);
  1533. this.panel3.Controls.Add(this.label22);
  1534. this.panel3.Controls.Add(this.textBox21);
  1535. this.panel3.Controls.Add(this.label23);
  1536. this.panel3.Controls.Add(this.textBox24);
  1537. this.panel3.Controls.Add(this.label27);
  1538. this.panel3.Controls.Add(this.btn_setheatid);
  1539. this.panel3.Controls.Add(this.textBox23);
  1540. this.panel3.Controls.Add(this.label25);
  1541. this.panel3.Controls.Add(this.button1);
  1542. this.panel3.Controls.Add(this.textBox22);
  1543. this.panel3.Controls.Add(this.textBox20);
  1544. this.panel3.Controls.Add(this.label24);
  1545. this.panel3.Controls.Add(this.textBox19);
  1546. this.panel3.Controls.Add(this.label21);
  1547. this.panel3.Controls.Add(this.textBox18);
  1548. this.panel3.Controls.Add(this.label20);
  1549. this.panel3.Controls.Add(this.textBox17);
  1550. this.panel3.Controls.Add(this.label17);
  1551. this.panel3.Controls.Add(this.textBox16);
  1552. this.panel3.Controls.Add(this.label5);
  1553. this.panel3.Dock = System.Windows.Forms.DockStyle.Right;
  1554. this.panel3.Location = new System.Drawing.Point(449, 0);
  1555. this.panel3.Name = "panel3";
  1556. this.panel3.Size = new System.Drawing.Size(253, 138);
  1557. this.panel3.TabIndex = 111;
  1558. //
  1559. // textBox25
  1560. //
  1561. this.textBox25.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1562. this.textBox25.ForeColor = System.Drawing.Color.Red;
  1563. this.textBox25.Location = new System.Drawing.Point(7, 72);
  1564. this.textBox25.Name = "textBox25";
  1565. this.textBox25.Size = new System.Drawing.Size(52, 21);
  1566. this.textBox25.TabIndex = 25;
  1567. //
  1568. // label28
  1569. //
  1570. this.label28.AutoSize = true;
  1571. this.label28.Location = new System.Drawing.Point(2, 56);
  1572. this.label28.Name = "label28";
  1573. this.label28.Size = new System.Drawing.Size(65, 12);
  1574. this.label28.TabIndex = 24;
  1575. this.label28.Text = "中包总支数";
  1576. //
  1577. // label22
  1578. //
  1579. this.label22.AutoSize = true;
  1580. this.label22.Location = new System.Drawing.Point(181, 99);
  1581. this.label22.Name = "label22";
  1582. this.label22.Size = new System.Drawing.Size(53, 12);
  1583. this.label22.TabIndex = 16;
  1584. this.label22.Text = "剩余支数";
  1585. //
  1586. // textBox21
  1587. //
  1588. this.textBox21.Location = new System.Drawing.Point(120, 115);
  1589. this.textBox21.Name = "textBox21";
  1590. this.textBox21.ReadOnly = true;
  1591. this.textBox21.Size = new System.Drawing.Size(59, 21);
  1592. this.textBox21.TabIndex = 15;
  1593. //
  1594. // label23
  1595. //
  1596. this.label23.AutoSize = true;
  1597. this.label23.Location = new System.Drawing.Point(116, 99);
  1598. this.label23.Name = "label23";
  1599. this.label23.Size = new System.Drawing.Size(65, 12);
  1600. this.label23.TabIndex = 14;
  1601. this.label23.Text = "已切割支数";
  1602. //
  1603. // textBox24
  1604. //
  1605. this.textBox24.Location = new System.Drawing.Point(69, 115);
  1606. this.textBox24.Name = "textBox24";
  1607. this.textBox24.ReadOnly = true;
  1608. this.textBox24.Size = new System.Drawing.Size(46, 21);
  1609. this.textBox24.TabIndex = 23;
  1610. //
  1611. // label27
  1612. //
  1613. this.label27.AutoSize = true;
  1614. this.label27.Location = new System.Drawing.Point(66, 99);
  1615. this.label27.Name = "label27";
  1616. this.label27.Size = new System.Drawing.Size(53, 12);
  1617. this.label27.TabIndex = 22;
  1618. this.label27.Text = "实际预测";
  1619. //
  1620. // btn_setheatid
  1621. //
  1622. this.btn_setheatid.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1623. this.btn_setheatid.Location = new System.Drawing.Point(80, 22);
  1624. this.btn_setheatid.Name = "btn_setheatid";
  1625. this.btn_setheatid.Size = new System.Drawing.Size(72, 24);
  1626. this.btn_setheatid.TabIndex = 21;
  1627. this.btn_setheatid.Text = "炉号设置";
  1628. this.btn_setheatid.Click += new System.EventHandler(this.btn_setheatid_Click);
  1629. //
  1630. // textBox23
  1631. //
  1632. this.textBox23.Location = new System.Drawing.Point(168, 24);
  1633. this.textBox23.Name = "textBox23";
  1634. this.textBox23.ReadOnly = true;
  1635. this.textBox23.Size = new System.Drawing.Size(66, 21);
  1636. this.textBox23.TabIndex = 20;
  1637. //
  1638. // label25
  1639. //
  1640. this.label25.Location = new System.Drawing.Point(163, 8);
  1641. this.label25.Name = "label25";
  1642. this.label25.Size = new System.Drawing.Size(80, 16);
  1643. this.label25.TabIndex = 19;
  1644. this.label25.Text = "已切坯料总量";
  1645. //
  1646. // button1
  1647. //
  1648. this.button1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1649. this.button1.Location = new System.Drawing.Point(229, 72);
  1650. this.button1.Name = "button1";
  1651. this.button1.Size = new System.Drawing.Size(21, 21);
  1652. this.button1.TabIndex = 18;
  1653. this.button1.Text = "▼";
  1654. this.button1.Click += new System.EventHandler(this.button1_Click);
  1655. //
  1656. // textBox22
  1657. //
  1658. this.textBox22.Location = new System.Drawing.Point(182, 115);
  1659. this.textBox22.Name = "textBox22";
  1660. this.textBox22.ReadOnly = true;
  1661. this.textBox22.Size = new System.Drawing.Size(48, 21);
  1662. this.textBox22.TabIndex = 17;
  1663. //
  1664. // textBox20
  1665. //
  1666. this.textBox20.Location = new System.Drawing.Point(7, 115);
  1667. this.textBox20.Name = "textBox20";
  1668. this.textBox20.ReadOnly = true;
  1669. this.textBox20.Size = new System.Drawing.Size(52, 21);
  1670. this.textBox20.TabIndex = 13;
  1671. //
  1672. // label24
  1673. //
  1674. this.label24.AutoSize = true;
  1675. this.label24.Location = new System.Drawing.Point(6, 99);
  1676. this.label24.Name = "label24";
  1677. this.label24.Size = new System.Drawing.Size(53, 12);
  1678. this.label24.TabIndex = 12;
  1679. this.label24.Text = "计划支数";
  1680. //
  1681. // textBox19
  1682. //
  1683. this.textBox19.Location = new System.Drawing.Point(182, 72);
  1684. this.textBox19.Name = "textBox19";
  1685. this.textBox19.ReadOnly = true;
  1686. this.textBox19.Size = new System.Drawing.Size(48, 21);
  1687. this.textBox19.TabIndex = 11;
  1688. //
  1689. // label21
  1690. //
  1691. this.label21.AutoSize = true;
  1692. this.label21.Location = new System.Drawing.Point(181, 56);
  1693. this.label21.Name = "label21";
  1694. this.label21.Size = new System.Drawing.Size(53, 12);
  1695. this.label21.TabIndex = 10;
  1696. this.label21.Text = "钢水重量";
  1697. //
  1698. // textBox18
  1699. //
  1700. this.textBox18.Location = new System.Drawing.Point(120, 72);
  1701. this.textBox18.Name = "textBox18";
  1702. this.textBox18.Size = new System.Drawing.Size(59, 21);
  1703. this.textBox18.TabIndex = 9;
  1704. this.textBox18.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox18_KeyDown);
  1705. //
  1706. // label20
  1707. //
  1708. this.label20.AutoSize = true;
  1709. this.label20.Location = new System.Drawing.Point(122, 56);
  1710. this.label20.Name = "label20";
  1711. this.label20.Size = new System.Drawing.Size(53, 12);
  1712. this.label20.TabIndex = 8;
  1713. this.label20.Text = "大包重量";
  1714. //
  1715. // textBox17
  1716. //
  1717. this.textBox17.Location = new System.Drawing.Point(69, 72);
  1718. this.textBox17.Name = "textBox17";
  1719. this.textBox17.Size = new System.Drawing.Size(46, 21);
  1720. this.textBox17.TabIndex = 7;
  1721. this.textBox17.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox17_KeyDown);
  1722. //
  1723. // label17
  1724. //
  1725. this.label17.AutoSize = true;
  1726. this.label17.Location = new System.Drawing.Point(66, 56);
  1727. this.label17.Name = "label17";
  1728. this.label17.Size = new System.Drawing.Size(53, 12);
  1729. this.label17.TabIndex = 6;
  1730. this.label17.Text = "上台重量";
  1731. //
  1732. // textBox16
  1733. //
  1734. this.textBox16.Location = new System.Drawing.Point(7, 24);
  1735. this.textBox16.Name = "textBox16";
  1736. this.textBox16.ReadOnly = true;
  1737. this.textBox16.Size = new System.Drawing.Size(62, 21);
  1738. this.textBox16.TabIndex = 5;
  1739. //
  1740. // label5
  1741. //
  1742. this.label5.Location = new System.Drawing.Point(7, 8);
  1743. this.label5.Name = "label5";
  1744. this.label5.Size = new System.Drawing.Size(80, 23);
  1745. this.label5.TabIndex = 4;
  1746. this.label5.Text = "正在切割炉号";
  1747. //
  1748. // splitter1
  1749. //
  1750. this.splitter1.Dock = System.Windows.Forms.DockStyle.Right;
  1751. this.splitter1.Location = new System.Drawing.Point(708, 0);
  1752. this.splitter1.Name = "splitter1";
  1753. this.splitter1.Size = new System.Drawing.Size(3, 579);
  1754. this.splitter1.TabIndex = 107;
  1755. this.splitter1.TabStop = false;
  1756. //
  1757. // panel2
  1758. //
  1759. this.panel2.Controls.Add(this.panel5);
  1760. this.panel2.Controls.Add(this.panel4);
  1761. this.panel2.Controls.Add(this.ultraGroupBox2);
  1762. this.panel2.Controls.Add(this.ultraGroupBox3);
  1763. this.panel2.Dock = System.Windows.Forms.DockStyle.Right;
  1764. this.panel2.Location = new System.Drawing.Point(711, 0);
  1765. this.panel2.Name = "panel2";
  1766. this.panel2.Size = new System.Drawing.Size(315, 579);
  1767. this.panel2.TabIndex = 106;
  1768. this.panel2.Visible = false;
  1769. this.panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint);
  1770. //
  1771. // panel5
  1772. //
  1773. this.panel5.Controls.Add(this.groupBox1);
  1774. this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
  1775. this.panel5.Location = new System.Drawing.Point(0, 282);
  1776. this.panel5.Name = "panel5";
  1777. this.panel5.Size = new System.Drawing.Size(315, 123);
  1778. this.panel5.TabIndex = 11;
  1779. //
  1780. // groupBox1
  1781. //
  1782. this.groupBox1.Controls.Add(this.ultraGrid2);
  1783. this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
  1784. this.groupBox1.Location = new System.Drawing.Point(0, 0);
  1785. this.groupBox1.Name = "groupBox1";
  1786. this.groupBox1.Size = new System.Drawing.Size(315, 123);
  1787. this.groupBox1.TabIndex = 8;
  1788. this.groupBox1.TabStop = false;
  1789. //
  1790. // ultraGrid2
  1791. //
  1792. appearance2.FontData.BoldAsString = "True";
  1793. this.ultraGrid2.DisplayLayout.Override.ActiveRowAppearance = appearance2;
  1794. this.ultraGrid2.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
  1795. this.ultraGrid2.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex;
  1796. this.ultraGrid2.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
  1797. this.ultraGrid2.DisplayLayout.Override.RowSelectorWidth = 20;
  1798. this.ultraGrid2.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
  1799. this.ultraGrid2.Dock = System.Windows.Forms.DockStyle.Fill;
  1800. this.ultraGrid2.Location = new System.Drawing.Point(3, 17);
  1801. this.ultraGrid2.Name = "ultraGrid2";
  1802. this.ultraGrid2.Size = new System.Drawing.Size(309, 103);
  1803. this.ultraGrid2.TabIndex = 1;
  1804. //
  1805. // panel4
  1806. //
  1807. this.panel4.Controls.Add(this.groupBox2);
  1808. this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
  1809. this.panel4.Location = new System.Drawing.Point(0, 50);
  1810. this.panel4.Name = "panel4";
  1811. this.panel4.Size = new System.Drawing.Size(315, 232);
  1812. this.panel4.TabIndex = 10;
  1813. //
  1814. // groupBox2
  1815. //
  1816. this.groupBox2.Controls.Add(this.ultraGrid3);
  1817. this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
  1818. this.groupBox2.Location = new System.Drawing.Point(0, 0);
  1819. this.groupBox2.Name = "groupBox2";
  1820. this.groupBox2.Size = new System.Drawing.Size(315, 232);
  1821. this.groupBox2.TabIndex = 9;
  1822. this.groupBox2.TabStop = false;
  1823. this.groupBox2.Text = "计划信息";
  1824. //
  1825. // ultraGrid3
  1826. //
  1827. this.ultraGrid3.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
  1828. this.ultraGrid3.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex;
  1829. this.ultraGrid3.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
  1830. this.ultraGrid3.DisplayLayout.Override.RowSelectorWidth = 20;
  1831. this.ultraGrid3.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
  1832. this.ultraGrid3.Dock = System.Windows.Forms.DockStyle.Fill;
  1833. this.ultraGrid3.Location = new System.Drawing.Point(3, 17);
  1834. this.ultraGrid3.Name = "ultraGrid3";
  1835. this.ultraGrid3.Size = new System.Drawing.Size(309, 212);
  1836. this.ultraGrid3.TabIndex = 0;
  1837. //
  1838. // ultraGroupBox2
  1839. //
  1840. this.ultraGroupBox2.BackColorInternal = System.Drawing.Color.Gainsboro;
  1841. this.ultraGroupBox2.Controls.Add(this.dtpCutTime);
  1842. this.ultraGroupBox2.Controls.Add(this.label29);
  1843. this.ultraGroupBox2.Controls.Add(this.cboFlowNo);
  1844. this.ultraGroupBox2.Controls.Add(this.label30);
  1845. this.ultraGroupBox2.Controls.Add(this.label31);
  1846. this.ultraGroupBox2.Controls.Add(this.txtSurplusFlag);
  1847. this.ultraGroupBox2.Controls.Add(this.txtProdorderNO);
  1848. this.ultraGroupBox2.Controls.Add(this.label32);
  1849. this.ultraGroupBox2.Controls.Add(this.txtOrderNO);
  1850. this.ultraGroupBox2.Controls.Add(this.label33);
  1851. this.ultraGroupBox2.Controls.Add(this.button4);
  1852. this.ultraGroupBox2.Controls.Add(this.button3);
  1853. this.ultraGroupBox2.Controls.Add(this.textBox26);
  1854. this.ultraGroupBox2.Controls.Add(this.label34);
  1855. this.ultraGroupBox2.Controls.Add(this.label35);
  1856. this.ultraGroupBox2.Controls.Add(this.label36);
  1857. this.ultraGroupBox2.Controls.Add(this.tbxWeight);
  1858. this.ultraGroupBox2.Controls.Add(this.tbxThick);
  1859. this.ultraGroupBox2.Controls.Add(this.tbxWidth);
  1860. this.ultraGroupBox2.Controls.Add(this.label37);
  1861. this.ultraGroupBox2.Controls.Add(this.tbxLength);
  1862. this.ultraGroupBox2.Controls.Add(this.label38);
  1863. this.ultraGroupBox2.Controls.Add(this.comboBox1);
  1864. this.ultraGroupBox2.Controls.Add(this.label39);
  1865. this.ultraGroupBox2.Controls.Add(this.textBox27);
  1866. this.ultraGroupBox2.Controls.Add(this.label40);
  1867. this.ultraGroupBox2.Controls.Add(this.textBox28);
  1868. this.ultraGroupBox2.Controls.Add(this.label41);
  1869. this.ultraGroupBox2.Dock = System.Windows.Forms.DockStyle.Bottom;
  1870. this.ultraGroupBox2.Location = new System.Drawing.Point(0, 405);
  1871. this.ultraGroupBox2.Name = "ultraGroupBox2";
  1872. this.ultraGroupBox2.Size = new System.Drawing.Size(315, 174);
  1873. this.ultraGroupBox2.TabIndex = 7;
  1874. this.ultraGroupBox2.Text = "按计划多块生成切割";
  1875. //
  1876. // dtpCutTime
  1877. //
  1878. this.dtpCutTime.DateTime = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
  1879. this.dtpCutTime.FormatProvider = new System.Globalization.CultureInfo("en-US");
  1880. this.dtpCutTime.FormatString = "yyyy-MM-dd HH:mm:ss";
  1881. this.dtpCutTime.Location = new System.Drawing.Point(74, 145);
  1882. this.dtpCutTime.MaskInput = "yyyy-mm-dd hh:mm:ss";
  1883. this.dtpCutTime.Name = "dtpCutTime";
  1884. this.dtpCutTime.Size = new System.Drawing.Size(231, 21);
  1885. this.dtpCutTime.TabIndex = 283;
  1886. this.dtpCutTime.Value = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
  1887. //
  1888. // label29
  1889. //
  1890. this.label29.AutoSize = true;
  1891. this.label29.Location = new System.Drawing.Point(18, 149);
  1892. this.label29.Name = "label29";
  1893. this.label29.Size = new System.Drawing.Size(53, 12);
  1894. this.label29.TabIndex = 150;
  1895. this.label29.Text = "切割时间";
  1896. //
  1897. // cboFlowNo
  1898. //
  1899. this.cboFlowNo.BackColor = System.Drawing.Color.White;
  1900. this.cboFlowNo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  1901. this.cboFlowNo.Items.AddRange(new object[] {
  1902. "1",
  1903. "2",
  1904. "3",
  1905. "4"});
  1906. this.cboFlowNo.Location = new System.Drawing.Point(257, 69);
  1907. this.cboFlowNo.Name = "cboFlowNo";
  1908. this.cboFlowNo.Size = new System.Drawing.Size(48, 20);
  1909. this.cboFlowNo.TabIndex = 149;
  1910. //
  1911. // label30
  1912. //
  1913. this.label30.AutoSize = true;
  1914. this.label30.Location = new System.Drawing.Point(226, 73);
  1915. this.label30.Name = "label30";
  1916. this.label30.Size = new System.Drawing.Size(29, 12);
  1917. this.label30.TabIndex = 148;
  1918. this.label30.Text = "流号";
  1919. //
  1920. // label31
  1921. //
  1922. this.label31.AutoSize = true;
  1923. this.label31.Location = new System.Drawing.Point(143, 97);
  1924. this.label31.Name = "label31";
  1925. this.label31.Size = new System.Drawing.Size(29, 12);
  1926. this.label31.TabIndex = 147;
  1927. this.label31.Text = "余材";
  1928. //
  1929. // txtSurplusFlag
  1930. //
  1931. this.txtSurplusFlag.BackColor = System.Drawing.Color.White;
  1932. this.txtSurplusFlag.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  1933. this.txtSurplusFlag.Location = new System.Drawing.Point(175, 93);
  1934. this.txtSurplusFlag.Name = "txtSurplusFlag";
  1935. this.txtSurplusFlag.Size = new System.Drawing.Size(48, 21);
  1936. this.txtSurplusFlag.TabIndex = 146;
  1937. //
  1938. // txtProdorderNO
  1939. //
  1940. this.txtProdorderNO.BackColor = System.Drawing.Color.White;
  1941. this.txtProdorderNO.Location = new System.Drawing.Point(74, 45);
  1942. this.txtProdorderNO.Name = "txtProdorderNO";
  1943. this.txtProdorderNO.ReadOnly = true;
  1944. this.txtProdorderNO.Size = new System.Drawing.Size(149, 21);
  1945. this.txtProdorderNO.TabIndex = 145;
  1946. //
  1947. // label32
  1948. //
  1949. this.label32.AutoSize = true;
  1950. this.label32.Location = new System.Drawing.Point(6, 49);
  1951. this.label32.Name = "label32";
  1952. this.label32.Size = new System.Drawing.Size(65, 12);
  1953. this.label32.TabIndex = 144;
  1954. this.label32.Text = "生产订单号";
  1955. //
  1956. // txtOrderNO
  1957. //
  1958. this.txtOrderNO.BackColor = System.Drawing.Color.White;
  1959. this.txtOrderNO.Location = new System.Drawing.Point(74, 21);
  1960. this.txtOrderNO.Name = "txtOrderNO";
  1961. this.txtOrderNO.ReadOnly = true;
  1962. this.txtOrderNO.Size = new System.Drawing.Size(149, 21);
  1963. this.txtOrderNO.TabIndex = 143;
  1964. //
  1965. // label33
  1966. //
  1967. this.label33.AutoSize = true;
  1968. this.label33.Location = new System.Drawing.Point(18, 25);
  1969. this.label33.Name = "label33";
  1970. this.label33.Size = new System.Drawing.Size(53, 12);
  1971. this.label33.TabIndex = 142;
  1972. this.label33.Text = "订单行号";
  1973. //
  1974. // button4
  1975. //
  1976. this.button4.Location = new System.Drawing.Point(238, 44);
  1977. this.button4.Name = "button4";
  1978. this.button4.Size = new System.Drawing.Size(61, 23);
  1979. this.button4.TabIndex = 141;
  1980. this.button4.Text = "取消";
  1981. this.button4.UseVisualStyleBackColor = true;
  1982. this.button4.Visible = false;
  1983. //
  1984. // button3
  1985. //
  1986. this.button3.Location = new System.Drawing.Point(244, 20);
  1987. this.button3.Name = "button3";
  1988. this.button3.Size = new System.Drawing.Size(61, 23);
  1989. this.button3.TabIndex = 140;
  1990. this.button3.Text = "生成";
  1991. this.button3.UseVisualStyleBackColor = true;
  1992. //
  1993. // textBox26
  1994. //
  1995. this.textBox26.BackColor = System.Drawing.Color.LightCyan;
  1996. this.textBox26.Location = new System.Drawing.Point(238, 150);
  1997. this.textBox26.Name = "textBox26";
  1998. this.textBox26.Size = new System.Drawing.Size(64, 21);
  1999. this.textBox26.TabIndex = 139;
  2000. this.textBox26.Text = "1";
  2001. this.textBox26.Visible = false;
  2002. //
  2003. // label34
  2004. //
  2005. this.label34.AutoSize = true;
  2006. this.label34.Location = new System.Drawing.Point(182, 154);
  2007. this.label34.Name = "label34";
  2008. this.label34.Size = new System.Drawing.Size(53, 12);
  2009. this.label34.TabIndex = 138;
  2010. this.label34.Text = "起始序号";
  2011. this.label34.Visible = false;
  2012. //
  2013. // label35
  2014. //
  2015. this.label35.AutoSize = true;
  2016. this.label35.Location = new System.Drawing.Point(226, 97);
  2017. this.label35.Name = "label35";
  2018. this.label35.Size = new System.Drawing.Size(29, 12);
  2019. this.label35.TabIndex = 137;
  2020. this.label35.Text = "重量";
  2021. //
  2022. // label36
  2023. //
  2024. this.label36.AutoSize = true;
  2025. this.label36.Location = new System.Drawing.Point(226, 121);
  2026. this.label36.Name = "label36";
  2027. this.label36.Size = new System.Drawing.Size(29, 12);
  2028. this.label36.TabIndex = 136;
  2029. this.label36.Text = "厚度";
  2030. //
  2031. // tbxWeight
  2032. //
  2033. this.tbxWeight.BackColor = System.Drawing.Color.White;
  2034. this.tbxWeight.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  2035. this.tbxWeight.Location = new System.Drawing.Point(257, 93);
  2036. this.tbxWeight.Name = "tbxWeight";
  2037. this.tbxWeight.Size = new System.Drawing.Size(48, 21);
  2038. this.tbxWeight.TabIndex = 135;
  2039. //
  2040. // tbxThick
  2041. //
  2042. this.tbxThick.BackColor = System.Drawing.Color.White;
  2043. this.tbxThick.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  2044. this.tbxThick.Location = new System.Drawing.Point(257, 117);
  2045. this.tbxThick.Name = "tbxThick";
  2046. this.tbxThick.Size = new System.Drawing.Size(48, 21);
  2047. this.tbxThick.TabIndex = 134;
  2048. //
  2049. // tbxWidth
  2050. //
  2051. this.tbxWidth.BackColor = System.Drawing.Color.White;
  2052. this.tbxWidth.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  2053. this.tbxWidth.Location = new System.Drawing.Point(175, 117);
  2054. this.tbxWidth.Name = "tbxWidth";
  2055. this.tbxWidth.Size = new System.Drawing.Size(48, 21);
  2056. this.tbxWidth.TabIndex = 133;
  2057. //
  2058. // label37
  2059. //
  2060. this.label37.AutoSize = true;
  2061. this.label37.Location = new System.Drawing.Point(143, 121);
  2062. this.label37.Name = "label37";
  2063. this.label37.Size = new System.Drawing.Size(29, 12);
  2064. this.label37.TabIndex = 132;
  2065. this.label37.Text = "宽度";
  2066. //
  2067. // tbxLength
  2068. //
  2069. this.tbxLength.BackColor = System.Drawing.Color.White;
  2070. this.tbxLength.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  2071. this.tbxLength.Location = new System.Drawing.Point(74, 117);
  2072. this.tbxLength.Name = "tbxLength";
  2073. this.tbxLength.Size = new System.Drawing.Size(64, 21);
  2074. this.tbxLength.TabIndex = 131;
  2075. //
  2076. // label38
  2077. //
  2078. this.label38.AutoSize = true;
  2079. this.label38.Location = new System.Drawing.Point(42, 121);
  2080. this.label38.Name = "label38";
  2081. this.label38.Size = new System.Drawing.Size(29, 12);
  2082. this.label38.TabIndex = 130;
  2083. this.label38.Text = "长度";
  2084. //
  2085. // comboBox1
  2086. //
  2087. this.comboBox1.BackColor = System.Drawing.Color.White;
  2088. this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  2089. this.comboBox1.Items.AddRange(new object[] {
  2090. "0",
  2091. "1",
  2092. "2",
  2093. "3"});
  2094. this.comboBox1.Location = new System.Drawing.Point(175, 69);
  2095. this.comboBox1.Name = "comboBox1";
  2096. this.comboBox1.Size = new System.Drawing.Size(48, 20);
  2097. this.comboBox1.TabIndex = 129;
  2098. //
  2099. // label39
  2100. //
  2101. this.label39.AutoSize = true;
  2102. this.label39.Location = new System.Drawing.Point(144, 73);
  2103. this.label39.Name = "label39";
  2104. this.label39.Size = new System.Drawing.Size(29, 12);
  2105. this.label39.TabIndex = 128;
  2106. this.label39.Text = "铸机";
  2107. //
  2108. // textBox27
  2109. //
  2110. this.textBox27.BackColor = System.Drawing.Color.White;
  2111. this.textBox27.Location = new System.Drawing.Point(74, 93);
  2112. this.textBox27.Name = "textBox27";
  2113. this.textBox27.Size = new System.Drawing.Size(64, 21);
  2114. this.textBox27.TabIndex = 127;
  2115. //
  2116. // label40
  2117. //
  2118. this.label40.AutoSize = true;
  2119. this.label40.Location = new System.Drawing.Point(18, 97);
  2120. this.label40.Name = "label40";
  2121. this.label40.Size = new System.Drawing.Size(53, 12);
  2122. this.label40.TabIndex = 126;
  2123. this.label40.Text = "生成块数";
  2124. //
  2125. // textBox28
  2126. //
  2127. this.textBox28.BackColor = System.Drawing.Color.White;
  2128. this.textBox28.Location = new System.Drawing.Point(74, 69);
  2129. this.textBox28.Name = "textBox28";
  2130. this.textBox28.ReadOnly = true;
  2131. this.textBox28.Size = new System.Drawing.Size(64, 21);
  2132. this.textBox28.TabIndex = 125;
  2133. //
  2134. // label41
  2135. //
  2136. this.label41.AutoSize = true;
  2137. this.label41.Location = new System.Drawing.Point(30, 73);
  2138. this.label41.Name = "label41";
  2139. this.label41.Size = new System.Drawing.Size(41, 12);
  2140. this.label41.TabIndex = 124;
  2141. this.label41.Text = "熔炼号";
  2142. //
  2143. // ultraGroupBox3
  2144. //
  2145. this.ultraGroupBox3.BackColorInternal = System.Drawing.Color.Gainsboro;
  2146. this.ultraGroupBox3.Controls.Add(this.bntSend);
  2147. this.ultraGroupBox3.Controls.Add(this.combConNo);
  2148. this.ultraGroupBox3.Controls.Add(this.chkConNo);
  2149. this.ultraGroupBox3.Controls.Add(this.queryBtn);
  2150. this.ultraGroupBox3.Controls.Add(this.ccmNumCobo);
  2151. this.ultraGroupBox3.Controls.Add(this.chkCcmNo);
  2152. this.ultraGroupBox3.Dock = System.Windows.Forms.DockStyle.Top;
  2153. this.ultraGroupBox3.Location = new System.Drawing.Point(0, 0);
  2154. this.ultraGroupBox3.Name = "ultraGroupBox3";
  2155. this.ultraGroupBox3.Size = new System.Drawing.Size(315, 50);
  2156. this.ultraGroupBox3.TabIndex = 6;
  2157. //
  2158. // bntSend
  2159. //
  2160. this.bntSend.BackColor = System.Drawing.Color.LightSeaGreen;
  2161. this.bntSend.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  2162. this.bntSend.Location = new System.Drawing.Point(20, 39);
  2163. this.bntSend.Name = "bntSend";
  2164. this.bntSend.Size = new System.Drawing.Size(104, 23);
  2165. this.bntSend.TabIndex = 5;
  2166. this.bntSend.Text = "发送金相指示";
  2167. this.bntSend.UseVisualStyleBackColor = false;
  2168. this.bntSend.Visible = false;
  2169. //
  2170. // combConNo
  2171. //
  2172. this.combConNo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  2173. this.combConNo.Location = new System.Drawing.Point(186, 14);
  2174. this.combConNo.Name = "combConNo";
  2175. this.combConNo.Size = new System.Drawing.Size(62, 20);
  2176. this.combConNo.TabIndex = 3;
  2177. //
  2178. // chkConNo
  2179. //
  2180. this.chkConNo.AutoSize = true;
  2181. this.chkConNo.Location = new System.Drawing.Point(128, 16);
  2182. this.chkConNo.Name = "chkConNo";
  2183. this.chkConNo.Size = new System.Drawing.Size(60, 16);
  2184. this.chkConNo.TabIndex = 2;
  2185. this.chkConNo.Text = "转炉号";
  2186. this.chkConNo.UseVisualStyleBackColor = true;
  2187. //
  2188. // queryBtn
  2189. //
  2190. this.queryBtn.Location = new System.Drawing.Point(254, 13);
  2191. this.queryBtn.Name = "queryBtn";
  2192. this.queryBtn.Size = new System.Drawing.Size(58, 23);
  2193. this.queryBtn.TabIndex = 4;
  2194. this.queryBtn.Text = "查询";
  2195. this.queryBtn.UseVisualStyleBackColor = true;
  2196. this.queryBtn.Click += new System.EventHandler(this.queryBtn_Click);
  2197. //
  2198. // ccmNumCobo
  2199. //
  2200. this.ccmNumCobo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  2201. this.ccmNumCobo.FormattingEnabled = true;
  2202. this.ccmNumCobo.Location = new System.Drawing.Point(62, 14);
  2203. this.ccmNumCobo.Name = "ccmNumCobo";
  2204. this.ccmNumCobo.Size = new System.Drawing.Size(62, 20);
  2205. this.ccmNumCobo.TabIndex = 3;
  2206. //
  2207. // chkCcmNo
  2208. //
  2209. this.chkCcmNo.AutoSize = true;
  2210. this.chkCcmNo.Location = new System.Drawing.Point(6, 16);
  2211. this.chkCcmNo.Name = "chkCcmNo";
  2212. this.chkCcmNo.Size = new System.Drawing.Size(60, 16);
  2213. this.chkCcmNo.TabIndex = 0;
  2214. this.chkCcmNo.Text = "铸机号";
  2215. this.chkCcmNo.UseVisualStyleBackColor = true;
  2216. this.chkCcmNo.CheckedChanged += new System.EventHandler(this.chkCcmNo_CheckedChanged);
  2217. //
  2218. // FrmCutBilletDetail
  2219. //
  2220. this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
  2221. this.ClientSize = new System.Drawing.Size(1026, 579);
  2222. this.Controls.Add(this.ultraGrid1);
  2223. this.Controls.Add(this.ultraGroupBox1);
  2224. this.Controls.Add(this.ultraExpandableGroupBox1);
  2225. this.Controls.Add(this.splitter1);
  2226. this.Controls.Add(this.panel2);
  2227. this.Name = "FrmCutBilletDetail";
  2228. this.Text = "切割明细";
  2229. this.Load += new System.EventHandler(this.FrmMidPotroast_Load);
  2230. ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).EndInit();
  2231. ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).EndInit();
  2232. ((System.ComponentModel.ISupportInitialize)(this.ultraGrid1)).EndInit();
  2233. ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).EndInit();
  2234. this.ultraGroupBox1.ResumeLayout(false);
  2235. this.ultraGroupBox1.PerformLayout();
  2236. ((System.ComponentModel.ISupportInitialize)(this.comboBox4)).EndInit();
  2237. ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker4)).EndInit();
  2238. ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker3)).EndInit();
  2239. ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).EndInit();
  2240. this.ultraExpandableGroupBox1.ResumeLayout(false);
  2241. this.ultraExpandableGroupBoxPanel1.ResumeLayout(false);
  2242. this.panel1.ResumeLayout(false);
  2243. this.panel1.PerformLayout();
  2244. ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker5)).EndInit();
  2245. ((System.ComponentModel.ISupportInitialize)(this.comboBox6)).EndInit();
  2246. ((System.ComponentModel.ISupportInitialize)(this.comboBox3)).EndInit();
  2247. ((System.ComponentModel.ISupportInitialize)(this.comboBox5)).EndInit();
  2248. ((System.ComponentModel.ISupportInitialize)(this.comboBox2)).EndInit();
  2249. this.panel3.ResumeLayout(false);
  2250. this.panel3.PerformLayout();
  2251. this.panel2.ResumeLayout(false);
  2252. this.panel5.ResumeLayout(false);
  2253. this.groupBox1.ResumeLayout(false);
  2254. ((System.ComponentModel.ISupportInitialize)(this.ultraGrid2)).EndInit();
  2255. this.panel4.ResumeLayout(false);
  2256. this.groupBox2.ResumeLayout(false);
  2257. ((System.ComponentModel.ISupportInitialize)(this.ultraGrid3)).EndInit();
  2258. ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox2)).EndInit();
  2259. this.ultraGroupBox2.ResumeLayout(false);
  2260. this.ultraGroupBox2.PerformLayout();
  2261. ((System.ComponentModel.ISupportInitialize)(this.dtpCutTime)).EndInit();
  2262. ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox3)).EndInit();
  2263. this.ultraGroupBox3.ResumeLayout(false);
  2264. this.ultraGroupBox3.PerformLayout();
  2265. this.ResumeLayout(false);
  2266. }
  2267. #endregion
  2268. #endregion
  2269. #region " Valiable "
  2270. private DataSet _dsMid;
  2271. public bool DataChangedFlag = false;
  2272. private string _strWhere = "";
  2273. private Thread _refreshDataThread = null;
  2274. private DateTime LastUpdateTime;
  2275. #endregion
  2276. public string CCMN0 = "";
  2277. private string strOldBlockNo;
  2278. private string strOldCastNo;
  2279. private delegate void CallRefreshThreadDelegate();
  2280. private bool bExit = false;
  2281. private Hashtable cutHash = new Hashtable();
  2282. private CommandClass _commClass;
  2283. private bool blText = false; //处理装载程序时执行Changed事情
  2284. private string _DEVICE_POSITION = ""; // 设备位置
  2285. private int _DEVICE_POS = -1; // 设备号
  2286. public string strV_BilletID = ""; //虚拟坯料号
  2287. public string strV_Heat_ID = ""; //虚拟炉号
  2288. public string strOrderNO = "";//订单行号
  2289. public string strProdOrderNO = "";//生产订单号
  2290. public string strSurplusFlag = "";//是否余材
  2291. public string strSteelCode = "";
  2292. public string strProductline = ""; //产线
  2293. public string strStandardsCode = "";//标准号
  2294. public string strStandardRemak = ""; //标准描述
  2295. public string strCustomer_Key = "";//客户参数号
  2296. #region " Init "
  2297. #region//调度、切割
  2298. public delegate void ReportSelect(string strCastNo, string strBlockNo);
  2299. public ReportSelect reportSelect;
  2300. public delegate void ReportHandSet(string strHeatID, int nBegin, int nEnd);
  2301. public ReportHandSet reportHandSet;
  2302. public int intCcm = -1;
  2303. private DataTable steelSchTable, cutSchTable;//调度、切割指示表
  2304. private Hashtable routeHash = new Hashtable();//存放工艺路径
  2305. #endregion
  2306. private void FrmMidPotroast_Load(object sender, System.EventArgs e)
  2307. {
  2308. string strKey = "";
  2309. if (this.Key.IndexOf('@') > 0)
  2310. {
  2311. strKey = this.Key.Substring(this.Key.IndexOf('@') + 1, 5);
  2312. _DEVICE_POSITION = strKey;
  2313. if (_DEVICE_POSITION == "CCM04")
  2314. _DEVICE_POS = 0;
  2315. else
  2316. _DEVICE_POS = Convert.ToInt16(strKey.Substring(strKey.Length - 1, 1));
  2317. }
  2318. //ultraGrid1.Font = new System.Drawing.Font("Tahoma", 9F);
  2319. ultraGrid1.DisplayLayout.Appearance.FontData.SizeInPoints = 10;
  2320. this.dateTimePicker3.Text = System.DateTime.Today.AddDays(-2).ToString("yyyy-MM-dd") + " 00:00";
  2321. this.dateTimePicker4.Text = System.DateTime.Today.ToString("yyyy-MM-dd") + " 23:59";
  2322. if (_DEVICE_POS == 2 || _DEVICE_POS == 3)
  2323. {
  2324. ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[0].DisplayText = "0流";
  2325. ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[1].DisplayText = "1流";
  2326. ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[2].DisplayText = "2流";
  2327. ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[3].DisplayText = "3流";
  2328. ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[4].DisplayText = "4流";
  2329. }
  2330. InitSteel(); //初始化Grid牌号信息
  2331. // GetSqlWhere();
  2332. // GetData();
  2333. //OpenFromGetData();
  2334. InitComboBoxSource();
  2335. if (_DEVICE_POS > -1)
  2336. {
  2337. comboBox2.SelectedIndex = _DEVICE_POS;
  2338. comboBox2.Enabled = false;
  2339. comboBox4.SelectedIndex = _DEVICE_POS;
  2340. }
  2341. //FrmProductQuery ctr = new FrmProductQuery();
  2342. //ctr.reportSelect = new FrmProductQuery.ReportSelect(PlanBlockChange);
  2343. //ctr.reportHandSet = new FrmProductQuery.ReportHandSet(HandleSetClear);
  2344. //if (_DEVICE_POS > -1)
  2345. // ctr.intCcm = _DEVICE_POS;
  2346. ////ctr.RemotingHelp = this.RemotingHelp ;
  2347. //ctr.FrmMain = this;
  2348. ////_commClass = new CommandClass(this.RemotingHelp);
  2349. //this.panel2.Controls.Add(ctr);
  2350. //ctr.Dock = System.Windows.Forms.DockStyle.Fill;
  2351. strOldBlockNo = "";
  2352. strOldCastNo = "";
  2353. ////计划框体展现
  2354. this.panel2.Visible = true;
  2355. this.ultraExpandableGroupBox1.Expanded = true;
  2356. CheckForIllegalCrossThreadCalls = false;
  2357. blText = true;
  2358. this.textBox5.TextChanged += new System.EventHandler(this.textBox5_TextChanged);
  2359. //刷新线程
  2360. ThreadStart ts = new ThreadStart(SetDataThread);
  2361. _refreshDataThread = new Thread(ts);
  2362. _refreshDataThread.Name = "RefreshData";
  2363. _refreshDataThread.Start();
  2364. bHandleCoup = true;
  2365. bExit = false;
  2366. #region//调度切割
  2367. dtpCutTime.Value = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
  2368. steelSchTable = new DataTable("steelSchTable");
  2369. cutSchTable = new DataTable("cutSchTable");
  2370. createTable();
  2371. this.ultraGrid1.DataSource = steelSchTable;
  2372. this.ultraGrid2.DataSource = cutSchTable;
  2373. setGrid1View();
  2374. InitComboBoxSource_Cut();
  2375. this.combConNo.SelectedIndex = 0;
  2376. //分铸机
  2377. if (intCcm == -1)
  2378. {
  2379. this.ccmNumCobo.SelectedIndex = 0;
  2380. }
  2381. else
  2382. {
  2383. this.ccmNumCobo.SelectedIndex = intCcm;
  2384. chkCcmNo.Checked = true;
  2385. chkCcmNo.Enabled = false;
  2386. comboBox3.SelectedIndex = intCcm;
  2387. comboBox3.Enabled = false;
  2388. }
  2389. this.ccmNumCobo.Enabled = false;
  2390. this.combConNo.Enabled = false;
  2391. this.queryBtn_Click(null, new EventArgs());
  2392. #endregion
  2393. }
  2394. /// <summary>
  2395. /// 初始化Grind牌号
  2396. /// </summary>
  2397. private void InitSteel()
  2398. {
  2399. string strErr = "";
  2400. ultraGrid1.DisplayLayout.ValueLists.Add("SteelCode");
  2401. DataSet dsSteel = null; // (DataSet)ClientCommon._RemotingHelp.ExecuteMethod(
  2402. //"lgIntegrationQuery",
  2403. //"Core.LgMes.Server.lgIntegrationQuery.LgGeneralInfo",
  2404. //"GetSteelInfo", new object[] { "where largeflag='1' order by steelcode " }, out strErr);
  2405. if (strErr == "" && dsSteel != null)
  2406. {
  2407. //初始经Grid牌号字段数据集
  2408. for (int i = 0; i < dsSteel.Tables[0].Rows.Count; i++)
  2409. {
  2410. ultraGrid1.DisplayLayout.ValueLists["SteelCode"].ValueListItems.Add(dsSteel.Tables[0].Rows[i]["SteelCode"].ToString(), dsSteel.Tables[0].Rows[i]["Steel"].ToString());
  2411. }
  2412. //绑定单位
  2413. ultraGrid1.DisplayLayout.Bands[0].Columns["SteelCode"].ValueList = ultraGrid1.DisplayLayout.ValueLists["SteelCode"];
  2414. }
  2415. }
  2416. private void InitComboBoxSource()
  2417. {
  2418. this.comboBox3.DataSource = GetDutyData();
  2419. this.comboBox3.DisplayMember = "name";
  2420. this.comboBox3.ValueMember = "id";
  2421. this.comboBox2.DataSource = GetCcmData();
  2422. this.comboBox2.DisplayMember = "name";
  2423. this.comboBox2.ValueMember = "id";
  2424. this.comboBox4.DataSource = GetCcmData();
  2425. this.comboBox4.DisplayMember = "name";
  2426. this.comboBox4.ValueMember = "id";
  2427. this.comboBox5.DataSource = GetFlowData();
  2428. this.comboBox5.DisplayMember = "name";
  2429. this.comboBox5.ValueMember = "id";
  2430. this.comboBox6.DataSource = GetStatusData();
  2431. this.comboBox6.DisplayMember = "name";
  2432. this.comboBox6.ValueMember = "id";
  2433. }
  2434. private DataTable GetDutyData()
  2435. {
  2436. DataTable dt = new DataTable();
  2437. dt.Columns.Add("id", typeof(System.String));
  2438. dt.Columns.Add("name", typeof(System.String));
  2439. dt.Rows.Add(new object[] { "11", "白班甲组" });
  2440. dt.Rows.Add(new object[] { "12", "白班乙组" });
  2441. dt.Rows.Add(new object[] { "13", "白班丙组" });
  2442. dt.Rows.Add(new object[] { "14", "白班丁组" });
  2443. dt.Rows.Add(new object[] { "21", "中班甲组" });
  2444. dt.Rows.Add(new object[] { "22", "中班乙组" });
  2445. dt.Rows.Add(new object[] { "23", "中班丙组" });
  2446. dt.Rows.Add(new object[] { "24", "中班丁组" });
  2447. dt.Rows.Add(new object[] { "31", "夜班甲组" });
  2448. dt.Rows.Add(new object[] { "32", "夜班乙组" });
  2449. dt.Rows.Add(new object[] { "33", "夜班丙组" });
  2450. dt.Rows.Add(new object[] { "34", "夜班丁组" });
  2451. dt.AcceptChanges();
  2452. return dt;
  2453. }
  2454. private DataTable GetCcmData()
  2455. {
  2456. DataTable dt = new DataTable();
  2457. dt.Columns.Add("id", typeof(System.String));
  2458. dt.Columns.Add("name", typeof(System.String));
  2459. dt.Rows.Add(new object[] { "0", "0#铸机" });
  2460. dt.Rows.Add(new object[] { "1", "1#铸机" });
  2461. dt.Rows.Add(new object[] { "2", "2#铸机" });
  2462. dt.Rows.Add(new object[] { "3", "3#铸机" });
  2463. dt.Rows.Add(new object[] { "4", "4#铸机" });
  2464. dt.AcceptChanges();
  2465. return dt;
  2466. }
  2467. private DataTable GetStatusData()
  2468. {
  2469. DataTable dt = new DataTable();
  2470. dt.Columns.Add("id", typeof(System.String));
  2471. dt.Columns.Add("name", typeof(System.String));
  2472. dt.Rows.Add(new object[] { "Y", "是" });
  2473. dt.Rows.Add(new object[] { "N", "否" });
  2474. dt.AcceptChanges();
  2475. return dt;
  2476. }
  2477. private DataTable GetFlowData()
  2478. {
  2479. DataTable dt = new DataTable();
  2480. dt.Columns.Add("id", typeof(System.String));
  2481. dt.Columns.Add("name", typeof(System.String));
  2482. if (_DEVICE_POS == 2 || _DEVICE_POS == 3)
  2483. {
  2484. dt.Rows.Add(new object[] { "1", "0流" });
  2485. dt.Rows.Add(new object[] { "2", "1流" });
  2486. dt.Rows.Add(new object[] { "3", "2流" });
  2487. dt.Rows.Add(new object[] { "4", "3流" });
  2488. dt.Rows.Add(new object[] { "5", "4流" });
  2489. }
  2490. else
  2491. {
  2492. dt.Rows.Add(new object[] { "1", "1流" });
  2493. dt.Rows.Add(new object[] { "2", "2流" });
  2494. dt.Rows.Add(new object[] { "3", "3流" });
  2495. dt.Rows.Add(new object[] { "4", "4流" });
  2496. dt.Rows.Add(new object[] { "5", "5流" });
  2497. }
  2498. dt.AcceptChanges();
  2499. return dt;
  2500. }
  2501. /// <summary>
  2502. /// 设置查询条件
  2503. /// </summary>
  2504. private void GetSqlWhere()
  2505. {
  2506. this._strWhere = " where 1=1 ";
  2507. if (this.checkBox1.Checked)
  2508. {
  2509. this._strWhere += string.Format(" and CUTTIME between to_date('{0}','yyyy-MM-dd hh24:mi') and to_date('{1}','yyyy-MM-dd hh24:mi')",
  2510. Convert.ToDateTime(this.dateTimePicker3.Value).ToString("yyyy-MM-dd HH:mm"),Convert.ToDateTime(this.dateTimePicker4.Value).ToString("yyyy-MM-dd HH:mm"));
  2511. }
  2512. if (this.checkBox2.Checked)
  2513. {
  2514. this._strWhere += string.Format(" and HEATNO = '{0}'", this.textBox1.Text.Trim());
  2515. }
  2516. if (this.checkBox3.Checked)
  2517. {
  2518. this._strWhere += string.Format(" and CCMID = '{0}'", this.comboBox4.SelectedIndex);
  2519. }
  2520. if (!checkBox1.Checked && !checkBox2.Checked && !checkBox3.Checked)
  2521. {
  2522. this._strWhere += string.Format(" and CUTTIME between to_date('{0}','yyyy-MM-dd hh24:mi') and to_date('{1}','yyyy-MM-dd hh24:mi')",
  2523. DateTime.Now.ToString("yyyy-MM-dd") + " 00:00", DateTime.Now.ToString("yyyy-MM-dd") + " 23:59");
  2524. }
  2525. }
  2526. private void GetData()
  2527. {
  2528. try
  2529. { //hengxing
  2530. //CallingMessage par = new CallingMessage();
  2531. //par.ServerName = "lgJobMgt";
  2532. //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  2533. //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  2534. //par.MethodName = "GetCutBillet";
  2535. //par.args = new object[] { _strWhere + " order by cuttime asc,ccmid asc, heatno desc " };
  2536. string strOut = "";
  2537. if (_dsMid != null && _dsMid.Tables.Count > 0)
  2538. {
  2539. _dsMid.Tables.Clear();
  2540. }
  2541. //
  2542. // if( _dsMid != null && _dsMid.Tables[0].Rows.Count > 0 )
  2543. // {
  2544. // _dsMid.Tables[0].Rows.Clear();
  2545. // }
  2546. _dsMid = null; //ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut) as DataSet;
  2547. if (_dsMid != null)
  2548. {
  2549. this.ultraGrid1.DataSource = _dsMid.Tables[0];
  2550. SetSteelSum();
  2551. }
  2552. string strOld = "";
  2553. string strNew = "";
  2554. string strOld_Order = "";
  2555. string strNew_Order = "";
  2556. Color c1 = Color.GhostWhite;//Color.White;
  2557. Color c2 = Color.MintCream;//Color.GhostWhite;//Color.LightCyan;
  2558. Color c3 = c1;
  2559. Color color_OrderNo1 = Color.Blue;
  2560. Color color_OrderNo2 = Color.Black;
  2561. Color color_OrderNo3 = color_OrderNo1;
  2562. for (int i = 0; i < this.ultraGrid1.Rows.Count; i++)
  2563. {
  2564. UltraGridRow ugr = this.ultraGrid1.Rows[i];
  2565. strNew = ugr.Cells["HEATNO"].Value.ToString();
  2566. strNew_Order = ugr.Cells["PRODORDERNO"].Value.ToString();
  2567. if (strOld != strNew)
  2568. {
  2569. if (c3 == c1) c3 = c2;
  2570. else c3 = c1;
  2571. strOld = strNew;
  2572. }
  2573. ugr.Appearance.BackColor = c3;
  2574. if (strOld_Order != strNew_Order)
  2575. {
  2576. if (color_OrderNo3 == color_OrderNo1) color_OrderNo3 = color_OrderNo2;
  2577. else color_OrderNo3 = color_OrderNo1;
  2578. strOld_Order = strNew_Order;
  2579. }
  2580. ugr.Appearance.ForeColor = color_OrderNo3;
  2581. //ugr.Cells["PRODORDERNO"].Appearance.ForeColor = color_OrderNo3;
  2582. //ugr.Cells["ORDERNO"].Appearance.ForeColor = color_OrderNo3;
  2583. }
  2584. }
  2585. catch (Exception ex)
  2586. {
  2587. string strMsg = ex.Message;
  2588. }
  2589. }
  2590. private void ultraGrid1_AfterRowActivate(object sender, System.EventArgs e)
  2591. {
  2592. if (this.ultraGrid1.ActiveRow == null) return;
  2593. UltraGridRow ugr = this.ultraGrid1.ActiveRow;
  2594. int i1 = 0; //炉内切割数
  2595. int i2 = 0; //浇次内炉数
  2596. string str1 = ugr.Cells["HEATNO"].Value.ToString(); //smeltingid 炉号
  2597. string str2 = ugr.Cells["MOULDNO"].Value.ToString(); //castno 浇次号
  2598. string str3 = "";
  2599. for (int i = 0; i < this.ultraGrid1.Rows.Count; i++)
  2600. {
  2601. UltraGridRow ugrf = this.ultraGrid1.Rows[i];
  2602. if (str2 == ugrf.Cells["MOULDNO"].Value.ToString())
  2603. {
  2604. if (str1 == ugrf.Cells["HEATNO"].Value.ToString())
  2605. {
  2606. i1++;
  2607. }
  2608. if (str3 != ugrf.Cells["HEATNO"].Value.ToString())
  2609. {
  2610. i2++;
  2611. str3 = ugrf.Cells["HEATNO"].Value.ToString();
  2612. }
  2613. }
  2614. }
  2615. try
  2616. {
  2617. this.richTextBox1.Text = "浇次内炉数:" + i2.ToString() + " 炉内切割数:" + i1.ToString();
  2618. }
  2619. catch (Exception ex)
  2620. {
  2621. MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
  2622. }
  2623. this.textBox2.Text = ugr.Cells[0].Value.ToString();
  2624. this.textBox4.Text = ugr.Cells[1].Value.ToString();
  2625. this.comboBox2.Text = ugr.Cells[2].Value.ToString();
  2626. this.comboBox5.Text = ugr.Cells[3].Value.ToString();
  2627. this.textBox5.Text = ugr.Cells[4].Value.ToString();
  2628. this.textBox8.Text = ugr.Cells[5].Value.ToString();
  2629. strSteelCode = ugr.Cells["SteelCode"].Value.ToString();
  2630. if (ugr.Cells[6].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[6].Value.ToString()))
  2631. this.textBox6.Text = "";
  2632. else
  2633. this.textBox6.Text = Convert.ToSingle(ugr.Cells[6].Value).ToString();
  2634. if (ugr.Cells[7].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[7].Value.ToString()))
  2635. this.textBox7.Text = "";
  2636. else
  2637. this.textBox7.Text = Convert.ToSingle(ugr.Cells[7].Value).ToString();
  2638. if (ugr.Cells[8].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[8].Value.ToString()))
  2639. this.textBox3.Text = "";
  2640. else
  2641. this.textBox3.Text = Convert.ToSingle(ugr.Cells[8].Value).ToString();
  2642. if (ugr.Cells[9].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[9].Value.ToString()))
  2643. this.textBox9.Text = "";
  2644. else
  2645. this.textBox9.Text = Convert.ToSingle(ugr.Cells[9].Value).ToString();
  2646. if (ugr.Cells[10].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[10].Value.ToString()))
  2647. this.textBox10.Text = "";
  2648. else
  2649. this.textBox10.Text = Convert.ToSingle(ugr.Cells[10].Value).ToString();
  2650. if (ugr.Cells[11].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[11].Value.ToString()))
  2651. this.textBox11.Text = "";
  2652. else
  2653. this.textBox11.Text = Convert.ToString(Math.Round(Convert.ToSingle(ugr.Cells[11].Value), 3));
  2654. if (ugr.Cells[12].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[12].Value.ToString()))
  2655. this.textBox12.Text = "";
  2656. else
  2657. this.textBox12.Text = Convert.ToSingle(ugr.Cells[12].Value).ToString();
  2658. if (ugr.Cells[18].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[18].Value.ToString()))
  2659. this.textBox13.Text = "";
  2660. else
  2661. this.textBox13.Text = ugr.Cells[18].Value.ToString();
  2662. if (ugr.Cells[20].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[20].Value.ToString()))
  2663. this.textBox14.Text = "";
  2664. else
  2665. this.textBox14.Text = ugr.Cells[20].Value.ToString();
  2666. if (ugr.Cells[19].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[19].Value.ToString()))
  2667. this.textBox15.Text = "";
  2668. else
  2669. this.textBox15.Text = ugr.Cells[19].Value.ToString();
  2670. try
  2671. {
  2672. this.dateTimePicker5.Value = Convert.ToDateTime(ugr.Cells[13].Value);
  2673. if (ugr.Cells[14].Value != System.DBNull.Value)
  2674. this.comboBox3.Text = ugr.Cells[14].Value.ToString();
  2675. else
  2676. {
  2677. this.comboBox3.SelectedIndex = -1;
  2678. this.comboBox3.Text = "";
  2679. }
  2680. if (ugr.Cells[15] == null)
  2681. this.comboBox6.Text = "N";
  2682. else
  2683. this.comboBox6.Text = ugr.Cells[15].Value.ToString();
  2684. }
  2685. catch { }
  2686. }
  2687. #endregion
  2688. #region " ToolBar Event "
  2689. public override void ToolBar_Click(object sender, string ToolbarKey)
  2690. {
  2691. switch (ToolbarKey)
  2692. {
  2693. case "add":
  2694. if (!this.ultraExpandableGroupBox1.Expanded)
  2695. {
  2696. this.ultraExpandableGroupBox1.Expanded = true;
  2697. return;
  2698. }
  2699. Add();
  2700. break;
  2701. case "del":
  2702. Del();
  2703. break;
  2704. case "edit":
  2705. if (!this.ultraExpandableGroupBox1.Expanded)
  2706. {
  2707. this.ultraExpandableGroupBox1.Expanded = true;
  2708. return;
  2709. }
  2710. Edit();
  2711. break;
  2712. case "query":
  2713. Query();
  2714. break;
  2715. case "plan":
  2716. Plan();
  2717. break;
  2718. case "Existplan":
  2719. ShowToolBans();
  2720. break;
  2721. }
  2722. }
  2723. private void ShowToolBans()
  2724. {
  2725. if (this.panel2.Visible)
  2726. {
  2727. //计划框体展现
  2728. this.panel2.Visible = false;
  2729. this.ultraExpandableGroupBox1.Expanded = false;
  2730. }
  2731. else
  2732. {
  2733. //计划框体展现
  2734. this.panel2.Visible = true;
  2735. this.ultraExpandableGroupBox1.Expanded = true;
  2736. }
  2737. }
  2738. private bool IsValidOfHeatNo(string strSmeltingID)
  2739. {
  2740. if (strSmeltingID == "")
  2741. return false;
  2742. if (strSmeltingID.Length != 8)
  2743. {
  2744. MessageBox.Show("请输入炉号错误,长度为8位,正确炉号如:09200001!");
  2745. return false;
  2746. }
  2747. //if (strSmeltingID.Substring(0, 1) != "0")
  2748. //{
  2749. // MessageBox.Show("请输入炼号错误,第一位不是'0',正确炉号如:09200001!");
  2750. // return false;
  2751. //}
  2752. if (Convert.ToUInt16(strSmeltingID.Substring(2, 1)) > 3)
  2753. {
  2754. MessageBox.Show("请输入炼号错误,第三位不是'1','2'或'3',正确炉号如:09200001!");
  2755. return false;
  2756. }
  2757. return true;
  2758. }
  2759. public string yncheck()
  2760. {
  2761. string strLastFla = "";
  2762. if (this.ultraGrid1.Rows.Count < 1)
  2763. {
  2764. strLastFla = "N";
  2765. }
  2766. if (this.ultraGrid1.Rows.Count > 0)
  2767. {
  2768. UltraGridRow ugr = this.ultraGrid1.Rows[ultraGrid1.Rows.Count - 1];
  2769. strLastFla = ugr.Cells["LASTBILLETFLAG"].Value.ToString();
  2770. }
  2771. return Convert.ToString(strLastFla);
  2772. }
  2773. /// <summary>
  2774. /// 获取指定炉号的生产状态
  2775. /// </summary>
  2776. /// <param name="strHeatNo"></param>
  2777. /// <returns></returns>
  2778. private bool GetHeatState(string strHeatNo)
  2779. {
  2780. string strErr = "";
  2781. string strState = "";
  2782. bool blState = false;
  2783. DataSet ds =null; // (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("lgJobMgt",
  2784. //"Core.LgMes.Server.lgJobMgt.classCutJob",
  2785. //"GetHeatState", new object[] { strHeatNo }, out strErr);
  2786. if (strErr == "")
  2787. {
  2788. if (ds != null && ds.Tables[0].Rows.Count > 0)
  2789. strState = ds.Tables[0].Rows[0]["Heat_state"].ToString();
  2790. if (strState == "08" || strState == "09")
  2791. blState = true;
  2792. }
  2793. return blState;
  2794. }
  2795. private void Add()
  2796. {
  2797. LastUpdateTime = DateTime.Now;
  2798. string strLastFla = "";
  2799. //只有在连铸机生产或已生产完的
  2800. if (!GetHeatState(textBox2.Text))
  2801. {
  2802. MessageBox.Show("炉号【" + textBox2.Text + "】没有上连铸机生产,不能生成坯料!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  2803. return;
  2804. }
  2805. if (this.ultraGrid1.Rows.Count < 1)
  2806. {
  2807. strLastFla = "N";
  2808. }
  2809. if (this.ultraGrid1.Rows.Count > 0)
  2810. {
  2811. UltraGridRow ugr = this.ultraGrid1.Rows[ultraGrid1.Rows.Count - 1];
  2812. strLastFla = ugr.Cells["LASTBILLETFLAG"].Value.ToString();
  2813. }
  2814. if (strLastFla == "Y")
  2815. {
  2816. MessageBox.Show("请将本炉最后一块置成否后再增加支数");
  2817. return;
  2818. }
  2819. if (this.textBox2.Text.Trim().Length == 0)
  2820. {
  2821. MessageBox.Show("请输入熔炼号!");
  2822. return;
  2823. }
  2824. else
  2825. {
  2826. string strHID = this.textBox2.Text.Trim();
  2827. strHID = strHID.ToUpper();
  2828. if (!IsValidOfHeatNo(strHID))
  2829. return;
  2830. this.textBox2.Text = strHID.ToUpper();
  2831. }
  2832. if (this.comboBox2.Text.Trim().Length == 0)
  2833. {
  2834. MessageBox.Show("请输入铸机号!");
  2835. return;
  2836. }
  2837. if (this.comboBox5.Text.Trim().Length == 0)
  2838. {
  2839. MessageBox.Show("请输入铸流号!");
  2840. return;
  2841. }
  2842. if (this.textBox5.Text.Trim().Length == 0)
  2843. {
  2844. MessageBox.Show("请输入切割序号!");
  2845. return;
  2846. }
  2847. if (string.IsNullOrEmpty(this.strV_BilletID))
  2848. {
  2849. MessageBox.Show("请选择切割计划!");
  2850. return;
  2851. }
  2852. //if (string.IsNullOrEmpty(strOrderNO))
  2853. //{
  2854. // MessageBox.Show("请选择切割计划!");
  2855. // return;
  2856. //}
  2857. ArrayList ar = GetCurrValue();
  2858. string strCastNo = ar[5].ToString();
  2859. string strHeatNo = ar[0].ToString();
  2860. int nHeatNum = 0;
  2861. for (int i = 0; i < this.ultraGrid1.Rows.Count; i++)
  2862. {
  2863. UltraGridRow ugrf = this.ultraGrid1.Rows[i];
  2864. if (strCastNo == ugrf.Cells["MOULDNO"].Value.ToString())
  2865. {
  2866. if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString())
  2867. {
  2868. int nInt = Convert.ToInt32(ugrf.Cells["CUTSEQNO"].Value.ToString());
  2869. if (nInt > nHeatNum) nHeatNum = nInt;
  2870. }
  2871. }
  2872. }
  2873. nHeatNum++;
  2874. ar[4] = nHeatNum.ToString();
  2875. ar[13] = DateTime.Now.ToString();
  2876. string strHeatNum = nHeatNum.ToString();
  2877. if (nHeatNum < 10) ar[16] = strHeatNo.Substring(0, 8) + "0" + strHeatNum;
  2878. else if (nHeatNum >= 100) ar[16] = strHeatNo.Substring(0, 8) + strHeatNum.Substring(1, 2);
  2879. else ar[16] = strHeatNo.Substring(0, 8) + strHeatNum;
  2880. if (ar == null)
  2881. {
  2882. MessageBox.Show("输入数据格式错误!");
  2883. return;
  2884. }
  2885. //////////////////
  2886. string strMsg = "本浇注位是" + CCMN0 + ",您已经标志标示了一个最后块, 操作失败!!!";
  2887. // if( comboBox6.Text == "是" ) nLastBlock = nLastBlock + 1;
  2888. // if( nLastBlock > 1 )
  2889. // {
  2890. // MessageBox.Show( strMsg ,"提示",MessageBoxButtons.OK,MessageBoxIcon.Warning);
  2891. // return;
  2892. // }
  2893. int nCutSequence = -1;
  2894. //检查切割顺序号的合法性
  2895. try
  2896. {
  2897. nCutSequence = Convert.ToInt32(this.textBox5.Text);
  2898. }
  2899. catch
  2900. {
  2901. MessageBox.Show("您输入的切割顺序号不对,应该输入数字,\r\n且要注意输入法采用半角。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
  2902. return;
  2903. }
  2904. //检查是否有两个相同的切割顺序
  2905. if (CheckDuplicatRec(nHeatNum))
  2906. {
  2907. MessageBox.Show("您在同一炉中设置了两个相同的切割顺序,操作失败!!!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
  2908. return;
  2909. }
  2910. //////////////////////
  2911. try
  2912. {
  2913. //hengxing
  2914. //CallingMessage par = new CallingMessage();
  2915. //par.ServerName = "lgJobMgt";
  2916. //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  2917. //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  2918. //par.MethodName = "InsetCutBillet";
  2919. //par.args = new object[] { ar };
  2920. string strOut = "";
  2921. object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  2922. if (Convert.ToInt32(obj) < 1)
  2923. {
  2924. MessageBox.Show("数据提交失败!\n" + strOut);
  2925. }
  2926. else
  2927. {
  2928. DataRow dr = (this.ultraGrid1.DataSource as DataTable).NewRow();
  2929. for (int i = 0; i < dr.Table.Columns.Count; i++)
  2930. {
  2931. try
  2932. {
  2933. dr[i] = ar[i];
  2934. }
  2935. catch
  2936. {
  2937. dr[i] = DBNull.Value;
  2938. }
  2939. }
  2940. (this.ultraGrid1.DataSource as DataTable).Rows.InsertAt(dr, 0);
  2941. (this.ultraGrid1.DataSource as DataTable).AcceptChanges();
  2942. this.ultraGrid1.Rows[0].Activate();
  2943. }
  2944. }
  2945. catch (Exception ex)
  2946. {
  2947. Console.WriteLine(ex.Message);
  2948. }
  2949. Query();
  2950. if (ultraGrid1.Rows.Count > 0)
  2951. ultraGrid1.Rows[ultraGrid1.Rows.Count - 1].Activated = true;
  2952. }
  2953. private void Del()
  2954. {
  2955. LastUpdateTime = DateTime.Now;
  2956. int i = 0;
  2957. int nCutNo = 0;
  2958. int nSelCutNo = 0;
  2959. string strHeatNo = "";
  2960. string strCastNo = "";
  2961. string strErr = "";
  2962. UltraGridRow ugr = this.ultraGrid1.ActiveRow;
  2963. if (ugr == null)
  2964. {
  2965. MessageBox.Show("请选择要删除的行!");
  2966. return;
  2967. }
  2968. strHeatNo = ugr.Cells["HEATNO"].Value.ToString();
  2969. strCastNo = ugr.Cells["MOULDNO"].Value.ToString();
  2970. //DataSet dsCount = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("lgJobMgt",
  2971. // "Core.LgMes.Server.lgJobMgt.classCutJob",
  2972. // "GetMouldNoHeatnoCount", new object[] { strCastNo, strHeatNo }, out strErr);
  2973. //if (strErr == "" && dsCount !=null)
  2974. //{
  2975. // // nSelCutNo = Convert.ToInt32(ugr.Cells["CUTSEQNO"].Value.ToString());
  2976. // if (dsCount.Tables[0].Rows.Count > 0)
  2977. // nSelCutNo = Convert.ToInt16(dsCount.Tables[0].Rows[0][0]);
  2978. //}
  2979. //for (int j = 0; j < this.ultraGrid1.Rows.Count; j++)
  2980. //{
  2981. // UltraGridRow ugrf = this.ultraGrid1.Rows[j];
  2982. // if (strCastNo == ugrf.Cells["MOULDNO"].Value.ToString())
  2983. // {
  2984. // if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString())
  2985. // {
  2986. // nCutNo++;
  2987. // }
  2988. // }
  2989. //}
  2990. //if (nCutNo != nSelCutNo)
  2991. //{
  2992. // MessageBox.Show("选择的钢坯不是本浇次本炉最后一支,请选择要最后一行删除!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  2993. // return;
  2994. //}
  2995. FrmSelDel frm = new FrmSelDel(ob);
  2996. frm.ShowDialog();
  2997. i = ugr.Index;
  2998. string strWhere = "";
  2999. if (frm._Flag == "A")
  3000. {
  3001. strWhere = " where BILLETCODE = '" + ugr.Cells[20].Value.ToString() + "'";
  3002. }
  3003. else if (frm._Flag == "B")
  3004. {
  3005. strWhere = " where HEATNO = '" + ugr.Cells[0].Value.ToString() + "'";
  3006. }
  3007. else
  3008. {
  3009. return;
  3010. }
  3011. try
  3012. {
  3013. //hengxing
  3014. //CallingMessage par = new CallingMessage();
  3015. //par.ServerName = "lgJobMgt";
  3016. //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  3017. //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  3018. //par.MethodName = "DelCutBillet";
  3019. //par.args = new object[] { strWhere };
  3020. string strOut = "";
  3021. //ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  3022. if (strOut != "")
  3023. {
  3024. MessageBox.Show(strOut, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  3025. return;
  3026. }
  3027. }
  3028. catch (Exception ex)
  3029. {
  3030. MessageBox.Show(ex.Message);
  3031. return;
  3032. }
  3033. if (frm._Flag == "B")
  3034. {
  3035. this.GetSqlWhere();
  3036. this.GetData();
  3037. return;
  3038. }
  3039. this.ultraGrid1.ActiveRow.Delete(false);
  3040. this.ultraGrid1.UpdateData();
  3041. try
  3042. {
  3043. this.ultraGrid1.Rows[i].Activate();
  3044. }
  3045. catch
  3046. {
  3047. int count = this.ultraGrid1.Rows.Count;
  3048. if (count > 0)
  3049. this.ultraGrid1.Rows[count - 1].Activate();
  3050. }
  3051. }
  3052. //本函数检查是否有重复的记录( 重点是切割顺序 )
  3053. private bool CheckDuplicatRec(int nCutSeqence)
  3054. {
  3055. // true 不合法
  3056. if (nCutSeqence == -1) return true;
  3057. //再次在恰当的数据源查找
  3058. DataTable dtFind = ultraGrid1.DataSource as DataTable;
  3059. //展现的数据行数
  3060. try
  3061. {
  3062. foreach (DataRow dr in dtFind.Rows)
  3063. {
  3064. int nInt = Convert.ToInt32(dr["CUTSEQNO"].ToString());
  3065. if (nCutSeqence == nInt)
  3066. return true;
  3067. }
  3068. }
  3069. catch { }
  3070. //false 合法
  3071. return false;
  3072. }
  3073. //本函数检查是否有两个记录都标示是最后一块
  3074. private int CheckLastBlockCount()
  3075. {
  3076. /*//首先停止现程的扫描
  3077. LastUpdateTime = DateTime.Now;
  3078. //再次在恰当的数据源查找
  3079. DataTable dtFind = ultraGrid1.DataSource as DataTable;
  3080. //展现的数据行数
  3081. //ultraGrid1.Rows.Count+1
  3082. int nRowCount = dtFind.Rows.Count;
  3083. int CheckCount = 0;
  3084. int MaxRows =0;
  3085. foreach( DataRow dr in dtFind.Rows )
  3086. {
  3087. MaxRows=MaxRows+1;
  3088. if (MaxRows==(ultraGrid1.Rows.Count))
  3089. break;
  3090. if( dr["LASTBILLETFLAG"].ToString() == "Y" )
  3091. CheckCount = CheckCount + 1;
  3092. }*/
  3093. bool bHasLastCutBillet = false;
  3094. string strCastNo = "";
  3095. string strHeatNo = "";
  3096. int CheckCount = 0;
  3097. UltraGridRow ugr = this.ultraGrid1.ActiveRow;
  3098. strHeatNo = ugr.Cells["HEATNO"].Value.ToString();
  3099. strCastNo = ugr.Cells["MOULDNO"].Value.ToString();
  3100. for (int j = 0; j < this.ultraGrid1.Rows.Count; j++)
  3101. {
  3102. UltraGridRow ugrf = this.ultraGrid1.Rows[j];
  3103. if (strCastNo == ugrf.Cells["MOULDNO"].Value.ToString())
  3104. {
  3105. if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString())
  3106. {
  3107. if (ugrf.Cells["LASTBILLETFLAG"].Value.ToString() == "Y")
  3108. {
  3109. bHasLastCutBillet = true;
  3110. break;
  3111. }
  3112. }
  3113. }
  3114. }
  3115. if (bHasLastCutBillet) CheckCount = 1;
  3116. else CheckCount = 0;
  3117. return CheckCount;
  3118. }
  3119. private bool CheckAlpbetCaption(string strSmeltiID)
  3120. {
  3121. //查找z
  3122. int nIndex = strSmeltiID.IndexOf("z");
  3123. if (nIndex >= 0) return false;
  3124. return true;
  3125. }
  3126. private string ChangeCaptionAuto(string strSmeltingID)
  3127. {
  3128. //查找
  3129. int nIndex = strSmeltingID.IndexOf("z");
  3130. string strNewSmeltingID = strSmeltingID.Substring(0, nIndex);
  3131. strNewSmeltingID = strNewSmeltingID + "Z";
  3132. strNewSmeltingID = strNewSmeltingID + strSmeltingID.Substring(nIndex, strNewSmeltingID.Length - nIndex - 1);
  3133. return strNewSmeltingID;
  3134. }
  3135. private void Edit()
  3136. {
  3137. LastUpdateTime = DateTime.Now;
  3138. UltraGridRow ugr = this.ultraGrid1.ActiveRow;
  3139. if (ugr == null)
  3140. {
  3141. MessageBox.Show("请选择要删除的行!");
  3142. return;
  3143. }
  3144. if (this.ultraGrid1.ActiveRow == null)
  3145. {
  3146. MessageBox.Show("请选择所要修改的行!");
  3147. return;
  3148. }
  3149. if (this.textBox2.Text.Trim().Length == 0)
  3150. {
  3151. MessageBox.Show("请输入熔炼号!");
  3152. return;
  3153. }
  3154. else
  3155. {
  3156. string strHID = this.textBox2.Text.Trim();
  3157. strHID = strHID.ToUpper();
  3158. if (!IsValidOfHeatNo(strHID))
  3159. return;
  3160. this.textBox2.Text = strHID.ToUpper();
  3161. }
  3162. if (this.textBox13.Text.Trim().Length == 0)
  3163. {
  3164. MessageBox.Show("请输入钢坯号!");
  3165. return;
  3166. }
  3167. if (this.comboBox2.Text.Trim().Length == 0)
  3168. {
  3169. MessageBox.Show("请输入铸机号!");
  3170. return;
  3171. }
  3172. if (this.comboBox5.Text.Trim().Length == 0)
  3173. {
  3174. MessageBox.Show("请输入铸流号!");
  3175. return;
  3176. }
  3177. if (this.textBox5.Text.Trim().Length == 0)
  3178. {
  3179. MessageBox.Show("请输入切割序号!");
  3180. return;
  3181. }
  3182. ArrayList ar = GetCurrValue();
  3183. if (ar == null)
  3184. {
  3185. MessageBox.Show("输入数据格式错误!");
  3186. return;
  3187. }
  3188. string strChildNo = this.textBox15.Text.Trim();
  3189. if (strChildNo.Length == 0) strChildNo = "NULL";
  3190. //ar.Add( strChildNo );
  3191. int nSelCutNo = Convert.ToInt32(ugr.Cells["CUTSEQNO"].Value.ToString());
  3192. int nCutSequence = -1;
  3193. //检查切割顺序号的合法性
  3194. try
  3195. {
  3196. nCutSequence = Convert.ToInt32(this.textBox5.Text);
  3197. }
  3198. catch
  3199. {
  3200. MessageBox.Show("您输入的切割顺序号不对,应该输入数字,\r\n且要注意输入法采用半角。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
  3201. return;
  3202. }
  3203. if (nCutSequence != nSelCutNo)
  3204. {
  3205. //检查是否有两个相同的切割顺序
  3206. if (CheckDuplicatRec(nCutSequence))
  3207. {
  3208. MessageBox.Show("您在同一路中设置了两个相同的切割顺序,这将导致记录重复,操作失败!!!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
  3209. return;
  3210. }
  3211. }
  3212. string strLastFlag = ugr.Cells["LASTBILLETFLAG"].Value.ToString();
  3213. //if( comboBox6.Text == "是" ) nLastBlock = nLastBlock + 1;
  3214. int nMaxCutNo = 0;
  3215. string strHeatNo = ugr.Cells["HEATNO"].Value.ToString();
  3216. string strCastNo = ugr.Cells["MOULDNO"].Value.ToString();
  3217. for (int j = 0; j < this.ultraGrid1.Rows.Count; j++)
  3218. {
  3219. UltraGridRow ugrf = this.ultraGrid1.Rows[j];
  3220. if (strCastNo == ugrf.Cells["MOULDNO"].Value.ToString())
  3221. {
  3222. if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString())
  3223. {
  3224. int nTempCutNo = Convert.ToInt32(ugrf.Cells["CUTSEQNO"].Value);
  3225. if (nTempCutNo > nMaxCutNo) nMaxCutNo = nTempCutNo;
  3226. }
  3227. }
  3228. }
  3229. string strMsg = "本浇注位是" + CCMN0 + ":" + Environment.NewLine + "修改数据禁用,请将最后一块的‘是’改为‘否’后再修改数据!!";
  3230. int nLastBlock = CheckLastBlockCount();//如果是最后一块,需要检查是否多置了标志
  3231. if (nLastBlock >= 1)
  3232. {
  3233. bool bShowMsg = true;
  3234. if (nSelCutNo == nMaxCutNo)
  3235. {
  3236. if (strLastFlag == "N" && comboBox6.Text.Trim() == "是")
  3237. {
  3238. bShowMsg = false;
  3239. }
  3240. else if (strLastFlag == "Y" && comboBox6.Text.Trim() == "否")
  3241. {
  3242. bShowMsg = false;
  3243. }
  3244. else
  3245. {
  3246. bShowMsg = true;
  3247. }
  3248. }
  3249. if (bShowMsg)
  3250. {
  3251. MessageBox.Show(strMsg, "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
  3252. return;
  3253. }
  3254. }
  3255. if (strLastFlag == "N" && comboBox6.Text.Trim() == "是")
  3256. {
  3257. if (nSelCutNo != nMaxCutNo)
  3258. {
  3259. MessageBox.Show("请在最后一行置为'是'", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
  3260. return;
  3261. }
  3262. }
  3263. try
  3264. {
  3265. //hengxing
  3266. //CallingMessage par = new CallingMessage();
  3267. //par.ServerName = "lgJobMgt";
  3268. //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  3269. //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  3270. //par.MethodName = "UpdateCutBilletEx";
  3271. //par.args = new object[] { ar };
  3272. string strOut = "";
  3273. object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  3274. if (Convert.ToInt32(obj) < 1)
  3275. {
  3276. MessageBox.Show("数据提交失败!\n" + strOut);
  3277. }
  3278. else
  3279. {
  3280. //this.ultraGrid1.UpdateData();
  3281. Query();
  3282. if (ultraGrid1.Rows.Count > 0)
  3283. ultraGrid1.Rows[ultraGrid1.Rows.Count - 1].Activated = true;
  3284. //if (i == this.ultraGrid1.Rows.Count - 1)
  3285. //{
  3286. // ugr.Activated = true;
  3287. // ugr.Selected = true;
  3288. //}
  3289. //else
  3290. //{
  3291. // ugr.Activated = false;
  3292. // ugr.Selected = false;
  3293. //}
  3294. }
  3295. }
  3296. catch (Exception ex)
  3297. {
  3298. MessageBox.Show(ex.Message);
  3299. return;
  3300. }
  3301. }
  3302. private void Exit()
  3303. {
  3304. this.Close();
  3305. }
  3306. public void Query()
  3307. {
  3308. LastUpdateTime = DateTime.Now;
  3309. this.GetSqlWhere();
  3310. this.GetData();
  3311. }
  3312. //切换到手动匹配模式
  3313. private bool bHandleCoup = false;
  3314. private void Plan()
  3315. {
  3316. if (bHandleCoup)
  3317. {
  3318. bHandleCoup = false;
  3319. }
  3320. else
  3321. {
  3322. bHandleCoup = true;
  3323. if (_dsMid != null && _dsMid.Tables.Count > 0)
  3324. {
  3325. _dsMid.Tables[0].Rows.Clear();
  3326. this.ultraGrid1.DataSource = _dsMid.Tables[0];
  3327. ultraGrid1.DataBind();
  3328. ultraGrid1.Refresh();
  3329. }
  3330. }
  3331. //上次开始的计时更新时间(开始用到)
  3332. LastUpdateTime = DateTime.Now;
  3333. strOldBlockNo = "";
  3334. strOldCastNo = "";
  3335. //将两个grid利用FixRow分开
  3336. SplitTwoGrid();
  3337. //装载两个对应关系的数据
  3338. RalationUIChange();
  3339. }
  3340. //将两个grid利用FixRow分开
  3341. private void SplitTwoGrid()
  3342. {
  3343. //if( bHandleCoup )
  3344. //{
  3345. // this.ultraGrid1.DisplayLayout.Override.FixedRowsLimit = 5;
  3346. // this.ultraGrid1.DisplayLayout.Override.FixedRowStyle = FixedRowStyle.Top;
  3347. // this.ultraGrid1.DisplayLayout.Override.FixedRowIndicator = FixedRowIndicator.Button;
  3348. // this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparator = SpecialRowSeparator.FixedRows;
  3349. // this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparatorHeight = 4;
  3350. //}
  3351. //else
  3352. //{
  3353. this.ultraGrid1.DisplayLayout.Override.FixedRowsLimit = -1;
  3354. this.ultraGrid1.DisplayLayout.Override.FixedRowStyle = FixedRowStyle.Default;
  3355. this.ultraGrid1.DisplayLayout.Override.FixedRowIndicator = FixedRowIndicator.Default;
  3356. this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparator = SpecialRowSeparator.Default;
  3357. this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparatorHeight = -1;
  3358. //}
  3359. }
  3360. //装载两个对应关系的数据
  3361. private void RalationUIChange()
  3362. {
  3363. if (bHandleCoup)
  3364. {
  3365. //ultraToolbarsManager1.Toolbars[0].Tools[5].SharedProps.Caption = "关联察看";
  3366. }
  3367. else
  3368. {
  3369. // ultraToolbarsManager1.Toolbars[0].Tools[5].SharedProps.Caption = "单独查询";
  3370. }
  3371. }
  3372. private ArrayList GetCurrValue()
  3373. {
  3374. ArrayList ar = new ArrayList();
  3375. try
  3376. {
  3377. ar.Add(this.textBox2.Text.Trim());
  3378. ar.Add(this.textBox4.Text.Trim());
  3379. ar.Add(this.comboBox2.SelectedIndex);
  3380. ar.Add(this.comboBox5.SelectedIndex);
  3381. ar.Add(this.textBox5.Text.Trim());
  3382. ar.Add(this.textBox8.Text.Trim());
  3383. ar.Add(GetSingle(this.textBox6.Text.Trim()));
  3384. ar.Add(GetSingle(this.textBox7.Text.Trim()));
  3385. ar.Add(GetSingle(this.textBox3.Text.Trim()));
  3386. ar.Add(GetSingle(this.textBox9.Text.Trim()));
  3387. ar.Add(GetSingle(this.textBox10.Text.Trim()));
  3388. ar.Add(GetSingle(this.textBox11.Text.Trim()));
  3389. ar.Add(GetSingle(this.textBox12.Text.Trim()));
  3390. ar.Add(this.dateTimePicker5.Value.ToString());//.ToString("yyyy-MM-dd HH:mm:ss")
  3391. ar.Add(this.comboBox3.SelectedIndex);
  3392. if (this.comboBox6.SelectedIndex == -1)
  3393. ar.Add("N");
  3394. else
  3395. ar.Add(this.comboBox6.SelectedIndex);
  3396. ar.Add(this.textBox13.Text.Trim());
  3397. ar.Add(this.textBox14.Text.Trim());
  3398. ar.Add(this.UserInfo.GetUserName()); //add on 2009-04-23 记录操作人员
  3399. ar.Add(strV_Heat_ID);
  3400. ar.Add(strV_BilletID);
  3401. ar.Add(strOrderNO);
  3402. ar.Add(strProdOrderNO);
  3403. ar.Add(strSurplusFlag);
  3404. ar.Add(strSteelCode);
  3405. ar.Add(strProductline);
  3406. ar.Add(strStandardsCode);
  3407. ar.Add(strStandardRemak);
  3408. ar.Add(strCustomer_Key);
  3409. return ar;
  3410. }
  3411. catch
  3412. {
  3413. return null;
  3414. }
  3415. }
  3416. private object GetSingle(string str)
  3417. {
  3418. if (str == "")
  3419. return "null";
  3420. else
  3421. return Convert.ToSingle(str);
  3422. }
  3423. #endregion
  3424. private void checkBox1_CheckedChanged(object sender, System.EventArgs e)
  3425. {
  3426. this.dateTimePicker3.Enabled = this.checkBox1.Checked;
  3427. this.dateTimePicker4.Enabled = this.checkBox1.Checked;
  3428. }
  3429. private void checkBox2_CheckedChanged(object sender, System.EventArgs e)
  3430. {
  3431. if (this.checkBox2.Checked)
  3432. {
  3433. this.textBox1.Enabled = true;
  3434. this.textBox1.BackColor = Color.White;
  3435. }
  3436. else
  3437. {
  3438. this.textBox1.Enabled = false;
  3439. this.textBox1.BackColor = Color.Gainsboro;
  3440. }
  3441. }
  3442. private void checkBox3_CheckedChanged(object sender, System.EventArgs e)
  3443. {
  3444. if (this.checkBox3.Checked)
  3445. {
  3446. if (_DEVICE_POS == -1)
  3447. this.comboBox4.Enabled = true;
  3448. this.comboBox4.BackColor = Color.White;
  3449. }
  3450. else
  3451. {
  3452. if (_DEVICE_POS == -1)
  3453. this.comboBox4.Enabled = false;
  3454. this.comboBox4.BackColor = Color.Gainsboro;
  3455. }
  3456. }
  3457. private void textBox5_TextChanged(object sender, System.EventArgs e)
  3458. {
  3459. try
  3460. {
  3461. this.textBox13.Text = "";
  3462. if (this.textBox5.Text.Trim().Length == 0)
  3463. return;
  3464. if (this.textBox2.Text.Trim().Length == 0 && blText == false)
  3465. {
  3466. MessageBox.Show("请先输入熔炼号!");
  3467. return;
  3468. }
  3469. else
  3470. {
  3471. string strHID = this.textBox2.Text.Trim();
  3472. strHID = strHID.ToUpper();
  3473. if (!IsValidOfHeatNo(strHID))
  3474. return;
  3475. this.textBox2.Text = strHID.ToUpper();
  3476. }
  3477. int cutno = Convert.ToInt32(this.textBox5.Text.Trim());
  3478. string heatno = this.textBox1.Text.Trim();
  3479. string strCutNo = "";
  3480. strCutNo = cutno.ToString();
  3481. if (strCutNo.Length == 1) strCutNo = "0" + strCutNo;
  3482. if (strCutNo.Length == 3)
  3483. {
  3484. int nNum = cutno;
  3485. if (nNum >= 100 && nNum < 110) strCutNo = "A" + strCutNo.Substring(2, 1);
  3486. if (nNum >= 110 && nNum < 120) strCutNo = "B" + strCutNo.Substring(2, 1);
  3487. if (nNum >= 120 && nNum < 130) strCutNo = "C" + strCutNo.Substring(2, 1);
  3488. if (nNum >= 130 && nNum < 140) strCutNo = "D" + strCutNo.Substring(2, 1);
  3489. if (nNum >= 140 && nNum < 150) strCutNo = "E" + strCutNo.Substring(2, 1);
  3490. if (nNum >= 150 && nNum < 160) strCutNo = "F" + strCutNo.Substring(2, 1);
  3491. if (nNum >= 160 && nNum < 170) strCutNo = "G" + strCutNo.Substring(2, 1);
  3492. if (nNum >= 170 && nNum < 180) strCutNo = "H" + strCutNo.Substring(2, 1);
  3493. if (nNum >= 180 && nNum < 190) strCutNo = "J" + strCutNo.Substring(2, 1);
  3494. }
  3495. if (strCutNo.Length >= 3 && cutno >= 190)
  3496. {
  3497. MessageBox.Show("请先切割序号过大!!!,最大不能超过190");
  3498. this.textBox5.Text = "";
  3499. return;
  3500. }
  3501. if (heatno.Trim().Length > 0)
  3502. this.textBox13.Text = heatno.Substring(1) + strCutNo;
  3503. blText = false;
  3504. }
  3505. catch
  3506. {
  3507. }
  3508. }
  3509. /// <summary>
  3510. /// 长度属性更改事件
  3511. /// </summary>
  3512. /// <param name="sender"></param>
  3513. /// <param name="e"></param>
  3514. private void textBox3_TextChanged(object sender, System.EventArgs e)
  3515. {
  3516. try
  3517. {
  3518. float a = Convert.ToSingle(this.textBox3.Text.Trim());
  3519. float b = Convert.ToSingle(this.textBox9.Text.Trim());
  3520. float c = Convert.ToSingle(this.textBox10.Text.Trim());
  3521. this.textBox11.Text = Convert.ToString(Math.Round(a * b * c * 7.82 / 1000000000, 3));
  3522. }
  3523. catch { }
  3524. }
  3525. private void SetFixRow(string strBlockNo)
  3526. {
  3527. ultraGrid1.Rows.FixedRows.Clear();
  3528. //解决因交换顺序而导致的辨别不清
  3529. foreach (Infragistics.Win.UltraWinGrid.UltraGridRow row in ultraGrid1.Rows)
  3530. {
  3531. row.Fixed = false; //都去掉选项标记
  3532. }
  3533. //遍历Grid,设定固定行单独标记出来
  3534. foreach (Infragistics.Win.UltraWinGrid.UltraGridRow row in ultraGrid1.Rows)
  3535. {
  3536. string strTargeBlockNo = row.Cells[18].Value.ToString();
  3537. if (strTargeBlockNo == "")
  3538. {
  3539. continue;
  3540. }
  3541. else
  3542. {
  3543. if (strTargeBlockNo == strBlockNo)
  3544. {
  3545. row.Fixed = true;
  3546. }
  3547. }
  3548. }
  3549. ultraGrid1.Rows[0].Activated = true;
  3550. }
  3551. //将数据清除提交给数据后台组件
  3552. private void HandleSetClear(string strHeatID, int nBegin,int nEnd)
  3553. {
  3554. //提交到后台
  3555. try
  3556. {
  3557. string strOut = "";
  3558. //hengxing
  3559. //CallingMessage par = new CallingMessage();
  3560. //par.ServerName = "lgJobMgt";
  3561. //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  3562. //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  3563. //par.MethodName = "ClearCutSeqence";
  3564. //par.args = new object[] { strHeatID, nBegin, nEnd };
  3565. object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  3566. if (Convert.ToInt32(obj) < 1)
  3567. {
  3568. MessageBox.Show("数据提交失败!\n" + strOut);
  3569. }
  3570. else
  3571. {
  3572. Query();
  3573. }
  3574. }
  3575. catch (Exception ex)
  3576. {
  3577. MessageBox.Show(ex.Message);
  3578. return;
  3579. }
  3580. }
  3581. //回调函数
  3582. private void PlanBlockChange(string strCastNo, string strBlockNo)
  3583. {
  3584. //如果没有挂接处理函数
  3585. if (!bHandleCoup) return;
  3586. //判断是否将浇次号进行了改变
  3587. if (strCastNo != strOldCastNo)
  3588. {
  3589. strOldCastNo = strCastNo;
  3590. this.checkBox1.Checked = false;
  3591. this.dateTimePicker3.Enabled = false;
  3592. this.dateTimePicker4.Enabled = false;
  3593. this.checkBox1.Checked = false;
  3594. this.checkBox2.Checked = true;
  3595. this.checkBox3.Checked = false;
  3596. this.textBox1.Enabled = true;
  3597. this.textBox1.Text = strCastNo;
  3598. this.textBox2.Text = "";
  3599. this.textBox3.Text = "";
  3600. this.textBox4.Text = "";
  3601. this.textBox5.Text = "";
  3602. this.textBox6.Text = "";
  3603. this.textBox7.Text = "";
  3604. this.textBox8.Text = "";
  3605. this.textBox9.Text = "";
  3606. this.textBox10.Text = "";
  3607. this.textBox11.Text = "";
  3608. this.textBox12.Text = "";
  3609. this.textBox13.Text = "";
  3610. this.textBox14.Text = "";
  3611. this.textBox15.Text = "";
  3612. //查询列出浇次所有的切割块
  3613. if (_dsMid != null)
  3614. _dsMid.Tables.Clear();
  3615. Query();
  3616. }
  3617. if (strBlockNo != strOldBlockNo)
  3618. {
  3619. //将选中的匹配情况列出到FixRow中
  3620. strOldBlockNo = strBlockNo;
  3621. //将匹配数据设定为固定的行
  3622. SetFixRow(strBlockNo);
  3623. }
  3624. }
  3625. //手工更改的块号,子块号
  3626. private void ultraGrid1_BeforeRowUpdate(object sender, Infragistics.Win.UltraWinGrid.CancelableRowEventArgs e)
  3627. {
  3628. LastUpdateTime = DateTime.Now;
  3629. string strLastBlock = e.Row.Cells["LASTBILLETFLAG"].Value.ToString().Trim();
  3630. string strBlockNo = e.Row.Cells[18].Value.ToString().Trim();
  3631. string strChildNo = e.Row.Cells[19].Value.ToString().Trim();
  3632. string strRecNo = e.Row.Cells[20].Value.ToString().Trim();
  3633. if (!UpdateSingleRow(strBlockNo, strChildNo, strLastBlock, strRecNo))
  3634. {
  3635. MessageBox.Show("数据更新失败,无法完成更新,请重试!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
  3636. e.Cancel = true;
  3637. }
  3638. }
  3639. private void ultraGrid1_BeforeRowFixedStateChanged(object sender, Infragistics.Win.UltraWinGrid.BeforeRowFixedStateChangedEventArgs e)
  3640. {
  3641. //手动指定为固定行(即计划匹配行)
  3642. string strAffectRow = e.Row.Cells[0].Value.ToString();
  3643. string strCutTime = e.Row.Cells[13].Value.ToString();
  3644. int nChildBlockNo = 0;
  3645. int nFixRows = ultraGrid1.Rows.FixedRows.Count;
  3646. if (nFixRows > 0)
  3647. {
  3648. nChildBlockNo = ultraGrid1.Rows.FixedRows.Count + 1;
  3649. }
  3650. else
  3651. {
  3652. nChildBlockNo = 0;
  3653. }
  3654. if (!e.Row.Fixed)
  3655. {
  3656. //更新数据库
  3657. if (UpdateHandlePoint(strOldCastNo, strOldBlockNo, strAffectRow, strCutTime, nChildBlockNo))
  3658. {
  3659. int nAfterAddRows = ultraGrid1.Rows.FixedRows.Count + 1;
  3660. //更新Grid
  3661. e.Row.Cells[16].Value = "是";
  3662. e.Row.Cells[17].Value = "是";
  3663. e.Row.Cells[18].Value = strOldBlockNo;
  3664. e.Row.Cells[19].Value = nAfterAddRows;//子块号
  3665. //同时需要将原来的子块号给添上
  3666. if (nAfterAddRows == 2)
  3667. {
  3668. ultraGrid1.Rows.FixedRows[0].Cells[19].Value = 1;
  3669. }
  3670. }
  3671. else
  3672. {
  3673. e.Cancel = true;
  3674. }
  3675. }
  3676. else
  3677. {
  3678. //或者取消指定
  3679. //如果数据个数只剩下1个,则需要将剩下的那个的子块号清空调
  3680. int nFixRow = ultraGrid1.Rows.FixedRows.Count;
  3681. if (nFixRow == 2)
  3682. {
  3683. if (CancelHandlePointEx(strOldCastNo, strOldBlockNo, strAffectRow, strCutTime, nChildBlockNo))
  3684. {
  3685. //更新Grid
  3686. e.Row.Cells[16].Value = "否";
  3687. e.Row.Cells[17].Value = "是";
  3688. e.Row.Cells[18].Value = "";
  3689. e.Row.Cells[19].Value = DBNull.Value;//子块号
  3690. //取到第一行
  3691. ultraGrid1.Rows.FixedRows[0].Cells[19].Value = DBNull.Value;
  3692. }
  3693. else
  3694. {
  3695. e.Cancel = true;
  3696. }
  3697. }
  3698. else
  3699. {
  3700. if (CancelHandlePoint(strOldCastNo, strOldBlockNo, strAffectRow, strCutTime, nChildBlockNo))
  3701. {
  3702. //更新Grid
  3703. e.Row.Cells[16].Value = "否";
  3704. e.Row.Cells[17].Value = "是";
  3705. e.Row.Cells[18].Value = "";
  3706. e.Row.Cells[19].Value = DBNull.Value;//子块号
  3707. }
  3708. else
  3709. {
  3710. e.Cancel = true;
  3711. }
  3712. }
  3713. }
  3714. }
  3715. private bool UpdateHandlePoint(string strCastNo, string strBlockNo,string strAffectRow,string strCutTime,int nChildBlockNo)
  3716. {
  3717. try
  3718. {
  3719. //hengxing
  3720. //CallingMessage par = new CallingMessage();
  3721. //par.ServerName = "lgJobMgt";
  3722. //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  3723. //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  3724. //par.MethodName = "UpdateHandlePoint"; //CancelHandlePoint
  3725. //par.args = new object[] { strCastNo, strBlockNo, strAffectRow, strCutTime, nChildBlockNo };
  3726. string strOut = "";
  3727. object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  3728. if (Convert.ToInt32(obj) < 1)
  3729. {
  3730. MessageBox.Show("数据更新失败!\n" + strOut);
  3731. return false;
  3732. }
  3733. }
  3734. catch
  3735. {
  3736. return false;
  3737. }
  3738. return true;
  3739. }
  3740. //取消选择
  3741. private bool CancelHandlePointEx(string strCastNo, string strBlockNo,string strAffectRow,string strCutTime,int nChildBlockNo)
  3742. {
  3743. try
  3744. {
  3745. //hengxing
  3746. //CallingMessage par = new CallingMessage();
  3747. //par.ServerName = "lgJobMgt";
  3748. //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  3749. //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  3750. //par.MethodName = "CancelHandlePointEx";
  3751. //par.args = new object[] { strCastNo, strBlockNo, strAffectRow, strCutTime, nChildBlockNo };
  3752. string strOut = "";
  3753. object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  3754. if (Convert.ToInt32(obj) < 1)
  3755. {
  3756. MessageBox.Show("数据更新失败!\n" + strOut);
  3757. return false;
  3758. }
  3759. }
  3760. catch
  3761. {
  3762. return false;
  3763. }
  3764. return true;
  3765. }
  3766. private bool CancelHandlePoint(string strCastNo, string strBlockNo,string strAffectRow,string strCutTime,int nChildBlockNo)
  3767. {
  3768. try
  3769. {
  3770. //CallingMessage par = new CallingMessage();
  3771. //par.ServerName = "lgJobMgt";
  3772. //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  3773. //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  3774. //par.MethodName = "CancelHandlePoint";
  3775. //par.args = new object[] { strCastNo, strBlockNo, strAffectRow, strCutTime, nChildBlockNo };
  3776. string strOut = "";
  3777. object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  3778. if (Convert.ToInt32(obj) < 1)
  3779. {
  3780. MessageBox.Show("数据更新失败!\n" + strOut);
  3781. return false;
  3782. }
  3783. }
  3784. catch
  3785. {
  3786. return false;
  3787. }
  3788. return true;
  3789. }
  3790. private bool UpdateSingleRow(string strBlockNo, string strChildNo,string strLastBlock,string strRecNo)
  3791. {
  3792. bool bLastBlock = false;
  3793. if (strLastBlock.Length > 0 && strLastBlock == "Y") bLastBlock = true;
  3794. try
  3795. {
  3796. //hengxing
  3797. //CallingMessage par = new CallingMessage();
  3798. //par.ServerName = "lgJobMgt";
  3799. //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  3800. //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  3801. //par.MethodName = "UpdateSingleRow";
  3802. //par.args = new object[] { strBlockNo, strChildNo, bLastBlock, strRecNo };
  3803. string strOut = "";
  3804. object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  3805. if (Convert.ToInt32(obj) < 1)
  3806. {
  3807. MessageBox.Show("数据更新失败!\n" + strOut);
  3808. return false;
  3809. }
  3810. }
  3811. catch
  3812. {
  3813. return false;
  3814. }
  3815. return true;
  3816. }
  3817. private void SendCommdForLadleWeight()
  3818. {
  3819. string strDevNo = CCMN0.Substring(0, 1);
  3820. string strPosition = "";
  3821. if (Convert.ToString(this.textBox16.Tag) == "") return;
  3822. strPosition = string.Format("CCM0{0}_DEVICE", strDevNo);
  3823. this._commClass.setHeatID(Convert.ToString(this.textBox16.Tag));
  3824. this._commClass.setProcValueCommand(strPosition, "JOB_CCM_OPTINFO", "PFBALEWGT", "FLTTYPE", this.textBox17.Text);
  3825. this._commClass.setProcValueCommand(strPosition, "JOB_CCM_OPTINFO", "MOULDBALEWGT", "FLTTYPE", this.textBox18.Text);
  3826. SendCommResetBilletNum();
  3827. }
  3828. private void button1_Click(object sender, System.EventArgs e)
  3829. {
  3830. SendCommdForLadleWeight();
  3831. }
  3832. public void SendCommResetBilletNum()
  3833. {
  3834. string strHeatNo = "";
  3835. float fltFirstWeight = 0;
  3836. float fltMouldWeight = 0;
  3837. strHeatNo = Convert.ToString(this.textBox16.Tag);
  3838. fltFirstWeight = Convert.ToSingle(this.textBox17.Text);
  3839. fltMouldWeight = Convert.ToSingle(this.textBox18.Text);
  3840. //hengxing
  3841. //CallingMessage par = new CallingMessage();
  3842. //par.ServerName = "lgJobMgt";
  3843. //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  3844. //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  3845. //par.MethodName = "ResetBilletNum";
  3846. //par.args = new object[] { strHeatNo, fltFirstWeight, fltMouldWeight };
  3847. string strOut = "";
  3848. object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  3849. if (strOut != "")
  3850. {
  3851. MessageBox.Show("数据更新失败! " + strOut);
  3852. }
  3853. }
  3854. public void GetCutPromptFromServer()
  3855. {
  3856. try
  3857. {
  3858. string strDevNo = CCMN0.Substring(0, 1);
  3859. int nDevNo = Convert.ToInt16(strDevNo);
  3860. if (nDevNo == 0) nDevNo = 4;
  3861. //hengxing
  3862. //CallingMessage par = new CallingMessage();
  3863. //par.ServerName = "lgJobMgt";
  3864. //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  3865. //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  3866. //par.MethodName = "GetCuttinPrompt";
  3867. //par.args = new object[] { nDevNo };
  3868. string strOut = "";
  3869. object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
  3870. if (strOut == "")
  3871. {
  3872. cutHash = (Hashtable)obj;
  3873. }
  3874. else
  3875. {
  3876. cutHash.Clear();
  3877. }
  3878. }
  3879. catch (Exception ee)
  3880. {
  3881. Console.WriteLine(ee.Message);
  3882. cutHash.Clear();
  3883. }
  3884. }
  3885. public void RefreshCutPrompt()
  3886. {
  3887. this.textBox16.Tag = "";
  3888. this.textBox16.Text = "";
  3889. this.textBox17.Text = "";
  3890. this.textBox18.Text = "";
  3891. this.textBox19.Text = "";
  3892. this.textBox20.Text = "";
  3893. this.textBox21.Text = "";
  3894. this.textBox22.Text = "";
  3895. this.textBox23.Text = "";
  3896. this.textBox24.Text = "";
  3897. this.textBox25.Text = "";
  3898. this.txt_heatidnoy.Text = "";
  3899. if (cutHash.Count < 6) return;
  3900. string strHeatNo = cutHash[0].ToString();
  3901. if (strHeatNo == "") return;
  3902. //this.textBox16.Tag = strHeatNo;
  3903. this.textBox16.Text = strHeatNo.Substring(5);
  3904. this.textBox17.Text = cutHash[1].ToString();
  3905. this.textBox18.Text = cutHash[2].ToString();
  3906. this.textBox19.Text = cutHash[3].ToString();
  3907. this.textBox20.Text = cutHash[4].ToString();
  3908. this.textBox21.Text = cutHash[5].ToString();
  3909. this.textBox22.Text = cutHash[6].ToString();
  3910. this.textBox23.Text = cutHash[7].ToString();
  3911. this.txt_heatidnoy.Text = cutHash[8].ToString();
  3912. this.textBox24.Text = cutHash[9].ToString();
  3913. this.textBox25.Text = cutHash[10].ToString();
  3914. }
  3915. public void TimerRefresh()
  3916. {
  3917. LastUpdateTime = DateTime.Now;
  3918. this.GetSqlWhere();
  3919. this.RefreshTable();
  3920. }
  3921. private void RefreshTable()
  3922. {
  3923. //将Grid的左侧移动到开始位置
  3924. Infragistics.Win.UltraWinGrid.Scrollbars scrollbars = this.ultraGrid1.DisplayLayout.Scrollbars;
  3925. if (scrollbars == Infragistics.Win.UltraWinGrid.Scrollbars.Automatic ||
  3926. scrollbars == Infragistics.Win.UltraWinGrid.Scrollbars.Both ||
  3927. scrollbars == Infragistics.Win.UltraWinGrid.Scrollbars.Vertical)
  3928. {
  3929. this.ultraGrid1.DisplayLayout.ColScrollRegions[0].Position = 0;
  3930. //RowScrollRegions[0].ScrollPosition = 0;
  3931. //Infragistics.Win.UltraWinGrid.Scrollbar scroll = this.ultraGrid1.DisplayLayout.ColScrollRegions[0].ScrollPosition = 0;
  3932. }
  3933. try
  3934. {
  3935. //hengxing
  3936. //CallingMessage par = new CallingMessage();
  3937. //par.ServerName = "lgJobMgt";
  3938. //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
  3939. //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
  3940. //par.MethodName = "GetCutBillet";
  3941. //par.args = new object[] { _strWhere + " order by cuttime asc,ccmid asc, HEATNO desc " };
  3942. string strOut = "";
  3943. this.ultraGrid1.BeginUpdate(); //避免重画
  3944. if (_dsMid != null && _dsMid.Tables.Count > 0)
  3945. {
  3946. if (_dsMid != null && _dsMid.Tables.Count > 0)
  3947. _dsMid.Tables[0].Rows.Clear();
  3948. }
  3949. DataSet dsTemp = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut) as DataSet;
  3950. if (dsTemp.Tables[0].Rows.Count > 0)
  3951. {
  3952. _dsMid = dsTemp;
  3953. this.ultraGrid1.DataSource = _dsMid.Tables[0];
  3954. //foreach (DataRow dr in dsTemp.Tables[0].Rows)
  3955. //{
  3956. // object[] rowObjArr = dr.ItemArray;
  3957. // _dsMid.Tables[0].Rows.Add(rowObjArr);
  3958. //}
  3959. //_dsMid.AcceptChanges();
  3960. //_dsMid = dsTemp.Copy();
  3961. }
  3962. dsTemp.Dispose();
  3963. //准许重画
  3964. this.ultraGrid1.EndUpdate();
  3965. string strOld = "";
  3966. string strNew = "";
  3967. string strOld_Order = "";
  3968. string strNew_Order = "";
  3969. Color c1 = Color.GhostWhite;//Color.White;
  3970. Color c2 = Color.MintCream;//Color.GhostWhite;//Color.LightCyan;
  3971. Color c3 = c1;
  3972. Color color_OrderNo1 = Color.Blue;
  3973. Color color_OrderNo2 = Color.Black;
  3974. Color color_OrderNo3 = color_OrderNo1;
  3975. //同时定位到最后一行
  3976. for (int i = 0; i < this.ultraGrid1.Rows.Count; i++)
  3977. {
  3978. UltraGridRow ugr = this.ultraGrid1.Rows[i];
  3979. strNew = ugr.Cells["HEATNO"].Value.ToString();
  3980. if (i == this.ultraGrid1.Rows.Count - 1)
  3981. {
  3982. ugr.Activated = true;
  3983. ugr.Selected = true;
  3984. }
  3985. else
  3986. {
  3987. ugr.Activated = false;
  3988. ugr.Selected = false;
  3989. }
  3990. if (strOld != strNew)
  3991. {
  3992. if (c3 == c1) c3 = c2;
  3993. else c3 = c1;
  3994. strOld = strNew;
  3995. }
  3996. ugr.Appearance.BackColor = c3;
  3997. if (strOld_Order != strNew_Order)
  3998. {
  3999. if (color_OrderNo3 == color_OrderNo1) color_OrderNo3 = color_OrderNo2;
  4000. else color_OrderNo3 = color_OrderNo1;
  4001. strOld_Order = strNew_Order;
  4002. }
  4003. ugr.Appearance.ForeColor = color_OrderNo3;
  4004. }
  4005. }
  4006. catch (Exception ex)
  4007. {
  4008. string strMsg = ex.Message;
  4009. }
  4010. }
  4011. private void SetDataThread()
  4012. {
  4013. ReStartSetDataThread:
  4014. while (true)
  4015. {
  4016. if (!this.On_Off_Thread)//
  4017. {
  4018. System.Threading.Thread.Sleep(500);
  4019. continue;
  4020. }
  4021. if (bExit) return;
  4022. //在数据处于定时刷新
  4023. if (bHandleCoup)
  4024. {
  4025. //如果更新超过一定的时间长度(半分钟内),即组织刷新
  4026. TimeSpan timespan = DateTime.Now - LastUpdateTime;
  4027. if (timespan.TotalSeconds > 30)
  4028. {
  4029. LastUpdateTime = DateTime.Now;
  4030. try
  4031. {
  4032. //刷新右边的数据
  4033. this.Invoke(new CallRefreshThreadDelegate(TimerRefresh));
  4034. }
  4035. catch { }
  4036. }
  4037. if (DateTime.Now.Second % 2 == 0)
  4038. {
  4039. GetCutPromptFromServer();
  4040. //this.Invoke(new CallRefreshThreadDelegate(GetCutPromptFromServer));
  4041. Thread.Sleep(300);
  4042. }
  4043. if (DateTime.Now.Second % 3 == 1)
  4044. {
  4045. //RefreshCutPrompt();
  4046. this.Invoke(new CallRefreshThreadDelegate(RefreshCutPrompt));
  4047. }
  4048. }
  4049. for (int j = 0; j < 3; j++)
  4050. {
  4051. Thread.Sleep(1000);
  4052. if (bExit) return;
  4053. }
  4054. }
  4055. goto ReStartSetDataThread;
  4056. }
  4057. #region IDisposable 成员
  4058. void System.IDisposable.Dispose()
  4059. {
  4060. //要求线程推出
  4061. bExit = true;
  4062. }
  4063. #endregion
  4064. private void btn_setheatid_Click(object sender, System.EventArgs e)
  4065. {
  4066. string strDevNo = CCMN0.Substring(0, 1);
  4067. if(strDevNo=="0") strDevNo="4";
  4068. FrmSetHeatid setheatCcmFrm;
  4069. //heatID=heatID.Substring(0,13);
  4070. //this.commClass.setHeatID(heatID);
  4071. setheatCcmFrm = new FrmSetHeatid(ob);
  4072. setheatCcmFrm.Location = GetChildWindowLocation(setheatCcmFrm.Size);
  4073. setheatCcmFrm.Ccmno = strDevNo;
  4074. setheatCcmFrm.Heatno = textBox16.Text;
  4075. // functionCcmFrm.strSme = this.getSmeltingID(heatID);
  4076. setheatCcmFrm.ShowDialog();
  4077. }
  4078. private Point GetChildWindowLocation(Size ChildWindowSize)
  4079. {
  4080. int width = Cursor.Position.X + ChildWindowSize.Width - Screen.PrimaryScreen.Bounds.Width;
  4081. int height = Cursor.Position.Y + ChildWindowSize.Height - Screen.PrimaryScreen.Bounds.Height;
  4082. if (width > 0)
  4083. width = Cursor.Position.X - width;
  4084. else
  4085. width = Cursor.Position.X;
  4086. if (height > 0)
  4087. height = Cursor.Position.Y - height - 50;
  4088. else
  4089. height = Cursor.Position.Y - 50;
  4090. return new Point(width, height);
  4091. }
  4092. private void textBox18_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
  4093. {
  4094. if (e.KeyCode == Keys.Enter)
  4095. {
  4096. SendCommdForLadleWeight();
  4097. }
  4098. }
  4099. private void textBox17_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
  4100. {
  4101. if (e.KeyCode == Keys.Enter)
  4102. {
  4103. SendCommdForLadleWeight();
  4104. }
  4105. }
  4106. private void panel2_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
  4107. {
  4108. }
  4109. /// <summary>
  4110. /// 统计产量
  4111. /// </summary>
  4112. private void SetSteelSum()
  4113. {
  4114. UltraGridBand band = this.ultraGrid1.DisplayLayout.Bands[0];
  4115. band.Summaries.Clear();
  4116. SummarySettings summary = band.Summaries.Add(SummaryType.Count, band.Columns[0]);
  4117. summary.SummaryPosition = SummaryPosition.UseSummaryPositionColumn;
  4118. summary.DisplayFormat = "合计:";
  4119. summary = band.Summaries.Add(SummaryType.Sum, band.Columns[11]);
  4120. summary.SummaryPosition = SummaryPosition.UseSummaryPositionColumn;
  4121. summary.DisplayFormat = " {0:#####.00}";
  4122. summary.Appearance.TextHAlign = Infragistics.Win.HAlign.Center;
  4123. summary.Appearance.ForeColor = Color.DarkBlue;
  4124. summary.Appearance.BackColor = Color.White;
  4125. band.Override.SummaryFooterCaptionVisible = Infragistics.Win.DefaultableBoolean.False;
  4126. }
  4127. #region 调度切割
  4128. /// <summary>
  4129. /// 创建对应表
  4130. /// </summary>
  4131. private void createTable()
  4132. {
  4133. try
  4134. {
  4135. //炼钢指示表
  4136. DataColumn myDataColumn = new DataColumn();
  4137. myDataColumn = new DataColumn();
  4138. myDataColumn.DataType = System.Type.GetType("System.String");
  4139. myDataColumn.ColumnName = "HEATNO";
  4140. myDataColumn.Caption = "炉号";
  4141. steelSchTable.Columns.Add(myDataColumn);
  4142. myDataColumn = new DataColumn();
  4143. myDataColumn.DataType = System.Type.GetType("System.String");
  4144. myDataColumn.ColumnName = "AIM_GRADE_CODE";
  4145. myDataColumn.Caption = "目标钢号";
  4146. steelSchTable.Columns.Add(myDataColumn);
  4147. myDataColumn = new DataColumn();
  4148. myDataColumn.DataType = System.Type.GetType("System.String");
  4149. myDataColumn.ColumnName = "CAST_ID";
  4150. myDataColumn.Caption = "铸机";
  4151. steelSchTable.Columns.Add(myDataColumn);
  4152. myDataColumn = new DataColumn();
  4153. myDataColumn.DataType = System.Type.GetType("System.String");
  4154. myDataColumn.ColumnName = "CAST_NO";
  4155. myDataColumn.Caption = "浇次号";
  4156. steelSchTable.Columns.Add(myDataColumn);
  4157. myDataColumn = new DataColumn();
  4158. myDataColumn.DataType = System.Type.GetType("System.String");
  4159. myDataColumn.ColumnName = "HEAT_NUM";
  4160. myDataColumn.Caption = "炉数";
  4161. steelSchTable.Columns.Add(myDataColumn);
  4162. myDataColumn = new DataColumn();
  4163. myDataColumn.DataType = System.Type.GetType("System.String");
  4164. myDataColumn.ColumnName = "CAST_SEQ";
  4165. myDataColumn.Caption = "顺序";
  4166. steelSchTable.Columns.Add(myDataColumn);
  4167. myDataColumn = new DataColumn();
  4168. myDataColumn.DataType = System.Type.GetType("System.String");
  4169. myDataColumn.ColumnName = "PLAN_ROUTE";
  4170. myDataColumn.Caption = "工艺路径";
  4171. steelSchTable.Columns.Add(myDataColumn);
  4172. myDataColumn = new DataColumn();
  4173. myDataColumn.DataType = System.Type.GetType("System.String");
  4174. myDataColumn.ColumnName = "BILLETQTY";
  4175. myDataColumn.Caption = "方坯数";
  4176. steelSchTable.Columns.Add(myDataColumn);
  4177. //myDataColumn = new DataColumn();
  4178. //myDataColumn.DataType = System.Type.GetType("System.String");
  4179. //myDataColumn.ColumnName = "AIM_S";
  4180. //myDataColumn.Caption = "目标含硫量";
  4181. //steelSchTable.Columns.Add(myDataColumn);
  4182. myDataColumn = new DataColumn();
  4183. myDataColumn.DataType = System.Type.GetType("System.String");
  4184. myDataColumn.ColumnName = "PLAN_IRON_QTY";
  4185. myDataColumn.Caption = "计划铁水量";
  4186. steelSchTable.Columns.Add(myDataColumn);
  4187. //myDataColumn = new DataColumn();
  4188. //myDataColumn.DataType = System.Type.GetType("System.String");
  4189. //myDataColumn.ColumnName = "AIM_MIF_STR_TIME";
  4190. //myDataColumn.Caption = "计划出铁开始时刻";
  4191. //steelSchTable.Columns.Add(myDataColumn);
  4192. //myDataColumn = new DataColumn();
  4193. //myDataColumn.DataType = System.Type.GetType("System.String");
  4194. //myDataColumn.ColumnName = "AIM_MIF_END_TIME";
  4195. //myDataColumn.Caption = "计划出铁结束时刻";
  4196. //steelSchTable.Columns.Add(myDataColumn);
  4197. myDataColumn = new DataColumn();
  4198. myDataColumn.DataType = System.Type.GetType("System.String");
  4199. myDataColumn.ColumnName = "PLAN_HMP_STR_TIME";
  4200. myDataColumn.Caption = "计划脱硫开始时刻";
  4201. steelSchTable.Columns.Add(myDataColumn);
  4202. myDataColumn = new DataColumn();
  4203. myDataColumn.DataType = System.Type.GetType("System.String");
  4204. myDataColumn.ColumnName = "PLAN_HMP_END_TIME";
  4205. myDataColumn.Caption = "计划脱硫结束时刻";
  4206. steelSchTable.Columns.Add(myDataColumn);
  4207. //myDataColumn = new DataColumn();
  4208. //myDataColumn.DataType = System.Type.GetType("System.String");
  4209. //myDataColumn.ColumnName = "AIM_HM_STR_TIME";
  4210. //myDataColumn.Caption = "计划装料开始时刻";
  4211. //steelSchTable.Columns.Add(myDataColumn);
  4212. myDataColumn = new DataColumn();
  4213. myDataColumn.DataType = System.Type.GetType("System.String");
  4214. myDataColumn.ColumnName = "PLAN_BOF_STR_TIME";
  4215. myDataColumn.Caption = "计划吹炼开始时刻";
  4216. steelSchTable.Columns.Add(myDataColumn);
  4217. myDataColumn = new DataColumn();
  4218. myDataColumn.DataType = System.Type.GetType("System.String");
  4219. myDataColumn.ColumnName = "PLAN_BOF_END_TIME";
  4220. myDataColumn.Caption = "计划吹炼结束时刻";
  4221. steelSchTable.Columns.Add(myDataColumn);
  4222. //myDataColumn = new DataColumn();
  4223. //myDataColumn.DataType = System.Type.GetType("System.String");
  4224. //myDataColumn.ColumnName = "AIM_TAP_END_TIME";
  4225. //myDataColumn.Caption = "计划出钢结束时刻";
  4226. //steelSchTable.Columns.Add(myDataColumn);
  4227. myDataColumn = new DataColumn();
  4228. myDataColumn.DataType = System.Type.GetType("System.String");
  4229. myDataColumn.ColumnName = "AIM_STEEL_QTY";
  4230. myDataColumn.Caption = "目标出钢量";
  4231. steelSchTable.Columns.Add(myDataColumn);
  4232. //myDataColumn = new DataColumn();
  4233. //myDataColumn.DataType = System.Type.GetType("System.String");
  4234. //myDataColumn.ColumnName = "AIM_STEEL_QTY";
  4235. //myDataColumn.Caption = "出钢目标温度";
  4236. //steelSchTable.Columns.Add(myDataColumn);
  4237. myDataColumn = new DataColumn();
  4238. myDataColumn.DataType = System.Type.GetType("System.String");
  4239. myDataColumn.ColumnName = "PLAN_AR_STR_TIME";
  4240. myDataColumn.Caption = "计划AR开始时刻";
  4241. steelSchTable.Columns.Add(myDataColumn);
  4242. myDataColumn = new DataColumn();
  4243. myDataColumn.DataType = System.Type.GetType("System.String");
  4244. myDataColumn.ColumnName = "PLAN_AR_END_TIME";
  4245. myDataColumn.Caption = "计划AR结束时刻";
  4246. steelSchTable.Columns.Add(myDataColumn);
  4247. //myDataColumn = new DataColumn();
  4248. //myDataColumn.DataType = System.Type.GetType("System.String");
  4249. //myDataColumn.ColumnName = "AIM_AR_TEMP";
  4250. //myDataColumn.Caption = "AR目标温度";
  4251. //steelSchTable.Columns.Add(myDataColumn);
  4252. myDataColumn = new DataColumn();
  4253. myDataColumn.DataType = System.Type.GetType("System.String");
  4254. myDataColumn.ColumnName = "PLAN_LF_STR_TIME";
  4255. myDataColumn.Caption = "计划LF开始时刻";
  4256. steelSchTable.Columns.Add(myDataColumn);
  4257. myDataColumn = new DataColumn();
  4258. myDataColumn.DataType = System.Type.GetType("System.String");
  4259. myDataColumn.ColumnName = "PLAN_LF_END_TIME";
  4260. myDataColumn.Caption = "计划LF结束时刻";
  4261. steelSchTable.Columns.Add(myDataColumn);
  4262. //myDataColumn = new DataColumn();
  4263. //myDataColumn.DataType = System.Type.GetType("System.String");
  4264. //myDataColumn.ColumnName = "AIM_LF_TEMP";
  4265. //myDataColumn.Caption = "LF目标温度";
  4266. //steelSchTable.Columns.Add(myDataColumn);
  4267. myDataColumn = new DataColumn();
  4268. myDataColumn.DataType = System.Type.GetType("System.String");
  4269. myDataColumn.ColumnName = "PLAN_RH_STR_TIME";
  4270. myDataColumn.Caption = "计划RH开始时刻";
  4271. steelSchTable.Columns.Add(myDataColumn);
  4272. myDataColumn = new DataColumn();
  4273. myDataColumn.DataType = System.Type.GetType("System.String");
  4274. myDataColumn.ColumnName = "PLAN_RH_ENT_TIME";
  4275. myDataColumn.Caption = "计划RH结束时刻";
  4276. steelSchTable.Columns.Add(myDataColumn);
  4277. //myDataColumn = new DataColumn();
  4278. //myDataColumn.DataType = System.Type.GetType("System.String");
  4279. //myDataColumn.ColumnName = "AIM_VD_TEMP";
  4280. //myDataColumn.Caption = "RH目标温度";
  4281. //steelSchTable.Columns.Add(myDataColumn);
  4282. myDataColumn = new DataColumn();
  4283. myDataColumn.DataType = System.Type.GetType("System.String");
  4284. myDataColumn.ColumnName = "PLAN_CCM_STR_TIME";
  4285. myDataColumn.Caption = "计划浇注开始时刻";
  4286. steelSchTable.Columns.Add(myDataColumn);
  4287. myDataColumn = new DataColumn();
  4288. myDataColumn.DataType = System.Type.GetType("System.String");
  4289. myDataColumn.ColumnName = "PLAN_CCM_END_TIME";
  4290. myDataColumn.Caption = "计划浇注结束时刻";
  4291. steelSchTable.Columns.Add(myDataColumn);
  4292. //myDataColumn = new DataColumn();
  4293. //myDataColumn.DataType = System.Type.GetType("System.String");
  4294. //myDataColumn.ColumnName = "AIM_TD_TEMP";
  4295. //myDataColumn.Caption = "浇注温度";
  4296. //steelSchTable.Columns.Add(myDataColumn);
  4297. myDataColumn = new DataColumn();
  4298. myDataColumn.DataType = System.Type.GetType("System.String");
  4299. myDataColumn.ColumnName = "HEAT_STATE";
  4300. myDataColumn.Caption = "生产状态";
  4301. steelSchTable.Columns.Add(myDataColumn);
  4302. myDataColumn = new DataColumn();
  4303. myDataColumn.DataType = System.Type.GetType("System.String");
  4304. myDataColumn.ColumnName = "v_heat_ID";
  4305. myDataColumn.Caption = "虚拟炉号";
  4306. steelSchTable.Columns.Add(myDataColumn);
  4307. myDataColumn = new DataColumn();
  4308. myDataColumn.DataType = System.Type.GetType("System.String");
  4309. myDataColumn.ColumnName = "STEELCODE";
  4310. myDataColumn.Caption = "牌号编码";
  4311. steelSchTable.Columns.Add(myDataColumn);
  4312. //切割指示表
  4313. myDataColumn = new DataColumn();
  4314. myDataColumn = new DataColumn();
  4315. myDataColumn.DataType = System.Type.GetType("System.String");
  4316. myDataColumn.ColumnName = "heatno";
  4317. myDataColumn.Caption = "炉号";
  4318. cutSchTable.Columns.Add(myDataColumn);
  4319. myDataColumn = new DataColumn();
  4320. myDataColumn.DataType = System.Type.GetType("System.String");
  4321. myDataColumn.ColumnName = "BILLET_XN";
  4322. myDataColumn.Caption = "计划坯号";
  4323. cutSchTable.Columns.Add(myDataColumn);
  4324. myDataColumn = new DataColumn();
  4325. myDataColumn.DataType = System.Type.GetType("System.String");
  4326. myDataColumn.ColumnName = "SLABLENGTH";
  4327. myDataColumn.Caption = "目标长度";
  4328. cutSchTable.Columns.Add(myDataColumn);
  4329. myDataColumn = new DataColumn();
  4330. myDataColumn.DataType = System.Type.GetType("System.String");
  4331. myDataColumn.ColumnName = "DIRECTIONTYPE";
  4332. myDataColumn.Caption = "计划去向";
  4333. cutSchTable.Columns.Add(myDataColumn);
  4334. myDataColumn = new DataColumn();
  4335. myDataColumn.DataType = System.Type.GetType("System.String");
  4336. myDataColumn.ColumnName = "CUTTASKCODE";
  4337. myDataColumn.Caption = "铸机号";
  4338. cutSchTable.Columns.Add(myDataColumn);
  4339. myDataColumn = new DataColumn();
  4340. myDataColumn.DataType = System.Type.GetType("System.String");
  4341. myDataColumn.ColumnName = "CAST_NO";
  4342. myDataColumn.Caption = "浇次号";
  4343. cutSchTable.Columns.Add(myDataColumn);
  4344. myDataColumn = new DataColumn();
  4345. myDataColumn.DataType = System.Type.GetType("System.String");
  4346. myDataColumn.ColumnName = "SEQUENCENO";
  4347. myDataColumn.Caption = "炉内顺序号";
  4348. cutSchTable.Columns.Add(myDataColumn);
  4349. myDataColumn = new DataColumn();
  4350. myDataColumn.DataType = System.Type.GetType("System.String");
  4351. myDataColumn.ColumnName = "SEQUENCEINCAST";
  4352. myDataColumn.Caption = "浇次内炉序";
  4353. cutSchTable.Columns.Add(myDataColumn);
  4354. myDataColumn = new DataColumn();
  4355. myDataColumn.DataType = System.Type.GetType("System.String");
  4356. myDataColumn.ColumnName = "CUTSTARTTIME";
  4357. myDataColumn.Caption = "计划切割时间";
  4358. cutSchTable.Columns.Add(myDataColumn);
  4359. myDataColumn = new DataColumn();
  4360. myDataColumn.DataType = System.Type.GetType("System.String");
  4361. myDataColumn.ColumnName = "SLABHEIGHT";
  4362. myDataColumn.Caption = "目标厚度";
  4363. cutSchTable.Columns.Add(myDataColumn);
  4364. myDataColumn = new DataColumn();
  4365. myDataColumn.DataType = System.Type.GetType("System.String");
  4366. myDataColumn.ColumnName = "SLABWIDTH";
  4367. myDataColumn.Caption = "目标宽度";
  4368. cutSchTable.Columns.Add(myDataColumn);
  4369. myDataColumn = new DataColumn();
  4370. myDataColumn.DataType = System.Type.GetType("System.String");
  4371. myDataColumn.ColumnName = "THEROYWEIGHT";
  4372. myDataColumn.Caption = "坯料重量";
  4373. cutSchTable.Columns.Add(myDataColumn);
  4374. myDataColumn = new DataColumn();
  4375. myDataColumn.DataType = System.Type.GetType("System.String");
  4376. myDataColumn.ColumnName = "BILLETQTY";
  4377. myDataColumn.Caption = "方坯数";
  4378. cutSchTable.Columns.Add(myDataColumn);
  4379. myDataColumn = new DataColumn();
  4380. myDataColumn.DataType = System.Type.GetType("System.String");
  4381. myDataColumn.ColumnName = "BILLETWEIGHT";
  4382. myDataColumn.Caption = "坯料单重";
  4383. cutSchTable.Columns.Add(myDataColumn);
  4384. myDataColumn = new DataColumn();
  4385. myDataColumn.DataType = System.Type.GetType("System.String");
  4386. myDataColumn.ColumnName = "FURNACENO";
  4387. myDataColumn.Caption = "虚拟炉号";
  4388. cutSchTable.Columns.Add(myDataColumn);
  4389. myDataColumn = new DataColumn();
  4390. myDataColumn.DataType = System.Type.GetType("System.String");
  4391. myDataColumn.ColumnName = "PRODORDERNO";
  4392. myDataColumn.Caption = "生产订单号";
  4393. cutSchTable.Columns.Add(myDataColumn);
  4394. myDataColumn = new DataColumn();
  4395. myDataColumn.DataType = System.Type.GetType("System.String");
  4396. myDataColumn.ColumnName = "ORDERNO";
  4397. myDataColumn.Caption = "订单行号";
  4398. cutSchTable.Columns.Add(myDataColumn);
  4399. myDataColumn = new DataColumn();
  4400. myDataColumn.DataType = System.Type.GetType("System.String");
  4401. myDataColumn.ColumnName = "BATCHPLANNO";
  4402. myDataColumn.Caption = "批量计划号";
  4403. cutSchTable.Columns.Add(myDataColumn);
  4404. myDataColumn = new DataColumn();
  4405. myDataColumn.DataType = System.Type.GetType("System.String");
  4406. myDataColumn.ColumnName = "SEQUENCEINBATCH";
  4407. myDataColumn.Caption = "批量计划内序号";
  4408. cutSchTable.Columns.Add(myDataColumn);
  4409. myDataColumn = new DataColumn();
  4410. myDataColumn.DataType = System.Type.GetType("System.String");
  4411. myDataColumn.ColumnName = "CUSTOMER_KEY";
  4412. myDataColumn.Caption = "客户参数号";
  4413. cutSchTable.Columns.Add(myDataColumn);
  4414. myDataColumn = new DataColumn();
  4415. myDataColumn.DataType = System.Type.GetType("System.String");
  4416. myDataColumn.ColumnName = "SURPLUSFLAG";
  4417. myDataColumn.Caption = "是否余材";
  4418. cutSchTable.Columns.Add(myDataColumn);
  4419. myDataColumn = new DataColumn();
  4420. myDataColumn.DataType = System.Type.GetType("System.String");
  4421. myDataColumn.ColumnName = "STANDARDSCODE";
  4422. myDataColumn.Caption = "内控标准";
  4423. cutSchTable.Columns.Add(myDataColumn);
  4424. myDataColumn = new DataColumn();
  4425. myDataColumn.DataType = System.Type.GetType("System.String");
  4426. myDataColumn.ColumnName = "STANDARDREMAK";
  4427. myDataColumn.Caption = "标准描述";
  4428. cutSchTable.Columns.Add(myDataColumn);
  4429. myDataColumn = new DataColumn();
  4430. myDataColumn.DataType = System.Type.GetType("System.String");
  4431. myDataColumn.ColumnName = "PDTSTYLE";
  4432. myDataColumn.Caption = "产品类型";
  4433. cutSchTable.Columns.Add(myDataColumn);
  4434. myDataColumn = new DataColumn();
  4435. myDataColumn.DataType = System.Type.GetType("System.String");
  4436. myDataColumn.ColumnName = "SPECDESCRIPTION";
  4437. myDataColumn.Caption = "成品规格描述";
  4438. cutSchTable.Columns.Add(myDataColumn);
  4439. myDataColumn = new DataColumn();
  4440. myDataColumn.DataType = System.Type.GetType("System.String");
  4441. myDataColumn.ColumnName = "FOREIGN_TRADE";
  4442. myDataColumn.Caption = "是否出口";
  4443. cutSchTable.Columns.Add(myDataColumn);
  4444. }
  4445. catch (Exception ex)
  4446. {
  4447. string msg = ex.Message;
  4448. }
  4449. }
  4450. /// <summary>
  4451. /// 设置grid外观
  4452. /// </summary>
  4453. private void setGrid1View()
  4454. {
  4455. try
  4456. {
  4457. ultraGrid3.DisplayLayout.Appearance.BackColor = Color.FromArgb(245, 250, 254);
  4458. ultraGrid3.DisplayLayout.Override.HeaderAppearance.BackColor = Color.FromArgb(158, 191, 231);// System.Drawing.Color.FromArgb(205, 228, 225);
  4459. ultraGrid3.DisplayLayout.Override.RowSelectorAppearance.BackColor = System.Drawing.Color.FromArgb(205, 228, 225);
  4460. ultraGrid3.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.GhostWhite;
  4461. ultraGrid3.DisplayLayout.Bands[0].Columns["HEAT_STATE"].Hidden = true;
  4462. ultraGrid3.DisplayLayout.Bands[0].Columns["v_heat_ID"].Hidden = true;
  4463. ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_RH_STR_TIME"].Hidden = true;
  4464. ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_RH_ENT_TIME"].Hidden = true;
  4465. ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_HMP_STR_TIME"].Hidden = true;
  4466. ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_HMP_END_TIME"].Hidden = true;
  4467. ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_IRON_QTY"].Hidden = true;
  4468. ultraGrid3.DisplayLayout.Bands[0].Columns["HEAT_NUM"].Hidden = true;
  4469. ultraGrid3.DisplayLayout.Bands[0].Columns["STEELCODE"].Hidden = true;
  4470. ultraGrid3.DisplayLayout.Bands[0].Columns[0].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4471. ultraGrid3.DisplayLayout.Bands[0].Columns[1].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4472. ultraGrid3.DisplayLayout.Bands[0].Columns[2].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4473. ultraGrid3.DisplayLayout.Bands[0].Columns[3].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4474. ultraGrid3.DisplayLayout.Bands[0].Columns[4].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4475. ultraGrid3.DisplayLayout.Bands[0].Columns[5].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4476. ultraGrid3.DisplayLayout.Bands[0].Columns[6].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4477. ultraGrid3.DisplayLayout.Bands[0].Columns[7].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4478. ultraGrid3.DisplayLayout.Bands[0].Columns[8].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4479. ultraGrid3.DisplayLayout.Bands[0].Columns[9].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4480. ultraGrid3.DisplayLayout.Bands[0].Columns[10].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4481. ultraGrid3.DisplayLayout.Bands[0].Columns[11].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4482. ultraGrid3.DisplayLayout.Bands[0].Columns[12].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4483. ultraGrid3.DisplayLayout.Bands[0].Columns[13].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4484. ultraGrid3.DisplayLayout.Bands[0].Columns[14].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4485. ultraGrid3.DisplayLayout.Bands[0].Columns[15].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4486. ultraGrid3.DisplayLayout.Bands[0].Columns[16].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4487. ultraGrid3.DisplayLayout.Bands[0].Columns[17].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4488. ultraGrid3.DisplayLayout.Bands[0].Columns[18].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4489. ultraGrid3.DisplayLayout.Bands[0].Columns[19].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4490. ultraGrid3.DisplayLayout.Bands[0].Columns[20].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
  4491. ultraGrid3.DisplayLayout.Bands[0].Columns[15].Format = "yy-MM-dd HH:mm";
  4492. ultraGrid3.DisplayLayout.Bands[0].Columns[16].Format = "yy-MM-dd HH:mm";
  4493. ultraGrid3.DisplayLayout.Bands[0].Columns[17].Format = "yy-MM-dd HH:mm";
  4494. ultraGrid3.DisplayLayout.Bands[0].Columns[18].Format = "yy-MM-dd HH:mm";
  4495. ultraGrid3.DisplayLayout.Bands[0].Columns[19].Format = "yy-MM-dd HH:mm";
  4496. ultraGrid3.DisplayLayout.Bands[0].Columns[20].Format = "yy-MM-dd HH:mm";
  4497. ultraGrid3.DisplayLayout.Bands[0].Columns[21].Format = "yy-MM-dd HH:mm";
  4498. ultraGrid3.DisplayLayout.Bands[0].Columns["HEATNO"].Width = 80;
  4499. ultraGrid3.DisplayLayout.Bands[0].Columns["AIM_GRADE_CODE"].Width = 60;
  4500. ultraGrid3.DisplayLayout.Bands[0].Columns["CAST_ID"].Width = 50;
  4501. ultraGrid3.DisplayLayout.Bands[0].Columns["CAST_NO"].Width = 70;
  4502. ultraGrid3.DisplayLayout.Bands[0].Columns["HEAT_NUM"].Width = 50;
  4503. ultraGrid3.DisplayLayout.Bands[0].Columns["CAST_SEQ"].Width = 50;
  4504. //ultraGrid3.DisplayLayout.Bands[0].Columns["AIM_S"].Width = 50;
  4505. ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_ROUTE"].Width = 230;
  4506. ultraGrid3.DisplayLayout.Bands[0].Columns["BILLETQTY"].Width = 38;
  4507. ultraGrid3.DisplayLayout.Bands[0].Columns[8].Width = 60;
  4508. ultraGrid3.DisplayLayout.Bands[0].Columns[10].Width = 130;
  4509. ultraGrid3.DisplayLayout.Bands[0].Columns[11].Width = 130;
  4510. ultraGrid3.DisplayLayout.Bands[0].Columns[12].Width = 130;
  4511. ultraGrid3.DisplayLayout.Bands[0].Columns[13].Width = 60;
  4512. ultraGrid3.DisplayLayout.Bands[0].Columns[14].Width = 130;
  4513. ultraGrid3.DisplayLayout.Bands[0].Columns[15].Width = 130;
  4514. ultraGrid3.DisplayLayout.Bands[0].Columns[16].Width = 130;
  4515. ultraGrid3.DisplayLayout.Bands[0].Columns[17].Width = 130;
  4516. // ultraGrid3.DisplayLayout.Bands[0].Columns["AIM_TD_TEMP"].Width = 50;
  4517. ultraGrid3.DisplayLayout.Bands[0].Columns[1].CellAppearance.BackColor = Color.GhostWhite;
  4518. ultraGrid3.DisplayLayout.Bands[0].Columns[2].CellAppearance.BackColor = Color.GhostWhite;
  4519. ultraGrid3.DisplayLayout.Bands[0].Columns[3].CellAppearance.BackColor = Color.GhostWhite;
  4520. ultraGrid3.DisplayLayout.Bands[0].Columns[4].CellAppearance.BackColor = Color.GhostWhite;
  4521. ultraGrid3.DisplayLayout.Bands[0].Columns[5].CellAppearance.BackColor = Color.GhostWhite;
  4522. ultraGrid3.DisplayLayout.Bands[0].Columns[6].CellAppearance.BackColor = Color.GhostWhite;
  4523. ultraGrid3.DisplayLayout.Bands[0].Columns[7].CellAppearance.BackColor = Color.GhostWhite;
  4524. ultraGrid3.DisplayLayout.Bands[0].Columns[8].CellAppearance.BackColor = Color.GhostWhite;
  4525. ultraGrid3.DisplayLayout.Bands[0].Columns[9].CellAppearance.BackColor = Color.GhostWhite;
  4526. ultraGrid3.DisplayLayout.Bands[0].Columns[10].CellAppearance.BackColor = Color.GhostWhite;
  4527. ultraGrid3.DisplayLayout.Bands[0].Columns[11].CellAppearance.BackColor = Color.GhostWhite;
  4528. ultraGrid3.DisplayLayout.Bands[0].Columns[12].CellAppearance.BackColor = Color.GhostWhite;
  4529. ultraGrid3.DisplayLayout.Bands[0].Columns[13].CellAppearance.BackColor = Color.GhostWhite;
  4530. ultraGrid3.DisplayLayout.Bands[0].Columns[14].CellAppearance.BackColor = Color.GhostWhite;
  4531. ultraGrid3.DisplayLayout.Bands[0].Columns[15].CellAppearance.BackColor = Color.GhostWhite;
  4532. ultraGrid3.DisplayLayout.Bands[0].Columns[16].CellAppearance.BackColor = Color.GhostWhite;
  4533. ultraGrid3.DisplayLayout.Bands[0].Columns[17].CellAppearance.BackColor = Color.GhostWhite;
  4534. ultraGrid3.DisplayLayout.Bands[0].Columns[18].CellAppearance.BackColor = Color.GhostWhite;
  4535. ultraGrid3.DisplayLayout.Bands[0].Columns[19].CellAppearance.BackColor = Color.LightGoldenrodYellow;
  4536. ultraGrid3.DisplayLayout.Bands[0].Columns[20].CellAppearance.BackColor = Color.LightGoldenrodYellow;
  4537. ultraGrid3.DisplayLayout.Bands[0].Columns[21].CellAppearance.BackColor = Color.LightGoldenrodYellow;
  4538. ultraGrid3.DisplayLayout.Bands[0].Columns[22].CellAppearance.BackColor = Color.LightPink;
  4539. ultraGrid3.DisplayLayout.Bands[0].Columns[23].CellAppearance.BackColor = Color.LightPink;
  4540. ultraGrid2.DisplayLayout.Appearance.BackColor = Color.FromArgb(245, 250, 254);
  4541. ultraGrid2.DisplayLayout.Override.HeaderAppearance.BackColor = Color.FromArgb(158, 191, 231);// System.Drawing.Color.FromArgb(205, 228, 225);
  4542. ultraGrid2.DisplayLayout.Override.RowSelectorAppearance.BackColor = System.Drawing.Color.FromArgb(205, 228, 225);
  4543. ultraGrid2.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.GhostWhite;
  4544. ultraGrid2.DisplayLayout.Bands[0].Columns["FURNACENO"].Hidden = true;
  4545. // ultraGrid2.DisplayLayout.Bands[0].Columns["STANDARDSCODE"].Hidden = true;
  4546. ultraGrid2.DisplayLayout.Bands[0].Columns["HeatNo"].Width = 60;
  4547. ultraGrid2.DisplayLayout.Bands[0].Columns["STANDARDREMAK"].Width = 90;
  4548. ultraGrid2.DisplayLayout.Bands[0].Columns["BILLET_XN"].Width = 80;
  4549. ultraGrid2.DisplayLayout.Bands[0].Columns["SLABLENGTH"].Width = 50;
  4550. ultraGrid2.DisplayLayout.Bands[0].Columns["CUTTASKCODE"].Width = 50;
  4551. ultraGrid2.DisplayLayout.Bands[0].Columns["CAST_NO"].Width = 50;
  4552. ultraGrid2.DisplayLayout.Bands[0].Columns["SEQUENCEINCAST"].Width = 50;
  4553. ultraGrid2.DisplayLayout.Bands[0].Columns["DIRECTIONTYPE"].Width = 70;
  4554. ultraGrid2.DisplayLayout.Bands[0].Columns["BILLETQTY"].Width = 60;
  4555. ultraGrid2.DisplayLayout.Bands[0].Columns["BILLETWEIGHT"].Width = 60;
  4556. ultraGrid2.DisplayLayout.Bands[0].Columns[7].Width = 60;
  4557. ultraGrid2.DisplayLayout.Bands[0].Columns[8].Width = 120;
  4558. ultraGrid2.DisplayLayout.Bands[0].Columns[9].Width = 70;
  4559. ultraGrid2.DisplayLayout.Bands[0].Columns[10].Width = 70;
  4560. ultraGrid2.DisplayLayout.Bands[0].Columns[11].Width = 70;
  4561. ultraGrid2.DisplayLayout.Bands[0].Columns[12].Width = 70;
  4562. }
  4563. catch (Exception ex)
  4564. {
  4565. string msg = ex.Message;
  4566. }
  4567. }
  4568. private void InitComboBoxSource_Cut()
  4569. {
  4570. this.ccmNumCobo.DataSource = GetCcmData_Cut();
  4571. this.ccmNumCobo.DisplayMember = "name";
  4572. this.ccmNumCobo.ValueMember = "id";
  4573. this.combConNo.DataSource = GetCcmData_Cut();
  4574. this.combConNo.DisplayMember = "name";
  4575. this.combConNo.ValueMember = "id";
  4576. this.cboFlowNo.DataSource = GetCcmData_Cut();
  4577. this.cboFlowNo.DisplayMember = "name";
  4578. this.cboFlowNo.ValueMember = "id";
  4579. }
  4580. /// <summary>
  4581. /// 铸机号
  4582. /// </summary>
  4583. /// <returns></returns>
  4584. private DataTable GetCcmData_Cut()
  4585. {
  4586. DataTable dt = new DataTable();
  4587. dt.Columns.Add("id", typeof(System.String));
  4588. dt.Columns.Add("name", typeof(System.String));
  4589. //dt.Rows.Add(new object[] { "0", "0#铸机" });
  4590. dt.Rows.Add(new object[] { "1", "1#铸机" });
  4591. dt.Rows.Add(new object[] { "2", "2#铸机" });
  4592. dt.Rows.Add(new object[] { "3", "3#铸机" });
  4593. // dt.Rows.Add(new object[] { "4", "4#铸机" });
  4594. dt.AcceptChanges();
  4595. return dt;
  4596. }
  4597. /// <路径解析>
  4598. /// 路径解析
  4599. /// </路径解析>
  4600. /// <param name="craftPath"></param>
  4601. /// <returns></returns>
  4602. private string analysPath(string craftPath)//----路径解析
  4603. {
  4604. string path = "";
  4605. try
  4606. {
  4607. if (craftPath.Length > 14)
  4608. {
  4609. string str = "", route = "";
  4610. if (craftPath.Length >= 2)
  4611. {
  4612. str = craftPath.Substring(0, 2);
  4613. switch (str)
  4614. {
  4615. case "A0":
  4616. route = "";
  4617. break;
  4618. case "A1":
  4619. route = "1#混铁炉";
  4620. break;
  4621. case "A2":
  4622. route = "2#混铁炉";
  4623. break;
  4624. }
  4625. path = path + route;
  4626. }
  4627. else
  4628. return path;
  4629. if (craftPath.Length >= 4)
  4630. {
  4631. str = craftPath.Substring(2, 2);
  4632. switch (str)
  4633. {
  4634. case "B0":
  4635. route = "";
  4636. break;
  4637. case "B1":
  4638. route = "->1#铁水预处理";
  4639. break;
  4640. case "B2":
  4641. route = "->2#铁水预处理";
  4642. break;
  4643. }
  4644. path = path + route;
  4645. }
  4646. else
  4647. return path;
  4648. if (craftPath.Length >= 6)
  4649. {
  4650. str = craftPath.Substring(4, 2);
  4651. switch (str)
  4652. {
  4653. case "C0":
  4654. route = "";
  4655. break;
  4656. case "C1":
  4657. route = "->1#转炉";
  4658. break;
  4659. case "C2":
  4660. route = "->2#转炉";
  4661. break;
  4662. case "C3":
  4663. route = "->3#转炉";
  4664. break;
  4665. }
  4666. path = path + route;
  4667. }
  4668. else
  4669. return path;
  4670. if (craftPath.Length >= 8)
  4671. {
  4672. str = craftPath.Substring(6, 2);
  4673. switch (str)
  4674. {
  4675. case "D0":
  4676. route = "";
  4677. break;
  4678. case "D1":
  4679. route = "->1#吹氩站";
  4680. break;
  4681. case "D2":
  4682. route = "->2#吹氩站";
  4683. break;
  4684. case "D3":
  4685. route = "->3#吹氩站";
  4686. break;
  4687. }
  4688. path = path + route;
  4689. }
  4690. else
  4691. return path;
  4692. ///2008-02-28 刘现
  4693. if (craftPath.Length >= 10)
  4694. {
  4695. str = craftPath.Substring(8, 2);
  4696. switch (str)
  4697. {
  4698. case "F0":
  4699. route = "";
  4700. break;
  4701. case "F1":
  4702. route = "->1#RH炉";
  4703. break;
  4704. }
  4705. path = path + route;
  4706. }
  4707. else
  4708. return path;
  4709. if (craftPath.Length >= 12)
  4710. {
  4711. str = craftPath.Substring(10, 2);
  4712. switch (str)
  4713. {
  4714. case "E0":
  4715. route = "";
  4716. break;
  4717. case "E1":
  4718. route = "->1#精练";
  4719. break;
  4720. case "E2":
  4721. route = "->2#精练";
  4722. break;
  4723. }
  4724. path = path + route;
  4725. }
  4726. else
  4727. return path;
  4728. if (craftPath.Length >= 14)
  4729. {
  4730. str = craftPath.Substring(12, 2);
  4731. switch (str)
  4732. {
  4733. case "F0":
  4734. route = "";
  4735. break;
  4736. case "F1":
  4737. route = "->1#RH炉";
  4738. break;
  4739. }
  4740. path = path + route;
  4741. }
  4742. else
  4743. return path;
  4744. if (craftPath.Length >= 14)
  4745. {
  4746. str = craftPath.Substring(14, 2);
  4747. switch (str)
  4748. {
  4749. case "G0":
  4750. route = "";
  4751. break;
  4752. case "G1":
  4753. route = "->1#连铸机";
  4754. break;
  4755. case "G2":
  4756. route = "->2#连铸机";
  4757. break;
  4758. case "G3":
  4759. route = "->3#连铸机";
  4760. break;
  4761. case "G4":
  4762. route = "->0#连铸机";
  4763. break;
  4764. }
  4765. path = path + route;
  4766. }
  4767. else
  4768. return path;
  4769. if (path.Length < 2)
  4770. return "";
  4771. if (path.IndexOf("->", 0) == 0)
  4772. {
  4773. int len = path.Length;
  4774. path = path.Substring(2, len - 2);
  4775. }
  4776. }
  4777. else
  4778. {
  4779. string str = "", route = "";
  4780. if (craftPath.Length >= 2)
  4781. {
  4782. str = craftPath.Substring(0, 2);
  4783. switch (str)
  4784. {
  4785. case "A0":
  4786. route = "";
  4787. break;
  4788. case "A1":
  4789. route = "1#混铁炉";
  4790. break;
  4791. case "A2":
  4792. route = "2#混铁炉";
  4793. break;
  4794. }
  4795. path = path + route;
  4796. }
  4797. else
  4798. return path;
  4799. if (craftPath.Length >= 4)
  4800. {
  4801. str = craftPath.Substring(2, 2);
  4802. switch (str)
  4803. {
  4804. case "B0":
  4805. route = "";
  4806. break;
  4807. case "B1":
  4808. route = "->1#铁水预处理";
  4809. break;
  4810. case "B2":
  4811. route = "->2#铁水预处理";
  4812. break;
  4813. }
  4814. path = path + route;
  4815. }
  4816. else
  4817. return path;
  4818. if (craftPath.Length >= 6)
  4819. {
  4820. str = craftPath.Substring(4, 2);
  4821. switch (str)
  4822. {
  4823. case "C0":
  4824. route = "";
  4825. break;
  4826. case "C1":
  4827. route = "->1#转炉";
  4828. break;
  4829. case "C2":
  4830. route = "->2#转炉";
  4831. break;
  4832. case "C3":
  4833. route = "->3#转炉";
  4834. break;
  4835. }
  4836. path = path + route;
  4837. }
  4838. else
  4839. return path;
  4840. if (craftPath.Length >= 8)
  4841. {
  4842. str = craftPath.Substring(6, 2);
  4843. switch (str)
  4844. {
  4845. case "D0":
  4846. route = "";
  4847. break;
  4848. case "D1":
  4849. route = "->1#吹氩站";
  4850. break;
  4851. case "D2":
  4852. route = "->2#吹氩站";
  4853. break;
  4854. case "D3":
  4855. route = "->3#吹氩站";
  4856. break;
  4857. }
  4858. path = path + route;
  4859. }
  4860. else
  4861. return path;
  4862. if (craftPath.Length >= 10)
  4863. {
  4864. str = craftPath.Substring(8, 2);
  4865. switch (str)
  4866. {
  4867. case "E0":
  4868. route = "";
  4869. break;
  4870. case "E1":
  4871. route = "->1#精练";
  4872. break;
  4873. case "E2":
  4874. route = "->2#精练";
  4875. break;
  4876. }
  4877. path = path + route;
  4878. }
  4879. else
  4880. return path;
  4881. if (craftPath.Length >= 12)
  4882. {
  4883. str = craftPath.Substring(10, 2);
  4884. switch (str)
  4885. {
  4886. case "F0":
  4887. route = "";
  4888. break;
  4889. case "F1":
  4890. route = "->1#RH炉";
  4891. break;
  4892. case "F2":
  4893. route = "->2#RH炉";
  4894. break;
  4895. }
  4896. path = path + route;
  4897. }
  4898. else
  4899. return path;
  4900. if (craftPath.Length >= 14)
  4901. {
  4902. str = craftPath.Substring(12, 2);
  4903. switch (str)
  4904. {
  4905. case "G0":
  4906. route = "";
  4907. break;
  4908. case "G1":
  4909. route = "->1#连铸机";
  4910. break;
  4911. case "G2":
  4912. route = "->2#连铸机";
  4913. break;
  4914. case "G3":
  4915. route = "->3#连铸机";
  4916. break;
  4917. case "G4":
  4918. route = "->0#连铸机";
  4919. break;
  4920. }
  4921. path = path + route;
  4922. }
  4923. else
  4924. return path;
  4925. if (path.Length < 2)
  4926. return "";
  4927. if (path.IndexOf("->", 0) == 0)
  4928. {
  4929. int len = path.Length;
  4930. path = path.Substring(2, len - 2);
  4931. }
  4932. }
  4933. return path;
  4934. }
  4935. catch (Exception ex)
  4936. {
  4937. string msg = ex.Message;
  4938. return path;
  4939. }
  4940. }
  4941. /// <summary>
  4942. /// 计划信息查询
  4943. /// </summary>
  4944. /// <param name="sender"></param>
  4945. /// <param name="e"></param>
  4946. private void queryBtn_Click(object sender, EventArgs e)
  4947. {
  4948. try
  4949. {
  4950. string startTime = dateTimePicker3.Value.ToString();
  4951. string endTime = dateTimePicker4.Value.ToString();
  4952. string strWhere = string.Format(" WHERE PLAN_MAKING_TIME>=to_date('{0}','yyyy-MM-dd HH24:Mi:ss') AND PLAN_MAKING_TIME<=to_date('{1}','yyyy-MM-dd HH24:Mi:ss') ", startTime, endTime);
  4953. if (this.chkCcmNo.Checked)
  4954. { // this.combCcmNo.SelectedItem
  4955. // string ccmN0 = this.combCcmNo.SelectedValue.ToString();
  4956. strWhere += string.Format(" AND CAST_ID='{0}' ", this.ccmNumCobo.SelectedValue);
  4957. }
  4958. //以下是转炉查询
  4959. if (this.chkConNo.Checked)
  4960. {
  4961. //string conN0 = this.combConNo.SelectedValue.ToString();
  4962. strWhere += string.Format(" AND substr(heatno,3,1)='{0}'", this.combConNo.SelectedValue);
  4963. }//转炉
  4964. //strWhere += " order by AIM_CAST_STR_TIME desc " ;
  4965. strWhere += " and heatno is not null ";//order by CAST_NO desc,to_number(CAST_SEQ) desc ";
  4966. string err = "";
  4967. this.steelSchTable.Clear();
  4968. routeHash.Clear();
  4969. // DataSet ds = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("DataHandle", "Core.Sglg.DataHandle", "Core.Sglg.DataHandle.BSA_ISTLSCH", "SelectToDataSet", new object[] { strWhere }, out err);
  4970. DataSet ds = null;// (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("lgIntegrationQuery", "Core.LgMes.Server.lgIntegrationQuery.LgGeneralInfo", "GetAllJobPlan_Cut", new object[] { strWhere }, out err);
  4971. if (err != "" && ds.Tables[0].Rows.Count <= 0)
  4972. {
  4973. //MessageBox.Show("炼钢数据查询错误:"+err,"提示");
  4974. return;
  4975. }
  4976. //this.steelSchTable = ds.Tables[0];
  4977. if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
  4978. {
  4979. this.ultraGrid1.BeginUpdate();
  4980. this.cutSchTable.Clear();
  4981. int rowCount = ds.Tables[0].Rows.Count;
  4982. DataRow row;
  4983. string name = "";
  4984. for (int i = 0; i < rowCount; i++)
  4985. {
  4986. row = this.steelSchTable.NewRow();
  4987. foreach (DataColumn column in steelSchTable.Columns)
  4988. {
  4989. name = column.ColumnName;
  4990. if (name != "PLAN_ROUTE")
  4991. row[name] = ds.Tables[0].Rows[i][name].ToString();
  4992. else
  4993. {
  4994. routeHash.Add(ds.Tables[0].Rows[i]["HEATNO"].ToString(), ds.Tables[0].Rows[i]["PLAN_ROUTE"].ToString());
  4995. row[name] = analysPath(ds.Tables[0].Rows[i][name].ToString());
  4996. }
  4997. }
  4998. this.steelSchTable.Rows.Add(row);
  4999. string status = row["HEAT_STATE"].ToString();
  5000. if (status == "03")
  5001. {
  5002. foreach (UltraGridCell cell in ultraGrid1.Rows[i].Cells)
  5003. cell.Appearance.BackColor = Color.White;//计划状态
  5004. }
  5005. else if (status == "09")
  5006. {
  5007. foreach (UltraGridCell cell in ultraGrid1.Rows[i].Cells)
  5008. cell.Appearance.BackColor = Color.LightCyan; //Color.MintCream;//连铸结束
  5009. }
  5010. else
  5011. {
  5012. foreach (UltraGridCell cell in ultraGrid1.Rows[i].Cells)
  5013. cell.Appearance.BackColor = Color.LightGreen;//在生产用颜色区分
  5014. }
  5015. }
  5016. this.ultraGrid1.EndUpdate();
  5017. }
  5018. }
  5019. catch { }
  5020. }
  5021. #endregion
  5022. private void chkCcmNo_CheckedChanged(object sender, EventArgs e)
  5023. {
  5024. if (this.chkCcmNo.Checked)
  5025. {
  5026. this.ccmNumCobo.Enabled = true;
  5027. this.ccmNumCobo.BackColor = Color.White;
  5028. }
  5029. else
  5030. {
  5031. this.ccmNumCobo.Enabled = false;
  5032. this.ccmNumCobo.BackColor = Color.Gainsboro;
  5033. }
  5034. }
  5035. }
  5036. }