示例#1
0
        void TableLoad()
        {
            List <Feedbacksc> modl    = new List <Feedbacksc>();
            Service4Client    service = new Service4Client();

            dataGridView1.DataSource = service.GetEngFeedbacks();
        }
示例#2
0
        void TableLoad()
        {
            List <Timetablesc> modl    = new List <Timetablesc>();
            Service4Client     service = new Service4Client();

            dataGridView1.DataSource = service.GetComTimetables();
        }
示例#3
0
        void TableLoad()
        {
            List <Lecturersc> modl    = new List <Lecturersc>();
            Service4Client    service = new Service4Client();

            dataGridView1.DataSource = service.GetEngineeringLecturers();
            dataGridView2.DataSource = service.GetEngineeringStudents();
        }
示例#4
0
        void TableLoad()
        {
            List <Modulesc> modl    = new List <Modulesc>();
            Service4Client  service = new Service4Client();

            dataGridView1.DataSource = service.GetComModules();
            dataGridView2.DataSource = service.GetComLecHalls();
            dataGridView3.DataSource = service.GetComLabs();
        }
示例#5
0
        private void btnStusearch_Click(object sender, EventArgs e)
        {
            List <Studentsc> stus = new List <Studentsc>();
            Studentsc        ts   = new Studentsc();

            {
                ts.Username = txtUsername.Text;
            };

            Service4Client service = new Service4Client();

            stus.Add(service.SearchStudents(ts));
            dataGridView2.DataSource = stus;
        }
示例#6
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            List <Lecturersc> sl = new List <Lecturersc>();
            Lecturersc        t  = new Lecturersc();

            {
                t.Username = txtUsername.Text;
            };

            Service4Client service = new Service4Client();

            sl.Add(service.SearchLecturers(t));
            dataGridView1.DataSource = sl;
        }
示例#7
0
        private void btnLechallSearch_Click(object sender, EventArgs e)
        {
            Lechallsc u = new Lechallsc();

            Service4Client service = new Service4Client();

            u = service.SearchLecHalls(txtHcode.Text);
            if (u != null)
            {
                txtHcode.Text  = u.Lechallcode;
                txtNumstu.Text = u.Numstu;
            }

            else
            {
                MessageBox.Show("Invalid Mode Code !! Try Again !!");
            }
        }
示例#8
0
        private void button4_Click(object sender, EventArgs e)
        {
            Labsc u = new Labsc();

            Service4Client service = new Service4Client();

            u = service.SearchLabs(txtLabcode.Text);
            if (u != null)
            {
                txtLabcode.Text   = u.Labcode;
                txtLabnumstu.Text = u.Numstu;
            }

            else
            {
                MessageBox.Show("Invalid Mode Code !! Try Again !!");
            }
        }
示例#9
0
        private void button3_Click(object sender, EventArgs e)
        {
            Labsc lbdc = new Labsc();

            lbdc.Labcode = txtLabcode.Text;
            lbdc.Numstu  = txtLabnumstu.Text;

            Service4Client service = new Service4Client();

            if (service.AddLabs(lbdc) == 1)
            {
                MessageBox.Show("Successfully Saved");
                TableLoad();
            }
            else
            {
                MessageBox.Show("Error.. Please Try Again");
            }
        }
示例#10
0
        private void btnLechallAdd_Click(object sender, EventArgs e)
        {
            Lechallsc lhdc = new Lechallsc();

            lhdc.Lechallcode = txtHcode.Text;
            lhdc.Numstu      = txtNumstu.Text;

            Service4Client service = new Service4Client();

            if (service.AddLecHalls(lhdc) == 1)
            {
                MessageBox.Show("Successfully Saved");
                TableLoad();
            }
            else
            {
                MessageBox.Show("Error.. Please Try Again");
            }
        }
示例#11
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            Modulesc u = new Modulesc();

            Service4Client service = new Service4Client();

            u = service.SearchModules(txtModcode.Text);
            if (u != null)
            {
                txtModcode.Text = u.Modcode;
                txtModname.Text = u.Modname;
                cmbLecname.Text = u.Lecname;
            }

            else
            {
                MessageBox.Show("Invalid Mode Code !! Try Again !!");
            }
        }
