Пример #1
0
        public ActionResult Student()
        {
            student     s1 = new student();
            studentinfo s2 = new studentinfo();

            studentinfo.Stu();
            s1.name            = "";
            s1.phone_Number    = 9877483938;
            s1.Register_Number = 12345;
            return(View());
        }
Пример #2
0
        private string BuildStudentInfo()
        {
            var studentsInfo = new studentinfo();

            studentsInfo.studentinfo1 = new studentinfoStudentinfo[1];
            studentinfoStudentinfo stuInfo = new studentinfoStudentinfo();

            //stuInfo.AdmissionId = txtAdmissionNumber.Text;
            stuInfo.AdmissionYear        = drpAdmsYear.SelectedItem.Text;
            stuInfo.StudentClass         = drpAdmissiontoclass.SelectedValue;
            stuInfo.StudentSection       = drpSection.SelectedValue;
            stuInfo.FirstName            = txtFirstName.Text;
            stuInfo.LastName             = txtSurName.Text;
            stuInfo.Gender               = drpGender.SelectedItem.Text;
            stuInfo.DateOfAdmission      = txtDateOfAdmission.Text;
            stuInfo.PoB                  = txtPlaceOfBirth.Text;
            stuInfo.DOB                  = txtDateOfBirth.Text;
            stuInfo.Age                  = Convert.ToInt32(drpAge.SelectedItem.Text);
            stuInfo.MotherTongue         = drpMothertongue.SelectedItem.Text;
            stuInfo.IdentityMark1        = txtIdentity1.Text;
            stuInfo.IdentityMark2        = txtIdentity2.Text;
            stuInfo.Caste                = drpCity.SelectedValue;
            stuInfo.PhysicallyChallenged = rdblPhysicallyChanlenged.SelectedItem.Text;
            stuInfo.PreviousClasasYear   = txtclassprevyear.Text;
            stuInfo.Photo                = string.Empty;
            stuInfo.BusFacility          = rdblstBusFacility.SelectedItem.Text;
            stuInfo.PreviousSchool       = txtSchoolAttended.Text;
            stuInfo.PrevSchoolAddr       = txtPrevSchoolAddress.Text;
            stuInfo.FatherName           = txtFatherName.Text;
            stuInfo.MotherName           = txtMotherName.Text;
            stuInfo.Email                = txtEmail.Text;
            stuInfo.FatherOccupation     = txtFathersOccupation.Text;
            stuInfo.MotherOccupation     = txtMothersOccupation.Text;
            stuInfo.Nationality          = txtNationality.Text;
            stuInfo.Religion             = drpReligion.SelectedItem.Text;
            stuInfo.FatherIncome         = txtFathersIncome.Text;
            stuInfo.Address              = txtAddress.Text;
            stuInfo.State                = Convert.ToInt32(drpState.SelectedValue);
            stuInfo.City                 = Convert.ToInt32(drpCity.SelectedValue);
            stuInfo.Distict              = Convert.ToInt32(drpDistrict.SelectedValue);
            stuInfo.PinCode              = txtpincode.Text;
            stuInfo.ContactNo            = txtContactNo.Text;
            stuInfo.HostCode             = "DEMO";
            stuInfo.Status               = "A";
            stuInfo.SortSeq              = 0;
            stuInfo.CreatedDate          = DateTime.Now.ToString();
            stuInfo.CreatedBy            = 1;
            stuInfo.ModifiedDate         = DateTime.Now.ToString();
            stuInfo.ModifiedBy           = 1;

            studentsInfo.studentinfo1[0] = stuInfo;
            return(GetXMLString(studentsInfo));
        }
Пример #3
0
        public bool Login(studentinfo student)
        {
            var query = DBContext.studentinfo.FirstOrDefault(x => x.stu_id == student.stu_id && x.stu_pwd == student.stu_pwd);

            if (query != null)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Пример #4
0
        private string BuildStudentInfo()
        {
            var studentsInfo = new studentinfo();
            studentsInfo.studentinfo1 = new studentinfoStudentinfo[1];
            studentinfoStudentinfo stuInfo = new studentinfoStudentinfo();

            //stuInfo.AdmissionId = txtAdmissionNumber.Text;
            stuInfo.AdmissionYear = drpAdmsYear.SelectedItem.Text;
            stuInfo.StudentClass = drpAdmissiontoclass.SelectedValue;
            stuInfo.StudentSection = drpSection.SelectedValue;
            stuInfo.FirstName = txtFirstName.Text;
            stuInfo.LastName = txtSurName.Text;
            stuInfo.Gender = drpGender.SelectedItem.Text;
            stuInfo.DateOfAdmission = txtDateOfAdmission.Text;
            stuInfo.PoB = txtPlaceOfBirth.Text;
            stuInfo.DOB = txtDateOfBirth.Text;
            stuInfo.Age = Convert.ToInt32(drpAge.SelectedItem.Text);
            stuInfo.MotherTongue = drpMothertongue.SelectedItem.Text;
            stuInfo.IdentityMark1 = txtIdentity1.Text;
            stuInfo.IdentityMark2 = txtIdentity2.Text;
            stuInfo.Caste = drpCity.SelectedValue;
            stuInfo.PhysicallyChallenged = rdblPhysicallyChanlenged.SelectedItem.Text;
            stuInfo.PreviousClasasYear = txtclassprevyear.Text;
            stuInfo.Photo = string.Empty;
            stuInfo.BusFacility = rdblstBusFacility.SelectedItem.Text;
            stuInfo.PreviousSchool = txtSchoolAttended.Text;
            stuInfo.PrevSchoolAddr = txtPrevSchoolAddress.Text;
            stuInfo.FatherName = txtFatherName.Text;
            stuInfo.MotherName = txtMotherName.Text;
            stuInfo.Email = txtEmail.Text;
            stuInfo.FatherOccupation = txtFathersOccupation.Text;
            stuInfo.MotherOccupation = txtMothersOccupation.Text;
            stuInfo.Nationality = txtNationality.Text;
            stuInfo.Religion = drpReligion.SelectedItem.Text;
            stuInfo.FatherIncome = txtFathersIncome.Text;
            stuInfo.Address = txtAddress.Text;
            stuInfo.State = Convert.ToInt32(drpState.SelectedValue);
            stuInfo.City = Convert.ToInt32(drpCity.SelectedValue);
            stuInfo.Distict = Convert.ToInt32(drpDistrict.SelectedValue);
            stuInfo.PinCode = txtpincode.Text;
            stuInfo.ContactNo = txtContactNo.Text;
            stuInfo.HostCode = "DEMO";
            stuInfo.Status = "A";
            stuInfo.SortSeq = 0;
            stuInfo.CreatedDate = DateTime.Now.ToString();
            stuInfo.CreatedBy = 1;
            stuInfo.ModifiedDate = DateTime.Now.ToString();
            stuInfo.ModifiedBy = 1;

            studentsInfo.studentinfo1[0] = stuInfo;
            return GetXMLString(studentsInfo);
        }