修改语言

This commit is contained in:
gongxh
2022-05-28 14:29:19 +08:00
parent 3be258e671
commit 847dffd9f1
12 changed files with 602 additions and 466 deletions

View File

@@ -25,12 +25,17 @@ namespace CleanMachineHMI.FrmUserControl
public frmOperatorReport()
{
InitializeComponent();
this.SetFormControlText();
this.kryptonDataGridView1.AutoGenerateColumns = false;
this.kdtp_CreateEndTime.Value = DateTime.Today;
this.kdtp_CreateStartTime.Value = DateTime.Today;
}
public void Init()
{
var list = new CleanMachine.BLL.ZBK.DayReportBLL().GetOPReport(this.kdtp_CreateStartTime.Value, this.kdtp_CreateEndTime.Value);
this.kryptonDataGridView1.DataSource = list;
//var sql = $@"select PARAMETER_ID 序号,PARAMETER_CODE 参数编码,PARAMETER_NAME 参数名称,PARAMETER_VALUE 参数值,CREATE_TIME 创建时间 from SYS_PARAMETER where USED_FLAG=1 and DEL_FLAG=0 ";
//if (kdtp_CreateStartTime.Checked)
@@ -70,8 +75,7 @@ namespace CleanMachineHMI.FrmUserControl
{
try
{
var list = new CleanMachine.BLL.ZBK.DayReportBLL().GetOPReport("");
this.kryptonDataGridView1.DataSource = list;
this.Init();
}
@@ -104,7 +108,7 @@ namespace CleanMachineHMI.FrmUserControl
private void kryptonButton1_Click(object sender, EventArgs e)
{
var list = new CleanMachine.BLL.ZBK.DayReportBLL().GetOPReport("");
var list = new CleanMachine.BLL.ZBK.DayReportBLL().GetOPReport(this.kdtp_CreateStartTime.Value, this.kdtp_CreateEndTime.Value);
FastReport.Report report = new FastReport.Report();
report.Load("ReportMd\\operatorReport.frx");
report.RegisterData(list, "datas");