using Kingdee.BOS; using Kingdee.BOS.App; using Kingdee.BOS.Contracts; using Kingdee.BOS.Util; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GZ_LTHReportForms.Services { internal class TempTableService { private Context ctx; public TempTableService(Context ctx) { this.ctx = ctx; } /// /// 删除临时表 /// /// /// public void DropTempTable(string tableName) { if (!tableName.IsNullOrEmptyOrWhiteSpace()) { IDBService dbservice = ServiceHelper.GetService(); dbservice.DeleteTemporaryTableName(ctx, new string[] { tableName }); } } /// /// 创建临时表 /// /// /// public string CreateTempTable() { IDBService dbservice = ServiceHelper.GetService(); string[] temptables = dbservice.CreateTemporaryTableName(ctx, 1); return temptables[0]; } } }