| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625 |
- using System;
- using System.Collections;
- using System.ComponentModel;
- using System.Drawing;
- using System.Data;
- using System.Windows.Forms;
- namespace Core.XgMes.Client.JGKC.SteelPlateManager
- {
- /// <summary>
- /// 中板成品发运综合查询统计
- /// </summary>
- public class UCSendStat : System.Windows.Forms.UserControl
- {
- #region "Varible"
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_StatInceName;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_StatStation;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatListCoding;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatSteel;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatVecihleNO;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatPactNO;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatPlanNO;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatRollNO;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatClassTeam;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatBilletID;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatRole;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatResult;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatSendDate;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatSpet;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatSendMan;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatBookInMan;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatBookInDate;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_StatOrder;
- #endregion
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_StatCondole;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_ProcLine;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_CutState;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_SendNo;
- private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_Butress;
- /// <summary>
- /// 必需的设计器变量。
- /// </summary>
- private System.ComponentModel.Container components = null;
- public UCSendStat()
- {
- // 该调用是 Windows.Forms 窗体设计器所必需的。
- InitializeComponent();
- // TODO: 在 InitializeComponent 调用后添加任何初始化
- }
- /// <summary>
- /// 清理所有正在使用的资源。
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if(components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
- #region 组件设计器生成的代码
- /// <summary>
- /// 设计器支持所需的方法 - 不要使用代码编辑器
- /// 修改此方法的内容。
- /// </summary>
- private void InitializeComponent()
- {
- Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance9 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance10 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance11 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance12 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance13 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance14 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance15 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance16 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance17 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance18 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance19 = new Infragistics.Win.Appearance();
- Infragistics.Win.Appearance appearance20 = 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();
- this.chk_StatInceName = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.chk_StatStation = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatListCoding = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatSteel = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatVecihleNO = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatPactNO = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatPlanNO = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatRollNO = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatClassTeam = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatBilletID = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatRole = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatCondole = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatResult = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatSendDate = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatSpet = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatSendMan = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatBookInMan = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.Chk_StatBookInDate = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.chk_StatOrder = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.chk_ProcLine = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.chk_CutState = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.chk_SendNo = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.chk_Butress = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
- this.SuspendLayout();
- //
- // chk_StatInceName
- //
- appearance1.BackColor = System.Drawing.Color.LightCyan;
- this.chk_StatInceName.Appearance = appearance1;
- this.chk_StatInceName.FlatMode = true;
- this.chk_StatInceName.Location = new System.Drawing.Point(70, 6);
- this.chk_StatInceName.Name = "chk_StatInceName";
- this.chk_StatInceName.Size = new System.Drawing.Size(84, 14);
- this.chk_StatInceName.TabIndex = 0;
- this.chk_StatInceName.Text = "按收货单位";
- //
- // chk_StatStation
- //
- appearance2.BackColor = System.Drawing.Color.LightCyan;
- this.chk_StatStation.Appearance = appearance2;
- this.chk_StatStation.FlatMode = true;
- this.chk_StatStation.Location = new System.Drawing.Point(70, 38);
- this.chk_StatStation.Name = "chk_StatStation";
- this.chk_StatStation.Size = new System.Drawing.Size(59, 14);
- this.chk_StatStation.TabIndex = 1;
- this.chk_StatStation.Text = "按到站";
- //
- // Chk_StatListCoding
- //
- appearance3.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatListCoding.Appearance = appearance3;
- this.Chk_StatListCoding.FlatMode = true;
- this.Chk_StatListCoding.Location = new System.Drawing.Point(70, 22);
- this.Chk_StatListCoding.Name = "Chk_StatListCoding";
- this.Chk_StatListCoding.Size = new System.Drawing.Size(72, 14);
- this.Chk_StatListCoding.TabIndex = 2;
- this.Chk_StatListCoding.Text = "按明细号";
- //
- // Chk_StatSteel
- //
- appearance4.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatSteel.Appearance = appearance4;
- this.Chk_StatSteel.FlatMode = true;
- this.Chk_StatSteel.Location = new System.Drawing.Point(6, 54);
- this.Chk_StatSteel.Name = "Chk_StatSteel";
- this.Chk_StatSteel.Size = new System.Drawing.Size(59, 14);
- this.Chk_StatSteel.TabIndex = 3;
- this.Chk_StatSteel.Text = "按牌号";
- //
- // Chk_StatVecihleNO
- //
- appearance5.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatVecihleNO.Appearance = appearance5;
- this.Chk_StatVecihleNO.FlatMode = true;
- this.Chk_StatVecihleNO.Location = new System.Drawing.Point(6, 6);
- this.Chk_StatVecihleNO.Name = "Chk_StatVecihleNO";
- this.Chk_StatVecihleNO.Size = new System.Drawing.Size(59, 14);
- this.Chk_StatVecihleNO.TabIndex = 4;
- this.Chk_StatVecihleNO.Text = "按车牌";
- //
- // Chk_StatPactNO
- //
- appearance6.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatPactNO.Appearance = appearance6;
- this.Chk_StatPactNO.FlatMode = true;
- this.Chk_StatPactNO.Location = new System.Drawing.Point(6, 22);
- this.Chk_StatPactNO.Name = "Chk_StatPactNO";
- this.Chk_StatPactNO.Size = new System.Drawing.Size(59, 14);
- this.Chk_StatPactNO.TabIndex = 5;
- this.Chk_StatPactNO.Text = "按合同";
- //
- // Chk_StatPlanNO
- //
- appearance7.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatPlanNO.Appearance = appearance7;
- this.Chk_StatPlanNO.FlatMode = true;
- this.Chk_StatPlanNO.Location = new System.Drawing.Point(70, 54);
- this.Chk_StatPlanNO.Name = "Chk_StatPlanNO";
- this.Chk_StatPlanNO.Size = new System.Drawing.Size(72, 14);
- this.Chk_StatPlanNO.TabIndex = 6;
- this.Chk_StatPlanNO.Text = "按计划号";
- //
- // Chk_StatRollNO
- //
- appearance8.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatRollNO.Appearance = appearance8;
- this.Chk_StatRollNO.FlatMode = true;
- this.Chk_StatRollNO.Location = new System.Drawing.Point(70, 69);
- this.Chk_StatRollNO.Name = "Chk_StatRollNO";
- this.Chk_StatRollNO.Size = new System.Drawing.Size(72, 14);
- this.Chk_StatRollNO.TabIndex = 7;
- this.Chk_StatRollNO.Text = "按轧编号";
- //
- // Chk_StatClassTeam
- //
- appearance9.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatClassTeam.Appearance = appearance9;
- this.Chk_StatClassTeam.FlatMode = true;
- this.Chk_StatClassTeam.Location = new System.Drawing.Point(6, 86);
- this.Chk_StatClassTeam.Name = "Chk_StatClassTeam";
- this.Chk_StatClassTeam.Size = new System.Drawing.Size(59, 14);
- this.Chk_StatClassTeam.TabIndex = 8;
- this.Chk_StatClassTeam.Text = "按班组";
- //
- // Chk_StatBilletID
- //
- appearance10.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatBilletID.Appearance = appearance10;
- this.Chk_StatBilletID.FlatMode = true;
- this.Chk_StatBilletID.Location = new System.Drawing.Point(6, 102);
- this.Chk_StatBilletID.Name = "Chk_StatBilletID";
- this.Chk_StatBilletID.Size = new System.Drawing.Size(59, 14);
- this.Chk_StatBilletID.TabIndex = 10;
- this.Chk_StatBilletID.Text = "按序号";
- //
- // Chk_StatRole
- //
- appearance11.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatRole.Appearance = appearance11;
- this.Chk_StatRole.FlatMode = true;
- this.Chk_StatRole.Location = new System.Drawing.Point(6, 118);
- this.Chk_StatRole.Name = "Chk_StatRole";
- this.Chk_StatRole.Size = new System.Drawing.Size(60, 14);
- this.Chk_StatRole.TabIndex = 11;
- this.Chk_StatRole.Text = "含定尺";
- //
- // Chk_StatCondole
- //
- appearance12.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatCondole.Appearance = appearance12;
- this.Chk_StatCondole.FlatMode = true;
- this.Chk_StatCondole.Location = new System.Drawing.Point(158, 22);
- this.Chk_StatCondole.Name = "Chk_StatCondole";
- this.Chk_StatCondole.Size = new System.Drawing.Size(59, 14);
- this.Chk_StatCondole.TabIndex = 12;
- this.Chk_StatCondole.Text = "按吊号";
- //
- // Chk_StatResult
- //
- appearance13.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatResult.Appearance = appearance13;
- this.Chk_StatResult.FlatMode = true;
- this.Chk_StatResult.Location = new System.Drawing.Point(70, 100);
- this.Chk_StatResult.Name = "Chk_StatResult";
- this.Chk_StatResult.Size = new System.Drawing.Size(84, 14);
- this.Chk_StatResult.TabIndex = 13;
- this.Chk_StatResult.Text = "含判定结果";
- //
- // Chk_StatSendDate
- //
- appearance14.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatSendDate.Appearance = appearance14;
- this.Chk_StatSendDate.FlatMode = true;
- this.Chk_StatSendDate.Location = new System.Drawing.Point(70, 116);
- this.Chk_StatSendDate.Name = "Chk_StatSendDate";
- this.Chk_StatSendDate.Size = new System.Drawing.Size(84, 14);
- this.Chk_StatSendDate.TabIndex = 14;
- this.Chk_StatSendDate.Text = "按发运日期";
- //
- // Chk_StatSpet
- //
- appearance15.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatSpet.Appearance = appearance15;
- this.Chk_StatSpet.FlatMode = true;
- this.Chk_StatSpet.Location = new System.Drawing.Point(6, 70);
- this.Chk_StatSpet.Name = "Chk_StatSpet";
- this.Chk_StatSpet.Size = new System.Drawing.Size(59, 14);
- this.Chk_StatSpet.TabIndex = 15;
- this.Chk_StatSpet.Text = "按规格";
- //
- // Chk_StatSendMan
- //
- appearance16.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatSendMan.Appearance = appearance16;
- this.Chk_StatSendMan.FlatMode = true;
- this.Chk_StatSendMan.Location = new System.Drawing.Point(6, 134);
- this.Chk_StatSendMan.Name = "Chk_StatSendMan";
- this.Chk_StatSendMan.Size = new System.Drawing.Size(59, 14);
- this.Chk_StatSendMan.TabIndex = 16;
- this.Chk_StatSendMan.Text = "发运人";
- //
- // Chk_StatBookInMan
- //
- appearance17.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatBookInMan.Appearance = appearance17;
- this.Chk_StatBookInMan.FlatMode = true;
- this.Chk_StatBookInMan.Location = new System.Drawing.Point(6, 150);
- this.Chk_StatBookInMan.Name = "Chk_StatBookInMan";
- this.Chk_StatBookInMan.Size = new System.Drawing.Size(59, 14);
- this.Chk_StatBookInMan.TabIndex = 17;
- this.Chk_StatBookInMan.Text = "登记人";
- //
- // Chk_StatBookInDate
- //
- appearance18.BackColor = System.Drawing.Color.LightCyan;
- this.Chk_StatBookInDate.Appearance = appearance18;
- this.Chk_StatBookInDate.FlatMode = true;
- this.Chk_StatBookInDate.Location = new System.Drawing.Point(70, 132);
- this.Chk_StatBookInDate.Name = "Chk_StatBookInDate";
- this.Chk_StatBookInDate.Size = new System.Drawing.Size(84, 14);
- this.Chk_StatBookInDate.TabIndex = 18;
- this.Chk_StatBookInDate.Text = "按登记时间";
- //
- // chk_StatOrder
- //
- appearance19.BackColor = System.Drawing.Color.LightCyan;
- this.chk_StatOrder.Appearance = appearance19;
- this.chk_StatOrder.FlatMode = true;
- this.chk_StatOrder.Location = new System.Drawing.Point(6, 38);
- this.chk_StatOrder.Name = "chk_StatOrder";
- this.chk_StatOrder.Size = new System.Drawing.Size(59, 14);
- this.chk_StatOrder.TabIndex = 19;
- this.chk_StatOrder.Text = "按订单";
- //
- // chk_ProcLine
- //
- appearance20.BackColor = System.Drawing.Color.LightCyan;
- this.chk_ProcLine.Appearance = appearance20;
- this.chk_ProcLine.FlatMode = true;
- this.chk_ProcLine.Location = new System.Drawing.Point(158, 6);
- this.chk_ProcLine.Name = "chk_ProcLine";
- this.chk_ProcLine.Size = new System.Drawing.Size(48, 14);
- this.chk_ProcLine.TabIndex = 20;
- this.chk_ProcLine.Text = "产线";
- //
- // chk_CutState
- //
- appearance21.BackColor = System.Drawing.Color.LightCyan;
- this.chk_CutState.Appearance = appearance21;
- this.chk_CutState.FlatMode = true;
- this.chk_CutState.Location = new System.Drawing.Point(70, 84);
- this.chk_CutState.Name = "chk_CutState";
- this.chk_CutState.Size = new System.Drawing.Size(84, 14);
- this.chk_CutState.TabIndex = 21;
- this.chk_CutState.Text = "按切边状态";
- //
- // chk_SendNo
- //
- appearance22.BackColor = System.Drawing.Color.LightCyan;
- this.chk_SendNo.Appearance = appearance22;
- this.chk_SendNo.FlatMode = true;
- this.chk_SendNo.Location = new System.Drawing.Point(158, 38);
- this.chk_SendNo.Name = "chk_SendNo";
- this.chk_SendNo.Size = new System.Drawing.Size(59, 14);
- this.chk_SendNo.TabIndex = 24;
- this.chk_SendNo.Text = "发运号";
- //
- // chk_Butress
- //
- appearance23.BackColor = System.Drawing.Color.LightCyan;
- this.chk_Butress.Appearance = appearance23;
- this.chk_Butress.FlatMode = true;
- this.chk_Butress.Location = new System.Drawing.Point(158, 53);
- this.chk_Butress.Name = "chk_Butress";
- this.chk_Butress.Size = new System.Drawing.Size(74, 14);
- this.chk_Butress.TabIndex = 26;
- this.chk_Butress.Text = "垛位";
- //
- // UCSendStat
- //
- this.Controls.Add(this.chk_Butress);
- this.Controls.Add(this.chk_SendNo);
- this.Controls.Add(this.chk_CutState);
- this.Controls.Add(this.chk_ProcLine);
- this.Controls.Add(this.chk_StatOrder);
- this.Controls.Add(this.Chk_StatBookInDate);
- this.Controls.Add(this.Chk_StatBookInMan);
- this.Controls.Add(this.Chk_StatSendMan);
- this.Controls.Add(this.Chk_StatSpet);
- this.Controls.Add(this.Chk_StatSendDate);
- this.Controls.Add(this.Chk_StatResult);
- this.Controls.Add(this.Chk_StatCondole);
- this.Controls.Add(this.Chk_StatRole);
- this.Controls.Add(this.Chk_StatBilletID);
- this.Controls.Add(this.Chk_StatClassTeam);
- this.Controls.Add(this.Chk_StatRollNO);
- this.Controls.Add(this.Chk_StatPlanNO);
- this.Controls.Add(this.Chk_StatPactNO);
- this.Controls.Add(this.Chk_StatVecihleNO);
- this.Controls.Add(this.Chk_StatSteel);
- this.Controls.Add(this.Chk_StatListCoding);
- this.Controls.Add(this.chk_StatStation);
- this.Controls.Add(this.chk_StatInceName);
- this.Name = "UCSendStat";
- this.Size = new System.Drawing.Size(233, 173);
- this.ResumeLayout(false);
- }
- #endregion
- #region "Property
- private string _SelectStr = "SELECT ";//A.STEELTYPE
- private string _FromStr = " FROM KCJ_TURNOFFSENDLIST_ZW A,SEL_PACTDETAIL B,SEL_INCEPTCORPINFO C,SEL_STATIONINFO D,KCJ_PLAN E,SEL_PACTINFO F "
- + " WHERE A.ISVALID<>'0' AND A.SENDTYPE='0' AND A.PLANVEHICLEID=E.ASKPLAN_ID(+) AND E.INCEPTCORPCODE=C.INCEPTCORPCODE(+) AND A.DUMMYSENDFLAG<>'1' "
- + " AND B.STATIONCODE=D.STATIONCODE(+) AND A.ORDERFORMNUMBER=B.ORDERNO(+) AND A.CLEARFLAG <> '1' AND E.PACTNO=F.PACTNO(+) ";
- private string _FromStr1 = " FROM KCJ_TURNOFFSENDLIST_ZW A,SEL_PACTDETAIL B,SEL_INCEPTCORPINFO C,SEL_STATIONINFO D,KCJ_PLAN E,SEL_PACTINFO F "
- + " WHERE A.ISVALID<>'0' AND A.SENDTYPE='0' AND A.PLANVEHICLEID=E.ASKPLAN_ID(+) AND E.INCEPTCORPCODE=C.INCEPTCORPCODE(+) AND A.DUMMYSENDFLAG<>'1' "
- + " AND B.STATIONCODE=D.STATIONCODE(+) AND A.ORDERFORMNUMBER=B.ORDERNO(+) AND A.CLEARFLAG <> '1' AND E.PACTNO=F.PACTNO AND F.ISOUTPACT='1' ";
- private string _GroupbyStr = " GROUP BY ";
- public System.Collections.ArrayList SendSelectStr
- {
- get
- {
- System.Collections.ArrayList rtnList = new ArrayList();
- string rtnStr = _SelectStr;
-
- if (this.chk_SendNo.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.PLANVEHICLEID ";
- }
- else
- {
- rtnStr = rtnStr + "A.PLANVEHICLEID ";
- }
- }
-
- if (this.chk_Butress.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.BUTTRESS";
- }
- else
- {
- rtnStr = rtnStr + "A.BUTTRESS";
- }
- }
- if(this.chk_CutState.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_ = A.CLIPTYPEPROCESS) CLIPTYPEPROCESS";
- }
- else
- {
- rtnStr = rtnStr + "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_ = A.CLIPTYPEPROCESS) CLIPTYPEPROCESS";
- }
- }
- if(this.chk_ProcLine.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_ = B.PRODLINECODE) PRODLINECODE";
- }
- else
- {
- rtnStr = rtnStr + "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_ = B.PRODLINECODE) PRODLINECODE";
- }
- }
- if(this.chk_StatInceName.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",C.INCEPTCORPNAME";
- }
- else
- {
- rtnStr = rtnStr + "C.INCEPTCORPNAME";
- }
- }
- if(this.Chk_StatListCoding.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.LISTNUMBER";
- }
- else
- {
- rtnStr = rtnStr + "A.LISTNUMBER";
- }
- }
- if(this.Chk_StatVecihleNO.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.TRAINWAGON";
- }
- else
- {
- rtnStr = rtnStr + "A.TRAINWAGON";
- }
- }
-
-
- if(this.chk_StatStation.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",D.STATIONNAME";
- }
- else
- {
- rtnStr = rtnStr + "D.STATIONNAME";
- }
- }
- if(this.Chk_StatPactNO.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",B.PACTNO";
- }
- else
- {
- rtnStr = rtnStr + "B.PACTNO";
- }
- }
- if(this.chk_StatOrder.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.ORDERFORMNUMBER";
- }
- else
- {
- rtnStr = rtnStr + "A.ORDERFORMNUMBER";
- }
- }
- if(this.Chk_StatPlanNO.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.PLANNO";
- }
- else
- {
- rtnStr = rtnStr + "A.PLANNO";
- }
- }
- if(this.Chk_StatSteel.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.STEELTYPE";
- }
- else
- {
- rtnStr = rtnStr + "A.STEELTYPE";
- }
- }
- if(this.Chk_StatRollNO.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.ROLLNO";
- }
- else
- {
- rtnStr = rtnStr + "A.ROLLNO";
- }
- }
- if(this.Chk_StatClassTeam.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.CLASSTEAM) CLASSTEAM";
- }
- else
- {
- rtnStr = rtnStr + "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.CLASSTEAM) CLASSTEAM";
- }
- }
-
- if(this.Chk_StatRole.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr+ ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.ROLE) ROLE";
- }
- else
- {
- rtnStr = rtnStr+ "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.ROLE) ROLE";
- }
- }
- if(this.Chk_StatCondole.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.CONDOLENUMBER";
- }
- else
- {
- rtnStr = rtnStr + "A.CONDOLENUMBER";
- }
- }
- if(this.Chk_StatResult.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.DETERMINANTRESULT) DETERMINANTRESULT";
- }
- else
- {
- rtnStr = rtnStr + "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.DETERMINANTRESULT) DETERMINANTRESULT";
- }
- }
- if(this.Chk_StatSendDate.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD') PICKSTORAGETIME";
- }
- else
- {
- rtnStr = rtnStr + "TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD') PICKSTORAGETIME";
- }
- }
- if(this.Chk_StatBookInDate.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",TO_CHAR(A.CREATTIME,'YY-MM-DD HH24:MI') CREATTIME";
- }
- else
- {
- rtnStr = rtnStr + "TO_CHAR(A.CREATTIME,'YY-MM-DD HH24:MI') CREATTIME";
- }
- }
- if(this.Chk_StatBookInMan.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.CREATOR";
- }
- else
- {
- rtnStr = rtnStr + "A.CREATOR";
- }
- }
- if(this.Chk_StatSendMan.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.PICKSTORAGEMAN";
- }
- else
- {
- rtnStr = rtnStr + "A.PICKSTORAGEMAN";
- }
- }
-
- if(this.Chk_StatBilletID.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.SERIALNUMBER,1 QUANTITY,A.WEIGHT,A.ADDWEIGHT ";
- }
- else
- {
- rtnStr = rtnStr + "C.INCEPTCORPNAME,A.LISTNUMBER,A.STEELTYPE,TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD') PICKSTORAGETIME,A.SERIALNUMBER,1 QUANTITY,A.WEIGHT,A.ADDWEIGHT ";
- }
- rtnStr = rtnStr + ",TO_CHAR(A.PLY)||'×'||TO_CHAR(A.WIDTH)||'×'||TO_CHAR(A.LENGTH) SPET";
- rtnStr = rtnStr + _FromStr;
- rtnList.Add(rtnStr);
- return rtnList;
- }
- else
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",COUNT(A.SERIALNUMBER) QUANTITY,SUM(A.WEIGHT) WEIGHT,SUM(A.ADDWEIGHT) ADDWEIGHT ";
- }
- else
- {
- rtnStr = rtnStr + "C.INCEPTCORPNAME,A.LISTNUMBER,A.STEELTYPE,TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD') PICKSTORAGETIME,COUNT(A.SERIALNUMBER) QUANTITY,SUM(A.WEIGHT) WEIGHT,SUM(A.ADDWEIGHT) ADDWEIGHT ";
- }
- }
- if (this.Chk_StatRole.Checked)
- {
- string tmpstr = "";
- tmpstr = rtnStr + ",TO_CHAR(A.PLY)||'×'||TO_CHAR(A.LENGTH) SPET "; //定长
- tmpstr = tmpstr + _FromStr + " AND A.ROLE='102201' ";
- rtnList.Add(tmpstr);
- tmpstr = rtnStr + ",TO_CHAR(A.PLY)||'×'||TO_CHAR(A.WIDTH) SPET "; //定宽
- tmpstr = tmpstr + _FromStr + " AND (A.ROLE='102202' OR A.ROLE='102206') ";
- rtnList.Add(tmpstr);
- tmpstr = rtnStr + ",TO_CHAR(A.PLY)||'×'||TO_CHAR(A.WIDTH)||'×'||TO_CHAR(A.LENGTH) SPET "; //双定
- tmpstr = tmpstr + _FromStr + " AND (A.ROLE='102203' OR A.ROLE IS NULL) ";
- rtnList.Add(tmpstr);
- tmpstr = rtnStr + ",TO_CHAR(A.PLY) SPET "; //非定
- tmpstr = tmpstr + _FromStr + " AND (A.ROLE='102204' OR A.ROLE='102205') ";
- rtnList.Add(tmpstr);
- return rtnList;
- }
- else
- {
- if (this.Chk_StatSpet.Checked)
- {
- rtnStr = rtnStr + ",TO_CHAR(A.PLY) SPET ";
- }
- rtnStr = rtnStr + _FromStr;
- rtnList.Add(rtnStr);
- return rtnList;
- }
- }
- }
- public System.Collections.ArrayList SendSelectStr1
- {
- get
- {
- System.Collections.ArrayList rtnList = new ArrayList();
- string rtnStr = _SelectStr;
-
-
-
- if (this.chk_SendNo.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.PLANVEHICLEID";
- }
- else
- {
- rtnStr = rtnStr + "A.PLANVEHICLEID";
- }
- }
-
-
- if (this.chk_Butress.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.BUTTRESS";
- }
- else
- {
- rtnStr = rtnStr + "A.BUTTRESS";
- }
- }
- if (this.chk_CutState.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_ = A.CLIPTYPEPROCESS) CLIPTYPEPROCESS";
- }
- else
- {
- rtnStr = rtnStr + "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_ = A.CLIPTYPEPROCESS) CLIPTYPEPROCESS";
- }
- }
- if (this.chk_ProcLine.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_ = B.PRODLINECODE) PRODLINECODE";
- }
- else
- {
- rtnStr = rtnStr + "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_ = B.PRODLINECODE) PRODLINECODE";
- }
- }
- if (this.chk_StatInceName.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",C.INCEPTCORPNAME";
- }
- else
- {
- rtnStr = rtnStr + "C.INCEPTCORPNAME";
- }
- }
- if (this.Chk_StatListCoding.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.LISTNUMBER";
- }
- else
- {
- rtnStr = rtnStr + "A.LISTNUMBER";
- }
- }
- if (this.Chk_StatVecihleNO.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.TRAINWAGON";
- }
- else
- {
- rtnStr = rtnStr + "A.TRAINWAGON";
- }
- }
-
-
- if (this.chk_StatStation.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",D.STATIONNAME";
- }
- else
- {
- rtnStr = rtnStr + "D.STATIONNAME";
- }
- }
- if (this.Chk_StatPactNO.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",B.PACTNO,";
- }
- else
- {
- rtnStr = rtnStr + "B.PACTNO,";
- }
- }
- if (this.chk_StatOrder.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.ORDERFORMNUMBER";
- }
- else
- {
- rtnStr = rtnStr + "A.ORDERFORMNUMBER";
- }
- }
- if (this.Chk_StatPlanNO.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.PLANNO";
- }
- else
- {
- rtnStr = rtnStr + "A.PLANNO";
- }
- }
- if (this.Chk_StatSteel.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.STEELTYPE";
- }
- else
- {
- rtnStr = rtnStr + "A.STEELTYPE";
- }
- }
- if (this.Chk_StatRollNO.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.ROLLNO";
- }
- else
- {
- rtnStr = rtnStr + "A.ROLLNO";
- }
- }
- if (this.Chk_StatClassTeam.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.CLASSTEAM) CLASSTEAM";
- }
- else
- {
- rtnStr = rtnStr + "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.CLASSTEAM) CLASSTEAM";
- }
- }
-
- if (this.Chk_StatRole.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.ROLE) ROLE";
- }
- else
- {
- rtnStr = rtnStr + "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.ROLE) ROLE";
- }
- }
- if (this.Chk_StatCondole.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.CONDOLENUMBER";
- }
- else
- {
- rtnStr = rtnStr + "A.CONDOLENUMBER";
- }
- }
- if (this.Chk_StatResult.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.DETERMINANTRESULT) DETERMINANTRESULT";
- }
- else
- {
- rtnStr = rtnStr + "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.DETERMINANTRESULT) DETERMINANTRESULT";
- }
- }
- if (this.Chk_StatSendDate.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD') PICKSTORAGETIME";
- }
- else
- {
- rtnStr = rtnStr + "TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD') PICKSTORAGETIME";
- }
- }
- if (this.Chk_StatBookInDate.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",TO_CHAR(A.CREATTIME,'YY-MM-DD HH24:MI') CREATTIME";
- }
- else
- {
- rtnStr = rtnStr + "TO_CHAR(A.CREATTIME,'YY-MM-DD HH24:MI') CREATTIME";
- }
- }
- if (this.Chk_StatBookInMan.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.CREATOR";
- }
- else
- {
- rtnStr = rtnStr + "A.CREATOR";
- }
- }
- if (this.Chk_StatSendMan.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.PICKSTORAGEMAN";
- }
- else
- {
- rtnStr = rtnStr + "A.PICKSTORAGEMAN";
- }
- }
-
-
- if (this.Chk_StatBilletID.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.SERIALNUMBER,1 QUANTITY,A.WEIGHT,A.ADDWEIGHT ";
- }
- else
- {
- rtnStr = rtnStr + "C.INCEPTCORPNAME,A.LISTNUMBER,A.STEELTYPE,TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD') PICKSTORAGETIME,A.SERIALNUMBER,1 QUANTITY,A.WEIGHT,A.ADDWEIGHT ";
- }
- rtnStr = rtnStr + ",TO_CHAR(A.PLY)||'×'||TO_CHAR(A.WIDTH)||'×'||TO_CHAR(A.LENGTH) SPET";
- rtnStr = rtnStr + _FromStr1;
- rtnList.Add(rtnStr);
- return rtnList;
- }
- else
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",COUNT(A.SERIALNUMBER) QUANTITY,SUM(A.WEIGHT) WEIGHT,SUM(A.ADDWEIGHT) ADDWEIGHT ";
- }
- else
- {
- rtnStr = rtnStr + "C.INCEPTCORPNAME,A.LISTNUMBER,A.STEELTYPE,TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD') PICKSTORAGETIME,COUNT(A.SERIALNUMBER) QUANTITY,SUM(A.WEIGHT) WEIGHT,SUM(A.ADDWEIGHT) ADDWEIGHT,SUM(A.ACREAGE) ACREAGE ";
- }
- }
- if (this.Chk_StatRole.Checked)
- {
- string tmpstr = "";
- tmpstr = rtnStr + ",TO_CHAR(A.PLY)||'×'||TO_CHAR(A.LENGTH) SPET "; //定长
- tmpstr = tmpstr + _FromStr1 + " AND A.ROLE='102201' ";
- rtnList.Add(tmpstr);
- tmpstr = rtnStr + ",TO_CHAR(A.PLY)||'×'||TO_CHAR(A.WIDTH) SPET "; //定宽
- tmpstr = tmpstr + _FromStr1 + " AND (A.ROLE='102202' OR A.ROLE='102206') ";
- rtnList.Add(tmpstr);
- tmpstr = rtnStr + ",TO_CHAR(A.PLY)||'×'||TO_CHAR(A.WIDTH)||'×'||TO_CHAR(A.LENGTH) SPET "; //双定
- tmpstr = tmpstr + _FromStr1 + " AND (A.ROLE='102203' OR A.ROLE IS NULL) ";
- rtnList.Add(tmpstr);
- tmpstr = rtnStr + ",TO_CHAR(A.PLY) SPET "; //非定
- tmpstr = tmpstr + _FromStr1 + " AND (A.ROLE='102204' OR A.ROLE='102205') ";
- rtnList.Add(tmpstr);
- return rtnList;
- }
- else
- {
- if (this.Chk_StatSpet.Checked)
- {
- rtnStr = rtnStr + ",TO_CHAR(A.PLY) SPET ";
- }
- rtnStr = rtnStr + _FromStr1;
- rtnList.Add(rtnStr);
- return rtnList;
- }
- }
- }
- public System.Collections.ArrayList SendGroupbyStr
- {
- get
- {
- System.Collections.ArrayList rtnList = new ArrayList();
- string rtnStr = _GroupbyStr;
-
-
- if (this.chk_Butress.Checked)
- {
- if (rtnStr.Length > 10)
- {
- rtnStr = rtnStr + ",A.BUTTRESS";
- }
- else
- {
- rtnStr = rtnStr + "A.BUTTRESS";
- }
- }
- if(this.chk_SendNo.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",A.PLANVEHICLEID";
- }
- else
- {
- rtnStr = rtnStr + "A.PLANVEHICLEID";
- }
- }
- if(this.chk_CutState.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",A.CLIPTYPEPROCESS";
- }
- else
- {
- rtnStr = rtnStr + "A.CLIPTYPEPROCESS";
- }
- }
- if(this.chk_ProcLine.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",B.PRODLINECODE";
- }
- else
- {
- rtnStr = rtnStr + "B.PRODLINECODE";
- }
- }
- if(this.chk_StatInceName.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",C.INCEPTCORPNAME";
- }
- else
- {
- rtnStr = rtnStr + "C.INCEPTCORPNAME";
- }
- }
- if(this.Chk_StatListCoding.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",A.LISTNUMBER";
- }
- else
- {
- rtnStr = rtnStr + "A.LISTNUMBER";
- }
- }
- if(this.Chk_StatVecihleNO.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",A.TRAINWAGON";
- }
- else
- {
- rtnStr = rtnStr + "A.TRAINWAGON";
- }
- }
-
-
- if(this.chk_StatStation.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",D.STATIONNAME";
- }
- else
- {
- rtnStr = rtnStr + "D.STATIONNAME";
- }
- }
- if(this.Chk_StatPactNO.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",B.PACTNO,B.SIGNCOLOR";
- }
- else
- {
- rtnStr = rtnStr + "B.PACTNO,B.SIGNCOLOR";
- }
- }
- if(this.chk_StatOrder.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",A.ORDERFORMNUMBER";
- }
- else
- {
- rtnStr = rtnStr + "A.ORDERFORMNUMBER";
- }
- }
-
- if(this.Chk_StatPlanNO.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",A.PLANNO";
- }
- else
- {
- rtnStr = rtnStr + "A.PLANNO";
- }
- }
- if(this.Chk_StatSteel.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",A.STEELTYPE";
- }
- else
- {
- rtnStr = rtnStr + "A.STEELTYPE";
- }
- }
- if(this.Chk_StatRollNO.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",A.ROLLNO";
- }
- else
- {
- rtnStr = rtnStr + "A.ROLLNO";
- }
- }
- if(this.Chk_StatClassTeam.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",A.CLASSTEAM";
- }
- else
- {
- rtnStr = rtnStr + "A.CLASSTEAM";
- }
- }
-
- if(this.Chk_StatRole.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",A.ROLE";
- }
- else
- {
- rtnStr = rtnStr + "A.ROLE";
- }
- }
- if(this.Chk_StatCondole.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",A.CONDOLENUMBER";
- }
- else
- {
- rtnStr = rtnStr + "A.CONDOLENUMBER";
- }
- }
-
- if(this.Chk_StatResult.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",A.DETERMINANTRESULT";
- }
- else
- {
- rtnStr = rtnStr + "A.DETERMINANTRESULT";
- }
- }
- if(this.Chk_StatSendDate.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD')";
- }
- else
- {
- rtnStr = rtnStr + "TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD')";
- }
- }
- if(this.Chk_StatBookInDate.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",TO_CHAR(A.CREATTIME,'YY-MM-DD HH24:MI')";
- }
- else
- {
- rtnStr = rtnStr + "TO_CHAR(A.CREATTIME,'YY-MM-DD HH24:MI')";
- }
- }
- if(this.Chk_StatBookInMan.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",A.CREATOR";
- }
- else
- {
- rtnStr = rtnStr + "A.CREATOR";
- }
- }
- if(this.Chk_StatSendMan.Checked)
- {
- if(rtnStr.Length>10)
- {
- rtnStr = rtnStr + ",A.PICKSTORAGEMAN";
- }
- else
- {
- rtnStr = rtnStr + "A.PICKSTORAGEMAN";
- }
- }
- if(this.Chk_StatBilletID.Checked)
- {
- rtnStr = "";
- rtnList.Add("");
- return rtnList;
- }
- else
- {
- if(rtnStr.Length<=10)
- {
- rtnStr = rtnStr + "C.INCEPTCORPNAME,A.LISTNUMBER,A.STEELTYPE,TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD')";
- }
- }
- if(this.Chk_StatRole.Checked)
- {
- string tmpstr = "";
- tmpstr = rtnStr + ",A.PLY,A.LENGTH";
- rtnList.Add(tmpstr);
- tmpstr = rtnStr + ",A.PLY,A.WIDTH";
- rtnList.Add(tmpstr);
- tmpstr = rtnStr + ",A.PLY,A.WIDTH,A.LENGTH";
- rtnList.Add(tmpstr);
- tmpstr = rtnStr + ",A.PLY";
- rtnList.Add(tmpstr);
- return rtnList;
- }
- else
- {
- if(this.Chk_StatSpet.Checked)
- {
- rtnStr = rtnStr + ",A.PLY";
- }
- rtnList.Add(rtnStr);
- return rtnList;
- }
- }
- }
- public System.Collections.ArrayList ClearSendSelectStr
- {
- get
- {
- System.Collections.ArrayList rtnList = new ArrayList();
- string rtnStr = _SelectStr;
-
-
- if(this.chk_SendNo.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.PLANVEHICLEID";
- }
- else
- {
- rtnStr = rtnStr + "A.PLANVEHICLEID";
- }
- }
-
- if (this.chk_Butress.Checked)
- {
- if (rtnStr.Length > 7)
- {
- rtnStr = rtnStr + ",A.BUTTRESS";
- }
- else
- {
- rtnStr = rtnStr + "A.BUTTRESS";
- }
- }
- if(this.chk_CutState.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_ = A.CLIPTYPEPROCESS) CLIPTYPEPROCESS";
- }
- else
- {
- rtnStr = rtnStr + "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_ = A.CLIPTYPEPROCESS) CLIPTYPEPROCESS";
- }
- }
- if(this.chk_ProcLine.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_ = B.PRODLINECODE) PRODLINECODE";
- }
- else
- {
- rtnStr = rtnStr + "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_ = B.PRODLINECODE) PRODLINECODE";
- }
- }
- if(this.chk_StatInceName.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",C.INCEPTCORPNAME";
- }
- else
- {
- rtnStr = rtnStr + "C.INCEPTCORPNAME";
- }
- }
- if(this.Chk_StatListCoding.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.LISTNUMBER";
- }
- else
- {
- rtnStr = rtnStr + "A.LISTNUMBER";
- }
- }
- if(this.Chk_StatVecihleNO.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.TRAINWAGON";
- }
- else
- {
- rtnStr = rtnStr + "A.TRAINWAGON";
- }
- }
-
-
- if(this.chk_StatStation.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",D.STATIONNAME";
- }
- else
- {
- rtnStr = rtnStr + "D.STATIONNAME";
- }
- }
- if(this.Chk_StatPactNO.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",B.PACTNO";
- }
- else
- {
- rtnStr = rtnStr + "B.PACTNO";
- }
- }
- if(this.chk_StatOrder.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.ORDERFORMNUMBER";
- }
- else
- {
- rtnStr = rtnStr + "A.ORDERFORMNUMBER";
- }
- }
- if(this.Chk_StatPlanNO.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.PLANNO";
- }
- else
- {
- rtnStr = rtnStr + "A.PLANNO";
- }
- }
- if(this.Chk_StatSteel.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.STEELTYPE";
- }
- else
- {
- rtnStr = rtnStr + "A.STEELTYPE";
- }
- }
- if(this.Chk_StatRollNO.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.ROLLNO";
- }
- else
- {
- rtnStr = rtnStr + "A.ROLLNO";
- }
- }
- if(this.Chk_StatClassTeam.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.CLASSTEAM) CLASSTEAM";
- }
- else
- {
- rtnStr = rtnStr + "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.CLASSTEAM) CLASSTEAM";
- }
- }
-
- if(this.Chk_StatRole.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr+ ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.ROLE) ROLE";
- }
- else
- {
- rtnStr = rtnStr+ "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.ROLE) ROLE";
- }
- }
- if(this.Chk_StatCondole.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.CONDOLENUMBER";
- }
- else
- {
- rtnStr = rtnStr + "A.CONDOLENUMBER";
- }
- }
- if(this.Chk_StatResult.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.DETERMINANTRESULT) DETERMINANTRESULT";
- }
- else
- {
- rtnStr = rtnStr + "(SELECT NAME_ FROM SCM_BASE_INFO WHERE ID_=A.DETERMINANTRESULT) DETERMINANTRESULT";
- }
- }
- if(this.Chk_StatSendDate.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD') PICKSTORAGETIME";
- }
- else
- {
- rtnStr = rtnStr + "TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD') PICKSTORAGETIME";
- }
- }
- if(this.Chk_StatBookInDate.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",TO_CHAR(A.CREATTIME,'YY-MM-DD HH24:MI') CREATTIME";
- }
- else
- {
- rtnStr = rtnStr + "TO_CHAR(A.CREATTIME,'YY-MM-DD HH24:MI') CREATTIME";
- }
- }
- if(this.Chk_StatBookInMan.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.CREATOR";
- }
- else
- {
- rtnStr = rtnStr + "A.CREATOR";
- }
- }
- if(this.Chk_StatSendMan.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.PICKSTORAGEMAN";
- }
- else
- {
- rtnStr = rtnStr + "A.PICKSTORAGEMAN";
- }
- }
- if(this.Chk_StatBilletID.Checked)
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",A.SERIALNUMBER,1 QUANTITY,A.WEIGHT,A.ADDWEIGHT,A.ACREAGE ";
- }
- else
- {
- rtnStr = rtnStr + "C.INCEPTCORPNAME,A.LISTNUMBER,A.STEELTYPE,TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD') PICKSTORAGETIME,A.SERIALNUMBER,1 QUANTITY,A.WEIGHT,A.ADDWEIGHT,A.ACREAGE ";
- }
- rtnStr = rtnStr + ",TO_CHAR(A.PLY)||'×'||TO_CHAR(A.WIDTH)||'×'||TO_CHAR(A.LENGTH) SPET";
-
- rtnList.Add(rtnStr);
- return rtnList;
- }
- else
- {
- if(rtnStr.Length>7)
- {
- rtnStr = rtnStr + ",COUNT(A.SERIALNUMBER) QUANTITY,SUM(A.WEIGHT) WEIGHT,SUM(A.ADDWEIGHT) ADDWEIGHT,SUM(A.ACREAGE) ACREAGE ";
- }
- else
- {
- rtnStr = rtnStr + "C.INCEPTCORPNAME,A.LISTNUMBER,A.STEELTYPE,TO_CHAR(A.PICKSTORAGETIME,'YY-MM-DD') PICKSTORAGETIME,COUNT(A.SERIALNUMBER) QUANTITY,SUM(A.WEIGHT) WEIGHT,SUM(A.ADDWEIGHT) ADDWEIGHT,SUM(A.ACREAGE) ACREAGE ";
- }
- }
- if(this.Chk_StatRole.Checked)
- {
- string tmpstr = "";
- tmpstr = rtnStr + ",TO_CHAR(A.PLY)||'×'||TO_CHAR(A.LENGTH) SPET "; //定长
-
- rtnList.Add(tmpstr);
- tmpstr = rtnStr + ",TO_CHAR(A.PLY)||'×'||TO_CHAR(A.WIDTH) SPET "; //定宽
-
- rtnList.Add(tmpstr);
- tmpstr = rtnStr + ",TO_CHAR(A.PLY)||'×'||TO_CHAR(A.WIDTH)||'×'||TO_CHAR(A.LENGTH) SPET "; //双定
-
- rtnList.Add(tmpstr);
- tmpstr = rtnStr + ",TO_CHAR(A.PLY) SPET "; //非定
-
- rtnList.Add(tmpstr);
- return rtnList;
- }
- else
- {
- if(this.Chk_StatSpet.Checked)
- {
- rtnStr = rtnStr + ",TO_CHAR(A.PLY) SPET ";
- }
-
- rtnList.Add(rtnStr);
- return rtnList;
- }
- }
- }
-
-
-
- #endregion
- }
- }
|