| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483 |
- using System;
- using System.Data;
- using System.Drawing;
- using System.Collections;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Text;
- using System.Windows.Forms;
- using Infragistics.Win.UltraWinGrid;
- using System.Threading;
- using CoreFS.CA06;
- namespace Core.LgMes.Client.LgJobMgt
- {
- /// <summary>
- /// FrmCutBilletDetail 的摘要说明。
- /// </summary>
- public partial class FrmCutBilletDetail : Core.Mes.Client.Common.frmStyleBase, IDisposable
- {
- public bool On_Off_Thread = false;
- #region " Construct "
- private System.Data.DataSet dataSet1;
- private Infragistics.Win.UltraWinGrid.UltraGrid ultraGrid1;
- private Infragistics.Win.Misc.UltraGroupBox ultraGroupBox1;
- private System.Windows.Forms.TextBox textBox1;
- private System.Windows.Forms.CheckBox checkBox3;
- private System.Windows.Forms.CheckBox checkBox2;
- private System.Windows.Forms.Label label9;
- private System.Windows.Forms.CheckBox checkBox1;
- private System.Data.DataTable dataTable1;
- private System.Data.DataColumn dataColumn1;
- private System.Data.DataColumn dataColumn2;
- private System.Data.DataColumn dataColumn3;
- private System.Data.DataColumn dataColumn4;
- private System.Data.DataColumn dataColumn5;
- private System.Data.DataColumn dataColumn6;
- private System.Data.DataColumn dataColumn7;
- private System.Data.DataColumn dataColumn8;
- private System.Data.DataColumn dataColumn9;
- private System.Data.DataColumn dataColumn10;
- private System.Data.DataColumn dataColumn11;
- private System.Data.DataColumn dataColumn12;
- private System.Data.DataColumn dataColumn13;
- private System.Data.DataColumn dataColumn14;
- private System.Data.DataColumn dataColumn15;
- private System.Data.DataColumn dataColumn16;
- private Infragistics.Win.Misc.UltraExpandableGroupBox ultraExpandableGroupBox1;
- private Infragistics.Win.Misc.UltraExpandableGroupBoxPanel ultraExpandableGroupBoxPanel1;
- private System.Windows.Forms.Label label19;
- private System.Windows.Forms.Label label18;
- private System.Windows.Forms.TextBox textBox12;
- private System.Windows.Forms.TextBox textBox11;
- private System.Windows.Forms.Label label16;
- private System.Windows.Forms.TextBox textBox10;
- private System.Windows.Forms.Label label14;
- private System.Windows.Forms.TextBox textBox9;
- private System.Windows.Forms.Label label12;
- private System.Windows.Forms.TextBox textBox3;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.TextBox textBox8;
- private System.Windows.Forms.TextBox textBox7;
- private System.Windows.Forms.TextBox textBox6;
- private System.Windows.Forms.TextBox textBox5;
- private System.Windows.Forms.TextBox textBox4;
- private System.Windows.Forms.TextBox textBox2;
- private System.Windows.Forms.Label label15;
- private System.Windows.Forms.Label label13;
- private System.Windows.Forms.Label label8;
- private System.Windows.Forms.Label label11;
- private System.Windows.Forms.Label label10;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Label label7;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Splitter splitter1;
- private System.Data.DataColumn dataColumn17;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.TextBox textBox13;
- private System.Windows.Forms.TextBox textBox14;
- private System.Windows.Forms.TextBox textBox15;
- private System.Windows.Forms.Panel panel3;
- private System.Windows.Forms.TextBox textBox16;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.TextBox textBox17;
- private System.Windows.Forms.Label label17;
- private System.Windows.Forms.TextBox textBox18;
- private System.Windows.Forms.Label label20;
- private System.Windows.Forms.TextBox textBox19;
- private System.Windows.Forms.Label label21;
- private System.Windows.Forms.Label label22;
- private System.Windows.Forms.TextBox textBox21;
- private System.Windows.Forms.Label label23;
- private System.Windows.Forms.Label label24;
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.TextBox textBox22;
- private System.Windows.Forms.TextBox textBox20;
- private System.Windows.Forms.TextBox textBox23;
- private System.Windows.Forms.Label label25;
- private System.Windows.Forms.TextBox txt_heatidnoy;
- private System.Windows.Forms.Button btn_setheatid;
- private Panel panel2;
- private Label richTextBox1;
- private Label label26;
- private TextBox textBox24;
- private Label label27;
- private TextBox textBox25;
- private Label label28;
- private Panel panel1;
- private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox3;
- private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox5;
- private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox2;
- private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox6;
- private Infragistics.Win.UltraWinEditors.UltraDateTimeEditor dateTimePicker5;
- public Infragistics.Win.UltraWinEditors.UltraDateTimeEditor dateTimePicker4;
- public Infragistics.Win.UltraWinEditors.UltraDateTimeEditor dateTimePicker3;
- private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox4;
- private GroupBox groupBox1;
- private UltraGrid ultraGrid2;
- private GroupBox groupBox2;
- private UltraGrid ultraGrid3;
- private Infragistics.Win.Misc.UltraGroupBox ultraGroupBox2;
- private Infragistics.Win.UltraWinEditors.UltraDateTimeEditor dtpCutTime;
- private Label label29;
- private ComboBox cboFlowNo;
- private Label label30;
- private Label label31;
- private TextBox txtSurplusFlag;
- private TextBox txtProdorderNO;
- private Label label32;
- private TextBox txtOrderNO;
- private Label label33;
- private Button button4;
- private Button button3;
- private TextBox textBox26;
- private Label label34;
- private Label label35;
- private Label label36;
- private TextBox tbxWeight;
- private TextBox tbxThick;
- private TextBox tbxWidth;
- private Label label37;
- private TextBox tbxLength;
- private Label label38;
- private ComboBox comboBox1;
- private Label label39;
- private TextBox textBox27;
- private Label label40;
- private TextBox textBox28;
- private Label label41;
- private Infragistics.Win.Misc.UltraGroupBox ultraGroupBox3;
- private Button bntSend;
- private ComboBox combConNo;
- private CheckBox chkConNo;
- private Button queryBtn;
- private ComboBox ccmNumCobo;
- private CheckBox chkCcmNo;
- private Panel panel5;
- private Panel panel4;
- private System.ComponentModel.IContainer components;
- public FrmCutBilletDetail()
- {
- //
- // Windows 窗体设计器支持所必需的
- //
- InitializeComponent();
- //
- // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
- //
- }
- /// <summary>
- /// 清理所有正在使用的资源。
- /// </summary>
- protected override void Dispose(bool disposing)
- {
- try
- {
- if (_refreshDataThread != null)
- _refreshDataThread.Abort();
- }
- catch { }
- if (disposing)
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
- #region Windows 窗体设计器生成的代码
- /// <summary>
- /// 设计器支持所需的方法 - 不要使用代码编辑器修改
- /// 此方法的内容。
- /// </summary>
- private void InitializeComponent()
- {
- Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridBand ultraGridBand1 = new Infragistics.Win.UltraWinGrid.UltraGridBand("Table1", -1);
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn1 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HEATNO");
- Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn2 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CCMSTOVENO");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn3 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CCMID", -1, 134929704);
- Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn4 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FLOWNO", -1, 134938501);
- Infragistics.Win.Appearance appearance32 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn5 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CUTSEQNO");
- Infragistics.Win.Appearance appearance33 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn6 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("MOULDNO");
- Infragistics.Win.Appearance appearance34 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn7 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HEATSEQ");
- Infragistics.Win.Appearance appearance35 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn8 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HEATCNT");
- Infragistics.Win.Appearance appearance36 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn9 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("LENGTH");
- Infragistics.Win.Appearance appearance37 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn10 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("WIDTH");
- Infragistics.Win.Appearance appearance38 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn11 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("THICKNESS");
- Infragistics.Win.Appearance appearance39 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn12 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("WEIGHT");
- Infragistics.Win.Appearance appearance40 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn13 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SPECRULE");
- Infragistics.Win.Appearance appearance41 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn14 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CUTTIME");
- Infragistics.Win.Appearance appearance42 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn15 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SHIFTCODE", -1, 38914641);
- Infragistics.Win.Appearance appearance43 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn16 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("LASTBILLETFLAG", -1, 1197251);
- Infragistics.Win.Appearance appearance44 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn17 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FLAG");
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn18 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CutSize", 0);
- Infragistics.Win.Appearance appearance45 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn19 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("RESFLAG", 1, 1197252);
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn20 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("BILLETNO", 2, null, 0, Infragistics.Win.UltraWinGrid.SortIndicator.Ascending, false);
- Infragistics.Win.Appearance appearance46 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn21 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CHILDBLOCKNO", 3);
- Infragistics.Win.Appearance appearance47 = new Infragistics.Win.Appearance();
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn22 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("BILLETCODE", 4);
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn23 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ORDERNO", 5);
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn24 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("PRODORDERNO", 6);
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn25 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SURPLUSFLAG", 7, 6529876);
- Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn26 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("STEELCODE", 8);
- Infragistics.Win.Appearance appearance48 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance21 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance22 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance23 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance24 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance25 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance26 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance27 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance28 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance29 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance30 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance31 = new Infragistics.Win.Appearance();
- Infragistics.Win.ValueList valueList1 = new Infragistics.Win.ValueList(38914641);
- Infragistics.Win.ValueListItem valueListItem1 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem2 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem3 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem4 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem5 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem6 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem7 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem8 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem9 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem10 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem11 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem28 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueList valueList2 = new Infragistics.Win.ValueList(134929704);
- Infragistics.Win.ValueListItem valueListItem29 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem30 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem31 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem16 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueList valueList3 = new Infragistics.Win.ValueList(134938501);
- Infragistics.Win.ValueListItem valueListItem17 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem18 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem19 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem20 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem21 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueList valueList4 = new Infragistics.Win.ValueList(1197251);
- Infragistics.Win.ValueListItem valueListItem22 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem23 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueList valueList5 = new Infragistics.Win.ValueList(1197252);
- Infragistics.Win.ValueListItem valueListItem24 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem25 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueList valueList6 = new Infragistics.Win.ValueList(6529876);
- Infragistics.Win.ValueListItem valueListItem26 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.ValueListItem valueListItem27 = new Infragistics.Win.ValueListItem();
- Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
- this.dataSet1 = new System.Data.DataSet();
- this.dataTable1 = new System.Data.DataTable();
- this.dataColumn1 = new System.Data.DataColumn();
- this.dataColumn2 = new System.Data.DataColumn();
- this.dataColumn3 = new System.Data.DataColumn();
- this.dataColumn4 = new System.Data.DataColumn();
- this.dataColumn5 = new System.Data.DataColumn();
- this.dataColumn6 = new System.Data.DataColumn();
- this.dataColumn7 = new System.Data.DataColumn();
- this.dataColumn8 = new System.Data.DataColumn();
- this.dataColumn9 = new System.Data.DataColumn();
- this.dataColumn10 = new System.Data.DataColumn();
- this.dataColumn11 = new System.Data.DataColumn();
- this.dataColumn12 = new System.Data.DataColumn();
- this.dataColumn13 = new System.Data.DataColumn();
- this.dataColumn14 = new System.Data.DataColumn();
- this.dataColumn15 = new System.Data.DataColumn();
- this.dataColumn16 = new System.Data.DataColumn();
- this.dataColumn17 = new System.Data.DataColumn();
- this.ultraGrid1 = new Infragistics.Win.UltraWinGrid.UltraGrid();
- this.ultraGroupBox1 = new Infragistics.Win.Misc.UltraGroupBox();
- this.comboBox4 = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
- this.dateTimePicker4 = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
- this.dateTimePicker3 = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
- this.label26 = new System.Windows.Forms.Label();
- this.richTextBox1 = new System.Windows.Forms.Label();
- this.txt_heatidnoy = new System.Windows.Forms.TextBox();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.checkBox3 = new System.Windows.Forms.CheckBox();
- this.checkBox2 = new System.Windows.Forms.CheckBox();
- this.label9 = new System.Windows.Forms.Label();
- this.checkBox1 = new System.Windows.Forms.CheckBox();
- this.ultraExpandableGroupBox1 = new Infragistics.Win.Misc.UltraExpandableGroupBox();
- this.ultraExpandableGroupBoxPanel1 = new Infragistics.Win.Misc.UltraExpandableGroupBoxPanel();
- this.panel1 = new System.Windows.Forms.Panel();
- this.dateTimePicker5 = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
- this.comboBox6 = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
- this.comboBox3 = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
- this.comboBox5 = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
- this.comboBox2 = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
- this.textBox8 = new System.Windows.Forms.TextBox();
- this.textBox4 = new System.Windows.Forms.TextBox();
- this.textBox15 = new System.Windows.Forms.TextBox();
- this.textBox12 = new System.Windows.Forms.TextBox();
- this.textBox13 = new System.Windows.Forms.TextBox();
- this.textBox14 = new System.Windows.Forms.TextBox();
- this.label4 = new System.Windows.Forms.Label();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.label7 = new System.Windows.Forms.Label();
- this.label19 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.label18 = new System.Windows.Forms.Label();
- this.textBox11 = new System.Windows.Forms.TextBox();
- this.label10 = new System.Windows.Forms.Label();
- this.label16 = new System.Windows.Forms.Label();
- this.textBox10 = new System.Windows.Forms.TextBox();
- this.label11 = new System.Windows.Forms.Label();
- this.label14 = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
- this.textBox9 = new System.Windows.Forms.TextBox();
- this.label12 = new System.Windows.Forms.Label();
- this.label13 = new System.Windows.Forms.Label();
- this.textBox3 = new System.Windows.Forms.TextBox();
- this.label15 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.textBox2 = new System.Windows.Forms.TextBox();
- this.textBox5 = new System.Windows.Forms.TextBox();
- this.textBox7 = new System.Windows.Forms.TextBox();
- this.textBox6 = new System.Windows.Forms.TextBox();
- this.panel3 = new System.Windows.Forms.Panel();
- this.textBox25 = new System.Windows.Forms.TextBox();
- this.label28 = new System.Windows.Forms.Label();
- this.label22 = new System.Windows.Forms.Label();
- this.textBox21 = new System.Windows.Forms.TextBox();
- this.label23 = new System.Windows.Forms.Label();
- this.textBox24 = new System.Windows.Forms.TextBox();
- this.label27 = new System.Windows.Forms.Label();
- this.btn_setheatid = new System.Windows.Forms.Button();
- this.textBox23 = new System.Windows.Forms.TextBox();
- this.label25 = new System.Windows.Forms.Label();
- this.button1 = new System.Windows.Forms.Button();
- this.textBox22 = new System.Windows.Forms.TextBox();
- this.textBox20 = new System.Windows.Forms.TextBox();
- this.label24 = new System.Windows.Forms.Label();
- this.textBox19 = new System.Windows.Forms.TextBox();
- this.label21 = new System.Windows.Forms.Label();
- this.textBox18 = new System.Windows.Forms.TextBox();
- this.label20 = new System.Windows.Forms.Label();
- this.textBox17 = new System.Windows.Forms.TextBox();
- this.label17 = new System.Windows.Forms.Label();
- this.textBox16 = new System.Windows.Forms.TextBox();
- this.label5 = new System.Windows.Forms.Label();
- this.splitter1 = new System.Windows.Forms.Splitter();
- this.panel2 = new System.Windows.Forms.Panel();
- this.panel5 = new System.Windows.Forms.Panel();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.ultraGrid2 = new Infragistics.Win.UltraWinGrid.UltraGrid();
- this.panel4 = new System.Windows.Forms.Panel();
- this.groupBox2 = new System.Windows.Forms.GroupBox();
- this.ultraGrid3 = new Infragistics.Win.UltraWinGrid.UltraGrid();
- this.ultraGroupBox2 = new Infragistics.Win.Misc.UltraGroupBox();
- this.dtpCutTime = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
- this.label29 = new System.Windows.Forms.Label();
- this.cboFlowNo = new System.Windows.Forms.ComboBox();
- this.label30 = new System.Windows.Forms.Label();
- this.label31 = new System.Windows.Forms.Label();
- this.txtSurplusFlag = new System.Windows.Forms.TextBox();
- this.txtProdorderNO = new System.Windows.Forms.TextBox();
- this.label32 = new System.Windows.Forms.Label();
- this.txtOrderNO = new System.Windows.Forms.TextBox();
- this.label33 = new System.Windows.Forms.Label();
- this.button4 = new System.Windows.Forms.Button();
- this.button3 = new System.Windows.Forms.Button();
- this.textBox26 = new System.Windows.Forms.TextBox();
- this.label34 = new System.Windows.Forms.Label();
- this.label35 = new System.Windows.Forms.Label();
- this.label36 = new System.Windows.Forms.Label();
- this.tbxWeight = new System.Windows.Forms.TextBox();
- this.tbxThick = new System.Windows.Forms.TextBox();
- this.tbxWidth = new System.Windows.Forms.TextBox();
- this.label37 = new System.Windows.Forms.Label();
- this.tbxLength = new System.Windows.Forms.TextBox();
- this.label38 = new System.Windows.Forms.Label();
- this.comboBox1 = new System.Windows.Forms.ComboBox();
- this.label39 = new System.Windows.Forms.Label();
- this.textBox27 = new System.Windows.Forms.TextBox();
- this.label40 = new System.Windows.Forms.Label();
- this.textBox28 = new System.Windows.Forms.TextBox();
- this.label41 = new System.Windows.Forms.Label();
- this.ultraGroupBox3 = new Infragistics.Win.Misc.UltraGroupBox();
- this.bntSend = new System.Windows.Forms.Button();
- this.combConNo = new System.Windows.Forms.ComboBox();
- this.chkConNo = new System.Windows.Forms.CheckBox();
- this.queryBtn = new System.Windows.Forms.Button();
- this.ccmNumCobo = new System.Windows.Forms.ComboBox();
- this.chkCcmNo = new System.Windows.Forms.CheckBox();
- ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraGrid1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).BeginInit();
- this.ultraGroupBox1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.comboBox4)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker4)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker3)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).BeginInit();
- this.ultraExpandableGroupBox1.SuspendLayout();
- this.ultraExpandableGroupBoxPanel1.SuspendLayout();
- this.panel1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker5)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.comboBox6)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.comboBox3)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.comboBox5)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.comboBox2)).BeginInit();
- this.panel3.SuspendLayout();
- this.panel2.SuspendLayout();
- this.panel5.SuspendLayout();
- this.groupBox1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.ultraGrid2)).BeginInit();
- this.panel4.SuspendLayout();
- this.groupBox2.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.ultraGrid3)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox2)).BeginInit();
- this.ultraGroupBox2.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dtpCutTime)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox3)).BeginInit();
- this.ultraGroupBox3.SuspendLayout();
- this.SuspendLayout();
- //
- // dataSet1
- //
- this.dataSet1.DataSetName = "NewDataSet";
- this.dataSet1.Locale = new System.Globalization.CultureInfo("zh-CN");
- this.dataSet1.Tables.AddRange(new System.Data.DataTable[] {
- this.dataTable1});
- //
- // dataTable1
- //
- this.dataTable1.Columns.AddRange(new System.Data.DataColumn[] {
- this.dataColumn1,
- this.dataColumn2,
- this.dataColumn3,
- this.dataColumn4,
- this.dataColumn5,
- this.dataColumn6,
- this.dataColumn7,
- this.dataColumn8,
- this.dataColumn9,
- this.dataColumn10,
- this.dataColumn11,
- this.dataColumn12,
- this.dataColumn13,
- this.dataColumn14,
- this.dataColumn15,
- this.dataColumn16,
- this.dataColumn17});
- this.dataTable1.TableName = "Table1";
- //
- // dataColumn1
- //
- this.dataColumn1.ColumnName = "HEATNO";
- //
- // dataColumn2
- //
- this.dataColumn2.ColumnName = "CCMSTOVENO";
- //
- // dataColumn3
- //
- this.dataColumn3.ColumnName = "CCMID";
- //
- // dataColumn4
- //
- this.dataColumn4.ColumnName = "FLOWNO";
- //
- // dataColumn5
- //
- this.dataColumn5.ColumnName = "CUTSEQNO";
- //
- // dataColumn6
- //
- this.dataColumn6.ColumnName = "MOULDNO";
- //
- // dataColumn7
- //
- this.dataColumn7.ColumnName = "HEATSEQ";
- //
- // dataColumn8
- //
- this.dataColumn8.ColumnName = "HEATCNT";
- //
- // dataColumn9
- //
- this.dataColumn9.ColumnName = "LENGTH";
- //
- // dataColumn10
- //
- this.dataColumn10.ColumnName = "WIDTH";
- //
- // dataColumn11
- //
- this.dataColumn11.ColumnName = "THICKNESS";
- this.dataColumn11.DataType = typeof(decimal);
- //
- // dataColumn12
- //
- this.dataColumn12.ColumnName = "WEIGHT";
- //
- // dataColumn13
- //
- this.dataColumn13.ColumnName = "SPECRULE";
- //
- // dataColumn14
- //
- this.dataColumn14.ColumnName = "CUTTIME";
- //
- // dataColumn15
- //
- this.dataColumn15.ColumnName = "SHIFTCODE";
- //
- // dataColumn16
- //
- this.dataColumn16.ColumnName = "LASTBILLETFLAG";
- //
- // dataColumn17
- //
- this.dataColumn17.ColumnName = "FLAG";
- //
- // ultraGrid1
- //
- this.ultraGrid1.DataSource = this.dataTable1;
- appearance1.BackColor = System.Drawing.SystemColors.Window;
- appearance1.BorderColor = System.Drawing.SystemColors.InactiveCaption;
- appearance1.FontData.SizeInPoints = 10F;
- this.ultraGrid1.DisplayLayout.Appearance = appearance1;
- ultraGridColumn1.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance3.TextHAlignAsString = "Center";
- appearance3.TextVAlignAsString = "Middle";
- ultraGridColumn1.Header.Appearance = appearance3;
- ultraGridColumn1.Header.Caption = "炉号";
- ultraGridColumn1.Header.VisiblePosition = 0;
- ultraGridColumn1.RowLayoutColumnInfo.OriginX = 0;
- ultraGridColumn1.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn1.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(76, 0);
- ultraGridColumn1.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
- ultraGridColumn1.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn1.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn2.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGridColumn2.Header.Caption = "连铸炉号";
- ultraGridColumn2.Header.VisiblePosition = 1;
- ultraGridColumn2.Hidden = true;
- ultraGridColumn3.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance4.TextHAlignAsString = "Center";
- appearance4.TextVAlignAsString = "Middle";
- ultraGridColumn3.Header.Appearance = appearance4;
- ultraGridColumn3.Header.Caption = "铸机号";
- ultraGridColumn3.Header.VisiblePosition = 2;
- ultraGridColumn3.RowLayoutColumnInfo.OriginX = 10;
- ultraGridColumn3.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn3.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(60, 0);
- ultraGridColumn3.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn3.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn4.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance32.TextHAlignAsString = "Center";
- ultraGridColumn4.Header.Appearance = appearance32;
- ultraGridColumn4.Header.Caption = "流号";
- ultraGridColumn4.Header.VisiblePosition = 3;
- ultraGridColumn4.RowLayoutColumnInfo.OriginX = 6;
- ultraGridColumn4.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn4.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(45, 0);
- ultraGridColumn4.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
- ultraGridColumn4.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn4.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn4.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDown;
- ultraGridColumn4.Width = 60;
- ultraGridColumn5.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance33.TextHAlignAsString = "Center";
- ultraGridColumn5.Header.Appearance = appearance33;
- ultraGridColumn5.Header.Caption = "切割序号";
- ultraGridColumn5.Header.VisiblePosition = 4;
- ultraGridColumn5.Hidden = true;
- ultraGridColumn5.RowLayoutColumnInfo.OriginX = 8;
- ultraGridColumn5.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn5.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(74, 0);
- ultraGridColumn5.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
- ultraGridColumn5.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn5.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn5.Width = 70;
- ultraGridColumn6.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance34.TextHAlignAsString = "Center";
- appearance34.TextVAlignAsString = "Middle";
- ultraGridColumn6.Header.Appearance = appearance34;
- ultraGridColumn6.Header.Caption = "浇次号";
- ultraGridColumn6.Header.VisiblePosition = 5;
- ultraGridColumn6.RowLayoutColumnInfo.OriginX = 28;
- ultraGridColumn6.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn6.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(67, 0);
- ultraGridColumn6.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn6.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn7.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance35.TextHAlignAsString = "Center";
- appearance35.TextVAlignAsString = "Middle";
- ultraGridColumn7.Header.Appearance = appearance35;
- ultraGridColumn7.Header.Caption = " 浇次内炉序";
- ultraGridColumn7.Header.VisiblePosition = 6;
- ultraGridColumn7.RowLayoutColumnInfo.OriginX = 30;
- ultraGridColumn7.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn7.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(52, 0);
- ultraGridColumn7.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn7.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn8.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance36.TextHAlignAsString = "Center";
- appearance36.TextVAlignAsString = "Middle";
- ultraGridColumn8.Header.Appearance = appearance36;
- ultraGridColumn8.Header.Caption = "浇次内炉数";
- ultraGridColumn8.Header.VisiblePosition = 7;
- ultraGridColumn8.Hidden = true;
- ultraGridColumn8.RowLayoutColumnInfo.OriginX = 32;
- ultraGridColumn8.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn8.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(62, 0);
- ultraGridColumn8.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn8.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn9.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance37.TextHAlignAsString = "Center";
- ultraGridColumn9.Header.Appearance = appearance37;
- ultraGridColumn9.Header.Caption = "长度";
- ultraGridColumn9.Header.VisiblePosition = 8;
- ultraGridColumn9.RowLayoutColumnInfo.OriginX = 12;
- ultraGridColumn9.RowLayoutColumnInfo.OriginY = 1;
- ultraGridColumn9.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(53, 0);
- ultraGridColumn9.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn9.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn9.Width = 70;
- ultraGridColumn10.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance38.TextHAlignAsString = "Center";
- ultraGridColumn10.Header.Appearance = appearance38;
- ultraGridColumn10.Header.Caption = "宽度";
- ultraGridColumn10.Header.VisiblePosition = 9;
- ultraGridColumn10.RowLayoutColumnInfo.OriginX = 14;
- ultraGridColumn10.RowLayoutColumnInfo.OriginY = 1;
- ultraGridColumn10.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(48, 0);
- ultraGridColumn10.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn10.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn10.Width = 70;
- ultraGridColumn11.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance39.TextHAlignAsString = "Center";
- appearance39.TextVAlignAsString = "Middle";
- ultraGridColumn11.Header.Appearance = appearance39;
- ultraGridColumn11.Header.Caption = "厚度";
- ultraGridColumn11.Header.VisiblePosition = 10;
- ultraGridColumn11.RowLayoutColumnInfo.OriginX = 16;
- ultraGridColumn11.RowLayoutColumnInfo.OriginY = 1;
- ultraGridColumn11.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(48, 0);
- ultraGridColumn11.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn11.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn12.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance40.TextHAlignAsString = "Center";
- appearance40.TextVAlignAsString = "Middle";
- ultraGridColumn12.Header.Appearance = appearance40;
- ultraGridColumn12.Header.Caption = "重量";
- ultraGridColumn12.Header.VisiblePosition = 11;
- ultraGridColumn12.RowLayoutColumnInfo.OriginX = 18;
- ultraGridColumn12.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn12.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(52, 0);
- ultraGridColumn12.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
- ultraGridColumn12.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn12.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn12.Width = 60;
- ultraGridColumn13.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance41.TextHAlignAsString = "Center";
- ultraGridColumn13.Header.Appearance = appearance41;
- ultraGridColumn13.Header.Caption = "定尺";
- ultraGridColumn13.Header.VisiblePosition = 12;
- ultraGridColumn13.Hidden = true;
- ultraGridColumn13.RowLayoutColumnInfo.OriginX = 28;
- ultraGridColumn13.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn13.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
- ultraGridColumn13.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn13.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn13.Width = 60;
- ultraGridColumn14.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGridColumn14.Format = "yyyy-MM-dd HH:mm:ss";
- appearance42.TextHAlignAsString = "Center";
- ultraGridColumn14.Header.Appearance = appearance42;
- ultraGridColumn14.Header.Caption = "切割时间";
- ultraGridColumn14.Header.VisiblePosition = 13;
- ultraGridColumn14.RowLayoutColumnInfo.OriginX = 8;
- ultraGridColumn14.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn14.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(144, 0);
- ultraGridColumn14.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47);
- ultraGridColumn14.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn14.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn14.Width = 150;
- ultraGridColumn15.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance43.TextHAlignAsString = "Center";
- appearance43.TextVAlignAsString = "Middle";
- ultraGridColumn15.Header.Appearance = appearance43;
- ultraGridColumn15.Header.Caption = "班组";
- ultraGridColumn15.Header.VisiblePosition = 14;
- ultraGridColumn15.RowLayoutColumnInfo.OriginX = 32;
- ultraGridColumn15.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn15.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(69, 0);
- ultraGridColumn15.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn15.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn16.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance44.TextHAlignAsString = "Center";
- appearance44.TextVAlignAsString = "Middle";
- ultraGridColumn16.Header.Appearance = appearance44;
- ultraGridColumn16.Header.Caption = "末块";
- ultraGridColumn16.Header.VisiblePosition = 15;
- ultraGridColumn16.RowLayoutColumnInfo.OriginX = 20;
- ultraGridColumn16.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn16.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(44, 0);
- ultraGridColumn16.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn16.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn17.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGridColumn17.Header.VisiblePosition = 16;
- ultraGridColumn17.Hidden = true;
- ultraGridColumn18.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance45.TextHAlignAsString = "Center";
- ultraGridColumn18.Header.Appearance = appearance45;
- ultraGridColumn18.Header.Caption = "切割尺寸";
- ultraGridColumn18.Header.VisiblePosition = 17;
- ultraGridColumn18.RowLayoutColumnInfo.LabelPosition = Infragistics.Win.UltraWinGrid.LabelPosition.LabelOnly;
- ultraGridColumn18.RowLayoutColumnInfo.OriginX = 12;
- ultraGridColumn18.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn18.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 23);
- ultraGridColumn18.RowLayoutColumnInfo.SpanX = 6;
- ultraGridColumn18.RowLayoutColumnInfo.SpanY = 1;
- ultraGridColumn19.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGridColumn19.Header.Caption = "人工指定";
- ultraGridColumn19.Header.VisiblePosition = 18;
- ultraGridColumn19.Hidden = true;
- ultraGridColumn19.RowLayoutColumnInfo.OriginX = 20;
- ultraGridColumn19.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn19.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(64, 0);
- ultraGridColumn19.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn19.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn20.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.None;
- ultraGridColumn20.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance46.TextHAlignAsString = "Center";
- ultraGridColumn20.Header.Appearance = appearance46;
- ultraGridColumn20.Header.Caption = "坯料号";
- ultraGridColumn20.Header.VisiblePosition = 19;
- ultraGridColumn20.RowLayoutColumnInfo.OriginX = 4;
- ultraGridColumn20.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn20.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(86, 0);
- ultraGridColumn20.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn20.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn21.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGridColumn21.CellDisplayStyle = Infragistics.Win.UltraWinGrid.CellDisplayStyle.PlainText;
- appearance47.TextHAlignAsString = "Center";
- ultraGridColumn21.Header.Appearance = appearance47;
- ultraGridColumn21.Header.Caption = "块号";
- ultraGridColumn21.Header.VisiblePosition = 20;
- ultraGridColumn21.Hidden = true;
- ultraGridColumn21.RowLayoutColumnInfo.OriginX = 20;
- ultraGridColumn21.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn21.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(39, 0);
- ultraGridColumn21.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn21.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn21.TabStop = false;
- ultraGridColumn22.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGridColumn22.Header.Caption = "坯料编码";
- ultraGridColumn22.Header.VisiblePosition = 21;
- ultraGridColumn22.Hidden = true;
- ultraGridColumn23.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGridColumn23.Header.Caption = "订单行号";
- ultraGridColumn23.Header.VisiblePosition = 22;
- ultraGridColumn23.RowLayoutColumnInfo.OriginX = 22;
- ultraGridColumn23.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn23.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(104, 0);
- ultraGridColumn23.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn23.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn24.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGridColumn24.Header.Caption = "生产订单号";
- ultraGridColumn24.Header.VisiblePosition = 23;
- ultraGridColumn24.RowLayoutColumnInfo.OriginX = 24;
- ultraGridColumn24.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn24.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(116, 0);
- ultraGridColumn24.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn24.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn25.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGridColumn25.Header.Caption = "是否余材";
- ultraGridColumn25.Header.VisiblePosition = 24;
- ultraGridColumn25.RowLayoutColumnInfo.OriginX = 26;
- ultraGridColumn25.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn25.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(38, 0);
- ultraGridColumn25.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn25.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn26.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- appearance48.TextHAlignAsString = "Center";
- ultraGridColumn26.Header.Appearance = appearance48;
- ultraGridColumn26.Header.Caption = "牌号";
- ultraGridColumn26.Header.VisiblePosition = 25;
- ultraGridColumn26.RowLayoutColumnInfo.OriginX = 2;
- ultraGridColumn26.RowLayoutColumnInfo.OriginY = 0;
- ultraGridColumn26.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(66, 0);
- ultraGridColumn26.RowLayoutColumnInfo.SpanX = 2;
- ultraGridColumn26.RowLayoutColumnInfo.SpanY = 2;
- ultraGridColumn26.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDown;
- ultraGridBand1.Columns.AddRange(new object[] {
- ultraGridColumn1,
- ultraGridColumn2,
- ultraGridColumn3,
- ultraGridColumn4,
- ultraGridColumn5,
- ultraGridColumn6,
- ultraGridColumn7,
- ultraGridColumn8,
- ultraGridColumn9,
- ultraGridColumn10,
- ultraGridColumn11,
- ultraGridColumn12,
- ultraGridColumn13,
- ultraGridColumn14,
- ultraGridColumn15,
- ultraGridColumn16,
- ultraGridColumn17,
- ultraGridColumn18,
- ultraGridColumn19,
- ultraGridColumn20,
- ultraGridColumn21,
- ultraGridColumn22,
- ultraGridColumn23,
- ultraGridColumn24,
- ultraGridColumn25,
- ultraGridColumn26});
- ultraGridBand1.RowLayoutStyle = Infragistics.Win.UltraWinGrid.RowLayoutStyle.ColumnLayout;
- this.ultraGrid1.DisplayLayout.BandsSerializer.Add(ultraGridBand1);
- this.ultraGrid1.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
- appearance21.TextHAlignAsString = "Left";
- this.ultraGrid1.DisplayLayout.CaptionAppearance = appearance21;
- appearance22.BackColor = System.Drawing.SystemColors.ActiveBorder;
- appearance22.BackColor2 = System.Drawing.SystemColors.ControlDark;
- appearance22.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
- appearance22.BorderColor = System.Drawing.SystemColors.Window;
- this.ultraGrid1.DisplayLayout.GroupByBox.Appearance = appearance22;
- appearance23.ForeColor = System.Drawing.SystemColors.GrayText;
- this.ultraGrid1.DisplayLayout.GroupByBox.BandLabelAppearance = appearance23;
- this.ultraGrid1.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
- this.ultraGrid1.DisplayLayout.GroupByBox.Hidden = true;
- appearance24.BackColor = System.Drawing.SystemColors.ControlLightLight;
- appearance24.BackColor2 = System.Drawing.SystemColors.Control;
- appearance24.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
- appearance24.ForeColor = System.Drawing.SystemColors.GrayText;
- this.ultraGrid1.DisplayLayout.GroupByBox.PromptAppearance = appearance24;
- this.ultraGrid1.DisplayLayout.MaxColScrollRegions = 1;
- this.ultraGrid1.DisplayLayout.MaxRowScrollRegions = 1;
- appearance25.BackColor = System.Drawing.SystemColors.Info;
- appearance25.ForeColor = System.Drawing.SystemColors.ControlText;
- this.ultraGrid1.DisplayLayout.Override.ActiveCellAppearance = appearance25;
- this.ultraGrid1.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.RaisedSoft;
- this.ultraGrid1.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.None;
- appearance26.BackColor = System.Drawing.SystemColors.Window;
- this.ultraGrid1.DisplayLayout.Override.CardAreaAppearance = appearance26;
- appearance27.BorderColor = System.Drawing.Color.Silver;
- appearance27.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
- this.ultraGrid1.DisplayLayout.Override.CellAppearance = appearance27;
- this.ultraGrid1.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
- this.ultraGrid1.DisplayLayout.Override.CellPadding = 0;
- this.ultraGrid1.DisplayLayout.Override.DefaultRowHeight = 21;
- appearance28.BackColor = System.Drawing.SystemColors.Control;
- appearance28.BackColor2 = System.Drawing.SystemColors.ControlDark;
- appearance28.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
- appearance28.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
- appearance28.BorderColor = System.Drawing.SystemColors.Window;
- this.ultraGrid1.DisplayLayout.Override.GroupByRowAppearance = appearance28;
- appearance29.TextHAlignAsString = "Left";
- this.ultraGrid1.DisplayLayout.Override.HeaderAppearance = appearance29;
- this.ultraGrid1.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.Select;
- this.ultraGrid1.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
- appearance30.BackColor = System.Drawing.SystemColors.Window;
- appearance30.BorderColor = System.Drawing.Color.Silver;
- this.ultraGrid1.DisplayLayout.Override.RowAppearance = appearance30;
- this.ultraGrid1.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex;
- this.ultraGrid1.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
- this.ultraGrid1.DisplayLayout.Override.RowSelectorWidth = 45;
- appearance31.BackColor = System.Drawing.SystemColors.ControlLight;
- this.ultraGrid1.DisplayLayout.Override.TemplateAddRowAppearance = appearance31;
- this.ultraGrid1.DisplayLayout.Override.WrapHeaderText = Infragistics.Win.DefaultableBoolean.True;
- this.ultraGrid1.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
- this.ultraGrid1.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
- this.ultraGrid1.DisplayLayout.UseFixedHeaders = true;
- valueList1.Key = "SHIFTCODE";
- valueListItem1.DataValue = "11";
- valueListItem1.DisplayText = "白班甲组";
- valueListItem2.DataValue = "12";
- valueListItem2.DisplayText = "白班乙组";
- valueListItem3.DataValue = "13";
- valueListItem3.DisplayText = "白班丙组";
- valueListItem4.DataValue = "14";
- valueListItem4.DisplayText = "白班丁组";
- valueListItem5.DataValue = "21";
- valueListItem5.DisplayText = "中班甲组";
- valueListItem6.DataValue = "22";
- valueListItem6.DisplayText = "中班乙组";
- valueListItem7.DataValue = "23";
- valueListItem7.DisplayText = "中班丙组";
- valueListItem8.DataValue = "24";
- valueListItem8.DisplayText = "中班丁组";
- valueListItem9.DataValue = "31";
- valueListItem9.DisplayText = "夜班甲组";
- valueListItem10.DataValue = "32";
- valueListItem10.DisplayText = "夜班乙组";
- valueListItem11.DataValue = "33";
- valueListItem11.DisplayText = "夜班丙组";
- valueListItem28.DataValue = "34";
- valueListItem28.DisplayText = "夜班丁组";
- valueList1.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] {
- valueListItem1,
- valueListItem2,
- valueListItem3,
- valueListItem4,
- valueListItem5,
- valueListItem6,
- valueListItem7,
- valueListItem8,
- valueListItem9,
- valueListItem10,
- valueListItem11,
- valueListItem28});
- valueList2.Key = "CCMID";
- valueListItem29.DataValue = "0";
- valueListItem29.DisplayText = "0#铸机";
- valueListItem30.DataValue = "1";
- valueListItem30.DisplayText = "1#铸机";
- valueListItem31.DataValue = "2";
- valueListItem31.DisplayText = "2#铸机";
- valueListItem16.DataValue = "3";
- valueListItem16.DisplayText = "3#铸机";
- valueList2.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] {
- valueListItem29,
- valueListItem30,
- valueListItem31,
- valueListItem16});
- valueList3.Key = "flow";
- valueListItem17.DataValue = "1";
- valueListItem17.DisplayText = "1流";
- valueListItem18.DataValue = "2";
- valueListItem18.DisplayText = "2流";
- valueListItem19.DataValue = "3";
- valueListItem19.DisplayText = "3流";
- valueListItem20.DataValue = "4";
- valueListItem20.DisplayText = "4流";
- valueListItem21.DataValue = "5";
- valueListItem21.DisplayText = "5流";
- valueList3.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] {
- valueListItem17,
- valueListItem18,
- valueListItem19,
- valueListItem20,
- valueListItem21});
- valueList4.Key = "LASTBILLETFLAG";
- valueListItem22.DataValue = "N";
- valueListItem22.DisplayText = "否";
- valueListItem23.DataValue = "Y";
- valueListItem23.DisplayText = "是";
- valueList4.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] {
- valueListItem22,
- valueListItem23});
- valueList5.Key = "resflag";
- valueListItem24.DataValue = "0";
- valueListItem24.DisplayText = "是";
- valueListItem25.DataValue = "1";
- valueListItem25.DisplayText = "否";
- valueList5.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] {
- valueListItem24,
- valueListItem25});
- valueList6.Key = "SURPLUSFLAG";
- valueListItem26.DataValue = "0";
- valueListItem26.DisplayText = "否";
- valueListItem27.DataValue = "1";
- valueListItem27.DisplayText = "是";
- valueList6.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] {
- valueListItem26,
- valueListItem27});
- this.ultraGrid1.DisplayLayout.ValueLists.AddRange(new Infragistics.Win.ValueList[] {
- valueList1,
- valueList2,
- valueList3,
- valueList4,
- valueList5,
- valueList6});
- this.ultraGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ultraGrid1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.ultraGrid1.Location = new System.Drawing.Point(0, 50);
- this.ultraGrid1.Name = "ultraGrid1";
- this.ultraGrid1.Size = new System.Drawing.Size(708, 369);
- this.ultraGrid1.TabIndex = 34;
- this.ultraGrid1.BeforeRowFixedStateChanged += new Infragistics.Win.UltraWinGrid.BeforeRowFixedStateChangedEventHandler(this.ultraGrid1_BeforeRowFixedStateChanged);
- this.ultraGrid1.BeforeRowUpdate += new Infragistics.Win.UltraWinGrid.CancelableRowEventHandler(this.ultraGrid1_BeforeRowUpdate);
- this.ultraGrid1.AfterRowActivate += new System.EventHandler(this.ultraGrid1_AfterRowActivate);
- //
- // ultraGroupBox1
- //
- this.ultraGroupBox1.Controls.Add(this.comboBox4);
- this.ultraGroupBox1.Controls.Add(this.dateTimePicker4);
- this.ultraGroupBox1.Controls.Add(this.dateTimePicker3);
- this.ultraGroupBox1.Controls.Add(this.label26);
- this.ultraGroupBox1.Controls.Add(this.richTextBox1);
- this.ultraGroupBox1.Controls.Add(this.txt_heatidnoy);
- this.ultraGroupBox1.Controls.Add(this.textBox1);
- this.ultraGroupBox1.Controls.Add(this.checkBox3);
- this.ultraGroupBox1.Controls.Add(this.checkBox2);
- this.ultraGroupBox1.Controls.Add(this.label9);
- this.ultraGroupBox1.Controls.Add(this.checkBox1);
- this.ultraGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
- this.ultraGroupBox1.Location = new System.Drawing.Point(0, 0);
- this.ultraGroupBox1.Name = "ultraGroupBox1";
- this.ultraGroupBox1.Size = new System.Drawing.Size(708, 50);
- this.ultraGroupBox1.TabIndex = 32;
- this.ultraGroupBox1.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2000;
- //
- // comboBox4
- //
- this.comboBox4.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append;
- this.comboBox4.DisplayMember = "id";
- this.comboBox4.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;
- this.comboBox4.Font = new System.Drawing.Font("宋体", 9.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.comboBox4.Location = new System.Drawing.Point(613, 14);
- this.comboBox4.Name = "comboBox4";
- this.comboBox4.Size = new System.Drawing.Size(64, 22);
- this.comboBox4.TabIndex = 284;
- //
- // dateTimePicker4
- //
- this.dateTimePicker4.DateTime = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
- this.dateTimePicker4.Enabled = false;
- this.dateTimePicker4.FormatProvider = new System.Globalization.CultureInfo("en-US");
- this.dateTimePicker4.FormatString = "yyyy-MM-dd HH:mm";
- this.dateTimePicker4.Location = new System.Drawing.Point(267, 15);
- this.dateTimePicker4.MaskInput = "yyyy-mm-dd hh:mm";
- this.dateTimePicker4.Name = "dateTimePicker4";
- this.dateTimePicker4.Size = new System.Drawing.Size(124, 21);
- this.dateTimePicker4.TabIndex = 283;
- this.dateTimePicker4.Value = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
- //
- // dateTimePicker3
- //
- this.dateTimePicker3.DateTime = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
- this.dateTimePicker3.Enabled = false;
- this.dateTimePicker3.FormatProvider = new System.Globalization.CultureInfo("en-US");
- this.dateTimePicker3.FormatString = "yyyy-MM-dd HH:mm";
- this.dateTimePicker3.Location = new System.Drawing.Point(106, 15);
- this.dateTimePicker3.MaskInput = "yyyy-mm-dd hh:mm";
- this.dateTimePicker3.Name = "dateTimePicker3";
- this.dateTimePicker3.Size = new System.Drawing.Size(124, 21);
- this.dateTimePicker3.TabIndex = 282;
- this.dateTimePicker3.Value = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
- //
- // label26
- //
- this.label26.AutoSize = true;
- this.label26.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label26.Location = new System.Drawing.Point(202, 33);
- this.label26.Name = "label26";
- this.label26.Size = new System.Drawing.Size(65, 12);
- this.label26.TabIndex = 110;
- this.label26.Text = "未置是炉号";
- this.label26.Visible = false;
- //
- // richTextBox1
- //
- this.richTextBox1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.richTextBox1.Location = new System.Drawing.Point(8, 31);
- this.richTextBox1.Name = "richTextBox1";
- this.richTextBox1.Size = new System.Drawing.Size(197, 18);
- this.richTextBox1.TabIndex = 109;
- this.richTextBox1.Visible = false;
- //
- // txt_heatidnoy
- //
- this.txt_heatidnoy.Location = new System.Drawing.Point(268, 30);
- this.txt_heatidnoy.Name = "txt_heatidnoy";
- this.txt_heatidnoy.ReadOnly = true;
- this.txt_heatidnoy.Size = new System.Drawing.Size(404, 21);
- this.txt_heatidnoy.TabIndex = 24;
- this.txt_heatidnoy.Visible = false;
- //
- // textBox1
- //
- this.textBox1.Enabled = false;
- this.textBox1.Location = new System.Drawing.Point(465, 15);
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(80, 21);
- this.textBox1.TabIndex = 22;
- //
- // checkBox3
- //
- this.checkBox3.Location = new System.Drawing.Point(552, 13);
- this.checkBox3.Name = "checkBox3";
- this.checkBox3.Size = new System.Drawing.Size(64, 24);
- this.checkBox3.TabIndex = 17;
- this.checkBox3.Text = "铸机号";
- this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged);
- //
- // checkBox2
- //
- this.checkBox2.Location = new System.Drawing.Point(409, 13);
- this.checkBox2.Name = "checkBox2";
- this.checkBox2.Size = new System.Drawing.Size(72, 24);
- this.checkBox2.TabIndex = 10;
- this.checkBox2.Text = "熔炼号";
- this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
- //
- // label9
- //
- this.label9.Location = new System.Drawing.Point(238, 17);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(29, 17);
- this.label9.TabIndex = 7;
- this.label9.Text = "到:";
- //
- // checkBox1
- //
- this.checkBox1.Location = new System.Drawing.Point(8, 13);
- this.checkBox1.Name = "checkBox1";
- this.checkBox1.Size = new System.Drawing.Size(120, 24);
- this.checkBox1.TabIndex = 4;
- this.checkBox1.Text = "切割时间 从:";
- this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
- //
- // ultraExpandableGroupBox1
- //
- this.ultraExpandableGroupBox1.Controls.Add(this.ultraExpandableGroupBoxPanel1);
- this.ultraExpandableGroupBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.ultraExpandableGroupBox1.ExpandedSize = new System.Drawing.Size(708, 160);
- this.ultraExpandableGroupBox1.Location = new System.Drawing.Point(0, 419);
- this.ultraExpandableGroupBox1.Name = "ultraExpandableGroupBox1";
- this.ultraExpandableGroupBox1.Size = new System.Drawing.Size(708, 160);
- this.ultraExpandableGroupBox1.TabIndex = 36;
- this.ultraExpandableGroupBox1.Text = "编辑";
- this.ultraExpandableGroupBox1.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2000;
- //
- // ultraExpandableGroupBoxPanel1
- //
- this.ultraExpandableGroupBoxPanel1.Controls.Add(this.panel1);
- this.ultraExpandableGroupBoxPanel1.Controls.Add(this.panel3);
- this.ultraExpandableGroupBoxPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ultraExpandableGroupBoxPanel1.Location = new System.Drawing.Point(3, 19);
- this.ultraExpandableGroupBoxPanel1.Name = "ultraExpandableGroupBoxPanel1";
- this.ultraExpandableGroupBoxPanel1.Size = new System.Drawing.Size(702, 138);
- this.ultraExpandableGroupBoxPanel1.TabIndex = 0;
- //
- // panel1
- //
- this.panel1.Controls.Add(this.dateTimePicker5);
- this.panel1.Controls.Add(this.comboBox6);
- this.panel1.Controls.Add(this.comboBox3);
- this.panel1.Controls.Add(this.comboBox5);
- this.panel1.Controls.Add(this.comboBox2);
- this.panel1.Controls.Add(this.textBox8);
- this.panel1.Controls.Add(this.textBox4);
- this.panel1.Controls.Add(this.textBox15);
- this.panel1.Controls.Add(this.textBox12);
- this.panel1.Controls.Add(this.textBox13);
- this.panel1.Controls.Add(this.textBox14);
- this.panel1.Controls.Add(this.label4);
- this.panel1.Controls.Add(this.label1);
- this.panel1.Controls.Add(this.label2);
- this.panel1.Controls.Add(this.label7);
- this.panel1.Controls.Add(this.label19);
- this.panel1.Controls.Add(this.label3);
- this.panel1.Controls.Add(this.label18);
- this.panel1.Controls.Add(this.textBox11);
- this.panel1.Controls.Add(this.label10);
- this.panel1.Controls.Add(this.label16);
- this.panel1.Controls.Add(this.textBox10);
- this.panel1.Controls.Add(this.label11);
- this.panel1.Controls.Add(this.label14);
- this.panel1.Controls.Add(this.label8);
- this.panel1.Controls.Add(this.textBox9);
- this.panel1.Controls.Add(this.label12);
- this.panel1.Controls.Add(this.label13);
- this.panel1.Controls.Add(this.textBox3);
- this.panel1.Controls.Add(this.label15);
- this.panel1.Controls.Add(this.label6);
- this.panel1.Controls.Add(this.textBox2);
- this.panel1.Controls.Add(this.textBox5);
- this.panel1.Controls.Add(this.textBox7);
- this.panel1.Controls.Add(this.textBox6);
- this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panel1.Location = new System.Drawing.Point(0, 0);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(449, 138);
- this.panel1.TabIndex = 112;
- //
- // dateTimePicker5
- //
- this.dateTimePicker5.DateTime = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
- this.dateTimePicker5.FormatProvider = new System.Globalization.CultureInfo("en-US");
- this.dateTimePicker5.FormatString = "yyyy-MM-dd HH:mm:ss";
- this.dateTimePicker5.Location = new System.Drawing.Point(79, 119);
- this.dateTimePicker5.MaskInput = "yyyy-mm-dd hh:mm:ss";
- this.dateTimePicker5.Name = "dateTimePicker5";
- this.dateTimePicker5.Size = new System.Drawing.Size(212, 21);
- this.dateTimePicker5.TabIndex = 282;
- this.dateTimePicker5.Value = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
- //
- // comboBox6
- //
- this.comboBox6.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append;
- this.comboBox6.DisplayMember = "id";
- this.comboBox6.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;
- this.comboBox6.Location = new System.Drawing.Point(379, 95);
- this.comboBox6.Name = "comboBox6";
- this.comboBox6.Size = new System.Drawing.Size(56, 21);
- this.comboBox6.TabIndex = 114;
- this.comboBox6.ValueMember = "id";
- //
- // comboBox3
- //
- this.comboBox3.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append;
- this.comboBox3.DisplayMember = "id";
- this.comboBox3.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;
- this.comboBox3.Location = new System.Drawing.Point(206, 95);
- this.comboBox3.Name = "comboBox3";
- this.comboBox3.Size = new System.Drawing.Size(85, 21);
- this.comboBox3.TabIndex = 113;
- //
- // comboBox5
- //
- this.comboBox5.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append;
- this.comboBox5.DisplayMember = "id";
- this.comboBox5.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;
- this.comboBox5.Location = new System.Drawing.Point(79, 95);
- this.comboBox5.Name = "comboBox5";
- this.comboBox5.Size = new System.Drawing.Size(58, 21);
- this.comboBox5.TabIndex = 112;
- //
- // comboBox2
- //
- this.comboBox2.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append;
- this.comboBox2.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;
- this.comboBox2.Location = new System.Drawing.Point(79, 73);
- this.comboBox2.Name = "comboBox2";
- this.comboBox2.Size = new System.Drawing.Size(58, 21);
- this.comboBox2.TabIndex = 111;
- //
- // textBox8
- //
- this.textBox8.Location = new System.Drawing.Point(79, 3);
- this.textBox8.Name = "textBox8";
- this.textBox8.Size = new System.Drawing.Size(58, 21);
- this.textBox8.TabIndex = 69;
- //
- // textBox4
- //
- this.textBox4.Location = new System.Drawing.Point(313, 121);
- this.textBox4.Name = "textBox4";
- this.textBox4.Size = new System.Drawing.Size(96, 21);
- this.textBox4.TabIndex = 102;
- this.textBox4.Visible = false;
- //
- // textBox15
- //
- this.textBox15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
- this.textBox15.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.textBox15.Location = new System.Drawing.Point(206, 49);
- this.textBox15.Name = "textBox15";
- this.textBox15.Size = new System.Drawing.Size(85, 21);
- this.textBox15.TabIndex = 110;
- //
- // textBox12
- //
- this.textBox12.Location = new System.Drawing.Point(313, 121);
- this.textBox12.Name = "textBox12";
- this.textBox12.Size = new System.Drawing.Size(96, 21);
- this.textBox12.TabIndex = 79;
- this.textBox12.Visible = false;
- //
- // textBox13
- //
- this.textBox13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
- this.textBox13.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.textBox13.Location = new System.Drawing.Point(206, 26);
- this.textBox13.Name = "textBox13";
- this.textBox13.Size = new System.Drawing.Size(85, 21);
- this.textBox13.TabIndex = 108;
- //
- // textBox14
- //
- this.textBox14.Location = new System.Drawing.Point(321, 119);
- this.textBox14.Name = "textBox14";
- this.textBox14.Size = new System.Drawing.Size(96, 21);
- this.textBox14.TabIndex = 109;
- this.textBox14.Text = "textBox14";
- this.textBox14.Visible = false;
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(161, 31);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(41, 12);
- this.label4.TabIndex = 107;
- this.label4.Text = "坯料号";
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(161, 7);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(41, 12);
- this.label1.TabIndex = 52;
- this.label1.Text = "熔炼号";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(174, 99);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(29, 12);
- this.label2.TabIndex = 53;
- this.label2.Text = "班次";
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Location = new System.Drawing.Point(29, 7);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(41, 12);
- this.label7.TabIndex = 55;
- this.label7.Text = "浇次号";
- //
- // label19
- //
- this.label19.AutoSize = true;
- this.label19.Location = new System.Drawing.Point(17, 123);
- this.label19.Name = "label19";
- this.label19.Size = new System.Drawing.Size(53, 12);
- this.label19.TabIndex = 82;
- this.label19.Text = "切割时间";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(174, 54);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(29, 12);
- this.label3.TabIndex = 56;
- this.label3.Text = "块号";
- //
- // label18
- //
- this.label18.AutoSize = true;
- this.label18.Location = new System.Drawing.Point(297, 99);
- this.label18.Name = "label18";
- this.label18.Size = new System.Drawing.Size(77, 12);
- this.label18.TabIndex = 80;
- this.label18.Text = "是否本炉末块";
- //
- // textBox11
- //
- this.textBox11.Location = new System.Drawing.Point(379, 72);
- this.textBox11.Name = "textBox11";
- this.textBox11.Size = new System.Drawing.Size(56, 21);
- this.textBox11.TabIndex = 77;
- //
- // label10
- //
- this.label10.AutoSize = true;
- this.label10.Location = new System.Drawing.Point(29, 77);
- this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(41, 12);
- this.label10.TabIndex = 58;
- this.label10.Text = "铸机号";
- //
- // label16
- //
- this.label16.AutoSize = true;
- this.label16.Location = new System.Drawing.Point(345, 77);
- this.label16.Name = "label16";
- this.label16.Size = new System.Drawing.Size(29, 12);
- this.label16.TabIndex = 76;
- this.label16.Text = "重量";
- //
- // textBox10
- //
- this.textBox10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.textBox10.Location = new System.Drawing.Point(379, 49);
- this.textBox10.Name = "textBox10";
- this.textBox10.Size = new System.Drawing.Size(56, 21);
- this.textBox10.TabIndex = 75;
- this.textBox10.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
- //
- // label11
- //
- this.label11.AutoSize = true;
- this.label11.Location = new System.Drawing.Point(149, 77);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(53, 12);
- this.label11.TabIndex = 59;
- this.label11.Text = "切割序号";
- //
- // label14
- //
- this.label14.AutoSize = true;
- this.label14.Location = new System.Drawing.Point(345, 54);
- this.label14.Name = "label14";
- this.label14.Size = new System.Drawing.Size(29, 12);
- this.label14.TabIndex = 74;
- this.label14.Text = "厚度";
- //
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Location = new System.Drawing.Point(29, 99);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(41, 12);
- this.label8.TabIndex = 61;
- this.label8.Text = "铸流号";
- //
- // textBox9
- //
- this.textBox9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
- this.textBox9.Location = new System.Drawing.Point(379, 26);
- this.textBox9.Name = "textBox9";
- this.textBox9.Size = new System.Drawing.Size(56, 21);
- this.textBox9.TabIndex = 73;
- this.textBox9.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
- //
- // label12
- //
- this.label12.AutoSize = true;
- this.label12.Location = new System.Drawing.Point(345, 31);
- this.label12.Name = "label12";
- this.label12.Size = new System.Drawing.Size(29, 12);
- this.label12.TabIndex = 72;
- this.label12.Text = "宽度";
- //
- // label13
- //
- this.label13.AutoSize = true;
- this.label13.Location = new System.Drawing.Point(5, 31);
- this.label13.Name = "label13";
- this.label13.Size = new System.Drawing.Size(65, 12);
- this.label13.TabIndex = 62;
- this.label13.Text = "浇次内顺序";
- //
- // textBox3
- //
- this.textBox3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
- this.textBox3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.textBox3.Location = new System.Drawing.Point(379, 3);
- this.textBox3.Name = "textBox3";
- this.textBox3.Size = new System.Drawing.Size(56, 21);
- this.textBox3.TabIndex = 71;
- this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
- //
- // label15
- //
- this.label15.AutoSize = true;
- this.label15.Location = new System.Drawing.Point(5, 54);
- this.label15.Name = "label15";
- this.label15.Size = new System.Drawing.Size(65, 12);
- this.label15.TabIndex = 63;
- this.label15.Text = "浇次内炉数";
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(345, 7);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(29, 12);
- this.label6.TabIndex = 70;
- this.label6.Text = "长度";
- //
- // textBox2
- //
- this.textBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
- this.textBox2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.textBox2.Location = new System.Drawing.Point(206, 3);
- this.textBox2.Name = "textBox2";
- this.textBox2.Size = new System.Drawing.Size(85, 21);
- this.textBox2.TabIndex = 101;
- //
- // textBox5
- //
- this.textBox5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
- this.textBox5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.textBox5.Location = new System.Drawing.Point(206, 72);
- this.textBox5.Name = "textBox5";
- this.textBox5.Size = new System.Drawing.Size(85, 21);
- this.textBox5.TabIndex = 105;
- //
- // textBox7
- //
- this.textBox7.Location = new System.Drawing.Point(79, 49);
- this.textBox7.Name = "textBox7";
- this.textBox7.Size = new System.Drawing.Size(58, 21);
- this.textBox7.TabIndex = 68;
- //
- // textBox6
- //
- this.textBox6.Location = new System.Drawing.Point(79, 26);
- this.textBox6.Name = "textBox6";
- this.textBox6.Size = new System.Drawing.Size(58, 21);
- this.textBox6.TabIndex = 67;
- //
- // panel3
- //
- this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(228)))), ((int)(((byte)(242)))));
- this.panel3.Controls.Add(this.textBox25);
- this.panel3.Controls.Add(this.label28);
- this.panel3.Controls.Add(this.label22);
- this.panel3.Controls.Add(this.textBox21);
- this.panel3.Controls.Add(this.label23);
- this.panel3.Controls.Add(this.textBox24);
- this.panel3.Controls.Add(this.label27);
- this.panel3.Controls.Add(this.btn_setheatid);
- this.panel3.Controls.Add(this.textBox23);
- this.panel3.Controls.Add(this.label25);
- this.panel3.Controls.Add(this.button1);
- this.panel3.Controls.Add(this.textBox22);
- this.panel3.Controls.Add(this.textBox20);
- this.panel3.Controls.Add(this.label24);
- this.panel3.Controls.Add(this.textBox19);
- this.panel3.Controls.Add(this.label21);
- this.panel3.Controls.Add(this.textBox18);
- this.panel3.Controls.Add(this.label20);
- this.panel3.Controls.Add(this.textBox17);
- this.panel3.Controls.Add(this.label17);
- this.panel3.Controls.Add(this.textBox16);
- this.panel3.Controls.Add(this.label5);
- this.panel3.Dock = System.Windows.Forms.DockStyle.Right;
- this.panel3.Location = new System.Drawing.Point(449, 0);
- this.panel3.Name = "panel3";
- this.panel3.Size = new System.Drawing.Size(253, 138);
- this.panel3.TabIndex = 111;
- //
- // textBox25
- //
- this.textBox25.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.textBox25.ForeColor = System.Drawing.Color.Red;
- this.textBox25.Location = new System.Drawing.Point(7, 72);
- this.textBox25.Name = "textBox25";
- this.textBox25.Size = new System.Drawing.Size(52, 21);
- this.textBox25.TabIndex = 25;
- //
- // label28
- //
- this.label28.AutoSize = true;
- this.label28.Location = new System.Drawing.Point(2, 56);
- this.label28.Name = "label28";
- this.label28.Size = new System.Drawing.Size(65, 12);
- this.label28.TabIndex = 24;
- this.label28.Text = "中包总支数";
- //
- // label22
- //
- this.label22.AutoSize = true;
- this.label22.Location = new System.Drawing.Point(181, 99);
- this.label22.Name = "label22";
- this.label22.Size = new System.Drawing.Size(53, 12);
- this.label22.TabIndex = 16;
- this.label22.Text = "剩余支数";
- //
- // textBox21
- //
- this.textBox21.Location = new System.Drawing.Point(120, 115);
- this.textBox21.Name = "textBox21";
- this.textBox21.ReadOnly = true;
- this.textBox21.Size = new System.Drawing.Size(59, 21);
- this.textBox21.TabIndex = 15;
- //
- // label23
- //
- this.label23.AutoSize = true;
- this.label23.Location = new System.Drawing.Point(116, 99);
- this.label23.Name = "label23";
- this.label23.Size = new System.Drawing.Size(65, 12);
- this.label23.TabIndex = 14;
- this.label23.Text = "已切割支数";
- //
- // textBox24
- //
- this.textBox24.Location = new System.Drawing.Point(69, 115);
- this.textBox24.Name = "textBox24";
- this.textBox24.ReadOnly = true;
- this.textBox24.Size = new System.Drawing.Size(46, 21);
- this.textBox24.TabIndex = 23;
- //
- // label27
- //
- this.label27.AutoSize = true;
- this.label27.Location = new System.Drawing.Point(66, 99);
- this.label27.Name = "label27";
- this.label27.Size = new System.Drawing.Size(53, 12);
- this.label27.TabIndex = 22;
- this.label27.Text = "实际预测";
- //
- // btn_setheatid
- //
- this.btn_setheatid.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btn_setheatid.Location = new System.Drawing.Point(80, 22);
- this.btn_setheatid.Name = "btn_setheatid";
- this.btn_setheatid.Size = new System.Drawing.Size(72, 24);
- this.btn_setheatid.TabIndex = 21;
- this.btn_setheatid.Text = "炉号设置";
- this.btn_setheatid.Click += new System.EventHandler(this.btn_setheatid_Click);
- //
- // textBox23
- //
- this.textBox23.Location = new System.Drawing.Point(168, 24);
- this.textBox23.Name = "textBox23";
- this.textBox23.ReadOnly = true;
- this.textBox23.Size = new System.Drawing.Size(66, 21);
- this.textBox23.TabIndex = 20;
- //
- // label25
- //
- this.label25.Location = new System.Drawing.Point(163, 8);
- this.label25.Name = "label25";
- this.label25.Size = new System.Drawing.Size(80, 16);
- this.label25.TabIndex = 19;
- this.label25.Text = "已切坯料总量";
- //
- // button1
- //
- this.button1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.button1.Location = new System.Drawing.Point(229, 72);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(21, 21);
- this.button1.TabIndex = 18;
- this.button1.Text = "▼";
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // textBox22
- //
- this.textBox22.Location = new System.Drawing.Point(182, 115);
- this.textBox22.Name = "textBox22";
- this.textBox22.ReadOnly = true;
- this.textBox22.Size = new System.Drawing.Size(48, 21);
- this.textBox22.TabIndex = 17;
- //
- // textBox20
- //
- this.textBox20.Location = new System.Drawing.Point(7, 115);
- this.textBox20.Name = "textBox20";
- this.textBox20.ReadOnly = true;
- this.textBox20.Size = new System.Drawing.Size(52, 21);
- this.textBox20.TabIndex = 13;
- //
- // label24
- //
- this.label24.AutoSize = true;
- this.label24.Location = new System.Drawing.Point(6, 99);
- this.label24.Name = "label24";
- this.label24.Size = new System.Drawing.Size(53, 12);
- this.label24.TabIndex = 12;
- this.label24.Text = "计划支数";
- //
- // textBox19
- //
- this.textBox19.Location = new System.Drawing.Point(182, 72);
- this.textBox19.Name = "textBox19";
- this.textBox19.ReadOnly = true;
- this.textBox19.Size = new System.Drawing.Size(48, 21);
- this.textBox19.TabIndex = 11;
- //
- // label21
- //
- this.label21.AutoSize = true;
- this.label21.Location = new System.Drawing.Point(181, 56);
- this.label21.Name = "label21";
- this.label21.Size = new System.Drawing.Size(53, 12);
- this.label21.TabIndex = 10;
- this.label21.Text = "钢水重量";
- //
- // textBox18
- //
- this.textBox18.Location = new System.Drawing.Point(120, 72);
- this.textBox18.Name = "textBox18";
- this.textBox18.Size = new System.Drawing.Size(59, 21);
- this.textBox18.TabIndex = 9;
- this.textBox18.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox18_KeyDown);
- //
- // label20
- //
- this.label20.AutoSize = true;
- this.label20.Location = new System.Drawing.Point(122, 56);
- this.label20.Name = "label20";
- this.label20.Size = new System.Drawing.Size(53, 12);
- this.label20.TabIndex = 8;
- this.label20.Text = "大包重量";
- //
- // textBox17
- //
- this.textBox17.Location = new System.Drawing.Point(69, 72);
- this.textBox17.Name = "textBox17";
- this.textBox17.Size = new System.Drawing.Size(46, 21);
- this.textBox17.TabIndex = 7;
- this.textBox17.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox17_KeyDown);
- //
- // label17
- //
- this.label17.AutoSize = true;
- this.label17.Location = new System.Drawing.Point(66, 56);
- this.label17.Name = "label17";
- this.label17.Size = new System.Drawing.Size(53, 12);
- this.label17.TabIndex = 6;
- this.label17.Text = "上台重量";
- //
- // textBox16
- //
- this.textBox16.Location = new System.Drawing.Point(7, 24);
- this.textBox16.Name = "textBox16";
- this.textBox16.ReadOnly = true;
- this.textBox16.Size = new System.Drawing.Size(62, 21);
- this.textBox16.TabIndex = 5;
- //
- // label5
- //
- this.label5.Location = new System.Drawing.Point(7, 8);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(80, 23);
- this.label5.TabIndex = 4;
- this.label5.Text = "正在切割炉号";
- //
- // splitter1
- //
- this.splitter1.Dock = System.Windows.Forms.DockStyle.Right;
- this.splitter1.Location = new System.Drawing.Point(708, 0);
- this.splitter1.Name = "splitter1";
- this.splitter1.Size = new System.Drawing.Size(3, 579);
- this.splitter1.TabIndex = 107;
- this.splitter1.TabStop = false;
- //
- // panel2
- //
- this.panel2.Controls.Add(this.panel5);
- this.panel2.Controls.Add(this.panel4);
- this.panel2.Controls.Add(this.ultraGroupBox2);
- this.panel2.Controls.Add(this.ultraGroupBox3);
- this.panel2.Dock = System.Windows.Forms.DockStyle.Right;
- this.panel2.Location = new System.Drawing.Point(711, 0);
- this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(315, 579);
- this.panel2.TabIndex = 106;
- this.panel2.Visible = false;
- this.panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint);
- //
- // panel5
- //
- this.panel5.Controls.Add(this.groupBox1);
- this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panel5.Location = new System.Drawing.Point(0, 282);
- this.panel5.Name = "panel5";
- this.panel5.Size = new System.Drawing.Size(315, 123);
- this.panel5.TabIndex = 11;
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.ultraGrid2);
- this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.groupBox1.Location = new System.Drawing.Point(0, 0);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(315, 123);
- this.groupBox1.TabIndex = 8;
- this.groupBox1.TabStop = false;
- //
- // ultraGrid2
- //
- appearance2.FontData.BoldAsString = "True";
- this.ultraGrid2.DisplayLayout.Override.ActiveRowAppearance = appearance2;
- this.ultraGrid2.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
- this.ultraGrid2.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex;
- this.ultraGrid2.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
- this.ultraGrid2.DisplayLayout.Override.RowSelectorWidth = 20;
- this.ultraGrid2.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
- this.ultraGrid2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ultraGrid2.Location = new System.Drawing.Point(3, 17);
- this.ultraGrid2.Name = "ultraGrid2";
- this.ultraGrid2.Size = new System.Drawing.Size(309, 103);
- this.ultraGrid2.TabIndex = 1;
- //
- // panel4
- //
- this.panel4.Controls.Add(this.groupBox2);
- this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
- this.panel4.Location = new System.Drawing.Point(0, 50);
- this.panel4.Name = "panel4";
- this.panel4.Size = new System.Drawing.Size(315, 232);
- this.panel4.TabIndex = 10;
- //
- // groupBox2
- //
- this.groupBox2.Controls.Add(this.ultraGrid3);
- this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.groupBox2.Location = new System.Drawing.Point(0, 0);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new System.Drawing.Size(315, 232);
- this.groupBox2.TabIndex = 9;
- this.groupBox2.TabStop = false;
- this.groupBox2.Text = "计划信息";
- //
- // ultraGrid3
- //
- this.ultraGrid3.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
- this.ultraGrid3.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex;
- this.ultraGrid3.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
- this.ultraGrid3.DisplayLayout.Override.RowSelectorWidth = 20;
- this.ultraGrid3.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
- this.ultraGrid3.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ultraGrid3.Location = new System.Drawing.Point(3, 17);
- this.ultraGrid3.Name = "ultraGrid3";
- this.ultraGrid3.Size = new System.Drawing.Size(309, 212);
- this.ultraGrid3.TabIndex = 0;
- //
- // ultraGroupBox2
- //
- this.ultraGroupBox2.BackColorInternal = System.Drawing.Color.Gainsboro;
- this.ultraGroupBox2.Controls.Add(this.dtpCutTime);
- this.ultraGroupBox2.Controls.Add(this.label29);
- this.ultraGroupBox2.Controls.Add(this.cboFlowNo);
- this.ultraGroupBox2.Controls.Add(this.label30);
- this.ultraGroupBox2.Controls.Add(this.label31);
- this.ultraGroupBox2.Controls.Add(this.txtSurplusFlag);
- this.ultraGroupBox2.Controls.Add(this.txtProdorderNO);
- this.ultraGroupBox2.Controls.Add(this.label32);
- this.ultraGroupBox2.Controls.Add(this.txtOrderNO);
- this.ultraGroupBox2.Controls.Add(this.label33);
- this.ultraGroupBox2.Controls.Add(this.button4);
- this.ultraGroupBox2.Controls.Add(this.button3);
- this.ultraGroupBox2.Controls.Add(this.textBox26);
- this.ultraGroupBox2.Controls.Add(this.label34);
- this.ultraGroupBox2.Controls.Add(this.label35);
- this.ultraGroupBox2.Controls.Add(this.label36);
- this.ultraGroupBox2.Controls.Add(this.tbxWeight);
- this.ultraGroupBox2.Controls.Add(this.tbxThick);
- this.ultraGroupBox2.Controls.Add(this.tbxWidth);
- this.ultraGroupBox2.Controls.Add(this.label37);
- this.ultraGroupBox2.Controls.Add(this.tbxLength);
- this.ultraGroupBox2.Controls.Add(this.label38);
- this.ultraGroupBox2.Controls.Add(this.comboBox1);
- this.ultraGroupBox2.Controls.Add(this.label39);
- this.ultraGroupBox2.Controls.Add(this.textBox27);
- this.ultraGroupBox2.Controls.Add(this.label40);
- this.ultraGroupBox2.Controls.Add(this.textBox28);
- this.ultraGroupBox2.Controls.Add(this.label41);
- this.ultraGroupBox2.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.ultraGroupBox2.Location = new System.Drawing.Point(0, 405);
- this.ultraGroupBox2.Name = "ultraGroupBox2";
- this.ultraGroupBox2.Size = new System.Drawing.Size(315, 174);
- this.ultraGroupBox2.TabIndex = 7;
- this.ultraGroupBox2.Text = "按计划多块生成切割";
- //
- // dtpCutTime
- //
- this.dtpCutTime.DateTime = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
- this.dtpCutTime.FormatProvider = new System.Globalization.CultureInfo("en-US");
- this.dtpCutTime.FormatString = "yyyy-MM-dd HH:mm:ss";
- this.dtpCutTime.Location = new System.Drawing.Point(74, 145);
- this.dtpCutTime.MaskInput = "yyyy-mm-dd hh:mm:ss";
- this.dtpCutTime.Name = "dtpCutTime";
- this.dtpCutTime.Size = new System.Drawing.Size(231, 21);
- this.dtpCutTime.TabIndex = 283;
- this.dtpCutTime.Value = new System.DateTime(2008, 11, 24, 0, 0, 0, 0);
- //
- // label29
- //
- this.label29.AutoSize = true;
- this.label29.Location = new System.Drawing.Point(18, 149);
- this.label29.Name = "label29";
- this.label29.Size = new System.Drawing.Size(53, 12);
- this.label29.TabIndex = 150;
- this.label29.Text = "切割时间";
- //
- // cboFlowNo
- //
- this.cboFlowNo.BackColor = System.Drawing.Color.White;
- this.cboFlowNo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.cboFlowNo.Items.AddRange(new object[] {
- "1",
- "2",
- "3",
- "4"});
- this.cboFlowNo.Location = new System.Drawing.Point(257, 69);
- this.cboFlowNo.Name = "cboFlowNo";
- this.cboFlowNo.Size = new System.Drawing.Size(48, 20);
- this.cboFlowNo.TabIndex = 149;
- //
- // label30
- //
- this.label30.AutoSize = true;
- this.label30.Location = new System.Drawing.Point(226, 73);
- this.label30.Name = "label30";
- this.label30.Size = new System.Drawing.Size(29, 12);
- this.label30.TabIndex = 148;
- this.label30.Text = "流号";
- //
- // label31
- //
- this.label31.AutoSize = true;
- this.label31.Location = new System.Drawing.Point(143, 97);
- this.label31.Name = "label31";
- this.label31.Size = new System.Drawing.Size(29, 12);
- this.label31.TabIndex = 147;
- this.label31.Text = "余材";
- //
- // txtSurplusFlag
- //
- this.txtSurplusFlag.BackColor = System.Drawing.Color.White;
- this.txtSurplusFlag.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.txtSurplusFlag.Location = new System.Drawing.Point(175, 93);
- this.txtSurplusFlag.Name = "txtSurplusFlag";
- this.txtSurplusFlag.Size = new System.Drawing.Size(48, 21);
- this.txtSurplusFlag.TabIndex = 146;
- //
- // txtProdorderNO
- //
- this.txtProdorderNO.BackColor = System.Drawing.Color.White;
- this.txtProdorderNO.Location = new System.Drawing.Point(74, 45);
- this.txtProdorderNO.Name = "txtProdorderNO";
- this.txtProdorderNO.ReadOnly = true;
- this.txtProdorderNO.Size = new System.Drawing.Size(149, 21);
- this.txtProdorderNO.TabIndex = 145;
- //
- // label32
- //
- this.label32.AutoSize = true;
- this.label32.Location = new System.Drawing.Point(6, 49);
- this.label32.Name = "label32";
- this.label32.Size = new System.Drawing.Size(65, 12);
- this.label32.TabIndex = 144;
- this.label32.Text = "生产订单号";
- //
- // txtOrderNO
- //
- this.txtOrderNO.BackColor = System.Drawing.Color.White;
- this.txtOrderNO.Location = new System.Drawing.Point(74, 21);
- this.txtOrderNO.Name = "txtOrderNO";
- this.txtOrderNO.ReadOnly = true;
- this.txtOrderNO.Size = new System.Drawing.Size(149, 21);
- this.txtOrderNO.TabIndex = 143;
- //
- // label33
- //
- this.label33.AutoSize = true;
- this.label33.Location = new System.Drawing.Point(18, 25);
- this.label33.Name = "label33";
- this.label33.Size = new System.Drawing.Size(53, 12);
- this.label33.TabIndex = 142;
- this.label33.Text = "订单行号";
- //
- // button4
- //
- this.button4.Location = new System.Drawing.Point(238, 44);
- this.button4.Name = "button4";
- this.button4.Size = new System.Drawing.Size(61, 23);
- this.button4.TabIndex = 141;
- this.button4.Text = "取消";
- this.button4.UseVisualStyleBackColor = true;
- this.button4.Visible = false;
- //
- // button3
- //
- this.button3.Location = new System.Drawing.Point(244, 20);
- this.button3.Name = "button3";
- this.button3.Size = new System.Drawing.Size(61, 23);
- this.button3.TabIndex = 140;
- this.button3.Text = "生成";
- this.button3.UseVisualStyleBackColor = true;
- //
- // textBox26
- //
- this.textBox26.BackColor = System.Drawing.Color.LightCyan;
- this.textBox26.Location = new System.Drawing.Point(238, 150);
- this.textBox26.Name = "textBox26";
- this.textBox26.Size = new System.Drawing.Size(64, 21);
- this.textBox26.TabIndex = 139;
- this.textBox26.Text = "1";
- this.textBox26.Visible = false;
- //
- // label34
- //
- this.label34.AutoSize = true;
- this.label34.Location = new System.Drawing.Point(182, 154);
- this.label34.Name = "label34";
- this.label34.Size = new System.Drawing.Size(53, 12);
- this.label34.TabIndex = 138;
- this.label34.Text = "起始序号";
- this.label34.Visible = false;
- //
- // label35
- //
- this.label35.AutoSize = true;
- this.label35.Location = new System.Drawing.Point(226, 97);
- this.label35.Name = "label35";
- this.label35.Size = new System.Drawing.Size(29, 12);
- this.label35.TabIndex = 137;
- this.label35.Text = "重量";
- //
- // label36
- //
- this.label36.AutoSize = true;
- this.label36.Location = new System.Drawing.Point(226, 121);
- this.label36.Name = "label36";
- this.label36.Size = new System.Drawing.Size(29, 12);
- this.label36.TabIndex = 136;
- this.label36.Text = "厚度";
- //
- // tbxWeight
- //
- this.tbxWeight.BackColor = System.Drawing.Color.White;
- this.tbxWeight.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.tbxWeight.Location = new System.Drawing.Point(257, 93);
- this.tbxWeight.Name = "tbxWeight";
- this.tbxWeight.Size = new System.Drawing.Size(48, 21);
- this.tbxWeight.TabIndex = 135;
- //
- // tbxThick
- //
- this.tbxThick.BackColor = System.Drawing.Color.White;
- this.tbxThick.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.tbxThick.Location = new System.Drawing.Point(257, 117);
- this.tbxThick.Name = "tbxThick";
- this.tbxThick.Size = new System.Drawing.Size(48, 21);
- this.tbxThick.TabIndex = 134;
- //
- // tbxWidth
- //
- this.tbxWidth.BackColor = System.Drawing.Color.White;
- this.tbxWidth.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.tbxWidth.Location = new System.Drawing.Point(175, 117);
- this.tbxWidth.Name = "tbxWidth";
- this.tbxWidth.Size = new System.Drawing.Size(48, 21);
- this.tbxWidth.TabIndex = 133;
- //
- // label37
- //
- this.label37.AutoSize = true;
- this.label37.Location = new System.Drawing.Point(143, 121);
- this.label37.Name = "label37";
- this.label37.Size = new System.Drawing.Size(29, 12);
- this.label37.TabIndex = 132;
- this.label37.Text = "宽度";
- //
- // tbxLength
- //
- this.tbxLength.BackColor = System.Drawing.Color.White;
- this.tbxLength.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.tbxLength.Location = new System.Drawing.Point(74, 117);
- this.tbxLength.Name = "tbxLength";
- this.tbxLength.Size = new System.Drawing.Size(64, 21);
- this.tbxLength.TabIndex = 131;
- //
- // label38
- //
- this.label38.AutoSize = true;
- this.label38.Location = new System.Drawing.Point(42, 121);
- this.label38.Name = "label38";
- this.label38.Size = new System.Drawing.Size(29, 12);
- this.label38.TabIndex = 130;
- this.label38.Text = "长度";
- //
- // comboBox1
- //
- this.comboBox1.BackColor = System.Drawing.Color.White;
- this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBox1.Items.AddRange(new object[] {
- "0",
- "1",
- "2",
- "3"});
- this.comboBox1.Location = new System.Drawing.Point(175, 69);
- this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(48, 20);
- this.comboBox1.TabIndex = 129;
- //
- // label39
- //
- this.label39.AutoSize = true;
- this.label39.Location = new System.Drawing.Point(144, 73);
- this.label39.Name = "label39";
- this.label39.Size = new System.Drawing.Size(29, 12);
- this.label39.TabIndex = 128;
- this.label39.Text = "铸机";
- //
- // textBox27
- //
- this.textBox27.BackColor = System.Drawing.Color.White;
- this.textBox27.Location = new System.Drawing.Point(74, 93);
- this.textBox27.Name = "textBox27";
- this.textBox27.Size = new System.Drawing.Size(64, 21);
- this.textBox27.TabIndex = 127;
- //
- // label40
- //
- this.label40.AutoSize = true;
- this.label40.Location = new System.Drawing.Point(18, 97);
- this.label40.Name = "label40";
- this.label40.Size = new System.Drawing.Size(53, 12);
- this.label40.TabIndex = 126;
- this.label40.Text = "生成块数";
- //
- // textBox28
- //
- this.textBox28.BackColor = System.Drawing.Color.White;
- this.textBox28.Location = new System.Drawing.Point(74, 69);
- this.textBox28.Name = "textBox28";
- this.textBox28.ReadOnly = true;
- this.textBox28.Size = new System.Drawing.Size(64, 21);
- this.textBox28.TabIndex = 125;
- //
- // label41
- //
- this.label41.AutoSize = true;
- this.label41.Location = new System.Drawing.Point(30, 73);
- this.label41.Name = "label41";
- this.label41.Size = new System.Drawing.Size(41, 12);
- this.label41.TabIndex = 124;
- this.label41.Text = "熔炼号";
- //
- // ultraGroupBox3
- //
- this.ultraGroupBox3.BackColorInternal = System.Drawing.Color.Gainsboro;
- this.ultraGroupBox3.Controls.Add(this.bntSend);
- this.ultraGroupBox3.Controls.Add(this.combConNo);
- this.ultraGroupBox3.Controls.Add(this.chkConNo);
- this.ultraGroupBox3.Controls.Add(this.queryBtn);
- this.ultraGroupBox3.Controls.Add(this.ccmNumCobo);
- this.ultraGroupBox3.Controls.Add(this.chkCcmNo);
- this.ultraGroupBox3.Dock = System.Windows.Forms.DockStyle.Top;
- this.ultraGroupBox3.Location = new System.Drawing.Point(0, 0);
- this.ultraGroupBox3.Name = "ultraGroupBox3";
- this.ultraGroupBox3.Size = new System.Drawing.Size(315, 50);
- this.ultraGroupBox3.TabIndex = 6;
- //
- // bntSend
- //
- this.bntSend.BackColor = System.Drawing.Color.LightSeaGreen;
- this.bntSend.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.bntSend.Location = new System.Drawing.Point(20, 39);
- this.bntSend.Name = "bntSend";
- this.bntSend.Size = new System.Drawing.Size(104, 23);
- this.bntSend.TabIndex = 5;
- this.bntSend.Text = "发送金相指示";
- this.bntSend.UseVisualStyleBackColor = false;
- this.bntSend.Visible = false;
- //
- // combConNo
- //
- this.combConNo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.combConNo.Location = new System.Drawing.Point(186, 14);
- this.combConNo.Name = "combConNo";
- this.combConNo.Size = new System.Drawing.Size(62, 20);
- this.combConNo.TabIndex = 3;
- //
- // chkConNo
- //
- this.chkConNo.AutoSize = true;
- this.chkConNo.Location = new System.Drawing.Point(128, 16);
- this.chkConNo.Name = "chkConNo";
- this.chkConNo.Size = new System.Drawing.Size(60, 16);
- this.chkConNo.TabIndex = 2;
- this.chkConNo.Text = "转炉号";
- this.chkConNo.UseVisualStyleBackColor = true;
- //
- // queryBtn
- //
- this.queryBtn.Location = new System.Drawing.Point(254, 13);
- this.queryBtn.Name = "queryBtn";
- this.queryBtn.Size = new System.Drawing.Size(58, 23);
- this.queryBtn.TabIndex = 4;
- this.queryBtn.Text = "查询";
- this.queryBtn.UseVisualStyleBackColor = true;
- this.queryBtn.Click += new System.EventHandler(this.queryBtn_Click);
- //
- // ccmNumCobo
- //
- this.ccmNumCobo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.ccmNumCobo.FormattingEnabled = true;
- this.ccmNumCobo.Location = new System.Drawing.Point(62, 14);
- this.ccmNumCobo.Name = "ccmNumCobo";
- this.ccmNumCobo.Size = new System.Drawing.Size(62, 20);
- this.ccmNumCobo.TabIndex = 3;
- //
- // chkCcmNo
- //
- this.chkCcmNo.AutoSize = true;
- this.chkCcmNo.Location = new System.Drawing.Point(6, 16);
- this.chkCcmNo.Name = "chkCcmNo";
- this.chkCcmNo.Size = new System.Drawing.Size(60, 16);
- this.chkCcmNo.TabIndex = 0;
- this.chkCcmNo.Text = "铸机号";
- this.chkCcmNo.UseVisualStyleBackColor = true;
- this.chkCcmNo.CheckedChanged += new System.EventHandler(this.chkCcmNo_CheckedChanged);
- //
- // FrmCutBilletDetail
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.ClientSize = new System.Drawing.Size(1026, 579);
- this.Controls.Add(this.ultraGrid1);
- this.Controls.Add(this.ultraGroupBox1);
- this.Controls.Add(this.ultraExpandableGroupBox1);
- this.Controls.Add(this.splitter1);
- this.Controls.Add(this.panel2);
- this.Name = "FrmCutBilletDetail";
- this.Text = "切割明细";
- this.Load += new System.EventHandler(this.FrmMidPotroast_Load);
- ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraGrid1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).EndInit();
- this.ultraGroupBox1.ResumeLayout(false);
- this.ultraGroupBox1.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.comboBox4)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker4)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker3)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).EndInit();
- this.ultraExpandableGroupBox1.ResumeLayout(false);
- this.ultraExpandableGroupBoxPanel1.ResumeLayout(false);
- this.panel1.ResumeLayout(false);
- this.panel1.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker5)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.comboBox6)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.comboBox3)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.comboBox5)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.comboBox2)).EndInit();
- this.panel3.ResumeLayout(false);
- this.panel3.PerformLayout();
- this.panel2.ResumeLayout(false);
- this.panel5.ResumeLayout(false);
- this.groupBox1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.ultraGrid2)).EndInit();
- this.panel4.ResumeLayout(false);
- this.groupBox2.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.ultraGrid3)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox2)).EndInit();
- this.ultraGroupBox2.ResumeLayout(false);
- this.ultraGroupBox2.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dtpCutTime)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox3)).EndInit();
- this.ultraGroupBox3.ResumeLayout(false);
- this.ultraGroupBox3.PerformLayout();
- this.ResumeLayout(false);
- }
- #endregion
- #endregion
- #region " Valiable "
- private DataSet _dsMid;
- public bool DataChangedFlag = false;
- private string _strWhere = "";
- private Thread _refreshDataThread = null;
- private DateTime LastUpdateTime;
- #endregion
- public string CCMN0 = "";
- private string strOldBlockNo;
- private string strOldCastNo;
- private delegate void CallRefreshThreadDelegate();
- private bool bExit = false;
- private Hashtable cutHash = new Hashtable();
- private CommandClass _commClass;
- private bool blText = false; //处理装载程序时执行Changed事情
- private string _DEVICE_POSITION = ""; // 设备位置
- private int _DEVICE_POS = -1; // 设备号
- public string strV_BilletID = ""; //虚拟坯料号
- public string strV_Heat_ID = ""; //虚拟炉号
- public string strOrderNO = "";//订单行号
- public string strProdOrderNO = "";//生产订单号
- public string strSurplusFlag = "";//是否余材
- public string strSteelCode = "";
- public string strProductline = ""; //产线
- public string strStandardsCode = "";//标准号
- public string strStandardRemak = ""; //标准描述
- public string strCustomer_Key = "";//客户参数号
- #region " Init "
- #region//调度、切割
- public delegate void ReportSelect(string strCastNo, string strBlockNo);
- public ReportSelect reportSelect;
- public delegate void ReportHandSet(string strHeatID, int nBegin, int nEnd);
- public ReportHandSet reportHandSet;
- public int intCcm = -1;
- private DataTable steelSchTable, cutSchTable;//调度、切割指示表
- private Hashtable routeHash = new Hashtable();//存放工艺路径
- #endregion
- private void FrmMidPotroast_Load(object sender, System.EventArgs e)
- {
- string strKey = "";
- if (this.Key.IndexOf('@') > 0)
- {
- strKey = this.Key.Substring(this.Key.IndexOf('@') + 1, 5);
- _DEVICE_POSITION = strKey;
- if (_DEVICE_POSITION == "CCM04")
- _DEVICE_POS = 0;
- else
- _DEVICE_POS = Convert.ToInt16(strKey.Substring(strKey.Length - 1, 1));
- }
- //ultraGrid1.Font = new System.Drawing.Font("Tahoma", 9F);
- ultraGrid1.DisplayLayout.Appearance.FontData.SizeInPoints = 10;
- this.dateTimePicker3.Text = System.DateTime.Today.AddDays(-2).ToString("yyyy-MM-dd") + " 00:00";
- this.dateTimePicker4.Text = System.DateTime.Today.ToString("yyyy-MM-dd") + " 23:59";
- if (_DEVICE_POS == 2 || _DEVICE_POS == 3)
- {
- ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[0].DisplayText = "0流";
- ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[1].DisplayText = "1流";
- ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[2].DisplayText = "2流";
- ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[3].DisplayText = "3流";
- ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[4].DisplayText = "4流";
- }
- InitSteel(); //初始化Grid牌号信息
- // GetSqlWhere();
- // GetData();
- //OpenFromGetData();
- InitComboBoxSource();
- if (_DEVICE_POS > -1)
- {
- comboBox2.SelectedIndex = _DEVICE_POS;
- comboBox2.Enabled = false;
- comboBox4.SelectedIndex = _DEVICE_POS;
- }
- //FrmProductQuery ctr = new FrmProductQuery();
- //ctr.reportSelect = new FrmProductQuery.ReportSelect(PlanBlockChange);
- //ctr.reportHandSet = new FrmProductQuery.ReportHandSet(HandleSetClear);
- //if (_DEVICE_POS > -1)
- // ctr.intCcm = _DEVICE_POS;
- ////ctr.RemotingHelp = this.RemotingHelp ;
- //ctr.FrmMain = this;
- ////_commClass = new CommandClass(this.RemotingHelp);
- //this.panel2.Controls.Add(ctr);
- //ctr.Dock = System.Windows.Forms.DockStyle.Fill;
- strOldBlockNo = "";
- strOldCastNo = "";
- ////计划框体展现
- this.panel2.Visible = true;
- this.ultraExpandableGroupBox1.Expanded = true;
- CheckForIllegalCrossThreadCalls = false;
- blText = true;
- this.textBox5.TextChanged += new System.EventHandler(this.textBox5_TextChanged);
- //刷新线程
- ThreadStart ts = new ThreadStart(SetDataThread);
- _refreshDataThread = new Thread(ts);
- _refreshDataThread.Name = "RefreshData";
- _refreshDataThread.Start();
- bHandleCoup = true;
- bExit = false;
- #region//调度切割
- dtpCutTime.Value = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
- steelSchTable = new DataTable("steelSchTable");
- cutSchTable = new DataTable("cutSchTable");
- createTable();
- this.ultraGrid1.DataSource = steelSchTable;
- this.ultraGrid2.DataSource = cutSchTable;
- setGrid1View();
- InitComboBoxSource_Cut();
- this.combConNo.SelectedIndex = 0;
- //分铸机
- if (intCcm == -1)
- {
- this.ccmNumCobo.SelectedIndex = 0;
- }
- else
- {
- this.ccmNumCobo.SelectedIndex = intCcm;
- chkCcmNo.Checked = true;
- chkCcmNo.Enabled = false;
- comboBox3.SelectedIndex = intCcm;
- comboBox3.Enabled = false;
- }
- this.ccmNumCobo.Enabled = false;
- this.combConNo.Enabled = false;
- this.queryBtn_Click(null, new EventArgs());
- #endregion
- }
- /// <summary>
- /// 初始化Grind牌号
- /// </summary>
- private void InitSteel()
- {
- string strErr = "";
- ultraGrid1.DisplayLayout.ValueLists.Add("SteelCode");
- DataSet dsSteel = null; // (DataSet)ClientCommon._RemotingHelp.ExecuteMethod(
- //"lgIntegrationQuery",
- //"Core.LgMes.Server.lgIntegrationQuery.LgGeneralInfo",
- //"GetSteelInfo", new object[] { "where largeflag='1' order by steelcode " }, out strErr);
- if (strErr == "" && dsSteel != null)
- {
- //初始经Grid牌号字段数据集
- for (int i = 0; i < dsSteel.Tables[0].Rows.Count; i++)
- {
- ultraGrid1.DisplayLayout.ValueLists["SteelCode"].ValueListItems.Add(dsSteel.Tables[0].Rows[i]["SteelCode"].ToString(), dsSteel.Tables[0].Rows[i]["Steel"].ToString());
- }
- //绑定单位
- ultraGrid1.DisplayLayout.Bands[0].Columns["SteelCode"].ValueList = ultraGrid1.DisplayLayout.ValueLists["SteelCode"];
- }
-
- }
- private void InitComboBoxSource()
- {
- this.comboBox3.DataSource = GetDutyData();
- this.comboBox3.DisplayMember = "name";
- this.comboBox3.ValueMember = "id";
- this.comboBox2.DataSource = GetCcmData();
- this.comboBox2.DisplayMember = "name";
- this.comboBox2.ValueMember = "id";
- this.comboBox4.DataSource = GetCcmData();
- this.comboBox4.DisplayMember = "name";
- this.comboBox4.ValueMember = "id";
- this.comboBox5.DataSource = GetFlowData();
- this.comboBox5.DisplayMember = "name";
- this.comboBox5.ValueMember = "id";
- this.comboBox6.DataSource = GetStatusData();
- this.comboBox6.DisplayMember = "name";
- this.comboBox6.ValueMember = "id";
- }
- private DataTable GetDutyData()
- {
- DataTable dt = new DataTable();
- dt.Columns.Add("id", typeof(System.String));
- dt.Columns.Add("name", typeof(System.String));
- dt.Rows.Add(new object[] { "11", "白班甲组" });
- dt.Rows.Add(new object[] { "12", "白班乙组" });
- dt.Rows.Add(new object[] { "13", "白班丙组" });
- dt.Rows.Add(new object[] { "14", "白班丁组" });
- dt.Rows.Add(new object[] { "21", "中班甲组" });
- dt.Rows.Add(new object[] { "22", "中班乙组" });
- dt.Rows.Add(new object[] { "23", "中班丙组" });
- dt.Rows.Add(new object[] { "24", "中班丁组" });
- dt.Rows.Add(new object[] { "31", "夜班甲组" });
- dt.Rows.Add(new object[] { "32", "夜班乙组" });
- dt.Rows.Add(new object[] { "33", "夜班丙组" });
- dt.Rows.Add(new object[] { "34", "夜班丁组" });
- dt.AcceptChanges();
- return dt;
- }
- private DataTable GetCcmData()
- {
- DataTable dt = new DataTable();
- dt.Columns.Add("id", typeof(System.String));
- dt.Columns.Add("name", typeof(System.String));
- dt.Rows.Add(new object[] { "0", "0#铸机" });
- dt.Rows.Add(new object[] { "1", "1#铸机" });
- dt.Rows.Add(new object[] { "2", "2#铸机" });
- dt.Rows.Add(new object[] { "3", "3#铸机" });
- dt.Rows.Add(new object[] { "4", "4#铸机" });
- dt.AcceptChanges();
- return dt;
- }
- private DataTable GetStatusData()
- {
- DataTable dt = new DataTable();
- dt.Columns.Add("id", typeof(System.String));
- dt.Columns.Add("name", typeof(System.String));
- dt.Rows.Add(new object[] { "Y", "是" });
- dt.Rows.Add(new object[] { "N", "否" });
- dt.AcceptChanges();
- return dt;
- }
- private DataTable GetFlowData()
- {
- DataTable dt = new DataTable();
- dt.Columns.Add("id", typeof(System.String));
- dt.Columns.Add("name", typeof(System.String));
- if (_DEVICE_POS == 2 || _DEVICE_POS == 3)
- {
- dt.Rows.Add(new object[] { "1", "0流" });
- dt.Rows.Add(new object[] { "2", "1流" });
- dt.Rows.Add(new object[] { "3", "2流" });
- dt.Rows.Add(new object[] { "4", "3流" });
- dt.Rows.Add(new object[] { "5", "4流" });
- }
- else
- {
- dt.Rows.Add(new object[] { "1", "1流" });
- dt.Rows.Add(new object[] { "2", "2流" });
- dt.Rows.Add(new object[] { "3", "3流" });
- dt.Rows.Add(new object[] { "4", "4流" });
- dt.Rows.Add(new object[] { "5", "5流" });
- }
- dt.AcceptChanges();
- return dt;
- }
- /// <summary>
- /// 设置查询条件
- /// </summary>
- private void GetSqlWhere()
- {
- this._strWhere = " where 1=1 ";
- if (this.checkBox1.Checked)
- {
- this._strWhere += string.Format(" and CUTTIME between to_date('{0}','yyyy-MM-dd hh24:mi') and to_date('{1}','yyyy-MM-dd hh24:mi')",
- Convert.ToDateTime(this.dateTimePicker3.Value).ToString("yyyy-MM-dd HH:mm"),Convert.ToDateTime(this.dateTimePicker4.Value).ToString("yyyy-MM-dd HH:mm"));
- }
- if (this.checkBox2.Checked)
- {
- this._strWhere += string.Format(" and HEATNO = '{0}'", this.textBox1.Text.Trim());
- }
- if (this.checkBox3.Checked)
- {
- this._strWhere += string.Format(" and CCMID = '{0}'", this.comboBox4.SelectedIndex);
- }
- if (!checkBox1.Checked && !checkBox2.Checked && !checkBox3.Checked)
- {
- this._strWhere += string.Format(" and CUTTIME between to_date('{0}','yyyy-MM-dd hh24:mi') and to_date('{1}','yyyy-MM-dd hh24:mi')",
- DateTime.Now.ToString("yyyy-MM-dd") + " 00:00", DateTime.Now.ToString("yyyy-MM-dd") + " 23:59");
- }
- }
- private void GetData()
- {
- try
- { //hengxing
- //CallingMessage par = new CallingMessage();
- //par.ServerName = "lgJobMgt";
- //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
- //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
- //par.MethodName = "GetCutBillet";
- //par.args = new object[] { _strWhere + " order by cuttime asc,ccmid asc, heatno desc " };
- string strOut = "";
- if (_dsMid != null && _dsMid.Tables.Count > 0)
- {
- _dsMid.Tables.Clear();
- }
- //
- // if( _dsMid != null && _dsMid.Tables[0].Rows.Count > 0 )
- // {
- // _dsMid.Tables[0].Rows.Clear();
- // }
- _dsMid = null; //ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut) as DataSet;
- if (_dsMid != null)
- {
- this.ultraGrid1.DataSource = _dsMid.Tables[0];
-
- SetSteelSum();
- }
- string strOld = "";
- string strNew = "";
- string strOld_Order = "";
- string strNew_Order = "";
- Color c1 = Color.GhostWhite;//Color.White;
- Color c2 = Color.MintCream;//Color.GhostWhite;//Color.LightCyan;
- Color c3 = c1;
- Color color_OrderNo1 = Color.Blue;
- Color color_OrderNo2 = Color.Black;
- Color color_OrderNo3 = color_OrderNo1;
- for (int i = 0; i < this.ultraGrid1.Rows.Count; i++)
- {
- UltraGridRow ugr = this.ultraGrid1.Rows[i];
- strNew = ugr.Cells["HEATNO"].Value.ToString();
- strNew_Order = ugr.Cells["PRODORDERNO"].Value.ToString();
- if (strOld != strNew)
- {
- if (c3 == c1) c3 = c2;
- else c3 = c1;
- strOld = strNew;
- }
- ugr.Appearance.BackColor = c3;
- if (strOld_Order != strNew_Order)
- {
- if (color_OrderNo3 == color_OrderNo1) color_OrderNo3 = color_OrderNo2;
- else color_OrderNo3 = color_OrderNo1;
- strOld_Order = strNew_Order;
- }
- ugr.Appearance.ForeColor = color_OrderNo3;
- //ugr.Cells["PRODORDERNO"].Appearance.ForeColor = color_OrderNo3;
- //ugr.Cells["ORDERNO"].Appearance.ForeColor = color_OrderNo3;
- }
- }
- catch (Exception ex)
- {
- string strMsg = ex.Message;
- }
- }
-
- private void ultraGrid1_AfterRowActivate(object sender, System.EventArgs e)
- {
- if (this.ultraGrid1.ActiveRow == null) return;
- UltraGridRow ugr = this.ultraGrid1.ActiveRow;
- int i1 = 0; //炉内切割数
- int i2 = 0; //浇次内炉数
- string str1 = ugr.Cells["HEATNO"].Value.ToString(); //smeltingid 炉号
- string str2 = ugr.Cells["MOULDNO"].Value.ToString(); //castno 浇次号
- string str3 = "";
- for (int i = 0; i < this.ultraGrid1.Rows.Count; i++)
- {
- UltraGridRow ugrf = this.ultraGrid1.Rows[i];
- if (str2 == ugrf.Cells["MOULDNO"].Value.ToString())
- {
- if (str1 == ugrf.Cells["HEATNO"].Value.ToString())
- {
- i1++;
- }
- if (str3 != ugrf.Cells["HEATNO"].Value.ToString())
- {
- i2++;
- str3 = ugrf.Cells["HEATNO"].Value.ToString();
- }
- }
- }
- try
- {
- this.richTextBox1.Text = "浇次内炉数:" + i2.ToString() + " 炉内切割数:" + i1.ToString();
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- }
- this.textBox2.Text = ugr.Cells[0].Value.ToString();
- this.textBox4.Text = ugr.Cells[1].Value.ToString();
- this.comboBox2.Text = ugr.Cells[2].Value.ToString();
- this.comboBox5.Text = ugr.Cells[3].Value.ToString();
- this.textBox5.Text = ugr.Cells[4].Value.ToString();
- this.textBox8.Text = ugr.Cells[5].Value.ToString();
- strSteelCode = ugr.Cells["SteelCode"].Value.ToString();
- if (ugr.Cells[6].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[6].Value.ToString()))
- this.textBox6.Text = "";
- else
- this.textBox6.Text = Convert.ToSingle(ugr.Cells[6].Value).ToString();
- if (ugr.Cells[7].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[7].Value.ToString()))
- this.textBox7.Text = "";
- else
- this.textBox7.Text = Convert.ToSingle(ugr.Cells[7].Value).ToString();
- if (ugr.Cells[8].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[8].Value.ToString()))
- this.textBox3.Text = "";
- else
- this.textBox3.Text = Convert.ToSingle(ugr.Cells[8].Value).ToString();
- if (ugr.Cells[9].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[9].Value.ToString()))
- this.textBox9.Text = "";
- else
- this.textBox9.Text = Convert.ToSingle(ugr.Cells[9].Value).ToString();
- if (ugr.Cells[10].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[10].Value.ToString()))
- this.textBox10.Text = "";
- else
- this.textBox10.Text = Convert.ToSingle(ugr.Cells[10].Value).ToString();
- if (ugr.Cells[11].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[11].Value.ToString()))
- this.textBox11.Text = "";
- else
- this.textBox11.Text = Convert.ToString(Math.Round(Convert.ToSingle(ugr.Cells[11].Value), 3));
- if (ugr.Cells[12].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[12].Value.ToString()))
- this.textBox12.Text = "";
- else
- this.textBox12.Text = Convert.ToSingle(ugr.Cells[12].Value).ToString();
- if (ugr.Cells[18].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[18].Value.ToString()))
- this.textBox13.Text = "";
- else
- this.textBox13.Text = ugr.Cells[18].Value.ToString();
- if (ugr.Cells[20].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[20].Value.ToString()))
- this.textBox14.Text = "";
- else
- this.textBox14.Text = ugr.Cells[20].Value.ToString();
- if (ugr.Cells[19].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[19].Value.ToString()))
- this.textBox15.Text = "";
- else
- this.textBox15.Text = ugr.Cells[19].Value.ToString();
- try
- {
- this.dateTimePicker5.Value = Convert.ToDateTime(ugr.Cells[13].Value);
- if (ugr.Cells[14].Value != System.DBNull.Value)
- this.comboBox3.Text = ugr.Cells[14].Value.ToString();
- else
- {
- this.comboBox3.SelectedIndex = -1;
- this.comboBox3.Text = "";
- }
- if (ugr.Cells[15] == null)
- this.comboBox6.Text = "N";
- else
- this.comboBox6.Text = ugr.Cells[15].Value.ToString();
- }
- catch { }
- }
- #endregion
- #region " ToolBar Event "
- public override void ToolBar_Click(object sender, string ToolbarKey)
- {
-
- switch (ToolbarKey)
- {
- case "add":
- if (!this.ultraExpandableGroupBox1.Expanded)
- {
- this.ultraExpandableGroupBox1.Expanded = true;
- return;
- }
- Add();
- break;
- case "del":
- Del();
- break;
- case "edit":
- if (!this.ultraExpandableGroupBox1.Expanded)
- {
- this.ultraExpandableGroupBox1.Expanded = true;
- return;
- }
- Edit();
- break;
- case "query":
- Query();
- break;
- case "plan":
- Plan();
- break;
- case "Existplan":
- ShowToolBans();
- break;
- }
- }
- private void ShowToolBans()
- {
- if (this.panel2.Visible)
- {
- //计划框体展现
- this.panel2.Visible = false;
- this.ultraExpandableGroupBox1.Expanded = false;
- }
- else
- {
- //计划框体展现
- this.panel2.Visible = true;
- this.ultraExpandableGroupBox1.Expanded = true;
- }
- }
- private bool IsValidOfHeatNo(string strSmeltingID)
- {
- if (strSmeltingID == "")
- return false;
- if (strSmeltingID.Length != 8)
- {
- MessageBox.Show("请输入炉号错误,长度为8位,正确炉号如:09200001!");
- return false;
- }
- //if (strSmeltingID.Substring(0, 1) != "0")
- //{
- // MessageBox.Show("请输入炼号错误,第一位不是'0',正确炉号如:09200001!");
- // return false;
- //}
- if (Convert.ToUInt16(strSmeltingID.Substring(2, 1)) > 3)
- {
- MessageBox.Show("请输入炼号错误,第三位不是'1','2'或'3',正确炉号如:09200001!");
- return false;
- }
- return true;
- }
- public string yncheck()
- {
- string strLastFla = "";
- if (this.ultraGrid1.Rows.Count < 1)
- {
- strLastFla = "N";
- }
- if (this.ultraGrid1.Rows.Count > 0)
- {
- UltraGridRow ugr = this.ultraGrid1.Rows[ultraGrid1.Rows.Count - 1];
- strLastFla = ugr.Cells["LASTBILLETFLAG"].Value.ToString();
- }
- return Convert.ToString(strLastFla);
- }
- /// <summary>
- /// 获取指定炉号的生产状态
- /// </summary>
- /// <param name="strHeatNo"></param>
- /// <returns></returns>
- private bool GetHeatState(string strHeatNo)
- {
- string strErr = "";
- string strState = "";
- bool blState = false;
- DataSet ds =null; // (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("lgJobMgt",
- //"Core.LgMes.Server.lgJobMgt.classCutJob",
- //"GetHeatState", new object[] { strHeatNo }, out strErr);
- if (strErr == "")
- {
- if (ds != null && ds.Tables[0].Rows.Count > 0)
- strState = ds.Tables[0].Rows[0]["Heat_state"].ToString();
- if (strState == "08" || strState == "09")
- blState = true;
- }
- return blState;
- }
- private void Add()
- {
- LastUpdateTime = DateTime.Now;
- string strLastFla = "";
- //只有在连铸机生产或已生产完的
- if (!GetHeatState(textBox2.Text))
- {
- MessageBox.Show("炉号【" + textBox2.Text + "】没有上连铸机生产,不能生成坯料!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- return;
- }
- if (this.ultraGrid1.Rows.Count < 1)
- {
- strLastFla = "N";
- }
- if (this.ultraGrid1.Rows.Count > 0)
- {
- UltraGridRow ugr = this.ultraGrid1.Rows[ultraGrid1.Rows.Count - 1];
- strLastFla = ugr.Cells["LASTBILLETFLAG"].Value.ToString();
- }
- if (strLastFla == "Y")
- {
- MessageBox.Show("请将本炉最后一块置成否后再增加支数");
- return;
- }
- if (this.textBox2.Text.Trim().Length == 0)
- {
- MessageBox.Show("请输入熔炼号!");
- return;
- }
- else
- {
- string strHID = this.textBox2.Text.Trim();
- strHID = strHID.ToUpper();
- if (!IsValidOfHeatNo(strHID))
- return;
- this.textBox2.Text = strHID.ToUpper();
- }
- if (this.comboBox2.Text.Trim().Length == 0)
- {
- MessageBox.Show("请输入铸机号!");
- return;
- }
- if (this.comboBox5.Text.Trim().Length == 0)
- {
- MessageBox.Show("请输入铸流号!");
- return;
- }
- if (this.textBox5.Text.Trim().Length == 0)
- {
- MessageBox.Show("请输入切割序号!");
- return;
- }
- if (string.IsNullOrEmpty(this.strV_BilletID))
- {
- MessageBox.Show("请选择切割计划!");
- return;
- }
- //if (string.IsNullOrEmpty(strOrderNO))
- //{
- // MessageBox.Show("请选择切割计划!");
- // return;
- //}
- ArrayList ar = GetCurrValue();
- string strCastNo = ar[5].ToString();
- string strHeatNo = ar[0].ToString();
- int nHeatNum = 0;
- for (int i = 0; i < this.ultraGrid1.Rows.Count; i++)
- {
- UltraGridRow ugrf = this.ultraGrid1.Rows[i];
- if (strCastNo == ugrf.Cells["MOULDNO"].Value.ToString())
- {
- if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString())
- {
- int nInt = Convert.ToInt32(ugrf.Cells["CUTSEQNO"].Value.ToString());
- if (nInt > nHeatNum) nHeatNum = nInt;
- }
- }
- }
- nHeatNum++;
- ar[4] = nHeatNum.ToString();
- ar[13] = DateTime.Now.ToString();
- string strHeatNum = nHeatNum.ToString();
- if (nHeatNum < 10) ar[16] = strHeatNo.Substring(0, 8) + "0" + strHeatNum;
- else if (nHeatNum >= 100) ar[16] = strHeatNo.Substring(0, 8) + strHeatNum.Substring(1, 2);
- else ar[16] = strHeatNo.Substring(0, 8) + strHeatNum;
- if (ar == null)
- {
- MessageBox.Show("输入数据格式错误!");
- return;
- }
- //////////////////
- string strMsg = "本浇注位是" + CCMN0 + ",您已经标志标示了一个最后块, 操作失败!!!";
- // if( comboBox6.Text == "是" ) nLastBlock = nLastBlock + 1;
- // if( nLastBlock > 1 )
- // {
- // MessageBox.Show( strMsg ,"提示",MessageBoxButtons.OK,MessageBoxIcon.Warning);
- // return;
- // }
- int nCutSequence = -1;
- //检查切割顺序号的合法性
- try
- {
- nCutSequence = Convert.ToInt32(this.textBox5.Text);
- }
- catch
- {
- MessageBox.Show("您输入的切割顺序号不对,应该输入数字,\r\n且要注意输入法采用半角。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
- //检查是否有两个相同的切割顺序
- if (CheckDuplicatRec(nHeatNum))
- {
- MessageBox.Show("您在同一炉中设置了两个相同的切割顺序,操作失败!!!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
- //////////////////////
- try
- {
- //hengxing
- //CallingMessage par = new CallingMessage();
- //par.ServerName = "lgJobMgt";
- //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
- //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
- //par.MethodName = "InsetCutBillet";
- //par.args = new object[] { ar };
- string strOut = "";
- object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
- if (Convert.ToInt32(obj) < 1)
- {
- MessageBox.Show("数据提交失败!\n" + strOut);
- }
- else
- {
- DataRow dr = (this.ultraGrid1.DataSource as DataTable).NewRow();
- for (int i = 0; i < dr.Table.Columns.Count; i++)
- {
- try
- {
- dr[i] = ar[i];
- }
- catch
- {
- dr[i] = DBNull.Value;
- }
- }
- (this.ultraGrid1.DataSource as DataTable).Rows.InsertAt(dr, 0);
- (this.ultraGrid1.DataSource as DataTable).AcceptChanges();
- this.ultraGrid1.Rows[0].Activate();
- }
- }
- catch (Exception ex)
- {
- Console.WriteLine(ex.Message);
- }
- Query();
- if (ultraGrid1.Rows.Count > 0)
- ultraGrid1.Rows[ultraGrid1.Rows.Count - 1].Activated = true;
- }
- private void Del()
- {
- LastUpdateTime = DateTime.Now;
- int i = 0;
- int nCutNo = 0;
- int nSelCutNo = 0;
- string strHeatNo = "";
- string strCastNo = "";
- string strErr = "";
- UltraGridRow ugr = this.ultraGrid1.ActiveRow;
- if (ugr == null)
- {
- MessageBox.Show("请选择要删除的行!");
- return;
- }
- strHeatNo = ugr.Cells["HEATNO"].Value.ToString();
- strCastNo = ugr.Cells["MOULDNO"].Value.ToString();
- //DataSet dsCount = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("lgJobMgt",
- // "Core.LgMes.Server.lgJobMgt.classCutJob",
- // "GetMouldNoHeatnoCount", new object[] { strCastNo, strHeatNo }, out strErr);
- //if (strErr == "" && dsCount !=null)
- //{
- // // nSelCutNo = Convert.ToInt32(ugr.Cells["CUTSEQNO"].Value.ToString());
- // if (dsCount.Tables[0].Rows.Count > 0)
- // nSelCutNo = Convert.ToInt16(dsCount.Tables[0].Rows[0][0]);
- //}
- //for (int j = 0; j < this.ultraGrid1.Rows.Count; j++)
- //{
- // UltraGridRow ugrf = this.ultraGrid1.Rows[j];
- // if (strCastNo == ugrf.Cells["MOULDNO"].Value.ToString())
- // {
- // if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString())
- // {
- // nCutNo++;
- // }
- // }
- //}
- //if (nCutNo != nSelCutNo)
- //{
- // MessageBox.Show("选择的钢坯不是本浇次本炉最后一支,请选择要最后一行删除!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- // return;
- //}
- FrmSelDel frm = new FrmSelDel(ob);
- frm.ShowDialog();
- i = ugr.Index;
- string strWhere = "";
- if (frm._Flag == "A")
- {
- strWhere = " where BILLETCODE = '" + ugr.Cells[20].Value.ToString() + "'";
- }
- else if (frm._Flag == "B")
- {
- strWhere = " where HEATNO = '" + ugr.Cells[0].Value.ToString() + "'";
- }
- else
- {
- return;
- }
- try
- {
- //hengxing
- //CallingMessage par = new CallingMessage();
- //par.ServerName = "lgJobMgt";
- //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
- //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
- //par.MethodName = "DelCutBillet";
- //par.args = new object[] { strWhere };
- string strOut = "";
- //ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
- if (strOut != "")
- {
- MessageBox.Show(strOut, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- return;
- }
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.Message);
- return;
- }
- if (frm._Flag == "B")
- {
- this.GetSqlWhere();
- this.GetData();
- return;
- }
- this.ultraGrid1.ActiveRow.Delete(false);
- this.ultraGrid1.UpdateData();
- try
- {
- this.ultraGrid1.Rows[i].Activate();
- }
- catch
- {
- int count = this.ultraGrid1.Rows.Count;
- if (count > 0)
- this.ultraGrid1.Rows[count - 1].Activate();
- }
- }
- //本函数检查是否有重复的记录( 重点是切割顺序 )
- private bool CheckDuplicatRec(int nCutSeqence)
- {
- // true 不合法
- if (nCutSeqence == -1) return true;
- //再次在恰当的数据源查找
- DataTable dtFind = ultraGrid1.DataSource as DataTable;
- //展现的数据行数
- try
- {
- foreach (DataRow dr in dtFind.Rows)
- {
- int nInt = Convert.ToInt32(dr["CUTSEQNO"].ToString());
- if (nCutSeqence == nInt)
- return true;
- }
- }
- catch { }
- //false 合法
- return false;
- }
- //本函数检查是否有两个记录都标示是最后一块
- private int CheckLastBlockCount()
- {
- /*//首先停止现程的扫描
- LastUpdateTime = DateTime.Now;
- //再次在恰当的数据源查找
- DataTable dtFind = ultraGrid1.DataSource as DataTable;
- //展现的数据行数
- //ultraGrid1.Rows.Count+1
- int nRowCount = dtFind.Rows.Count;
- int CheckCount = 0;
- int MaxRows =0;
- foreach( DataRow dr in dtFind.Rows )
- {
- MaxRows=MaxRows+1;
- if (MaxRows==(ultraGrid1.Rows.Count))
- break;
- if( dr["LASTBILLETFLAG"].ToString() == "Y" )
- CheckCount = CheckCount + 1;
- }*/
- bool bHasLastCutBillet = false;
- string strCastNo = "";
- string strHeatNo = "";
- int CheckCount = 0;
- UltraGridRow ugr = this.ultraGrid1.ActiveRow;
- strHeatNo = ugr.Cells["HEATNO"].Value.ToString();
- strCastNo = ugr.Cells["MOULDNO"].Value.ToString();
- for (int j = 0; j < this.ultraGrid1.Rows.Count; j++)
- {
- UltraGridRow ugrf = this.ultraGrid1.Rows[j];
- if (strCastNo == ugrf.Cells["MOULDNO"].Value.ToString())
- {
- if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString())
- {
- if (ugrf.Cells["LASTBILLETFLAG"].Value.ToString() == "Y")
- {
- bHasLastCutBillet = true;
- break;
- }
- }
- }
- }
- if (bHasLastCutBillet) CheckCount = 1;
- else CheckCount = 0;
- return CheckCount;
- }
- private bool CheckAlpbetCaption(string strSmeltiID)
- {
- //查找z
- int nIndex = strSmeltiID.IndexOf("z");
- if (nIndex >= 0) return false;
- return true;
- }
- private string ChangeCaptionAuto(string strSmeltingID)
- {
- //查找
- int nIndex = strSmeltingID.IndexOf("z");
- string strNewSmeltingID = strSmeltingID.Substring(0, nIndex);
- strNewSmeltingID = strNewSmeltingID + "Z";
- strNewSmeltingID = strNewSmeltingID + strSmeltingID.Substring(nIndex, strNewSmeltingID.Length - nIndex - 1);
- return strNewSmeltingID;
- }
- private void Edit()
- {
- LastUpdateTime = DateTime.Now;
- UltraGridRow ugr = this.ultraGrid1.ActiveRow;
- if (ugr == null)
- {
- MessageBox.Show("请选择要删除的行!");
- return;
- }
- if (this.ultraGrid1.ActiveRow == null)
- {
- MessageBox.Show("请选择所要修改的行!");
- return;
- }
- if (this.textBox2.Text.Trim().Length == 0)
- {
- MessageBox.Show("请输入熔炼号!");
- return;
- }
- else
- {
- string strHID = this.textBox2.Text.Trim();
- strHID = strHID.ToUpper();
- if (!IsValidOfHeatNo(strHID))
- return;
- this.textBox2.Text = strHID.ToUpper();
- }
- if (this.textBox13.Text.Trim().Length == 0)
- {
- MessageBox.Show("请输入钢坯号!");
- return;
- }
- if (this.comboBox2.Text.Trim().Length == 0)
- {
- MessageBox.Show("请输入铸机号!");
- return;
- }
- if (this.comboBox5.Text.Trim().Length == 0)
- {
- MessageBox.Show("请输入铸流号!");
- return;
- }
- if (this.textBox5.Text.Trim().Length == 0)
- {
- MessageBox.Show("请输入切割序号!");
- return;
- }
- ArrayList ar = GetCurrValue();
- if (ar == null)
- {
- MessageBox.Show("输入数据格式错误!");
- return;
- }
- string strChildNo = this.textBox15.Text.Trim();
- if (strChildNo.Length == 0) strChildNo = "NULL";
- //ar.Add( strChildNo );
- int nSelCutNo = Convert.ToInt32(ugr.Cells["CUTSEQNO"].Value.ToString());
- int nCutSequence = -1;
- //检查切割顺序号的合法性
- try
- {
- nCutSequence = Convert.ToInt32(this.textBox5.Text);
- }
- catch
- {
- MessageBox.Show("您输入的切割顺序号不对,应该输入数字,\r\n且要注意输入法采用半角。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
- if (nCutSequence != nSelCutNo)
- {
- //检查是否有两个相同的切割顺序
- if (CheckDuplicatRec(nCutSequence))
- {
- MessageBox.Show("您在同一路中设置了两个相同的切割顺序,这将导致记录重复,操作失败!!!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
- }
- string strLastFlag = ugr.Cells["LASTBILLETFLAG"].Value.ToString();
- //if( comboBox6.Text == "是" ) nLastBlock = nLastBlock + 1;
- int nMaxCutNo = 0;
- string strHeatNo = ugr.Cells["HEATNO"].Value.ToString();
- string strCastNo = ugr.Cells["MOULDNO"].Value.ToString();
- for (int j = 0; j < this.ultraGrid1.Rows.Count; j++)
- {
- UltraGridRow ugrf = this.ultraGrid1.Rows[j];
- if (strCastNo == ugrf.Cells["MOULDNO"].Value.ToString())
- {
- if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString())
- {
- int nTempCutNo = Convert.ToInt32(ugrf.Cells["CUTSEQNO"].Value);
- if (nTempCutNo > nMaxCutNo) nMaxCutNo = nTempCutNo;
- }
- }
- }
- string strMsg = "本浇注位是" + CCMN0 + ":" + Environment.NewLine + "修改数据禁用,请将最后一块的‘是’改为‘否’后再修改数据!!";
- int nLastBlock = CheckLastBlockCount();//如果是最后一块,需要检查是否多置了标志
- if (nLastBlock >= 1)
- {
- bool bShowMsg = true;
- if (nSelCutNo == nMaxCutNo)
- {
- if (strLastFlag == "N" && comboBox6.Text.Trim() == "是")
- {
- bShowMsg = false;
- }
- else if (strLastFlag == "Y" && comboBox6.Text.Trim() == "否")
- {
- bShowMsg = false;
- }
- else
- {
- bShowMsg = true;
- }
- }
- if (bShowMsg)
- {
- MessageBox.Show(strMsg, "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
- }
- if (strLastFlag == "N" && comboBox6.Text.Trim() == "是")
- {
- if (nSelCutNo != nMaxCutNo)
- {
- MessageBox.Show("请在最后一行置为'是'", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- return;
- }
- }
- try
- {
- //hengxing
- //CallingMessage par = new CallingMessage();
- //par.ServerName = "lgJobMgt";
- //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
- //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
- //par.MethodName = "UpdateCutBilletEx";
- //par.args = new object[] { ar };
- string strOut = "";
- object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
- if (Convert.ToInt32(obj) < 1)
- {
- MessageBox.Show("数据提交失败!\n" + strOut);
- }
- else
- {
- //this.ultraGrid1.UpdateData();
- Query();
- if (ultraGrid1.Rows.Count > 0)
- ultraGrid1.Rows[ultraGrid1.Rows.Count - 1].Activated = true;
- //if (i == this.ultraGrid1.Rows.Count - 1)
- //{
- // ugr.Activated = true;
- // ugr.Selected = true;
- //}
- //else
- //{
- // ugr.Activated = false;
- // ugr.Selected = false;
- //}
- }
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.Message);
- return;
- }
- }
- private void Exit()
- {
- this.Close();
- }
- public void Query()
- {
- LastUpdateTime = DateTime.Now;
- this.GetSqlWhere();
- this.GetData();
- }
- //切换到手动匹配模式
- private bool bHandleCoup = false;
- private void Plan()
- {
- if (bHandleCoup)
- {
- bHandleCoup = false;
- }
- else
- {
- bHandleCoup = true;
- if (_dsMid != null && _dsMid.Tables.Count > 0)
- {
- _dsMid.Tables[0].Rows.Clear();
- this.ultraGrid1.DataSource = _dsMid.Tables[0];
- ultraGrid1.DataBind();
- ultraGrid1.Refresh();
- }
- }
- //上次开始的计时更新时间(开始用到)
- LastUpdateTime = DateTime.Now;
- strOldBlockNo = "";
- strOldCastNo = "";
- //将两个grid利用FixRow分开
- SplitTwoGrid();
- //装载两个对应关系的数据
- RalationUIChange();
- }
- //将两个grid利用FixRow分开
- private void SplitTwoGrid()
- {
- //if( bHandleCoup )
- //{
- // this.ultraGrid1.DisplayLayout.Override.FixedRowsLimit = 5;
- // this.ultraGrid1.DisplayLayout.Override.FixedRowStyle = FixedRowStyle.Top;
- // this.ultraGrid1.DisplayLayout.Override.FixedRowIndicator = FixedRowIndicator.Button;
- // this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparator = SpecialRowSeparator.FixedRows;
- // this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparatorHeight = 4;
- //}
- //else
- //{
- this.ultraGrid1.DisplayLayout.Override.FixedRowsLimit = -1;
- this.ultraGrid1.DisplayLayout.Override.FixedRowStyle = FixedRowStyle.Default;
- this.ultraGrid1.DisplayLayout.Override.FixedRowIndicator = FixedRowIndicator.Default;
- this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparator = SpecialRowSeparator.Default;
- this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparatorHeight = -1;
- //}
- }
- //装载两个对应关系的数据
- private void RalationUIChange()
- {
- if (bHandleCoup)
- {
-
- //ultraToolbarsManager1.Toolbars[0].Tools[5].SharedProps.Caption = "关联察看";
-
- }
- else
- {
-
- // ultraToolbarsManager1.Toolbars[0].Tools[5].SharedProps.Caption = "单独查询";
- }
- }
- private ArrayList GetCurrValue()
- {
- ArrayList ar = new ArrayList();
- try
- {
- ar.Add(this.textBox2.Text.Trim());
- ar.Add(this.textBox4.Text.Trim());
- ar.Add(this.comboBox2.SelectedIndex);
- ar.Add(this.comboBox5.SelectedIndex);
- ar.Add(this.textBox5.Text.Trim());
- ar.Add(this.textBox8.Text.Trim());
- ar.Add(GetSingle(this.textBox6.Text.Trim()));
- ar.Add(GetSingle(this.textBox7.Text.Trim()));
- ar.Add(GetSingle(this.textBox3.Text.Trim()));
- ar.Add(GetSingle(this.textBox9.Text.Trim()));
- ar.Add(GetSingle(this.textBox10.Text.Trim()));
- ar.Add(GetSingle(this.textBox11.Text.Trim()));
- ar.Add(GetSingle(this.textBox12.Text.Trim()));
- ar.Add(this.dateTimePicker5.Value.ToString());//.ToString("yyyy-MM-dd HH:mm:ss")
- ar.Add(this.comboBox3.SelectedIndex);
- if (this.comboBox6.SelectedIndex == -1)
- ar.Add("N");
- else
- ar.Add(this.comboBox6.SelectedIndex);
- ar.Add(this.textBox13.Text.Trim());
- ar.Add(this.textBox14.Text.Trim());
-
- ar.Add(this.UserInfo.GetUserName()); //add on 2009-04-23 记录操作人员
- ar.Add(strV_Heat_ID);
- ar.Add(strV_BilletID);
- ar.Add(strOrderNO);
- ar.Add(strProdOrderNO);
- ar.Add(strSurplusFlag);
- ar.Add(strSteelCode);
- ar.Add(strProductline);
- ar.Add(strStandardsCode);
- ar.Add(strStandardRemak);
- ar.Add(strCustomer_Key);
- return ar;
- }
- catch
- {
- return null;
- }
- }
- private object GetSingle(string str)
- {
- if (str == "")
- return "null";
- else
- return Convert.ToSingle(str);
- }
- #endregion
- private void checkBox1_CheckedChanged(object sender, System.EventArgs e)
- {
- this.dateTimePicker3.Enabled = this.checkBox1.Checked;
- this.dateTimePicker4.Enabled = this.checkBox1.Checked;
- }
- private void checkBox2_CheckedChanged(object sender, System.EventArgs e)
- {
- if (this.checkBox2.Checked)
- {
- this.textBox1.Enabled = true;
- this.textBox1.BackColor = Color.White;
- }
- else
- {
- this.textBox1.Enabled = false;
- this.textBox1.BackColor = Color.Gainsboro;
- }
- }
- private void checkBox3_CheckedChanged(object sender, System.EventArgs e)
- {
- if (this.checkBox3.Checked)
- {
- if (_DEVICE_POS == -1)
- this.comboBox4.Enabled = true;
- this.comboBox4.BackColor = Color.White;
- }
- else
- {
- if (_DEVICE_POS == -1)
- this.comboBox4.Enabled = false;
- this.comboBox4.BackColor = Color.Gainsboro;
- }
- }
- private void textBox5_TextChanged(object sender, System.EventArgs e)
- {
- try
- {
- this.textBox13.Text = "";
- if (this.textBox5.Text.Trim().Length == 0)
- return;
- if (this.textBox2.Text.Trim().Length == 0 && blText == false)
- {
- MessageBox.Show("请先输入熔炼号!");
- return;
- }
- else
- {
- string strHID = this.textBox2.Text.Trim();
- strHID = strHID.ToUpper();
- if (!IsValidOfHeatNo(strHID))
- return;
- this.textBox2.Text = strHID.ToUpper();
- }
- int cutno = Convert.ToInt32(this.textBox5.Text.Trim());
- string heatno = this.textBox1.Text.Trim();
- string strCutNo = "";
- strCutNo = cutno.ToString();
- if (strCutNo.Length == 1) strCutNo = "0" + strCutNo;
- if (strCutNo.Length == 3)
- {
- int nNum = cutno;
- if (nNum >= 100 && nNum < 110) strCutNo = "A" + strCutNo.Substring(2, 1);
- if (nNum >= 110 && nNum < 120) strCutNo = "B" + strCutNo.Substring(2, 1);
- if (nNum >= 120 && nNum < 130) strCutNo = "C" + strCutNo.Substring(2, 1);
- if (nNum >= 130 && nNum < 140) strCutNo = "D" + strCutNo.Substring(2, 1);
- if (nNum >= 140 && nNum < 150) strCutNo = "E" + strCutNo.Substring(2, 1);
- if (nNum >= 150 && nNum < 160) strCutNo = "F" + strCutNo.Substring(2, 1);
- if (nNum >= 160 && nNum < 170) strCutNo = "G" + strCutNo.Substring(2, 1);
- if (nNum >= 170 && nNum < 180) strCutNo = "H" + strCutNo.Substring(2, 1);
- if (nNum >= 180 && nNum < 190) strCutNo = "J" + strCutNo.Substring(2, 1);
- }
- if (strCutNo.Length >= 3 && cutno >= 190)
- {
- MessageBox.Show("请先切割序号过大!!!,最大不能超过190");
- this.textBox5.Text = "";
- return;
- }
- if (heatno.Trim().Length > 0)
- this.textBox13.Text = heatno.Substring(1) + strCutNo;
- blText = false;
- }
- catch
- {
- }
- }
- /// <summary>
- /// 长度属性更改事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void textBox3_TextChanged(object sender, System.EventArgs e)
- {
- try
- {
- float a = Convert.ToSingle(this.textBox3.Text.Trim());
- float b = Convert.ToSingle(this.textBox9.Text.Trim());
- float c = Convert.ToSingle(this.textBox10.Text.Trim());
- this.textBox11.Text = Convert.ToString(Math.Round(a * b * c * 7.82 / 1000000000, 3));
- }
- catch { }
- }
- private void SetFixRow(string strBlockNo)
- {
- ultraGrid1.Rows.FixedRows.Clear();
- //解决因交换顺序而导致的辨别不清
- foreach (Infragistics.Win.UltraWinGrid.UltraGridRow row in ultraGrid1.Rows)
- {
- row.Fixed = false; //都去掉选项标记
- }
- //遍历Grid,设定固定行单独标记出来
- foreach (Infragistics.Win.UltraWinGrid.UltraGridRow row in ultraGrid1.Rows)
- {
- string strTargeBlockNo = row.Cells[18].Value.ToString();
- if (strTargeBlockNo == "")
- {
- continue;
- }
- else
- {
- if (strTargeBlockNo == strBlockNo)
- {
- row.Fixed = true;
- }
- }
- }
- ultraGrid1.Rows[0].Activated = true;
- }
- //将数据清除提交给数据后台组件
- private void HandleSetClear(string strHeatID, int nBegin,int nEnd)
- {
- //提交到后台
- try
- {
- string strOut = "";
- //hengxing
- //CallingMessage par = new CallingMessage();
- //par.ServerName = "lgJobMgt";
- //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
- //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
- //par.MethodName = "ClearCutSeqence";
- //par.args = new object[] { strHeatID, nBegin, nEnd };
- object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
- if (Convert.ToInt32(obj) < 1)
- {
- MessageBox.Show("数据提交失败!\n" + strOut);
- }
- else
- {
- Query();
- }
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.Message);
- return;
- }
- }
- //回调函数
- private void PlanBlockChange(string strCastNo, string strBlockNo)
- {
- //如果没有挂接处理函数
- if (!bHandleCoup) return;
- //判断是否将浇次号进行了改变
- if (strCastNo != strOldCastNo)
- {
- strOldCastNo = strCastNo;
- this.checkBox1.Checked = false;
- this.dateTimePicker3.Enabled = false;
- this.dateTimePicker4.Enabled = false;
- this.checkBox1.Checked = false;
- this.checkBox2.Checked = true;
- this.checkBox3.Checked = false;
- this.textBox1.Enabled = true;
- this.textBox1.Text = strCastNo;
- this.textBox2.Text = "";
- this.textBox3.Text = "";
- this.textBox4.Text = "";
- this.textBox5.Text = "";
- this.textBox6.Text = "";
- this.textBox7.Text = "";
- this.textBox8.Text = "";
- this.textBox9.Text = "";
- this.textBox10.Text = "";
- this.textBox11.Text = "";
- this.textBox12.Text = "";
- this.textBox13.Text = "";
- this.textBox14.Text = "";
- this.textBox15.Text = "";
- //查询列出浇次所有的切割块
- if (_dsMid != null)
- _dsMid.Tables.Clear();
- Query();
- }
- if (strBlockNo != strOldBlockNo)
- {
- //将选中的匹配情况列出到FixRow中
- strOldBlockNo = strBlockNo;
- //将匹配数据设定为固定的行
- SetFixRow(strBlockNo);
- }
- }
- //手工更改的块号,子块号
- private void ultraGrid1_BeforeRowUpdate(object sender, Infragistics.Win.UltraWinGrid.CancelableRowEventArgs e)
- {
- LastUpdateTime = DateTime.Now;
- string strLastBlock = e.Row.Cells["LASTBILLETFLAG"].Value.ToString().Trim();
- string strBlockNo = e.Row.Cells[18].Value.ToString().Trim();
- string strChildNo = e.Row.Cells[19].Value.ToString().Trim();
- string strRecNo = e.Row.Cells[20].Value.ToString().Trim();
- if (!UpdateSingleRow(strBlockNo, strChildNo, strLastBlock, strRecNo))
- {
- MessageBox.Show("数据更新失败,无法完成更新,请重试!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- e.Cancel = true;
- }
- }
- private void ultraGrid1_BeforeRowFixedStateChanged(object sender, Infragistics.Win.UltraWinGrid.BeforeRowFixedStateChangedEventArgs e)
- {
- //手动指定为固定行(即计划匹配行)
- string strAffectRow = e.Row.Cells[0].Value.ToString();
- string strCutTime = e.Row.Cells[13].Value.ToString();
- int nChildBlockNo = 0;
- int nFixRows = ultraGrid1.Rows.FixedRows.Count;
- if (nFixRows > 0)
- {
- nChildBlockNo = ultraGrid1.Rows.FixedRows.Count + 1;
- }
- else
- {
- nChildBlockNo = 0;
- }
- if (!e.Row.Fixed)
- {
- //更新数据库
- if (UpdateHandlePoint(strOldCastNo, strOldBlockNo, strAffectRow, strCutTime, nChildBlockNo))
- {
- int nAfterAddRows = ultraGrid1.Rows.FixedRows.Count + 1;
- //更新Grid
- e.Row.Cells[16].Value = "是";
- e.Row.Cells[17].Value = "是";
- e.Row.Cells[18].Value = strOldBlockNo;
- e.Row.Cells[19].Value = nAfterAddRows;//子块号
- //同时需要将原来的子块号给添上
- if (nAfterAddRows == 2)
- {
- ultraGrid1.Rows.FixedRows[0].Cells[19].Value = 1;
- }
- }
- else
- {
- e.Cancel = true;
- }
- }
- else
- {
- //或者取消指定
- //如果数据个数只剩下1个,则需要将剩下的那个的子块号清空调
- int nFixRow = ultraGrid1.Rows.FixedRows.Count;
- if (nFixRow == 2)
- {
- if (CancelHandlePointEx(strOldCastNo, strOldBlockNo, strAffectRow, strCutTime, nChildBlockNo))
- {
- //更新Grid
- e.Row.Cells[16].Value = "否";
- e.Row.Cells[17].Value = "是";
- e.Row.Cells[18].Value = "";
- e.Row.Cells[19].Value = DBNull.Value;//子块号
- //取到第一行
- ultraGrid1.Rows.FixedRows[0].Cells[19].Value = DBNull.Value;
- }
- else
- {
- e.Cancel = true;
- }
- }
- else
- {
- if (CancelHandlePoint(strOldCastNo, strOldBlockNo, strAffectRow, strCutTime, nChildBlockNo))
- {
- //更新Grid
- e.Row.Cells[16].Value = "否";
- e.Row.Cells[17].Value = "是";
- e.Row.Cells[18].Value = "";
- e.Row.Cells[19].Value = DBNull.Value;//子块号
- }
- else
- {
- e.Cancel = true;
- }
- }
- }
- }
- private bool UpdateHandlePoint(string strCastNo, string strBlockNo,string strAffectRow,string strCutTime,int nChildBlockNo)
- {
- try
- {
- //hengxing
- //CallingMessage par = new CallingMessage();
- //par.ServerName = "lgJobMgt";
- //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
- //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
- //par.MethodName = "UpdateHandlePoint"; //CancelHandlePoint
- //par.args = new object[] { strCastNo, strBlockNo, strAffectRow, strCutTime, nChildBlockNo };
- string strOut = "";
- object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
- if (Convert.ToInt32(obj) < 1)
- {
- MessageBox.Show("数据更新失败!\n" + strOut);
- return false;
- }
- }
- catch
- {
- return false;
- }
- return true;
- }
- //取消选择
- private bool CancelHandlePointEx(string strCastNo, string strBlockNo,string strAffectRow,string strCutTime,int nChildBlockNo)
- {
- try
- {
- //hengxing
- //CallingMessage par = new CallingMessage();
- //par.ServerName = "lgJobMgt";
- //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
- //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
- //par.MethodName = "CancelHandlePointEx";
- //par.args = new object[] { strCastNo, strBlockNo, strAffectRow, strCutTime, nChildBlockNo };
- string strOut = "";
- object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
- if (Convert.ToInt32(obj) < 1)
- {
- MessageBox.Show("数据更新失败!\n" + strOut);
- return false;
- }
- }
- catch
- {
- return false;
- }
- return true;
- }
- private bool CancelHandlePoint(string strCastNo, string strBlockNo,string strAffectRow,string strCutTime,int nChildBlockNo)
- {
- try
- {
- //CallingMessage par = new CallingMessage();
- //par.ServerName = "lgJobMgt";
- //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
- //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
- //par.MethodName = "CancelHandlePoint";
- //par.args = new object[] { strCastNo, strBlockNo, strAffectRow, strCutTime, nChildBlockNo };
- string strOut = "";
- object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
- if (Convert.ToInt32(obj) < 1)
- {
- MessageBox.Show("数据更新失败!\n" + strOut);
- return false;
- }
- }
- catch
- {
- return false;
- }
- return true;
- }
- private bool UpdateSingleRow(string strBlockNo, string strChildNo,string strLastBlock,string strRecNo)
- {
- bool bLastBlock = false;
- if (strLastBlock.Length > 0 && strLastBlock == "Y") bLastBlock = true;
- try
- {
- //hengxing
- //CallingMessage par = new CallingMessage();
- //par.ServerName = "lgJobMgt";
- //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
- //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
- //par.MethodName = "UpdateSingleRow";
- //par.args = new object[] { strBlockNo, strChildNo, bLastBlock, strRecNo };
- string strOut = "";
- object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
- if (Convert.ToInt32(obj) < 1)
- {
- MessageBox.Show("数据更新失败!\n" + strOut);
- return false;
- }
- }
- catch
- {
- return false;
- }
- return true;
- }
- private void SendCommdForLadleWeight()
- {
- string strDevNo = CCMN0.Substring(0, 1);
- string strPosition = "";
- if (Convert.ToString(this.textBox16.Tag) == "") return;
- strPosition = string.Format("CCM0{0}_DEVICE", strDevNo);
- this._commClass.setHeatID(Convert.ToString(this.textBox16.Tag));
- this._commClass.setProcValueCommand(strPosition, "JOB_CCM_OPTINFO", "PFBALEWGT", "FLTTYPE", this.textBox17.Text);
- this._commClass.setProcValueCommand(strPosition, "JOB_CCM_OPTINFO", "MOULDBALEWGT", "FLTTYPE", this.textBox18.Text);
- SendCommResetBilletNum();
- }
- private void button1_Click(object sender, System.EventArgs e)
- {
- SendCommdForLadleWeight();
- }
- public void SendCommResetBilletNum()
- {
- string strHeatNo = "";
- float fltFirstWeight = 0;
- float fltMouldWeight = 0;
- strHeatNo = Convert.ToString(this.textBox16.Tag);
- fltFirstWeight = Convert.ToSingle(this.textBox17.Text);
- fltMouldWeight = Convert.ToSingle(this.textBox18.Text);
- //hengxing
- //CallingMessage par = new CallingMessage();
- //par.ServerName = "lgJobMgt";
- //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
- //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
- //par.MethodName = "ResetBilletNum";
- //par.args = new object[] { strHeatNo, fltFirstWeight, fltMouldWeight };
- string strOut = "";
- object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
- if (strOut != "")
- {
- MessageBox.Show("数据更新失败! " + strOut);
- }
- }
- public void GetCutPromptFromServer()
- {
- try
- {
- string strDevNo = CCMN0.Substring(0, 1);
- int nDevNo = Convert.ToInt16(strDevNo);
- if (nDevNo == 0) nDevNo = 4;
- //hengxing
- //CallingMessage par = new CallingMessage();
- //par.ServerName = "lgJobMgt";
- //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
- //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
- //par.MethodName = "GetCuttinPrompt";
- //par.args = new object[] { nDevNo };
- string strOut = "";
- object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
- if (strOut == "")
- {
- cutHash = (Hashtable)obj;
- }
- else
- {
- cutHash.Clear();
- }
- }
- catch (Exception ee)
- {
- Console.WriteLine(ee.Message);
- cutHash.Clear();
- }
- }
- public void RefreshCutPrompt()
- {
- this.textBox16.Tag = "";
- this.textBox16.Text = "";
- this.textBox17.Text = "";
- this.textBox18.Text = "";
- this.textBox19.Text = "";
- this.textBox20.Text = "";
- this.textBox21.Text = "";
- this.textBox22.Text = "";
- this.textBox23.Text = "";
- this.textBox24.Text = "";
- this.textBox25.Text = "";
- this.txt_heatidnoy.Text = "";
- if (cutHash.Count < 6) return;
- string strHeatNo = cutHash[0].ToString();
- if (strHeatNo == "") return;
- //this.textBox16.Tag = strHeatNo;
- this.textBox16.Text = strHeatNo.Substring(5);
- this.textBox17.Text = cutHash[1].ToString();
- this.textBox18.Text = cutHash[2].ToString();
- this.textBox19.Text = cutHash[3].ToString();
- this.textBox20.Text = cutHash[4].ToString();
- this.textBox21.Text = cutHash[5].ToString();
- this.textBox22.Text = cutHash[6].ToString();
- this.textBox23.Text = cutHash[7].ToString();
- this.txt_heatidnoy.Text = cutHash[8].ToString();
- this.textBox24.Text = cutHash[9].ToString();
- this.textBox25.Text = cutHash[10].ToString();
- }
- public void TimerRefresh()
- {
- LastUpdateTime = DateTime.Now;
- this.GetSqlWhere();
- this.RefreshTable();
- }
- private void RefreshTable()
- {
- //将Grid的左侧移动到开始位置
- Infragistics.Win.UltraWinGrid.Scrollbars scrollbars = this.ultraGrid1.DisplayLayout.Scrollbars;
- if (scrollbars == Infragistics.Win.UltraWinGrid.Scrollbars.Automatic ||
- scrollbars == Infragistics.Win.UltraWinGrid.Scrollbars.Both ||
- scrollbars == Infragistics.Win.UltraWinGrid.Scrollbars.Vertical)
- {
- this.ultraGrid1.DisplayLayout.ColScrollRegions[0].Position = 0;
- //RowScrollRegions[0].ScrollPosition = 0;
- //Infragistics.Win.UltraWinGrid.Scrollbar scroll = this.ultraGrid1.DisplayLayout.ColScrollRegions[0].ScrollPosition = 0;
- }
- try
- {
- //hengxing
- //CallingMessage par = new CallingMessage();
- //par.ServerName = "lgJobMgt";
- //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
- //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob";
- //par.MethodName = "GetCutBillet";
- //par.args = new object[] { _strWhere + " order by cuttime asc,ccmid asc, HEATNO desc " };
- string strOut = "";
- this.ultraGrid1.BeginUpdate(); //避免重画
- if (_dsMid != null && _dsMid.Tables.Count > 0)
- {
- if (_dsMid != null && _dsMid.Tables.Count > 0)
- _dsMid.Tables[0].Rows.Clear();
- }
- DataSet dsTemp = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut) as DataSet;
- if (dsTemp.Tables[0].Rows.Count > 0)
- {
- _dsMid = dsTemp;
- this.ultraGrid1.DataSource = _dsMid.Tables[0];
- //foreach (DataRow dr in dsTemp.Tables[0].Rows)
- //{
- // object[] rowObjArr = dr.ItemArray;
- // _dsMid.Tables[0].Rows.Add(rowObjArr);
- //}
- //_dsMid.AcceptChanges();
- //_dsMid = dsTemp.Copy();
- }
- dsTemp.Dispose();
- //准许重画
- this.ultraGrid1.EndUpdate();
- string strOld = "";
- string strNew = "";
- string strOld_Order = "";
- string strNew_Order = "";
- Color c1 = Color.GhostWhite;//Color.White;
- Color c2 = Color.MintCream;//Color.GhostWhite;//Color.LightCyan;
- Color c3 = c1;
- Color color_OrderNo1 = Color.Blue;
- Color color_OrderNo2 = Color.Black;
- Color color_OrderNo3 = color_OrderNo1;
- //同时定位到最后一行
- for (int i = 0; i < this.ultraGrid1.Rows.Count; i++)
- {
- UltraGridRow ugr = this.ultraGrid1.Rows[i];
- strNew = ugr.Cells["HEATNO"].Value.ToString();
- if (i == this.ultraGrid1.Rows.Count - 1)
- {
- ugr.Activated = true;
- ugr.Selected = true;
- }
- else
- {
- ugr.Activated = false;
- ugr.Selected = false;
- }
- if (strOld != strNew)
- {
- if (c3 == c1) c3 = c2;
- else c3 = c1;
- strOld = strNew;
- }
- ugr.Appearance.BackColor = c3;
- if (strOld_Order != strNew_Order)
- {
- if (color_OrderNo3 == color_OrderNo1) color_OrderNo3 = color_OrderNo2;
- else color_OrderNo3 = color_OrderNo1;
- strOld_Order = strNew_Order;
- }
- ugr.Appearance.ForeColor = color_OrderNo3;
- }
- }
- catch (Exception ex)
- {
- string strMsg = ex.Message;
- }
- }
- private void SetDataThread()
- {
- ReStartSetDataThread:
- while (true)
- {
- if (!this.On_Off_Thread)//
- {
- System.Threading.Thread.Sleep(500);
- continue;
- }
- if (bExit) return;
- //在数据处于定时刷新
- if (bHandleCoup)
- {
- //如果更新超过一定的时间长度(半分钟内),即组织刷新
- TimeSpan timespan = DateTime.Now - LastUpdateTime;
- if (timespan.TotalSeconds > 30)
- {
- LastUpdateTime = DateTime.Now;
- try
- {
- //刷新右边的数据
- this.Invoke(new CallRefreshThreadDelegate(TimerRefresh));
- }
- catch { }
- }
- if (DateTime.Now.Second % 2 == 0)
- {
- GetCutPromptFromServer();
- //this.Invoke(new CallRefreshThreadDelegate(GetCutPromptFromServer));
- Thread.Sleep(300);
- }
- if (DateTime.Now.Second % 3 == 1)
- {
- //RefreshCutPrompt();
- this.Invoke(new CallRefreshThreadDelegate(RefreshCutPrompt));
- }
- }
- for (int j = 0; j < 3; j++)
- {
- Thread.Sleep(1000);
- if (bExit) return;
- }
- }
- goto ReStartSetDataThread;
- }
- #region IDisposable 成员
- void System.IDisposable.Dispose()
- {
- //要求线程推出
- bExit = true;
- }
- #endregion
- private void btn_setheatid_Click(object sender, System.EventArgs e)
- {
- string strDevNo = CCMN0.Substring(0, 1);
- if(strDevNo=="0") strDevNo="4";
- FrmSetHeatid setheatCcmFrm;
- //heatID=heatID.Substring(0,13);
- //this.commClass.setHeatID(heatID);
- setheatCcmFrm = new FrmSetHeatid(ob);
- setheatCcmFrm.Location = GetChildWindowLocation(setheatCcmFrm.Size);
- setheatCcmFrm.Ccmno = strDevNo;
- setheatCcmFrm.Heatno = textBox16.Text;
- // functionCcmFrm.strSme = this.getSmeltingID(heatID);
- setheatCcmFrm.ShowDialog();
- }
- private Point GetChildWindowLocation(Size ChildWindowSize)
- {
- int width = Cursor.Position.X + ChildWindowSize.Width - Screen.PrimaryScreen.Bounds.Width;
- int height = Cursor.Position.Y + ChildWindowSize.Height - Screen.PrimaryScreen.Bounds.Height;
- if (width > 0)
- width = Cursor.Position.X - width;
- else
- width = Cursor.Position.X;
- if (height > 0)
- height = Cursor.Position.Y - height - 50;
- else
- height = Cursor.Position.Y - 50;
- return new Point(width, height);
- }
- private void textBox18_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Enter)
- {
- SendCommdForLadleWeight();
- }
- }
- private void textBox17_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Enter)
- {
- SendCommdForLadleWeight();
- }
- }
- private void panel2_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
- {
- }
- /// <summary>
- /// 统计产量
- /// </summary>
- private void SetSteelSum()
- {
- UltraGridBand band = this.ultraGrid1.DisplayLayout.Bands[0];
- band.Summaries.Clear();
- SummarySettings summary = band.Summaries.Add(SummaryType.Count, band.Columns[0]);
- summary.SummaryPosition = SummaryPosition.UseSummaryPositionColumn;
- summary.DisplayFormat = "合计:";
-
- summary = band.Summaries.Add(SummaryType.Sum, band.Columns[11]);
- summary.SummaryPosition = SummaryPosition.UseSummaryPositionColumn;
- summary.DisplayFormat = " {0:#####.00}";
- summary.Appearance.TextHAlign = Infragistics.Win.HAlign.Center;
-
- summary.Appearance.ForeColor = Color.DarkBlue;
- summary.Appearance.BackColor = Color.White;
- band.Override.SummaryFooterCaptionVisible = Infragistics.Win.DefaultableBoolean.False;
- }
- #region 调度切割
- /// <summary>
- /// 创建对应表
- /// </summary>
- private void createTable()
- {
- try
- {
- //炼钢指示表
- DataColumn myDataColumn = new DataColumn();
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "HEATNO";
- myDataColumn.Caption = "炉号";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "AIM_GRADE_CODE";
- myDataColumn.Caption = "目标钢号";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "CAST_ID";
- myDataColumn.Caption = "铸机";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "CAST_NO";
- myDataColumn.Caption = "浇次号";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "HEAT_NUM";
- myDataColumn.Caption = "炉数";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "CAST_SEQ";
- myDataColumn.Caption = "顺序";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PLAN_ROUTE";
- myDataColumn.Caption = "工艺路径";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "BILLETQTY";
- myDataColumn.Caption = "方坯数";
- steelSchTable.Columns.Add(myDataColumn);
- //myDataColumn = new DataColumn();
- //myDataColumn.DataType = System.Type.GetType("System.String");
- //myDataColumn.ColumnName = "AIM_S";
- //myDataColumn.Caption = "目标含硫量";
- //steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PLAN_IRON_QTY";
- myDataColumn.Caption = "计划铁水量";
- steelSchTable.Columns.Add(myDataColumn);
- //myDataColumn = new DataColumn();
- //myDataColumn.DataType = System.Type.GetType("System.String");
- //myDataColumn.ColumnName = "AIM_MIF_STR_TIME";
- //myDataColumn.Caption = "计划出铁开始时刻";
- //steelSchTable.Columns.Add(myDataColumn);
- //myDataColumn = new DataColumn();
- //myDataColumn.DataType = System.Type.GetType("System.String");
- //myDataColumn.ColumnName = "AIM_MIF_END_TIME";
- //myDataColumn.Caption = "计划出铁结束时刻";
- //steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PLAN_HMP_STR_TIME";
- myDataColumn.Caption = "计划脱硫开始时刻";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PLAN_HMP_END_TIME";
- myDataColumn.Caption = "计划脱硫结束时刻";
- steelSchTable.Columns.Add(myDataColumn);
- //myDataColumn = new DataColumn();
- //myDataColumn.DataType = System.Type.GetType("System.String");
- //myDataColumn.ColumnName = "AIM_HM_STR_TIME";
- //myDataColumn.Caption = "计划装料开始时刻";
- //steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PLAN_BOF_STR_TIME";
- myDataColumn.Caption = "计划吹炼开始时刻";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PLAN_BOF_END_TIME";
- myDataColumn.Caption = "计划吹炼结束时刻";
- steelSchTable.Columns.Add(myDataColumn);
- //myDataColumn = new DataColumn();
- //myDataColumn.DataType = System.Type.GetType("System.String");
- //myDataColumn.ColumnName = "AIM_TAP_END_TIME";
- //myDataColumn.Caption = "计划出钢结束时刻";
- //steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "AIM_STEEL_QTY";
- myDataColumn.Caption = "目标出钢量";
- steelSchTable.Columns.Add(myDataColumn);
- //myDataColumn = new DataColumn();
- //myDataColumn.DataType = System.Type.GetType("System.String");
- //myDataColumn.ColumnName = "AIM_STEEL_QTY";
- //myDataColumn.Caption = "出钢目标温度";
- //steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PLAN_AR_STR_TIME";
- myDataColumn.Caption = "计划AR开始时刻";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PLAN_AR_END_TIME";
- myDataColumn.Caption = "计划AR结束时刻";
- steelSchTable.Columns.Add(myDataColumn);
- //myDataColumn = new DataColumn();
- //myDataColumn.DataType = System.Type.GetType("System.String");
- //myDataColumn.ColumnName = "AIM_AR_TEMP";
- //myDataColumn.Caption = "AR目标温度";
- //steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PLAN_LF_STR_TIME";
- myDataColumn.Caption = "计划LF开始时刻";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PLAN_LF_END_TIME";
- myDataColumn.Caption = "计划LF结束时刻";
- steelSchTable.Columns.Add(myDataColumn);
- //myDataColumn = new DataColumn();
- //myDataColumn.DataType = System.Type.GetType("System.String");
- //myDataColumn.ColumnName = "AIM_LF_TEMP";
- //myDataColumn.Caption = "LF目标温度";
- //steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PLAN_RH_STR_TIME";
- myDataColumn.Caption = "计划RH开始时刻";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PLAN_RH_ENT_TIME";
- myDataColumn.Caption = "计划RH结束时刻";
- steelSchTable.Columns.Add(myDataColumn);
- //myDataColumn = new DataColumn();
- //myDataColumn.DataType = System.Type.GetType("System.String");
- //myDataColumn.ColumnName = "AIM_VD_TEMP";
- //myDataColumn.Caption = "RH目标温度";
- //steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PLAN_CCM_STR_TIME";
- myDataColumn.Caption = "计划浇注开始时刻";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PLAN_CCM_END_TIME";
- myDataColumn.Caption = "计划浇注结束时刻";
- steelSchTable.Columns.Add(myDataColumn);
- //myDataColumn = new DataColumn();
- //myDataColumn.DataType = System.Type.GetType("System.String");
- //myDataColumn.ColumnName = "AIM_TD_TEMP";
- //myDataColumn.Caption = "浇注温度";
- //steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "HEAT_STATE";
- myDataColumn.Caption = "生产状态";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "v_heat_ID";
- myDataColumn.Caption = "虚拟炉号";
- steelSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "STEELCODE";
- myDataColumn.Caption = "牌号编码";
- steelSchTable.Columns.Add(myDataColumn);
- //切割指示表
- myDataColumn = new DataColumn();
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "heatno";
- myDataColumn.Caption = "炉号";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "BILLET_XN";
- myDataColumn.Caption = "计划坯号";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "SLABLENGTH";
- myDataColumn.Caption = "目标长度";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "DIRECTIONTYPE";
- myDataColumn.Caption = "计划去向";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "CUTTASKCODE";
- myDataColumn.Caption = "铸机号";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "CAST_NO";
- myDataColumn.Caption = "浇次号";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "SEQUENCENO";
- myDataColumn.Caption = "炉内顺序号";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "SEQUENCEINCAST";
- myDataColumn.Caption = "浇次内炉序";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "CUTSTARTTIME";
- myDataColumn.Caption = "计划切割时间";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "SLABHEIGHT";
- myDataColumn.Caption = "目标厚度";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "SLABWIDTH";
- myDataColumn.Caption = "目标宽度";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "THEROYWEIGHT";
- myDataColumn.Caption = "坯料重量";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "BILLETQTY";
- myDataColumn.Caption = "方坯数";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "BILLETWEIGHT";
- myDataColumn.Caption = "坯料单重";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "FURNACENO";
- myDataColumn.Caption = "虚拟炉号";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PRODORDERNO";
- myDataColumn.Caption = "生产订单号";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "ORDERNO";
- myDataColumn.Caption = "订单行号";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "BATCHPLANNO";
- myDataColumn.Caption = "批量计划号";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "SEQUENCEINBATCH";
- myDataColumn.Caption = "批量计划内序号";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "CUSTOMER_KEY";
- myDataColumn.Caption = "客户参数号";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "SURPLUSFLAG";
- myDataColumn.Caption = "是否余材";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "STANDARDSCODE";
- myDataColumn.Caption = "内控标准";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "STANDARDREMAK";
- myDataColumn.Caption = "标准描述";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "PDTSTYLE";
- myDataColumn.Caption = "产品类型";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "SPECDESCRIPTION";
- myDataColumn.Caption = "成品规格描述";
- cutSchTable.Columns.Add(myDataColumn);
- myDataColumn = new DataColumn();
- myDataColumn.DataType = System.Type.GetType("System.String");
- myDataColumn.ColumnName = "FOREIGN_TRADE";
- myDataColumn.Caption = "是否出口";
- cutSchTable.Columns.Add(myDataColumn);
- }
- catch (Exception ex)
- {
- string msg = ex.Message;
- }
- }
- /// <summary>
- /// 设置grid外观
- /// </summary>
- private void setGrid1View()
- {
- try
- {
- ultraGrid3.DisplayLayout.Appearance.BackColor = Color.FromArgb(245, 250, 254);
- ultraGrid3.DisplayLayout.Override.HeaderAppearance.BackColor = Color.FromArgb(158, 191, 231);// System.Drawing.Color.FromArgb(205, 228, 225);
- ultraGrid3.DisplayLayout.Override.RowSelectorAppearance.BackColor = System.Drawing.Color.FromArgb(205, 228, 225);
- ultraGrid3.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns["HEAT_STATE"].Hidden = true;
- ultraGrid3.DisplayLayout.Bands[0].Columns["v_heat_ID"].Hidden = true;
- ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_RH_STR_TIME"].Hidden = true;
- ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_RH_ENT_TIME"].Hidden = true;
- ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_HMP_STR_TIME"].Hidden = true;
- ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_HMP_END_TIME"].Hidden = true;
- ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_IRON_QTY"].Hidden = true;
- ultraGrid3.DisplayLayout.Bands[0].Columns["HEAT_NUM"].Hidden = true;
- ultraGrid3.DisplayLayout.Bands[0].Columns["STEELCODE"].Hidden = true;
- ultraGrid3.DisplayLayout.Bands[0].Columns[0].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[1].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[2].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[3].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[4].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[5].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[6].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[7].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[8].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[9].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[10].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[11].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[12].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[13].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[14].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[15].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[16].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[17].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[18].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[19].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[20].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- ultraGrid3.DisplayLayout.Bands[0].Columns[15].Format = "yy-MM-dd HH:mm";
- ultraGrid3.DisplayLayout.Bands[0].Columns[16].Format = "yy-MM-dd HH:mm";
- ultraGrid3.DisplayLayout.Bands[0].Columns[17].Format = "yy-MM-dd HH:mm";
- ultraGrid3.DisplayLayout.Bands[0].Columns[18].Format = "yy-MM-dd HH:mm";
- ultraGrid3.DisplayLayout.Bands[0].Columns[19].Format = "yy-MM-dd HH:mm";
- ultraGrid3.DisplayLayout.Bands[0].Columns[20].Format = "yy-MM-dd HH:mm";
- ultraGrid3.DisplayLayout.Bands[0].Columns[21].Format = "yy-MM-dd HH:mm";
- ultraGrid3.DisplayLayout.Bands[0].Columns["HEATNO"].Width = 80;
- ultraGrid3.DisplayLayout.Bands[0].Columns["AIM_GRADE_CODE"].Width = 60;
- ultraGrid3.DisplayLayout.Bands[0].Columns["CAST_ID"].Width = 50;
- ultraGrid3.DisplayLayout.Bands[0].Columns["CAST_NO"].Width = 70;
- ultraGrid3.DisplayLayout.Bands[0].Columns["HEAT_NUM"].Width = 50;
- ultraGrid3.DisplayLayout.Bands[0].Columns["CAST_SEQ"].Width = 50;
- //ultraGrid3.DisplayLayout.Bands[0].Columns["AIM_S"].Width = 50;
- ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_ROUTE"].Width = 230;
- ultraGrid3.DisplayLayout.Bands[0].Columns["BILLETQTY"].Width = 38;
- ultraGrid3.DisplayLayout.Bands[0].Columns[8].Width = 60;
- ultraGrid3.DisplayLayout.Bands[0].Columns[10].Width = 130;
- ultraGrid3.DisplayLayout.Bands[0].Columns[11].Width = 130;
- ultraGrid3.DisplayLayout.Bands[0].Columns[12].Width = 130;
- ultraGrid3.DisplayLayout.Bands[0].Columns[13].Width = 60;
- ultraGrid3.DisplayLayout.Bands[0].Columns[14].Width = 130;
- ultraGrid3.DisplayLayout.Bands[0].Columns[15].Width = 130;
- ultraGrid3.DisplayLayout.Bands[0].Columns[16].Width = 130;
- ultraGrid3.DisplayLayout.Bands[0].Columns[17].Width = 130;
- // ultraGrid3.DisplayLayout.Bands[0].Columns["AIM_TD_TEMP"].Width = 50;
- ultraGrid3.DisplayLayout.Bands[0].Columns[1].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[2].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[3].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[4].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[5].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[6].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[7].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[8].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[9].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[10].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[11].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[12].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[13].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[14].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[15].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[16].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[17].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[18].CellAppearance.BackColor = Color.GhostWhite;
- ultraGrid3.DisplayLayout.Bands[0].Columns[19].CellAppearance.BackColor = Color.LightGoldenrodYellow;
- ultraGrid3.DisplayLayout.Bands[0].Columns[20].CellAppearance.BackColor = Color.LightGoldenrodYellow;
- ultraGrid3.DisplayLayout.Bands[0].Columns[21].CellAppearance.BackColor = Color.LightGoldenrodYellow;
- ultraGrid3.DisplayLayout.Bands[0].Columns[22].CellAppearance.BackColor = Color.LightPink;
- ultraGrid3.DisplayLayout.Bands[0].Columns[23].CellAppearance.BackColor = Color.LightPink;
- ultraGrid2.DisplayLayout.Appearance.BackColor = Color.FromArgb(245, 250, 254);
- ultraGrid2.DisplayLayout.Override.HeaderAppearance.BackColor = Color.FromArgb(158, 191, 231);// System.Drawing.Color.FromArgb(205, 228, 225);
- ultraGrid2.DisplayLayout.Override.RowSelectorAppearance.BackColor = System.Drawing.Color.FromArgb(205, 228, 225);
- ultraGrid2.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.GhostWhite;
- ultraGrid2.DisplayLayout.Bands[0].Columns["FURNACENO"].Hidden = true;
- // ultraGrid2.DisplayLayout.Bands[0].Columns["STANDARDSCODE"].Hidden = true;
- ultraGrid2.DisplayLayout.Bands[0].Columns["HeatNo"].Width = 60;
- ultraGrid2.DisplayLayout.Bands[0].Columns["STANDARDREMAK"].Width = 90;
- ultraGrid2.DisplayLayout.Bands[0].Columns["BILLET_XN"].Width = 80;
- ultraGrid2.DisplayLayout.Bands[0].Columns["SLABLENGTH"].Width = 50;
- ultraGrid2.DisplayLayout.Bands[0].Columns["CUTTASKCODE"].Width = 50;
- ultraGrid2.DisplayLayout.Bands[0].Columns["CAST_NO"].Width = 50;
- ultraGrid2.DisplayLayout.Bands[0].Columns["SEQUENCEINCAST"].Width = 50;
- ultraGrid2.DisplayLayout.Bands[0].Columns["DIRECTIONTYPE"].Width = 70;
- ultraGrid2.DisplayLayout.Bands[0].Columns["BILLETQTY"].Width = 60;
- ultraGrid2.DisplayLayout.Bands[0].Columns["BILLETWEIGHT"].Width = 60;
- ultraGrid2.DisplayLayout.Bands[0].Columns[7].Width = 60;
- ultraGrid2.DisplayLayout.Bands[0].Columns[8].Width = 120;
- ultraGrid2.DisplayLayout.Bands[0].Columns[9].Width = 70;
- ultraGrid2.DisplayLayout.Bands[0].Columns[10].Width = 70;
- ultraGrid2.DisplayLayout.Bands[0].Columns[11].Width = 70;
- ultraGrid2.DisplayLayout.Bands[0].Columns[12].Width = 70;
- }
- catch (Exception ex)
- {
- string msg = ex.Message;
- }
- }
- private void InitComboBoxSource_Cut()
- {
- this.ccmNumCobo.DataSource = GetCcmData_Cut();
- this.ccmNumCobo.DisplayMember = "name";
- this.ccmNumCobo.ValueMember = "id";
- this.combConNo.DataSource = GetCcmData_Cut();
- this.combConNo.DisplayMember = "name";
- this.combConNo.ValueMember = "id";
- this.cboFlowNo.DataSource = GetCcmData_Cut();
- this.cboFlowNo.DisplayMember = "name";
- this.cboFlowNo.ValueMember = "id";
- }
- /// <summary>
- /// 铸机号
- /// </summary>
- /// <returns></returns>
- private DataTable GetCcmData_Cut()
- {
- DataTable dt = new DataTable();
- dt.Columns.Add("id", typeof(System.String));
- dt.Columns.Add("name", typeof(System.String));
- //dt.Rows.Add(new object[] { "0", "0#铸机" });
- dt.Rows.Add(new object[] { "1", "1#铸机" });
- dt.Rows.Add(new object[] { "2", "2#铸机" });
- dt.Rows.Add(new object[] { "3", "3#铸机" });
- // dt.Rows.Add(new object[] { "4", "4#铸机" });
- dt.AcceptChanges();
- return dt;
- }
- /// <路径解析>
- /// 路径解析
- /// </路径解析>
- /// <param name="craftPath"></param>
- /// <returns></returns>
- private string analysPath(string craftPath)//----路径解析
- {
- string path = "";
- try
- {
- if (craftPath.Length > 14)
- {
- string str = "", route = "";
- if (craftPath.Length >= 2)
- {
- str = craftPath.Substring(0, 2);
- switch (str)
- {
- case "A0":
- route = "";
- break;
- case "A1":
- route = "1#混铁炉";
- break;
- case "A2":
- route = "2#混铁炉";
- break;
- }
- path = path + route;
- }
- else
- return path;
- if (craftPath.Length >= 4)
- {
- str = craftPath.Substring(2, 2);
- switch (str)
- {
- case "B0":
- route = "";
- break;
- case "B1":
- route = "->1#铁水预处理";
- break;
- case "B2":
- route = "->2#铁水预处理";
- break;
- }
- path = path + route;
- }
- else
- return path;
- if (craftPath.Length >= 6)
- {
- str = craftPath.Substring(4, 2);
- switch (str)
- {
- case "C0":
- route = "";
- break;
- case "C1":
- route = "->1#转炉";
- break;
- case "C2":
- route = "->2#转炉";
- break;
- case "C3":
- route = "->3#转炉";
- break;
- }
- path = path + route;
- }
- else
- return path;
- if (craftPath.Length >= 8)
- {
- str = craftPath.Substring(6, 2);
- switch (str)
- {
- case "D0":
- route = "";
- break;
- case "D1":
- route = "->1#吹氩站";
- break;
- case "D2":
- route = "->2#吹氩站";
- break;
- case "D3":
- route = "->3#吹氩站";
- break;
- }
- path = path + route;
- }
- else
- return path;
- ///2008-02-28 刘现
- if (craftPath.Length >= 10)
- {
- str = craftPath.Substring(8, 2);
- switch (str)
- {
- case "F0":
- route = "";
- break;
- case "F1":
- route = "->1#RH炉";
- break;
- }
- path = path + route;
- }
- else
- return path;
- if (craftPath.Length >= 12)
- {
- str = craftPath.Substring(10, 2);
- switch (str)
- {
- case "E0":
- route = "";
- break;
- case "E1":
- route = "->1#精练";
- break;
- case "E2":
- route = "->2#精练";
- break;
- }
- path = path + route;
- }
- else
- return path;
- if (craftPath.Length >= 14)
- {
- str = craftPath.Substring(12, 2);
- switch (str)
- {
- case "F0":
- route = "";
- break;
- case "F1":
- route = "->1#RH炉";
- break;
- }
- path = path + route;
- }
- else
- return path;
- if (craftPath.Length >= 14)
- {
- str = craftPath.Substring(14, 2);
- switch (str)
- {
- case "G0":
- route = "";
- break;
- case "G1":
- route = "->1#连铸机";
- break;
- case "G2":
- route = "->2#连铸机";
- break;
- case "G3":
- route = "->3#连铸机";
- break;
- case "G4":
- route = "->0#连铸机";
- break;
- }
- path = path + route;
- }
- else
- return path;
- if (path.Length < 2)
- return "";
- if (path.IndexOf("->", 0) == 0)
- {
- int len = path.Length;
- path = path.Substring(2, len - 2);
- }
- }
- else
- {
- string str = "", route = "";
- if (craftPath.Length >= 2)
- {
- str = craftPath.Substring(0, 2);
- switch (str)
- {
- case "A0":
- route = "";
- break;
- case "A1":
- route = "1#混铁炉";
- break;
- case "A2":
- route = "2#混铁炉";
- break;
- }
- path = path + route;
- }
- else
- return path;
- if (craftPath.Length >= 4)
- {
- str = craftPath.Substring(2, 2);
- switch (str)
- {
- case "B0":
- route = "";
- break;
- case "B1":
- route = "->1#铁水预处理";
- break;
- case "B2":
- route = "->2#铁水预处理";
- break;
- }
- path = path + route;
- }
- else
- return path;
- if (craftPath.Length >= 6)
- {
- str = craftPath.Substring(4, 2);
- switch (str)
- {
- case "C0":
- route = "";
- break;
- case "C1":
- route = "->1#转炉";
- break;
- case "C2":
- route = "->2#转炉";
- break;
- case "C3":
- route = "->3#转炉";
- break;
- }
- path = path + route;
- }
- else
- return path;
- if (craftPath.Length >= 8)
- {
- str = craftPath.Substring(6, 2);
- switch (str)
- {
- case "D0":
- route = "";
- break;
- case "D1":
- route = "->1#吹氩站";
- break;
- case "D2":
- route = "->2#吹氩站";
- break;
- case "D3":
- route = "->3#吹氩站";
- break;
- }
- path = path + route;
- }
- else
- return path;
- if (craftPath.Length >= 10)
- {
- str = craftPath.Substring(8, 2);
- switch (str)
- {
- case "E0":
- route = "";
- break;
- case "E1":
- route = "->1#精练";
- break;
- case "E2":
- route = "->2#精练";
- break;
- }
- path = path + route;
- }
- else
- return path;
- if (craftPath.Length >= 12)
- {
- str = craftPath.Substring(10, 2);
- switch (str)
- {
- case "F0":
- route = "";
- break;
- case "F1":
- route = "->1#RH炉";
- break;
- case "F2":
- route = "->2#RH炉";
- break;
- }
- path = path + route;
- }
- else
- return path;
- if (craftPath.Length >= 14)
- {
- str = craftPath.Substring(12, 2);
- switch (str)
- {
- case "G0":
- route = "";
- break;
- case "G1":
- route = "->1#连铸机";
- break;
- case "G2":
- route = "->2#连铸机";
- break;
- case "G3":
- route = "->3#连铸机";
- break;
- case "G4":
- route = "->0#连铸机";
- break;
- }
- path = path + route;
- }
- else
- return path;
- if (path.Length < 2)
- return "";
- if (path.IndexOf("->", 0) == 0)
- {
- int len = path.Length;
- path = path.Substring(2, len - 2);
- }
- }
- return path;
- }
- catch (Exception ex)
- {
- string msg = ex.Message;
- return path;
- }
- }
- /// <summary>
- /// 计划信息查询
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void queryBtn_Click(object sender, EventArgs e)
- {
- try
- {
- string startTime = dateTimePicker3.Value.ToString();
- string endTime = dateTimePicker4.Value.ToString();
- 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);
- if (this.chkCcmNo.Checked)
- { // this.combCcmNo.SelectedItem
- // string ccmN0 = this.combCcmNo.SelectedValue.ToString();
- strWhere += string.Format(" AND CAST_ID='{0}' ", this.ccmNumCobo.SelectedValue);
- }
- //以下是转炉查询
- if (this.chkConNo.Checked)
- {
- //string conN0 = this.combConNo.SelectedValue.ToString();
- strWhere += string.Format(" AND substr(heatno,3,1)='{0}'", this.combConNo.SelectedValue);
- }//转炉
- //strWhere += " order by AIM_CAST_STR_TIME desc " ;
- strWhere += " and heatno is not null ";//order by CAST_NO desc,to_number(CAST_SEQ) desc ";
- string err = "";
- this.steelSchTable.Clear();
- routeHash.Clear();
- // DataSet ds = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("DataHandle", "Core.Sglg.DataHandle", "Core.Sglg.DataHandle.BSA_ISTLSCH", "SelectToDataSet", new object[] { strWhere }, out err);
- DataSet ds = null;// (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("lgIntegrationQuery", "Core.LgMes.Server.lgIntegrationQuery.LgGeneralInfo", "GetAllJobPlan_Cut", new object[] { strWhere }, out err);
- if (err != "" && ds.Tables[0].Rows.Count <= 0)
- {
- //MessageBox.Show("炼钢数据查询错误:"+err,"提示");
- return;
- }
- //this.steelSchTable = ds.Tables[0];
- if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
- {
- this.ultraGrid1.BeginUpdate();
- this.cutSchTable.Clear();
- int rowCount = ds.Tables[0].Rows.Count;
- DataRow row;
- string name = "";
- for (int i = 0; i < rowCount; i++)
- {
- row = this.steelSchTable.NewRow();
- foreach (DataColumn column in steelSchTable.Columns)
- {
- name = column.ColumnName;
- if (name != "PLAN_ROUTE")
- row[name] = ds.Tables[0].Rows[i][name].ToString();
- else
- {
- routeHash.Add(ds.Tables[0].Rows[i]["HEATNO"].ToString(), ds.Tables[0].Rows[i]["PLAN_ROUTE"].ToString());
- row[name] = analysPath(ds.Tables[0].Rows[i][name].ToString());
- }
- }
- this.steelSchTable.Rows.Add(row);
- string status = row["HEAT_STATE"].ToString();
- if (status == "03")
- {
- foreach (UltraGridCell cell in ultraGrid1.Rows[i].Cells)
- cell.Appearance.BackColor = Color.White;//计划状态
- }
- else if (status == "09")
- {
- foreach (UltraGridCell cell in ultraGrid1.Rows[i].Cells)
- cell.Appearance.BackColor = Color.LightCyan; //Color.MintCream;//连铸结束
- }
- else
- {
- foreach (UltraGridCell cell in ultraGrid1.Rows[i].Cells)
- cell.Appearance.BackColor = Color.LightGreen;//在生产用颜色区分
- }
- }
- this.ultraGrid1.EndUpdate();
- }
- }
- catch { }
- }
- #endregion
- private void chkCcmNo_CheckedChanged(object sender, EventArgs e)
- {
- if (this.chkCcmNo.Checked)
- {
- this.ccmNumCobo.Enabled = true;
- this.ccmNumCobo.BackColor = Color.White;
- }
- else
- {
- this.ccmNumCobo.Enabled = false;
- this.ccmNumCobo.BackColor = Color.Gainsboro;
- }
- }
- }
- }
|