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; } }
private void LoadMainCombos() { RecordingBook book = base.Recording.RecordingBook; RecorderOffice office = base.Recording.RecordingBook.RecorderOffice; HtmlSelectContent.LoadCombo(this.cboNotaryDocIssuePlace, office.GetNotaryOfficePlaces(), "Id", "Name", "( Seleccionar )", String.Empty, "No consta"); HtmlSelectContent.LoadCombo(this.cboPrivateDocIssuePlace, office.GetPrivateDocumentIssuePlaces(), "Id", "Name", "( Seleccionar )", String.Empty, "No consta"); HtmlSelectContent.LoadCombo(this.cboJudicialDocIssuePlace, office.GetJudicialDocumentIssuePlaces(), "Id", "Name", "( Seleccionar )", String.Empty, "No consta"); ObjectList<Contact> signers = office.GetPropertyTitleSigners(book.RecordingsControlTimePeriod); HtmlSelectContent.LoadCombo(this.cboPropTitleDocIssuedBy, signers, "Id", "FullName", "( Seleccionar al C. Funcionario Público )", String.Empty, "No consta o no se puede determinar"); HtmlSelectContent.LoadCombo(this.cboPropTitleIssueOffice, office.GetPropertyTitleOffices(), "Id", "Alias", "( Seleccionar )", String.Empty, "No consta"); GeneralList listType = GeneralList.Parse("PrivateContract.WitnessPosition.List"); ObjectList<TypeAssociationInfo> witnessRole = listType.GetTypeRelationItems<TypeAssociationInfo>(); HtmlSelectContent.LoadCombo(this.cboPrivateDocMainWitnessPosition, witnessRole, "Id", "DisplayName", "( Seleccionar )", "No consta", String.Empty); }
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; } }
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; } }
private void LoadRecordingActCombos() { RecordingActTypeCategory recordingActTypeCategory = RecordingActTypeCategory.Parse(int.Parse(cboRecordingActTypeCategory.Value)); ObjectList<RecordingActType> list = recordingActTypeCategory.GetItems(); HtmlSelectContent.LoadCombo(this.cboRecordingActType, list, "Id", "DisplayName", "( Seleccionar el acto jurídico )"); }
private void LoadCombos() { ObjectList<Contact> list = TransactionData.GetContactsWithOutboxDocuments(); HtmlSelectContent.LoadCombo(this.cboFrom, list, "Id", "Alias", "( ¿Quién le está entregando? )", String.Empty, String.Empty); DataView view = TransactionData.GetContactsWithActiveTransactions(); HtmlSelectContent.LoadCombo(this.cboResponsible, view, "ResponsibleId", "Responsible", "( Todos los responsables )", String.Empty, String.Empty); }
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; }
private void LoadPostalCodesCombo() { cboPostalCode.Items.Clear(); ObjectList<GeographicRegionItem> list = new ObjectList<GeographicRegionItem>(); GeographicItemType postalCodeType = property.PostalCode.GeographicItemType; if (property.Settlement.Id > 0) { list = property.Settlement.GetRegions("Settlement_PostalCodes", postalCodeType); } else if (property.Municipality.Id > 0) { list = property.Municipality.GetRegions("Municipality_PostalCodes"); } else if (property.Municipality.Equals(GeographicRegionItem.Unknown)) { // no-op } else { cboPostalCode.Items.Add(new ListItem("Municipio?", String.Empty)); return; } HtmlSelectContent.LoadCombo(cboPostalCode, list, "Id", "Name", list.Count != 0 ? "( ? )" : "( No def )", String.Empty, GeographicRegionItem.Unknown.Name); }
private void LoadMainCombos() { HtmlSelectContent.LoadCombo(this.cboOccupation, Occupation.GetList(), "Id", "Name", "( Seleccionar )", String.Empty, "No consta"); HtmlSelectContent.LoadCombo(this.cboMarriageStatus, MarriageStatus.GetList(), "Id", "Name", "( ? )", String.Empty, "No consta"); HtmlSelectContent.LoadCombo(cboBornLocation, "( Seleccionar lugar de nacimiento )", String.Empty, GeographicRegionItem.Unknown.Name); HtmlSelectContent.LoadCombo(cboAddressPlace, "( Seleccionar lugar de residencia )", String.Empty, GeographicRegionItem.Unknown.Name); ObjectList<RecordingActParty> parties = RecordingActParty.GetInvolvedDomainParties(this.recordingAct); LoadRolesCombo(parties); LoadFirstPartyInRoleCombo(parties); }
private void LoadEditor() { txtTransactionKey.Value = transaction.Key; cboRecorderOffice.Value = transaction.RecorderOffice.Id.ToString(); txtReceiptNumber.Value = transaction.ReceiptNumber; if (transaction.ReceiptNumber.Length != 0) { txtReceiptTotal.Value = transaction.ReceiptTotal.ToString("N2"); } ObjectList<LRSDocumentType> list = transaction.TransactionType.GetDocumentTypes(); HtmlSelectContent.LoadCombo(cboDocumentType, list, "Id", "Name", "( Seleccionar )", String.Empty, String.Empty); HtmlSelectContent.LoadCombo(cboManagementAgency, LRSTransaction.GetManagementAgenciesList(), "Id", "FullName", String.Empty, "Particular", String.Empty); cboDocumentType.Value = transaction.DocumentType.Id.ToString(); txtDocumentNumber.Value = transaction.DocumentNumber; txtRequestedBy.Value = transaction.RequestedBy; txtContactEMail.Value = transaction.ContactEMail; txtContactPhone.Value = transaction.ContactPhone; txtPresentationDate.Value = transaction.PresentationTime.ToString("dd/MMM/yyyy HH:mm"); txtControlNumber.Value = transaction.ControlNumber; txtReceivedBy.Value = transaction.ReceivedBy.Alias; txtRequestNotes.Value = transaction.RequestNotes; cboManagementAgency.Value = transaction.ManagementAgency.Id.ToString(); cboRecordingActType.SelectedIndex = 0; cboLawArticle.SelectedIndex = 0; txtOperationValue.Value = String.Empty; if (transaction.IsNew) { cmdSaveTransaction.Value = "Crear la solicitud"; } else { cmdSaveTransaction.Value = "Guardar la solicitud"; LoadRecordingActCombos(); } }
private void LoadAnotherPropertyRecorderOfficesCombo() { LRSHtmlSelectControls.LoadRecorderOfficeCombo(this.cboAnotherRecorderOffice, ComboControlUseMode.ObjectCreation, recordingBook.RecorderOffice); ObjectList<RecordingBook> recordingBookList = recordingBook.RecorderOffice.GetTraslativeRecordingBooks(); if (recordingBookList.Count != 0) { HtmlSelectContent.LoadCombo(this.cboAnotherRecordingBook, recordingBookList, "Id", "FullName", "( Seleccionar el libro registral donde se encuentra )", String.Empty, String.Empty); } else { HtmlSelectContent.LoadCombo(this.cboAnotherRecordingBook, "No existen libros de traslativo de dominio para el Distrito", String.Empty, String.Empty); } cboAnotherRecording.Items.Clear(); cboAnotherRecording.Items.Add(new ListItem("¿Libro?", String.Empty)); cboAnotherProperty.Items.Clear(); cboAnotherProperty.Items.Add(new ListItem("( ¿Inscripción? )", String.Empty)); }
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; } }
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; } }
private void LoadSettlementsCombo() { cboSettlement.Items.Clear(); ObjectList<GeographicRegionItem> list = new ObjectList<GeographicRegionItem>(); GeographicItemType settlementType = property.Settlement.GeographicItemType; if (property.Settlement.Id >= 0) { list = property.Municipality.GetRegions("Municipality_Settlements", settlementType); } else if (property.Municipality.Id > 0) { list = property.Municipality.GetRegions("Municipality_Settlements"); } else if (property.Municipality.Equals(GeographicRegionItem.Unknown)) { // no-op } else { cboSettlement.Items.Add(new ListItem("( Primero seleccionar un municipio )", String.Empty)); return; } string headerItem = String.Empty; if (list.Count != 0) { headerItem = "( Seleccionar" + (settlementType.FemaleGenre ? " una " : " un ") + settlementType.DisplayName.ToLowerInvariant() + " )"; } else { headerItem = "( No hay " + settlementType.DisplayPluralName.ToLowerInvariant() + (settlementType.FemaleGenre ? " definidas )" : " definidos )"); } HtmlSelectContent.LoadCombo(cboSettlement, list, "Id", "Name", headerItem, String.Empty, GeographicRegionItem.Unknown.Name); }
private void LoadRolesCombo(ObjectList<RecordingActParty> parties) { this.cboRole.Items.Clear(); if (parties.Count == 0 || parties.Count((x) => x.OwnershipMode == OwnershipMode.Owner) == 0) { HtmlSelectContent.LoadCombo(this.cboRole, this.recordingAct.RecordingActType.GetRoles(), "Id", "Name", "( Seleccionar rol )"); } else { HtmlSelectContent.LoadCombo(this.cboRole, "( Seleccionar rol )", String.Empty, String.Empty); } List<RecordingActParty> bareOwnersList = parties.FindAll((x) => x.OwnershipMode == OwnershipMode.Bare); if (bareOwnersList.Count != 0) { this.cboRole.Items.Add(new ListItem(DomainActPartyRole.Usufructuary.Name, DomainActPartyRole.Usufructuary.Id.ToString())); HtmlSelectContent.LoadCombo<RecordingActParty>(cboUsufructuaryOf, bareOwnersList, (x) => x.Party.Id.ToString(), (x) => x.Party.FullName, "( Seleccionar al nudo propietario )"); if (cboUsufructuaryOf.Items.Count > 2) { cboUsufructuaryOf.Items.Add(new ListItem("( Selección múltiple )", "multiselect")); } } this.cboRole.Items.Add(new ListItem("( Secundarios )", String.Empty)); HtmlSelectContent.AppendToCombo(this.cboRole, PartiesRole.GetList(), "Id", "Name"); }