|
|
|
using DS.Module.Core;
|
|
|
|
using DS.Module.UserModule;
|
|
|
|
using DS.WMS.Core.System.Dtos;
|
|
|
|
using DS.WMS.Core.System.Entity;
|
|
|
|
using DS.WMS.Core.System.Interface;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.System.Method;
|
|
|
|
|
|
|
|
public class SysPrintService:ISysPrintService
|
|
|
|
{
|
|
|
|
|
|
|
|
private readonly IServiceProvider _serviceProvider;
|
|
|
|
private readonly ISqlSugarClient db;
|
|
|
|
private readonly IUser user;
|
|
|
|
private readonly ICommonService _commonService;
|
|
|
|
/// <summary>
|
|
|
|
///
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="serviceProvider"></param>
|
|
|
|
public SysPrintService(IServiceProvider serviceProvider)
|
|
|
|
{
|
|
|
|
_serviceProvider = serviceProvider;
|
|
|
|
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
|
|
|
|
user = _serviceProvider.GetRequiredService<IUser>();
|
|
|
|
_commonService = _serviceProvider.GetRequiredService<ICommonService>();
|
|
|
|
}
|
|
|
|
public DataResult<List<SysPrint>> GetListByPage(PageRequest request)
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
|
|
|
public DataResult EditPrint(PrintInput model)
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
|
|
|
public DataResult<SysPrint> GetPrintInfo(long id)
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<DbTableInfo> GetTables()
|
|
|
|
{
|
|
|
|
return db.DbMaintenance.GetTableInfoList();
|
|
|
|
}
|
|
|
|
public List<DbColumnInfo> GetColumns(string tableViewName)
|
|
|
|
{
|
|
|
|
return db.DbMaintenance.GetColumnInfosByTableName(tableViewName);
|
|
|
|
}
|
|
|
|
}
|