浏览代码

合并

怀来职教中心中职
ndbs 1年前
父节点
当前提交
9383ddffa8
共有 15 个文件被更改,包括 992 次插入3 次删除
  1. +142
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/TeacherPlanCheckController.cs
  2. +27
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherPlanCheck/Form.cshtml
  3. +41
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherPlanCheck/Form.js
  4. +38
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherPlanCheck/Index.cshtml
  5. +121
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherPlanCheck/Index.js
  6. +6
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Index.js
  7. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  8. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/TeacherPlanCheckMap.cs
  9. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  10. +173
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherPlanCheck/TeacherPlanCheckBLL.cs
  11. +103
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherPlanCheck/TeacherPlanCheckEntity.cs
  12. +63
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherPlanCheck/TeacherPlanCheckIBLL.cs
  13. +234
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherPlanCheck/TeacherPlanCheckService.cs
  14. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoService.cs
  15. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj

+ 142
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/TeacherPlanCheckController.cs 查看文件

@@ -0,0 +1,142 @@
using Learun.Application.TwoDevelopment.EducationalAdministration;
using Learun.Util;
using System.Data;
using System.Web.Mvc;

namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-07-19 09:49
/// 描 述:教学教案检查
/// </summary>
public class TeacherPlanCheckController : MvcControllerBase
{
private TeacherPlanCheckIBLL teacherPlanCheckIBLL = new TeacherPlanCheckBLL();

#region 视图功能

/// <summary>
/// 主页面
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 表单页
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult Form()
{
return View();
}
#endregion

#region 获取数据

/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetList( string queryJson )
{
var data = teacherPlanCheckIBLL.GetList(queryJson);
return Success(data);
}
/// <summary>
/// 获取列表分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = teacherPlanCheckIBLL.GetPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 获取列表分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetCheckPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = teacherPlanCheckIBLL.GetCheckPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
var data = teacherPlanCheckIBLL.GetEntity(keyValue);
return Success(data);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
teacherPlanCheckIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue,TeacherPlanCheckEntity entity)
{
teacherPlanCheckIBLL.SaveEntity(keyValue, entity);
return Success("保存成功!");
}
#endregion

}
}

+ 27
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherPlanCheck/Form.cshtml 查看文件

@@ -0,0 +1,27 @@
@{
ViewBag.Title = "教学教案检查";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学年<font face="宋体">*</font></div>
<input id="AcademicYearNo" type="text" class="form-control" readonly isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学期<font face="宋体">*</font></div>
<input id="Semester" type="text" class="form-control" readonly isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">教师<font face="宋体">*</font></div>
<div id="EmpNo" readonly isvalid="yes" checkexpession="NotNull" ></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">附件</div>
<div id="Path"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">Score<font face="宋体">*</font></div>
<input id="Score" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TeacherPlanCheck/Form.js")

+ 41
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherPlanCheck/Form.js 查看文件

@@ -0,0 +1,41 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2023-07-19 09:49
* 描 述:教学教案检查
*/
var acceptClick;
var keyValue = request('keyValue');
var bootstrap = function ($, learun) {
"use strict";
var selectedRow = learun.frameTab.currentIframe().selectedRow;
var page = {
init: function () {
page.bind();
page.initData();
},
bind: function () {
$('#EmpNo').lrDataSourceSelect({ code: 'EmpInfo', value: 'empno', text: 'empname' });
$('#Path').lrUploader({ isUpload: false, isView: false });
},
initData: function () {
if (!!selectedRow) {
$('#form').lrSetFormData(selectedRow);
}
}
};
// 保存数据
acceptClick = function (callBack) {
if (!$('#form').lrValidform()) {
return false;
}
var postData = $('#form').lrGetFormData();
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/TeacherPlanCheck/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 38
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherPlanCheck/Index.cshtml 查看文件

@@ -0,0 +1,38 @@
@{
ViewBag.Title = "教学教案检查";
Layout = "~/Views/Shared/_Index.cshtml";
}
<style>
.lr-select {
width: 150px;
}
</style>
<div class="lr-layout" id="lr_layout">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="AcademicYearNo" type="lrselect" class="lr-select"></div>
</div>
<div class="lr-layout-tool-item">
<div id="Semester" type="lrselect" class="lr-select"></div>
</div>
<div class="lr-layout-tool-item">
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i>&nbsp;查询</a>
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;打分</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TeacherPlanCheck/Index.js")

+ 121
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherPlanCheck/Index.js 查看文件

@@ -0,0 +1,121 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2023-07-19 09:49
* 描 述:教学教案检查
*/
var selectedRow;
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.bindSelect();
page.initGird();
page.bind();
},
bindSelect: function () {
//学年
$('#AcademicYearNo').lrselect({
placeholder: "请选择学年",
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo',
value: 'value',
text: 'text'
});
//学期
$('#Semester').lrselect({
placeholder: "请选择学期",
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetSemester',
value: 'value',
text: 'text'
});
//绑定学年、学期
$.get('/Home/GetYearAndSemesteResult', function (ref) {
if (ref.code == "200") {
$('#AcademicYearNo').lrselectSet(ref.data.Item1);
$('#Semester').lrselectSet(ref.data.Item3);
}
}.bind(this), "json");
},
bind: function () {
// 查询
$('#btn_Search').on('click', function () {
var AcademicYearNo = $('#AcademicYearNo').lrselectGet();
var Semester = $('#Semester').lrselectGet();
if (!AcademicYearNo) {
learun.alert.warning("请选择学年!");
return false;
}
if (!Semester) {
learun.alert.warning("请选择学期!");
return false;
}
page.search({ AcademicYearNo: AcademicYearNo, Semester: Semester });
});
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});

// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('EmpId');
selectedRow = $('#gridtable').jfGridGet('rowdata');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
title: '打分',
url: top.$.rootUrl + '/EducationalAdministration/TeacherPlanCheck/Form?keyValue=' + (selectedRow.Id == null ? "" : selectedRow.Id),
width: 700,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});

},
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/TeacherPlanCheck/GetCheckPageList',
headData: [
{ label: '学年', name: 'AcademicYearNo', width: 100, align: "left" },
{ label: '学期', name: 'Semester', width: 100, align: "left" },
{
label: '教师名称', name: 'EmpName', width: 100, align: "left"
},
{ label: '教师编号', name: 'EmpNo', width: 200, align: "left" },
{ label: '分数', name: 'Score', width: 100, align: "left" },
{
label: '打分人', name: 'CheckUserId', width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
key: value,
keyId: 'f_userid',
callback: function (_data) {
callback(_data['f_realname']);
}
});
}
},
{ label: '打分时间', name: 'CheckTime', width: 100, align: "left" },
],
mainId: 'EmpId',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 6
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Index.js 查看文件

