|
|
@@ -0,0 +1,60 @@
|
|
|
+using Business.Core.Utilities;
|
|
|
+using Business.Dto;
|
|
|
+using Business.StructuredDB.MES;
|
|
|
+using Business.StructuredDB.SaleFcst;
|
|
|
+using Business.StructuredDB.WMS;
|
|
|
+using Newtonsoft.Json;
|
|
|
+using System;
|
|
|
+using System.Collections.Generic;
|
|
|
+using System.Linq;
|
|
|
+using System.Threading.Tasks;
|
|
|
+using Volo.Abp.Application.Services;
|
|
|
+using Volo.Abp.DependencyInjection;
|
|
|
+using Volo.Abp.Domain.Repositories;
|
|
|
+using Volo.Abp.MultiTenancy;
|
|
|
+using Volo.Abp.Uow;
|
|
|
+using IUnitOfWorkManager = Volo.Abp.Uow.IUnitOfWorkManager;
|
|
|
+
|
|
|
+namespace Business.MES
|
|
|
+{
|
|
|
+ //DOP
|
|
|
+ public class SyncMESAppService : ApplicationService, ISyncMESAppService, ITransientDependency
|
|
|
+ {
|
|
|
+ #region 服务
|
|
|
+ /// <summary>
|
|
|
+ /// 生产日计划
|
|
|
+ /// </summary>
|
|
|
+ private readonly IRepository<mes_producedailyplan, long> _producedailyplan;
|
|
|
+ /// <summary>
|
|
|
+ /// 雪花算法
|
|
|
+ /// </summary>
|
|
|
+ SnowFlake snowFlake = new SnowFlake();
|
|
|
+ /// <summary>
|
|
|
+ /// 事务
|
|
|
+ /// </summary>
|
|
|
+ private readonly IUnitOfWorkManager _unitOfWorkManager;
|
|
|
+ #endregion
|
|
|
+ #region 构造函数
|
|
|
+ /// <summary>
|
|
|
+ /// 构造函数
|
|
|
+ /// </summary>
|
|
|
+ public SyncMESAppService(
|
|
|
+ IRepository<mes_producedailyplan, long> mes_producedailyplan,
|
|
|
+ IUnitOfWorkManager unitOfWorkManager,
|
|
|
+ ICurrentTenant currentTenant
|
|
|
+ )
|
|
|
+ {
|
|
|
+ _producedailyplan = mes_producedailyplan;
|
|
|
+ _unitOfWorkManager = unitOfWorkManager;
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+ /// <summary>
|
|
|
+ /// 生成日计划
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="crm_Weekplans"></param>
|
|
|
+ public void SavaProducedailyplanData()
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|