interface.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows.Media.Media3D;
  7. namespace wpf_connection3.model
  8. {
  9. public interface IDataProvider
  10. {
  11. IEnumerable<Product> getProduct(int pageNum);
  12. int getProductCount();
  13. void setOrder(string condition);
  14. List<ProductType> getProductTypes();
  15. void clearFilter();
  16. void addFilter(string name, object value);
  17. void setMinCostForAgent(decimal minCost, int[] ids);
  18. int getArticleCheck(string article, int ID);
  19. void saveProduct(Product product);
  20. int saleCount(int ID);
  21. void removeProductMaterial(int ID);
  22. void removeProductCostHistory(int ID);
  23. void removeProduct(int iD);
  24. List<ProductMaterial> getProductMaterials(int ID);
  25. void deleteProductMaterial(int productId, int materialId);
  26. List<Material> getMaterials();
  27. void addProductMaterial(ProductMaterial material);
  28. }
  29. }