|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using FireBirdUtil.DataTypes;
|
|
|
using FireBirdUtil.SqlHelpers;
|
|
|
|
|
|
namespace WeighBusiness.BO.CreateTables
|
|
|
{
|
|
|
public class CreateWeighDetailTable : CreateBaseTable
|
|
|
{
|
|
|
public CreateWeighDetailTable(string tableName) : base(tableName) { }
|
|
|
|
|
|
public override void AddFields(CreateTableHelper cth)
|
|
|
{
|
|
|
cth.AddField(new FieldInfo() { FieldName = "Local_Weigh_ID", FieldType = FBType.Integer, IsNotNull = true });
|
|
|
cth.AddField(new FieldInfo() { FieldName = "Weight", FieldType = FBType.Decimal, FieldTypeParams = "(18, 6)", IsNotNull = true });//重量
|
|
|
cth.AddField(new FieldInfo() { FieldName = "WeighTime", FieldType = FBType.Timestamp, IsNotNull = true });//时间
|
|
|
base.AddFields(cth);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|