package com.uas.platform.b2b.erp.service;

import java.util.List;

import com.uas.platform.b2b.erp.model.Inquiry;
import com.uas.platform.b2b.erp.model.InquiryDecide;
import com.uas.platform.b2b.erp.model.InquiryDetail;
import com.uas.platform.b2b.model.PurchaseInquiryItem;
import com.uas.platform.b2b.model.SaleQuotation;
import com.uas.platform.b2b.model.SaleQuotationItem;

public interface InquiryService {

	/**
	 * 将ERP系统的采购询价，转为平台的询价单
	 * 
	 * @param inquiries
	 * @return
	 */
	List<PurchaseInquiryItem> convertInquiry(List<Inquiry> inquiries);

	/**
	 * 将平台的报价信息，转为买家ERP的报价信息
	 * 
	 * @param inquiryItems
	 * @return
	 */
	List<InquiryDetail> convertPurchaseInquiryReply(List<PurchaseInquiryItem> inquiryItems);

	/**
	 * 将买家ERP对报价信息的采纳结果，转到平台的询价明细里面
	 * 
	 * @param decides
	 * @return
	 */
	List<PurchaseInquiryItem> convertInquiryDecide(List<InquiryDecide> decides);

	/**
	 * 将平台的主动报价，转为买家的主动报价
	 * 
	 * @param quotations
	 * @return
	 */
	List<Inquiry> convertSaleQuotation(List<SaleQuotation> quotations);

	/**
	 * 将买家ERP对主动报价的采纳结果，转到平台的主动报价明细里面
	 * 
	 * @param decides
	 * @return
	 */
	List<SaleQuotationItem> convertQuotationDecide(List<InquiryDecide> decides);

}
