package market.Qms.com.service;

import java.util.List;

import market.Qms.com.vo.BaseGrade;
import market.Qms.common.RequestModel;
import market.Qms.common.ReturnMsg;
import market.Qms.metallurgy.vo.ComBaseGradeRPline;
import market.Qms.metallurgy.vo.ComBaseGradeRSteel;

import com.hnshituo.basic.service.BaseService;

public interface BaseGradeService extends BaseService<BaseGrade, String> {

	/**
	 *获取牌号
	 * @param grade
	 * @return
	 */
	ReturnMsg<List<BaseGrade>> GetGrade(RequestModel<BaseGrade> grade);
	
	/**
	 * 保存
	 * @param grade
	 * @return
	 */
	ReturnMsg<BaseGrade> SaveGrade(BaseGrade grade);
	
	/**
	 * 新增（三个表的新增）
	 * @param grade
	 * @return
	 */
	ReturnMsg<BaseGrade> SaveGradeSteel(BaseGrade grad,List<ComBaseGradeRPline> Plinelist,List<ComBaseGradeRSteel> Steellist);
	
	/**
	 * 新增（三个表的修改）
	 * @param grade
	 * @return
	 */
	ReturnMsg<BaseGrade> UpdateSaveGradeSteel(BaseGrade grad,List<ComBaseGradeRPline> Plinelist,List<ComBaseGradeRSteel> Steellist);
	
	/**
	 * 作废或恢复
	 * @param gradeCode
	 * @param flag
	 * @return
	 */
	ReturnMsg DelOrRenewGrade(String deleteName,String gradeCode,Boolean flag);

}
