Преглед изворни кода

合并

新疆警官学校中职
zhangli пре 2 година
родитељ
комит
e26fb50c6d
62 измењених фајлова са 5258 додато и 12 уклоњено
  1. +164
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PM_CertificateController.cs
  2. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/SportEquipmentController.cs
  3. +175
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StudentHonorController.cs
  4. +121
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WageScheduleController.cs
  5. +10
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml
  6. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js
  7. +31
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Form.cshtml
  8. +56
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Form.js
  9. +58
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Index.cshtml
  10. +174
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Index.js
  11. +56
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/StatisticIndex.cshtml
  12. +98
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/StatisticIndex.js
  13. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_YearAssess/Form.cshtml
  14. +27
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SportEquipment/Form.cshtml
  15. +50
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SportEquipment/Form.js
  16. +44
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SportEquipment/Index.cshtml
  17. +96
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SportEquipment/Index.js
  18. +63
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentHonor/Form.cshtml
  19. +173
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentHonor/Form.js
  20. +23
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentHonor/FormScore.cshtml
  21. +94
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentHonor/FormScore.js
  22. +77
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentHonor/Index.cshtml
  23. +305
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentHonor/Index.js
  24. +163
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.cshtml
  25. +38
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.js
  26. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Index.cshtml
  27. +158
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Index.js
  28. +24
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  29. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js
  30. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/IndexInTeacher.cshtml
  31. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/IndexInTeacher.js
  32. +5
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config
  33. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config
  34. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj
  35. +64
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/OuoutsourcingApi.cs
  36. +64
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/WageScheduleApi.cs
  37. +64
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/WelfarePositionApi.cs
  38. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/PM_CertificateMap.cs
  39. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/SportEquipmentMap.cs
  40. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StudentHonorMap.cs
  41. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/WageScheduleMap.cs
  42. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  43. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Ououtsourcing/OuoutsourcingEntity.cs
  44. +171
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_Certificate/PM_CertificateBLL.cs
  45. +95
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_Certificate/PM_CertificateEntity.cs
  46. +57
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_Certificate/PM_CertificateIBLL.cs
  47. +267
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_Certificate/PM_CertificateService.cs
  48. +125
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SportEquipment/SportEquipmentBLL.cs
  49. +96
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SportEquipment/SportEquipmentEntity.cs
  50. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SportEquipment/SportEquipmentIBLL.cs
  51. +157
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SportEquipment/SportEquipmentService.cs
  52. +208
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentHonor/StudentHonorBLL.cs
  53. +138
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentHonor/StudentHonorEntity.cs
  54. +63
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentHonor/StudentHonorIBLL.cs
  55. +308
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentHonor/StudentHonorService.cs
  56. +148
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleBLL.cs
  57. +302
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleEntity.cs
  58. +55
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleIBLL.cs
  59. +198
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleService.cs
  60. +16
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
  61. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Learun.Application.WorkFlow.csproj
  62. +27
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/StudentHonorMethod.cs

+ 164
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PM_CertificateController.cs Прегледај датотеку

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

namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2020-11-07 14:08
/// 描 述:资格证获取情况
/// </summary>
public class PM_CertificateController : MvcControllerBase
{
private PM_CertificateIBLL pM_CertificateIBLL = new PM_CertificateBLL();

#region 视图功能

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

/// <summary>
/// 主页面-统计
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult StatisticIndex()
{
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 = pM_CertificateIBLL.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 PM_CertificateData = pM_CertificateIBLL.GetPM_CertificateEntity( keyValue );
var jsonData = new {
PM_Certificate = PM_CertificateData,
};
return Success(jsonData);
}

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageStatisticList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = pM_CertificateIBLL.GetPageStatisticList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
pM_CertificateIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity)
{
var loginUserInfo = LoginUserInfo.Get();
PM_CertificateEntity entity = strEntity.ToObject<PM_CertificateEntity>();
entity.Updater = loginUserInfo.userId;
entity.UpdateTime = DateTime.Now;
pM_CertificateIBLL.SaveEntity(keyValue,entity);
return Success("保存成功!");
}
/// <summary>
/// 提交
/// </summary>
/// <param name="keyValue"></param>
/// <param name="empId"></param>
/// <returns></returns>
public ActionResult Submit(string empId,bool status)
{
pM_CertificateIBLL.Submit(empId,status);
if (status)
{
return Success("提交成功!");
}
else
{
return Success("取消提交成功");
}
}
#endregion

}
}

+ 117
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/SportEquipmentController.cs Прегледај датотеку

@@ -0,0 +1,117 @@
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 V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-08 15:35
/// 描 述:体育器材库存管理
/// </summary>
public class SportEquipmentController : MvcControllerBase
{
private SportEquipmentIBLL sportEquipmentIBLL = new SportEquipmentBLL();

#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="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = sportEquipmentIBLL.GetPageList(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 SportEquipmentData = sportEquipmentIBLL.GetSportEquipmentEntity( keyValue );
var jsonData = new {
SportEquipment = SportEquipmentData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

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

}
}

+ 175
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StudentHonorController.cs Прегледај датотеку

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

namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-07 11:05
/// 描 述:学生荣誉奖励
/// </summary>
public class StudentHonorController : MvcControllerBase
{
private StudentHonorIBLL studentHonorIBLL = new StudentHonorBLL();
private CodeRuleIBLL codeRuleIBLL = new CodeRuleBLL();
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL();

#region 视图功能

/// <summary>
/// 主页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Form()
{
return View();
}
/// <summary>
/// 修改分值
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult FormScore()
{
return View();
}

#endregion

#region 获取数据

/// <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 = studentHonorIBLL.GetPageList(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 StudentHonorData = studentHonorIBLL.GetStudentHonorEntity(keyValue);
var jsonData = new
{
StudentHonor = StudentHonorData,
};
return Success(jsonData);
}

/// <summary>
/// 获取表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetStuData(string stuno, string stuname)
{
var stuData = stuInfoBasicIBLL.GetStuInfoBasicEntityByStuNoOrStuName(stuno, stuname);

return Success(stuData);
}
/// <summary>
/// 获取表单数据
/// </summary>
/// <param name="processId">流程实例主键</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormDataByProcessId(string processId)
{
var StudentHonorData = studentHonorIBLL.GetEntityByProcessId(processId);
var jsonData = new
{
StudentHonor = StudentHonorData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

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

/// <summary>
/// 提交
/// </summary>
/// <param name="keyValue"></param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult ChangeStatusById(string keyValue, string processId)
{
studentHonorIBLL.ChangeStatusById(keyValue, 1, processId);
return Success("操作成功!");
}
#endregion

}
}

+ 121
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WageScheduleController.cs Прегледај датотеку

@@ -0,0 +1,121 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-07 11:54
/// 描 述:工资条
/// </summary>
public class WageScheduleController : MvcControllerBase
{
private WageScheduleIBLL wageScheduleIBLL = new WageScheduleBLL();

#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 = wageScheduleIBLL.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 = wageScheduleIBLL.GetPageList(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 = wageScheduleIBLL.GetEntity(keyValue);
return Success(data);
}
#endregion

#region 提交数据

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

}
}

+ 10
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml Прегледај датотеку

@@ -22,7 +22,8 @@
#tab5 > .lr-scroll-box,
#tab6 > .lr-scroll-box,
#tab7 > .lr-scroll-box,
#tab8 > .lr-scroll-box {
#tab8 > .lr-scroll-box,
#tab9 > .lr-scroll-box {
height: 100%;
width: 100%;
}
@@ -40,6 +41,7 @@
<li><a data-value="tab6">家庭情况</a></li>
<li><a data-value="tab7">教师聘任变更记录</a></li>
<li><a data-value="tab8">年度考核结果管理</a></li>
<li><a data-value="tab9">资格证获取情况</a></li>
</ul>
</div>
<div class="tab-content lr-tab-content" id="lr_tab_content">
@@ -295,6 +297,10 @@
<div class="lr-form-item-title">考核结果</div>
<input id="AssessResult" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="EmpInfo">
<div class="lr-form-item-title">普通话等级</div>
<div id="MandarinLevel"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title lr-title">学历学位信息</div>
</div>
@@ -437,6 +443,9 @@
<div class="lr-form-wrap tab-pane" id="tab8">
<iframe id="PM_YearAssess" width="100%" scrolling="no" height="100%" frameborder="0"></iframe>
</div>
<div class="lr-form-wrap tab-pane" id="tab9">
<iframe id="PM_Certificate" width="100%" scrolling="no" height="100%" frameborder="0"></iframe>
</div>
</div>

<script src="~/Content/ueditor/ueditor.config.js"></script>


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js Прегледај датотеку

