using System;
using System.Collections.Generic;
using System.Text;
using Song.Entities;
using System.Data;
namespace Song.ServiceInterfaces
{
///
/// 产品的管理,以及产品相关的管理
///
public interface IProduct : WeiSha.Common.IBusinessInterface
{
#region 产品咨询留言的管理
///
/// 添加产品咨询留言
///
/// 业务实体
int MessageAdd(ProductMessage entity);
///
/// 修改产品咨询留言
///
/// 业务实体
void MessageSave(ProductMessage entity);
///
/// 删除产品咨询留言
///
/// 业务实体
void MessageDelete(ProductMessage entity);
///
/// 彻底删除产品咨询留言,按主键ID;
///
/// 实体的主键
void MessageDelete(int identify);
///
/// 获取单一实体对象,按主键ID;
///
/// 实体的主键
///
ProductMessage MessageSingle(int identify);
///
/// 获取当前咨询留言关联的产品信息
///
///
///
Product ProductByMessage(int pmid);
///
/// 获取留言分页信息
///
/// 产品id
///
/// 是否回复
/// 是否允许显示
///
///
///
///
ProductMessage[] GetProductMessagePager(int? pdid, string searTxt, bool? isAns,bool? isShow, int size, int index, out int countSum);
ProductMessage[] GetProductMessagePager(string searTxt, bool? isAns, bool? isShow, int size, int index, out int countSum);
#endregion
#region 产品厂家
///
/// 新增产品厂家
///
///
void FactoryAdd(ProductFactory entity);
///
/// 修改
///
/// 业务实体
void FactorySave(ProductFactory entity);
///
/// 删除,按主键ID;
///
/// 实体的主键
void FactoryDelete(int identify);
///
/// 获取单一实体对象,按主键ID;
///
/// 实体的主键
///
ProductFactory FactorySingle(int identify);
///
/// 获取所有产品厂家
///
///
///
ProductFactory[] FactoryAll(bool? isUse);
///
/// 分页获取厂家信息
///
///
///
///
///
///
///
ProductFactory[] FactoryPager(bool? isUse, string searTxt, int size, int index, out int countSum);
#endregion
#region 产品材质
///
/// 新增产品材质
///
///
void MaterialAdd(ProductMaterial entity);
///
/// 修改
///
/// 业务实体
void MaterialSave(ProductMaterial entity);
///
/// 删除,按主键ID;
///
/// 实体的主键
void MaterialDelete(int identify);
///
/// 获取单一实体对象,按主键ID;
///
/// 实体的主键
///
ProductMaterial MaterialSingle(int identify);
///
/// 获取所有产品材质
///
///
///
ProductMaterial[] MaterialAll(bool? isUse);
///
/// 分页获取材质信息
///
///
///
///
///
///
///
ProductMaterial[] MaterialPager(bool? isUse, string searTxt, int size, int index, out int countSum);
#endregion
#region 产品产地
///
/// 新增产品产地
///
///
void OriginAdd(ProductOrigin entity);
///
/// 修改
///
/// 业务实体
void OriginSave(ProductOrigin entity);
///
/// 删除,按主键ID;
///
/// 实体的主键
void OriginDelete(int identify);
///
/// 获取单一实体对象,按主键ID;
///
/// 实体的主键
///
ProductOrigin OriginSingle(int identify);
///
/// 获取所有产品产地
///
///
///
ProductOrigin[] OriginAll(bool? isUse);
///
/// 分页获取产地信息
///
///
///
///
///
///
///
ProductOrigin[] OriginPager(bool? isUse, string searTxt, int size, int index, out int countSum);
#endregion
}
}