예제 #1
0
    private void LoadJudicialDocument() {
      RecordingDocument document = base.Document;

      cboJudicialDocIssuePlace.Value = document.IssuePlace.Id.ToString();

      HtmlSelectContent.LoadCombo(this.cboJudicialDocIssueOffice, JudicialOffice.GetList(document.IssuePlace), "Id", "Number");
      cboJudicialDocIssueOffice.Items.Insert(0, new ListItem("( Seleccionar )", String.Empty));
      cboJudicialDocIssueOffice.Items.Insert(1, new ListItem("No consta", NotaryOffice.Unknown.Id.ToString()));
      cboJudicialDocIssueOffice.Value = document.IssueOffice.Id.ToString();

      HtmlSelectContent.LoadCombo(this.cboJudicialDocIssuedBy, JudicialOffice.Parse(document.IssueOffice.Id).GetJudges(),
                                  "Id", "FamilyFullName");
      //HtmlSelectContent.LoadCombo(this.cboJudicialDocIssuedBy, ((JudicialOffice) document.IssueOffice).GetJudges(),
      //                            "Id", "FamilyFullName");
      cboJudicialDocIssuedBy.Items.Insert(0, new ListItem("( Seleccionar al C. Juez )", String.Empty));
      cboJudicialDocIssuedBy.Items.Insert(1, new ListItem("No consta", Person.Unknown.Id.ToString()));
      cboJudicialDocIssuedBy.Value = document.IssuedBy.Id.ToString();

      txtJudicialDocBook.Value = document.BookNumber;
      txtJudicialDocNumber.Value = document.Number;
      if (document.IssueDate != ExecutionServer.DateMinValue) {
        txtJudicialDocIssueDate.Value = document.IssueDate.ToString("dd/MMM/yyyy");
      } else {
        txtJudicialDocIssueDate.Value = String.Empty;
      }
    }
예제 #2
0
    private void LoadJudicialDocument() {
      RecordingDocument document = base.Document;

      cboJudicialDocSubtype.Value = document.Subtype.Id.ToString();
      cboJudicialDocIssuePlace.Value = document.IssuePlace.Id.ToString();

      HtmlSelectContent.LoadCombo(this.cboJudicialDocIssueOffice, JudicialOffice.GetList(document.IssuePlace), "Id", "Number",
                                  "( Seleccionar )", String.Empty, "No consta");
      cboJudicialDocIssueOffice.Value = document.IssueOffice.Id.ToString();

      //if (document.IssueOffice is JudicialOffice) {
      HtmlSelectContent.LoadCombo(this.cboJudicialDocIssuedBy, JudicialOffice.Parse(document.IssueOffice.Id).GetJudges(),
                                  "Id", "FamilyFullName", "( C. Juez )", String.Empty, "No consta");
      //HtmlSelectContent.LoadCombo(this.cboJudicialDocIssuedBy, ((JudicialOffice) document.IssueOffice).GetJudges(),
      //                            "Id", "FamilyFullName", "( C. Juez )", String.Empty, "No consta");
      //} else {
      //  HtmlSelectContent.LoadCombo(this.cboJudicialDocIssuedBy, "( C. Juez )", String.Empty, "No consta");
      //}
      cboJudicialDocIssuedBy.Value = document.IssuedBy.Id.ToString();

      txtJudicialDocBook.Value = document.BookNumber;
      txtJudicialDocNumber.Value = document.Number;
      if (document.IssueDate != ExecutionServer.DateMinValue) {
        txtJudicialDocIssueDate.Value = document.IssueDate.ToString("dd/MMM/yyyy");
      } else {
        txtJudicialDocIssueDate.Value = String.Empty;
      }
    }