@@ -65,6 +65,7 @@ var bootstrap = function ($, learun) {
$("#PM_FamilySituation").attr("src", "/EducationalAdministration/PM_FamilySituation/Index?empId=" + NewEmpId);
$("#PM_PositionChange").attr("src", "/EducationalAdministration/PM_PositionChange/Index?empId=" + NewEmpId);
$("#PM_YearAssess").attr("src", "/EducationalAdministration/PM_YearAssess/Index?empId=" + NewEmpId);
$("#PM_Certificate").attr("src", "/EducationalAdministration/PM_Certificate/Index?empId=" + NewEmpId);
$('#lr_form_tabs').lrFormTab();
$('#lr_form_tabs ul li').eq(0).trigger('click');
//校区
@@ -169,6 +170,7 @@ var bootstrap = function ($, learun) {
$('#ProfessionalTitle').lrDataItemSelect({ code: 'jszc' });
$('#ProfessionalTitleLevel').lrDataItemSelect({ code: 'TeacherTitlePostLevel' });
$('#TeacherQualifications').lrDataItemSelect({ code: 'TeacherQualifications' });
$('#MandarinLevel').lrDataItemSelect({ code: 'MandarinLevel' });
//内容编辑器
ue = UE.getEditor('editor');


+ 31
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Form.cshtml Прегледај датотеку

@@ -0,0 +1,31 @@
@{
ViewBag.Title = "资格证获取情况";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap">
<div class="col-xs-12 lr-form-item" data-table="PM_Certificate">
<div class="lr-form-item-title">证书编号</div>
<input id="TeacherQualificationsNo" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="PM_Certificate">
<div class="lr-form-item-title">教师资格证种类</div>
<div id="TeacherQualifications"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="PM_Certificate">
<div class="lr-form-item-title">其他职业资格证</div>
<input id="OtherTeacherQualifications" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="PM_Certificate">
<div class="lr-form-item-title">普通话等级</div>
<div id="MandarinLevel"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="PM_Certificate">
<div class="lr-form-item-title">备注<font face="宋体">*</font></div>
<textarea id="Remark" class="form-control" style="height:100px;" isvalid="yes" checkexpession="NotNull"></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="PM_Certificate">
<div class="lr-form-item-title">是否同步</div>
<div id="IsSync"></div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PM_Certificate/Form.js")

+ 56
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Form.js Прегледај датотеку

@@ -0,0 +1,56 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2020-11-07 14:08
* 描 述:资格证获取情况
*/
var acceptClick;
var keyValue = request('keyValue');
var empId = request('empId');
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: function () {
$('#IsSync').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#TeacherQualifications').lrDataItemSelect({ code: 'TeacherQualifications' });
$('#MandarinLevel').lrDataItemSelect({ code: 'MandarinLevel' });
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/PM_Certificate/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 data = $('body').lrGetFormData();
data["EmpId"] = empId;
var postData = {
strEntity: JSON.stringify(data)
};
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/PM_Certificate/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 58
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Index.cshtml Прегледај датотеку

@@ -0,0 +1,58 @@
@{
ViewBag.Title = "资格证获取情况";
Layout = "~/Views/Shared/_Index.cshtml";
}
<style>
.lr-form-item-title{
width:100px;
}
.lr-form-item{
padding-left:100px;
}
</style>
<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>
<input id="TeacherQualificationsNo" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">教师资格证种类</div>
<div id="TeacherQualifications"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">其他职业资格证</div>
<input id="OtherTeacherQualifications" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">普通话等级</div>
<div id="MandarinLevel"></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_check" class="btn btn-default"><i class="fa fa-lock"></i>&nbsp;提交</a>
<a id="lr_uncheck" class="btn btn-default"><i class="fa fa-unlock"></i>&nbsp;取消提交</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PM_Certificate/Index.js")

+ 174
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Index.js Прегледај датотеку

@@ -0,0 +1,174 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2020-11-07 14:08
* 描 述:资格证获取情况
*/
var refreshGirdData;
var empId = request('empId');
var status = false;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.refreshStatus();
page.initGird();
page.bind();
},
refreshStatus: function () {
//获取主表状态
learun.httpAsyncGet(top.$.rootUrl + '/EducationalAdministration/EmpInfo/GetFormData?keyValue=' + empId, function (res) {
if (res.code == 200) {
if (res.data.EmpInfo != null) {
status = res.data.EmpInfo.CertificateStatus;
}
}
});
},
bind: function () {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#TeacherQualifications').lrDataItemSelect({ code: 'TeacherQualifications' });
$('#MandarinLevel').lrDataItemSelect({ code: 'MandarinLevel' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
if (status == 'true') {
learun.alert.warning('已提交,不能再修改!');
return;
}
learun.layerForm({
id: 'formInPM_Certificate',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/PM_Certificate/Form?empId=' + empId,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
if (status == 'true') {
learun.alert.warning('已提交,不能再修改!');
return;
}
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'formInPM_Certificate',
title: '编辑',
url: top.$.rootUrl + '/EducationalAdministration/PM_Certificate/Form?keyValue=' + keyValue + '&empId=' + empId,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});
// 删除
$('#lr_delete').on('click', function () {
if (status == 'true') {
learun.alert.warning('已提交,不能再修改!');
return;
}
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/PM_Certificate/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 提交
$('#lr_check').on('click', function () {
if (status == 'true') {
learun.alert.warning('已提交,不能再修改!');
return;
}
learun.layerConfirm('是否确认提交!', function (res) {
if (res) {
learun.postForm( top.$.rootUrl + '/EducationalAdministration/PM_Certificate/Submit', { empId: empId, status: true }, function (info) {
refreshGirdData();
});
}
});
});
// 取消提交
$('#lr_uncheck').on('click', function () {
learun.layerConfirm('是否取消提交!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/PM_Certificate/Submit', { empId: empId, status: false }, function () {
refreshGirdData();
});
}
});
});
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/PM_Certificate/GetPageList',
headData: [
{ label: "证书编号", name: "TeacherQualificationsNo", width: 100, align: "left" },
{
label: "教师资格证种类", name: "TeacherQualifications", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'TeacherQualifications',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "其他职业资格证", name: "OtherTeacherQualifications", width: 100, align: "left" },
{
label: "普通话等级", name: "MandarinLevel", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'MandarinLevel',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "备注", name: "Remark", width: 100, align: "left" },
{ label: "是否同步", name: "IsSync", width: 100, align: "left", formatter: function (cellvalue) { return cellvalue == true ? "是" : "否" } },
{
label: "提交状态", name: "SubmitStatus", width: 100, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
}
},
],
mainId: 'ID',
isPage: true,
sidx:'UpdateTime desc'
});
page.search();
},
search: function (param) {
param = param || {};
param.EmpId = empId;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
page.search();
page.refreshStatus();
};
page.init();
}

+ 56
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/StatisticIndex.cshtml Прегледај датотеку

@@ -0,0 +1,56 @@
@{
ViewBag.Title = "资格证获取情况";
Layout = "~/Views/Shared/_Index.cshtml";
}
<style>
.lr-form-item-title {
width: 100px;
}

.lr-form-item {
padding-left: 100px;
}
</style>
<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>
<input id="EmpName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">证书编号</div>
<input id="TeacherQualificationsNo" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">教师资格证种类</div>
<div id="TeacherQualifications"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">其他职业资格证</div>
<input id="OtherTeacherQualifications" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">普通话等级</div>
<div id="MandarinLevel"></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>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PM_Certificate/StatisticIndex.js")

+ 98
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/StatisticIndex.js Прегледај датотеку

@@ -0,0 +1,98 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2020-11-07 14:08
* 描 述:资格证获取情况
*/
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);
$('#TeacherQualifications').lrDataItemSelect({ code: 'TeacherQualifications' });
$('#MandarinLevel').lrDataItemSelect({ code: 'MandarinLevel' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/PM_Certificate/GetPageStatisticList',
headData: [
{
label: "教师", name: "EmpId", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'EmpInfo',
key: value,
keyId: 'empid',
callback: function (_data) {
callback(_data['empname']);
}
});
}
},
{ label: "证书编号", name: "TeacherQualificationsNo", width: 100, align: "left" },
{
label: "教师资格证种类", name: "TeacherQualifications", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'TeacherQualifications',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "其他职业资格证", name: "OtherTeacherQualifications", width: 100, align: "left" },
{
label: "普通话等级", name: "MandarinLevel", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'MandarinLevel',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "变更时间", name: "UpdateTime", width: 130, align: "left" },
{
label: "变更人", name: "Updater", width: 100, align: "left",
formatterAsync: function (callback, value, row) {
learun.clientdata.getAsync('user', {
key: value,
callback: function (item) {
callback(item.name);
}
});
}
},
],
mainId: 'ID',
isPage: true,
sidx:'UpdateTime desc'
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
page.search();
};
page.init();
}

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_YearAssess/Form.cshtml Прегледај датотеку

@@ -5,11 +5,11 @@
<div class="lr-form-wrap">
<div class="col-xs-12 lr-form-item" data-table="PM_YearAssess">
<div class="lr-form-item-title">考核时间<font face="宋体">*</font></div>
<input id="AssessTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#AssessTime').trigger('change'); } })" />
<input id="AssessTime" type="text" class="form-control lr-input-wdatepicker" isvalid="yes" checkexpession="NotNull" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#AssessTime').trigger('change'); } })" />
</div>
<div class="col-xs-12 lr-form-item" data-table="PM_YearAssess">
<div class="lr-form-item-title">考核年度<font face="宋体">*</font></div>
<input id="AssessYear" type="text" class="form-control" />
<input id="AssessYear" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
</div>
<div class="col-xs-12 lr-form-item" data-table="PM_YearAssess">
<div class="lr-form-item-title">考核结果</div>


+ 27
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SportEquipment/Form.cshtml Прегледај датотеку

@@ -0,0 +1,27 @@
@{
ViewBag.Title = "体育器材库存管理";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="SportEquipment" >
<div class="lr-form-item-title">实训室名称<font face="宋体">*</font></div>
<input id="TrainingName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="SportEquipment" >
<div class="lr-form-item-title">器材名称<font face="宋体">*</font></div>
<input id="EquipmentName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="SportEquipment" >
<div class="lr-form-item-title">器材型号<font face="宋体">*</font></div>
<input id="EquipmentModel" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="SportEquipment" >
<div class="lr-form-item-title">现存<font face="宋体">*</font></div>
<input id="Stock" type="number" class="form-control" isvalid="yes" checkexpession="PositiveInteger" />
</div>
<div class="col-xs-12 lr-form-item" data-table="SportEquipment" >
<div class="lr-form-item-title">备注</div>
<textarea id="Remark" class="form-control" style="height:100px;" ></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/SportEquipment/Form.js")

+ 50
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SportEquipment/Form.js Прегледај датотеку

@@ -0,0 +1,50 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2022-11-08 15:35
* 描 述:体育器材库存管理
*/
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 () {
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/SportEquipment/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/SportEquipment/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 44
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SportEquipment/Index.cshtml Прегледај датотеку

@@ -0,0 +1,44 @@
@{
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>
<input id="TrainingName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">器材名称</div>
<input id="EquipmentName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">器材型号</div>
<input id="EquipmentModel" type="text" class="form-control" />
</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>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/SportEquipment/Index.js")

+ 96
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SportEquipment/Index.js Прегледај датотеку

@@ -0,0 +1,96 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2022-11-08 15:35
* 描 述:体育器材库存管理
*/
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);
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/SportEquipment/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/SportEquipment/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/SportEquipment/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/SportEquipment/GetPageList',
headData: [
{ label: "实训室名称", name: "TrainingName", width: 200, align: "left" },
{ label: "器材名称", name: "EquipmentName", width: 200, align: "left" },
{ label: "器材型号", name: "EquipmentModel", width: 300, align: "left" },
{ label: "现存", name: "Stock", width: 150, align: "left" },
{ label: "备注", name: "Remark", width: 300, align: "left" },
{ label: "创建时间", name: "CreateTime", width: 140, align: "left" },
{ label: "创建用户", name: "CreateUser", width: 100, align: "left" },
{ label: "修改时间", name: "UpdateTime", width: 140, align: "left" },
{ label: "修改用户", name: "UpdateUser", width: 100, align: "left" },
],
mainId: 'ID',
sidx: 'CreateTime',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 63
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentHonor/Form.cshtml Прегледај датотеку

@@ -0,0 +1,63 @@
@{
ViewBag.Title = "学生荣誉奖励";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="StudentHonor">
<div class="lr-form-item-title">学年<font face="宋体">*</font></div>
<div id="AcademicYearNo" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor">
<div class="lr-form-item-title">学期<font face="宋体">*</font></div>
<div id="Semester"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor">
<div class="lr-form-item-title">学生学号<font face="宋体">*</font></div>
<input id="StuNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor">
<div class="lr-form-item-title">学生姓名<font face="宋体">*</font></div>
<input id="StuName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor">
<div class="lr-form-item-title">专业部<font face="宋体">*</font></div>
<div id="DeptNo" isvalid="yes" checkexpession="NotNull" readonly></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor">
<div class="lr-form-item-title">专业<font face="宋体">*</font></div>
<div id="MajorNo" isvalid="yes" checkexpession="NotNull" readonly></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor">
<div class="lr-form-item-title">班级<font face="宋体">*</font></div>
<div id="ClassNo" isvalid="yes" checkexpession="NotNull" readonly></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor">
<div class="lr-form-item-title">荣誉名称<font face="宋体">*</font></div>
<input id="SHName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor">
<div class="lr-form-item-title">荣誉级别<font face="宋体">*</font></div>
<input id="SHLevel" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor">
<div class="lr-form-item-title">荣誉种类<font face="宋体">*</font></div>
<input id="SHType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor">
<div class="lr-form-item-title">颁发单位<font face="宋体">*</font></div>
<input id="Unit" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor">
<div class="lr-form-item-title">分值<font face="宋体">*</font></div>
<input id="Score" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor">
<div class="lr-form-item-title">获取时间<font face="宋体">*</font></div>
<input id="SHTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#SHTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor">
<div class="lr-form-item-title">附件上传</div>
<div id="Url"></div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StudentHonor/Form.js")

+ 173
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentHonor/Form.js Прегледај датотеку

@@ -0,0 +1,173 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2022-11-07 11:05
* 描 述:学生荣誉奖励
*/
var acceptClick;
var keyValue = request('keyValue');
var type = request('type');
// 设置权限
var setAuthorize;
// 设置表单数据
var setFormData;
// 验证数据是否填写完整
var validForm;
// 保存数据
var save;
var bootstrap = function ($, learun) {
"use strict";
// 设置权限
setAuthorize = function (data) {
if (!!data) {
for (var field in data) {
if (data[field].isLook != 1) {// 如果没有查看权限就直接移除
$('#' + data[field].fieldId).parent().remove();
}
else {
if (data[field].isEdit != 1) {
$('#' + data[field].fieldId).attr('disabled', 'disabled');
if ($('#' + data[field].fieldId).hasClass('lrUploader-wrap')) {
$('#' + data[field].fieldId).css({ 'padding-right': '58px' });
$('#' + data[field].fieldId).find('.btn-success').remove();
}
}
}
}
}
};
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: 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'
});
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' });
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#Url').lrUploader();

$('#StuNo').blur(function () {
learun.httpAsyncGet(top.$.rootUrl + '/EducationalAdministration/StudentHonor/GetStuData?stuno=' + $('#StuNo').val(), function (res) {
learun.loading(false);
if (res.code == learun.httpCode.success) {
var data = res.data;
if (!!data) {
$('#StuName').val(data.StuName);
$('#DeptNo').lrselectSet(data.DeptNo);
$('#MajorNo').lrselectSet(data.MajorNo);
$('#ClassNo').lrselectSet(data.ClassNo);
} else {
$('#StuName').val();
$('#DeptNo').lrselectSet();
$('#MajorNo').lrselectSet();
$('#ClassNo').lrselectSet();
}
}
else {
learun.alert.error(res.info);
}
});
});
$('#StuName').blur(function () {
learun.httpAsyncGet(top.$.rootUrl + '/EducationalAdministration/StudentHonor/GetStuData?stuname=' + $('#StuName').val(), function (res) {
learun.loading(false);
if (res.code == learun.httpCode.success) {
var data = res.data;
if (!!data) {
$('#StuNo').val(data.StuNo);
$('#DeptNo').lrselectSet(data.DeptNo);
$('#MajorNo').lrselectSet(data.MajorNo);
$('#ClassNo').lrselectSet(data.ClassNo);
} else {
$('#StuName').val();
$('#DeptNo').lrselectSet();
$('#MajorNo').lrselectSet();
$('#ClassNo').lrselectSet();
}
}
else {
learun.alert.error(res.info);
}
});
});
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StudentHonor/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]);
}
}
});
}
}
};
// 设置表单数据
setFormData = function (processId, param, callback) {
if (!!processId) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StudentHonor/GetFormDataByProcessId?processId=' + processId, function (data) {
for (var id in data) {
if (!!data[id] && data[id].length > 0) {
$('#' + id).jfGridSet('refreshdata', data[id]);
}
else {
if (id == 'StudentHonor' && data[id]) {
keyValue = data[id].Id;
}
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
}
}
});
}
callback && callback();
}
// 验证数据是否填写完整
validForm = function () {
if (!$('body').lrValidform()) {
return false;
}
return true;
};
// 保存数据
save = function (processId, callBack, i) {
var formData = $('body').lrGetFormData();
if (!!processId) {
formData.processId = processId;
}
if (type == 'copy') {
keyValue = '';
}
var postData = {
strEntity: JSON.stringify(formData)
};
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StudentHonor/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack(res, i);
}
});
};
page.init();
}

