|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using FireBirdUtil.DataTypes;
|
|
|
using FireBirdUtil.SqlHelpers;
|
|
|
|
|
|
namespace WeighBusiness.BO.CreateTables
|
|
|
{
|
|
|
public class CreateProductCatalog_Detail : CreateBaseTable
|
|
|
{
|
|
|
public CreateProductCatalog_Detail(string tableName) : base(tableName) { }
|
|
|
|
|
|
public override void AddFields(CreateTableHelper cth)
|
|
|
{
|
|
|
cth.AddField(new FieldInfo() { FieldName = "ProductCatalog_ID", FieldType = FBType.Integer, IsNotNull = true });
|
|
|
cth.AddField(new FieldInfo() { FieldName = "CatalogDetail_ID", FieldType = FBType.Integer, IsNotNull = true });
|
|
|
cth.AddField(new FieldInfo() { FieldName = "Goods_Name", FieldType = FBType.Varchar, FieldTypeParams = "(100)", IsNotNull = true });
|
|
|
cth.AddField(new FieldInfo() { FieldName = "Goods_ID", FieldType = FBType.Integer, IsNotNull = true });
|
|
|
cth.AddField(new FieldInfo() { FieldName = "UnitConvertDirection", FieldType = FBType.Varchar, FieldTypeParams = "(100)", IsNotNull = false });
|
|
|
cth.AddField(new FieldInfo() {
|
|
|
FieldName = "MainUnitRatio",
|
|
|
FieldType = FBType.Decimal,
|
|
|
FieldTypeParams = "(18,6)",
|
|
|
IsNotNull = false
|
|
|
});
|
|
|
cth.AddField(new FieldInfo() {
|
|
|
FieldName = "SecondUnitRatio",
|
|
|
FieldType = FBType.Decimal,
|
|
|
FieldTypeParams = "(18,6)",
|
|
|
IsNotNull = false
|
|
|
});
|
|
|
cth.AddField(new FieldInfo() { FieldName = "Goods_Spec", FieldType = FBType.Varchar, FieldTypeParams = "(100)", IsNotNull = false });
|
|
|
base.AddFields(cth);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|