示例#12
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            Modulesc dcm = new Modulesc();

            {
                dcm.Modcode = txtModcode.Text;
            };

            Service4Client service = new Service4Client();

            if (service.DeleteComModules(dcm) == 1)
            {
                MessageBox.Show("Successfully Deleted");
                TableLoad();
            }
            else
            {
                MessageBox.Show("Error.. Please Try Again");
            }
        }
示例#13
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            Modulesc mdc = new Modulesc();

            mdc.Modcode = txtModcode.Text;
            mdc.Modname = txtModname.Text;
            mdc.Lecname = cmbLecname.Text;

            Service4Client service = new Service4Client();

            if (service.AddModules(mdc) == 1)
            {
                MessageBox.Show("Successfully Saved");
                TableLoad();
            }
            else
            {
                MessageBox.Show("Error.. Please Try Again");
            }
        }
示例#14
0
        private void button1_Click(object sender, EventArgs e)
        {
            Labsc dclb = new Labsc();

            {
                dclb.Labcode = txtLabcode.Text;
            };

            Service4Client service = new Service4Client();

            if (service.DeleteComLabs(dclb) == 1)
            {
                MessageBox.Show("Successfully Deleted");
                TableLoad();
            }
            else
            {
                MessageBox.Show("Error.. Please Try Again");
            }
        }
示例#15
0
        private void btnLechallDelete_Click(object sender, EventArgs e)
        {
            Lechallsc dclh = new Lechallsc();

            {
                dclh.Lechallcode = txtHcode.Text;
            };

            Service4Client service = new Service4Client();

            if (service.DeleteComLecHalls(dclh) == 1)
            {
                MessageBox.Show("Successfully Deleted");
                TableLoad();
            }
            else
            {
                MessageBox.Show("Error.. Please Try Again");
            }
        }
示例#16
0
        private void button2_Click(object sender, EventArgs e)
        {
            Labsc uclb = new Labsc();

            {
                uclb.Labcode = txtLabcode.Text;
                uclb.Numstu  = txtLabnumstu.Text;
            };

            Service4Client service = new Service4Client();

            if (service.UpdateComLabs(uclb) == 1)
            {
                MessageBox.Show("Successfully Updated");
                TableLoad();
            }
            else
            {
                MessageBox.Show("Error.. Please Try Again");
            }
        }
示例#17
0
        private void btnLechallUpdate_Click(object sender, EventArgs e)
        {
            Lechallsc uclh = new Lechallsc();

            {
                uclh.Lechallcode = txtHcode.Text;
                uclh.Numstu      = txtNumstu.Text;
            };

            Service4Client service = new Service4Client();

            if (service.UpdateComlecHalls(uclh) == 1)
            {
                MessageBox.Show("Successfully Updated");
                TableLoad();
            }
            else
            {
                MessageBox.Show("Error.. Please Try Again");
            }
        }
示例#18
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            Modulesc ucm = new Modulesc();

            {
                ucm.Modcode = txtModcode.Text;
                ucm.Modname = txtModname.Text;
                ucm.Lecname = cmbLecname.Text;
            };

            Service4Client service = new Service4Client();

            if (service.UpdateComModules(ucm) == 1)
            {
                MessageBox.Show("Successfully Updated");
                TableLoad();
            }
            else
            {
                MessageBox.Show("Error.. Please Try Again");
            }
        }
示例#19
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            Timetablesc tdc = new Timetablesc();

            tdc.Date    = dateTimePicker1.Text;
            tdc.Time    = cmbTime.Text;
            tdc.Batch   = cmbBatch.Text;
            tdc.Modcode = cmbModecode.Text;
            tdc.Lecname = cmbLecname.Text;
            tdc.Lechall = cmbLechall.Text;
            tdc.Lab     = cmbLab.Text;

            Service4Client service = new Service4Client();

            if (service.AddTimetables(tdc) == 1)
            {
                MessageBox.Show("Successfully Saved");
                TableLoad();
            }
            else
            {
                MessageBox.Show("Error.. Please Try Again");
            }
        }