using System; using System.Collections.Generic; using System.Linq; using System.Text; using FireBirdUtil.DataTypes; using FireBirdUtil.SqlHelpers; namespace WeighBusiness.BO.CreateTables { public class CreateProduceOutputTable : CreateBaseTable { public CreateProduceOutputTable(string tableName) : base(tableName) { } public override void AddFields(CreateTableHelper cth) { cth.AddField(new FieldInfo() { FieldName = "AccountingUnit_ID", FieldType = FBType.Integer, IsNotNull = true }); cth.AddField(new FieldInfo() { FieldName = "Department_ID", FieldType = FBType.Integer, IsNotNull = true }); cth.AddField(new FieldInfo() { FieldName = "Employee_ID", FieldType = FBType.Integer, IsNotNull = true }); cth.AddField(new FieldInfo() { FieldName = "CreateTime", FieldType = FBType.Timestamp, IsNotNull = true }); cth.AddField(new FieldInfo() { FieldName = "BatchNumber_ID", FieldType = FBType.Integer, IsNotNull = true }); cth.AddField(new FieldInfo() { FieldName = "ProductLink", FieldType = FBType.Varchar, FieldTypeParams = "(100)", IsNotNull = true }); cth.AddField(new FieldInfo() { FieldName = "Routing_ID", FieldType = FBType.Integer, IsNotNull = true }); cth.AddField(new FieldInfo() { FieldName = "ProductShift_ID", FieldType = FBType.Integer, IsNotNull = true }); cth.AddField(new FieldInfo() { FieldName = "Domain_ID", FieldType = FBType.Integer, IsNotNull = true }); cth.AddField(new FieldInfo() { FieldName = "IsSend", FieldType = FBType.Boolean,IsNotNull = true}); base.AddFields(cth); } } }