コード例 #1
0
        public DataTable GetAlldata()
        {
            List <PersonsAdmin> result = new List <PersonsAdmin>();

            using (PersonsDBEntities DC = conn.GetContext())
            {
                IEnumerable <PersonsAdmin> pl =
                    from r in DC.PersonsAdmins
                    orderby r.AdminID
                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #2
0
        public DataTable GetAllTelContacts()
        {
            List <TelContact> result = new List <TelContact>();

            using (PersonsDBEntities DC = conn.GetContext())
            {
                IEnumerable <TelContact> pl =
                    from r in DC.TelContacts
                    orderby r.ID
                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #3
0
        public DataTable GetAllEmp()
        {
            List <Employee> result = new List <Employee>();

            using (PersonsDBEntities DC = conn.GetContext())
            {
                IEnumerable <Employee> pl =
                    from r in DC.Employees
                    orderby r.EmployeeID
                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #4
0
        public DataTable GetAllFaculties()
        {
            List <Faculty> result = new List <Faculty>();

            using (PersonsDBEntities DC = conn.GetContext())
            {
                IEnumerable <Faculty> pl =
                    from r in DC.Faculties
                    orderby r.FacultyID
                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #5
0
        public DataTable GetAllDepartment()
        {
            List <Department> result = new List <Department>();

            using (PersonsDBEntities DC = conn.GetContext())
            {
                IEnumerable <Department> pl =
                    from r in DC.Departments
                    orderby r.DepartmentID
                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #6
0
        public DataTable Getexeldatavstd()
        {
            List <VStudent> result = new List <VStudent>();

            using (PersonsDBEntities DC = conn.GetContext())
            {
                IEnumerable <VStudent> pl =
                    from r in DC.VStudents
                    orderby r.StudentID
                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #7
0
        public DataTable GetAllEduLevels()
        {
            List <EduLevel> result = new List <EduLevel>();

            using (PersonsDBEntities DC = conn.GetContext())
            {
                IEnumerable <EduLevel> pl =
                    from r in DC.EduLevels
                    orderby r.LevelID
                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #8
0
        public DataTable GetAllLec()
        {
            List <Lecturer> result = new List <Lecturer>();

            using (PersonsDBEntities DC = conn.GetContext())
            {
                IEnumerable <Lecturer> pl =
                    from r in DC.Lecturers
                    orderby r.LecturerID
                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #9
0
        public DataTable GetAllTendency()
        {
            List <VEduTendency> result = new List <VEduTendency>();

            using (PersonsDBEntities DC = conn.GetContext())
            {
                IEnumerable <VEduTendency> pl =
                    from r in DC.VEduTendencies
                    orderby r.TendencyID
                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #10
0
        public DataTable GetAllvpns()
        {
            List <VPN> result = new List <VPN>();

            using (PersonsDBEntities DC = conn.GetContext())
            {
                IEnumerable <VPN> pl =
                    from r in DC.VPNs
                    orderby r.VPNID
                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #11
0
        public DataTable GetAlldata()
        {
            List <WebServiceAccount> result = new List <WebServiceAccount>();

            using (PersonsDBEntities DC = conn.GetContext())
            {
                IEnumerable <WebServiceAccount> pl =
                    from r in DC.WebServiceAccounts
                    orderby r.AccountID
                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #12
0
        public DataTable GetwebaccountList(int id)
        {
            List <WebServiceAccount> result = new List <WebServiceAccount>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <WebServiceAccount> pl =
                    from r in pb.WebServiceAccounts
                    where
                    r.AccountID == id

                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #13
0
        public DataTable GetAntiList(int Levelid)
        {
            List <EduLevel> result = new List <EduLevel>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <EduLevel> pl =
                    from r in pb.EduLevels
                    where
                    r.LevelID == Levelid

                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #14
0
        public DataTable GetAntiList(int fieldid)
        {
            List <EduField> result = new List <EduField>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <EduField> pl =
                    from r in pb.EduFields
                    where
                    r.FieldID == fieldid

                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #15
0
        public DataTable GetstdList(int lecid)
        {
            List <VLecturer> result = new List <VLecturer>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <VLecturer> pl =
                    from r in pb.VLecturers
                    where
                    r.LecturerID == lecid

                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #16
0
        public DataTable GetEmailpersonContactList(int userid, int usertypeid)
        {
            List <EmailContact> result = new List <EmailContact>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <EmailContact> pl =
                    from r in pb.EmailContacts
                    where
                    r.UserID == userid && r.UserTypeID == usertypeid

                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #17
0
        public DataTable GetFacultyList(int Facultyid)
        {
            List <Faculty> result = new List <Faculty>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <Faculty> pl =
                    from r in pb.Faculties
                    where
                    r.FacultyID == Facultyid

                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #18
0
        public DataTable GetstdList(int empid)
        {
            List <VEmployee> result = new List <VEmployee>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <VEmployee> pl =
                    from r in pb.VEmployees
                    where
                    r.EmployeeID == empid

                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #19
0
        public DataTable GetPersonAdminList(int Personid)
        {
            List <PersonsAdmin> result = new List <PersonsAdmin>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <PersonsAdmin> pl =
                    from r in pb.PersonsAdmins
                    where
                    r.AdminID == Personid

                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #20
0
        public DataTable GetRoleList(int Roleid)
        {
            List <Role> result = new List <Role>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <Role> pl =
                    from r in pb.Roles
                    where
                    r.RoleID == Roleid

                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #21
0
        public DataTable GetstdList(int stdid)
        {
            List <VStudent> result = new List <VStudent>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <VStudent> pl =
                    from r in pb.VStudents
                    where
                    r.StudentID == stdid

                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #22
0
        public DataTable GetAntiList(int departmentid)
        {
            List <Department> result = new List <Department>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <Department> pl =
                    from r in pb.Departments
                    where
                    r.DepartmentID == departmentid

                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #23
0
        public DataTable GetTelContactList(int TelContactid)
        {
            List <TelContact> result = new List <TelContact>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <TelContact> pl =
                    from r in pb.TelContacts
                    where
                    r.ID == TelContactid

                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #24
0
        public DataTable GettendencyList(int tendencyid)
        {
            List <VEduTendency> result = new List <VEduTendency>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <VEduTendency> pl =
                    from r in pb.VEduTendencies
                    where
                    r.TendencyID == tendencyid

                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #25
0
        public DataTable SearchTitle(string searchTitle)
        {
            List <Department> result = new List <Department>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <Department> pl =
                    from r in pb.Departments
                    where
                    r.DepartmentTitle.Contains(searchTitle)


                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #26
0
        public DataTable GetFacultyList(int emailtypeid)
        {
            List <EmailType> result = new List <EmailType>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <EmailType> pl =
                    from r in pb.EmailTypes
                    where
                    r.EmailTypeID == emailtypeid


                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #27
0
        public DataTable searchRoletitle(string searchTitle)
        {
            List <VEmployee> result = new List <VEmployee>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <VEmployee> pl =
                    from r in pb.VEmployees
                    where
                    r.RoleTitle.Contains(searchTitle)


                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #28
0
        public DataTable SearchpersonTelTypeid(int searchText, int UserTypeID, int UserID)
        {
            List <TelContact> result = new List <TelContact>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <TelContact> pl =
                    from r in pb.TelContacts
                    where
                    r.TelTypeID == searchText && r.UserID == UserID && r.UserTypeID == UserTypeID


                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #29
0
        public DataTable Searchtitle(string searchTitle)
        {
            List <VEduTendency> result = new List <VEduTendency>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <VEduTendency> pl =
                    from r in pb.VEduTendencies
                    where
                    r.TendencyTitle.Contains(searchTitle)


                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }
コード例 #30
0
        public DataTable SearchNationalcode(string searchTitle)
        {
            List <VEmployee> result = new List <VEmployee>();

            using (PersonsDBEntities pb = conn.GetContext())
            {
                IEnumerable <VEmployee> pl =
                    from r in pb.VEmployees
                    where
                    r.NationalCode == searchTitle


                    select r;

                result = pl.ToList();
            }

            return(PersonTools.ToDataTable(result));
        }