FrmCutBilletDetail.cs 243 KB

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