Exemplo n.º 1
0
 public List <VOutStoreBill> GetOutStoreBill()
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <OutStoreBillDAL>().GetOutStoreBill(dcc));
     }
 }
Exemplo n.º 2
0
 public List <MaterielOutStoreBillDtl> GetVBillDtlByBOM(Guid hdID)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <MaterielOutStoreBillDAL>().GetVBillDtlByBOM(dcc, hdID));
     }
 }
Exemplo n.º 3
0
 public OutStoreBillHd GetOutStoreBillHd(Guid id)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <OutStoreBillDAL>().GetOutStoreBillHd(dcc, id));
     }
 }
Exemplo n.º 4
0
 public void FinishUnlistedGoods(List <UnlistedGoodsLog> dtlList)
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         DALFty.Create <InventoryDAL>().FinishUnlistedGoods(db, dtlList);
     }
 }
Exemplo n.º 5
0
 public void FinishCheck(SystemStatus systemStatus, StocktakingLogHd hd, List <ProfitAndLossLog> plLogList, List <InventoryLossLog> lossLogList, List <UnlistedGoodsLog> ugLogList, List <InventoryLog> stockLogList)
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         DALFty.Create <InventoryDAL>().FinishCheck(db, systemStatus, hd, plLogList, lossLogList, ugLogList, stockLogList);
     }
 }
Exemplo n.º 6
0
 public List <CustomerSLSalePrice> GetCustomerSLSalePrice()
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <CustomerSLSalePriceDAL>().GetCustomerSLSalePrice(dcc));
     }
 }
Exemplo n.º 7
0
 public List <MaterielInStoreBillDtl> GetMaterielInStoreBillDtl(Guid hdID)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <MaterielInStoreBillDAL>().GetMaterielInStoreBillDtl(dcc, hdID));
     }
 }
Exemplo n.º 8
0
 /// <summary>
 /// 海量数据修改方法
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="list"></param>
 public virtual void UpdateByBulk <T>(List <T> list) where T : class, new()
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         DALFty.Create <EfPlusDAL>().UpdateByBulk <T>(db, list);
     }
 }
Exemplo n.º 9
0
 /// <summary>
 /// 执行查询操作
 /// </summary>
 /// <typeparam name="db"></typeparam>
 /// <param name="type">实体类型名称</param>
 /// <param name="filter">where条件</param>
 /// <returns></returns>
 public virtual IList ExecuteQuery(Type type, string filter)
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         return(DALFty.Create <BaseDAL>().ExecuteQuery(db, type, filter));
     }
 }
Exemplo n.º 10
0
 public void Insert(UsersInfo obj, List <Permission> pList, List <ButtonPermission> btnList)
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         DALFty.Create <UsersInfoDAL>().Insert(db, obj, pList, btnList);
     }
 }
Exemplo n.º 11
0
 public void SaveProfitAndLoss(SystemStatus systemStatus, StocktakingLogHd hd, List <StocktakingLogDtl> dtlList, List <ProfitAndLoss> insertList, List <ProfitAndLoss> updateList)
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         DALFty.Create <InventoryDAL>().SaveProfitAndLoss(db, systemStatus, hd, dtlList, insertList, updateList);
     }
 }
Exemplo n.º 12
0
 public MaterielInStoreBillHd GetMaterielInStoreBillHd(Guid id)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <MaterielInStoreBillDAL>().GetMaterielInStoreBillHd(dcc, id));
     }
 }
Exemplo n.º 13
0
 public string GetMaxBillNo()
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <MaterielInStoreBillDAL>().GetMaxBillNo(dcc));
     }
 }
Exemplo n.º 14
0
 public void Update(List <Permission> opList, List <ButtonPermission> btnList)
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         DALFty.Create <PermissionDAL>().Update(db, opList, btnList);
     }
 }
Exemplo n.º 15
0
 public List <VMaterielInStoreBill> GetMaterielInStoreBill()
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <MaterielInStoreBillDAL>().GetMaterielInStoreBill(dcc));
     }
 }
Exemplo n.º 16
0
 /// <summary>
 /// 根据条件删除(支持批量删除)
 /// </summary>
 /// <param name="delWhere">传入Lambda表达式(生成表达式目录树)</param>
 /// <returns></returns>
 public virtual int DeleteByBulk <T>(Expression <Func <T, bool> > delWhere) where T : class, new()
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         return(DALFty.Create <EfPlusDAL>().DeleteByBulk <T>(db, delWhere));
     }
 }