@@ -102,10 +102,12 @@ var bootstrap = function ($, learun) {
{
label: "创建用户", name: "CreateUser", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('user', {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
key: value,
keyId: 'f_userid',
callback: function (_data) {
callback(_data.name);
callback(_data['f_realname']);
}
});
}
@@ -117,7 +119,7 @@ var bootstrap = function ($, learun) {
}
},
{
label: "附件", name: "Path", width: 100, align: "left", formatter: function (cellvalue) {
label: "档案", name: "Path", width: 100, align: "left", formatter: function (cellvalue) {
return !!cellvalue ? "已上传" : "未上传";
}
},
@@ -132,6 +134,7 @@ var bootstrap = function ($, learun) {
},
search: function (param) {
param = param || {};
param.CreateUser = learun.clientdata.get(['userinfo']).userId;
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
}
};


+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj 查看文件

@@ -909,6 +909,7 @@
<Compile Include="Areas\EducationalAdministration\Controllers\SchulPraktikaInfoController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\TeachingCompetitionController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\TextBookSubscriptionController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\TeacherPlanCheckController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\TrainingRoomUseController.cs" />
</ItemGroup>
<ItemGroup>
@@ -7140,6 +7141,10 @@
<Content Include="Areas\EducationalAdministration\Views\TextBookSubscription\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\TextBookSubscription\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\TextBookSubscription\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\TeacherPlanCheck\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\TeacherPlanCheck\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\TeacherPlanCheck\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\TeacherPlanCheck\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\TrainingRoomUse\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\TrainingRoomUse\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\TrainingRoomUse\Form.cshtml" />


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/TeacherPlanCheckMap.cs 查看文件

@@ -0,0 +1,29 @@
using Learun.Application.TwoDevelopment.EducationalAdministration;
using System.Data.Entity.ModelConfiguration;

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-07-19 09:49
/// 描 述:教学教案检查
/// </summary>
public class TeacherPlanCheckMap : EntityTypeConfiguration<TeacherPlanCheckEntity>
{
public TeacherPlanCheckMap()
{
#region 表、主键
//表
this.ToTable("TEACHERPLANCHECK");
//主键
this.HasKey(t => t.Id);
#endregion

#region 配置关系
#endregion
}
}
}


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj 查看文件

@@ -667,6 +667,7 @@
<Compile Include="EducationalAdministration\SchulPraktikaInfoMap.cs" />
<Compile Include="EducationalAdministration\TeachingCompetitionMap.cs" />
<Compile Include="EducationalAdministration\TextBookSubscriptionMap.cs" />
<Compile Include="EducationalAdministration\TeacherPlanCheckMap.cs" />
<Compile Include="EducationalAdministration\TrainingRoomUseMap.cs" />
</ItemGroup>
<ItemGroup>


