using Learun.Util;
using System;
using System.Data;
using System.Collections.Generic;
namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
///
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2019-05-14 10:02
/// 描 述:选修课课程信息
///
public class OpenLessonPlanOfElectiveBLL : OpenLessonPlanOfElectiveIBLL
{
private OpenLessonPlanOfElectiveService openLessonPlanOfElectiveService = new OpenLessonPlanOfElectiveService();
#region 获取数据
///
/// 获取页面显示列表数据
///
/// 查询参数
///
public IEnumerable GetPageList(Pagination pagination, string queryJson)
{
try
{
return openLessonPlanOfElectiveService.GetPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 获取页面显示列表数据
///
/// 查询参数
///
public IEnumerable GetPageListElective(Pagination pagination, string queryJson)
{
try
{
return openLessonPlanOfElectiveService.GetPageListElective(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 获取页面显示列表数据【学子在线-选课中心】
///
/// 查询参数
///
public IEnumerable GetPageListOfStudent(Pagination pagination, string queryJson)
{
try
{
return openLessonPlanOfElectiveService.GetPageListOfStudent(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 获取OpenLessonPlanOfElective表实体数据
/// 主键
///
///
public OpenLessonPlanOfElectiveEntity GetOpenLessonPlanOfElectiveEntity(string keyValue)
{
try
{
return openLessonPlanOfElectiveService.GetOpenLessonPlanOfElectiveEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 获取OpenLessonPlan表实体数据
/// 主键
///
///
public OpenLessonPlanOfElectiveEntity GetOpenLessonPlanEntityByJson(string queryJson)
{
try
{
return openLessonPlanOfElectiveService.GetOpenLessonPlanEntityByJson(queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 获取StuSelectLessonListEntity表实体数据
/// 主键
///
///
public StuSelectLessonListOfElectiveEntity GetStuSelectLessonListEntityByJson(string queryJson)
{
try
{
return openLessonPlanOfElectiveService.GetStuSelectLessonListEntityByJson(queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion
#region 提交数据
///
/// 删除实体数据
/// 主键
///
///
public void DeleteEntity(string keyValue)
{
try
{
openLessonPlanOfElectiveService.DeleteEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 保存实体数据(新增、修改)
/// 主键
///
///
public void SaveEntity(string keyValue, OpenLessonPlanOfElectiveEntity entity)
{
try
{
openLessonPlanOfElectiveService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
public void AddForm(string keyValue, OpenLessonPlanOfElectiveEntity entity)
{
try
{
openLessonPlanOfElectiveService.AddForm(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 保存实体数据(新增、修改)
/// 主键
///
///
public void SaveFormOfElective(string keyValue, OpenLessonPlanOfElectiveEntity entity)
{
try
{
openLessonPlanOfElectiveService.SaveFormOfElective(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion
#region 扩展数据
///
/// 获取选课时间管理
///
///
public EADateArrangeEntity GetEADateArrangeEntityAboutElective()
{
try
{
return openLessonPlanOfElectiveService.GetEADateArrangeEntityAboutElective();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
public IEnumerable GetPageListOfMerge(Pagination pagination, string queryJson)
{
try
{
return openLessonPlanOfElectiveService.GetPageListOfMerge(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 选修课课程异动
/// 主键
///
///
public void DoElectiveChange(OpenLessonPlanOfElectiveChangeEntity entity)
{
try
{
openLessonPlanOfElectiveService.DoElectiveChange(entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
public void InitStuSelectLesson(string keyvalue)
{
try
{
openLessonPlanOfElectiveService.InitStuSelectLesson(keyvalue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
public void SaveStuSelectLessonListScaleByJson(string queryJson, StuSelectLessonListOfElectiveEntity entity)
{
try
{
openLessonPlanOfElectiveService.SaveStuSelectLessonListScaleByJson(queryJson, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion
}
}