예제 #3
0
    private void LoadNotaryDocument() {
      RecordingDocument document = base.Document;

      cboNotaryDocIssuePlace.Value = document.IssuePlace.Id.ToString();

      HtmlSelectContent.LoadCombo(this.cboNotaryDocIssueOffice, NotaryOffice.GetList(document.IssuePlace), "Id", "Number",
                                  "( ? )", String.Empty, "N/C");

      cboNotaryDocIssueOffice.Value = document.IssueOffice.Id.ToString();

      HtmlSelectContent.LoadCombo(this.cboNotaryDocIssuedBy, NotaryOffice.Parse(document.IssueOffice.Id).GetNotaries(),
                                  "Id", "FamilyFullName", "( Seleccionar al C. Notario Público )", String.Empty,
                                  "No consta o no se puede determinar");

      cboNotaryDocIssuedBy.Value = document.IssuedBy.Id.ToString();

      txtNotaryDocBook.Value = document.BookNumber;
      txtNotaryDocNumber.Value = document.Number;
      txtNotaryDocStartSheet.Value = document.StartSheet;
      txtNotaryDocEndSheet.Value = document.EndSheet;
      if (document.IssueDate != ExecutionServer.DateMinValue) {
        txtNotaryDocIssueDate.Value = document.IssueDate.ToString("dd/MMM/yyyy");
      } else {
        txtNotaryDocIssueDate.Value = String.Empty;
      }
    }
예제 #4
0
    private void FillNotaryDocument(RecordingDocumentType documentType) {
      RecordingDocument document = base.Document;

      document.ChangeDocumentType(documentType);
      document.IssuePlace = GeographicRegionItem.Parse(int.Parse(cboNotaryDocIssuePlace.Value));
      document.IssueOffice = NotaryOffice.Parse(int.Parse(Request.Form[cboNotaryDocIssueOffice.Name]));
      document.BookNumber = txtNotaryDocBook.Value;
      document.Number = txtNotaryDocNumber.Value;
    }
예제 #5
0
    private string GetPrivateContractRecordingDocumentRawData(RecordingDocument document) {
      string rawData = "oPrivateRecording|";

      rawData += document.IssuePlace.Id.ToString() + "|";
      rawData += document.IssueDate.ToString("dd/MMM/yyyy") + "|";
      rawData += document.Number + "|";
      rawData += document.MainWitnessPosition.Id.ToString() + "|";
      rawData += document.MainWitness.Id.ToString();

      return rawData;
    }
예제 #6
0
    private string GetPropertyTitleRecordingDocumentRawData(RecordingDocument document) {
      string rawData = "oTitleRecording|";

      rawData += document.Number + "|";
      rawData += document.IssuedBy.Id.ToString() + "|";
      rawData += document.IssueDate.ToString("dd/MMM/yyyy") + "|";
      rawData += document.IssueOffice.Id + "|";
      rawData += document.StartSheet;

      return rawData;
    }
예제 #7
0
    private string GetJudicialOrderRecordingDocumentRawData(RecordingDocument document) {
      string rawData = "oJudicialRecording|";

      rawData += document.IssuePlace.Id.ToString() + "|";
      rawData += document.IssueOffice.Id.ToString() + "|";
      rawData += document.IssuedBy.Id.ToString() + "|";
      rawData += document.BookNumber + "|";
      rawData += document.Number + "|";
      rawData += document.IssueDate.ToString("dd/MMM/yyyy");

      return rawData;
    }
예제 #8
0
    private void LoadNotaryDocument() {
      RecordingDocument document = base.Document;

      cboNotaryDocIssuePlace.Value = document.IssuePlace.Id.ToString();

      HtmlSelectContent.LoadCombo(this.cboNotaryDocIssueOffice, NotaryOffice.GetList(document.IssuePlace), "Id", "Number");
      cboNotaryDocIssueOffice.Items.Insert(0, new ListItem("( ? )", String.Empty));
      cboNotaryDocIssueOffice.Items.Insert(1, new ListItem("N/C", NotaryOffice.Unknown.Id.ToString()));
      cboNotaryDocIssueOffice.Value = document.IssueOffice.Id.ToString();

      txtNotaryDocBook.Value = document.BookNumber;
      txtNotaryDocNumber.Value = document.Number;
    }
예제 #9
0
    private void LoadPropertyTitleDocument() {
      RecordingDocument document = base.Document;

      txtPropTitleDocNumber.Value = document.Number;
      cboPropTitleDocIssuedBy.Value = document.IssuedBy.Id.ToString();
      cboPropTitleIssueOffice.Value = document.IssueOffice.Id.ToString();
      txtPropTitleStartSheet.Value = document.StartSheet;
      if (document.IssueDate != ExecutionServer.DateMinValue) {
        txtPropTitleIssueDate.Value = document.IssueDate.ToString("dd/MMM/yyyy");
      } else {
        txtPropTitleIssueDate.Value = String.Empty;
      }
    }
