Ejemplo n.º 1
0
 public bool ManageUsers(UserProfiles userProfiles)
 {
     try
     {
         bool status = ControlPanelWriteHelper.ManageUsers(userProfiles);
         return(status);
     }
     catch (Exception ex)
     {
         EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "ManageUsers failed with exception", ex);
         throw;
     }
 }
Ejemplo n.º 2
0
 public bool SetStages(DataViewSetupInfo stages)
 {
     try
     {
         bool status = ControlPanelWriteHelper.SetStages(stages);
         return(status);
     }
     catch (Exception ex)
     {
         EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "set Stages failed with exception", ex);
         throw;
     }
 }
Ejemplo n.º 3
0
 public bool SetDesignation(Designations designations)
 {
     try
     {
         bool status = ControlPanelWriteHelper.SetDesignations(designations);
         return(status);
     }
     catch (Exception ex)
     {
         EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "SetDesignation failed with exception", ex);
         throw;
     }
 }
Ejemplo n.º 4
0
 public bool SetTeams(WFComponents wFComponents)
 {
     try
     {
         bool status = ControlPanelWriteHelper.SetTeamMaster(wFComponents);
         return(status);
     }
     catch (Exception ex)
     {
         EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "Set Teams failed with exception", ex);
         throw;
     }
 }
Ejemplo n.º 5
0
 public bool SetCategory(Categories categories)
 {
     try
     {
         bool status = ControlPanelWriteHelper.SetCategory(categories);
         return(status);
     }
     catch (Exception ex)
     {
         EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "SetCategory failed with exception", ex);
         throw;
     }
 }
Ejemplo n.º 6
0
        public bool SetMenuAccessRights(MenuAccessRights menuAccessRights)
        {
            bool result;

            try
            {
                result = ControlPanelWriteHelper.SetDesignationAccessRights(menuAccessRights);
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "DesignationAccessRights failed with exception", ex);
                throw;
            }
            return(result);
        }
Ejemplo n.º 7
0
        public bool SetCountry(Countries countries)
        {
            bool result = false;

            try
            {
                result = ControlPanelWriteHelper.SetCountry(countries);
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "SetCountry failed with exception", ex);
                throw;
            }
            return(result);
        }
Ejemplo n.º 8
0
        public bool SetMaterials(Materials materials)
        {
            bool result;

            try
            {
                result = ControlPanelWriteHelper.SetMaterials(materials);
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "SetMaterials failed with exception", ex);
                throw;
            }
            return(result);
        }
Ejemplo n.º 9
0
        public bool SetUom(Units units)
        {
            bool result;

            try
            {
                result = ControlPanelWriteHelper.SetUomDetails(units);
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "SetUOM failed with exception", ex);
                throw;
            }
            return(result);
        }
Ejemplo n.º 10
0
        public bool SetLocation(Locations locations)
        {
            bool result;

            try
            {
                result = ControlPanelWriteHelper.SetLocations(locations);
            }
            catch (Exception ex)
            {
                EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "SetResource failed with exception", ex);
                throw;
            }
            return(result);
        }