+ 23
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentHonor/FormScore.cshtml Прегледај датотеку

@@ -0,0 +1,23 @@
@{
ViewBag.Title = "学生荣誉奖励";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="StudentHonor" >
<div class="lr-form-item-title">学生学号<font face="宋体">*</font></div>
<input id="StuNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor" >
<div class="lr-form-item-title">学生姓名<font face="宋体">*</font></div>
<input id="StuName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor" >
<div class="lr-form-item-title">荣誉名称<font face="宋体">*</font></div>
<input id="SHName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentHonor" >
<div class="lr-form-item-title">分值<font face="宋体">*</font></div>
<input id="Score" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StudentHonor/FormScore.js")

+ 94
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentHonor/FormScore.js Прегледај датотеку

@@ -0,0 +1,94 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2022-11-07 11:05
* 描 述:学生荣誉奖励
*/
var acceptClick;
var keyValue = request('keyValue');
var type = request('type');
// 设置权限
var setAuthorize;
// 设置表单数据
var setFormData;
// 验证数据是否填写完整
var validForm;
// 保存数据
var save;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: function () {
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' });
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StudentHonor/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]);
}
}
});
}
}
};
// 设置表单数据
setFormData = function (processId, param, callback) {
if (!!processId) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StudentHonor/GetFormDataByProcessId?processId=' + processId, function (data) {
for (var id in data) {
if (!!data[id] && data[id].length > 0) {
$('#' + id).jfGridSet('refreshdata', data[id]);
}
else {
if (id == 'StudentHonor' && data[id]) {
keyValue = data[id].Id;
}
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
}
}
});
}
callback && callback();
}
// 验证数据是否填写完整
validForm = function () {
if (!$('body').lrValidform()) {
return false;
}
return true;
};
// 保存数据
save = function (processId, callBack, i) {
var formData = $('body').lrGetFormData();
if (!!processId) {
formData.processId = processId;
}
if (type == 'copy') {
keyValue = '';
}
var postData = {
strEntity: JSON.stringify(formData)
};
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StudentHonor/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack(res, i);
}
});
};
page.init();
}

+ 77
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentHonor/Index.cshtml Прегледај датотеку

@@ -0,0 +1,77 @@
@{
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-6 lr-form-item">
<div class="lr-form-item-title">学年</div>
<div id="AcademicYearNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学期</div>
<div id="Semester"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生学号</div>
<input id="StuNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生姓名</div>
<input id="StuName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">专业部</div>
<div id="DeptNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">专业</div>
<div id="MajorNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">班级</div>
<div id="ClassNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">荣誉名称</div>
<input id="SHName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">荣誉级别</div>
<input id="SHLEVEL" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">荣誉种类</div>
<input id="SHType" type="text" class="form-control" />
</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_copy" 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_updscore" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;修改分值</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_submit" class="btn btn-default"><i class="fa fa-plus"></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/StudentHonor/Index.js")

+ 305
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentHonor/Index.js Прегледај датотеку

@@ -0,0 +1,305 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2022-11-07 11:05
* 描 述:学生荣誉奖励
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var processId = '';
var page = {
init: function () {
page.initGird();
page.bind();
},
bind: function () {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 240, 400);
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' });
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
//学年
$('#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'
});
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/StudentHonor/Form',
width: 1000,
height: 800,
callBack: function (id) {
var res = false;
// 验证数据
res = top[id].validForm();
// 保存数据
if (res) {
processId = learun.newGuid();
res = top[id].save(processId, refreshGirdData);
}
return res;
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var Status = $('#gridtable').jfGridValue('Status');
if (Status == '2') {
learun.alert.warning("当前项目已审批通过!");
return;
}
if (Status != '0') {
learun.alert.warning("当前项目已提交,请耐心等待审批!");
return;
}
learun.layerForm({
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/EducationalAdministration/StudentHonor/Form?keyValue=' + keyValue,
width: 1000,
height: 800,
callBack: function (id) {
var res = false;
// 验证数据
res = top[id].validForm();
// 保存数据
if (res) {
res = top[id].save('', function () {
page.search();
});
}
return res;
}
});
}
});
//修改分值
$('#lr_updscore').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var Status = $('#gridtable').jfGridValue('Status');
if (Status == '2') {
learun.alert.warning("当前项目已审批通过!");
return;
}
if (Status != '0') {
learun.alert.warning("当前项目已提交,请耐心等待审批!");
return;
}
learun.layerForm({
id: 'form_updscore',
title: '修改分值',
url: top.$.rootUrl + '/EducationalAdministration/StudentHonor/FormScore?keyValue=' + keyValue,
width: 500,
height: 350,
callBack: function (id) {
var res = false;
// 验证数据
res = top[id].validForm();
// 保存数据
if (res) {
res = top[id].save('', function () {
page.search();
});
}
return res;
}
});
}
});
//复制
$('#lr_copy').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/StudentHonor/Form?keyValue=' + keyValue + '&type=copy',
width: 1000,
height: 800,
callBack: function (id) {
var res = false;
// 验证数据
res = top[id].validForm();
// 保存数据
if (res) {
res = top[id].save('', function () {
page.search();
});
}
return res;
}
});
}
});
// 删除
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var Status = $('#gridtable').jfGridValue('Status');
if (Status == '2') {
learun.alert.warning("当前项目已审批通过!");
return;
}
if (Status != '0') {
learun.alert.warning("当前项目已提交,请耐心等待审批!");
return;
}
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StudentHonor/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 提交
$('#lr_submit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var Status = $('#gridtable').jfGridValue('Status');
if (Status == '2') {
learun.alert.warning("当前项目已审批通过!");
return;
}
if (Status != '0') {
learun.alert.warning("当前项目已提交,请耐心等待审批!");
return;
}
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
processId = learun.newGuid();
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StudentHonor/ChangeStatusById', { keyValue: keyValue, processId: processId }, function (res) {
refreshGirdData(res, {});
});
}
});
}
});

// 打印
$('#lr_print').on('click', function () {
$('#gridtable').jqprintTable();
});
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StudentHonor/GetPageList',
headData: [
{ label: "学年", name: "AcademicYearNo", width: 80, align: "left" },
{ label: "学期", name: "Semester", width: 80, align: "left" },
{ label: "学生学号", name: "StuNo", width: 150, align: "left" },
{ label: "学生姓名", name: "StuName", 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: "ClassNo", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
key: value,
keyId: 'classno',
callback: function (_data) {
callback(_data['classname']);
}
});
}
},
{ label: "荣誉名称", name: "SHName", width: 100, align: "left" },
{ label: "荣誉级别", name: "SHLevel", width: 100, align: "left" },
{ label: "荣誉种类", name: "SHType", width: 100, align: "left" },
{ label: "颁发单位", name: "Unit", width: 100, align: "left" },
{ label: "分值", name: "Score", width: 100, align: "left" },
{
label: "获取时间", name: "SHTime", width: 100, align: "left",
formatter: function (cellvalue, row) {
return learun.formatDate(cellvalue, 'yyyy-MM-dd');
}
},
{
label: "状态", name: "Status", width: 100, align: "left",
formatter: function (cellvalue, row) {
if (cellvalue === 1) {
return '<span class=\"label label-warning\">审批中</span>';
} else if (cellvalue === 2) {
return '<span class=\"label label-success\">审核通过</span>';
} else {
return '<span class=\"label label-default\" >草稿</span>';
}
}
},
],
mainId: 'Id',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function (res, postData) {
if (res && res.code && res.code == 200) {
var postData = {
schemeCode: 'StudentHonor',// 填写流程对应模板编号
processId: processId,
level: '1',
};
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) {
learun.loading(false);
});
}
page.search();

};
page.init();
}

+ 163
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.cshtml Прегледај датотеку

