public IActionResult EditStatus(ClassEditStatusViewModel classModel) { ClassBusiness classModelBusiness = new ClassBusiness(); var result = classModelBusiness.EditStatus(classModel); return(Ok(result)); }
public IActionResult GetById(int Id) { ClassBusiness classModelBusiness = new ClassBusiness(); var result = classModelBusiness.GetById(Id); return(Ok(result)); }
public IActionResult Delete(ClassDeleteViewModel classModel) { ClassBusiness classModelBusiness = new ClassBusiness(); var result = classModelBusiness.Delete(classModel); return(Ok(result)); }
public IActionResult GetAll() { ClassBusiness classModelBusiness = new ClassBusiness(); var result = classModelBusiness.GetAll(); return(Ok(result)); }
public IActionResult Add(AddClassViewModel classModel) { ClassBusiness classModelBusiness = new ClassBusiness(); var result = classModelBusiness.AddClass(classModel); return(Ok(result)); }
public IActionResult GetPaging(BaseCondition <Class> condition) { ClassBusiness classModelBusiness = new ClassBusiness(); var result = classModelBusiness.GetAllClassSearched(condition); return(Ok(result)); }
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; }
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); }
static void Delete() { ClassBusiness cb = new ClassBusiness(); Console.Write("请输入一个博客id:"); int id = int.Parse(Console.ReadLine()); ClassName blog = cb.Query(id); cb.Delete(blog); }
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); }
//显示全部博客 static void QueryBlog() { ClassBusiness cb = new ClassBusiness(); var blogs = cb.Query(); Console.WriteLine("所有数据库中的博客:"); foreach (var item in blogs) { Console.WriteLine(item.ClassNameId + "" + item.Name); } }
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); }
//增加--交互 static void CreateClass() { Console.WriteLine("请输入一个班级名称"); string name = Console.ReadLine(); ClassName classname = new ClassName(); classname.Name = name; ClassBusiness cb = new ClassBusiness(); cb.Add(classname); }
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); }
//更新博客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); }
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, "پیام", ""); } }
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 }); } }
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; }
/// <summary> /// Constructeur principal /// </summary> public ClassService() { _Business = new ClassBusiness(); }
// // GET: /Subject/ public ClassController() { slFactory = new SelectListFactory(); ClassBO = new ClassBusiness(); StuBO = new StudentBusiness(); }