Files
Groupware/Project/_Management/rpt_equipmentB.cs
2018-09-17 09:28:32 +09:00

57 lines
2.1 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Project._Management
{
public partial class rpt_equipmentB : Form
{
Project._Management.fEquipment.eTabletype imptype = fEquipment.eTabletype.MOLD;
string pdate = string.Empty;
public rpt_equipmentB( Project._Management.fEquipment.eTabletype type_,string dateStr)
{
InitializeComponent();
pdate = dateStr;
imptype = type_;
}
private void rpt_equipment_Load(object sender, EventArgs e)
{
this.Text = string.Format("Data Report({0})",this.imptype);
this.Show();
Application.DoEvents();
//Set DataSource
Microsoft.Reporting.WinForms.ReportDataSource DsEQ = new Microsoft.Reporting.WinForms.ReportDataSource();
DsEQ.Name = "DataSet1";
switch (imptype)
{
case fEquipment.eTabletype.FOL:
this.reportViewer1.LocalReport.ReportEmbeddedResource = "Project._Management.ReportF.rdlc";
taF.Fill(this.dsEQ.vEquStockF, this.pdate);
DsEQ.Value = this.dsEQ.vEquStockF;
break;
case fEquipment.eTabletype.BUMP:
this.reportViewer1.LocalReport.ReportEmbeddedResource = "Project._Management.ReportB.rdlc";
taB.Fill(this.dsEQ.vEquStockB, this.pdate);
DsEQ.Value = this.dsEQ.vEquStockB;
break;
case fEquipment.eTabletype.MOLD:
this.reportViewer1.LocalReport.ReportEmbeddedResource = "Project._Management.ReportE.rdlc";
taE.Fill(this.dsEQ.vEquStockME, this.pdate);
DsEQ.Value = this.dsEQ.vEquStockME;
break;
}
this.reportViewer1.LocalReport.DataSources.Add(DsEQ);
this.reportViewer1.RefreshReport();
}
}
}