Browse Source

教学业务档案

怀来职教中心中职
ndbs 1 year ago
parent
commit
8c686354d7
13 changed files with 836 additions and 0 deletions
  1. +111
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/TeacherServiceInfoController.cs
  2. +27
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Form.cshtml
  3. +69
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Form.js
  4. +45
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Index.cshtml
  5. +136
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Index.js
  6. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  7. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/TeacherServiceInfoMap.cs
  8. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  9. +124
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoBLL.cs
  10. +71
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoEntity.cs
  11. +49
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoIBLL.cs
  12. +165
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoService.cs
  13. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj

+ 111
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/TeacherServiceInfoController.cs View File

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

namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2020-08-17 10:58
/// 描 述:就业表现指标
/// </summary>
public class TeacherServiceInfoController : MvcControllerBase
{
private TeacherServiceInfoIBLL teacherServiceInfoIBLL = new TeacherServiceInfoBLL();

#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 GetPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = teacherServiceInfoIBLL.GetPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// <summary>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
var TeacherServiceInfoData = teacherServiceInfoIBLL.GetTeacherServiceInfoEntity( keyValue );
var jsonData = new {
TeacherServiceInfo = TeacherServiceInfoData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

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

}
}

+ 27
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Form.cshtml View File

@@ -0,0 +1,27 @@
@{
ViewBag.Title = "教师考勤";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap">
<div class="col-xs-6 lr-form-item" data-table="TeacherServiceInfo">
<div class="lr-form-item-title">学年</div>
<div id="AcademicYearNo" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="TeacherServiceInfo">
<div class="lr-form-item-title">学期</div>
<div id="Semester" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="TeacherServiceInfo">
<div class="lr-form-item-title">教学业务</div>
<div id="ServiceType" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="TeacherServiceInfo">
<div class="lr-form-item-title">附件</div>
<div id="Path" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="TeacherServiceInfo">
<div class="lr-form-item-title">备注</div>
<textarea id="Remark" class="form-control" style="height:100px;"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TeacherServiceInfo/Form.js")

+ 69
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Form.js View File

@@ -0,0 +1,69 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2019-06-14 10:24
* 描 述:教师考勤
*/
var acceptClick;
var keyValue = request('keyValue');
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: function () {
$('#Path').lrUploader();
//学年
$('#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'
});
$('#ServiceType').lrDataItemSelect({ code: 'ServiceType' });

},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/TeacherServiceInfo/GetFormData?keyValue=' + keyValue, function (data) {
for (var id in data) {
if (!!data[id].length && data[id].length > 0) {
$('#' + id).jfGridSet('refreshdata', data[id]);
}
else {
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
}
}
});
}
}
};
// 保存数据
acceptClick = function (callBack) {
if (!$('body').lrValidform()) {
return false;
}
var postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
};
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/TeacherServiceInfo/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 45
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Index.cshtml View File

@@ -0,0 +1,45 @@
@{
ViewBag.Title = "教学业务";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="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="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">学年</div>
<div id="AcademicYearNo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">学期</div>
<div id="Semester"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">教学业务</div>
<div id="ServiceType"></div>
</div>
</div>
</div>
</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_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TeacherServiceInfo/Index.js")

+ 136
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Index.js View File

@@ -0,0 +1,136 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2019-06-14 10:24
* 描 述:教师考勤
*/
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);
//学年
$('#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'
});
$('#ServiceType').lrDataItemSelect({ code: 'ServiceType' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/TeacherServiceInfo/Form',
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/EducationalAdministration/TeacherServiceInfo/Form?keyValue=' + keyValue,
width: 600,
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 + '/EducationalAdministration/TeacherServiceInfo/DeleteForm', { keyValue: keyValue}, function () {
refreshGirdData();
});
}
});
}
});
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/TeacherServiceInfo/GetPageList',
headData: [
{ label: "学年", name: "AcademicYearNo", width: 100, align: "left"},
{ label: "学期", name: "Semester", width: 100, align: "left" },
{
label: "教学业务", name: "ServiceType", width: 200, align: "left",
formatterAsync: function (callback, value) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'ServiceType',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "创建用户", name: "CreateUser", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('user', {
key: value,
callback: function (_data) {
callback(_data.name);
}
});
}
},
{
label: "创建时间", name: "CreateTime", width: 140, align: "left",
formatter: function (cellvalue) {
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss');
}
},
//{ label: "文件", name: "Path", width: 100, align: "left" },
{ label: "备注", name: "Remark", width: 100, align: "left"},
],
mainId:'ID',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
page.search();
};
page.init();
}

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj View File

