public static Task GetTask(string code, bool includeLog = false, bool includeOrder = false, bool includeStockLog = false) { if (string.IsNullOrEmpty(code)) { return null; } ITask taskProvider = new TaskDal(EFContext.Instance); return taskProvider.Get(m=>m.Code==code, includeLog, includeOrder, includeStockLog); }
public static Task GetTaskByEpc(string epc, bool includeLog = false, bool includeOrder = false, bool includeStockLog = false) { if (string.IsNullOrEmpty(epc)) { return null; } ITask taskProvider = new TaskDal(EFContext.Instance); return taskProvider.Get(m => m.Ecp == epc, includeLog, includeOrder, includeStockLog); }
public static Task GetTask(int id,bool includeLog=false,bool includeOrder=false,bool includeStockLog=false) { if (id<=0) { return null; } ITask taskProvider = new TaskDal(EFContext.Instance); return taskProvider.Get(m=>m.Id==id, includeLog, includeOrder, includeStockLog); }