예제 #1
0
파일: SetSubject.cs 프로젝트: Gqqq/-
        void GetAllSepc_Subjects()
        {
            Sepc_SubjectsBLL   Sepc_Subjects = new Sepc_SubjectsBLL();
            Sepc_SubjectsModel model         = new Sepc_SubjectsModel();

            model.Sepc_ID            = Speciality_ID;
            dataGridView1.DataSource = Sepc_Subjects.GetAllSepc_Subjects(model);
        }
예제 #2
0
파일: SetSubject.cs 프로젝트: Gqqq/-
        private void button2_Click(object sender, EventArgs e)
        {
            Sepc_SubjectsBLL   Sepc_Subjects = new Sepc_SubjectsBLL();
            Sepc_SubjectsModel model         = new Sepc_SubjectsModel();

            model.Sepc_ID     = Speciality_ID;
            model.Subjects_ID = Convert.ToInt32(this.dataGridView1.SelectedRows[0].Cells["学科编号"].Value);
            Sepc_Subjects.DeleSepc_Subjects(model);
            GetAllSepc_Subjects();
        }
예제 #3
0
파일: SetSubject.cs 프로젝트: Gqqq/-
        private void button1_Click(object sender, EventArgs e)
        {
            Sepc_SubjectsBLL   Sepc_Subjects = new Sepc_SubjectsBLL();
            Sepc_SubjectsModel model         = new Sepc_SubjectsModel();

            model.Sepc_ID     = Speciality_ID;
            model.Subjects_ID = Convert.ToInt32(this.comboBox1.SelectedValue);
            bool b = Sepc_Subjects.SeleSepc_Subjects(model);

            if (b == true)
            {
                MessageBox.Show("该专业下已经存在该科目,请重新选择");
                return;
            }
            Sepc_Subjects.AddSepc_Subjects(model);
            GetAllSepc_Subjects();
        }