@@ -320,6 +320,7 @@
<Compile Include="Areas\EducationalAdministration\Controllers\ArrangeLessonTermAttemperController.cs" /> <Compile Include="Areas\EducationalAdministration\Controllers\ArrangeLessonTermAttemperController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\AwardAndPunishmentController.cs" /> <Compile Include="Areas\EducationalAdministration\Controllers\AwardAndPunishmentController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\AwardPunishInfoController.cs" /> <Compile Include="Areas\EducationalAdministration\Controllers\AwardPunishInfoController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\TeacherServiceInfoController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\BookPutInController.cs" /> <Compile Include="Areas\EducationalAdministration\Controllers\BookPutInController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\BookReturnController.cs" /> <Compile Include="Areas\EducationalAdministration\Controllers\BookReturnController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\CertificateManageController.cs" /> <Compile Include="Areas\EducationalAdministration\Controllers\CertificateManageController.cs" />
@@ -1436,6 +1437,8 @@
<Content Include="Areas\EducationalAdministration\Views\Sys_SendFile\PrintView.js" /> <Content Include="Areas\EducationalAdministration\Views\Sys_SendFile\PrintView.js" />
<Content Include="Areas\EducationalAdministration\Views\Sys_SendFile\ReadListParty.js" /> <Content Include="Areas\EducationalAdministration\Views\Sys_SendFile\ReadListParty.js" />
<Content Include="Areas\EducationalAdministration\Views\Sys_SendFile\ReadListDocument.js" /> <Content Include="Areas\EducationalAdministration\Views\Sys_SendFile\ReadListDocument.js" />
<Content Include="Areas\EducationalAdministration\Views\TeacherServiceInfo\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\TeacherServiceInfo\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\TeachingCompetition\CheckForm.js" /> <Content Include="Areas\EducationalAdministration\Views\TeachingCompetition\CheckForm.js" />
<Content Include="Areas\EducationalAdministration\Views\TeachingPlanItem\Form.js" /> <Content Include="Areas\EducationalAdministration\Views\TeachingPlanItem\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\TeachingPlan\Form.js" /> <Content Include="Areas\EducationalAdministration\Views\TeachingPlan\Form.js" />
@@ -8129,6 +8132,8 @@
<Content Include="Areas\PersonnelManagement\Views\SRProject\CheckForm.cshtml" /> <Content Include="Areas\PersonnelManagement\Views\SRProject\CheckForm.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\SRWork\CheckForm.cshtml" /> <Content Include="Areas\PersonnelManagement\Views\SRWork\CheckForm.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\SRPaper\CheckForm.cshtml" /> <Content Include="Areas\PersonnelManagement\Views\SRPaper\CheckForm.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\TeacherServiceInfo\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\TeacherServiceInfo\Index.cshtml" />
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> <None Include="Properties\PublishProfiles\CustomProfile.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> <None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" /> <Content Include="Views\Login\Default-beifen.cshtml" />


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/TeacherServiceInfoMap.cs View File

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

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2020-11-19 14:39
/// 描 述:多账号绑定
/// </summary>
public class TeacherServiceInfoMap : EntityTypeConfiguration<TeacherServiceInfoEntity>
{
public TeacherServiceInfoMap()
{
#region 表、主键
//表
this.ToTable("TEACHERSERVICEINFO");
//主键
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 View File

@@ -99,6 +99,7 @@
<Compile Include="EducationalAdministration\Exam_ExamTeacherTimeMap.cs" /> <Compile Include="EducationalAdministration\Exam_ExamTeacherTimeMap.cs" />
<Compile Include="EducationalAdministration\Exam_InvigilateTeacherMap.cs" /> <Compile Include="EducationalAdministration\Exam_InvigilateTeacherMap.cs" />
<Compile Include="EducationalAdministration\LeaveSchoolMap.cs" /> <Compile Include="EducationalAdministration\LeaveSchoolMap.cs" />
<Compile Include="EducationalAdministration\TeacherServiceInfoMap.cs" />
<Compile Include="EducationalAdministration\MealCardRunTabMap.cs" /> <Compile Include="EducationalAdministration\MealCardRunTabMap.cs" />
<Compile Include="EducationalAdministration\PM_CertificateMap.cs" /> <Compile Include="EducationalAdministration\PM_CertificateMap.cs" />
<Compile Include="EducationalAdministration\PM_YearAssessMap.cs" /> <Compile Include="EducationalAdministration\PM_YearAssessMap.cs" />


+ 124
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoBLL.cs View File

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

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2019-01-29 11:08
/// 描 述:班级信息管理
/// </summary>
public class TeacherServiceInfoBLL : TeacherServiceInfoIBLL
{
private TeacherServiceInfoService teacherServiceInfoEntity = new TeacherServiceInfoService();

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<TeacherServiceInfoEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
return teacherServiceInfoEntity.GetPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取ClassInfo表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public TeacherServiceInfoEntity GetTeacherServiceInfoEntity(string keyValue)
{
try
{
return teacherServiceInfoEntity.GetTeacherServiceInfoEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 获取ClassInfo表实体数据
/// <param name="classNo">班级编号</param>
/// <summary>
/// <returns></returns>

#endregion

#region 提交数据
public void DeleteEntity(string keyValue)
{
try
{
teacherServiceInfoEntity.DeleteEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void SaveEntity(string keyValue, TeacherServiceInfoEntity entity)
{
try
{
teacherServiceInfoEntity.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion



}
}

+ 71
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoEntity.cs View File

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

{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2019-03-27 14:50
/// 描 述:教学班级表
/// </summary>
public class TeacherServiceInfoEntity
{
#region 实体成员
/// <summary>
/// ID
/// </summary>
/// <returns></returns>
[Column("ID")]
public string ID { get; set; }
/// <summary>
/// AcademicYearNo
/// </summary>
/// <returns></returns>
[Column("ACADEMICYEARNO")]
public string AcademicYearNo { get; set; }
/// <summary>
/// Semester
/// </summary>
/// <returns></returns>
[Column("SEMESTER")]
public string Semester { get; set; }
[Column("SERVICETYPE")]
public string ServiceType { get; set; }
[Column("CREATEUSER")]
public string CreateUser { get; set; }
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
[Column("REMARK")]
public string Remark { get; set; }
[Column("PATH")]
public string Path { get; set; }


#endregion

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

}
}


+ 49
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoIBLL.cs View File

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

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2019-01-29 11:08
/// 描 述:班级信息管理
/// </summary>
public interface TeacherServiceInfoIBLL
{
#region 获取数据
/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<TeacherServiceInfoEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取ClassInfo表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
TeacherServiceInfoEntity GetTeacherServiceInfoEntity(string keyValue);
#endregion

#region 提交数据
/// <summary>
/// 删除实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
void DeleteEntity(string keyValue);

/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
void SaveEntity(string keyValue, TeacherServiceInfoEntity entity);

#endregion

}
}

+ 165
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoService.cs View File

@@ -0,0 +1,165 @@
using Dapper;
using Learun.Application.Organization;
using Learun.DataBase.Repository;
using Learun.Util;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2019-01-29 11:08
/// 描 述:班级信息管理
/// </summary>
public class TeacherServiceInfoService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<TeacherServiceInfoEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@" * ");
strSql.Append(" FROM TeacherServiceInfo t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["AcademicYearNo"].IsEmpty())
{
dp.Add("AcademicYearNo", queryParam["AcademicYearNo"].ToString(), DbType.String);
strSql.Append(" AND t.AcademicYearNo = @AcademicYearNo ");
}
if (!queryParam["Semester"].IsEmpty())
{
dp.Add("Semester", queryParam["Semester"].ToString(), DbType.String);
strSql.Append(" AND t.Semester = @Semester ");
}
if (!queryParam["ServiceType"].IsEmpty())
{
dp.Add("ServiceType", queryParam["ServiceType"].ToString(), DbType.String);
strSql.Append(" AND t.ServiceType = @ServiceType ");
}
return this.BaseRepository("CollegeMIS").FindList<TeacherServiceInfoEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

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

#region 提交数据
/// <summary>
/// 删除实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void DeleteEntity(string keyValue)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
//修改
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
db.Delete<TeacherServiceInfoEntity>(x => x.ID == item);
}
db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void SaveEntity(string keyValue, TeacherServiceInfoEntity entity)
{
try
{
var keyvalue = keyValue;
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
}
}

+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj View File

@@ -369,6 +369,10 @@
<Compile Include="EducationalAdministration\TeachClass\TeachClassBLL.cs" /> <Compile Include="EducationalAdministration\TeachClass\TeachClassBLL.cs" />
<Compile Include="EducationalAdministration\TeachClass\TeachClassIBLL.cs" /> <Compile Include="EducationalAdministration\TeachClass\TeachClassIBLL.cs" />
<Compile Include="EducationalAdministration\TeachClass\TeachClassService.cs" /> <Compile Include="EducationalAdministration\TeachClass\TeachClassService.cs" />
<Compile Include="EducationalAdministration\TeacherServiceInfo\TeacherServiceInfoBLL.cs" />
<Compile Include="EducationalAdministration\TeacherServiceInfo\TeacherServiceInfoEntity.cs" />
<Compile Include="EducationalAdministration\TeacherServiceInfo\TeacherServiceInfoIBLL.cs" />
<Compile Include="EducationalAdministration\TeacherServiceInfo\TeacherServiceInfoService.cs" />
<Compile Include="EducationalAdministration\TeachingMaterial\TeachingMaterialBLL.cs" /> <Compile Include="EducationalAdministration\TeachingMaterial\TeachingMaterialBLL.cs" />
<Compile Include="EducationalAdministration\TeachingMaterial\TeachingMaterialEntity.cs" /> <Compile Include="EducationalAdministration\TeachingMaterial\TeachingMaterialEntity.cs" />
<Compile Include="EducationalAdministration\TeachingMaterial\TeachingMaterialIBLL.cs" /> <Compile Include="EducationalAdministration\TeachingMaterial\TeachingMaterialIBLL.cs" />


Loading…
Cancel
Save