@@ -0,0 +1,163 @@
@{
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">序号</div>
<input id="No" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">姓名</div>
<input id="EmpName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">身份证号</div>
<input id="IdCardNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">人员类别</div>
<input id="PeopleType" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">岗位等级</div>
<input id="PostType" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">薪级</div>
<input id="PayGrade" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">应发合计</div>
<input id="TotalGrossPay" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">岗位工资</div>
<input id="PostWage" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">薪级工资</div>
<input id="PayGradeWage" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">百分之十</div>
<input id="TenPercent" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">基本工资小计</div>
<input id="BasePay" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">艰边津贴</div>
<input id="RoughEdgeAllowance" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">民族津贴</div>
<input id="NationAllowance" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">教师津贴</div>
<input id="TeachAllowance" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">津贴补贴小计</div>
<input id="SubsidiesAllowances" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">基础性绩效</div>
<input id="BasicsPerformance" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">女职工卫生费</div>
<input id="GirlStaffSanitation" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">交通补贴</div>
<input id="Transportation" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">物业补贴</div>
<input id="RealeState" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">工改保留补贴</div>
<input id="WorkKeep" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">改革性补贴小计</div>
<input id="ReformSubsidySum" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">住房补贴</div>
<input id="HousingAllowance" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">住房公积金</div>
<input id="HousingFundAllowance" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">特级教师津贴和乡镇补贴</div>
<input id="TeacherAndTown" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">扣款小计</div>
<input id="DeductionsSubtotal" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">公积金</div>
<input id="AccumulationFund" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">工会工费</div>
<input id="LaborUnionWage" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">个人所得税</div>
<input id="PersonalIncomeTax" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">养老保险</div>
<input id="EndowmentInsurance" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">职业年金</div>
<input id="OccupationalAnnuities" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">医疗保险</div>
<input id="MedicalInsurance" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">失业保险</div>
<input id="UnemploymentInsurance" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">其他</div>
<input id="Other" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">财政直达</div>
<input id="FiscalDirect" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">银行代扣</div>
<input id="BankWithholding" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">实发合计</div>
<input id="NetCombined" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">工资卡号</div>
<input id="WageCardNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">发放月份</div>
<input id="IssueMonth" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">发放年份</div>
<input id="IssueYear" type="text" class="form-control" />
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/WageSchedule/Form.js")

+ 38
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.js Прегледај датотеку

@@ -0,0 +1,38 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2022-11-07 11:54
* 描 述:工资条
*/
var acceptClick;
var keyValue = request('keyValue');
var bootstrap = function ($, learun) {
"use strict";
var selectedRow = learun.frameTab.currentIframe().selectedRow;
var page = {
init: function () {
page.initData();
},
bind: function () {
},
initData: function () {
if (!!selectedRow) {
$('#form').lrSetFormData(selectedRow);
}
}
};
// 保存数据
acceptClick = function (callBack) {
if (!$('#form').lrValidform()) {
return false;
}
var postData = $('#form').lrGetFormData();
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/WageSchedule/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Index.cshtml Прегледај датотеку

@@ -0,0 +1,48 @@
@{
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="IssueYear"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">月份</div>
<div id="IssueMonth"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">姓名</div>
<input id="EmpName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">人员类别</div>
<input id="PeopleType" type="text" class="form-control" />
</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>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/WageSchedule/Index.js")

+ 158
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Index.js Прегледај датотеку

@@ -0,0 +1,158 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2022-11-07 11:54
* 描 述:工资条
*/
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);
//年份
$('#IssueYear').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetAcademicYear',
value: 'value',
text: 'text'
});
$('#IssueMonth').lrDataItemSelect({ code: 'MPMonth' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
selectedRow = null;
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/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 + '/EducationalAdministration/WageSchedule/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 + '/EducationalAdministration/WageSchedule/DeleteForm', { keyValue: keyValue }, function () {
});
}
});
}
});
},
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/GetPageList',
headData: [
{ label: '序号', name: 'No', width: 70, align: "left" },
{ label: '姓名', name: 'EmpName', width: 70, align: "left" },
{ label: '身份证号', name: 'IdCardNo', width: 140, align: "left" },
{ label: '人员类别', name: 'PeopleType', width: 70, align: "left" },
{ label: '岗位等级', name: 'PostType', width: 70, align: "left" },
{ label: '薪级', name: 'PayGrade', width: 50, align: "left" },
{ label: '应发合计', name: 'TotalGrossPay', width: 70, align: "left", statistics: true },
{
label: '基本工资', name: '基本工资', width: 130, align: "center", statistics: true,
children: [
{ label: '岗位工资', name: 'PostWage', width: 70, align: "left", statistics: true },
{ label: '薪级工资', name: 'PayGradeWage', width: 70, align: "left", statistics: true },
{ label: '百分之十', name: 'TenPercent', width: 70, align: "left", statistics: true },
{ label: '小计', name: 'BasePay', width: 70, align: "left", statistics: true }
]
},
{
label: '津贴补贴', name: '津贴补贴', width: 130, align: "center", statistics: true,
children: [
{ label: '艰边津贴', name: 'RoughEdgeAllowance', width: 70, align: "left", statistics: true },
{ label: '民族津贴', name: 'NationAllowance', width: 70, align: "left", statistics: true },
{ label: '教师津贴', name: 'TeachAllowance', width: 70, align: "left", statistics: true },
{ label: '小计', name: 'SubsidiesAllowances', width: 70, align: "left", statistics: true },
]
},
{ label: '基础性绩效', name: 'BasicsPerformance', width: 70, align: "left", statistics: true },
{ label: '女职工卫生费', name: 'GirlStaffSanitation', width: 70, align: "left", statistics: true },
{
label: '改革性补贴', name: '改革性补贴', width: 70, align: "center", statistics: true,
children: [
{ label: '交通补贴', name: 'Transportation', width: 70, align: "left", statistics: true },
{ label: '物业补贴', name: 'RealeState', width: 70, align: "left", statistics: true },
{ label: '工改保留补贴', name: 'WorkKeep', width: 90, align: "left", statistics: true },
{ label: '小计', name: 'ReformSubsidySum', width: 70, align: "left", statistics: true }
]
},
{ label: '住房补贴', name: 'HousingAllowance', width: 80, align: "left", statistics: true },
{ label: '住房公积金', name: 'HousingFundAllowance', width: 80, align: "left", statistics: true },
{ label: '特级教师津贴和乡镇补贴', name: 'TeacherAndTown', width: 130, align: "center", statistics: true },
{
label: '扣款', name: '扣款', width: 130, align: "center", statistics: true,
children: [
{ label: '小计', name: 'DeductionsSubtotal', width: 70, align: "left", statistics: true },
{ label: '公积金', name: 'AccumulationFund', width: 70, align: "left", statistics: true },
{ label: '工会工费', name: 'LaborUnionWage', width: 70, align: "left", statistics: true },
{ label: '个人所得税', name: 'PersonalIncomeTax', width: 70, align: "left", statistics: true },
{ label: '养老保险', name: 'EndowmentInsurance', width: 70, align: "left", statistics: true },
{ label: '职业年金', name: 'OccupationalAnnuities', width: 70, align: "left", statistics: true },
{ label: '医疗保险', name: 'MedicalInsurance', width: 70, align: "left", statistics: true },
{ label: '失业保险', name: 'UnemploymentInsurance', width: 70, align: "left", statistics: true },
{ label: '其他', name: 'Other', width: 70, align: "left", statistics: true }
]
},
{ label: '财政直达', name: 'FiscalDirect', width: 70, align: "left", statistics: true },
{ label: '银行代扣', name: 'BankWithholding', width: 70, align: "left", statistics: true },
{ label: '实发合计', name: 'NetCombined', width: 70, align: "left", statistics: true },
{ label: '工资卡号', name: 'WageCardNo', width: 130, align: "left" },
{ label: '创建用户', name: 'CreateUser', width: 70, align: "left" },
{ label: '创建时间', name: 'CreateTime', width: 130, align: "left" },
{ label: '发放月份', name: 'IssueMonth', width: 70, align: "left" },
{ label: '发放年份', name: 'IssueYear', width: 70, align: "left" },
],
mainId: 'Id',
isPage: true,
rows: 300,
sidx: 'CreateTime',
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 24
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Прегледај датотеку

@@ -340,6 +340,7 @@
<Compile Include="Areas\EducationalAdministration\Controllers\LeaveSchoolAController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\LR_Base_LogoController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\MealCardRunTabController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\PM_CertificateController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\PM_YearAssessController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\PM_PositionChangeController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\OuoutsourcingController.cs" />
@@ -350,6 +351,7 @@
<Compile Include="Areas\EducationalAdministration\Controllers\ScholarshipxjController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\ScoreStatisticsController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StuAttendanceController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StudentHonorController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StuDisciplineManagementController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StuCancelDisciplineManagementController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StuCancelLeaveManagementController.cs" />
@@ -877,6 +879,8 @@
<Compile Include="Areas\EducationalAdministration\Controllers\TE_MaterialOutboundController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\ScoreCheckInfoController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\WelfarePositionController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\WageScheduleController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\SportEquipmentController.cs" />
<Compile Include="Areas\AssetManagementSystem\Controllers\FundsApplyDetailController.cs" />
<Compile Include="Areas\AssetManagementSystem\Controllers\FundsApplyController.cs" />
</ItemGroup>
@@ -1111,6 +1115,9 @@
<Content Include="Areas\EducationalAdministration\Views\MealCardRunTab\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\Ououtsourcing\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\Ououtsourcing\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\PM_Certificate\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\PM_Certificate\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\PM_Certificate\StatisticIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\PM_EducationExperience\StatisticIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\PM_YearAssess\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\PM_YearAssess\Index.js" />
@@ -1164,6 +1171,9 @@
<Content Include="Areas\EducationalAdministration\Views\StuCancelLeaveManagement\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\StuConsumption\IndexForStudent.js" />
<Content Include="Areas\EducationalAdministration\Views\StuConsumption\IndexForTeacher.js" />
<Content Include="Areas\EducationalAdministration\Views\StudentHonor\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\StudentHonor\FormScore.js" />
<Content Include="Areas\EducationalAdministration\Views\StudentHonor\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\StudentCertificate\FormScore.js" />
<Content Include="Areas\EducationalAdministration\Views\StuDisciplineManagement\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\StuDisciplineManagement\FormView.js" />
@@ -1272,6 +1282,12 @@
<Content Include="Areas\EducationalAdministration\Views\PM_YearAssess\StatisticIndex.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\Ououtsourcing\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\Ououtsourcing\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\PM_Certificate\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\PM_Certificate\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\PM_Certificate\StatisticIndex.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StudentHonor\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StudentHonor\FormScore.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StudentHonor\Index.cshtml" />
<None Include="Areas\EducationalAdministration\Views\StuInfoBasic\Printxjk.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatisticClassIndex.js" />
@@ -6941,6 +6957,14 @@
<Content Include="Areas\EducationalAdministration\Views\WelfarePosition\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\WelfarePosition\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\WelfarePosition\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\SportEquipment\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\SportEquipment\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\SportEquipment\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\SportEquipment\Form.js" />
<Content Include="Areas\AssetManagementSystem\Views\FundsApplyDetail\Index.cshtml" />
<Content Include="Areas\AssetManagementSystem\Views\FundsApplyDetail\Index.js" />
<Content Include="Areas\AssetManagementSystem\Views\FundsApplyDetail\Form.cshtml" />


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js Прегледај датотеку

@@ -188,16 +188,16 @@
window.location.href = "/Home/Index?pwdpwdtip=true";
} else {
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwd=true";
window.location.href ="/Home/Index?pwd=true";
window.location.href = "/Home/Index?pwd=true";
}
}
else {
if (res.data.pwdtip == true) {
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdtip=true";
window.location.href ="/Home/Index?pwdtip=true";
window.location.href = "/Home/Index?pwdtip=true";
} else {
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index";
window.location.href = "/Home/Index";
window.location.href = "/Home/Index";
}
//window.location.href = "/Home/Index";
}


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/IndexInTeacher.cshtml Прегледај датотеку

@@ -20,6 +20,7 @@
<li><a data-value="tab6">家庭情况</a></li>
<li><a data-value="tab7">教师聘任变更记录</a></li>
<li><a data-value="tab8">年度考核结果管理</a></li>
<li><a data-value="tab9">资格证获取情况</a></li>
}
</ul>
<div class="tab-content" id="lr_tab_content">
@@ -835,6 +836,9 @@
<div class="tab-pane" id="tab8">
<iframe id="PM_YearAssess" width="100%" scrolling="no" height="100%" frameborder="0"></iframe>
</div>
<div class="tab-pane" id="tab9">
<iframe id="PM_Certificate" width="100%" scrolling="no" height="100%" frameborder="0"></iframe>
</div>
</div>

</div>


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/IndexInTeacher.js Прегледај датотеку