예제 #10
0
    private string GetNotaryDeedRecordingDocumentRawData(RecordingDocument document) {
      string rawData = "oNotaryRecording|";

      rawData += document.IssuePlace.Id.ToString() + "|";
      rawData += document.IssueOffice.Id.ToString() + "|";
      rawData += document.IssuedBy.Id.ToString() + "|";
      rawData += document.BookNumber + "|";
      rawData += document.Number + "|";
      rawData += document.StartSheet + "|";
      rawData += document.EndSheet + "|";
      rawData += document.IssueDate.ToString("dd/MMM/yyyy");

      return rawData;
    }
예제 #11
0
    private void FillPrivateContractDocument(RecordingDocumentType documentType) {
      RecordingDocument document = base.Document;

      document.ChangeDocumentType(documentType);
      document.IssuePlace = GeographicRegionItem.Parse(int.Parse(cboPrivateDocIssuePlace.Value));
      document.Number = txtPrivateDocNumber.Value;
      document.MainWitnessPosition = TypeAssociationInfo.Parse(int.Parse(Request.Form[cboPrivateDocMainWitnessPosition.Name]));
      document.MainWitness = Contact.Parse(int.Parse(Request.Form[cboPrivateDocMainWitness.Name]));
      if (txtPrivateDocIssueDate.Value.Length != 0) {
        document.IssueDate = EmpiriaString.ToDate(txtPrivateDocIssueDate.Value);
      } else {
        document.IssueDate = ExecutionServer.DateMinValue;
      }
    }
예제 #12
0
    private void FillPropertyTitleDocument(RecordingDocumentType documentType) {
      RecordingDocument document = base.Document;

      document.ChangeDocumentType(documentType);
      document.Number = txtPropTitleDocNumber.Value;
      document.IssuedBy = Contact.Parse(int.Parse(cboPropTitleDocIssuedBy.Value));
      document.IssueOffice = Organization.Parse(int.Parse(cboPropTitleIssueOffice.Value));
      document.StartSheet = txtPropTitleStartSheet.Value;
      if (txtPropTitleIssueDate.Value.Length != 0) {
        document.IssueDate = EmpiriaString.ToDate(txtPropTitleIssueDate.Value);
      } else {
        document.IssueDate = ExecutionServer.DateMinValue;
      }
    }
예제 #13
0
    private void FillJudicialDocument(RecordingDocumentType documentType) {
      RecordingDocument document = base.Document;

      document.ChangeDocumentType(documentType);
      document.IssuePlace = GeographicRegionItem.Parse(int.Parse(Request.Form[cboJudicialDocIssuePlace.Name]));
      document.IssueOffice = Organization.Parse(int.Parse(Request.Form[cboJudicialDocIssueOffice.Name]));
      document.IssuedBy = Contact.Parse(int.Parse(Request.Form[cboJudicialDocIssuedBy.Name]));
      document.BookNumber = txtJudicialDocBook.Value;
      document.Number = txtJudicialDocNumber.Value;
      if (txtJudicialDocIssueDate.Value.Length != 0) {
        document.IssueDate = EmpiriaString.ToDate(txtJudicialDocIssueDate.Value);
      } else {
        document.IssueDate = ExecutionServer.DateMinValue;
      }
    }
예제 #14
0
    private void FillNotaryDocument(RecordingDocumentType documentType) {
      RecordingDocument document = base.Document;

      document.ChangeDocumentType(documentType);
      document.IssuePlace = GeographicRegionItem.Parse(int.Parse(cboNotaryDocIssuePlace.Value));
      document.IssueOffice = NotaryOffice.Parse(int.Parse(Request.Form[cboNotaryDocIssueOffice.Name]));
      document.IssuedBy = Contact.Parse(int.Parse(Request.Form[cboNotaryDocIssuedBy.Name]));
      document.BookNumber = txtNotaryDocBook.Value;
      document.Number = txtNotaryDocNumber.Value;
      document.StartSheet = txtNotaryDocStartSheet.Value;
      document.EndSheet = txtNotaryDocEndSheet.Value;
      if (txtNotaryDocIssueDate.Value.Length != 0) {
        document.IssueDate = EmpiriaString.ToDate(txtNotaryDocIssueDate.Value);
      } else {
        document.IssueDate = ExecutionServer.DateMinValue;
      }
    }
