重构包装管理服务,优化数据结构与接口
移除 APIPackagingManageService,功能迁移至 HJGLPackagingmanageService 并进行重构,新增方法支持包装与组件关联管理、分页查询、状态描述等功能。 更新 PackagingManageController,替换旧服务调用,新增接口方法。 调整数据库结构,新增子表 HJGL_PackagingManageDetail,优化包装与组件的关联存储。 更新前端页面逻辑,适配新数据结构,新增 StackingPosition 字段显示。 优化 Model 层字段定义,调整长度限制,提升性能与一致性。 更新报表模板与项目文件,移除冗余代码,提升代码可维护性。
This commit is contained in:
@@ -16,6 +16,7 @@ namespace BLL
|
||||
if (model != null)
|
||||
{
|
||||
model.ReceiveDate = DateTime.Now;
|
||||
model.State = ((int)TrainNumberManageService.StateInt.已验收);
|
||||
TrainNumberManageService.Update(model);
|
||||
}
|
||||
else
|
||||
@@ -25,7 +26,7 @@ namespace BLL
|
||||
var packManagerList = HJGLPackagingmanageService.GetPackagingManage(id);
|
||||
foreach (var item in packManagerList)
|
||||
{
|
||||
BLL.APIPackagingManageService.GetPackingInfoConfirmArrival(item.PackagingManageId, PersonId);
|
||||
BLL.HJGLPackagingmanageService.GetPackingInfoConfirmArrival(item.PackagingManageId, PersonId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,8 +90,9 @@ namespace BLL
|
||||
if (string.IsNullOrEmpty(model.Id))
|
||||
{
|
||||
// 新增
|
||||
|
||||
model.Id = SQLHelper.GetNewID(typeof(Model.HJGL_TrainNumberManage));
|
||||
model.ReceiveDate = null;
|
||||
model.ReceiveDate = null;
|
||||
TrainNumberManageService.Add(model);
|
||||
return model.Id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user