@@ -23,6 +23,7 @@ var bootstrap = function ($, learun) {
$("#PM_FamilySituation").attr("src", "/EducationalAdministration/PM_FamilySituation/Index?empId=" + NewEmpId);
$("#PM_PositionChange").attr("src", "/EducationalAdministration/PM_PositionChange/Index?empId=" + NewEmpId);
$("#PM_YearAssess").attr("src", "/EducationalAdministration/PM_YearAssess/Index?empId=" + NewEmpId);
$("#PM_Certificate").attr("src", "/EducationalAdministration/PM_Certificate/Index?empId=" + NewEmpId);

// 显示信息选项卡
$('#tablist').lrFormTabEx();


+ 5
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config Прегледај датотеку

@@ -16,14 +16,14 @@
<!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />-->
<!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />-->

<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_长阳;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_长阳;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="paikeDbString" connectionString="Data Source=139.196.217.128;Database=cypaike;User ID=root;Password=123456;" providerName="MySql.Data.MySqlClient" /><!--金隅-->

<!--<add name="BaseDb" connectionString="Server=39.97.168.125;Initial Catalog=adms7ultimate2;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="CollegeMIS" connectionString="Server=39.97.168.125;Initial Catalog=CollegeMIS;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="hangfireString" connectionString="Server=39.97.168.125;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="paikeDbString" connectionString="Data Source=39.97.168.125;Database=cypaike;User ID=root;Password=123456;" providerName="MySql.Data.MySqlClient" />--><!--金隅-->
<!--<add name="BaseDb" connectionString="Server=192.168.100.224;Initial Catalog=adms7ultimate2;User ID=sa;Password=Jykj@2019" providerName="System.Data.SqlClient" />
<add name="CollegeMIS" connectionString="Server=192.168.100.224;Initial Catalog=CollegeMIS;User ID=sa;Password=Jykj@2019" providerName="System.Data.SqlClient" />
<add name="hangfireString" connectionString="Server=192.168.100.224;Initial Catalog=Hangfire;User ID=sa;Password=Jykj@2019" providerName="System.Data.SqlClient" />-->


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config Прегледај датотеку

@@ -34,6 +34,7 @@
<typeAlias alias="StuCancelDisciplineManagementMethod" type="Learun.Application.WorkFlow.StuCancelDisciplineManagementMethod,Learun.Application.WorkFlow" />
<typeAlias alias="StuDisciplineManagementMethod" type="Learun.Application.WorkFlow.StuDisciplineManagementMethod,Learun.Application.WorkFlow" />
<typeAlias alias="StudentCertificateMethod" type="Learun.Application.WorkFlow.StudentCertificateMethod,Learun.Application.WorkFlow" />
<typeAlias alias="StudentHonorMethod" type="Learun.Application.WorkFlow.StudentHonorMethod,Learun.Application.WorkFlow" />
<!--任务调度器-->
<typeAlias alias="ITSMethod" type="Learun.Application.Extention.TaskScheduling.ITsMethod,Learun.Application.Extention" />
@@ -78,6 +79,7 @@
<type type="IWorkFlowMethod" mapTo="StuCancelDisciplineManagementMethod" name="StuCancelDisciplineManagementMethod"></type>
<type type="IWorkFlowMethod" mapTo="StuDisciplineManagementMethod" name="StuDisciplineManagementMethod"></type>
<type type="IWorkFlowMethod" mapTo="StudentCertificateMethod" name="StudentCertificateMethod"></type>
<type type="IWorkFlowMethod" mapTo="StudentHonorMethod" name="StudentHonorMethod"></type>
</container>



+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj Прегледај датотеку

@@ -203,6 +203,9 @@
<Compile Include="Modules\LogisticsManagement\Acc_StuDayRoutineApi.cs" />
<Compile Include="Modules\LogisticsManagement\Acc_PublicAreaHealthApi.cs" />
<Compile Include="Modules\LogisticsManagement\Acc_DailyAssessApi.cs" />
<Compile Include="Modules\WelfarePositionApi.cs" />
<Compile Include="Modules\OuoutsourcingApi.cs" />
<Compile Include="Modules\WageScheduleApi.cs" />
<Compile Include="Modules\PushMessageApi.cs" />
<Compile Include="Modules\EvalApi.cs" />
<Compile Include="Modules\EducationalAdministration\R_EnterBuildingApi.cs" />


+ 64
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/OuoutsourcingApi.cs Прегледај датотеку

@@ -0,0 +1,64 @@
using Nancy;
using Learun.Util;
using System.Collections.Generic;
using Learun.Application.TwoDevelopment.EducationalAdministration;
using static Learun.Application.WebApi.Modules.StuInfoFreshApi;
using System;
using System.IO;
using System.Linq;
using Learun.Application.Base.SystemModule;
using Learun.Application.OA;
using Learun.Application.OA.File.FileInfo;
using Learun.Application.TwoDevelopment.LogisticsManagement;
using Learun.Application.TwoDevelopment.LR_Desktop;
using Learun.Application.WorkFlow;
using Microsoft.Ajax.Utilities;

namespace Learun.Application.WebApi
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 力软敏捷开发框架
/// Copyright (c) 2013-2018 上海力软信息技术有限公司
/// 创 建:超级管理员
/// 日 期:2019-08-19 17:50
/// 描 述:工资条
/// </summary>

public class OuoutsourcingApi : BaseApi
{

private OuoutsourcingIBLL ououtsourcingIBLL = new OuoutsourcingBLL();

/// <summary>
/// 一卡通接口
/// <summary>
public OuoutsourcingApi()
: base("/Learun/adms/Ououtsourcing")
{
Get["/getlist"] = GetList;
}
#region 获取数据

/// <summary>
/// 获取页面显示列表分页数据
/// <summary>
/// <param name="_"></param>
/// <returns></returns>
public Response GetList(dynamic _)
{
ReqPageParam parameter = this.GetReqData<ReqPageParam>();
var data = ououtsourcingIBLL.GetPageList(parameter.pagination, parameter.queryJson);
var jsonData = new
{
rows = data,
total = parameter.pagination.total,
page = parameter.pagination.page,
records = parameter.pagination.records
};
return Success(jsonData);
}

#endregion
}

}

+ 64
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/WageScheduleApi.cs Прегледај датотеку

@@ -0,0 +1,64 @@
using Nancy;
using Learun.Util;
using System.Collections.Generic;
using Learun.Application.TwoDevelopment.EducationalAdministration;
using static Learun.Application.WebApi.Modules.StuInfoFreshApi;
using System;
using System.IO;
using System.Linq;
using Learun.Application.Base.SystemModule;
using Learun.Application.OA;
using Learun.Application.OA.File.FileInfo;
using Learun.Application.TwoDevelopment.LogisticsManagement;
using Learun.Application.TwoDevelopment.LR_Desktop;
using Learun.Application.WorkFlow;
using Microsoft.Ajax.Utilities;

namespace Learun.Application.WebApi
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 力软敏捷开发框架
/// Copyright (c) 2013-2018 上海力软信息技术有限公司
/// 创 建:超级管理员
/// 日 期:2019-08-19 17:50
/// 描 述:工资条
/// </summary>

public class WageScheduleApi : BaseApi
{

private WageScheduleIBLL wageScheduleIBLL = new WageScheduleBLL();

/// <summary>
/// 一卡通接口
/// <summary>
public WageScheduleApi()
: base("/Learun/adms/WageSchedule")
{
Get["/getlist"] = GetList;
}
#region 获取数据

/// <summary>
/// 获取页面显示列表分页数据
/// <summary>
/// <param name="_"></param>
/// <returns></returns>
public Response GetList(dynamic _)
{
ReqPageParam parameter = this.GetReqData<ReqPageParam>();
var data = wageScheduleIBLL.GetPageList(parameter.pagination, parameter.queryJson);
var jsonData = new
{
rows = data,
total = parameter.pagination.total,
page = parameter.pagination.page,
records = parameter.pagination.records
};
return Success(jsonData);
}

#endregion
}

}

+ 64
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/WelfarePositionApi.cs Прегледај датотеку

@@ -0,0 +1,64 @@
using Nancy;
using Learun.Util;
using System.Collections.Generic;
using Learun.Application.TwoDevelopment.EducationalAdministration;
using static Learun.Application.WebApi.Modules.StuInfoFreshApi;
using System;
using System.IO;
using System.Linq;
using Learun.Application.Base.SystemModule;
using Learun.Application.OA;
using Learun.Application.OA.File.FileInfo;
using Learun.Application.TwoDevelopment.LogisticsManagement;
using Learun.Application.TwoDevelopment.LR_Desktop;
using Learun.Application.WorkFlow;
using Microsoft.Ajax.Utilities;

namespace Learun.Application.WebApi
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 力软敏捷开发框架
/// Copyright (c) 2013-2018 上海力软信息技术有限公司
/// 创 建:超级管理员
/// 日 期:2019-08-19 17:50
/// 描 述:工资条
/// </summary>

public class WelfarePositionApi : BaseApi
{

private WelfarePositionIBLL WelfarePositionIBLL = new WelfarePositionBLL();

/// <summary>
/// 一卡通接口
/// <summary>
public WelfarePositionApi()
: base("/Learun/adms/WelfarePosition")
{
Get["/getlist"] = GetList;
}
#region 获取数据

/// <summary>
/// 获取页面显示列表分页数据
/// <summary>
/// <param name="_"></param>
/// <returns></returns>
public Response GetList(dynamic _)
{
ReqPageParam parameter = this.GetReqData<ReqPageParam>();
var data = WelfarePositionIBLL.GetPageList(parameter.pagination, parameter.queryJson);
var jsonData = new
{
rows = data,
total = parameter.pagination.total,
page = parameter.pagination.page,
records = parameter.pagination.records
};
return Success(jsonData);
}

#endregion
}

}

+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/PM_CertificateMap.cs Прегледај датотеку

@@ -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-07 14:08
/// 描 述:资格证获取情况
/// </summary>
public class PM_CertificateMap : EntityTypeConfiguration<PM_CertificateEntity>
{
public PM_CertificateMap()
{
#region 表、主键
//表
this.ToTable("PM_CERTIFICATE");
//主键
this.HasKey(t => t.ID);
#endregion

#region 配置关系
#endregion
}
}
}


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/SportEquipmentMap.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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-08 15:35
/// 描 述:体育器材库存管理
/// </summary>
public class SportEquipmentMap : EntityTypeConfiguration<SportEquipmentEntity>
{
public SportEquipmentMap()
{
#region 表、主键
//表
this.ToTable("SPORTEQUIPMENT");
//主键
this.HasKey(t => t.ID);
#endregion

#region 配置关系
#endregion
}
}
}


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StudentHonorMap.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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-07 11:05
/// 描 述:学生荣誉奖励
/// </summary>
public class StudentHonorMap : EntityTypeConfiguration<StudentHonorEntity>
{
public StudentHonorMap()
{
#region 表、主键
//表
this.ToTable("STUDENTHONOR");
//主键
this.HasKey(t => t.Id);
#endregion

#region 配置关系
#endregion
}
}
}


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/WageScheduleMap.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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-07 11:54
/// 描 述:工资条
/// </summary>
public class WageScheduleMap : EntityTypeConfiguration<WageScheduleEntity>
{
public WageScheduleMap()
{
#region 表、主键
//表
this.ToTable("WAGESCHEDULE");
//主键
this.HasKey(t => t.Id);
#endregion

#region 配置关系
#endregion
}
}
}


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj Прегледај датотеку

