Exemple #1
0
 private void FillHumanPartyOnRecording() {
   ObjectList<RecordingActParty> list = RecordingActParty.GetList(this.RecordingAct.Recording, this.Party);
   foreach (RecordingActParty rap in list) {
     if ((rap.Party.Equals(this.Party) && rap.SecondaryParty.IsEmptyInstance) || rap.SecondaryParty.Equals(this.Party)) {
       UpdateRecordingActParty(rap);
     }
   }
 }
Exemple #2
0
    private void LoadHumanParty() {
      HumanParty person = (HumanParty) this.Party;

      cboPartyType.Value = person.ObjectTypeInfo.Id.ToString();

      if (person.RegistryDate != ExecutionServer.DateMaxValue) {
        txtBornDate.Value = person.RegistryDate.ToString("dd/MMM/yyyy");
      } else {
        txtBornDate.Value = String.Empty;
      }
      txtFirstFamilyName.Value = person.FirstFamilyName;
      txtFirstName.Value = person.FirstName;
      txtMaritalFamilyName.Value = person.MaritalFamilyName;
      cboGender.Value = ((char) person.Gender).ToString();
      txtIFENumber.Value = person.IFENumber;
      txtCURPNumber.Value = person.CURPNumber;
      txtTaxIDNumber.Value = person.TaxIDNumber;
      txtNicknames.Value = person.Nicknames;
      txtSecondFamilyName.Value = person.SecondFamilyName;

      cboBornLocation.Items.Clear();
      cboBornLocation.Items.Add(new ListItem(person.RegistryLocation.CompoundName, person.RegistryLocation.Id.ToString()));

      ObjectList<RecordingActParty> list = RecordingActParty.GetList(this.RecordingAct.Recording, this.Party);
      List<RecordingActParty> p = list.FindAll((x) => (x.Party.Equals(this.Party) && x.SecondaryParty.IsEmptyInstance) || x.SecondaryParty.Equals(this.Party));

      RecordingActParty lastParty = null;
      if (p.Count != 0) {
        lastParty = p[0];
      } else {
        lastParty = person.GetLastRecordingActParty(this.recordingAct.Recording.PresentationTime);
      }
      if (lastParty == null) {
        isLoaded = true;
        return;
      }
      txtAddress.Value = lastParty.PartyAddress;
      cboAddressPlace.Items.Clear();
      cboAddressPlace.Items.Add(new ListItem(lastParty.PartyAddressPlace.CompoundName, lastParty.PartyAddressPlace.Id.ToString()));
      cboOccupation.Value = lastParty.PartyOccupation.Id.ToString();
      cboMarriageStatus.Value = lastParty.PartyMarriageStatus.Id.ToString();

      isLoaded = true;
    }