重构包装管理服务,优化数据结构与接口
移除 APIPackagingManageService,功能迁移至 HJGLPackagingmanageService 并进行重构,新增方法支持包装与组件关联管理、分页查询、状态描述等功能。 更新 PackagingManageController,替换旧服务调用,新增接口方法。 调整数据库结构,新增子表 HJGL_PackagingManageDetail,优化包装与组件的关联存储。 更新前端页面逻辑,适配新数据结构,新增 StackingPosition 字段显示。 优化 Model 层字段定义,调整长度限制,提升性能与一致性。 更新报表模板与项目文件,移除冗余代码,提升代码可维护性。
This commit is contained in:
@@ -19,11 +19,6 @@ namespace BLL
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public static List<Model.HJGL_PackagingManageDetail> GetListByQueryModle(Model.HJGL_PackagingManageDetail table)
|
||||
{
|
||||
return GetByQueryModle(table).ToList();
|
||||
|
||||
}
|
||||
|
||||
public static (List<Model.HJGL_PackagingManageDetail> Data, int Total) GetListByQueryModle(Model.HJGL_PackagingManageDetail table, int pageIndex = 0, int pageSize = 20)
|
||||
{
|
||||
@@ -71,7 +66,7 @@ namespace BLL
|
||||
};
|
||||
}
|
||||
|
||||
private static IQueryable<Model.HJGL_PackagingManageDetail> GetByQueryModle(Model.HJGL_PackagingManageDetail table)
|
||||
public static IQueryable<Model.HJGL_PackagingManageDetail> GetByQueryModle(Model.HJGL_PackagingManageDetail table)
|
||||
{
|
||||
var q = from x in Funs.DB.HJGL_PackagingManageDetail select x;
|
||||
if (table == null)
|
||||
@@ -155,7 +150,17 @@ namespace BLL
|
||||
}
|
||||
|
||||
}
|
||||
public static void DeleteByPipelineComponentId(string pipelineComponentId)
|
||||
{
|
||||
|
||||
Model.HJGL_PackagingManageDetail table = Funs.DB.HJGL_PackagingManageDetail.FirstOrDefault(x => x.PipelineComponentId == pipelineComponentId);
|
||||
if (table != null)
|
||||
{
|
||||
Funs.DB.HJGL_PackagingManageDetail.DeleteOnSubmit(table);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
public static void DeleteByPackagingManageId(string packagingManageId)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user