@@ -98,6 +98,7 @@
<Compile Include="EducationalAdministration\Exam_InvigilateTeacherMap.cs" />
<Compile Include="EducationalAdministration\LeaveSchoolMap.cs" />
<Compile Include="EducationalAdministration\MealCardRunTabMap.cs" />
<Compile Include="EducationalAdministration\PM_CertificateMap.cs" />
<Compile Include="EducationalAdministration\PM_YearAssessMap.cs" />
<Compile Include="EducationalAdministration\PM_PositionChangeMap.cs" />
<Compile Include="EducationalAdministration\OuoutsourcingMap.cs" />
@@ -109,6 +110,7 @@
<Compile Include="EducationalAdministration\ScoreStatisticsMap.cs" />
<Compile Include="EducationalAdministration\StuCancelLeaveManagementMap.cs" />
<Compile Include="EducationalAdministration\StuCancleDisciplineManagementMap.cs" />
<Compile Include="EducationalAdministration\StudentHonorMap.cs" />
<Compile Include="EducationalAdministration\StuDisciplineManagementMap.cs" />
<Compile Include="EducationalAdministration\StuGrantMap.cs" />
<Compile Include="EducationalAdministration\StuInfoBasicChangeMap.cs" />
@@ -637,6 +639,8 @@
<Compile Include="EducationalAdministration\WelfarePositionMap.cs" />
<Compile Include="AssetManagementSystem\FundsApplyDetailMap.cs" />
<Compile Include="AssetManagementSystem\FundsApplyMap.cs" />
<Compile Include="EducationalAdministration\WageScheduleMap.cs" />
<Compile Include="EducationalAdministration\SportEquipmentMap.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Ououtsourcing/OuoutsourcingEntity.cs Прегледај датотеку