+ 173
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherPlanCheck/TeacherPlanCheckBLL.cs 查看文件

@@ -0,0 +1,173 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-07-19 09:49
/// 描 述:教学教案检查
/// </summary>
public class TeacherPlanCheckBLL : TeacherPlanCheckIBLL
{
private TeacherPlanCheckService teacherPlanCheckService = new TeacherPlanCheckService();

#region 获取数据

/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<TeacherPlanCheckEntity> GetList( string queryJson )
{
try
{
return teacherPlanCheckService.GetList(queryJson);
}
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<TeacherPlanCheckEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
return teacherPlanCheckService.GetPageList(pagination, queryJson);
}
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<TeacherPlanCheckEntity> GetCheckPageList(Pagination pagination, string queryJson)
{
try
{
return teacherPlanCheckService.GetCheckPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public TeacherPlanCheckEntity GetEntity(string keyValue)
{
try
{
return teacherPlanCheckService.GetEntity(keyValue);
}
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
{
teacherPlanCheckService.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>
public void SaveEntity(string keyValue, TeacherPlanCheckEntity entity)
{
try
{
teacherPlanCheckService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

}
}

+ 103
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherPlanCheck/TeacherPlanCheckEntity.cs 查看文件

@@ -0,0 +1,103 @@
using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Learun.Application.TwoDevelopment.EducationalAdministration

{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-07-19 09:49
/// 描 述:教学教案检查
/// </summary>
public class TeacherPlanCheckEntity
{
#region 实体成员
/// <summary>
/// Id
/// </summary>
/// <returns></returns>
[Column("ID")]
public string Id { get; set; }
/// <summary>
/// 学年
/// </summary>
/// <returns></returns>
[Column("ACADEMICYEARNO")]
public string AcademicYearNo { get; set; }
/// <summary>
/// 学期
/// </summary>
/// <returns></returns>
[Column("SEMESTER")]
public string Semester { get; set; }
/// <summary>
/// 教师编号
/// </summary>
/// <returns></returns>
[Column("EMPNO")]
public string EmpNo { get; set; }
/// <summary>
/// 打分
/// </summary>
/// <returns></returns>
[Column("SCORE")]
public decimal? Score { get; set; }
/// <summary>
/// 打分人主键
/// </summary>
/// <returns></returns>
[Column("CHECKUSERID")]
public string CheckUserId { get; set; }
/// <summary>
/// 打分时间
/// </summary>
/// <returns></returns>
[Column("CHECKTIME")]
public DateTime? CheckTime { get; set; }
/// <summary>
/// 打分人编号
/// </summary>
/// <returns></returns>
[Column("CHECKUSERNO")]
public string CheckUserNo { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.Id = Guid.NewGuid().ToString();
var loginUserInfo = LoginUserInfo.Get();
this.CheckUserId = loginUserInfo.userId;
this.CheckUserNo = loginUserInfo.account;
this.CheckTime = DateTime.Now;
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.Id = keyValue;
this.CheckTime = DateTime.Now;
}
#endregion

#region 扩展字段
[NotMapped]
public string EmpId { get; set; }
[NotMapped]
public string EmpName { get; set; }
/// <summary>
/// 教学业务档案:附件地址
/// </summary>
[NotMapped]
public string Path { get; set; }
#endregion
}
}


+ 63
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherPlanCheck/TeacherPlanCheckIBLL.cs 查看文件

@@ -0,0 +1,63 @@
using Learun.Util;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-07-19 09:49
/// 描 述:教学教案检查
/// </summary>
public interface TeacherPlanCheckIBLL
{
#region 获取数据

/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<TeacherPlanCheckEntity> GetList( string queryJson );
/// <summary>
/// 获取列表分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<TeacherPlanCheckEntity> GetPageList(Pagination pagination, string queryJson);

/// <summary>
/// 获取列表分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">条件参数</param>
/// <returns></returns>
IEnumerable<TeacherPlanCheckEntity> GetCheckPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
TeacherPlanCheckEntity GetEntity(string keyValue);
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
void DeleteEntity(string keyValue);
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
void SaveEntity(string keyValue, TeacherPlanCheckEntity entity);
#endregion

}
}

+ 234
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherPlanCheck/TeacherPlanCheckService.cs 查看文件

@@ -0,0 +1,234 @@
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.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-07-19 09:49
/// 描 述:教学教案检查
/// </summary>
public class TeacherPlanCheckService : RepositoryFactory
{
#region 构造函数和属性

private string fieldSql;
/// <summary>
/// 构造方法
/// </summary>
public TeacherPlanCheckService()
{
fieldSql = @"
t.*
";
}
#endregion

#region 获取数据

/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="queryJson">条件参数</param>
/// <returns></returns>
public IEnumerable<TeacherPlanCheckEntity> 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 TeacherPlanCheck t ");
return this.BaseRepository("CollegeMIS").FindList<TeacherPlanCheckEntity>(strSql.ToString());
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取列表分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">条件参数</param>
/// <returns></returns>
public IEnumerable<TeacherPlanCheckEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(fieldSql);
strSql.Append(" FROM TeacherPlanCheck t ");
return this.BaseRepository("CollegeMIS").FindList<TeacherPlanCheckEntity>(strSql.ToString(), pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取列表分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">条件参数</param>
/// <returns></returns>
public IEnumerable<TeacherPlanCheckEntity> GetCheckPageList(Pagination pagination, string queryJson)
{
try
{
//学年、学期
var yearAndSemester = Common.GetSemesterAndYear();
var year = yearAndSemester.AcademicYearShort;
var semester = yearAndSemester.Semester;
//参数
var queryParam = queryJson.ToJObject();
if (!queryParam["AcademicYearNo"].IsEmpty())
{
year = queryParam["AcademicYearNo"].ToString();
}
if (!queryParam["Semester"].IsEmpty())
{
semester = queryParam["Semester"].ToString();
}
//登录用户
var loginUserInfo = LoginUserInfo.Get();

var strSql = new StringBuilder();
strSql.Append($"SELECT e.EmpId,e.EmpNo,e.EmpName,s.Path,'{year}' as AcademicYearNo,'{semester}' as Semester,t.Id,t.Score,t.CheckUserId,t.CheckUserNo,t.CheckTime ");
strSql.Append(" FROM EmpInfo e ");
strSql.Append($" left join TeacherServiceInfo s on e.EmpNo=s.CreateUserNo and s.AcademicYearNo='{year}' and s.Semester='{semester}' ");
strSql.Append($" left join TeacherPlanCheck t on e.EmpNo=t.EmpNo and t.AcademicYearNo='{year}' and t.Semester='{semester}' and t.CheckUserId='{loginUserInfo.userId}' ");
strSql.Append(" where e.CheckMark=1 ");

return this.BaseRepository("CollegeMIS").FindList<TeacherPlanCheckEntity>(strSql.ToString(), pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public TeacherPlanCheckEntity GetEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<TeacherPlanCheckEntity>(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
this.BaseRepository("CollegeMIS").Delete<TeacherPlanCheckEntity>(t => t.Id == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// </summary>
public void SaveEntity(string keyValue, TeacherPlanCheckEntity entity)
{
try
{
if (!string.IsNullOrEmpty(keyValue))
{
entity.Modify(keyValue);
this.BaseRepository("CollegeMIS").Update(entity);
}
else
{
entity.Create();
this.BaseRepository("CollegeMIS").Insert(entity);
}
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

}
}

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoService.cs 查看文件

@@ -53,6 +53,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
dp.Add("ServiceType", queryParam["ServiceType"].ToString(), DbType.String);
strSql.Append(" AND t.ServiceType = @ServiceType ");
}
if (!queryParam["CreateUser"].IsEmpty())
{
dp.Add("CreateUser", queryParam["CreateUser"].ToString(), DbType.String);
strSql.Append(" AND t.CreateUser = @CreateUser ");
}
return this.BaseRepository("CollegeMIS").FindList<TeacherServiceInfoEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj 查看文件

@@ -2091,6 +2091,10 @@
<Compile Include="EducationalAdministration\TextBookSubscription\TextBookSubscriptionService.cs" />
<Compile Include="EducationalAdministration\TextBookSubscription\TextBookSubscriptionBLL.cs" />
<Compile Include="EducationalAdministration\TextBookSubscription\TextBookSubscriptionIBLL.cs" />
<Compile Include="EducationalAdministration\TeacherPlanCheck\TeacherPlanCheckEntity.cs" />
<Compile Include="EducationalAdministration\TeacherPlanCheck\TeacherPlanCheckService.cs" />
<Compile Include="EducationalAdministration\TeacherPlanCheck\TeacherPlanCheckIBLL.cs" />
<Compile Include="EducationalAdministration\TeacherPlanCheck\TeacherPlanCheckBLL.cs" />
<Compile Include="EducationalAdministration\TrainingRoomUse\TrainingRoomUseEntity.cs" />
<Compile Include="EducationalAdministration\TrainingRoomUse\TrainingRoomUseService.cs" />
<Compile Include="EducationalAdministration\TrainingRoomUse\TrainingRoomUseBLL.cs" />


正在加载...
取消
保存