Esempio n. 1
0
 private void AdvancedSearchEntityAre_SearchDataDefined(object sender, SearchDataArg e)
 {
     if (SearchDataDefined != null)
     {
         SearchDataArg arg = new SearchDataArg();
         arg.SearchItems = e.SearchItems;
         SearchDataDefined(this, arg);
     }
 }
        private void AdvancedAndRaw_SearchDataDefinedNew(object sender, SearchDataArg e, RelationshipDTO relationship, AdvanceSearchNode node, object view)
        {
            AgentUICoreMediator.GetAgentUICoreMediator.UIManager.CloseDialog(view);

            if (node.Phrase is LogicPhraseDTO)
            {
                (node.Phrase as LogicPhraseDTO).Phrases.Add(e.SearchItems);
            }

            AddLogicNode(node, e.SearchItems);
        }
        //public void ShowPreDefinedSearch(EntityPreDefinedSearchDTO message)
        //{
        //    ShowSearchRepository(message.SearchRepository);
        //}

        private void SimpleSearchEntityArea_SearchDataDefined(object sender, SearchDataArg e)
        {
            //DP_SearchRepository searchData = new DP_SearchRepository(SearchInitializer.EntityID);
            //if (e.SearchItems != null)
            //{
            //    searchData.AndOrType = e.SearchItems.AndOrType;
            //    searchData.Phrases = e.SearchItems.Phrases;
            //}
            //OnSearchDataDefined(searchData);

            OnSearchDataDefined(e.SearchItems);
        }
Esempio n. 4
0
 private void RawSearchEntityArea_SearchDataDefined(object sender, SearchPropertyArg e)
 {
     if (SearchDataDefined != null)
     {
         SearchDataArg arg = new SearchDataArg();
         arg.SearchItems = GetSearchRepository();
         foreach (var item in e.SearchItems)
         {
             arg.SearchItems.Phrases.Add(item);
         }
         SearchDataDefined(this, arg);
     }
 }
        private void AdvancedAndRaw_SearchDataDefinedEdit(object sender, SearchDataArg e, AdvanceSearchNode node, object view)
        {
            AgentUICoreMediator.GetAgentUICoreMediator.UIManager.CloseDialog(view);

            if (e.SearchItems != null)
            {
                node.ParentNode.NodeManager.RemoveItem(node.NodeManager);
                node.ParentNode.ChildItems.Remove(node);
                (node.ParentNode.Phrase as LogicPhraseDTO).Phrases.Remove(node.Phrase);
                (node.ParentNode.Phrase as LogicPhraseDTO).Phrases.Add(e.SearchItems);
                AddLogicNode(node.ParentNode, e.SearchItems);
            }
        }
Esempio n. 6
0
 private void GeneralEntitySearchArea_SearchDataDefined(object sender, SearchDataArg e)
 {
     SetReport(e.SearchItems);
 }
 private void SearchEntityArea_SearchDataDefined(object sender, SearchDataArg e)
 {
     SearchConfirmed(e.SearchItems, true, false);
 }