using System; using System.Collections.Generic; using System.Linq; using System.Text; using CY.IBaseDAL; using CY.Model; using CY.Infrastructure.Query; using CY.Model.Inquiry; namespace CY.IDAL.Inquiry { /// /// 纸张相关数据库操作接口 /// public interface IPaperInfoDAL : ICommonDAL { /// /// 分页获取纸张列表 /// /// 品牌名称 /// 分页参数 /// IEnumerable GetPaperListByPaging(string paperName,int paperTypeId,string status, Pagination pa); /// /// 获取纸张类型下的所有有效纸张 /// /// /// IEnumerable GetPaperListByPaperType(int paperTypeId); /// /// 根据paperId获取纸张信息 /// /// /// IEnumerable GetPaperList(int paperId); /// /// 根据paperId获取其对应的品牌列表 /// /// /// IEnumerable GetBrandInfoListByPaper(int paperId); /// /// 判断是否有相同的纸扎名称 /// /// /// bool IsExistspeperName(string peperName); /// /// 获取最新的纸张编号 /// /// int GetNewPaperId(); /// /// 新增纸张 /// /// /// bool InsertPaper(IList modelList,IList brandList); /// /// 修改纸张 /// /// /// bool UpdatePaper(IList modelList, IList brandList); /// /// 获取有效的纸张列表(不包括自带纸) /// /// IEnumerable GetPaperList(); /// /// 获取有效的纸张列表(包括自带纸) /// /// IEnumerable GetAllPaperList(); /// /// 根据纸张Id和品牌ID获取纸价列表 /// /// /// /// /// IEnumerable GetAllPaperPriceList(int paperId, int brandId, Guid inquiryId); /// /// 根据纸张Id和品牌ID保存纸价 /// /// /// bool SavePaperPrice(List modelList, InquiryCondition inquiryCondition); /// /// 获取纸张的吨价 /// /// /// /// /// decimal GetTonsOfPrice(int paperId, int gramWeight, int brandId, Guid inquiryId); /// /// 获取纸张的品牌列表,第一个是默认品牌 /// /// /// IList GetBrandInfoByPaper(int paperId); /// /// 获取最新排序顺序 /// /// int GetOrderNumByMax(int paperTypeId); } }