示例#1
0
        public KeyValuePairItem Delete(string key1, string key2, string key3, string Action,
                                       string queryType, string type, DataBaseInfo dataBaseInfo)
        {
            KeyValuePairItem status;

            try
            {
                var queryArgument = new QueryArgument(dataBaseInfo)
                {
                    filter1    = key1,
                    filter2    = key2,
                    filter3    = key3,
                    Action     = Action,
                    QueryType  = queryType,
                    filterType = type
                };
                ControlPanelReadHelper.QueryArgument = queryArgument;
                status = ControlPanelReadHelper.ConfirmAndDeleteBan();
            }
            catch (Exception ex)
            {
                status = new KeyValuePairItem("2", "Could not complete your request!");
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "Delete failed with exception", ex);
                throw;
            }
            return(status);
        }
示例#2
0
 public string GetNewMasterNumber(QueryArgument queryArgument)
 {
     try
     {
         ControlPanelReadHelper.QueryArgument = queryArgument;
         return(ControlPanelReadHelper.GetNewMasterNumber());
     }
     catch (Exception ex)
     {
         EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetNewMasterNumber failed with exception", ex);
         throw;
     }
 }
示例#3
0
 public void Cancle(QueryArgument queryArgument)
 {
     try
     {
         ControlPanelReadHelper.QueryArgument = queryArgument;
         ControlPanelReadHelper.Cancel();
     }
     catch (Exception ex)
     {
         EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "Cancle failed with exception", ex);
         throw;
     }
 }
示例#4
0
        public KeyValuePairItems GetData(QueryArgument queryArgument)
        {
            KeyValuePairItems keyValuePairItems;

            try
            {
                ControlPanelReadHelper.QueryArgument = queryArgument;
                keyValuePairItems = ControlPanelReadHelper.GetData();
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetData failed with exception", ex);
                throw;
            }
            return(keyValuePairItems);
        }
示例#5
0
        public UserProfiles GetUserProfiles(QueryArgument queryArgument)
        {
            UserProfiles userProfiles;

            try
            {
                ControlPanelReadHelper.QueryArgument = queryArgument;
                userProfiles = ControlPanelReadHelper.GetUserDetails();
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetUserProfiles failed with exception", ex);
                throw;
            }
            return(userProfiles);
        }
示例#6
0
        public Menus GetMenuAccessRights(QueryArgument queryArgument)
        {
            Menus menus;

            try
            {
                ControlPanelReadHelper.QueryArgument = queryArgument;
                menus = ControlPanelReadHelper.GetMenuAccessRights();
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetMenuAccessRights failed with exception", ex);
                throw;
            }
            return(menus);
        }
示例#7
0
        public WFComponentSubs GetReferences(QueryArgument queryArgument)
        {
            WFComponentSubs refrences;

            try
            {
                ControlPanelReadHelper.QueryArgument = queryArgument;
                refrences = ControlPanelReadHelper.GetReferences();
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetAccounts failed with exception", ex);
                throw;
            }
            return(refrences);
        }
示例#8
0
        public Countries GetCountry(QueryArgument queryArgument)
        {
            Countries countries;

            try
            {
                ControlPanelReadHelper.QueryArgument = queryArgument;
                countries = ControlPanelReadHelper.GetCountry();
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetCountry failed with exception", ex);
                throw;
            }
            return(countries);
        }
示例#9
0
        public Materials GetMaterials(QueryArgument queryArgument)
        {
            Materials materials;

            try
            {
                ControlPanelReadHelper.QueryArgument = queryArgument;
                materials = ControlPanelReadHelper.GetMaterials();
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetMaterials failed with exception", ex);
                throw;
            }
            return(materials);
        }
示例#10
0
        public Accounts GetAccounts(QueryArgument queryArgument)
        {
            Accounts accounts;

            try
            {
                ControlPanelReadHelper.QueryArgument = queryArgument;
                accounts = ControlPanelReadHelper.GetAccounts();
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetAccounts failed with exception", ex);
                throw;
            }
            return(accounts);
        }
示例#11
0
        public Units GetUOM(QueryArgument queryArgument)
        {
            Units units;

            try
            {
                ControlPanelReadHelper.QueryArgument = queryArgument;
                units = ControlPanelReadHelper.GetUOMDetails();
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetUOM failed with exception", ex);
                throw;
            }
            return(units);
        }
示例#12
0
        public Locations GetLocation(QueryArgument queryArgument)
        {
            Locations locations;

            try
            {
                ControlPanelReadHelper.QueryArgument = queryArgument;
                locations = ControlPanelReadHelper.GetLocationDetails();
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetLocation failed with exception", ex);
                throw;
            }
            return(locations);
        }
示例#13
0
        public DataViewSetupInfo GetStages(QueryArgument queryArgument)
        {
            DataViewSetupInfo stagesMasters;

            try
            {
                ControlPanelReadHelper.QueryArgument = queryArgument;
                stagesMasters = ControlPanelReadHelper.GetStages();
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "Get Stages failed with exception", ex);
                throw;
            }
            return(stagesMasters);
        }
示例#14
0
        public WFComponents GetTeams(QueryArgument queryArgument)
        {
            WFComponents wfcComponents;

            try
            {
                ControlPanelReadHelper.QueryArgument = queryArgument;
                wfcComponents = ControlPanelReadHelper.GetTeamMaster();
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "Get Team failed with exception", ex);
                throw;
            }
            return(wfcComponents);
        }
示例#15
0
        public Designations GetDesignations(QueryArgument queryArgument)
        {
            Designations designations;

            try
            {
                ControlPanelReadHelper.QueryArgument = queryArgument;
                designations = ControlPanelReadHelper.GetDesignations();
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetDesignation failed with exception", ex);
                throw;
            }
            return(designations);
        }