11
This commit is contained in:
@@ -49,6 +49,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
|
||||
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
|
||||
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
|
||||
this.kryptonButton1 = new Krypton.Toolkit.KryptonButton();
|
||||
((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
|
||||
this.kryptonPanel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).BeginInit();
|
||||
@@ -218,6 +219,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33444F));
|
||||
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33112F));
|
||||
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||
this.tableLayoutPanel2.Controls.Add(this.kryptonButton1, 0, 0);
|
||||
this.tableLayoutPanel2.Controls.Add(this.kbt_Reset, 2, 0);
|
||||
this.tableLayoutPanel2.Controls.Add(this.kbt_Query, 1, 0);
|
||||
this.tableLayoutPanel2.Location = new System.Drawing.Point(727, 48);
|
||||
@@ -314,6 +316,19 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
this.kdtp_CreateEndTime.Size = new System.Drawing.Size(246, 21);
|
||||
this.kdtp_CreateEndTime.TabIndex = 7;
|
||||
//
|
||||
// kryptonButton1
|
||||
//
|
||||
this.kryptonButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.kryptonButton1.Location = new System.Drawing.Point(3, 3);
|
||||
this.kryptonButton1.Name = "kryptonButton1";
|
||||
this.kryptonButton1.Size = new System.Drawing.Size(91, 35);
|
||||
this.kryptonButton1.TabIndex = 2;
|
||||
this.kryptonButton1.Tag = "show";
|
||||
this.kryptonButton1.Values.Text = "打印";
|
||||
this.kryptonButton1.Click += new System.EventHandler(this.kryptonButton1_Click);
|
||||
//
|
||||
// frmDayReport
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
@@ -363,5 +378,6 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColStartTime;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColEndTime;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOperators;
|
||||
private Krypton.Toolkit.KryptonButton kryptonButton1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,8 +107,25 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
kdtp_CreateEndTime.Checked = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private void kryptonButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
var print = new frmPring();
|
||||
try
|
||||
{
|
||||
print.Show();
|
||||
var list = new CleanMachine.BLL.ZBK.DayReportBLL().GetReport(this.kdtp_CreateEndTime.Value, this.kdtp_CreateStartTime.Value);
|
||||
FastReport.Report report = new FastReport.Report();
|
||||
report.Load("ReportMd\\dayReport.frx");
|
||||
report.RegisterData(list, "datas");
|
||||
//report.Design();
|
||||
report.PrintSettings.ShowDialog = false;
|
||||
report.Prepare();
|
||||
report.Print();
|
||||
}
|
||||
finally
|
||||
{
|
||||
print.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2624,7 +2624,20 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
LeadDbHelperSQLite.Execute(sqlTmp1);
|
||||
}
|
||||
}
|
||||
PrintWorkedIrMsg(ktb_IR.Text);
|
||||
|
||||
var print = new frmPring();
|
||||
try
|
||||
{
|
||||
print.Show();
|
||||
PrintWorkedIrMsg(ktb_IR.Text);
|
||||
}
|
||||
finally
|
||||
{
|
||||
print.Close();
|
||||
}
|
||||
|
||||
|
||||
|
||||
//保存打印数据
|
||||
string sqlInsertZbkWorkingPallet = $@"INSERT INTO ZBK_WORKING_PALLET SELECT * FROM CM_WORKING_PALLET WHERE WORKING_PALLET_CODE in (select WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL where IR_CODE = '{ktb_IR.Text}' and WORKING_DTL_STATUS = 1)";
|
||||
string sqlInsertZbkWorkingPalletDtl = $@"INSERT INTO ZBK_WORKING_PALLET_DTL SELECT * FROM CM_WORKING_PALLET_DTL WHERE WORKING_DTL_STATUS = 1 and IR_CODE = '{ktb_IR.Text}';";
|
||||
|
||||
@@ -108,13 +108,25 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
|
||||
private void kryptonButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
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");
|
||||
//report.Design();
|
||||
report.Prepare();
|
||||
report.Print();
|
||||
var print = new frmPring();
|
||||
try
|
||||
{
|
||||
print.Show();
|
||||
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");
|
||||
//report.Design();
|
||||
report.PrintSettings.ShowDialog = false;
|
||||
report.Prepare();
|
||||
report.Print();
|
||||
}
|
||||
finally
|
||||
{
|
||||
print.Close();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user