コード例 #1
0
        public IActionResult EditStatus(ClassEditStatusViewModel classModel)
        {
            ClassBusiness classModelBusiness = new ClassBusiness();
            var           result             = classModelBusiness.EditStatus(classModel);

            return(Ok(result));
        }
コード例 #2
0
        public IActionResult GetById(int Id)
        {
            ClassBusiness classModelBusiness = new ClassBusiness();
            var           result             = classModelBusiness.GetById(Id);

            return(Ok(result));
        }
コード例 #3
0
        public IActionResult Delete(ClassDeleteViewModel classModel)
        {
            ClassBusiness classModelBusiness = new ClassBusiness();
            var           result             = classModelBusiness.Delete(classModel);

            return(Ok(result));
        }
コード例 #4
0
        public IActionResult GetAll()
        {
            ClassBusiness classModelBusiness = new ClassBusiness();
            var           result             = classModelBusiness.GetAll();

            return(Ok(result));
        }
コード例 #5
0
        public IActionResult Add(AddClassViewModel classModel)
        {
            ClassBusiness classModelBusiness = new ClassBusiness();
            var           result             = classModelBusiness.AddClass(classModel);

            return(Ok(result));
        }
コード例 #6
0
        public IActionResult GetPaging(BaseCondition <Class> condition)
        {
            ClassBusiness classModelBusiness = new ClassBusiness();
            var           result             = classModelBusiness.GetAllClassSearched(condition);

            return(Ok(result));
        }
コード例 #7
0
 private void lookUpEditFaculty_EditValueChanged(object sender, EventArgs e)
 {
     InitLookUpEdit(lookUpEditClass,
                    ClassBusiness.GetClassByFacultyId(((FacultyDto)lookUpEditFaculty.GetSelectedDataRow()).FacultyId), "ClassId",
                    "ClassId");
     lookUpEditClass.Properties.Columns["FacultyId"].Visible = false;
     lookUpEditClass.Properties.Columns["Faculty"].Visible   = false;
 }
コード例 #8
0
        public void GetClassByFacultyIdTest()
        {
            var actual = ClassBusiness.GetClassByFacultyId("5");

            Assert.AreEqual("14050301", actual[0].ClassId);
            Assert.AreEqual("14050302", actual[1].ClassId);
            Assert.AreEqual("14050303", actual[2].ClassId);
        }
コード例 #9
0
ファイル: Program.cs プロジェクト: 18176962906/VS
        static void Delete()
        {
            ClassBusiness cb = new ClassBusiness();

            Console.Write("请输入一个博客id:");
            int       id   = int.Parse(Console.ReadLine());
            ClassName blog = cb.Query(id);

            cb.Delete(blog);
        }
コード例 #10
0
        public StudentController()
        {
            RSMEntities db = new RSMEntities();

            slFactory = new SelectListFactory(db);
            ClassBO   = new ClassBusiness(db);
            StuBO     = new StudentBusiness(db);
            AccBO     = new AccountBusiness(db);
            RollBO    = new RollCallBusiness(db);
            ReBO      = new RequestBusiness(db);
        }
コード例 #11
0
ファイル: Program.cs プロジェクト: 18176962906/VS
        //显示全部博客
        static void QueryBlog()
        {
            ClassBusiness cb    = new ClassBusiness();
            var           blogs = cb.Query();

            Console.WriteLine("所有数据库中的博客:");
            foreach (var item in blogs)
            {
                Console.WriteLine(item.ClassNameId + "" + item.Name);
            }
        }
コード例 #12
0
        public AdminController()
        {
            RSMEntities db = new RSMEntities();

            StuBO     = new StudentBusiness(db);
            ClaBO     = new ClassBusiness(db);
            ReBO      = new RequestBusiness(db);
            SlFactory = new SelectListFactory(db);
            StaffBO   = new StaffBusiness(db);
            AccBO     = new AccountBusiness(db);
            StuImBO   = new StudentImageBusiness(db);
        }
