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

68 lines
2.6 KiB

3 years ago
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Stone.WinBiz.BasicData;
using Stone.Entity;
using System.Windows.Forms;
using Stone.Common;
using Gm_WMS.DataAccess.DataService;
namespace Stone.WinBiz.Standard
{
public class F_JIS_VDA : F_Base
{
public string fileType = "";
public F_JIS_VDA()
{
this.type = "JISVDAPRINT";
this.name = "发货准备与跟踪";
this.entity = new Entity_t_JIS_Lab();
this.entityView = new Entity_v_JIS_Lab_List();
this.strOrder = "startDate asc, partNumber asc";
}
public override void BindPageData(string strWhere)
{
strWhere = "(" + strWhere + ") and [FileType]='" + fileType + "'";
if (entityView == null) entityView = entity;
base.BindPageData(strWhere);
}
public override void GetView(DataGridView dgv)
{
dgv.DataSource = dsMain.Tables[0];
dgv.Columns["ID"].Visible = false; //隐藏ID列
dgv.Columns["fileType"].HeaderText = "工厂";
dgv.Columns["partNumber"].HeaderText = "零件号";
dgv.Columns["Description"].HeaderText = "零件描述";
dgv.Columns["Color"].HeaderText = "颜色";
dgv.Columns["Variant"].HeaderText = "车型";
dgv.Columns["StartDate"].HeaderText = "需求日期起";
dgv.Columns["EndDate"].HeaderText = "需求日期止";
dgv.Columns["quantity"].HeaderText = "需求数量";
dgv.Columns["quantity_print"].HeaderText = "本次发货数量";
dgv.Columns["quantity_diff"].HeaderText = "本次发货差异";
dgv.Columns["quantity_ship"].HeaderText = "累计发货数量";
dgv.Columns["quantity_transit"].HeaderText = "在途数量";
dgv.Columns["cumulativeQuantity"].HeaderText = "累计收货数量";
dgv.Columns["releaseId"].HeaderText = "版本号";
dgv.Columns["IsStandard"].HeaderText = "是否STD件";
dgv.Columns["PackNumer"].HeaderText = "包装数量";
dgv.Columns["location"].HeaderText = "卸货点";
dgv.Columns["time"].HeaderText = "发布日期";
dgv.Columns["locationCode"].HeaderText = "卸货点代码";
dgv.Columns["orderNumber"].HeaderText = "采购订单号";
dgv.Columns["addtime"].HeaderText = "解析时间";
dgv.Columns["filename"].HeaderText = "文件名";
MyGridViewStyle.GetGridViewState(dgv, "基础资料" + type);
MyGridViewStyle.SetDataGridMenuCommon(dgv);
}
}
}