add -添加业务类

dev
liuwf 1 year ago
parent c2e7a7f56d
commit 1573a8181e

@ -0,0 +1,63 @@
using Admin.Core.IService;
using Admin.Core.Model;
using Admin.Core.Service;
using Aucma.Core.ProductOffLine;
using log4net;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.IdentityModel.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Aucma.Core.ProductOffLine.Business
{
/// <summary>
/// 入库业务逻辑
/// </summary>
public class offLineBusiness
{
#region 单例实现
//private static readonly InStoreBusiness lazy = new InStoreBusiness();
//public static InStoreBusiness Instance
//{
// get
// {
// return lazy;
// }
//}
#endregion
#region 接口引用
private IBaseBomInfoServices _baseBomInfoService;
#endregion
#region 委托事件
/// <summary>
/// 扫码信息刷新
/// </summary>
/// <param name="materialCode"></param>
/// <param name="materialName"></param>
/// <param name="spaceName"></param>
/// <param name="materialType"></param>
public delegate void RefreshScanMateriaCode(string materialCode, string materialName, string spaceName, string materialType);
public event RefreshScanMateriaCode RefreshScanMateriaCodeEvent;
#endregion
public offLineBusiness()
{
_baseBomInfoService = App.ServiceProvider.GetService<IBaseBomInfoServices>();
BaseBomInfo bom = _baseBomInfoService.FirstAsync().Result;
Console.WriteLine();
}
}
}

@ -29,6 +29,7 @@ using Admin.Core.IRepository;
using Admin.Core.Service;
using System.Windows.Forms.VisualStyles;
using Microsoft.IdentityModel.Logging;
using Aucma.Core.ProductOffLine.Business;
/*
*
@ -46,6 +47,7 @@ namespace Aucma.Core.ProductOffLine.ViewModels
int a = 0;
public IndexPageViewModel()
{
offLineBusiness business = new offLineBusiness();
_productOffLineServices = App.ServiceProvider.GetService<IProductOffLineServices>();
_baseOrderInfoServices = App.ServiceProvider.GetService<IBaseOrderInfoServices>();
_productPlanInfoServices = App.ServiceProvider.GetService<IProductPlanInfoServices>();

Loading…
Cancel
Save