1
This commit is contained in:
@@ -27,8 +27,8 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
InitializeComponent();
|
||||
this.SetFormControlText();
|
||||
this.kryptonDataGridView1.AutoGenerateColumns = false;
|
||||
this.kdtp_CreateEndTime.Value = DateTime.Today;
|
||||
this.kdtp_CreateStartTime.Value = DateTime.Today;
|
||||
this.kdtp_CreateEndTime.Value = DateTime.Today.EndOfTheWeek();
|
||||
this.kdtp_CreateStartTime.Value = DateTime.Today.StartOfTheWeek();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -224,6 +224,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tableLayoutPanel2.Size = new System.Drawing.Size(292, 41);
|
||||
this.tableLayoutPanel2.TabIndex = 6;
|
||||
this.tableLayoutPanel2.Paint += new System.Windows.Forms.PaintEventHandler(this.tableLayoutPanel2_Paint);
|
||||
//
|
||||
// kryptonButton1
|
||||
//
|
||||
|
||||
@@ -27,8 +27,9 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
InitializeComponent();
|
||||
this.SetFormControlText();
|
||||
this.kryptonDataGridView1.AutoGenerateColumns = false;
|
||||
this.kdtp_CreateEndTime.Value = DateTime.Today;
|
||||
this.kdtp_CreateStartTime.Value = DateTime.Today;
|
||||
|
||||
this.kdtp_CreateEndTime.Value =DateTime.Today.EndOfTheWeek() ;
|
||||
this.kdtp_CreateStartTime.Value = DateTime.Today.StartOfTheWeek();
|
||||
}
|
||||
|
||||
|
||||
@@ -116,7 +117,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
FastReport.Report report = new FastReport.Report();
|
||||
report.Load("ReportMd\\operatorReport.frx");
|
||||
report.RegisterData(list, "datas");
|
||||
//report.Design();
|
||||
// report.Design();
|
||||
report.PrintSettings.ShowDialog = false;
|
||||
report.Prepare();
|
||||
report.Print();
|
||||
@@ -127,6 +128,11 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void tableLayoutPanel2_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="10/12/2020 11:31:31" ReportInfo.Modified="01/14/2021 15:15:33" ReportInfo.CreatorVersion="2014.4.8.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="10/12/2020 11:31:31" ReportInfo.Modified="05/30/2022 10:34:20" ReportInfo.CreatorVersion="2022.2.0.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
@@ -246,33 +246,33 @@ namespace FastReport
|
||||
<Parameter Name="Parm_PalletNumber" DataType="System.String"/>
|
||||
<Parameter Name="Parm_ScrapNumber" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" Landscape="true" PaperWidth="279" PaperHeight="210" LeftMargin="5" TopMargin="5" RightMargin="5" BottomMargin="5" FirstPageSource="15" OtherPagesSource="15" FinishPageEvent="、">
|
||||
<ReportPage Name="Page1" Landscape="true" PaperWidth="279" PaperHeight="210" LeftMargin="5" TopMargin="5" RightMargin="5" BottomMargin="5" FirstPageSource="15" OtherPagesSource="15" Watermark.Font="宋体, 60pt" FinishPageEvent="、">
|
||||
<ReportTitleBand Name="ReportTitle1" Width="1016.82" Height="208.9">
|
||||
<TextObject Name="Text1" Left="283.5" Width="396.9" Height="37.8" Text="CP2 Control List CTPS" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 22pt, style=Bold"/>
|
||||
<TextObject Name="Text2" Left="87.05" Top="67.15" Width="151.2" Height="18.9" Text="Customer Name:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text3" Left="559.55" Top="67.15" Width="141.75" Height="18.9" Text="Machine #:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text2" Left="87.05" Top="67.15" Width="151.2" Height="18.9" IsIntersectedWithOtherObject="true" Text="Customer Name:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text3" Left="559.55" Top="67.15" Width="141.75" Height="18.9" IsIntersectedWithOtherObject="true" Text="Machine #:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text4" Left="245.7" Top="66.15" Width="160.65" Height="18.9" Text="[Parm_CusName]" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text5" Left="708.75" Top="66.15" Width="198.45" Height="18.9" Text="[Parm_MachineCode]" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 12pt, style=Bold"/>
|
||||
<LineObject Name="Line1" Left="236.25" Top="85.05" Width="170.1"/>
|
||||
<LineObject Name="Line2" Left="699.3" Top="85.05" Width="207.9"/>
|
||||
<TextObject Name="Text6" Left="87.05" Top="95.5" Width="151.2" Height="18.9" Text="IR Number:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text7" Left="559.55" Top="95.5" Width="141.75" Height="18.9" Text="Receiving Date:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text8" Left="708.75" Top="94.5" Width="198.45" Height="18.9" Text="[Parm_RecDate]" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 12pt, style=Bold"/>
|
||||
<LineObject Name="Line1" Left="236.25" Top="85.05" Width="170.1" IsIntersectedWithOtherObject="true"/>
|
||||
<LineObject Name="Line2" Left="699.3" Top="85.05" Width="245.7" IsIntersectedWithOtherObject="true"/>
|
||||
<TextObject Name="Text6" Left="87.05" Top="95.5" Width="151.2" Height="18.9" IsIntersectedWithOtherObject="true" Text="IR Number:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text7" Left="559.55" Top="95.5" Width="141.75" Height="18.9" IsIntersectedWithOtherObject="true" Text="Receiving Date:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text8" Left="708.75" Top="94.5" Width="245.7" Height="18.9" Text="[Parm_RecDate]" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 12pt, style=Bold"/>
|
||||
<TextObject Name="Text9" Left="245.7" Top="94.5" Width="160.65" Height="18.9" Text="[Parm_IRNumber]" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<LineObject Name="Line3" Left="236.25" Top="113.4" Width="170.1"/>
|
||||
<LineObject Name="Line4" Left="699.3" Top="113.4" Width="207.9"/>
|
||||
<LineObject Name="Line3" Left="236.25" Top="113.4" Width="170.1" IsIntersectedWithOtherObject="true"/>
|
||||
<LineObject Name="Line4" Left="699.3" Top="113.4" Width="245.7" IsIntersectedWithOtherObject="true"/>
|
||||
<TextObject Name="Text11" Left="219.35" Top="190" Width="189" Height="18.9" Text="Chemical Contamination:" VertAlign="Center" Font="微软雅黑, 10pt"/>
|
||||
<TextObject Name="Text10" Left="2" Top="190" Width="189" Height="18.9" Text="Physical Contamination:" VertAlign="Center" Font="微软雅黑, 10pt"/>
|
||||
<TextObject Name="Text12" Left="436.7" Top="190" Width="226.8" Height="18.9" Text="Microbiological Contamination:" VertAlign="Center" Font="微软雅黑, 10pt"/>
|
||||
<TextObject Name="Text21" Left="87.05" Top="123.85" Width="151.2" Height="18.9" Text="Cleaned Quantity:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text21" Left="87.05" Top="123.85" Width="151.2" Height="18.9" IsIntersectedWithOtherObject="true" Text="Cleaned Quantity:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text23" Left="708.75" Top="122.85" Width="198.45" Height="18.9" Text="[Parm_PalletNumber]" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 12pt, style=Bold"/>
|
||||
<TextObject Name="Text24" Left="245.7" Top="122.85" Width="160.65" Height="18.9" Text="[Parm_CleanedNum]" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<LineObject Name="Line9" Left="236.25" Top="141.75" Width="170.1"/>
|
||||
<LineObject Name="Line10" Left="699.3" Top="141.75" Width="207.9"/>
|
||||
<TextObject Name="Text25" Left="559.55" Top="123.85" Width="141.75" Height="18.9" Text="Pallet Number:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text28" Left="87.05" Top="152.2" Width="151.2" Height="18.9" Text="Scrap Number:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<LineObject Name="Line9" Left="236.25" Top="141.75" Width="170.1" IsIntersectedWithOtherObject="true"/>
|
||||
<LineObject Name="Line10" Left="699.3" Top="141.75" Width="245.7" IsIntersectedWithOtherObject="true"/>
|
||||
<TextObject Name="Text25" Left="559.55" Top="123.85" Width="141.75" Height="18.9" IsIntersectedWithOtherObject="true" Text="Pallet Number:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text28" Left="87.05" Top="152.2" Width="151.2" Height="18.9" IsIntersectedWithOtherObject="true" Text="Scrap Number:" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text29" Left="245.7" Top="151.2" Width="160.65" Height="18.9" Text="[Parm_ScrapNumber]" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<LineObject Name="Line15" Left="236.25" Top="170.1" Width="170.1"/>
|
||||
<LineObject Name="Line15" Left="236.25" Top="170.1" Width="170.1" IsIntersectedWithOtherObject="true"/>
|
||||
</ReportTitleBand>
|
||||
<DataBand Name="Data1" Top="212.9" Width="1016.82" Height="67.15">
|
||||
<TableObject Name="Table1" Width="207.87" Height="37.8" Border.Lines="All" ManualBuildEvent="Table1_ManualBuild">
|
||||
@@ -354,11 +354,11 @@ namespace FastReport
|
||||
</DataBand>
|
||||
</DataBand>
|
||||
<ColumnFooterBand Name="ColumnFooter1" Top="373.1" Width="1016.82" Height="37.8">
|
||||
<LineObject Name="Line5" Left="160.65" Top="28.35" Width="207.9"/>
|
||||
<LineObject Name="Line6" Left="481.95" Top="28.35" Width="236.25"/>
|
||||
<TextObject Name="Text13" Left="11.45" Top="10.45" Width="151.2" Height="18.9" Text="Record verified by:" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text14" Left="427.25" Top="10.45" Width="56.7" Height="18.9" Text="Date:" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text15" Left="491.4" Top="9.45" Width="217.35" Height="18.9" Text="[Date]" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 12pt, style=Bold"/>
|
||||
<LineObject Name="Line5" Left="160.65" Top="28.35" Width="207.9" IsIntersectedWithOtherObject="true"/>
|
||||
<LineObject Name="Line6" Left="481.95" Top="28.35" Width="236.25" IsIntersectedWithOtherObject="true"/>
|
||||
<TextObject Name="Text13" Left="11.45" Top="10.45" Width="151.2" Height="18.9" IsIntersectedWithOtherObject="true" Text="Record verified by:" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text14" Left="427.25" Top="10.45" Width="56.7" Height="18.9" IsIntersectedWithOtherObject="true" Text="Date:" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
|
||||
<TextObject Name="Text15" Left="491.4" Top="9.45" Width="226.8" Height="18.9" Text="[Date]" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 12pt, style=Bold"/>
|
||||
<TextObject Name="Text17" Left="170.1" Top="9.45" Width="217.35" Height="18.9" Text="[Parm_RecordName]" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 12pt, style=Bold"/>
|
||||
</ColumnFooterBand>
|
||||
</ReportPage>
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="05/17/2022 13:55:09" ReportInfo.Modified="05/17/2022 14:48:54" ReportInfo.CreatorVersion="2014.4.8.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="05/17/2022 13:55:09" ReportInfo.Modified="05/30/2022 10:37:31" ReportInfo.CreatorVersion="2022.2.0.0">
|
||||
<Dictionary>
|
||||
<BusinessObjectDataSource Name="datas" ReferenceName="datas" DataType="System.Collections.Generic.List`1[[CleanMachine.Model.ZBK.OperatorReport, CleanMachine.Model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]" Enabled="true">
|
||||
<BusinessObjectDataSource Name="datas" ReferenceName="datas" DataType="null" Enabled="true">
|
||||
<Column Name="Date" DataType="System.DateTime"/>
|
||||
|
||||
<Column Name="Cleaned" DataType="System.Int32"/>
|
||||
<Column Name="Scrap" DataType="System.Int32"/>
|
||||
<Column Name="DayOfWeek" DataType="System.DayOfWeek"/>
|
||||
@@ -12,40 +11,36 @@
|
||||
<Column Name="MachineHours" DataType="System.Single"/>
|
||||
</BusinessObjectDataSource>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1">
|
||||
<ReportPage Name="Page1" Watermark.Font="宋体, 60pt">
|
||||
<ReportTitleBand Name="ReportTitle1" Width="718.2" Height="37.8"/>
|
||||
<PageHeaderBand Name="PageHeader1" Top="39.8" Width="718.2" Height="18.9">
|
||||
<PageHeaderBand Name="PageHeader1" Top="41.8" Width="718.2" Height="18.9">
|
||||
<TextObject Name="Text2" Left="37.8" Width="94.5" Height="18.9" Text="Date" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text4" Left="132.3" Width="94.5" Height="18.9" Text="DayOfWeek" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text6" Left="226.8" Width="94.5" Height="18.9" Text="Cleaned" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text8" Left="321.3" Width="47.25" Height="18.9" Text="Scrap" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text10" Left="368.55" Width="66.15" Height="18.9" Text="StartTime" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text12" Left="434.7" Width="56.7" Height="18.9" Text="EndTime" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text14" Left="491.4" Width="94.5" Height="18.9" Text="MachineHours" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
|
||||
<TextObject Name="Text10" Left="387.45" Width="94.5" Height="18.9" Text="StartTime" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text12" Left="481.95" Width="103.95" Height="18.9" Text="EndTime" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text14" Left="585.9" Width="122.85" Height="18.9" Text="MachineRunHours" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text18" Width="37.8" Height="18.9" Text="NO." VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<LineObject Name="Line1" Top="18.9" Width="680.4" Diagonal="true"/>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="60.7" Width="718.2" Height="18.9" CanGrow="true" DataSource="datas" KeepTogether="true">
|
||||
<DataBand Name="Data1" Top="64.7" Width="718.2" Height="18.9" CanGrow="true" DataSource="datas" KeepTogether="true">
|
||||
<TextObject Name="Text1" Left="37.8" Width="94.5" Height="18.9" Text="[datas.Date]" Format="Date" Format.Format="d" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text3" Left="132.3" Width="94.5" Height="18.9" Text="[datas.DayOfWeek]" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text5" Left="226.8" Width="94.5" Height="18.9" Text="[datas.Cleaned]" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text7" Left="321.3" Width="47.25" Height="18.9" Text="[datas.Scrap]" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text9" Left="368.55" Width="66.15" Height="18.9" Text="[datas.StartTime]" Format="Time" Format.Format="t" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text11" Left="434.7" Width="56.7" Height="18.9" Text="[datas.EndTime]" Format="Time" Format.Format="t" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text13" Left="491.4" Width="94.5" Height="18.9" Text="[datas.MachineHours]" Format="Number" Format.UseLocale="true" HorzAlign="Right" VertAlign="Center" WordWrap="false" Font="宋体, 9pt" Trimming="EllipsisCharacter"/>
|
||||
|
||||
<TextObject Name="Text9" Left="387.45" Width="66.15" Height="18.9" Text="[datas.StartTime]" Format="Time" Format.Format="t" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text11" Left="481.95" Width="103.95" Height="18.9" Text="[datas.EndTime]" Format="Time" Format.Format="t" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text13" Left="585.9" Width="122.85" Height="18.9" Text="[datas.MachineHours]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" WordWrap="false" Font="宋体, 9pt" Trimming="EllipsisCharacter"/>
|
||||
<TextObject Name="Text17" Width="37.8" Height="18.9" Text="[Row#]" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<Sort>
|
||||
<Sort Expression="[datas.Date]"/>
|
||||
<Sort Expression="[datas.Operator]"/>
|
||||
</Sort>
|
||||
</DataBand>
|
||||
<PageFooterBand Name="PageFooter1" Top="81.6" Width="718.2" Height="94.5">
|
||||
<PageFooterBand Name="PageFooter1" Top="87.6" Width="718.2" Height="94.5">
|
||||
<TextObject Name="Text19" Left="585.9" Width="94.5" Height="18.9" Text="[PageN]/[TotalPages#]" Font="宋体, 9pt"/>
|
||||
<LineObject Name="Line2" Width="680.4" Diagonal="true"/>
|
||||
<TextObject Name="Text20" Left="226.8" Width="94.5" Height="18.9" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text21" Left="28.35" Top="18.9" Width="132.3" Height="18.9" Text="sum([datas.scrap])" Font="宋体, 9pt"/>
|
||||
</PageFooterBand>
|
||||
</ReportPage>
|
||||
</Report>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="05/17/2022 13:55:09" ReportInfo.Modified="05/17/2022 14:48:54" ReportInfo.CreatorVersion="2014.4.8.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="05/17/2022 13:55:09" ReportInfo.Modified="05/30/2022 10:37:43" ReportInfo.CreatorVersion="2022.2.0.0">
|
||||
<Dictionary>
|
||||
<BusinessObjectDataSource Name="datas" ReferenceName="datas" DataType="System.Collections.Generic.List`1[[CleanMachine.Model.ZBK.OperatorReport, CleanMachine.Model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]" Enabled="true">
|
||||
<BusinessObjectDataSource Name="datas" ReferenceName="datas" DataType="null" Enabled="true">
|
||||
<Column Name="Date" DataType="System.DateTime"/>
|
||||
<Column Name="Operator" DataType="System.String"/>
|
||||
<Column Name="Cleaned" DataType="System.Int32"/>
|
||||
@@ -12,40 +12,38 @@
|
||||
<Column Name="MachineHours" DataType="System.Single"/>
|
||||
</BusinessObjectDataSource>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1">
|
||||
<ReportPage Name="Page1" Watermark.Font="宋体, 60pt">
|
||||
<ReportTitleBand Name="ReportTitle1" Width="718.2" Height="37.8"/>
|
||||
<PageHeaderBand Name="PageHeader1" Top="39.8" Width="718.2" Height="18.9">
|
||||
<TextObject Name="Text2" Left="37.8" Width="94.5" Height="18.9" Text="Date" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text4" Left="132.3" Width="94.5" Height="18.9" Text="DayOfWeek" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text6" Left="226.8" Width="94.5" Height="18.9" Text="Cleaned" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text8" Left="321.3" Width="47.25" Height="18.9" Text="Scrap" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text10" Left="368.55" Width="66.15" Height="18.9" Text="StartTime" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text12" Left="434.7" Width="56.7" Height="18.9" Text="EndTime" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text14" Left="491.4" Width="94.5" Height="18.9" Text="MachineHours" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text16" Left="585.9" Width="94.5" Height="18.9" Text="Operator" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<PageHeaderBand Name="PageHeader1" Top="41.8" Width="718.2" Height="18.9">
|
||||
<TextObject Name="Text2" Left="37.8" Width="75.6" Height="18.9" Text="Date" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text4" Left="113.4" Width="94.5" Height="18.9" Text="DayOfWeek" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text6" Left="207.9" Width="66.15" Height="18.9" Text="Cleaned" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text8" Left="274.05" Width="47.25" Height="18.9" Text="Scrap" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text10" Left="321.3" Width="85.05" Height="18.9" Text="StartTime" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text12" Left="406.35" Width="103.95" Height="18.9" Text="EndTime" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text14" Left="510.3" Width="113.4" Height="18.9" Text="MachineRunHours" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text16" Left="623.7" Width="94.5" Height="18.9" Text="Operator" VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<TextObject Name="Text18" Width="37.8" Height="18.9" Text="NO." VertAlign="Center" Font="宋体, 9pt, style=Bold"/>
|
||||
<LineObject Name="Line1" Top="18.9" Width="680.4" Diagonal="true"/>
|
||||
<LineObject Name="Line1" Left="37.8" Top="18.9" Width="642.6" Diagonal="true"/>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="60.7" Width="718.2" Height="18.9" CanGrow="true" DataSource="datas" KeepTogether="true">
|
||||
<TextObject Name="Text1" Left="37.8" Width="94.5" Height="18.9" Text="[datas.Date]" Format="Date" Format.Format="d" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text3" Left="132.3" Width="94.5" Height="18.9" Text="[datas.DayOfWeek]" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text5" Left="226.8" Width="94.5" Height="18.9" Text="[datas.Cleaned]" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text7" Left="321.3" Width="47.25" Height="18.9" Text="[datas.Scrap]" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text9" Left="368.55" Width="66.15" Height="18.9" Text="[datas.StartTime]" Format="Time" Format.Format="t" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text11" Left="434.7" Width="56.7" Height="18.9" Text="[datas.EndTime]" Format="Time" Format.Format="t" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text13" Left="491.4" Width="94.5" Height="18.9" Text="[datas.MachineHours]" Format="Number" Format.UseLocale="true" HorzAlign="Right" VertAlign="Center" WordWrap="false" Font="宋体, 9pt" Trimming="EllipsisCharacter"/>
|
||||
<TextObject Name="Text15" Left="585.9" Width="94.5" Height="18.9" Text="[datas.Operator]" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<DataBand Name="Data1" Top="64.7" Width="718.2" Height="18.9" CanGrow="true" DataSource="datas" KeepTogether="true">
|
||||
<TextObject Name="Text1" Left="37.8" Width="75.6" Height="18.9" Text="[datas.Date]" Format="Date" Format.Format="d" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text3" Left="113.4" Width="94.5" Height="18.9" Text="[datas.DayOfWeek]" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text5" Left="207.9" Width="66.15" Height="18.9" Text="[datas.Cleaned]" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text7" Left="274.05" Width="47.25" Height="18.9" Text="[datas.Scrap]" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text9" Left="321.3" Width="85.05" Height="18.9" Text="[datas.StartTime]" Format="Time" Format.Format="t" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text11" Left="406.35" Width="103.95" Height="18.9" Text="[datas.EndTime]" Format="Time" Format.Format="t" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text13" Left="510.3" Width="113.4" Height="18.9" Text="[datas.MachineHours]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" WordWrap="false" Font="宋体, 9pt" Trimming="EllipsisCharacter"/>
|
||||
<TextObject Name="Text15" Left="623.7" Width="94.5" Height="18.9" Text="[datas.Operator]" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text17" Width="37.8" Height="18.9" Text="[Row#]" VertAlign="Center" Font="宋体, 9pt"/>
|
||||
<Sort>
|
||||
<Sort Expression="[datas.Date]"/>
|
||||
<Sort Expression="[datas.Operator]"/>
|
||||
</Sort>
|
||||
</DataBand>
|
||||
<PageFooterBand Name="PageFooter1" Top="81.6" Width="718.2" Height="94.5">
|
||||
<TextObject Name="Text19" Left="585.9" Width="94.5" Height="18.9" Text="[PageN]/[TotalPages#]" Font="宋体, 9pt"/>
|
||||
<PageFooterBand Name="PageFooter1" Top="87.6" Width="718.2" Height="94.5">
|
||||
<TextObject Name="Text19" Left="623.7" Width="94.5" Height="18.9" Text="[PageN]/[TotalPages#]" Font="宋体, 9pt"/>
|
||||
<LineObject Name="Line2" Width="680.4" Diagonal="true"/>
|
||||
<TextObject Name="Text20" Left="226.8" Width="94.5" Height="18.9" Font="宋体, 9pt"/>
|
||||
<TextObject Name="Text21" Left="28.35" Top="18.9" Width="132.3" Height="18.9" Text="sum([datas.scrap])" Font="宋体, 9pt"/>
|
||||
</PageFooterBand>
|
||||
</ReportPage>
|
||||
</Report>
|
||||
|
||||
30
CleanMachineHMI/Utils/DateEx.cs
Normal file
30
CleanMachineHMI/Utils/DateEx.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace System
|
||||
{
|
||||
public static class DateEx
|
||||
{
|
||||
public static DateTime StartOfTheWeek(this DateTime date)
|
||||
{
|
||||
|
||||
return date.Date.AddDays(-(int)date.DayOfWeek);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static DateTime EndOfTheWeek(this DateTime date)
|
||||
{
|
||||
|
||||
return date.Date.AddDays(7 - (int)date.DayOfWeek);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
#if DEBUG
|
||||
|
||||
//#define USE_LOCAL_TCP_DEBUG
|
||||
#define USE_LOCAL_TCP_DEBUG
|
||||
#endif
|
||||
//启用心跳检查
|
||||
|
||||
//#if RELEASE
|
||||
#if !USE_LOCAL_TCP_DEBUG
|
||||
#define UseHeartbeat
|
||||
//#endif
|
||||
#endif
|
||||
using CleanMachine.Model;
|
||||
using CleanMachine.Model.BAS;
|
||||
using CleanMachine.Model.CM;
|
||||
@@ -1195,7 +1195,7 @@ namespace CleanMachineHMI
|
||||
try
|
||||
{
|
||||
#endif
|
||||
// if (!this.IsConn) return false;
|
||||
// if (!this.IsConn) return false;
|
||||
switch (itemType)
|
||||
{
|
||||
case PlcItemTypeDesc.M:
|
||||
|
||||
Reference in New Issue
Block a user