using System; using System.Collections.Generic; using System.Linq; using System.Web; using VueWebApi.DLL.DAL; using VueWebApi.Models; using VueWebApi.Tools; namespace VueWebApi.DLL.BLL { public class ProductModelBLL { #region [存货类型] public static ToMessage StockTypeSelect() { return ProductModelDAL.StockTypeSelect(); } #endregion #region[物料类型查询] public static ToMessage MaterialTypeSearch(string materialtypecode, string materialtypename, string stocktypecode, int startNum, int endNum, string prop, string order) { return ProductModelDAL.MaterialTypeSearch(materialtypecode, materialtypename, stocktypecode, startNum, endNum, prop, order); } #endregion #region[物料类型新增编辑] public static ToMessage AddUpdateMaterialType(string materialtypeid, string materialtypecode, string materialtypename, string stocktypecode, string username, string operType) { return ProductModelDAL.AddUpdateMaterialType(materialtypeid,materialtypecode, materialtypename, stocktypecode, username, operType); } #endregion #region[物料类型删除] public static ToMessage DeleteMaterialType(string materialtypecode) { return ProductModelDAL.DeleteMaterialType(materialtypecode); } #endregion #region[单位列表查询] public static ToMessage UomSearch(int startNum, int endNum, string prop, string order) { return ProductModelDAL.UomSearch(startNum,endNum,prop,order); } #endregion #region[单位新增] public static ToMessage UomAdd(string username, List json) { return ProductModelDAL.UomAdd(username,json); } #endregion #region[单位删除] public static ToMessage UomDelete(string uomcode) { return ProductModelDAL.UomDelete(uomcode); } #endregion #region[存类型查找物料类型] public static ToMessage StockTypeSelectMaterialType(string stocktypecode) { return ProductModelDAL.StockTypeSelectMaterialType(stocktypecode); } #endregion #region[存货档案查询] public static ToMessage InventoryFileSelect(string partcode, string partname, string partspec, string stocktypecode, string materialtypecode, string storehousecode, int startNum, int endNum, string prop, string order) { return ProductModelDAL.InventoryFileSelect(partcode, partname, partspec, stocktypecode, materialtypecode, storehousecode, startNum, endNum, prop, order); } #endregion #region[存货档案新增编辑] public static ToMessage AddUpdateInventoryFile(string materialid, string materialcode, string materialname, string materialspec, string uomcode, string warehousecode, string stocktypecode, string materialtypecode, string minstockqty, string maxstockqty, string username, string operType) { return ProductModelDAL.AddUpdateInventoryFile(materialid, materialcode, materialname, materialspec, uomcode, warehousecode, stocktypecode, materialtypecode, minstockqty, maxstockqty, username, operType); } #endregion #region[存货档案删除] public static ToMessage DeleteInventoryFile(string materialcode) { return ProductModelDAL.DeleteInventoryFile(materialcode); } #endregion #region[存货档案关联工艺路线查询] public static ToMessage InventoryFileAssociationRoute(string partcode) { return ProductModelDAL.InventoryFileAssociationRoute(partcode); } #endregion } }