コード例 #13
0
ファイル: Program.cs プロジェクト: 18176962906/VS
        //增加--交互

        static void CreateClass()
        {
            Console.WriteLine("请输入一个班级名称");
            string    name      = Console.ReadLine();
            ClassName classname = new ClassName();

            classname.Name = name;

            ClassBusiness cb = new ClassBusiness();

            cb.Add(classname);
        }
コード例 #14
0
        public RollCallController()
        {
            RSMEntities DB = new RSMEntities();

            RollBO    = new RollCallBusiness(DB);
            SlFactory = new SelectListFactory(DB);
            ClaBO     = new ClassBusiness(DB);
            SubBO     = new SubjectBusiness(DB);
            StuBO     = new StudentBusiness(DB);
            InsBO     = new InstructorBusiness(DB);
            SeBO      = new SemesterBusiness(DB);
            MjBO      = new MajorBusiness(DB);
        }
コード例 #15
0
ファイル: Program.cs プロジェクト: 18176962906/VS
        //更新博客id
        static void Update()
        {
            ClassBusiness cb = new ClassBusiness();

            Console.WriteLine("请输入id");
            int       id   = int.Parse(Console.ReadLine());
            ClassName blog = cb.Query(id);

            Console.Write("请输入新博客名:");
            string name = Console.ReadLine();

            blog.Name = name;
            cb.Update(blog);
        }
コード例 #16
0
 protected void btn_OpenClass_Click(object sender, EventArgs e)
 {
     try
     {
         ClassBusiness  cls  = new ClassBusiness();
         CommonBusiness cmnb = new CommonBusiness();
         cls.OpenClass(TextBox1.Text);
         rdw.RadAlert("عملیات با موفقیت انجام گرفت", null, null, "پیام", "");
         cmnb.InsertIntoUserLog(int.Parse(Session[sessionNames.userID_Karbar].ToString()), DateTime.Now.ToShortTimeString(), int.Parse(Session[sessionNames.appID_Karbar].ToString()), 0, "باز شدن دسترسی دانشجو", int.Parse(TextBox1.Text));
     }
     catch
     {
         rdw.RadAlert("خطا در انجام عملیات", null, null, "پیام", "");
     }
 }
コード例 #17
0
 public object CreateClass([FromBody] ClassParameter obj)
 {
     try
     {
         ClassBusiness classB = new ClassBusiness();
         var           Result = classB.CreateClass(obj);
         return(Result);
     }
     catch (Exception e)
     {
         return(new Error()
         {
             IsError = true, Message = e.Message
         });
     }
 }
コード例 #18
0
ファイル: FormStudent.cs プロジェクト: koolstyle1905/SE-Final
        private void InitLookUpEditClass()
        {
            var clubList     = ClassBusiness.GetClassByFacultyId("5");
            var riLookUpClub = new RepositoryItemLookUpEdit
            {
                DataSource            = clubList,
                ValueMember           = "ClassId",
                DisplayMember         = "ClassId",
                DropDownRows          = clubList.Count,
                BestFitMode           = BestFitMode.BestFit,
                SearchMode            = SearchMode.AutoComplete,
                AutoSearchColumnIndex = 1,
            };

            riLookUpClub.PopulateColumns();
            riLookUpClub.Columns["FacultyId"].Visible           = false;
            riLookUpClub.Columns["Faculty"].Visible             = false;
            gridViewStudent.Columns["Class.ClassId"].ColumnEdit = riLookUpClub;
        }
コード例 #19
0
 /// <summary>
 /// Constructeur principal
 /// </summary>
 public ClassService()
 {
     _Business = new ClassBusiness();
 }
コード例 #20
0
        //
        // GET: /Subject/

        public ClassController()
        {
            slFactory = new SelectListFactory();
            ClassBO   = new ClassBusiness();
            StuBO     = new StudentBusiness();
        }