コード例 #1
0
        private void btnView_Click(object sender, EventArgs e)
        {
            reportViewerStudentAdmission.RefreshReport();
            List <StudentPersonalInfo> studentpersoninfos = StudentPersonalInfoController.StudentPersonalInfoSelectAll();
            ListtoDataTableConverter   converter          = new ListtoDataTableConverter();
            DataTable dt = converter.ToDataTable(studentpersoninfos);
            DataSet   studentDataSet_PersonalInfo = new DataSet();

            studentDataSet_PersonalInfo.Tables.Add(dt);
        }
コード例 #2
0
        private void btnStudentSave_Click(object sender, EventArgs e)
        {
            try
            {
                Image admin_pic = picStudent.Image;
                admin_pic.Save("image//student//" + txtStudentCNIC.Text + ".jpg");
                StudentPersonalInfo studentPersonal = new StudentPersonalInfo();

                // Inser student personal record in Database..
                studentPersonal.StudentID          = Convert.ToInt32(txtStudentName.Tag);
                studentPersonal.SudentName         = txtStudentName.Text;
                studentPersonal.StudentCNIC        = txtStudentCNIC.Text;
                studentPersonal.StudentDateOfBrith = dtpStudentDOB.Value;
                studentPersonal.StudentEmail       = txtStudentEmail.Text;
                studentPersonal.StudentContactNo   = txtStudentPhone.Text;
                studentPersonal.StudentReligionID  = Convert.ToInt32(cmbRligion.SelectedValue);
                studentPersonal.StudentAddress     = txtStudentAddress.Text;
                studentPersonal.IsEnabled          = true;
                studentPersonal.StudentPicture     = "image//student//" + txtStudentCNIC.Text + ".jpg";
                studentPersonal.Remarks            = txtStudentRemarks.Text;
                studentPersonal.AddByID            = Convert.ToInt32(this.Tag);
                studentPersonal.AddByDateTime      = System.DateTime.Now;
                studentPersonal.LastUpdateID       = Convert.ToInt32(this.Tag);
                studentPersonal.LastUpdateDateTime = System.DateTime.Now;
                Int64 student_id = StudentPersonalInfoController.InsertUpdateStudentPersonalInfo(studentPersonal);

                StudentAdmissionInfoInsertUpdate(student_id);
                StudentAssingedSubjectInsertUpdate(student_id);
                StudentGurdianInsertUpdate(student_id);
                StudentGraduationSubjectInsertUpdate(student_id);
                StudentMAstertInsertUpdate(student_id);
                StudentMatricRecordInserUpdate(student_id);
                StudentMatricSubjectInsertUpdate(student_id);
                StudentInterMediateRecordInsertUpdate(student_id);
                StudentInterMediateSubjectInsertUpdate(student_id);
                StudentFeeRecordInsertUpdate(student_id);
                StudentGurdianInsertUpdate(student_id);
                GeneratingStudentRollNumber();
                if (student_id > 0)
                {
                    MessageBox.Show("Record enter successfully");
                }
                else
                {
                    MessageBox.Show("Record not entered successfully");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #3
0
        private void Daly_Tick(object sender, EventArgs e)
        {
            Daly.Stop();
            List <StudentDegree> studentDegrees = new List <StudentDegree>();

            studentDegrees      = StudentDegreeController.StudentDegreeSelectAll();
            lblTotalDegree.Text = studentDegrees.Count.ToString();
            StudentDegree studentDegree = new StudentDegree();

            studentDegrees = studentDegree.StudentDegreeSelectAll();
            List <StudentProgram> studentPrograms = new List <StudentProgram>();
            StudentProgram        studentProgram  = new StudentProgram();

            studentPrograms      = studentProgram.StudentProgramSelectAll();
            lblProgramTotal.Text = studentPrograms.Count.ToString();
            List <CollageAdmin> collageAdmins = CollageAdminController.CollageAdminSelectAll();

            lblTotalAdmin.Text = collageAdmins.Count.ToString();
            List <StudentPersonalInfo> studentPersonalInfos = StudentPersonalInfoController.StudentPersonalInfoSelectAll();

            lblTotalStudent.Text = studentPersonalInfos.Count.ToString();
            List <StudentSections> studentSections = StudentSectionsController.StudentSectionsSelectAll();

            lblTotalSection.Text = studentSections.Count.ToString();
            Bunifu.DataViz.Data      data      = new Bunifu.DataViz.Data();
            Bunifu.DataViz.DataPoint dataPoint = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuCharts._type.column);
            Random r = new Random();

            dataPoint.addLabely("Degrees", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());
            dataPoint.addLabely("Users", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint.addLabely("Program", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());
            dataPoint.addLabely("Degrees", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());
            dataPoint.addLabely("Users", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint.addLabely("Program", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());


            data.addData(dataPoint);
            CollumChart.Render(data);
            Bunifu.DataViz.Data      data1      = new Bunifu.DataViz.Data();
            Bunifu.DataViz.DataPoint dataPoint2 = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuCharts._type.pie);

            dataPoint2.addLabely("Degrees", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint2.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());
            dataPoint2.addLabely("Users", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint2.addLabely("Program", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint2.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());
            dataPoint2.addLabely("Degrees", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint2.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());
            dataPoint2.addLabely("Users", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint2.addLabely("Program", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint2.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());


            data1.addData(dataPoint2);
            bunifuCharts1.Render(data1);
            Bunifu.DataViz.Data data2 = new Bunifu.DataViz.Data();

            Bunifu.DataViz.DataPoint dataPoint3 = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuCharts._type.spline);

            dataPoint3.addLabely("Degrees", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint3.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());
            dataPoint3.addLabely("Users", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint3.addLabely("Program", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint3.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());
            dataPoint3.addLabely("Degrees", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint3.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());

            dataPoint3.addLabely("Program", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint3.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());


            data2.addData(dataPoint3);
            bunifuCharts2.Render(data2);

            Bunifu.DataViz.Data data3 = new Bunifu.DataViz.Data();

            Bunifu.DataViz.DataPoint dataPoint4 = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuCharts._type.area);

            dataPoint4.addLabely("Degrees", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint4.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());
            dataPoint4.addLabely("Users", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint4.addLabely("Program", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint4.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());
            dataPoint4.addLabely("Degrees", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint4.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());
            dataPoint4.addLabely("Program", r.Next(0, Convert.ToInt32(studentDegrees.Count.ToString())).ToString());
            dataPoint4.addLabely("Program", r.Next(0, Convert.ToInt32(studentPrograms.Count.ToString())).ToString());


            data3.addData(dataPoint4);
            bunifuCharts3.Render(data3);
        }