private void 打印单据ToolStripMenuItem_Click(object sender, EventArgs e) { IBillReportInfo report = new 报表_盘点单(dataGridView1.CurrentRow.Cells["单据号"].Value.ToString(), labelTitle.Text); PrintReportBill print = new PrintReportBill(21, 29.7, report); print.DirectPrintReport(); }
private void btnOutExcel_Click(object sender, EventArgs e) { IBillReportInfo report = new 报表_CVT出厂检验记录(txtBill_ID.Text, ""); PrintReportBill print = new PrintReportBill(19, 29.7, report); (report as 报表_CVT出厂检验记录).ShowDialog(); }
private void btnOutExcel_Click(object sender, EventArgs e) { IBillReportInfo report = new 报表_质量信息反馈单(m_lnqMess.DJH, ""); PrintReportBill print = new PrintReportBill(21, 29.7, report); (report as 报表_质量信息反馈单).ShowDialog(); }
private void btnPrint_Click(object sender, EventArgs e) { if (!CheckSelectedRow()) { return; } if (dgv_Show.CurrentRow.Cells["DJZT_FLAG"].Value.ToString() != "已确认") { MessageDialog.ShowPromptMessage("请选择已确认的记录后再进行此操作"); return; } if (dgv_Show.CurrentRow.Cells["YWFS"].Value.ToString() == "三包外返修出库") { 报表_营销业务三包外总单 reportType = new 报表_营销业务三包外总单(dgv_Show.CurrentRow.Cells["DJH"].Value.ToString(), labelTitle.Text); PrintReportBill print = new PrintReportBill(21.8, 9.31, reportType); print.DirectPrintReport(); } else { IBillReportInfo report = new 报表_营销业务单据(dgv_Show.CurrentRow.Cells["DJH"].Value.ToString(), labelTitle.Text); PrintReportBill print = new PrintReportBill(21.8, 9.31, report); print.DirectPrintReport(); } }
private void 打印toolStripButton1_Click(object sender, EventArgs e) { IBillReportInfo report = new 报表_人员档案(txtWorkID.Text.Trim()); PrintReportBill print = new PrintReportBill(21.8, 9.31, report); (report as 报表_人员档案).ShowDialog(); }
private void 打印toolStripButton1_Click(object sender, EventArgs e) { 报表_人员档案变更历史 report = new 报表_人员档案变更历史(m_personnelChange.编号); PrintReportBill print = new PrintReportBill(); (report as 报表_人员档案变更历史).ShowDialog(); }
private void 打印单据ToolStripMenuItem_Click(object sender, EventArgs e) { IBillReportInfo report = new 报表_样品耗用单(txtDJH.Text, "样品耗用单"); PrintReportBill print = new PrintReportBill(21.8, 9.31, report); print.DirectPrintReport(); }
private void 打印单据ToolStripMenuItem_Click(object sender, EventArgs e) { if (dataGridView1.CurrentRow.Cells["单据状态"].Value.ToString() != "单据已完成") { MessageDialog.ShowPromptMessage("请选择已确认的记录后再进行此操作"); return; } IBillReportInfo report = new 报表_挑返单(dataGridView1.CurrentRow.Cells["单据号"].Value.ToString(), labelTitle.Text); PrintReportBill print = new PrintReportBill(21, 29.7, report); print.DirectPrintReport(); }
/// <summary> /// 打印单据 /// </summary> /// <param name="billNo">单据编号</param> public void PrintBill(string billNo, string billStatus) { if (billStatus != ScrapBillStatus.已完成.ToString()) { MessageDialog.ShowPromptMessage("请选择已完成的记录后再进行此操作"); return; } 报表_报废单 report = new 报表_报废单(txtBill_ID.Text, labelTitle.Text); PrintReportBill print = new PrintReportBill(22.0, 9.31, report); print.DirectPrintReport(); }
private void btnPrint_Click(object sender, EventArgs e) { if (!CheckSelectedRow()) { return; } if (dgv_Show.CurrentRow.Cells["DJZT"].Value.ToString() != "已确认") { MessageDialog.ShowPromptMessage("请选择已确认的记录后再进行此操作"); return; } IBillReportInfo report = new 报表_调拨单(dgv_Show.CurrentRow.Cells["DJH"].Value.ToString(), labelTitle.Text); PrintReportBill print = new PrintReportBill(21.8, 9.31, report); print.DirectPrintReport(); }
private void 表单打印ToolStripMenuItem_Click(object sender, EventArgs e) { if (!CheckSelectedRow()) { return; } if (lblBillStatus.Text != MaterialRejectBillBillStatus.已完成.ToString()) { MessageDialog.ShowPromptMessage("请选择已完成的记录后再进行此操作"); return; } 报表_采购退货单 report = new 报表_采购退货单(txtBill_ID.Text, labelTitle.Text); PrintReportBill print = new PrintReportBill(21.8, 9.31, report); print.DirectPrintReport(); }
private void btnPrint_Click(object sender, EventArgs e) { if (!CheckSelectedRow()) { return; } if (dataGridView1.CurrentRow.Cells["单据状态"].Value.ToString() != "已完成") { MessageDialog.ShowPromptMessage("请选择已确认的记录后再进行此操作"); return; } 报表_外部调运单 report = new 报表_外部调运单(dataGridView1.CurrentRow.Cells["单据号"].Value.ToString(), labelTitle.Text); PrintReportBill print = new PrintReportBill(21.80, 9.31, report); print.DirectPrintReport(); }
private void btnPrint_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count == 1) { IBillReportInfo report = new 报表_零星采购单(dataGridView1.CurrentRow.Cells["单据号"].Value.ToString()); PrintReportBill print = new PrintReportBill(21.8, 9.31, report); (report as 报表_零星采购单).ShowDialog(); if (m_minorBillServer.UpdatePrintStatus(dataGridView1.CurrentRow.Cells["单据号"].Value.ToString(), out m_error)) { MessageDialog.ShowPromptMessage("打印成功!"); } } else { MessageDialog.ShowPromptMessage("请选择一行数据后再进行此操作!"); return; } }
private void 打印单据ToolStripMenuItem_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count == 0) { MessageDialog.ShowPromptMessage("请选择一条已入库记录后再行此操作"); return; } if (dataGridView1.SelectedRows[0].Cells["单据状态"].Value.ToString() != "已入库") { MessageDialog.ShowPromptMessage("当前单据没有入库不允许进行打印"); return; } 报表_自制件工装报检单 report = new 报表_自制件工装报检单(dataGridView1.CurrentRow.Cells[0].Value.ToString(), labelTitle.Text, true); PrintReportBill print = new PrintReportBill(21.8, 9.31, report); print.DirectPrintReport(); }
/// <summary> /// 报表(包含金额) /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void 表单打印ToolStripMenuItem_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count == 0) { MessageDialog.ShowPromptMessage("请选择一条已入库记录后再行此操作"); return; } HomemadeBillStatus status = (HomemadeBillStatus)Enum.Parse(typeof(HomemadeBillStatus), dataGridView1.SelectedRows[0].Cells["单据状态"].Value.ToString()); if (status != HomemadeBillStatus.已入库) { MessageDialog.ShowPromptMessage("当前单据没有入库不允许进行打印"); return; } 报表_自制件入库单 report = new 报表_自制件入库单(dataGridView1.CurrentRow.Cells[0].Value.ToString(), labelTitle.Text); PrintReportBill print = new PrintReportBill(21.8, 9.31, report); print.DirectPrintReport(); }
private void 打印单据ToolStripMenuItem_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count == 0) { MessageDialog.ShowPromptMessage("请选择至少一条已入库记录后再行此操作"); return; } int index = 0; foreach (DataGridViewRow row in dataGridView1.SelectedRows) { if (row.Cells["单据状态"].Value.ToString() != OrdinaryInDepotBillStatus.已入库.ToString()) { continue; } IBillReportInfo report = null; if ((bool)row.Cells["需工装管理员验证"].Value) { report = new 报表_普通入库单_工装验证类(row.Cells[0].Value.ToString(), labelTitle.Text, true); } else { report = new 报表_普通入库单(row.Cells[0].Value.ToString(), labelTitle.Text, true); } PrintReportBill print = new PrintReportBill(21.8, 9.31, report); if (index++ > 0) { print.ShowPrintDialog = false; } print.DirectPrintReport(); } }