Esempio n. 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());
            }
        }
Esempio n. 2
0
        public string GetArrangeClassByID(int id)
        {
            ArrangeClassManager manager = new ArrangeClassManager();

            return(new JavaScriptSerializer().Serialize(manager.GetArrangeClassByID(id)));
        }