示例#1
0
文件: TaskBll.cs 项目: roytown/Bag
 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);
 }
示例#2
0
文件: TaskBll.cs 项目: roytown/Bag
 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);
 }
示例#3
0
文件: TaskBll.cs 项目: roytown/Bag
 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);
 }