Exemplo n.º 1
0
        private void BtnDesign_Click(object sender, EventArgs e)
        {
            List <MaterialPlan> ls = new List <MaterialPlan>();

            ls.Add(model);

            string file = ".//ReportPrint//拣货单.frx";

            FReportHelper <MaterialPlan> .GetReport(file, ls, ls[0].dtDetails).Design();
        }
Exemplo n.º 2
0
        private void BtnPrint_Click(object sender, EventArgs e)
        {
            #region 打印

            if (string.IsNullOrEmpty(cardNo))
            {
                throw new Exception("未生成流转卡!");
            }

            MCardDAL mdal = new MCardDAL();


            DataTable dtMain   = mdal.GetHead(cardNo);
            DataTable dtDetail = mdal.GetBody(cardNo);

            string path = ".\\ReportPrint\\产品跟踪卡.frx";

            var rep = FReportHelper.GetReport(path, dtMain, dtDetail);
            rep.Show();

            #endregion
        }