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 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 string GetJudgesInJudicialOfficeStringArrayCommandHandler() { int judicialOfficeId = int.Parse(GetCommandParameter("judicialOfficeId", false, "0")); if (judicialOfficeId == 0) { return HtmlSelectContent.GetComboAjaxHtmlItem(String.Empty, "( Primero seleccionar un juzgado )"); } JudicialOffice judicialOffice = JudicialOffice.Parse(judicialOfficeId); ObjectList<Person> list = judicialOffice.GetJudges(); return HtmlSelectContent.GetComboAjaxHtml(list, 0, "Id", "FamilyFullName", "( Seleccionar al C. Juez )", String.Empty, "No consta"); }