public void DeleteAirframeMaintainContract(AirframeMaintainContractDTO airframeMaintainContract)
 {
     MaintainContract deleteAirframeMaintainContract =
         _contractRepository.Get(airframeMaintainContract.AirframeMaintainContractId);
     //获取需要删除的对象。
     _contractRepository.Remove(deleteAirframeMaintainContract);
 }
 public void ModifyAirframeMaintainContract(AirframeMaintainContractDTO airframeMaintainContract)
 {
     MaintainContract updateAirframeMaintainContract =
         _contractRepository.Get(airframeMaintainContract.AirframeMaintainContractId);
     MaintainContractFactory.SetMaintainContract(updateAirframeMaintainContract, airframeMaintainContract.Name,
         airframeMaintainContract.Number, airframeMaintainContract.Signatory,
         airframeMaintainContract.SignDate, airframeMaintainContract.Abstract,
         airframeMaintainContract.SignatoryId, airframeMaintainContract.DocumentId,
         airframeMaintainContract.DocumentName);
     //获取需要更新的对象。
     _contractRepository.Modify(updateAirframeMaintainContract);
 }
 public void InsertAirframeMaintainContract(AirframeMaintainContractDTO airframeMaintainContract)
 {
     AirframeMaintainContract newAirframeMaintainContract =
         MaintainContractFactory.CreateAirframeMaintainContract();
     MaintainContractFactory.SetMaintainContract(newAirframeMaintainContract, airframeMaintainContract.Name,
         airframeMaintainContract.Number, airframeMaintainContract.Signatory,
         airframeMaintainContract.SignDate, airframeMaintainContract.Abstract,
         airframeMaintainContract.SignatoryId, airframeMaintainContract.DocumentId,
         airframeMaintainContract.DocumentName);
     _contractRepository.Add(newAirframeMaintainContract);
 }