예제 #15
0
    private void LoadPrivateContractDocument() {
      RecordingDocument document = base.Document;

      cboPrivateDocIssuePlace.Value = document.IssuePlace.Id.ToString();
      txtPrivateDocNumber.Value = document.Number;
      cboPrivateDocMainWitnessPosition.Value = document.MainWitnessPosition.Id.ToString();

      TypeAssociationInfo role = document.IssuePlace.ObjectTypeInfo.GetAssociation(document.MainWitnessPosition.Id);

      HtmlSelectContent.LoadCombo(this.cboPrivateDocMainWitness, document.IssuePlace.GetPeople(role.Name), "Id", "FamilyFullName");
      cboPrivateDocMainWitness.Items.Insert(0, new ListItem("( Seleccionar al C. Funcionario Público )", String.Empty));
      cboPrivateDocMainWitness.Items.Insert(1, new ListItem("No consta o no se puede determinar", Person.Unknown.Id.ToString()));

      cboPrivateDocMainWitness.Value = document.MainWitness.Id.ToString();
      if (document.IssueDate != ExecutionServer.DateMinValue) {
        txtPrivateDocIssueDate.Value = document.IssueDate.ToString("dd/MMM/yyyy");
      } else {
        txtPrivateDocIssueDate.Value = String.Empty;
      }
    }
예제 #16
0
    private void LoadPrivateContractDocument() {
      RecordingDocument document = base.Document;

      cboPrivateDocSubtype.Value = document.Subtype.Id.ToString();
      cboPrivateDocIssuePlace.Value = document.IssuePlace.Id.ToString();
      txtPrivateDocNumber.Value = document.Number;
      cboPrivateDocMainWitnessPosition.Value = document.MainWitnessPosition.Id.ToString();
      if (document.MainWitnessPosition.Id == -1) {
        cboPrivateDocMainWitness.Items.Clear();
        cboPrivateDocMainWitness.Items.Add(new ListItem("No consta o no se puede determinar", "-2"));
      } else {
        HtmlSelectContent.LoadCombo(this.cboPrivateDocMainWitness, document.IssuePlace.GetPeople(document.MainWitnessPosition.Name), "Id", "FamilyFullName",
                                    "( Seleccionar al C. Funcionario Público )", String.Empty, "No consta o no se puede determinar");
      }
      cboPrivateDocMainWitness.Value = document.MainWitness.Id.ToString();
      if (document.IssueDate != ExecutionServer.DateMinValue) {
        txtPrivateDocIssueDate.Value = document.IssueDate.ToString("dd/MMM/yyyy");
      } else {
        txtPrivateDocIssueDate.Value = String.Empty;
      }
    }
예제 #17
0
 protected override void ImplementsFillRecordingDocument(RecordingDocumentType documentType) {
   if (base.Document.IsEmptyInstance) {
     base.Document = RecordingDocument.Create(documentType, base.Recording);
   }
   switch (documentType.Name) {
     case "ObjectType.RecordingDocument.NotaryDeed":
       FillNotaryDocument(documentType);
       return;
     case "ObjectType.RecordingDocument.PropertyTitle":
       FillPropertyTitleDocument(documentType);
       return;
     case "ObjectType.RecordingDocument.JudicialOrder":
       FillJudicialDocument(documentType);
       return;
     case "ObjectType.RecordingDocument.PrivateContract":
       FillPrivateContractDocument(documentType);
       return;
     case "ObjectType.RecordingDocument.Empty":
       FillEmptyRecordingDocument(documentType);
       return;
   }
 }
예제 #18
0
    private void FillEmptyRecordingDocument(RecordingDocumentType documentType) {
      RecordingDocument document = base.Document;

      document.ChangeDocumentType(documentType);
    }
예제 #19
0
 public static string AsJson(this RecordingDocument doc)
 => JsonConvert.SerializeObject(doc);
예제 #20
0
 public static Recording AsEntity(this RecordingDocument doc)
 => new Recording(doc.Id, doc.TrackName);