This commit is contained in:
gongxh
2022-05-30 10:39:14 +08:00
parent 2a334e7d75
commit 507bde6bed
8 changed files with 104 additions and 74 deletions

View File

@@ -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();
}

View File

@@ -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
//

View File

@@ -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)
{
}
}
}