public int AddPartTask(int taskid, string[] ids)
        {
            DALT_Event_StuClassTask dal = new DALT_Event_StuClassTask();

            foreach (string id in ids)
            {
                T_Event_StuClassTask item = new T_Event_StuClassTask();
                item.ClassTaskId = taskid;
                item.StuId       = Convert.ToInt32(id);

                dal.Add(item);
            }

            return(1);
        }
        public int EditPartTask(int taskid, string[] ids)
        {
            DALT_Event_StuClassTask dal = new DALT_Event_StuClassTask();

            string where = "ClassTaskId = " + taskid;
            dal.DeleteWhere(where);

            foreach (string id in ids)
            {
                T_Event_StuClassTask item = new T_Event_StuClassTask();
                item.ClassTaskId = taskid;
                item.StuId       = Convert.ToInt32(id);

                dal.Add(item);
            }

            return(1);
        }