liuwf 1 year ago
parent 1573a8181e
commit 0262341a05

@ -17,20 +17,21 @@ namespace Aucma.Core.ProductOffLine.Business
/// <summary>
/// 入库业务逻辑
/// </summary>
public class offLineBusiness
public class OffLineBusiness
{
#region 单例实现
//private static readonly InStoreBusiness lazy = new InStoreBusiness();
//public static InStoreBusiness Instance
//{
// get
// {
// return lazy;
// }
//}
private static readonly OffLineBusiness lazy = new OffLineBusiness();
public static OffLineBusiness Instance
{
get
{
return lazy;
}
}
#endregion
System.Timers.Timer timer = new System.Timers.Timer(1000);
#region 接口引用
@ -52,12 +53,16 @@ namespace Aucma.Core.ProductOffLine.Business
#endregion
public offLineBusiness()
public OffLineBusiness()
{
_baseBomInfoService = App.ServiceProvider.GetService<IBaseBomInfoServices>();
BaseBomInfo bom = _baseBomInfoService.FirstAsync().Result;
Console.WriteLine();
}
public void test()
{
}
}
}

@ -44,10 +44,12 @@ namespace Aucma.Core.ProductOffLine.ViewModels
private readonly IProductPlanInfoServices? _productPlanInfoServices;
private readonly IProductOffLineServices ? _productOffLineServices;
System.Timers.Timer timer = new System.Timers.Timer(1000);
private OffLineBusiness offLineBusiness = OffLineBusiness.Instance;
int a = 0;
public IndexPageViewModel()
{
offLineBusiness business = new offLineBusiness();
offLineBusiness.test();
_productOffLineServices = App.ServiceProvider.GetService<IProductOffLineServices>();
_baseOrderInfoServices = App.ServiceProvider.GetService<IBaseOrderInfoServices>();
_productPlanInfoServices = App.ServiceProvider.GetService<IProductPlanInfoServices>();

Loading…
Cancel
Save