Exemplo n.º 17
0
 /// <summary>
 /// 执行查询操作
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="sql"></param>
 /// <param name="pars"></param>
 /// <returns></returns>
 public virtual List <T> ExecuteQuery <T>(string sql, params SqlParameter[] pars)
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         return(DALFty.Create <BaseDAL>().ExecuteQuery <T>(db, sql, pars));
     }
 }
Exemplo n.º 18
0
 /// <summary>
 /// 海量数据插入方法
 /// </summary>
 /// <typeparam name="db"></typeparam>
 /// <param name="list"></param>
 public virtual void AddByBulkCopy <T>(List <T> list) where T : class, new()
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         DALFty.Create <BaseDAL>().AddByBulkCopy <T>(db, list);
     }
 }
Exemplo n.º 19
0
 /// <summary>
 /// 海量数据插入和更新方法
 /// </summary>
 /// <param name="insertList">插入的实体列表</param>
 /// <param name="updateList">更新实体列表</param>
 /// <returns></returns>
 public virtual void AddAndUpdate <T>(List <T> insertList, List <T> updateList) where T : class, new()
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         DALFty.Create <BaseDAL>().AddAndUpdate <T>(db, insertList, updateList);
     }
 }
Exemplo n.º 20
0
 /// <summary>
 /// 添加或更新实体
 /// </summary>
 /// <param name="entity">实体</param>
 /// <returns></returns>
 public int AddOrUpdate <T>(T entity) where T : class, new()
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         return(DALFty.Create <BaseDAL>().AddOrUpdate <T>(db, entity));
     }
 }
Exemplo n.º 21
0
 /// <summary>
 /// 贪婪加载查询
 /// </summary>
 /// <typeparam name="T">实体类型</typeparam>
 /// <param name="path">贪婪加载实体</param>
 /// <returns></returns>
 public virtual List <T> GetListByInclude <T>(string path) where T : class, new()
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         return(DALFty.Create <BaseDAL>().GetListByInclude <T>(db, path));
     }
 }
Exemplo n.º 22
0
 /// <summary>
 /// 先删除再添加(批量操作)
 /// </summary>
 /// <param name="delWhere">传入Lambda表达式(生成表达式目录树)</param>
 /// <param name="insertList">插入列表</param>
 /// <returns></returns>
 public virtual void DeleteAndAdd <T>(Expression <Func <T, bool> > delWhere, List <T> insertList) where T : class, new()
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         DALFty.Create <BaseDAL>().DeleteAndAdd <T>(db, delWhere, insertList);
     }
 }
Exemplo n.º 23
0
 /// <summary>
 /// 根据条件查询
 /// </summary>
 /// <param name="whereLambda">查询条件(lambda表达式的形式生成表达式目录树)</param>
 /// <returns></returns>
 public virtual List <T> GetListBy <T>(Expression <Func <T, bool> > whereLambda) where T : class, new()
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         return(DALFty.Create <BaseDAL>().GetListBy <T>(db, whereLambda));
     }
 }
Exemplo n.º 24
0
 /// <summary>
 /// 修改
 /// </summary>
 /// <param name="model">修改后的实体</param>
 /// <returns></returns>
 public virtual int Modify <T>(T model) where T : class, new()
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         return(DALFty.Create <BaseDAL>().Modify <T>(db, model));
     }
 }
Exemplo n.º 25
0
 public void Update(CustomerSLSalePrice obj)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         DALFty.Create <CustomerSLSalePriceDAL>().Update(dcc, obj);
         dcc.Save();
     }
 }
Exemplo n.º 26
0
 public void Delete(Guid parentGoodsID)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         DALFty.Create <CustomerSLSalePriceDAL>().Delete(dcc, parentGoodsID);
         dcc.Save();
     }
 }
Exemplo n.º 27
0
 public void Delete(Guid id)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         DALFty.Create <MaterielInStoreBillDAL>().Delete(dcc, id);
         dcc.Save();
     }
 }
Exemplo n.º 28
0
 public void Update(MaterielInStoreBillHd hd, List <MaterielInStoreBillDtl> dtl)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         DALFty.Create <MaterielInStoreBillDAL>().Update(dcc, hd, dtl);
         dcc.Save();
     }
 }
Exemplo n.º 29
0
 public void Insert(List <CustomerSLSalePrice> list)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         DALFty.Create <CustomerSLSalePriceDAL>().Insert(dcc, list);
         dcc.Save();
     }
 }
Exemplo n.º 30
0
 public void Update(Guid parentGoodsID, List <CustomerSLSalePrice> list)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         DALFty.Create <CustomerSLSalePriceDAL>().Update(dcc, parentGoodsID, list);
         dcc.Save();
     }
 }