コード例 #1
0
        public MasterTableResult ListMessageMaster()
        {
            try
            {
                BSL.MasterTableService service = new BSL.MasterTableService();
                var lists = service.ListMessageMaster();

                var sr = new MasterTableResult
                {
                    IsSuccess          = true,
                    ListMessageMasters = lists,
                };
                return(sr);
            }
            catch (Exception ex)
            {
                new RMSWebException(this, "0500", "ListMessageMaster failed. " + ex.Message, ex, true);

                var sr = new MasterTableResult
                {
                    IsSuccess    = false,
                    ErrorMessage = "ListMessageMaster errors. " + ex.Message
                };
                return(sr);
            }
        }
コード例 #2
0
        public MasterTableResult ListLOVByListName(string listName)
        {
            try
            {
                BSL.MasterTableService service = new BSL.MasterTableService();
                var rms = service.ListLOVByListName(listName);

                var sr = new MasterTableResult
                {
                    IsSuccess            = true,
                    ListListOfValueInfos = rms,
                };
                return(sr);
            }
            catch (Exception ex)
            {
                new RMSWebException(this, "0500", "ListLOVByListName failed. " + ex.Message, ex, true);

                var sr = new MasterTableResult
                {
                    IsSuccess    = false,
                    ErrorMessage = "ListLOVByListName errors. " + ex.Message
                };
                return(sr);
            }
        }
コード例 #3
0
        public MasterTableResult SearchMessageMaster(JQueryDataTableParamModel param, string message)
        {
            try
            {
                int totalRecord;

                BSL.MasterTableService service = new BSL.MasterTableService();
                var infos = service.SearchMessageMaster(param, message, out totalRecord);

                var sr = new MasterTableResult
                {
                    IsSuccess = true,
                    ListMessageMasterInfos = infos,
                    TotalRecords           = totalRecord
                };
                return(sr);
            }
            catch (Exception ex)
            {
                new RMSWebException(this, "0500", "SearchMessageMaster failed. " + ex.Message, ex, true);

                var sr = new MasterTableResult
                {
                    IsSuccess    = false,
                    ErrorMessage = "SearchMessageMaster errors. " + ex.Message
                };
                return(sr);
            }
        }
コード例 #4
0
        public MasterTableResult GetSystemConfig(string name)
        {
            try
            {
                BSL.MasterTableService service = new BSL.MasterTableService();
                var rms = service.GetSystemConfig(name);

                var sr = new MasterTableResult
                {
                    IsSuccess    = true,
                    SystemConfig = rms,
                };
                return(sr);
            }
            catch (Exception ex)
            {
                new RMSWebException(this, "0500", "GetSystemConfig failed. " + ex.Message, ex, true);

                var sr = new MasterTableResult
                {
                    IsSuccess    = false,
                    ErrorMessage = "GetSystemConfig errors. " + ex.Message
                };
                return(sr);
            }
        }