38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
|
|
using System;
|
|||
|
|
using System.Drawing;
|
|||
|
|
using System.Collections;
|
|||
|
|
using System.ComponentModel;
|
|||
|
|
using DevExpress.XtraReports.UI;
|
|||
|
|
using WMS.Model.Stock;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
|
|||
|
|
namespace WMS.FrmStock
|
|||
|
|
{
|
|||
|
|
public partial class ReportCount : DevExpress.XtraReports.UI.XtraReport
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
public ReportCount(string count,string info)
|
|||
|
|
{
|
|||
|
|
InitializeComponent();
|
|||
|
|
Bind(count,info);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private void Bind(string count, string info)
|
|||
|
|
{
|
|||
|
|
CountingModel model = Newtonsoft.Json.JsonConvert.DeserializeObject<CountingModel>(count);
|
|||
|
|
List<CountingInfoModel> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<CountingInfoModel>>(info);
|
|||
|
|
|
|||
|
|
labMan.Text = model.PLAN_MAN_NAME;
|
|||
|
|
labID.Text = model.COUNT_ID;
|
|||
|
|
labDate.Text = model.PLAN_DATE.ToString("yyyy-MM-dd");
|
|||
|
|
labSto.Text = model.STO_NAME;
|
|||
|
|
DetailReport.DataSource = list;
|
|||
|
|
|
|||
|
|
CellSeat.DataBindings.Add("Text", list, "STO_SEAT");
|
|||
|
|
CellGoodID.DataBindings.Add("Text", list, "GOODS_ID");
|
|||
|
|
CellGoodName.DataBindings.Add("Text", list, "GOODS_NAME");
|
|||
|
|
//CellCountNum.DataBindings.Add("Text", list, "STO_SEAT");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|