private void SearchConfirmed()
        {
            int entityID = 0;

            if (entitySearchLookup.SelectedItem != null)
            {
                entityID = (entitySearchLookup.SelectedItem as TableDrivedEntityDTO).ID;
            }
            int userID = 0;

            if (userSearchLookup.SelectedItem != null)
            {
                userID = (userSearchLookup.SelectedItem as UserDTO).ID;
            }
            DP_DataRepository data = null;

            if (EditEntityArea != null && EditEntityArea.GetDataList().Count != 0)
            {
                data = EditEntityArea.GetDataList().First();
            }
            int columnID = 0;

            if (View.SelectedColumn != null)
            {
                columnID = (View.SelectedColumn as ColumnDTO).ID;
            }

            var logs = AgentUICoreMediator.GetAgentUICoreMediator.logManagerService.SearchDataLogs(AgentUICoreMediator.GetAgentUICoreMediator.GetRequester(), entityID, View.FromData, View.ToDate, data,
                                                                                                   View.SelectedMainType, columnID, userID, View.withMajorException, View.withMinorException);

            View.SetLogs(logs);
            View.PackageDatagridVisiblity = false;
        }
Exemple #2
0
        public WorkflowReportArea(WorkflowReportAreaInitializer areaInitializer)
        {
            AreaInitializer   = areaInitializer;
            View              = AgentUICoreMediator.GetAgentUICoreMediator.UIManager.GetWorkflowReportForm();
            View.Confirmed   += View_Confirmed;
            View.MenuClicked += View_MenuClicked;
            View.InfoClicked += View_InfoClicked;
            SetLookups();

            if (areaInitializer.DataItem != null)
            {
                AddDataSelector(areaInitializer.DataItem.TargetEntityID);
                if (EditEntityArea != null)
                {
                    EditEntityArea.ShowDataFromExternalSource(areaInitializer.DataItem);
                    if (EditEntityArea.GetDataList().Count != 0)
                    {
                        SearchConfirmed();
                    }
                }
            }
        }