/// <summary> /// 编辑仓库信息 /// </summary> /// <param name="entity"></param> /// <returns></returns> public static bool Edit(StockInfo entity) { if (!PreCheckStock(entity)) { return(false); } entity.StoreCompanyCode = entity.CompanyCode; return(StockDA.Edit(entity)); }
/// <summary> /// 创建仓库信息 /// </summary> /// <param name="entity"></param> /// <returns></returns> public static bool Create(StockInfo entity) { if (!PreCheckStock(entity)) { return(false); } entity.StoreCompanyCode = entity.CompanyCode; var data = StockDA.Create(entity); return(true); }
public void AddProductToStockBL(TypeBO objTypeBO) { StockBO objStockBO = new StockBO(); StockDA objStockDA = new StockDA(); TypeDA objTypeDA = new TypeDA(); ProductDA objProductDA = new ProductDA(); objStockBO.StockName = objProductDA.GetProductName(objTypeBO.ProductID); objStockBO.StockType = objTypeBO.TypeName; objStockBO.StockCount = objTypeBO.TypeCount; objStockBO.StockDate = DateTime.Today; int oldCount = objTypeDA.GetOldTypeCount(objTypeBO.TypeName, objTypeBO.ProductID); objTypeBO.TypeCount = objTypeBO.TypeCount + oldCount; objTypeDA.AddProductToStockDA(objTypeBO); objStockDA.AddStockRecord(objStockBO); }
/// <summary> /// 删除某一个商家的一个仓库 /// </summary> /// <param name="sysNo"></param> /// <param name="merchantSysNo"></param> /// <returns></returns> public static bool DelStock(int sysNo, int merchantSysNo) { return(StockDA.DelStock(sysNo, merchantSysNo)); }
/// <summary> /// 查询商家的仓库列表 /// </summary> /// <param name="queryFilter"></param> /// <returns></returns> public static QueryResult <StockInfoQueryRestult> QueryStock(StockQueryFilter queryFilter) { return(StockDA.QueryStock(queryFilter)); }
public static void UpdateStockShipType(StockShipTypeInfo info) { StockDA.UpdateStockShipType(info); }
public static void CreateStockShipType(StockShipTypeInfo info) { StockDA.CreateStockShipType(info); }
public static StockShipTypeInfo GetStockShipTypeInfo(int sysNo) { return(StockDA.GetStockShipTypeInfo(sysNo)); }
public static QueryResult QueryStockShipType(StockShipTypeQueryFilter filter) { int count = 0; return(new QueryResult(StockDA.QueryStockShipType(filter, out count), filter, count)); }
/// <summary> /// 加载仓库信息 /// </summary> /// <param name="sysNo"></param> /// <returns></returns> public static StockInfo LoadStock(int sysNo) { return(StockDA.LoadStock(sysNo)); }
public void ClearStockHistoryBL() { StockDA objStockDA = new StockDA(); objStockDA.ClearStockHistoryDA(); }
public DataSet PopulateGridViewStockHistoryBL() { StockDA objStockDA = new StockDA(); return(objStockDA.PopulateGridViewStockHistoryDA()); }