33 lines
1.4 KiB
C#
33 lines
1.4 KiB
C#
|
|
using Cowain.Preheat.Common.Enums;
|
||
|
|
using Cowain.Preheat.Model;
|
||
|
|
using Cowain.Preheat.Model.Models;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using Unity;
|
||
|
|
|
||
|
|
namespace Cowain.Preheat.BLL
|
||
|
|
{
|
||
|
|
public class MemoryDataProvider
|
||
|
|
{
|
||
|
|
protected static IUnityContainer _unityContainer =null;
|
||
|
|
public string CurrentJobNum { get; set; } //当前工单
|
||
|
|
public int DispMode { get; set; } //调度模试
|
||
|
|
public static short LogisticsLine { get; set; } = (short)ECharFlag.B; //AB面
|
||
|
|
public static string CurrentUser { get; set; }
|
||
|
|
|
||
|
|
public static List<BtnInfoModel> WindowBtnInfo = new List<BtnInfoModel>();
|
||
|
|
//public List<TMachine> MachineType { get; set; } // = new List<TMachine>();
|
||
|
|
//public List<TStationDetail> StaionDatail { get; set; }
|
||
|
|
//public List<TMachine> AllMachine { get; set; }
|
||
|
|
|
||
|
|
public MemoryDataProvider(IUnityContainer unityContainer)
|
||
|
|
{
|
||
|
|
TProductionInformation currentProduct = unityContainer.Resolve<ProductionInformationService>().GetCurrentProductInfo();
|
||
|
|
CurrentJobNum = currentProduct.JobNum;
|
||
|
|
//MachineType = unityContainer.Resolve<MachineService>().GetMachineNames();
|
||
|
|
//StaionDatail = unityContainer.Resolve<StationDetailService>().GeStationDetail();
|
||
|
|
//AllMachine= unityContainer.Resolve<MachineService>().GetAllMachine();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|