diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Controllers/EnrollmentMajorPlanSourceController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Controllers/EnrollmentMajorPlanSourceController.cs
new file mode 100644
index 000000000..9791be16f
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Controllers/EnrollmentMajorPlanSourceController.cs
@@ -0,0 +1,121 @@
+using Learun.Application.TwoDevelopment.AdmissionsPlatform;
+using Learun.Util;
+using System.Data;
+using System.Web.Mvc;
+
+namespace Learun.Application.Web.Areas.AdmissionsPlatform.Controllers
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2023-09-12 14:43
+ /// 描 述:EnrollmentMajorPlanSource
+ ///
+ public class EnrollmentMajorPlanSourceController : MvcControllerBase
+ {
+ private EnrollmentMajorPlanSourceIBLL enrollmentMajorPlanSourceIBLL = new EnrollmentMajorPlanSourceBLL();
+
+ #region 视图功能
+
+ ///
+ /// 主页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Index()
+ {
+ return View();
+ }
+ ///
+ /// 表单页
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Form()
+ {
+ return View();
+ }
+ #endregion
+
+ #region 获取数据
+
+ ///
+ /// 获取列表数据
+ ///
+ /// 查询参数
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetList( string queryJson )
+ {
+ var data = enrollmentMajorPlanSourceIBLL.GetList(queryJson);
+ return Success(data);
+ }
+ ///
+ /// 获取列表分页数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetPageList(string pagination, string queryJson)
+ {
+ Pagination paginationobj = pagination.ToObject();
+ var data = enrollmentMajorPlanSourceIBLL.GetPageList(paginationobj, queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = paginationobj.total,
+ page = paginationobj.page,
+ records = paginationobj.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ /// 主键
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetFormData(string keyValue)
+ {
+ var data = enrollmentMajorPlanSourceIBLL.GetEntity(keyValue);
+ return Success(data);
+ }
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ ///
+ [HttpPost]
+ [AjaxOnly]
+ public ActionResult DeleteForm(string keyValue)
+ {
+ enrollmentMajorPlanSourceIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ ///
+ [HttpPost]
+ [ValidateAntiForgeryToken]
+ [AjaxOnly]
+ public ActionResult SaveForm(string keyValue,EnrollmentMajorPlanSourceEntity entity)
+ {
+ enrollmentMajorPlanSourceIBLL.SaveEntity(keyValue, entity);
+ return Success("保存成功!");
+ }
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Views/EnrollmentMajorPlanSource/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Views/EnrollmentMajorPlanSource/Form.cshtml
new file mode 100644
index 000000000..65b97d65b
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Views/EnrollmentMajorPlanSource/Form.cshtml
@@ -0,0 +1,35 @@
+@{
+ ViewBag.Title = "EnrollmentMajorPlanSource";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/AdmissionsPlatform/Views/EnrollmentMajorPlanSource/Form.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Views/EnrollmentMajorPlanSource/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Views/EnrollmentMajorPlanSource/Form.js
new file mode 100644
index 000000000..15916683e
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Views/EnrollmentMajorPlanSource/Form.js
@@ -0,0 +1,139 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2023-09-12 14:43
+ * 描 述:EnrollmentMajorPlanSource
+ */
+var acceptClick;
+var keyValue = request('keyValue');
+var bootstrap = function ($, learun) {
+ "use strict";
+ var selectedRow = learun.frameTab.currentIframe().selectedRow;
+ var page = {
+ init: function () {
+ page.initData();
+ page.bind();
+ },
+ bind: function () {
+ $('#ProvinceNo').lrDataSourceSelect({
+ code: 'DIC_PROVINCE', value: 'pcode', text: 'pname',
+ select: function (item) {
+ if (!!item) {
+ $('#CityNo').lrselectRefresh({
+ url: "/DIC_CITY/GetListByProvinceCode",
+ param: { ProvinceCode: item.pcode },
+ value: 'CCODE',
+ text: 'CNAME'
+ });
+ $('#RegionNo').lrselectRefresh({
+ url: "",
+ data: []
+ });
+ }
+ }
+ });
+ $('#CityNo').lrselect({
+ select: function (item) {
+ if (!!item) {
+ $('#AreaNo').lrselectRefresh({
+ url: top.$.rootUrl + "/DIC_AREA/GetAreasListByCityCode",
+ param: { cityCode: item.CCODE },
+ value: 'ACODE',
+ text: 'ANAME'
+ });
+ }
+ }
+ });
+ $('#AreaNo').lrselect();
+ $('#MajorPlanId').lrGirdSelect({
+ url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=EnrollmentMajorPlan',
+ param: { strWhere: " 1=1 " },
+ height: 800,
+ width: 1000,
+ value: 'id',
+ text: 'id',
+ headData:
+ [
+ { label: "id", name: "id", width: 100, align: "left", ishide: true },
+ { label: "学年", name: "year", width: 100, align: "left" },
+ { label: "学期", name: "semester", width: 100, align: "left" },
+ {
+ label: "系部", name: "deptno", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
+ key: value,
+ keyId: 'deptno',
+ callback: function (_data) {
+ callback(_data['deptname']);
+ }
+ });
+ }
+ },
+ {
+ label: "专业", name: "majorno", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
+ key: value,
+ keyId: 'majorno',
+ callback: function (_data) {
+ callback(_data['majorname']);
+ }
+ });
+ }
+ },
+ {
+ label: "招生科类", name: "subjectno", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'ExamSubject',
+ key: value,
+ keyId: 'subjectname',
+ callback: function (_data) {
+ callback(_data['subjectname']);
+ }
+ });
+ }
+ },
+ {
+ label: "本专科", name: "recruittype", width: 100, align: "left",
+ formatter: function (cellvalue) {
+ if (cellvalue == 0) {
+ return "本科"
+ } else {
+ return "专科"
+ }
+ }
+ },
+ { label: "招生人数", name: "recruitnum", width: 100, align: "left" },
+ { label: "已招人数", name: "joinnum", width: 100, align: "left" },
+ { label: "备注", name: "remark", width: 200, align: "left" }
+ ],
+ select: function (item) {
+ $("#MajorPlanId").val(item.id);
+ $("#JoinNum").val(item.joinnum);
+ }
+ });
+ },
+ initData: function () {
+ if (!!selectedRow) {
+ $('#form').lrSetFormData(selectedRow);
+ }
+ }
+ };
+ // 保存数据
+ acceptClick = function (callBack) {
+ if (!$('#form').lrValidform()) {
+ return false;
+ }
+ var postData = $('#form').lrGetFormData();
+ $.lrSaveForm(top.$.rootUrl + '/AdmissionsPlatform/EnrollmentMajorPlanSource/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack();
+ }
+ });
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Views/EnrollmentMajorPlanSource/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Views/EnrollmentMajorPlanSource/Index.cshtml
new file mode 100644
index 000000000..a13c56806
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Views/EnrollmentMajorPlanSource/Index.cshtml
@@ -0,0 +1,44 @@
+@{
+ ViewBag.Title = "EnrollmentMajorPlanSource";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/AdmissionsPlatform/Views/EnrollmentMajorPlanSource/Index.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Views/EnrollmentMajorPlanSource/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Views/EnrollmentMajorPlanSource/Index.js
new file mode 100644
index 000000000..6eeabe546
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AdmissionsPlatform/Views/EnrollmentMajorPlanSource/Index.js
@@ -0,0 +1,160 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2023-09-12 14:43
+ * 描 述:EnrollmentMajorPlanSource
+ */
+var selectedRow;
+var refreshGirdData;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ page.initGird();
+ page.bind();
+ },
+ bind: function () {
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 400);
+ $('#ProvinceNo').lrDataSourceSelect({
+ code: 'DIC_PROVINCE', value: 'pcode', text: 'pname',
+ select: function (item) {
+ if (!!item) {
+ $('#CityNo').lrselectRefresh({
+ url: "/DIC_CITY/GetListByProvinceCode",
+ param: { ProvinceCode: item.pcode },
+ value: 'CCODE',
+ text: 'CNAME'
+ });
+ $('#RegionNo').lrselectRefresh({
+ url: "",
+ data: []
+ });
+ }
+ }
+ });
+ $('#CityNo').lrselect({
+ select: function (item) {
+ if (!!item) {
+ $('#AreaNo').lrselectRefresh({
+ url: top.$.rootUrl + "/DIC_AREA/GetAreasListByCityCode",
+ param: { cityCode: item.CCODE },
+ value: 'ACODE',
+ text: 'ANAME'
+ });
+ }
+ }
+ });
+ $('#AreaNo').lrselect();
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ // 新增
+ $('#lr_add').on('click', function () {
+ selectedRow = null;
+ learun.layerForm({
+ id: 'form',
+ title: '新增',
+ url: top.$.rootUrl + '/AdmissionsPlatform/EnrollmentMajorPlanSource/Form',
+ width: 700,
+ height: 400,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ });
+ // 编辑
+ $('#lr_edit').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('ID');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ learun.layerForm({
+ id: 'form',
+ title: '编辑',
+ url: top.$.rootUrl + '/AdmissionsPlatform/EnrollmentMajorPlanSource/Form?keyValue=' + keyValue,
+ width: 700,
+ height: 400,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ }
+ });
+ // 删除
+ $('#lr_delete').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('ID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认删除该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/AdmissionsPlatform/EnrollmentMajorPlanSource/DeleteForm', { keyValue: keyValue }, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ }
+ });
+ },
+ initGird: function () {
+ $('#gridtable').lrAuthorizeJfGrid({
+ url: top.$.rootUrl + '/AdmissionsPlatform/EnrollmentMajorPlanSource/GetPageList',
+ headData: [
+ {
+ label: '省', name: 'ProvinceNo', width: 200, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_PROVINCE',
+ key: value,
+ keyId: 'pcode',
+ callback: function (_data) {
+ callback(_data['pname']);
+ }
+ });
+ }
+ },
+ {
+ label: '市', name: 'CityNo', width: 200, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_CITY',
+ key: value,
+ keyId: 'ccode',
+ callback: function (_data) {
+ callback(_data['cname']);
+ }
+ });
+ }
+ },
+ {
+ label: '县', name: 'AreaNo', width: 200, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_AREA',
+ key: value,
+ keyId: 'acode',
+ callback: function (_data) {
+ callback(_data['aname']);
+ }
+ });
+ }
+ },
+
+ { label: '人数', name: 'Num', width: 200, align: "left" },
+ { label: '备注', name: 'Reamrk', width: 200, align: "left" },
+ ],
+ mainId: 'ID',
+ isPage: true
+ });
+ page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function () {
+ $('#gridtable').jfGridSet('reload');
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
index c7e0cd9d0..9507305a4 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
@@ -895,6 +895,7 @@
+
@@ -6839,6 +6840,10 @@
+
+
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/AdmissionsPlatform/EnrollmentMajorPlanSourceMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/AdmissionsPlatform/EnrollmentMajorPlanSourceMap.cs
new file mode 100644
index 000000000..a7d1d8739
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/AdmissionsPlatform/EnrollmentMajorPlanSourceMap.cs
@@ -0,0 +1,29 @@
+using Learun.Application.TwoDevelopment.AdmissionsPlatform;
+using System.Data.Entity.ModelConfiguration;
+
+namespace Learun.Application.Mapping
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2023-09-12 14:43
+ /// 描 述:EnrollmentMajorPlanSource
+ ///
+ public class EnrollmentMajorPlanSourceMap : EntityTypeConfiguration
+ {
+ public EnrollmentMajorPlanSourceMap()
+ {
+ #region 表、主键
+ //表
+ this.ToTable("ENROLLMENTMAJORPLANSOURCE");
+ //主键
+ this.HasKey(t => t.ID);
+ #endregion
+
+ #region 配置关系
+ #endregion
+ }
+ }
+}
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
index 9a55d581b..753a63411 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
@@ -625,6 +625,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlan/EnrollmentMajorPlanEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlan/EnrollmentMajorPlanEntity.cs
index 1148e8615..1c3e2657f 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlan/EnrollmentMajorPlanEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlan/EnrollmentMajorPlanEntity.cs
@@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.AdmissionsPlatform
/// 日 期:2023-09-11 14:55
/// 描 述:EnrollmentMajorPlan
///
- public class EnrollmentMajorPlanEntity
+ public class EnrollmentMajorPlanEntity
{
#region 实体成员
///
@@ -84,6 +84,11 @@ namespace Learun.Application.TwoDevelopment.AdmissionsPlatform
///
[Column("RECRUITTYPE")]
public string RecruitType { get; set; }
+ ///
+ ///
+ ///
+ [Column("JOINNUM")]
+ public int? JoinNum { get; set; }
#endregion
#region 扩展操作
@@ -94,6 +99,7 @@ namespace Learun.Application.TwoDevelopment.AdmissionsPlatform
{
this.ID = Guid.NewGuid().ToString();
this.CheckMark = "0";
+ this.JoinNum = 0;
this.CreateTime = DateTime.Now;
this.CreateUser = LoginUserInfo.Get().userId;
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlan/EnrollmentMajorPlanService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlan/EnrollmentMajorPlanService.cs
index 820b8667f..5766b6fca 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlan/EnrollmentMajorPlanService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlan/EnrollmentMajorPlanService.cs
@@ -123,7 +123,12 @@ namespace Learun.Application.TwoDevelopment.AdmissionsPlatform
var id = keyValue.Split(',');
foreach (var item in id)
{
- db.Delete(item);
+ var deletes = db.FindEntity(x => x.MajorPlanId == keyValue);
+ if (deletes != null)
+ {
+ db.Delete(deletes);
+ }
+ db.Delete(x => x.ID == item);
}
db.Commit();
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlanSource/EnrollmentMajorPlanSourceBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlanSource/EnrollmentMajorPlanSourceBLL.cs
new file mode 100644
index 000000000..1414604c1
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlanSource/EnrollmentMajorPlanSourceBLL.cs
@@ -0,0 +1,148 @@
+using Learun.Util;
+using System;
+using System.Data;
+using System.Collections.Generic;
+
+namespace Learun.Application.TwoDevelopment.AdmissionsPlatform
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2023-09-12 14:43
+ /// 描 述:EnrollmentMajorPlanSource
+ ///
+ public class EnrollmentMajorPlanSourceBLL : EnrollmentMajorPlanSourceIBLL
+ {
+ private EnrollmentMajorPlanSourceService enrollmentMajorPlanSourceService = new EnrollmentMajorPlanSourceService();
+
+ #region 获取数据
+
+ ///
+ /// 获取列表数据
+ ///
+ /// 查询参数
+ ///
+ public IEnumerable GetList( string queryJson )
+ {
+ try
+ {
+ return enrollmentMajorPlanSourceService.GetList(queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取列表分页数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ public IEnumerable GetPageList(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ return enrollmentMajorPlanSourceService.GetPageList(pagination, queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取实体数据
+ ///
+ /// 主键
+ ///
+ public EnrollmentMajorPlanSourceEntity GetEntity(string keyValue)
+ {
+ try
+ {
+ return enrollmentMajorPlanSourceService.GetEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ public void DeleteEntity(string keyValue)
+ {
+ try
+ {
+ enrollmentMajorPlanSourceService.DeleteEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ public void SaveEntity(string keyValue, EnrollmentMajorPlanSourceEntity entity)
+ {
+ try
+ {
+ enrollmentMajorPlanSourceService.SaveEntity(keyValue, entity);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlanSource/EnrollmentMajorPlanSourceEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlanSource/EnrollmentMajorPlanSourceEntity.cs
new file mode 100644
index 000000000..a12ec7bbc
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlanSource/EnrollmentMajorPlanSourceEntity.cs
@@ -0,0 +1,82 @@
+using Learun.Util;
+using System;
+using System.ComponentModel.DataAnnotations.Schema;
+namespace Learun.Application.TwoDevelopment.AdmissionsPlatform
+
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2023-09-12 14:43
+ /// 描 述:EnrollmentMajorPlanSource
+ ///
+ public class EnrollmentMajorPlanSourceEntity
+ {
+ #region 实体成员
+ ///
+ /// ID
+ ///
+ ///
+ [Column("ID")]
+ public string ID { get; set; }
+ ///
+ /// MajorPlanId
+ ///
+ ///
+ [Column("MAJORPLANID")]
+ public string MajorPlanId { get; set; }
+ ///
+ /// ProvinceNo
+ ///
+ ///
+ [Column("PROVINCENO")]
+ public string ProvinceNo { get; set; }
+ ///
+ /// AreaNo
+ ///
+ ///
+ [Column("AREANO")]
+ public string AreaNo { get; set; }
+ ///
+ /// AreaNo
+ ///
+ ///
+ [Column("CITYNO")]
+ public string CityNo { get; set; }
+
+ ///
+ /// Num
+ ///
+ ///
+ [Column("NUM")]
+ public int? Num { get; set; }
+ ///
+ /// Reamrk
+ ///
+ ///
+ [Column("REAMRK")]
+ public string Reamrk { get; set; }
+
+ #endregion
+
+ #region 扩展操作
+ ///
+ /// 新增调用
+ ///
+ public void Create()
+ {
+ this.ID = Guid.NewGuid().ToString();
+ }
+ ///
+ /// 编辑调用
+ ///
+ ///
+ public void Modify(string keyValue)
+ {
+ this.ID = keyValue;
+ }
+ #endregion
+ }
+}
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlanSource/EnrollmentMajorPlanSourceIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlanSource/EnrollmentMajorPlanSourceIBLL.cs
new file mode 100644
index 000000000..25307e744
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlanSource/EnrollmentMajorPlanSourceIBLL.cs
@@ -0,0 +1,55 @@
+using Learun.Util;
+using System.Data;
+using System.Collections.Generic;
+
+namespace Learun.Application.TwoDevelopment.AdmissionsPlatform
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2023-09-12 14:43
+ /// 描 述:EnrollmentMajorPlanSource
+ ///
+ public interface EnrollmentMajorPlanSourceIBLL
+ {
+ #region 获取数据
+
+ ///
+ /// 获取列表数据
+ ///
+ /// 查询参数
+ ///
+ IEnumerable GetList( string queryJson );
+ ///
+ /// 获取列表分页数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ IEnumerable GetPageList(Pagination pagination, string queryJson);
+ ///
+ /// 获取实体数据
+ ///
+ /// 主键
+ ///
+ EnrollmentMajorPlanSourceEntity GetEntity(string keyValue);
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ void DeleteEntity(string keyValue);
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ void SaveEntity(string keyValue, EnrollmentMajorPlanSourceEntity entity);
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlanSource/EnrollmentMajorPlanSourceService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlanSource/EnrollmentMajorPlanSourceService.cs
new file mode 100644
index 000000000..e27c75adb
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AdmissionsPlatform/EnrollmentMajorPlanSource/EnrollmentMajorPlanSourceService.cs
@@ -0,0 +1,230 @@
+using Dapper;
+using Learun.DataBase.Repository;
+using Learun.Util;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Text;
+
+namespace Learun.Application.TwoDevelopment.AdmissionsPlatform
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2023-09-12 14:43
+ /// 描 述:EnrollmentMajorPlanSource
+ ///
+ public class EnrollmentMajorPlanSourceService : RepositoryFactory
+ {
+ #region 构造函数和属性
+
+ private string fieldSql;
+ ///
+ /// 构造方法
+ ///
+ public EnrollmentMajorPlanSourceService()
+ {
+ fieldSql = @" t.* ";
+ }
+ #endregion
+
+ #region 获取数据
+
+ ///
+ /// 获取列表数据
+ ///
+ /// 条件参数
+ ///
+ public IEnumerable GetList(string queryJson)
+ {
+ try
+ {
+ //参考写法
+ //var queryParam = queryJson.ToJObject();
+ // 虚拟参数
+ //var dp = new DynamicParameters(new { });
+ //dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime);
+ var strSql = new StringBuilder();
+ strSql.Append("SELECT ");
+ strSql.Append(fieldSql);
+ strSql.Append(" FROM EnrollmentMajorPlanSource t ");
+ return this.BaseRepository("CollegeMIS").FindList(strSql.ToString());
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取列表分页数据
+ ///
+ /// 分页参数
+ /// 条件参数
+ ///
+ public IEnumerable GetPageList(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ var strSql = new StringBuilder();
+ strSql.Append("SELECT ");
+ strSql.Append(fieldSql);
+ strSql.Append(" FROM EnrollmentMajorPlanSource t ");
+ return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), pagination);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取实体数据
+ ///
+ /// 主键
+ ///
+ public EnrollmentMajorPlanSourceEntity GetEntity(string keyValue)
+ {
+ try
+ {
+ return this.BaseRepository("CollegeMIS").FindEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ public void DeleteEntity(string keyValue)
+ {
+ var dp = this.BaseRepository("CollegeMIS").BeginTrans();
+ try
+ {
+ var EIMSPlanEntity = this.BaseRepository("CollegeMIS").FindEntity(x => x.ID == keyValue);
+ var EIMPlanEntity = this.BaseRepository("CollegeMIS").FindEntity(x => x.ID == EIMSPlanEntity.MajorPlanId);
+ EIMPlanEntity.JoinNum = EIMPlanEntity.JoinNum - EIMSPlanEntity.Num;
+ dp.Update(EIMPlanEntity);
+ this.BaseRepository("CollegeMIS").Delete(t => t.ID == keyValue);
+ dp.Commit();
+ }
+ catch (Exception ex)
+ {
+ dp.Rollback();
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ /// 主键
+ /// 实体
+ ///
+ public void SaveEntity(string keyValue, EnrollmentMajorPlanSourceEntity entity)
+ {
+ var dp = this.BaseRepository("CollegeMIS").BeginTrans();
+ try
+ {
+ if (!string.IsNullOrEmpty(keyValue))
+ {
+ entity.Modify(keyValue);
+ var EIMPlanEntity = this.BaseRepository("CollegeMIS").FindEntity(x => x.ID == entity.MajorPlanId);
+ var EIMSPlanEntity = this.BaseRepository("CollegeMIS").FindList(x => x.MajorPlanId == entity.MajorPlanId && x.ID != keyValue);
+ if (EIMSPlanEntity != null)
+ {
+
+ foreach (var item in EIMSPlanEntity)
+ {
+ entity.Num += item.Num;
+ }
+ EIMPlanEntity.JoinNum = entity.Num;
+ dp.Update(EIMPlanEntity);
+ }
+ else
+ {
+ EIMPlanEntity.JoinNum = entity.Num;
+ dp.Update(EIMPlanEntity);
+ }
+ this.BaseRepository("CollegeMIS").Update(entity);
+ }
+ else
+ {
+ entity.Create();
+ if (entity.MajorPlanId != null)
+ {
+ var EIMPlanEntity = this.BaseRepository("CollegeMIS").FindEntity(x => x.ID == entity.MajorPlanId);
+ var EIMSPlanEntity = this.BaseRepository("CollegeMIS").FindList(x => x.MajorPlanId == entity.MajorPlanId);
+ if (EIMSPlanEntity != null)
+ {
+
+ foreach (var item in EIMSPlanEntity)
+ {
+ entity.Num += item.Num;
+ }
+ EIMPlanEntity.JoinNum = entity.Num;
+ dp.Update(EIMPlanEntity);
+ }
+ else
+ {
+ EIMPlanEntity.JoinNum = entity.Num;
+ dp.Update(EIMPlanEntity);
+ }
+ }
+ this.BaseRepository("CollegeMIS").Insert(entity);
+ }
+ dp.Commit();
+ }
+ catch (Exception ex)
+ {
+ dp.Rollback();
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
index e56ba1249..59a519f68 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
@@ -1925,6 +1925,10 @@
+
+
+
+