北京安通林JIS系统
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.
 
 
 

53 lines
1.7 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_FGPartStuffix : F_Base
{
public F_FGPartStuffix()
{
this.type = "FGPartSuffix";
this.name = "基础资料_总成特殊零件";
this.entity = new Entity_t_FGPartStuffix();
this.entityView = new Entity_t_FGPartStuffix();
}
public override void GetView(DataGridView dgv)
{
base.GetView(dgv);
dgv.Columns["CarType"].HeaderText = "车型";
dgv.Columns["PartCode"].HeaderText = "零件号";
dgv.Columns["Site"].HeaderText = "位置";
dgv.Columns["Stiffix"].HeaderText = "尾缀";
}
public override void Checking(DataRow drData, bool isNew)
{
}
public override void InputData(DataSet dsData, LocalDBService db)
{
Entity_t_FGPartStuffix t_Input = new Entity_t_FGPartStuffix(db);
DataRow drInput = null;
foreach (DataRow drData in dsData.Tables[0].Rows)
{
drInput = t_Input.Table.NewRow();
drInput["CarType"] = MyStrings.GetString(drData["车型"].ToString().Trim());
drInput["PartCode"] = MyStrings.GetString(drData["零件号"].ToString().Trim());
drInput["Site"] = MyStrings.GetString(drData["位置"].ToString().Trim());
drInput["Stiffix"] = MyStrings.GetString(drData["尾缀"].ToString().Trim());
t_Input.Add(drInput);
}
}
}
}