@@ -14,7 +14,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
public class OuoutsourcingEntity
{
#region 实体成员
/// <summary>
/// <summary>
/// WPID
/// </summary>
/// <returns></returns>


+ 171
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_Certificate/PM_CertificateBLL.cs Прегледај датотеку

@@ -0,0 +1,171 @@
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 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2020-11-07 14:08
/// 描 述:资格证获取情况
/// </summary>
public class PM_CertificateBLL : PM_CertificateIBLL
{
private PM_CertificateService pM_CertificateService = new PM_CertificateService();

#region 获取数据

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

/// <summary>
/// 获取PM_Certificate表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public PM_CertificateEntity GetPM_CertificateEntity(string keyValue)
{
try
{
return pM_CertificateService.GetPM_CertificateEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

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

#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void DeleteEntity(string keyValue)
{
try
{
pM_CertificateService.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, PM_CertificateEntity entity)
{
try
{
pM_CertificateService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 修改提交状态
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void Submit(string keyValue, bool status)
{
try
{
pM_CertificateService.Submit(keyValue, status);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

}
}

+ 95
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_Certificate/PM_CertificateEntity.cs Прегледај датотеку

@@ -0,0 +1,95 @@
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 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2020-11-07 14:08
/// 描 述:资格证获取情况
/// </summary>
public class PM_CertificateEntity
{
#region 实体成员
/// <summary>
/// 编号
/// </summary>
[Column("ID")]
public string ID { get; set; }
/// <summary>
/// 人员ID
/// </summary>
[Column("EMPID")]
public string EmpId { get; set; }
/// <summary>
/// 证书编号
/// </summary>
[Column("TEACHERQUALIFICATIONSNO")]
public string TeacherQualificationsNo { get; set; }
/// <summary>
/// 教师资格证种类
/// </summary>
[Column("TEACHERQUALIFICATIONS")]
public string TeacherQualifications { get; set; }
/// <summary>
/// 其他职业资格证
/// </summary>
[Column("OTHERTEACHERQUALIFICATIONS")]
public string OtherTeacherQualifications { get; set; }
/// <summary>
/// 普通话等级
/// </summary>
[Column("MANDARINLEVEL")]
public string MandarinLevel { get; set; }
/// <summary>
/// 备注
/// </summary>
[Column("REMARK")]
public string Remark { get; set; }
/// <summary>
/// 是否同步
/// </summary>
[Column("ISSYNC")]
public bool? IsSync { get; set; }
/// <summary>
/// 最后修改人
/// </summary>
[Column("UPDATER")]
public string Updater { get; set; }
/// <summary>
/// 最后修改时间
/// </summary>
[Column("UPDATETIME")]
public DateTime? UpdateTime { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.ID = Guid.NewGuid().ToString();
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.ID = keyValue;
}
#endregion
#region 扩展字段
/// <summary>
/// 提交状态
/// </summary>
[NotMapped]
public bool? SubmitStatus { get; set; }
#endregion
}
}


+ 57
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_Certificate/PM_CertificateIBLL.cs Прегледај датотеку

@@ -0,0 +1,57 @@
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 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2020-11-07 14:08
/// 描 述:资格证获取情况
/// </summary>
public interface PM_CertificateIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<PM_CertificateEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取PM_Certificate表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
PM_CertificateEntity GetPM_CertificateEntity(string keyValue);

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<PM_CertificateEntity> GetPageStatisticList(Pagination pagination, string queryJson);
#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, PM_CertificateEntity entity);
void Submit(string keyValue, bool status);
#endregion

}
}

+ 267
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_Certificate/PM_CertificateService.cs Прегледај датотеку

@@ -0,0 +1,267 @@
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-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2020-11-07 14:08
/// 描 述:资格证获取情况
/// </summary>
public class PM_CertificateService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<PM_CertificateEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT t.*,e.CertificateStatus as SubmitStatus ");
strSql.Append(" FROM PM_Certificate t ");
strSql.Append(" left join EmpInfo e on t.EmpId=e.EmpId ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["TeacherQualificationsNo"].IsEmpty())
{
dp.Add("TeacherQualificationsNo", "%"+queryParam["TeacherQualificationsNo"].ToString() + "%", DbType.String);
strSql.Append(" AND t.TeacherQualificationsNo like @TeacherQualificationsNo ");
}
if (!queryParam["TeacherQualifications"].IsEmpty())
{
dp.Add("TeacherQualifications", queryParam["TeacherQualifications"].ToDate(), DbType.DateTime);
strSql.Append(" AND t.TeacherQualifications = @TeacherQualifications ");
}
if (!queryParam["OtherTeacherQualifications"].IsEmpty())
{
dp.Add("OtherTeacherQualifications", "%" + queryParam["OtherTeacherQualifications"].ToString() + "%", DbType.String);
strSql.Append(" AND t.OtherTeacherQualifications like @OtherTeacherQualifications ");
}
if (!queryParam["MandarinLevel"].IsEmpty())
{
dp.Add("MandarinLevel", queryParam["MandarinLevel"].ToDate(), DbType.DateTime);
strSql.Append(" AND t.MandarinLevel = @MandarinLevel ");
}
if (!queryParam["EmpId"].IsEmpty())
{
dp.Add("EmpId", queryParam["EmpId"].ToString(), DbType.String);
strSql.Append(" AND t.EmpId = @EmpId ");
}
return this.BaseRepository("CollegeMIS").FindList<PM_CertificateEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

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

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<PM_CertificateEntity> GetPageStatisticList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT t.* ");
strSql.Append(" FROM PM_Certificate t ");
strSql.Append(" left join EmpInfo e on t.EmpId=e.EmpId ");
strSql.Append(" WHERE 1=1 and t.IsSync=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["TeacherQualificationsNo"].IsEmpty())
{
dp.Add("TeacherQualificationsNo", "%" + queryParam["TeacherQualificationsNo"].ToString() + "%", DbType.String);
strSql.Append(" AND t.TeacherQualificationsNo like @TeacherQualificationsNo ");
}
if (!queryParam["TeacherQualifications"].IsEmpty())
{
dp.Add("TeacherQualifications", queryParam["TeacherQualifications"].ToDate(), DbType.DateTime);
strSql.Append(" AND t.TeacherQualifications = @TeacherQualifications ");
}
if (!queryParam["OtherTeacherQualifications"].IsEmpty())
{
dp.Add("OtherTeacherQualifications", "%" + queryParam["OtherTeacherQualifications"].ToString() + "%", DbType.String);
strSql.Append(" AND t.OtherTeacherQualifications like @OtherTeacherQualifications ");
}
if (!queryParam["MandarinLevel"].IsEmpty())
{
dp.Add("MandarinLevel", queryParam["MandarinLevel"].ToDate(), DbType.DateTime);
strSql.Append(" AND t.MandarinLevel = @MandarinLevel ");
}
if (!queryParam["EmpId"].IsEmpty())
{
dp.Add("EmpId", queryParam["EmpId"].ToString(), DbType.String);
strSql.Append(" AND t.EmpId = @EmpId ");
}
if (!queryParam["EmpName"].IsEmpty())
{
dp.Add("EmpName", "%" + queryParam["EmpName"].ToString() + "%", DbType.String);
strSql.Append(" AND e.EmpName like @EmpName ");
}
return this.BaseRepository("CollegeMIS").FindList<PM_CertificateEntity>(strSql.ToString(), dp, pagination);
}
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)
{
try
{
this.BaseRepository("CollegeMIS").Delete<PM_CertificateEntity>(t => t.ID == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void SaveEntity(string keyValue, PM_CertificateEntity entity)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
if (!string.IsNullOrEmpty(keyValue))
{
entity.Modify(keyValue);
db.Update(entity);
}
else
{
entity.Create();
db.Insert(entity);
}

//“是否同步”:选是,则更新教师表;
if (entity.IsSync.HasValue && entity.IsSync.Value == true)
{
db.ExecuteBySql("update EmpInfo set TeacherQualificationsNo='" + entity.TeacherQualificationsNo + "',TeacherQualifications='" + entity.TeacherQualifications + "',OtherTeacherQualifications='" + entity.OtherTeacherQualifications + "',MandarinLevel='"+entity.MandarinLevel + "' where EmpId='" + entity.EmpId + "' ");
}

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 Submit(string keyValue, bool status)
{
try
{
var empEntity = this.BaseRepository("CollegeMIS").FindEntity<EmpInfoEntity>(a => a.EmpId == keyValue);
if (empEntity != null)
{
empEntity.CertificateStatus = status;
this.BaseRepository("CollegeMIS").Update(empEntity);
}
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

}
}

+ 125
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SportEquipment/SportEquipmentBLL.cs Прегледај датотеку

@@ -0,0 +1,125 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-08 15:35
/// 描 述:体育器材库存管理
/// </summary>
public class SportEquipmentBLL : SportEquipmentIBLL
{
private SportEquipmentService sportEquipmentService = new SportEquipmentService();

#region 获取数据

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

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

#endregion

}
}

+ 96
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SportEquipment/SportEquipmentEntity.cs Прегледај датотеку

@@ -0,0 +1,96 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-08 15:35
/// 描 述:体育器材库存管理
/// </summary>
public class SportEquipmentEntity
{
#region 实体成员
/// <summary>
/// ID
/// </summary>
[Column("ID")]
public string ID { get; set; }
/// <summary>
/// 实训室名称
/// </summary>
[Column("TRAININGNAME")]
public string TrainingName { get; set; }
/// <summary>
/// 器材名称
/// </summary>
[Column("EQUIPMENTNAME")]
public string EquipmentName { get; set; }
/// <summary>
/// 器材型号
/// </summary>
[Column("EQUIPMENTMODEL")]
public string EquipmentModel { get; set; }
/// <summary>
/// Stock
/// </summary>
[Column("STOCK")]
public decimal? Stock { get; set; }
/// <summary>
/// Remark
/// </summary>
[Column("REMARK")]
public string Remark { get; set; }
/// <summary>
/// CreateTime
/// </summary>
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// CreateUser
/// </summary>
[Column("CREATEUSER")]
public string CreateUser { get; set; }
/// <summary>
/// UpdateTime
/// </summary>
[Column("UPDATETIME")]
public DateTime? UpdateTime { get; set; }
/// <summary>
/// UpdateUser
/// </summary>
[Column("UPDATEUSER")]
public string UpdateUser { get; set; }
#endregion

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


+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SportEquipment/SportEquipmentIBLL.cs Прегледај датотеку

@@ -0,0 +1,48 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-08 15:35
/// 描 述:体育器材库存管理
/// </summary>
public interface SportEquipmentIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<SportEquipmentEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取SportEquipment表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
SportEquipmentEntity GetSportEquipmentEntity(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, SportEquipmentEntity entity);
#endregion

}
}

+ 157
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SportEquipment/SportEquipmentService.cs Прегледај датотеку

@@ -0,0 +1,157 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-08 15:35
/// 描 述:体育器材库存管理
/// </summary>
public class SportEquipmentService : RepositoryFactory
{
#region 获取数据

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

/// <summary>
/// 获取SportEquipment表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public SportEquipmentEntity GetSportEquipmentEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<SportEquipmentEntity>(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<SportEquipmentEntity>(t=>t.ID == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

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

}
}

+ 208
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentHonor/StudentHonorBLL.cs Прегледај датотеку

@@ -0,0 +1,208 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-07 11:05
/// 描 述:学生荣誉奖励
/// </summary>
public class StudentHonorBLL : StudentHonorIBLL
{
private StudentHonorService studentHonorService = new StudentHonorService();

#region 获取数据

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

/// <summary>
/// 获取StudentHonor表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public StudentHonorEntity GetStudentHonorEntity(string keyValue)
{
try
{
return studentHonorService.GetStudentHonorEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <returns></returns>
public IEnumerable<StudentHonorEntity> GetList(string queryJson)
{
try
{
return studentHonorService.GetList(queryJson);

}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取主表实体数据
/// </summary>
/// <param name="processId">流程实例ID</param>
/// <returns></returns>
public StudentHonorEntity GetEntityByProcessId(string processId)
{
try
{
return studentHonorService.GetEntityByProcessId(processId);
}
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
{
studentHonorService.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, StudentHonorEntity entity)
{
try
{
studentHonorService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
public void ChangeStatusByProcessId(string processId, int status)
{
try
{
studentHonorService.ChangeStatusByProcessId(processId, status);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

public void ChangeStatusById(string keyValue, int status, string processId)
{
try
{
studentHonorService.ChangeStatusById(keyValue, status, processId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion

}
}

+ 138
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentHonor/StudentHonorEntity.cs Прегледај датотеку

@@ -0,0 +1,138 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-07 11:05
/// 描 述:学生荣誉奖励
/// </summary>
public class StudentHonorEntity
{
#region 实体成员
/// <summary>
/// Id
/// </summary>
[Column("ID")]
public string Id { get; set; }
/// <summary>
/// StuNo
/// </summary>
[Column("STUNO")]
public string StuNo { get; set; }
/// <summary>
/// StuName
/// </summary>
[Column("STUNAME")]
public string StuName { get; set; }
/// <summary>
/// DeptNo
/// </summary>
[Column("DEPTNO")]
public string DeptNo { get; set; }
/// <summary>
/// MajorNo
/// </summary>
[Column("MAJORNO")]
public string MajorNo { get; set; }
/// <summary>
/// ClassNo
/// </summary>
[Column("CLASSNO")]
public string ClassNo { get; set; }
/// <summary>
/// 荣誉名称
/// </summary>
[Column("SHNAME")]
public string SHName { get; set; }
/// <summary>
/// 荣誉级别
/// </summary>
[Column("SHLEVEL")]
public string SHLevel { get; set; }
/// <summary>
/// 荣誉获取时间
/// </summary>
[Column("SHTIME")]
public DateTime? SHTime { get; set; }
/// <summary>
/// 荣誉种类
/// </summary>
[Column("SHTYPE")]
public string SHType { get; set; }
/// <summary>
/// 分值
/// </summary>
[Column("SCORE")]
public decimal? Score { get; set; }
/// <summary>
/// 附件
/// </summary>
[Column("URL")]
public string Url { get; set; }
/// <summary>
/// 颁发单位
/// </summary>
[Column("UNIT")]
public string Unit { get; set; }
/// <summary>
/// CreateTime
/// </summary>
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// CreateUserId
/// </summary>
[Column("CREATEUSERID")]
public string CreateUserId { get; set; }
/// <summary>
/// processId
/// </summary>
[Column("PROCESSID")]
public string processId { get; set; }
/// <summary>
/// Status
/// </summary>
[Column("STATUS")]
public int? Status { get; set; }
/// <summary>
/// 学年
/// </summary>
[Column("ACADEMICYEARNO")]
public string AcademicYearNo { get; set; }
/// <summary>
/// 学期
/// </summary>
[Column("SEMESTER")]
public string Semester { get; set; }
#endregion

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


+ 63
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentHonor/StudentHonorIBLL.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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-07 11:05
/// 描 述:学生荣誉奖励
/// </summary>
public interface StudentHonorIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<StudentHonorEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取StudentHonor表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
StudentHonorEntity GetStudentHonorEntity(string keyValue);

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <returns></returns>
IEnumerable<StudentHonorEntity> GetList(string queryJson);
/// <summary>
/// 获取主表实体数据
/// </summary>
/// <param name="processId">流程实例ID</param>
/// <returns></returns>
StudentHonorEntity GetEntityByProcessId(string processId);
#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, StudentHonorEntity entity);
void ChangeStatusByProcessId(string processId, int status);
void ChangeStatusById(string keyValue, int status,string processId);
#endregion

}
}

+ 308
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentHonor/StudentHonorService.cs Прегледај датотеку

@@ -0,0 +1,308 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-07 11:05
/// 描 述:学生荣誉奖励
/// </summary>
public class StudentHonorService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<StudentHonorEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"
t.*
");
strSql.Append(" FROM StudentHonor t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["StuNo"].IsEmpty())
{
dp.Add("StuNo", "%" + queryParam["StuNo"].ToString() + "%", DbType.String);
strSql.Append(" AND t.StuNo Like @StuNo ");
}
if (!queryParam["StuName"].IsEmpty())
{
dp.Add("StuName", "%" + queryParam["StuName"].ToString() + "%", DbType.String);
strSql.Append(" AND t.StuName Like @StuName ");
}
if (!queryParam["DeptNo"].IsEmpty())
{
dp.Add("DeptNo", queryParam["DeptNo"].ToString(), DbType.String);
strSql.Append(" AND t.DeptNo = @DeptNo ");
}
if (!queryParam["MajorNo"].IsEmpty())
{
dp.Add("MajorNo", queryParam["MajorNo"].ToString(), DbType.String);
strSql.Append(" AND t.MajorNo = @MajorNo ");
}
if (!queryParam["ClassNo"].IsEmpty())
{
dp.Add("ClassNo", queryParam["ClassNo"].ToString(), DbType.String);
strSql.Append(" AND t.ClassNo = @ClassNo ");
}
if (!queryParam["SHName"].IsEmpty())
{
dp.Add("SHName", "%" + queryParam["SHName"].ToString() + "%", DbType.String);
strSql.Append(" AND t.SHName Like @SHName ");
}
if (!queryParam["SHLevel"].IsEmpty())
{
dp.Add("SHLevel", "%" + queryParam["SHLevel"].ToString() + "%", DbType.String);
strSql.Append(" AND t.SHLevel Like @SHLevel ");
}
if (!queryParam["SHTime"].IsEmpty())
{
dp.Add("SHTime", queryParam["SHTime"].ToDate(), DbType.DateTime);
strSql.Append(" AND t.SHTime = @SHTime ");
}
if (!queryParam["SHType"].IsEmpty())
{
dp.Add("SHType", "%" + queryParam["SHType"].ToString() + "%", DbType.String);
strSql.Append(" AND t.SHType Like @SHType ");
}
if (!queryParam["Unit"].IsEmpty())
{
dp.Add("Unit", "%" + queryParam["Unit"].ToString() + "%", DbType.String);
strSql.Append(" AND t.Unit Like @Unit ");
}
return this.BaseRepository("CollegeMIS").FindList<StudentHonorEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

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

/// <summary>
/// 获取主表实体数据
/// </summary>
/// <param name="processId">流程实例ID</param>
/// <returns></returns>
public StudentHonorEntity GetEntityByProcessId(string processId)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<StudentHonorEntity>(t => t.processId == processId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <returns></returns>
public IEnumerable<StudentHonorEntity> GetList(string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT t.* ");
strSql.Append(" FROM StudentHonor t ");
strSql.Append(" WHERE 1=1 and t.Status=2 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["StuNo"].IsEmpty())
{
dp.Add("StuNo", queryParam["StuNo"].ToString(), DbType.String);
strSql.Append(" AND t.StuNo = @StuNo ");
}
if (!queryParam["StuName"].IsEmpty())
{
dp.Add("StuName", "%" + queryParam["StuName"].ToString() + "%", DbType.String);
strSql.Append(" AND t.StuName Like @StuName ");
}
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 ");
}

return this.BaseRepository("CollegeMIS").FindList<StudentHonorEntity>(strSql.ToString(), dp);

}
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<StudentHonorEntity>(t => t.Id == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

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

public void ChangeStatusByProcessId(string processId, int status)
{
try
{
this.BaseRepository("CollegeMIS").ExecuteBySql($"update StudentHonor set Status='{status}' where processId='{processId}'");
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

public void ChangeStatusById(string keyValue, int status, string processId)
{
try
{
this.BaseRepository("CollegeMIS").ExecuteBySql($"update StudentHonor set Status='{status}',processId='{processId}' where Id='{keyValue}'");
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
#endregion

}
}

+ 148
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleBLL.cs Прегледај датотеку

@@ -0,0 +1,148 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-07 11:54
/// 描 述:工资条
/// </summary>
public class WageScheduleBLL : WageScheduleIBLL
{
private WageScheduleService wageScheduleService = new WageScheduleService();

#region 获取数据

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

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

#endregion

}
}

+ 302
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleEntity.cs Прегледај датотеку

@@ -0,0 +1,302 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-07 11:54
/// 描 述:工资条
/// </summary>
public class WageScheduleEntity
{
#region 实体成员
/// <summary>
/// Id
/// </summary>
/// <returns></returns>
[Column("ID")]
public string Id { get; set; }
/// <summary>
/// 序号
/// </summary>
/// <returns></returns>
[Column("NO")]
public string No { get; set; }
/// <summary>
/// 姓名
/// </summary>
/// <returns></returns>
[Column("EMPNAME")]
public string EmpName { get; set; }
/// <summary>
/// 账号/身份证号
/// </summary>
/// <returns></returns>
[Column("IDCARDNO")]
public string IdCardNo { get; set; }
/// <summary>
/// 人员类别
/// </summary>
/// <returns></returns>
[Column("PEOPLETYPE")]
public string PeopleType { get; set; }
/// <summary>
/// 岗位等级
/// </summary>
/// <returns></returns>
[Column("POSTTYPE")]
public string PostType { get; set; }
/// <summary>
/// 薪级
/// </summary>
/// <returns></returns>
[Column("PAYGRADE")]
public string PayGrade { get; set; }
/// <summary>
/// 应发合计
/// </summary>
/// <returns></returns>
[Column("TOTALGROSSPAY")]
public string TotalGrossPay { get; set; }
/// <summary>
/// 岗位工资
/// </summary>
/// <returns></returns>
[Column("POSTWAGE")]
public decimal? PostWage { get; set; }
/// <summary>
/// 薪级工资
/// </summary>
/// <returns></returns>
[Column("PAYGRADEWAGE")]
public decimal? PayGradeWage { get; set; }
/// <summary>
/// 百分之十
/// </summary>
/// <returns></returns>
[Column("TENPERCENT")]
public decimal? TenPercent { get; set; }
/// <summary>
/// 基本工资小计
/// </summary>
/// <returns></returns>
[Column("BASEPAY")]
public decimal? BasePay { get; set; }
/// <summary>
/// 艰边津贴
/// </summary>
/// <returns></returns>
[Column("ROUGHEDGEALLOWANCE")]
public decimal? RoughEdgeAllowance { get; set; }
/// <summary>
/// 民族津贴
/// </summary>
/// <returns></returns>
[Column("NATIONALLOWANCE")]
public decimal? NationAllowance { get; set; }
/// <summary>
/// 教师津贴
/// </summary>
/// <returns></returns>
[Column("TEACHALLOWANCE")]
public decimal? TeachAllowance { get; set; }
/// <summary>
/// 津贴补贴小计
/// </summary>
/// <returns></returns>
[Column("SUBSIDIESALLOWANCES")]
public decimal? SubsidiesAllowances { get; set; }
/// <summary>
/// 基础性绩效
/// </summary>
/// <returns></returns>
[Column("BASICSPERFORMANCE")]
public decimal? BasicsPerformance { get; set; }
/// <summary>
/// 女职工卫生费
/// </summary>
/// <returns></returns>
[Column("GIRLSTAFFSANITATION")]
public decimal? GirlStaffSanitation { get; set; }
/// <summary>
/// 交通补贴
/// </summary>
/// <returns></returns>
[Column("TRANSPORTATION")]
public decimal? Transportation { get; set; }
/// <summary>
/// 物业补贴
/// </summary>
/// <returns></returns>
[Column("REALESTATE")]
public decimal? RealeState { get; set; }
/// <summary>
/// 工改保留补贴
/// </summary>
/// <returns></returns>
[Column("WORKKEEP")]
public decimal? WorkKeep { get; set; }
/// <summary>
/// 改革性补贴小计
/// </summary>
/// <returns></returns>
[Column("REFORMSUBSIDYSUM")]
public decimal? ReformSubsidySum { get; set; }
/// <summary>
/// 住房补贴
/// </summary>
/// <returns></returns>
[Column("HOUSINGALLOWANCE")]
public decimal? HousingAllowance { get; set; }
/// <summary>
/// 住房公积金
/// </summary>
/// <returns></returns>
[Column("HOUSINGFUNDALLOWANCE")]
public decimal? HousingFundAllowance { get; set; }
/// <summary>
/// 特级教师津贴和乡镇补贴
/// </summary>
/// <returns></returns>
[Column("TEACHERANDTOWN")]
public decimal? TeacherAndTown { get; set; }
/// <summary>
/// 扣款小计
/// </summary>
/// <returns></returns>
[Column("DEDUCTIONSSUBTOTAL")]
public decimal? DeductionsSubtotal { get; set; }
/// <summary>
/// 公积金
/// </summary>
/// <returns></returns>
[Column("ACCUMULATIONFUND")]
public decimal? AccumulationFund { get; set; }
/// <summary>
/// 工会工费
/// </summary>
/// <returns></returns>
[Column("LABORUNIONWAGE")]
public decimal? LaborUnionWage { get; set; }
/// <summary>
/// 个人所得税
/// </summary>
/// <returns></returns>
[Column("PERSONALINCOMETAX")]
public decimal? PersonalIncomeTax { get; set; }
/// <summary>
/// 养老保险
/// </summary>
/// <returns></returns>
[Column("ENDOWMENTINSURANCE")]
public decimal? EndowmentInsurance { get; set; }
/// <summary>
/// 职业年金
/// </summary>
/// <returns></returns>
[Column("OCCUPATIONALANNUITIES")]
public decimal? OccupationalAnnuities { get; set; }
/// <summary>
/// 医疗保险
/// </summary>
/// <returns></returns>
[Column("MEDICALINSURANCE")]
public decimal? MedicalInsurance { get; set; }
/// <summary>
/// 失业保险
/// </summary>
/// <returns></returns>
[Column("UNEMPLOYMENTINSURANCE")]
public decimal? UnemploymentInsurance { get; set; }
/// <summary>
/// 其他
/// </summary>
/// <returns></returns>
[Column("OTHER")]
public decimal? Other { get; set; }
/// <summary>
/// 财政直达
/// </summary>
/// <returns></returns>
[Column("FISCALDIRECT")]
public decimal? FiscalDirect { get; set; }
/// <summary>
/// 银行代扣
/// </summary>
/// <returns></returns>
[Column("BANKWITHHOLDING")]
public decimal? BankWithholding { get; set; }
/// <summary>
/// 实发合计
/// </summary>
/// <returns></returns>
[Column("NETCOMBINED")]
public decimal? NetCombined { get; set; }
/// <summary>
/// 工资卡号
/// </summary>
/// <returns></returns>
[Column("WAGECARDNO")]
public string WageCardNo { get; set; }
/// <summary>
/// CreateUser
/// </summary>
/// <returns></returns>
[Column("CREATEUSER")]
public string CreateUser { get; set; }
/// <summary>
/// CreateTime
/// </summary>
/// <returns></returns>
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// UpdateUser
/// </summary>
/// <returns></returns>
[Column("UPDATEUSER")]
public string UpdateUser { get; set; }
/// <summary>
/// UpdateTime
/// </summary>
/// <returns></returns>
[Column("UPDATETIME")]
public DateTime? UpdateTime { get; set; }
/// <summary>
/// 发放月份
/// </summary>
/// <returns></returns>
[Column("ISSUEMONTH")]
public string IssueMonth { get; set; }
/// <summary>
/// 发放年份
/// </summary>
/// <returns></returns>
[Column("ISSUEYEAR")]
public string IssueYear { get; set; }
#endregion

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


+ 55
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleIBLL.cs Прегледај датотеку

@@ -0,0 +1,55 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-07 11:54
/// 描 述:工资条
/// </summary>
public interface WageScheduleIBLL
{
#region 获取数据

/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<WageScheduleEntity> GetList( string queryJson );
/// <summary>
/// 获取列表分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<WageScheduleEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
WageScheduleEntity 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, WageScheduleEntity entity);
#endregion

}
}

+ 198
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleService.cs Прегледај датотеку

@@ -0,0 +1,198 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-07 11:54
/// 描 述:工资条
/// </summary>
public class WageScheduleService : RepositoryFactory
{

#region 获取数据

/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="queryJson">条件参数</param>
/// <returns></returns>
public IEnumerable<WageScheduleEntity> 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("t.*");
strSql.Append(" FROM WageSchedule t ");
return this.BaseRepository("CollegeMIS").FindList<WageScheduleEntity>(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<WageScheduleEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT t.* FROM WageSchedule t where 1=1 ");
var userInfo = LoginUserInfo.Get();
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (userInfo.Description != "管理员")
{
strSql.Append(" AND t.IdCardNo = " + userInfo.IdentityCardNo + " ");
}
if (!queryParam["EmpName"].IsEmpty())
{
dp.Add("EmpName", "%" + queryParam["EmpName"].ToString() + "%", DbType.String);
strSql.Append(" AND t.EmpName like @EmpName ");
}
if (!queryParam["PeopleType"].IsEmpty())
{
dp.Add("PeopleType", "%" + queryParam["PeopleType"].ToString() + "%", DbType.String);
strSql.Append(" AND t.PeopleType like @PeopleType ");
}
if (!queryParam["IssueMonth"].IsEmpty())
{
dp.Add("IssueMonth", queryParam["IssueMonth"].ToString(), DbType.String);
strSql.Append(" AND t.IssueMonth = IssueMonth ");
}
if (!queryParam["IssueYear"].IsEmpty())
{
dp.Add("IssueYear", queryParam["IssueYear"].ToString(), DbType.String);
strSql.Append(" AND t.IssueYear = IssueYear ");
}
return this.BaseRepository("CollegeMIS").FindList<WageScheduleEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public WageScheduleEntity GetEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<WageScheduleEntity>(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<WageScheduleEntity>(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, WageScheduleEntity 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

}
}

+ 16
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj Прегледај датотеку

@@ -224,6 +224,10 @@
<Compile Include="EducationalAdministration\OpenLessonPlan\OpenLessonPlanBLL.cs" />
<Compile Include="EducationalAdministration\OpenLessonPlan\OpenLessonPlanIBLL.cs" />
<Compile Include="EducationalAdministration\OpenLessonPlan\OpenLessonPlanService.cs" />
<Compile Include="EducationalAdministration\PM_Certificate\PM_CertificateBLL.cs" />
<Compile Include="EducationalAdministration\PM_Certificate\PM_CertificateEntity.cs" />
<Compile Include="EducationalAdministration\PM_Certificate\PM_CertificateIBLL.cs" />
<Compile Include="EducationalAdministration\PM_Certificate\PM_CertificateService.cs" />
<Compile Include="EducationalAdministration\PM_YearAssess\PM_YearAssessBLL.cs" />
<Compile Include="EducationalAdministration\PM_YearAssess\PM_YearAssessEntity.cs" />
<Compile Include="EducationalAdministration\PM_YearAssess\PM_YearAssessIBLL.cs" />
@@ -261,6 +265,10 @@
<Compile Include="EducationalAdministration\ScoreStatistics\ScoreStatisticsIBLL.cs" />
<Compile Include="EducationalAdministration\ScoreStatistics\ScoreStatisticsService.cs" />
<Compile Include="EducationalAdministration\SignUpHelper.cs" />
<Compile Include="EducationalAdministration\StudentHonor\StudentHonorBLL.cs" />
<Compile Include="EducationalAdministration\StudentHonor\StudentHonorEntity.cs" />
<Compile Include="EducationalAdministration\StudentHonor\StudentHonorIBLL.cs" />
<Compile Include="EducationalAdministration\StudentHonor\StudentHonorService.cs" />
<Compile Include="EducationalAdministration\StuDisciplineManagement\StuDisciplineManagementBLL.cs" />
<Compile Include="EducationalAdministration\StuDisciplineManagement\StuDisciplineManagementEntity.cs" />
<Compile Include="EducationalAdministration\StuDisciplineManagement\StuDisciplineManagementIBLL.cs" />
@@ -1963,6 +1971,14 @@
<Compile Include="EducationalAdministration\WelfarePosition\WelfarePositionService.cs" />
<Compile Include="EducationalAdministration\WelfarePosition\WelfarePositionIBLL.cs" />
<Compile Include="EducationalAdministration\WelfarePosition\WelfarePositionBLL.cs" />
<Compile Include="EducationalAdministration\WageSchedule\WageScheduleEntity.cs" />
<Compile Include="EducationalAdministration\WageSchedule\WageScheduleService.cs" />
<Compile Include="EducationalAdministration\WageSchedule\WageScheduleIBLL.cs" />
<Compile Include="EducationalAdministration\WageSchedule\WageScheduleBLL.cs" />
<Compile Include="EducationalAdministration\SportEquipment\SportEquipmentEntity.cs" />
<Compile Include="EducationalAdministration\SportEquipment\SportEquipmentService.cs" />
<Compile Include="EducationalAdministration\SportEquipment\SportEquipmentBLL.cs" />
<Compile Include="EducationalAdministration\SportEquipment\SportEquipmentIBLL.cs" />
<Compile Include="AssetManagementSystem\FundsApplyDetail\FundsApplyDetailEntity.cs" />
<Compile Include="AssetManagementSystem\FundsApplyDetail\FundsApplyDetailService.cs" />
<Compile Include="AssetManagementSystem\FundsApplyDetail\FundsApplyDetailBLL.cs" />


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Learun.Application.WorkFlow.csproj Прегледај датотеку

@@ -97,6 +97,7 @@
<Compile Include="NodeMethod\ArrangeLessonTermAttemperMethod.cs" />
<Compile Include="NodeMethod\ADR_AddApplyMethod.cs" />
<Compile Include="NodeMethod\Ass_AcceptanceMethod.cs" />
<Compile Include="NodeMethod\StudentHonorMethod.cs" />
<Compile Include="NodeMethod\StudentCertificateMethod.cs" />
<Compile Include="NodeMethod\FD_PayManageMethod.cs" />
<Compile Include="NodeMethod\Ass_ReceiveMethod.cs" />


+ 27
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/StudentHonorMethod.cs Прегледај датотеку

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Learun.Application.TwoDevelopment.EducationalAdministration;

namespace Learun.Application.WorkFlow
{
public class StudentHonorMethod : IWorkFlowMethod
{
StudentHonorIBLL asset = new StudentHonorBLL();

public void Execute(WfMethodParameter parameter)
{
if (parameter.code == "agree")
{
asset.ChangeStatusByProcessId(parameter.processId, 2);
}
else
{
asset.ChangeStatusByProcessId(parameter.processId, 0);
}
}
}
}

Loading…
Откажи
Сачувај