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.
62 lines
1.9 KiB
62 lines
1.9 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using System.Data;
|
|
using Stone.Entity;
|
|
using Gm_WMS.DataAccess.DataService;
|
|
using Stone.Common;
|
|
|
|
namespace Stone.WinBiz.BasicData
|
|
{
|
|
public class F_ColorPart : F_Base
|
|
{
|
|
public F_ColorPart()
|
|
{
|
|
this.type = "ColorPart";
|
|
this.name = "基础资料_特殊零件";
|
|
this.entity = new Entity_t_ColorPart();
|
|
this.entityView = new Entity_t_ColorPart();
|
|
}
|
|
|
|
public override void GetView(DataGridView dgv)
|
|
{
|
|
base.GetView(dgv);
|
|
|
|
dgv.Columns["Baumuster"].HeaderText = "Baumuster前3位";
|
|
dgv.Columns["Color"].HeaderText = "颜色";
|
|
dgv.Columns["PartNumber"].HeaderText = "特殊零件";
|
|
dgv.Columns["CarType"].HeaderText = "最终判定车型";
|
|
dgv.Columns["Remark"].HeaderText = "判定方式";
|
|
|
|
|
|
|
|
}
|
|
|
|
public override void Checking(DataRow drData, bool isNew)
|
|
{
|
|
|
|
}
|
|
|
|
public override void InputData(DataSet dsData, LocalDBService db)
|
|
{
|
|
Entity_t_ColorPart t_Input = new Entity_t_ColorPart(db);
|
|
DataRow drInput = null;
|
|
|
|
foreach (DataRow drData in dsData.Tables[0].Rows)
|
|
{
|
|
drInput = t_Input.Table.NewRow();
|
|
drInput["Baumuster"] = MyStrings.GetString(drData["Baumuster前3位"].ToString().Trim());
|
|
drInput["Color"] = MyStrings.GetString(drData["颜色"].ToString().Trim());
|
|
drInput["PartNumber"] = MyStrings.GetString(drData["特殊零件"].ToString().Trim());
|
|
drInput["CarType"] = MyStrings.GetString(drData["最终判定车型"].ToString().Trim());
|
|
drInput["Remark"] = MyStrings.GetString(drData["判定方式"].ToString().Trim());
|
|
|
|
|
|
t_Input.Add(drInput);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|