|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using FireBirdUtil.DataTypes;
|
|
|
using FireBirdUtil.SqlHelpers;
|
|
|
using Utils.Security;
|
|
|
using WeighBusiness.BL;
|
|
|
using WeighBusiness.Utils;
|
|
|
using WeighBusiness.Utils.SqlUtils;
|
|
|
|
|
|
namespace WeighBusiness.BO.CreateTables
|
|
|
{
|
|
|
public class CreateSettingTable : CreateBaseTable
|
|
|
{
|
|
|
public CreateSettingTable(string tableName) : base(tableName) { }
|
|
|
|
|
|
public override void AddFields(CreateTableHelper cth)
|
|
|
{
|
|
|
cth.AddField(new FieldInfo() { FieldName = "A", FieldType = FBType.Varchar, FieldTypeParams = "(100)", IsNotNull = true });
|
|
|
cth.AddField(new FieldInfo() { FieldName = "B", FieldType = FBType.Varchar, FieldTypeParams = "(8000)", IsNotNull = true });
|
|
|
base.AddFields(cth);
|
|
|
|
|
|
SqlAfterCreateTable = InsertUtil.GetInsertSql(TableNames.配置表,
|
|
|
new string[] { "A", "B" },
|
|
|
new string[] { SecurityUtil.Change("1|system", UserBL.a), SecurityUtil.Change(string.Empty, UserBL.a) });
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|