예제 #1
0
        public string UpdateLoginservers(string Id, string Webserverip, string Name, string Ip, string Status)
        {
            if (Session[Util.ProjectConfig.ADMINUSER] == null)
            {
                return("");
            }

            Model.Loginservers loginservers = new Model.Loginservers();
            loginservers.Id          = Convert.ToInt32(Id);
            loginservers.Name        = Name;
            loginservers.Ip          = Ip;
            loginservers.Status      = Convert.ToInt32(Status);
            loginservers.Webserverip = Webserverip;
            bool   reval = LoginserversManager.UpdateLoginservers(loginservers);
            string json  = "";

            if (reval)
            {
                json = DAL.ObjectToJson.ObjectsToJson <Loginservers>(loginservers);
            }
            else
            {
                json = "none";
            }
            return(json);
        }
예제 #2
0
        public bool DeleteLoginService(int Id)
        {
            if (Session[Util.ProjectConfig.ADMINUSER] == null)
            {
                return(false);
            }

            return(LoginserversManager.DeleteLoginserversByPK(Id));
        }
예제 #3
0
        public string GetloginserversAll()
        {
            if (Session[Util.ProjectConfig.ADMINUSER] == null)
            {
                return("");
            }

            return(LoginserversManager.GetloginserversAll());
        }
예제 #4
0
        public bool UpdateLoginServiceStatus(string status, string Id)
        {
            if (Session[Util.ProjectConfig.ADMINUSER] == null)
            {
                return(false);
            }

            int Status = Convert.ToInt32(status);
            int ID     = Convert.ToInt32(Id);

            return(LoginserversManager.UpdateLoginServiceStatus(Status, ID));
        }