|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using FireBirdUtil.DataTypes;
|
|
|
using FireBirdUtil.SqlHelpers;
|
|
|
using WeighBusiness.BL;
|
|
|
using WeighBusiness.Utils;
|
|
|
using WeighBusiness.Utils.SqlUtils;
|
|
|
|
|
|
namespace WeighBusiness.BO.CreateTables
|
|
|
{
|
|
|
public class CreateBomSetDetailTable : CreateBaseTable
|
|
|
{
|
|
|
public CreateBomSetDetailTable(string tableName) : base(tableName) { }
|
|
|
|
|
|
public override void AddFields(CreateTableHelper cth)
|
|
|
{
|
|
|
cth.AddField(new FieldInfo() { FieldName = "BomSet_ID", FieldType = FBType.Integer,IsNotNull = true });
|
|
|
cth.AddField(new FieldInfo() { FieldName = "BomSet_Detail_ID", FieldType = FBType.Integer,IsNotNull = true });
|
|
|
cth.AddField(new FieldInfo() { FieldName = "Number", FieldType = FBType.Decimal, FieldTypeParams = "(18, 6)" });
|
|
|
cth.AddField(new FieldInfo() { FieldName = "Goods_ID", FieldType = FBType.Integer});
|
|
|
cth.AddField(new FieldInfo() { FieldName = "InputStyle", FieldType = FBType.Integer });
|
|
|
cth.AddField(new FieldInfo() { FieldName = "UnitPrecent", FieldType = FBType.Decimal, FieldTypeParams = "(18, 6)" });
|
|
|
cth.AddField(new FieldInfo() { FieldName = "FixedNumber", FieldType = FBType.Decimal, FieldTypeParams = "(18, 6)" });
|
|
|
base.AddFields(cth);
|
|
|
}
|
|
|
}
|
|
|
}
|