class ManterObitoNecropsiaON extends BaseBusiness {

	public void versionarObitoNecropsia(MpmAltaSumario altaSumario, Short antigoAsuSeqp) throws ApplicationBusinessException {
		
		if(altaSumario!=null){
			MpmObitoNecropsia obitoNecropsia = this.getMpmObitoNecropsiaDAO().obterMpmObitoNecropsia(altaSumario.getId().getApaAtdSeq(), altaSumario.getId().getApaSeq(), antigoAsuSeqp);
			
			if (obitoNecropsia != null) {
				
				MpmObitoNecropsia novoObitoNecropsia = new MpmObitoNecropsia();
				novoObitoNecropsia.setAltaSumario(altaSumario);
				novoObitoNecropsia.setNecropsia(obitoNecropsia.getNecropsia());
				this.getManterObitoNecropsiaRN().inserirObitoNecropsia(novoObitoNecropsia);
				
			}
		}

	}

}