/// <summary>
 /// 创建一个职能表,并记录在报表目录树中
 /// </summary>
 /// <param name="tableMode"></param>
 /// <param name="tableName"></param>
 /// <param name="fields"></param>
 public void CreateTable(string tableMode, string tableName, TableField[] fields, bool widthExtend = true, bool withoutextend = true)
 {
     if (DatabaseCreater.GetCreater().CreateTable(connector, tableName, tableMode, fields, widthExtend, withoutextend) != 0)
     {
         connector.Excute("INSERT INTO 报表目录([报表类型ID],[报表名称]) values ((select top 1 ID from 报表类型 where 类型名称=N'" + tableMode + "'), N'" + tableName + "')");
     }
 }
Beispiel #2
0
 public static DatabaseCreater GetCreater()
 {
     if (creater == null)
     {
         creater = new DatabaseCreater();
     }
     return(creater);
 }