Пример #1
0
        public DataTable GetSchoolAdminTable(BCCityAdmin objCityAdmin)
        {
            _dt = DataAccessLayer.ExecuteStoredProcedureToRetDataTable(new SqlParameter[] { new SqlParameter("@SchoolAdminId", objCityAdmin.SchoolAdminId) },
                                                                       "SP_GET_SCHOOLADMIN");

            return(_dt);
        }
Пример #2
0
        public DataTable GetSchoolClassMaster(BCCityAdmin objCityAdmin)
        {
            _dt = DataAccessLayer.ExecuteStoredProcedureToRetDataTable(new SqlParameter[] { new SqlParameter("@CityAdminId", objCityAdmin.CityAdminId),
                                                                                            new SqlParameter("@CityId", objCityAdmin.CityId), new SqlParameter("@School", objCityAdmin.School) },
                                                                       "sp_SchoolClassMaster");

            return(_dt);
        }
Пример #3
0
        public DataTable GetClassParticipantsList(BCCityAdmin objCityAdmin)
        {
            _dt = DataAccessLayer.ExecuteStoredProcedureToRetDataTable(new SqlParameter[] { new SqlParameter("@ClassAdminId", objCityAdmin.ClassAdminId),
                                                                                            new SqlParameter("@classid", objCityAdmin.ClassId) },
                                                                       "SP_GET_ClassParticipantsList");

            return(_dt);
        }
Пример #4
0
        public DataTable GetSchoolMaster(BCCityAdmin objCityAdmin)
        {
            _dt = DataAccessLayer.ExecuteStoredProcedureToRetDataTable(new SqlParameter[] { new SqlParameter("@SchoolId", objCityAdmin.SchoolId),
                                                                                            new SqlParameter("@CityAdminId", objCityAdmin.CityAdminId), new SqlParameter("@CityId", objCityAdmin.CityId),
                                                                                            new SqlParameter("@SchoolName", objCityAdmin.School) },
                                                                       "SP_GET_SCHOOL");

            return(_dt);
        }
Пример #5
0
        public DataTable GetTestPlan(BCCityAdmin objCityAdmin)
        {
            _dt = DataAccessLayer.ExecuteStoredProcedureToRetDataTable(new SqlParameter[] {
                new SqlParameter("@CityId", objCityAdmin.CityId),
                new SqlParameter("@ClassId", objCityAdmin.ClassId)
            },
                                                                       "sp_TestReport");

            return(_dt);
        }
Пример #6
0
        public DataTable GetSchoolMasterData(BCCityAdmin objCityAdmin)
        {
            try
            {
                _dt = DataAccessLayer.ExecuteStoredProcedureToRetDataTable(new SqlParameter[] {
                    new SqlParameter("@SchoolId", (objCityAdmin.SchoolId == 0 ? 0 : objCityAdmin.SchoolId)),
                    new SqlParameter("@CityAdminId", (objCityAdmin.CityAdminId == 0 ? 0 : objCityAdmin.CityAdminId)),
                    new SqlParameter("@CityId", (objCityAdmin.CityId == 0 ? 0 : objCityAdmin.CityId)),
                    new SqlParameter("@SchoolName", (objCityAdmin.School == null ? " " : objCityAdmin.School))
                }
                                                                           , "SP_GET_SCHOOL");
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(_dt);
        }
Пример #7
0
        public DataTable GetTestPlan(BCCityAdmin objCityAdmin)
        {
            _dt = DataAccessLayer.ExecuteStoredProcedureToRetDataTable(new SqlParameter[] {
            new SqlParameter("@CityId", objCityAdmin.CityId),
            new SqlParameter("@ClassId", objCityAdmin.ClassId)},
                "sp_TestReport");

            return _dt;
        }
Пример #8
0
        public DataTable GetSchoolMasterData(BCCityAdmin objCityAdmin)
        {
            try
            {
                _dt = DataAccessLayer.ExecuteStoredProcedureToRetDataTable(new SqlParameter[] {

            new SqlParameter("@SchoolId", (objCityAdmin.SchoolId == 0 ? 0 : objCityAdmin.SchoolId)),
            new SqlParameter("@CityAdminId", (objCityAdmin.CityAdminId == 0 ? 0 : objCityAdmin.CityAdminId)),
            new SqlParameter("@CityId", (objCityAdmin.CityId == 0 ? 0 : objCityAdmin.CityId)),
            new SqlParameter("@SchoolName", (objCityAdmin.School == null ? " " : objCityAdmin.School))

            }
                    , "SP_GET_SCHOOL");
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return _dt;
        }
Пример #9
0
        public DataTable GetSchoolMaster(BCCityAdmin objCityAdmin)
        {
            _dt = DataAccessLayer.ExecuteStoredProcedureToRetDataTable(new SqlParameter[] { new SqlParameter("@SchoolId", objCityAdmin.SchoolId),
            new SqlParameter("@CityAdminId", objCityAdmin.CityAdminId),new SqlParameter("@CityId", objCityAdmin.CityId),
            new SqlParameter("@SchoolName", objCityAdmin.School)},
                "SP_GET_SCHOOL");

            return _dt;
        }
Пример #10
0
        public DataTable GetSchoolClassMaster(BCCityAdmin objCityAdmin)
        {
            _dt = DataAccessLayer.ExecuteStoredProcedureToRetDataTable(new SqlParameter[] { new SqlParameter("@CityAdminId", objCityAdmin.CityAdminId),
            new SqlParameter("@CityId", objCityAdmin.CityId),new SqlParameter("@School", objCityAdmin.School)},
                "sp_SchoolClassMaster");

            return _dt;
        }
Пример #11
0
        public DataTable GetSchoolAdminTable(BCCityAdmin objCityAdmin)
        {
            _dt = DataAccessLayer.ExecuteStoredProcedureToRetDataTable(new SqlParameter[] { new SqlParameter("@SchoolAdminId", objCityAdmin.SchoolAdminId) },
                "SP_GET_SCHOOLADMIN");

            return _dt;
        }
Пример #12
0
        public DataTable GetClassParticipantsList(BCCityAdmin objCityAdmin)
        {
            _dt = DataAccessLayer.ExecuteStoredProcedureToRetDataTable(new SqlParameter[] { new SqlParameter("@ClassAdminId", objCityAdmin.ClassAdminId),
            new SqlParameter("@classid",objCityAdmin.ClassId) },
                "SP_GET_ClassParticipantsList");

            return _dt;
        }