private void AppendNoLegibleAnnotation() {
      Recording annotation = new Recording();
      oAnnotationPaymentEditorControl.Recording = annotation;
      annotation.RecordingBook = RecordingBook.Parse(int.Parse(Request.Form["cboAnnotationBook"]));
      annotation.UseBisNumberTag = chkUseBisAnnotationNumber.Checked;
      annotation.Number = txtAnnotationNumber.Value;
      annotation.Status = RecordingStatus.NoLegible;
      annotation.StartImageIndex = int.Parse(txtAnnotationImageStartIndex.Value);
      annotation.EndImageIndex = int.Parse(txtAnnotationImageEndIndex.Value);
      if (txtAnnotationPresentationTime.Value.Length != 0) {
        annotation.PresentationTime = EmpiriaString.ToDateTime(txtAnnotationPresentationDate.Value + " " + txtAnnotationPresentationTime.Value);
      } else if (txtAnnotationPresentationDate.Value.Length != 0) {
        annotation.PresentationTime = EmpiriaString.ToDate(txtAnnotationPresentationDate.Value);
      }
      if (txtAnnotationAuthorizationDate.Value.Length != 0) {
        annotation.AuthorizedTime = EmpiriaString.ToDate(txtAnnotationAuthorizationDate.Value);
      }
      if (Request.Form["cboAnnotationAuthorizedBy"].Length != 0) {
        annotation.AuthorizedBy = Contact.Parse(int.Parse(Request.Form["cboAnnotationAuthorizedBy"]));
      }
      annotation.Notes = txtAnnotationObservations.Value;
      oAnnotationDocumentEditor.Recording = annotation;
      oAnnotationDocumentEditor.FillRecordingDocument(RecordingDocumentType.Parse(int.Parse(cboAnnotationDocumentType.Value)));

      Property property = Property.Parse(int.Parse(cboAnnotationProperty.Value));
      RecordingActType annotationRecordingActType = RecordingActType.Parse(int.Parse(Request.Form["cboAnnotation"]));

      annotation.Save();
      oAnnotationPaymentEditorControl.SaveRecordingMainPayment();
      annotation.CreateRecordingAct(annotationRecordingActType, property);

      annotation.RecordingBook.Refresh();
    }
 private void AppendRecordingAct() {
   int propertyId = int.Parse(cboProperty.Value);
   Property property = null;
   if (propertyId == 0) {
     property = new Property();
   } else if (propertyId == -1) {
     property = Property.Parse(int.Parse(Request.Form["cboAnotherProperty"]));
   } else {
     property = Property.Parse(propertyId);
   }
   RecordingActType recordingActType = RecordingActType.Parse(int.Parse(Request.Form["cboRecordingActType"]));
   recording.CreateRecordingAct(recordingActType, property);
 }