|
- using Learun.Util;
- using System;
- using System.Data;
- using System.Collections.Generic;
-
- namespace Learun.Application.TwoDevelopment.EducationalAdministration
- {
- /// <summary>
- /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
- /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
- /// 创 建:超级管理员
- /// 日 期:2021-12-16 10:14
- /// 描 述:长阳迎新
- /// </summary>
- public class StuVolunteerBLL : StuVolunteerIBLL
- {
- private StuVolunteerService stuVolunteerService = new StuVolunteerService();
-
- #region 获取数据
-
- /// <summary>
- /// 获取页面显示列表数据
- /// </summary>
- /// <param name="pagination">分页参数</param>
- /// <param name="queryJson">查询参数</param>
- /// <returns></returns>
- public IEnumerable<StuVolunteerEntity> GetPageList(Pagination pagination, string queryJson)
- {
- try
- {
- return stuVolunteerService.GetPageList(pagination, queryJson);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- /// <summary>
- /// 获取StuVolunteer表实体数据
- /// </summary>
- /// <param name="keyValue">主键</param>
- /// <returns></returns>
- public StuVolunteerEntity GetStuVolunteerEntity(string keyValue)
- {
- try
- {
- return stuVolunteerService.GetStuVolunteerEntity(keyValue);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
- /// <summary>
- /// 专业统计
- /// </summary>
- /// <param name="pagination">分页参数</param>
- /// <param name="queryJson">查询参数</param>
- /// <returns></returns>
- public IEnumerable<StuVolunteerEntity> GetMajorStatistics(string queryJson)
- {
- try
- {
- return stuVolunteerService.GetMajorStatistics(queryJson);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
- #endregion
-
- #region 提交数据
-
- /// <summary>
- /// 删除实体数据
- /// </summary>
- /// <param name="keyValue">主键</param>
- public void DeleteEntity(string keyValue)
- {
- try
- {
- stuVolunteerService.DeleteEntity(keyValue);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- /// <summary>
- /// 保存实体数据(新增、修改)
- /// </summary>
- /// <param name="keyValue">主键</param>
- /// <param name="entity">实体</param>
- /// <returns></returns>
- public void SaveEntity(string keyValue, StuVolunteerEntity entity)
- {
- try
- {
- stuVolunteerService.SaveEntity(keyValue, entity);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- /// <summary>
- /// 分班
- /// </summary>
- /// <param name="keyValue"></param>
- /// <param name="ClassNo"></param>
- public void SaveClassForm(string keyValue, string ClassNo)
- {
- try
- {
- stuVolunteerService.SaveClassForm(keyValue, ClassNo);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- public void CheckForm(string keyValue, int ClassStatus)
- {
- try
- {
- stuVolunteerService.CheckForm(keyValue, ClassStatus);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
- /// <summary>
- /// 生成学籍
- /// </summary>
- public void GenerateStu()
- {
- try
- {
- stuVolunteerService.GenerateStu();
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- #endregion
-
- #region 扩展数据
-
- /// <summary>
- /// 去重
- /// </summary>
- /// <param name="H_SchoolNo">学号</param>
- /// <param name="ApplyNo">报名号</param>
- /// <param name="CardNo">身份证</param>
- /// <returns></returns>
- public List<StuVolunteerEntity> GetRepetitions(string H_SchoolNo, string ApplyNo, string CardNo)
- {
- try
- {
- return stuVolunteerService.GetRepetitions(H_SchoolNo, ApplyNo, CardNo);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
- /// <summary>
- /// 标注数据
- /// </summary>
- /// <param name="keyValue">主键</param>
- public void LabelEntity(string keyValue)
- {
- try
- {
- stuVolunteerService.LabelEntity(keyValue);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- /// <summary>
- /// 取消标注数据
- /// </summary>
- /// <param name="keyValue">主键</param>
- public void CancelLabel(string keyValue)
- {
- try
- {
- stuVolunteerService.CancelLabel(keyValue);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- /// <summary>
- /// 志愿填报
- /// </summary>
- /// <param name="keyValue"></param>
- /// <param name="entity"></param>
- public void IsOurSchool(string keyValue, StuVolunteerEntity entity)
- {
- try
- {
- stuVolunteerService.IsOurSchool(keyValue, entity);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- /// <summary>
- /// 录取学生
- /// </summary>
- /// <param name="keyValue">主键</param>
- public void EnrollEntity(string keyValue)
- {
- try
- {
- stuVolunteerService.EnrollEntity(keyValue);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- /// <summary>
- /// 取消录取学生
- /// </summary>
- /// <param name="keyValue">主键</param>
- public void CancelEntity(string keyValue)
- {
- try
- {
- stuVolunteerService.CancelEntity(keyValue);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- /// <summary>
- /// 保存实体数据(新增、修改)
- /// </summary>
- /// <param name="keyValue">主键</param>
- /// <param name="entity">实体</param>
- /// <returns></returns>
- public void DraftForm(string keyValue, StuVolunteerEntity entity)
- {
- try
- {
- stuVolunteerService.DraftForm(keyValue, entity);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- /// <summary>
- /// 保存实体数据(新增、修改)
- /// </summary>
- /// <param name="keyValue">主键</param>
- /// <param name="entity">实体</param>
- /// <returns></returns>
- public void SubmitForm(string keyValue, StuVolunteerEntity entity)
- {
- try
- {
- stuVolunteerService.SubmitForm(keyValue, entity);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
-
- /// <summary>
- /// 获取StuVolunteer表实体数据
- /// </summary>
- /// <param name="keyValue">主键</param>
- /// <returns></returns>
- public StuVolunteerEntity GetEntityByCardNo(string CardNo)
- {
- try
- {
- return stuVolunteerService.GetEntityByCardNo(CardNo);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- /// <summary>
- /// 标注数据
- /// </summary>
- /// <param name="keyValue">主键</param>
- public void JoinEntity(string keyValue)
- {
- try
- {
- stuVolunteerService.JoinEntity(keyValue);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- /// <summary>
- /// 取消标注数据
- /// </summary>
- /// <param name="keyValue">主键</param>
- public void CanJoin(string keyValue)
- {
- try
- {
- stuVolunteerService.CanJoin(keyValue);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- /// <summary>
- /// 专业审核
- /// </summary>
- /// <param name="keyValue"></param>
- /// <param name="ClassStatus"></param>
- public void MajorForm(string keyValue, int ClassStatus)
- {
- try
- {
- stuVolunteerService.MajorForm(keyValue, ClassStatus);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
-
- /// <summary>
- /// 专业注册
- /// </summary>
- /// <param name="keyValue"></param>
- /// <param name="ClassNo"></param>
- public void SaveMajorForm(string keyValue, string MajorNo)
- {
- try
- {
- stuVolunteerService.SaveMajorForm(keyValue, MajorNo);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
- #endregion
- }
- }
|