Exemplo n.º 1
0
    private string SearchRecordingActPartiesCommandHandler() {
      int recordingActId = int.Parse(GetCommandParameter("recordingActId", true));
      int partyTypeId = int.Parse(GetCommandParameter("partyTypeId", false, "0"));
      string partyFilter = GetCommandParameter("filterType", true);
      string keywords = GetCommandParameter("keywords", false, String.Empty);


      RecordingAct recordingAct = RecordingAct.Parse(recordingActId);
      PartyFilterType partyFilterType = (PartyFilterType) System.Enum.Parse(typeof(PartyFilterType), partyFilter);

      ObjectTypeInfo partyTypeInfo = null;
      if (partyTypeId != 0) {
        partyTypeInfo = ObjectTypeInfo.Parse(partyTypeId);
      }
      ObjectList<Party> list = Party.GetList(partyFilterType, partyTypeInfo, recordingAct, keywords);

      string html = String.Empty;

      if (partyTypeInfo != null) {
        html = HtmlSelectContent.GetComboAjaxHtmlItem(String.Empty, HtmlSelectContent.GetSearchResultHeaderText(partyTypeInfo, list.Count));
      } else {
        html = HtmlSelectContent.GetComboAjaxHtmlItem(String.Empty, "( " + list.Count.ToString("N0") + " personas u organizaciones encontradas )");
      }
      if (list.Count == 0) {
        if (partyTypeInfo != null && !partyTypeInfo.IsAbstract) {
          html += "|" + HtmlSelectContent.GetComboAjaxHtmlItem("appendParty", "( Agregar " + (partyTypeInfo.FemaleGenre ? "una nueva " : "un nuevo ") +
                                                                                       partyTypeInfo.DisplayName + " )");
        }
      } else {
        if (partyTypeInfo != null && !partyTypeInfo.IsAbstract) {
          html += "|" + HtmlSelectContent.GetComboAjaxHtmlItem("appendParty", "( Agregar " + (partyTypeInfo.FemaleGenre ? "una nueva " : "un nuevo ") +
                                                                                          partyTypeInfo.DisplayName + " )");
        }
        html += "|" + HtmlSelectContent.GetComboAjaxHtml(list, 0, "Id", "ExtendedName", String.Empty);
      }
      return html;
    }
Exemplo n.º 2
0
 static internal new StepType Parse(string typeName)
 {
     return(ObjectTypeInfo.Parse <StepType>(typeName));
 }
Exemplo n.º 3
0
 static public new StepType Parse(int typeId)
 {
     return(ObjectTypeInfo.Parse <StepType>(typeId));
 }
Exemplo n.º 4
0
 static internal new WorkflowObjectType Parse(string typeName)
 {
     return(ObjectTypeInfo.Parse <WorkflowObjectType>(typeName));
 }
Exemplo n.º 5
0
 static internal new ProcessObjectType Parse(string typeName)
 {
     return(ObjectTypeInfo.Parse <ProcessObjectType>(typeName));
 }
Exemplo n.º 6
0
 static public new WorkflowObjectType Parse(int typeId)
 {
     return(ObjectTypeInfo.Parse <WorkflowObjectType>(typeId));
 }
Exemplo n.º 7
0
 static public new ProcessObjectType Parse(int typeId)
 {
     return(ObjectTypeInfo.Parse <ProcessObjectType>(typeId));
 }
Exemplo n.º 8
0
 static public new TicketType Parse(string typeName)
 {
     return(ObjectTypeInfo.Parse <TicketType>(typeName));
 }
Exemplo n.º 9
0
 static internal new TicketType Parse(int typeId)
 {
     return(ObjectTypeInfo.Parse <TicketType>(typeId));
 }
Exemplo n.º 10
0
 static internal new ResourceType Parse(string typeName)
 {
     return(ObjectTypeInfo.Parse <ResourceType>(typeName));
 }
Exemplo n.º 11
0
 static public new ResourceType Parse(int typeId)
 {
     return(ObjectTypeInfo.Parse <ResourceType>(typeId));
 }