You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.7 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 Mesnac.Action.Feeding.Report
{
public partial class PlanLotDetail : Form
{
public PlanLotDetail()
{
InitializeComponent();
}
private void report1_StartReport(object sender, EventArgs e)
{
}
public void ReprotStart()
{
this.report1.Load(Application.StartupPath + @"\data\MCProject\Report\PlanLot.frx");
DataTable pptplan = PlanLotCommon.GetRecipeMaterialData(Mesnac.Basic.DataSourceFactory.MCDbType.Local, this.PlanId);
this.report1.RegisterData(pptplan, "planMain");
DataTable planAvgAndSumMain = PlanLotCommon.GetRptPlanLotMainAvgAndSum(Mesnac.Basic.DataSourceFactory.MCDbType.Local, this.PlanId);
report1.RegisterData(planAvgAndSumMain, "planAvgAndSumMain");
DataTable planLotMaterialDetailInfo = PlanLotCommon.GetRptPlanLotSumDetailInfo(Mesnac.Basic.DataSourceFactory.MCDbType.Local, this.PlanId);
report1.RegisterData(planLotMaterialDetailInfo, "MaterialDetailInfo");
DataTable planLotRubsDetailInfo = PlanLotCommon.GetRptPlanLotMaterialDetailInfo(Mesnac.Basic.DataSourceFactory.MCDbType.Local, this.PlanId);
report1.RegisterData(planLotRubsDetailInfo, "dbo_PptWeigh");
report1.SetParameterValue("PlanID", this.PlanId);
report1.Show();
}
private string _planId;
public string PlanId
{
get { return _planId; }
set { _planId = value; }
}
}
}