示例#1
0
        //Added By Rohit to populate the DataTable for System Reports. Ref ticket #90

        public DataTable GetSystemReports()
        {
            DataTable DataTableClients;

            Streamline.DataService.UserInfo objectUser;
            try
            {
                DataTableClients = new DataTable();
                objectUser       = new Streamline.DataService.UserInfo();
                DataTableClients = objectUser.GetSystemReports();
                return(DataTableClients);
            }
            catch (Exception ex)
            {
                if (ex.Data["CustomExceptionInformation"] == null)
                {
                    ex.Data["CustomExceptionInformation"] = "";
                }
                else
                {
                    ex.Data["CustomExceptionInformation"] = "";
                }
                if (ex.Data["DatasetInfo"] == null)
                {
                    ex.Data["DatasetInfo"] = null;
                }

                throw (ex);
            }
            finally
            {
                DataTableClients = null;
                objectUser       = null;
            }
        }