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.
57 lines
1.5 KiB
57 lines
1.5 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
using Stone.Entity;
|
|
using System.Data;
|
|
using Stone.Common;
|
|
|
|
namespace Stone.WinBiz.BasicData
|
|
{
|
|
public class F_ModunoAM : F_Base
|
|
{
|
|
public F_ModunoAM()
|
|
{
|
|
this.type = "ModunoAM";
|
|
this.name = "A零件与M零件对应关系";
|
|
this.entity = new Entity_t_ModunoAM();
|
|
}
|
|
|
|
|
|
|
|
public override void Checking(DataRow drData, bool isNew)
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
public override void InputData(DataSet dsInput, Gm_WMS.DataAccess.DataService.LocalDBService db)
|
|
{
|
|
try
|
|
{
|
|
Entity_t_ModunoAM t_Input = new Entity_t_ModunoAM(db);
|
|
DataRow drInput = null;
|
|
|
|
foreach (DataRow drData in dsInput.Tables[0].Rows)
|
|
{
|
|
drInput = t_Input.Table.NewRow();
|
|
drInput["ModunoA"] = drData["ModunoA"].ToString().Trim();
|
|
drInput["ModunoM"] = drData["ModunoM"].ToString().Trim();
|
|
drInput["ModunoMShared"] = drData["ModunoMShared"].ToString().Trim();
|
|
drInput["PartNumber"] = drData["PartNumber"].ToString().Trim();
|
|
drInput["description"] = drData["description"].ToString();
|
|
drInput["voided"] = drData["voided"].ToString();
|
|
|
|
|
|
t_Input.Add(drInput);
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw new Exception("错误原因为:\r\n" + ex.Message);
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
|