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 string GetRecordingBooksStringArrayCommandHandler() { int recorderOfficeId = int.Parse(GetCommandParameter("recorderOfficeId", true)); int recordingTypeCategoryId = int.Parse(GetCommandParameter("recordingActTypeCategoryId", false, "0")); if (recorderOfficeId == 0) { return HtmlSelectContent.GetComboAjaxHtmlItem(String.Empty, "Primero seleccionar un Distrito"); } if (recordingTypeCategoryId != 0) { RecorderOffice recorderOffice = RecorderOffice.Parse(recorderOfficeId); ObjectList<RecordingBook> recordingBookList = null; if (recordingTypeCategoryId == 1051) { recordingBookList = recorderOffice.GetTraslativeRecordingBooks(); } else { RecordingActTypeCategory category = RecordingActTypeCategory.Parse(recordingTypeCategoryId); recordingBookList = recorderOffice.GetRecordingBooks(category); } if (recordingBookList.Count != 0) { return HtmlSelectContent.GetComboAjaxHtml(recordingBookList, 0, "Id", "FullName", "( Seleccionar el libro registral donde se encuentra )"); } else { return HtmlSelectContent.GetComboAjaxHtml("No existen libros registrales para el Distrito", String.Empty, String.Empty); } } else { return HtmlSelectContent.GetComboAjaxHtmlItem(String.Empty, "( Seleccionar una categoría de actos jurídicos )"); } }
private string GetAnnotationsOfficialsStringArrayCommandHandler() { int recordingBookId = int.Parse(GetCommandParameter("recordingBookId", false, "-1")); RecordingBook recordingBook = RecordingBook.Parse(recordingBookId); RecorderOffice office = recordingBook.RecorderOffice; ObjectList<Person> officers = office.GetRecorderOfficials(recordingBook.RecordingsControlTimePeriod); return HtmlSelectContent.GetComboAjaxHtml(officers, 0, "Id", "FamilyFullName", "( Seleccionar al C. Oficial Registrador )", "No se puede determinar o sólo aparece la firma", String.Empty); }
private void SaveTransaction() { transaction.RecorderOffice = RecorderOffice.Parse(int.Parse(cboRecorderOffice.Value)); transaction.DocumentNumber = txtDocumentNumber.Value; transaction.DocumentType = LRSDocumentType.Parse(int.Parse(cboDocumentType.Value)); transaction.RequestedBy = EmpiriaString.TrimAll(txtRequestedBy.Value).ToUpperInvariant(); transaction.RequestNotes = EmpiriaString.TrimAll(txtRequestNotes.Value); transaction.ManagementAgency = Contact.Parse(int.Parse(cboManagementAgency.Value)); //transaction.ContactEMail = txtContactEMail.Value; //transaction.ContactPhone = txtContactPhone.Value; // Temporal if (transaction.TransactionType.Id == 704) { ApplyVoidReceipt(); } bool isNew = transaction.IsNew; transaction.Save(); onloadScript = "alert('Los cambios efectuados en la información del trámite se guardaron correctamente.');"; if (!isNew) { return; } if (transaction.TransactionType.Id == 700) { switch (transaction.DocumentType.Id) { case 722: AppendConcept(2292, 848); ApplyVoidReceipt(); return; case 725: AppendConcept(2108, 848); return; default: AppendConcept(2100, 850); return; } } else if (transaction.TransactionType.Id == 701) { switch (transaction.DocumentType.Id) { case 730: AppendConcept(2111, 873); return; case 731: AppendConcept(2110, 874); return; case 732: AppendConcept(2113, 871); return; case 733: AppendConcept(2112, 872); return; } } else if (transaction.TransactionType.Id == 704) { ApplyVoidReceipt(); } }
private void DoBookRecording() { Assertion.Require(transaction != null && !transaction.IsEmptyInstance, "Transaction cant' be null or an empty instance."); Assertion.Require(transaction.Document != null && !transaction.Document.IsEmptyInstance, "Document can't be empty instance."); RecorderOffice office = RecorderOffice.Parse(int.Parse(cboRecordingOffice.Value)); RecordingActTypeCategory section = RecordingActTypeCategory.Parse(int.Parse(cboRecordingSection.Value)); RecordingBook book = RecordingBook.GetAssignedBookForRecording(office, section, transaction.Document); Recording rec = book.CreateRecording(transaction, transaction.Document); SetMessageBox("Se agregó la " + rec.FullNumber + " al documento."); }
private void Initialize() { int id = int.Parse(Request.QueryString["id"]); if (!String.IsNullOrWhiteSpace(Request["isNew"])) { onloadScript = "alert('El trámite fue creado correctamente.');"; } if (id != 0) { transaction = LRSTransaction.Parse(id); } else { LRSTransactionType transactionType = LRSTransactionType.Parse(int.Parse(Request.QueryString["typeId"])); transaction = new LRSTransaction(transactionType); transaction.RecorderOffice = RecorderOffice.Parse(101); /// Goto default RecordingOffice } }
private string GetCadastralOfficeMunicipalitiesComboCommandHandler() { int cadastralOfficeId = int.Parse(GetCommandParameter("cadastralOfficeId", false, "0")); if (cadastralOfficeId != 0) { RecorderOffice cadastralOffice = RecorderOffice.Parse(cadastralOfficeId); ObjectList<GeographicRegionItem> list = cadastralOffice.GetMunicipalities(); if (list.Count != 0) { return HtmlSelectContent.GetComboAjaxHtml(list, 0, "Id", "Name", "( Seleccionar un municipio )"); } else { return HtmlSelectContent.GetComboAjaxHtmlItem(String.Empty, "( No hay municipios definidos )"); } } else { return HtmlSelectContent.GetComboAjaxHtmlItem(String.Empty, "( Primero seleccionar un Distrito )"); } }
protected sealed override DataView LoadDataSource() { if (base.SelectedTabStrip == 0) { selectedRecorderOffice = RecorderOffice.Empty; return RecordingBooksData.GetVolumeRecordingBooks(selectedRecorderOffice, RecordingBookStatus.Assigned, GetRecordingBookFilter(), String.Empty); } else if (base.SelectedTabStrip == 1) { return RecordingBooksData.GetVolumeRecordingBooks(selectedRecorderOffice, RecordingBookStatus.Pending, GetRecordingBookFilter(), String.Empty); } else if (base.SelectedTabStrip == 2) { return RecordingBooksData.GetVolumeRecordingBooks(selectedRecorderOffice, RecordingBookStatus.Revision, GetRecordingBookFilter(), String.Empty); } else if (base.SelectedTabStrip == 3) { return RecordingBooksData.GetVolumeRecordingBooks(selectedRecorderOffice, RecordingBookStatus.Closed, GetRecordingBookFilter(), String.Empty); } else { return new DataView(); } }
private void LoadControls() { LRSHtmlSelectControls.LoadPropertyTypesCombo(this.cboPropertyType, ComboControlUseMode.ObjectCreation, property.PropertyType); RecorderOffice selectedRecorderOffice = null; if (!property.CadastralOffice.IsEmptyInstance) { selectedRecorderOffice = property.CadastralOffice; } else { selectedRecorderOffice = recordingAct.Recording.RecordingBook.RecorderOffice; } LRSHtmlSelectControls.LoadRecorderOfficeCombo(this.cboCadastralOffice, ComboControlUseMode.ObjectCreation, selectedRecorderOffice); LRSHtmlSelectControls.LoadRecorderOfficeMunicipalitiesCombo(this.cboMunicipality, ComboControlUseMode.ObjectCreation, selectedRecorderOffice, property.Municipality); LoadSettlementsCombo(); LoadRoadsCombo(); LoadPostalCodesCombo(); LoadPropertyControls(); }
private void FillPropertyData() { property.CadastralKey = txtCadastralNumber.Value; if (cboPropertyType.Value.Length != 0) { property.PropertyType = PropertyType.Parse(int.Parse(cboPropertyType.Value)); } else { property.PropertyType = PropertyType.Empty; } property.CommonName = txtPropertyCommonName.Value; property.Antecedent = txtAntecendent.Value; property.Notes = txtObservations.Value; if (Request.Form[cboMunicipality.ClientID].Length != 0) { property.Municipality = GeographicRegionItem.Parse(int.Parse(Request.Form[cboMunicipality.ClientID])); property.CadastralOffice = RecorderOffice.Parse(int.Parse(cboCadastralOffice.Value)); } else { property.Municipality = GeographicRegionItem.Empty; } if (Request.Form[cboSettlement.ClientID].Length != 0) { property.Settlement = GeographicRegionItem.Parse(int.Parse(Request.Form[cboSettlement.ClientID])); } else { property.Settlement = GeographicRegionItem.Empty; } if (Request.Form[cboStreetRoad.ClientID].Length != 0) { property.Street = GeographicPathItem.Parse(int.Parse(Request.Form[cboStreetRoad.ClientID])); } else { property.Street = GeographicPathItem.Empty; } if (Request.Form[cboPostalCode.ClientID].Length != 0) { property.PostalCode = GeographicRegionItem.Parse(int.Parse(Request.Form[cboPostalCode.ClientID])); } else { property.PostalCode = GeographicRegionItem.Empty; } property.Ubication = txtUbication.Value; property.ExternalNumber = txtExternalNumber.Value; property.InternalNumber = txtInternalNumber.Value; property.FractionTag = txtFractionTag.Value; property.BatchTag = txtBatchTag.Value; property.BlockTag = txtBlockTag.Value; property.SectionTag = txtSectionTag.Value; property.SuperSectionTag = txtSuperSectionTag.Value; }
protected void Page_Init(object sender, EventArgs e) { selectedRecorderOffice = LRSHtmlSelectControls.ParseRecorderOffice(this, cboRecorderOffice.UniqueID); selectedRecordingBookClass = LRSHtmlSelectControls.ParseRecordingActTypeCategory(this, cboRecordingClass.UniqueID); }
protected void Page_Init(object sender, EventArgs e) { selectedRecorderOffice = LRSHtmlSelectControls.ParseRecorderOffice(this, cboRecorderOffice.UniqueID); }