Beispiel #1
0
 public List <VOutStoreBill> GetOutStoreBill()
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <OutStoreBillDAL>().GetOutStoreBill(dcc));
     }
 }
Beispiel #2
0
 public List <MaterielOutStoreBillDtl> GetVBillDtlByBOM(Guid hdID)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <MaterielOutStoreBillDAL>().GetVBillDtlByBOM(dcc, hdID));
     }
 }
Beispiel #3
0
 public OutStoreBillHd GetOutStoreBillHd(Guid id)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <OutStoreBillDAL>().GetOutStoreBillHd(dcc, id));
     }
 }
Beispiel #4
0
 public void FinishUnlistedGoods(List <UnlistedGoodsLog> dtlList)
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         DALFty.Create <InventoryDAL>().FinishUnlistedGoods(db, dtlList);
     }
 }
Beispiel #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);
     }
 }
Beispiel #6
0
 public List <CustomerSLSalePrice> GetCustomerSLSalePrice()
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <CustomerSLSalePriceDAL>().GetCustomerSLSalePrice(dcc));
     }
 }
Beispiel #7
0
 public List <MaterielInStoreBillDtl> GetMaterielInStoreBillDtl(Guid hdID)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <MaterielInStoreBillDAL>().GetMaterielInStoreBillDtl(dcc, hdID));
     }
 }
Beispiel #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);
     }
 }
Beispiel #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));
     }
 }
Beispiel #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);
     }
 }
Beispiel #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);
     }
 }
Beispiel #12
0
 public MaterielInStoreBillHd GetMaterielInStoreBillHd(Guid id)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <MaterielInStoreBillDAL>().GetMaterielInStoreBillHd(dcc, id));
     }
 }
Beispiel #13
0
 public string GetMaxBillNo()
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <MaterielInStoreBillDAL>().GetMaxBillNo(dcc));
     }
 }
Beispiel #14
0
 public void Update(List <Permission> opList, List <ButtonPermission> btnList)
 {
     using (WmsContext db = EDMXFty.Dc)
     {
         DALFty.Create <PermissionDAL>().Update(db, opList, btnList);
     }
 }
Beispiel #15
0
 public List <VMaterielInStoreBill> GetMaterielInStoreBill()
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         return(DALFty.Create <MaterielInStoreBillDAL>().GetMaterielInStoreBill(dcc));
     }
 }
Beispiel #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));
     }
 }
Beispiel #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));
     }
 }
Beispiel #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);
     }
 }
Beispiel #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);
     }
 }
Beispiel #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));
     }
 }
Beispiel #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));
     }
 }
Beispiel #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);
     }
 }
Beispiel #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));
     }
 }
Beispiel #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));
     }
 }
Beispiel #25
0
 public void Update(CustomerSLSalePrice obj)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         DALFty.Create <CustomerSLSalePriceDAL>().Update(dcc, obj);
         dcc.Save();
     }
 }
Beispiel #26
0
 public void Delete(Guid parentGoodsID)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         DALFty.Create <CustomerSLSalePriceDAL>().Delete(dcc, parentGoodsID);
         dcc.Save();
     }
 }
Beispiel #27
0
 public void Delete(Guid id)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         DALFty.Create <MaterielInStoreBillDAL>().Delete(dcc, id);
         dcc.Save();
     }
 }
Beispiel #28
0
 public void Update(MaterielInStoreBillHd hd, List <MaterielInStoreBillDtl> dtl)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         DALFty.Create <MaterielInStoreBillDAL>().Update(dcc, hd, dtl);
         dcc.Save();
     }
 }
Beispiel #29
0
 public void Insert(List <CustomerSLSalePrice> list)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         DALFty.Create <CustomerSLSalePriceDAL>().Insert(dcc, list);
         dcc.Save();
     }
 }
Beispiel #30
0
 public void Update(Guid parentGoodsID, List <CustomerSLSalePrice> list)
 {
     using (DCC dcc = DBMLFty.Dcc)
     {
         DALFty.Create <CustomerSLSalePriceDAL>().Update(dcc, parentGoodsID, list);
         dcc.Save();
     }
 }