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 Mesnac.Action.Feeding.Qingquan.Report { public partial class frmMaterialCount : Form { public frmMaterialCount() { InitializeComponent(); } public void ReprotStart() { this.report1.Load(Application.StartupPath + @"\data\MCProject\Report\MaterialCode.frx"); DataTable pptplan = MaterialCount.GetMaterialCountData(Mesnac.Basic.DataSourceFactory.MCDbType.Local,this.RecipeCode,this.ClassID,this.ShiftID,this.StartDate,this.EndDate); this.report1.RegisterData(pptplan, "materialcount"); report1.SetParameterValue("RecipeName", this.RecipeName); report1.SetParameterValue("ClassName", this.ClassName); report1.SetParameterValue("ShiftName", this.ShiftName); report1.SetParameterValue("StartDate", this.StartDate); report1.SetParameterValue("EndDate", this.EndDate); report1.Show(); } private string recipeCode; public string RecipeCode { get { return recipeCode; } set { recipeCode = value; } } private string recipeName; public string RecipeName { get { return recipeName; } set { recipeName = value; } } private string classID; public string ClassID { get { return classID; } set { classID = value; } } private string className; public string ClassName { get { return className; } set { className = value; } } private string shiftID; public string ShiftID { get { return shiftID; } set { shiftID = value; } } private string shiftName; public string ShiftName { get { return shiftName; } set { shiftName = value; } } private string startDate; public string StartDate { get { return startDate; } set { startDate = value; } } private string endDate; public string EndDate { get { return endDate; } set { endDate = value; } } } }