You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

34 lines
1.6 KiB

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 CreateUserTable : CreateBaseTable
{
public CreateUserTable(string tableName) : base(tableName) { }
public override void AddFields(CreateTableHelper cth)
{
cth.AddField(new FieldInfo() { FieldName = "ERP_User_Name", FieldType = FBType.Varchar, FieldTypeParams = "(10)", IsNotNull = true });
cth.AddField(new FieldInfo() { FieldName = "ERP_User_Password", FieldType = FBType.Varchar, FieldTypeParams = "(100)", IsNotNull = true });
cth.AddField(new FieldInfo() { FieldName = "ERP_User_ID", FieldType = FBType.Integer, IsNotNull = true });
cth.AddField(new FieldInfo() { FieldName = "IsDomainManager", FieldType = FBType.Boolean, IsNotNull = true });
cth.AddField(new FieldInfo() { FieldName = "UrlPath", FieldType = FBType.Varchar, FieldTypeParams = "(100)", IsNotNull = true });
cth.AddField(new FieldInfo() { FieldName = "IsAdmin", FieldType = FBType.Boolean, IsNotNull = false });
base.AddFields(cth);
//var userPassword = UserBL.EncodeUserPassword(null);
//SqlAfterCreateTable = InsertUtil.GetInsertSql(TableNames.用户表,
// new string[] { "ERP_User_Name", "ERP_User_Password", "ERP_User_ID", "IsDomainManager"},
// new string[] { "system", userPassword, "system", systemUserpassword, string.Empty, string.Empty });
}
}
}