liuwf 1 year ago
parent 1573a8181e
commit 0262341a05

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

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

Loading…
Cancel
Save