Beispiel #1
0
        private void CommandManager_Clicked(object sender, EventArgs e)
        {
            if (EditArea.SearchViewEntityArea != null)
            {
                var searchDP = EditArea.SearchViewEntityArea.SearchEntityArea.LastSearch;
                if (searchDP != null)
                {
                    //if (EditArea.DataViewArea == null)
                    //{
                    DP_SearchRepository searchRepository = new DP_SearchRepository(EditArea.AreaInitializer.EntityID);
                    searchRepository.Phrases             = searchDP.Phrases;
                    searchRepository.AndOrType           = searchDP.AndOrType;
                    EditArea.DataListReportAreaContainer = new DataListReportAreaContainer();
                    var initializer = new DataListReportAreaContainerInitializer();
                    initializer.EntitiyID        = EditArea.AreaInitializer.EntityID;
                    initializer.Title            = EditArea.SimpleEntity.Alias;
                    initializer.SearchRepository = searchRepository;
                    EditArea.DataListReportAreaContainer.SetAreaInitializer(initializer);
                    //}
                    //else
                    //{

                    //}

                    AgentUICoreMediator.GetAgentUICoreMediator.UIManager.GetDialogWindow().ShowDialog(EditArea.DataListReportAreaContainer.View, EditArea.SimpleEntity.Alias, Enum_WindowSize.Maximized);
                }
            }
        }
Beispiel #2
0
 public void SetAreaInitializer(DataListReportAreaContainerInitializer initParam)
 {
     AreaInitializer = initParam;
     View            = AgentUICoreMediator.GetAgentUICoreMediator.UIManager.GetViewOfDataListReportAreaContainer();
     AddDataListReportArea(initParam.EntitiyID, initParam.Title, initParam.SearchRepository, false);
 }