Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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);
 }