示例#1
0
        public string DeleteArrangeClass(int id)
        {
            try
            {
                ArrangeClassManager manager = new ArrangeClassManager();

                ArrangeClassEntity entity = manager.GetArrangeClassByID(id);
                if (entity != null)
                {
                    entity.Valid      = "F";
                    entity.CreateTime = DateTime.Now;
                    entity.CreateTime = DateTime.Now;

                    manager.Update(entity);
                }

                return("success");
            }
            catch (Exception e)
            {
                return(e.ToString());
            }
        }
示例#2
0
        public string PutArrangeClass(ArrangeClassEntity entity)
        {
            try
            {
                if (entity == null)
                {
                    return("error");
                }

                ArrangeClassManager manager = new ArrangeClassManager();

                entity.CreateTime = DateTime.Now;
                entity.CreateTime = DateTime.Now;

                manager.Update(entity);

                return("success");
            }
            catch (Exception e)
            {
                return(e.ToString());
            }
        }