Browse Source

处分违纪

yanshi
edy 3 years ago
parent
commit
689c122eb0
28 changed files with 1915 additions and 19 deletions
  1. +88
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuPunishmentController.cs
  2. +38
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/ClassIndex.cshtml
  3. +103
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/ClassIndex.js
  4. +12
    -10
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/Form.cshtml
  5. +6
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/Form.js
  6. +25
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/Index.cshtml
  7. +102
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/Index.js
  8. +38
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/MajorIndex.cshtml
  9. +131
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/MajorIndex.js
  10. +42
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/SchoolIndex.cshtml
  11. +132
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/SchoolIndex.js
  12. +128
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FD_BudgetFileController.cs
  13. +31
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_BudgetFile/Form.cshtml
  14. +76
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_BudgetFile/Form.js
  15. +45
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_BudgetFile/Index.cshtml
  16. +173
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_BudgetFile/Index.js
  17. +11
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  18. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  19. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/ReceiveSendFeeManagement/FD_BudgetFileMap.cs
  20. +72
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuPunishment/StuPunishmentBLL.cs
  21. +17
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuPunishment/StuPunishmentEntity.cs
  22. +22
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuPunishment/StuPunishmentIBLL.cs
  23. +163
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuPunishment/StuPunishmentService.cs
  24. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
  25. +125
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_BudgetFile/FD_BudgetFileBLL.cs
  26. +87
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_BudgetFile/FD_BudgetFileEntity.cs
  27. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_BudgetFile/FD_BudgetFileIBLL.cs
  28. +166
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_BudgetFile/FD_BudgetFileService.cs

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

@@ -37,6 +37,33 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult ClassIndex()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult MajorIndex()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult SchoolIndex()
{
return View();
}
#endregion

#region 获取数据
@@ -76,6 +103,67 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
};
return Success(jsonData);
}

/// <summary>
/// 班級統計
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult ClassList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = stuPunishmentIBLL.ClassList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 專業統計
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult MajorList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = stuPunishmentIBLL.MajorList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 全校統計
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult SchoolList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = stuPunishmentIBLL.SchoolList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
#endregion

#region 提交数据


+ 38
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/ClassIndex.cshtml View File

@@ -0,0 +1,38 @@
@{
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="datesearch"></div>
</div>
<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="ClassNo"></div>
</div>
@*<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">处分类型</div>
<input id="PunishNo" 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>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuPunishment/ClassIndex.js")

+ 103
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/ClassIndex.js View File

@@ -0,0 +1,103 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2019-06-17 14:54
* 描 述:学生处分管理
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var startTime;
var endTime;
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.initGird();
page.bind();
},
bind: function () {
// 时间搜索框
$('#datesearch').lrdate({
dfdata: [
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }
],
// 月
mShow: false,
premShow: false,
// 季度
jShow: false,
prejShow: false,
// 年
ysShow: false,
yxShow: false,
preyShow: false,
yShow: false,
// 默认
dfvalue: '1',
selectfn: function (begin, end) {
startTime = begin;
endTime = end;
page.search();
}
});
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 100, 400);
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
$('#ClassNo').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
//param: { strWhere: " 1=1 and deptno in (" + DeptNo + ")" },
value: "classno",
text: "classname",
allowSearch: false,
maxHeight: 200
});
$("#PunishNo").lrDataItemSelect({ code: 'Punishment' });
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuPunishment/ClassList',
headData: [
{ label: "学年", name: "AcademicYearNo", width: 300, align: "left"},
{ label: "学期", name: "Semester", width: 300, align: "left" },
{
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: "PunishNo", width: 200, align: "left" },
{ label: "次數", name: "G", width: 300, align: "left" },
],
mainId: 'Id',
isPage: true
});
//page.search();
},
search: function (param) {
param = param || {};
param.StartTime = startTime;
param.EndTime = endTime;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.search();
page.init();
}

+ 12
- 10
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/Form.cshtml View File

@@ -3,31 +3,33 @@
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap">
<div class="col-xs-12 lr-form-item" data-table="StuPunishment" >
<div class="col-xs-12 lr-form-item" data-table="StuPunishment">
<div class="lr-form-item-title">学号<font face="宋体">*</font></div>
<div id="StuNo" isvalid="yes" checkexpession="NotNull" ></div>
<div id="StuNo" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StuPunishment" >
<div class="col-xs-12 lr-form-item" data-table="StuPunishment">
<div class="lr-form-item-title">姓名<font face="宋体">*</font></div>
<input id="StuName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
<input id="MajorNo" type="text" class="form-control" style="display: none" />
<input id="ClassNo" type="text" class="form-control" style="display: none" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StuPunishment" >
<div class="col-xs-12 lr-form-item" data-table="StuPunishment">
<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="StuPunishment" >
<div class="col-xs-12 lr-form-item" data-table="StuPunishment">
<div class="lr-form-item-title">学期<font face="宋体">*</font></div>
<div id="Semester" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StuPunishment">
<div class="lr-form-item-title">处分名称<font face="宋体">*</font></div>
<div id="PunishNo" isvalid="yes" checkexpession="NotNull" ></div>
<div id="PunishNo" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StuPunishment" id="otherpunishname" style="display: none;">
<div class="col-xs-12 lr-form-item" data-table="StuPunishment" id="otherpunishname" style="display: none;">
<div class="lr-form-item-title">处分名称</div>
<input id="PunishName" type="text" class="form-control"/>
<input id="PunishName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StuPunishment" >
<div class="col-xs-12 lr-form-item" data-table="StuPunishment">
<div class="lr-form-item-title">处分原因<font face="宋体">*</font></div>
<input id="PunishReason" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
@@ -35,7 +37,7 @@
<div class="lr-form-item-title">处分日期<font face="宋体">*</font></div>
<input id="PunishDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy/MM/dd' })" isvalid="yes" checkexpession="NotNull" value="@Learun.Util.Time.GetToday("yyyy/MM/dd")" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StuPunishment" >
<div class="col-xs-12 lr-form-item" data-table="StuPunishment">
<div class="lr-form-item-title">处分文号<font face="宋体">*</font></div>
<input id="FileNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>


+ 6
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/Form.js View File

@@ -61,7 +61,7 @@ var bootstrap = function ($, learun) {
}
},
{
label: "专业", name: "majorno", width: 100, align: "left",
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',
@@ -90,8 +90,12 @@ var bootstrap = function ($, learun) {
],
select: function (item) {
$("#StuName").val(item.stuname);
$("#MajorNo").val(item.majorno);
$("#ClassNo").val(item.classno);
console.log($("#StuName").val());
console.log($("#MajorNo").val());
console.log($("#ClassNo").val());
}

});
$("#PunishNo").lrDataItemSelect({
code: 'Punishment', select: function (item) {


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

@@ -7,6 +7,31 @@
<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="datesearch"></div>
</div>
<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="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-12 lr-form-item">
<div class="lr-form-item-title">处分类型</div>
<input id="PunishNo" type="text" class="form-control"/>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">姓名</div>
<input id="StuNo" type="text" class="form-control"/>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">


+ 102
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/Index.js View File

@@ -7,16 +7,85 @@
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var startTime;
var endTime;
var page = {
init: function () {
page.initGird();
page.bind();
},
bind: function () {

$('#MajorNo').lrDataSourceSelect({
code: 'CdDeptInfo',
value: 'deptno',
text: 'deptname',
maxHeight: 200,
select: function (item) {
var DeptNo = $("#MajorNo").lrselectGet();
if (DeptNo != null && DeptNo != "" && DeptNo != undefined) {
$('#ClassNo').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
param: { strWhere: " 1=1 and deptno in (" + DeptNo + ")" },
value: "classno",
text: "classname",
allowSearch: false,
maxHeight: 200,
select: function (item) {
var ClassNo = $("#ClassNo").lrselectGet();
if (ClassNo != null && ClassNo != "" && ClassNo != undefined) {
$('#StuNo').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList',
param: { strWhere: " 1=1 and classno in (" + ClassNo + ")" },
value: "stuid",
text: "stuname",
maxHeight: 200,
allowSearch: true
});
}
}
});
} else {
$("#ClassNo").lrselect();
}
}
});
$("#ClassNo").lrselect();
// 时间搜索框
$('#datesearch').lrdate({
dfdata: [
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }
],
// 月
mShow: false,
premShow: false,
// 季度
jShow: false,
prejShow: false,
// 年
ysShow: false,
yxShow: false,
preyShow: false,
yShow: false,
// 默认
dfvalue: '1',
selectfn: function (begin, end) {
startTime = begin;
endTime = end;
page.search();
}
});
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
$("#PunishNo").lrDataItemSelect({ code: 'Punishment' });
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
@@ -104,25 +173,53 @@ var bootstrap = function ($, learun) {
{ label: "学号", name: "StuNo", width: 100, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{
label: "处分名称", name: "PunishName", width: 100, align: "left"
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: "PunishName", width: 200, align: "left"
},
{ label: "处分原因", name: "PunishReason", width: 100, align: "left" },
{ label: "处分日期", name: "PunishDate", width: 100, align: "left" },
{ label: "处分原因", name: "PunishReason", width: 300, align: "left" },
{ label: "处分日期", name: "PunishDate", width: 180, align: "left" },
{ label: "处分文号", name: "FileNo", width: 100, align: "left" },
{
label: "是否解除处分", name: "IsCancelPunish", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue == true ? "是" : "否";
}
},
{ label: "解除处分日期", name: "CancelPunishDate", width: 100, align: "left" },
{ label: "解除处分日期", name: "CancelPunishDate", width: 180, align: "left" },
],
mainId: 'Id',
isPage: true
});
page.search();
//page.search();
},
search: function (param) {
param = param || {};
param.StartTime = startTime;
param.EndTime = endTime;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};


+ 38
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/MajorIndex.cshtml View File

@@ -0,0 +1,38 @@
@{
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="datesearch"></div>
</div>
<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="MajorNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">班级</div>
<div id="ClassNo"></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/StuPunishment/MajorIndex.js")

+ 131
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/MajorIndex.js View File

@@ -0,0 +1,131 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2019-06-17 14:54
* 描 述:学生处分管理
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var startTime;
var endTime;
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.initGird();
page.bind();
},
bind: function () {
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 时间搜索框
$('#datesearch').lrdate({
dfdata: [
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }
],
// 月
mShow: false,
premShow: false,
// 季度
jShow: false,
prejShow: false,
// 年
ysShow: false,
yxShow: false,
preyShow: false,
yShow: false,
// 默认
dfvalue: '1',
selectfn: function (begin, end) {
startTime = begin;
endTime = end;
page.search();
}
});
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);

$('#MajorNo').lrDataSourceSelect({
code: 'CdDeptInfo',
value: 'deptno',
text: 'deptname',
maxHeight: 200,
select: function (item) {
var DeptNo = $("#MajorNo").lrselectGet();
if (DeptNo != null && DeptNo != "" && DeptNo != undefined) {
$('#ClassNo').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
param: { strWhere: " 1=1 and deptno in (" + DeptNo + ")" },
value: "classno",
text: "classname",
allowSearch: false,
maxHeight: 200
});
} else {
$("#ClassNo").lrselect();
}
}
});
$("#ClassNo").lrselect();
$("#PunishNo").lrDataItemSelect({ code: 'Punishment' });
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuPunishment/MajorList',
headData: [
{ label: "学年", name: "AcademicYearNo", width: 300, align: "left" },
{ label: "学期", name: "Semester", width: 300, align: "left" },
{
label: "专业", name: "MajorNo", width: 300, 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: "PunishNo", width: 200, align: "left" },
{ label: "次數", name: "G", width: 300, align: "left" },
],
mainId: 'Id',
isPage: true
});
//page.search();
},
search: function (param) {
param = param || {};
param.StartTime = startTime;
param.EndTime = endTime;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.search();
page.init();
}

+ 42
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/SchoolIndex.cshtml View File

@@ -0,0 +1,42 @@
@{
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="datesearch"></div>
</div>
<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="MajorNo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">处分类型</div>
<div id="PunishNo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">班级</div>
<div id="ClassNo"></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/StuPunishment/SchoolIndex.js")

+ 132
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/SchoolIndex.js View File

@@ -0,0 +1,132 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2019-06-17 14:54
* 描 述:学生处分管理
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var startTime;
var endTime;
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.initGird();
page.bind();
},
bind: function () {
// 时间搜索框
$('#datesearch').lrdate({
dfdata: [
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }
],
// 月
mShow: false,
premShow: false,
// 季度
jShow: false,
prejShow: false,
// 年
ysShow: false,
yxShow: false,
preyShow: false,
yShow: false,
// 默认
dfvalue: '1',
selectfn: function (begin, end) {
startTime = begin;
endTime = end;
page.search();
}
});
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);

$('#MajorNo').lrDataSourceSelect({
code: 'CdDeptInfo',
value: 'deptno',
text: 'deptname',
maxHeight: 200,
select: function (item) {
var DeptNo = $("#MajorNo").lrselectGet();
if (DeptNo != null && DeptNo != "" && DeptNo != undefined) {
$('#ClassNo').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
param: { strWhere: " 1=1 and deptno in (" + DeptNo + ")" },
value: "classno",
text: "classname",
allowSearch: false,
maxHeight: 200
});
} else {
$("#ClassNo").lrselect();
}
}
});
$("#ClassNo").lrselect();
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
$("#PunishNo").lrDataItemSelect({ code: 'Punishment' });
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuPunishment/SchoolList',
headData: [
{ label: "学年", name: "AcademicYearNo", width: 300, align: "left" },
{ label: "学期", name: "Semester", width: 300, align: "left" },
{
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: "PunishNo", width: 200, align: "left" },
{ label: "次數", name: "G", width: 200, align: "left" },
],
mainId: 'Id',
isPage: true
});
//page.search();
},
search: function (param) {
param = param || {};
param.StartTime = startTime;
param.EndTime = endTime;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
//page.search();
};
page.search();
page.init();
}

+ 128
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FD_BudgetFileController.cs View File

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

namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-08-11 11:57
/// 描 述:基础信息采集
/// </summary>
public class FD_BudgetFileController : MvcControllerBase
{
private FD_BudgetFileIBLL fD_BudgetFileIBLL = new FD_BudgetFileBLL();

#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>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetAcademicYear()
{
var data = WebHelper.GenerateNearByAcademicTwo();
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 = fD_BudgetFileIBLL.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 FD_BudgetFileData = fD_BudgetFileIBLL.GetFD_BudgetFileEntity( keyValue );
var jsonData = new {
FD_BudgetFile = FD_BudgetFileData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
fD_BudgetFileIBLL.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)
{
FD_BudgetFileEntity entity = strEntity.ToObject<FD_BudgetFileEntity>();
fD_BudgetFileIBLL.SaveEntity(keyValue,entity);
if (string.IsNullOrEmpty(keyValue))
{
}
return Success("保存成功!");
}
#endregion

}
}

+ 31
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_BudgetFile/Form.cshtml View File

@@ -0,0 +1,31 @@
@{
ViewBag.Title = "基础信息采集";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="FD_BudgetFile" >
<div class="lr-form-item-title">年度</div>
<div id="YearNo" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="FD_BudgetFile" >
<div class="lr-form-item-title">月份</div>
<div id="MouthNo" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="FD_BudgetFile" >
<div class="lr-form-item-title">接收部门</div>
<div id="DeptId" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="FD_BudgetFile" >
<div class="lr-form-item-title">材料名称</div>
<input id="FileName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="FD_BudgetFile" >
<div class="lr-form-item-title">附件上传</div>
<div id="Url" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="FD_BudgetFile" >
<div class="lr-form-item-title">说明</div>
<textarea id="Remark" class="form-control" style="height:100px;" ></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/ReceiveSendFeeManagement/Views/FD_BudgetFile/Form.js")

+ 76
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_BudgetFile/Form.js View File

@@ -0,0 +1,76 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-08-11 11:57
* 描 述:基础信息采集
*/
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 () {
//年度
$('#YearNo').lrselect({
placeholder: "请选择年度",
allowSearch: true,
url: top.$.rootUrl + '/ReceiveSendFeeManagement/FD_BudgetFile/GetAcademicYear',
value: 'value',
text: 'text'
});
$('#MouthNo').lrDataItemSelect({ code: 'MPMonth' });
$('#DeptId').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name', maxHeight: 200 });
//$('#MPDepartment').lrselect({
// type: 'tree',
// // 展开最大高度
// maxHeight: 200,
// // 是否允许搜索
// allowSearch: true,
// // 访问数据接口地址
// url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
// select: function (val) {
// var departmentIds = val.id;
// $('#MPReceiveUser').lrselectRefresh({
// url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentIds?departmentId=' + departmentIds
// })
// }
//});
$('#Url').lrUploader();
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/ReceiveSendFeeManagement/FD_BudgetFile/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 + '/ReceiveSendFeeManagement/FD_BudgetFile/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

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

@@ -0,0 +1,45 @@
@{
ViewBag.Title = "基础信息采集";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">年度</div>
<div id="YearNo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">月份</div>
<div id="MouthNo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">材料名称</div>
<input id="FileName" 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>
<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/ReceiveSendFeeManagement/Views/FD_BudgetFile/Index.js")

+ 173
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_BudgetFile/Index.js View File

@@ -0,0 +1,173 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-08-11 11:57
* 描 述:基础信息采集
*/
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);
//年度
$('#YearNo').lrselect({
placeholder: "请选择年度",
allowSearch: true,
url: top.$.rootUrl + '/ReceiveSendFeeManagement/FD_BudgetFile/GetAcademicYear',
value: 'value',
text: 'text'
});
$('#MouthNo').lrDataItemSelect({ code: 'MPMonth' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/ReceiveSendFeeManagement/FD_BudgetFile/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 + '/ReceiveSendFeeManagement/FD_BudgetFile/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 + '/ReceiveSendFeeManagement/FD_BudgetFile/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 打印
$('#lr_print').on('click', function () {
$('#gridtable').jqprintTable();
});

//$('.fileurl').on('click', function () {
// console.log("下载!!!");
// var id = $(this).id;
// top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: id, __RequestVerificationToken: top.$.lrToken }, method: 'POST' });
//});
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/ReceiveSendFeeManagement/FD_BudgetFile/GetPageList',
headData: [
{
label: "年度", name: "YearNo", width: 100, align: "left"
//formatterAsync: function (callback, value, row, op,$cell) {
// learun.clientdata.getAsync('dataItem', {
// key: value,
// code: '',
// callback: function (_data) {
// callback(_data.text);
// }
// });
//}
},
{
label: "月份", name: "MouthNo", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'MPMonth',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "接收部门", name: "DeptId", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
key: value,
keyId: 'id',
callback: function (_data) {
callback(_data['name']);
}
});
}
},
{ label: "材料名称", name: "FileName", width: 100, align: "left" },
//{
// label: "附件", name: "Url", width: 200, align: "left",
// formatterAsync: function (callback, value, row, op, $cell) {
// $.ajax({
// url: '/LR_SystemModule/Annexes/GetAnnexesFileList',
// data: { folderId: value },
// type: 'GET',
// dataType: "json",
// async: false,
// cache: false,
// success: function (res) {
// var bb = '';
// //console.log(res);
// $.each(res.data, function (i, item) {
// bb += '<span onclick="downLoad(\'' +
// item.F_Id +
// '\',)" style="color:blue">' +
// item.F_FileName +
// '</span>,&nbsp;&nbsp;&nbsp;';
// })
// callback(bb);
// }
// });
// }
//},
{ label: "说明", name: "Remark", width: 100, align: "left" },
],
mainId: 'Id',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
},
downLoad: function (fileId) {
top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: top.$.lrToken }, method: 'POST' });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}


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

@@ -488,6 +488,7 @@
<Compile Include="Areas\PersonnelManagement\Controllers\TimeTableController.cs" />
<Compile Include="Areas\PersonnelManagement\PersonnelManagementAreaRegistration.cs" />
<Compile Include="Areas\ReceiveSendFeeManagement\Controllers\FD_BudgetBasicsController.cs" />
<Compile Include="Areas\ReceiveSendFeeManagement\Controllers\FD_BudgetFileController.cs" />
<Compile Include="Areas\ReceiveSendFeeManagement\Controllers\FD_IncomeManageController.cs" />
<Compile Include="Areas\ReceiveSendFeeManagement\Controllers\FD_PayManageController.cs" />
<Compile Include="Areas\ReceiveSendFeeManagement\ReceiveSendFeeManagementAreaRegistration.cs" />
@@ -1092,6 +1093,9 @@
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\IndexDC.js" />
<Content Include="Areas\EducationalAdministration\Views\StuLeaveManagement\CheckForm.js" />
<Content Include="Areas\EducationalAdministration\Views\StuLeaveManagement\CheckIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\StuPunishment\ClassIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\StuPunishment\MajorIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\StuPunishment\SchoolIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\InputScoreIndexInTeacher.js" />
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\InputScoreIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\Monitor.js" />
@@ -1497,6 +1501,8 @@
<Content Include="Areas\PersonnelManagement\Views\TeacherTitleEvaluation\IndexTJ.js" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_BudgetBasics\Form.js" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_BudgetBasics\Index.js" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_BudgetFile\Form.js" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_BudgetFile\Index.js" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_IncomeManage\Form.js" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_IncomeManage\Index.js" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_PayManage\AmountConversion.js" />
@@ -7503,6 +7509,11 @@
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_PayManage\PrintPublic.cshtml" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_PayManage\PrintSpecial.cshtml" />
<Content Include="Areas\CustomFunction\Views\CompetitionAward\IndexTJ.cshtml" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_BudgetFile\Form.cshtml" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_BudgetFile\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuPunishment\SchoolIndex.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuPunishment\MajorIndex.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuPunishment\ClassIndex.cshtml" />
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" />
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyJoin.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\MeetingSignInRecord\IndexAttendance.cshtml" />


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj View File

@@ -489,6 +489,7 @@
<Compile Include="PersonnelManagement\StuSaveRecordMap.cs" />
<Compile Include="EducationalAdministration\StuInfoBasicTwoMap.cs" />
<Compile Include="ReceiveSendFeeManagement\FD_BudgetBasicsMap.cs" />
<Compile Include="ReceiveSendFeeManagement\FD_BudgetFileMap.cs" />
<Compile Include="ReceiveSendFeeManagement\FD_IncomeManageMap.cs" />
<Compile Include="ReceiveSendFeeManagement\FD_PayManageMap.cs" />
<Compile Include="ReceiveSendFeeManagement\FinaChargeBankMap.cs" />


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

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

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-08-11 11:57
/// 描 述:基础信息采集
/// </summary>
public class FD_BudgetFileMap : EntityTypeConfiguration<FD_BudgetFileEntity>
{
public FD_BudgetFileMap()
{
#region 表、主键
//表
this.ToTable("FD_BUDGETFILE");
//主键
this.HasKey(t => t.Id);
#endregion

#region 配置关系
#endregion
}
}
}


+ 72
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuPunishment/StuPunishmentBLL.cs View File

@@ -41,6 +41,78 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}
/// <summary>
/// 班級
/// </summary>
/// <param name="pagination"></param>
/// <param name="queryJson"></param>
/// <returns></returns>
public IEnumerable<StuPunishmentEntity> ClassList(Pagination pagination, string queryJson)
{
try
{
return stuPunishmentService.ClassList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 專業
/// </summary>
/// <param name="pagination"></param>
/// <param name="queryJson"></param>
/// <returns></returns>
public IEnumerable<StuPunishmentEntity> MajorList(Pagination pagination, string queryJson)
{
try
{
return stuPunishmentService.MajorList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 班級
/// </summary>
/// <param name="pagination"></param>
/// <param name="queryJson"></param>
/// <returns></returns>
public IEnumerable<StuPunishmentEntity> SchoolList(Pagination pagination, string queryJson)
{
try
{
return stuPunishmentService.SchoolList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

public IEnumerable<StuPunishmentEntity> GetAllList()
{


+ 17
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuPunishment/StuPunishmentEntity.cs View File

@@ -40,7 +40,17 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
[Column("STUNAME")]
public string StuName { get; set; }
/// <summary>
/// 专业
/// </summary>
[Column("MAJORNO")]
public string MajorNo { get; set; }
/// <summary>
/// 班级
/// </summary>
[Column("CLASSNO")]
public string ClassNo { get; set; }

/// <summary>
/// 处分名称码(参见DM-CFMC《处分名称代码》)
/// </summary>
@@ -125,6 +135,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
#endregion
#region 扩展字段
/// <summary>
/// 次數
/// </summary>
[NotMapped]
public string G { get; set; }

#endregion
}
}


+ 22
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuPunishment/StuPunishmentIBLL.cs View File

@@ -21,6 +21,28 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<StuPunishmentEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 班級
/// </summary>
/// <param name="pagination"></param>
/// <param name="queryJson"></param>
/// <returns></returns>
IEnumerable<StuPunishmentEntity> ClassList(Pagination pagination, string queryJson);
/// <summary>
/// 專業
/// </summary>
/// <param name="pagination"></param>
/// <param name="queryJson"></param>
/// <returns></returns>
IEnumerable<StuPunishmentEntity> MajorList(Pagination pagination, string queryJson);
/// <summary>
/// 全校
/// </summary>
/// <param name="pagination"></param>
/// <param name="queryJson"></param>
/// <returns></returns>
IEnumerable<StuPunishmentEntity> SchoolList(Pagination pagination, string queryJson);

IEnumerable<StuPunishmentEntity> GetAllList();
/// <summary>
/// 获取StuPunishment表实体数据


+ 163
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuPunishment/StuPunishmentService.cs View File

@@ -36,6 +36,119 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty())
{
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.Date);
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.Date);
strSql.Append(" AND ( t.PunishDate >= @startTime AND t.PunishDate <= @endTime ) ");
}
if (!queryParam["majorno"].IsEmpty())
{
dp.Add("majorno", queryParam["majorno"].ToDate(), DbType.Date);
strSql.Append(" AND t.majorno >= @majorno ");
}
if (!queryParam["classno"].IsEmpty())
{
dp.Add("classno", queryParam["classno"].ToDate(), DbType.Date);
strSql.Append(" AND t.classno >= @classno ");
}
if (!queryParam["stuName"].IsEmpty())
{
dp.Add("stuName", queryParam["classno"].ToDate(), DbType.Date);
strSql.Append(" AND t.stuName >= @stuName ");
}
return this.BaseRepository("CollegeMIS").FindList<StuPunishmentEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 班級
/// </summary>
/// <param name="pagination"></param>
/// <param name="queryJson"></param>
/// <returns></returns>
public IEnumerable<StuPunishmentEntity> ClassList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append(" select t.AcademicYearNo,t.semester,t.ClassNo,count(*) as G ");
strSql.Append(" from StuPunishment t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty())
{
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.Date);
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.Date);
strSql.Append(" AND ( t.PunishDate >= @startTime AND t.PunishDate <= @endTime ) ");
}
if (!queryParam["classno"].IsEmpty())
{
dp.Add("classno", queryParam["classno"].ToDate(), DbType.Date);
strSql.Append(" AND t.classno >= @classno ");
}
strSql.Append(" group by t.AcademicYearNo,t.semester,t.ClassNo ");
return this.BaseRepository("CollegeMIS").FindList<StuPunishmentEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
/// <summary>
/// 專業
/// </summary>
/// <param name="pagination"></param>
/// <param name="queryJson"></param>
/// <returns></returns>
public IEnumerable<StuPunishmentEntity> MajorList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append(" select t.MajorNo,t.AcademicYearNo,t.semester,count(*) as G ");
strSql.Append(" from StuPunishment t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty())
{
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.Date);
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.Date);
strSql.Append(" AND ( t.PunishDate >= @startTime AND t.PunishDate <= @endTime ) ");
}
if (!queryParam["majorno"].IsEmpty())
{
dp.Add("majorno", queryParam["majorno"].ToDate(), DbType.Date);
strSql.Append(" AND t.majorno >= @majorno ");
}
if (!queryParam["classno"].IsEmpty())
{
dp.Add("classno", queryParam["classno"].ToDate(), DbType.Date);
strSql.Append(" AND t.classno >= @classno ");
}
strSql.Append(" group by t.MajorNo,t.AcademicYearNo,t.semester ");
return this.BaseRepository("CollegeMIS").FindList<StuPunishmentEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
@@ -50,6 +163,55 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}
/// <summary>
/// 全校
/// </summary>
/// <param name="pagination"></param>
/// <param name="queryJson"></param>
/// <returns></returns>
public IEnumerable<StuPunishmentEntity> SchoolList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append(" select t.AcademicYearNo,t.semester,t.MajorNo,t.ClassNo,t.punishno,count(*) as G ");
strSql.Append(" from StuPunishment t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty())
{
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.Date);
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.Date);
strSql.Append(" AND ( t.PunishDate >= @startTime AND t.PunishDate <= @endTime ) ");
}
if (!queryParam["majorno"].IsEmpty())
{
dp.Add("majorno", queryParam["majorno"].ToDate(), DbType.Date);
strSql.Append(" AND t.majorno >= @majorno ");
}
if (!queryParam["classno"].IsEmpty())
{
dp.Add("classno", queryParam["classno"].ToDate(), DbType.Date);
strSql.Append(" AND t.classno >= @classno ");
}
strSql.Append(" group by t.AcademicYearNo,t.semester,t.MajorNo,t.ClassNo,t.PunishNo ");
return this.BaseRepository("CollegeMIS").FindList<StuPunishmentEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

public IEnumerable<StuPunishmentEntity> GetAllList()
{
try
@@ -68,7 +230,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}
/// <summary>
/// 获取StuPunishment表实体数据
/// <param name="keyValue">主键</param>


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

@@ -371,6 +371,10 @@
<Compile Include="ReceiveSendFeeManagement\FD_BudgetBasics\FD_BudgetBasicsEntity.cs" />
<Compile Include="ReceiveSendFeeManagement\FD_BudgetBasics\FD_BudgetBasicsIBLL.cs" />
<Compile Include="ReceiveSendFeeManagement\FD_BudgetBasics\FD_BudgetBasicsService.cs" />
<Compile Include="ReceiveSendFeeManagement\FD_BudgetFile\FD_BudgetFileBLL.cs" />
<Compile Include="ReceiveSendFeeManagement\FD_BudgetFile\FD_BudgetFileEntity.cs" />
<Compile Include="ReceiveSendFeeManagement\FD_BudgetFile\FD_BudgetFileIBLL.cs" />
<Compile Include="ReceiveSendFeeManagement\FD_BudgetFile\FD_BudgetFileService.cs" />
<Compile Include="ReceiveSendFeeManagement\FD_IncomeManage\FD_IncomeManageBLL.cs" />
<Compile Include="ReceiveSendFeeManagement\FD_IncomeManage\FD_IncomeManageEntity.cs" />
<Compile Include="ReceiveSendFeeManagement\FD_IncomeManage\FD_IncomeManageIBLL.cs" />


+ 125
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_BudgetFile/FD_BudgetFileBLL.cs View File

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

namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-08-11 11:57
/// 描 述:基础信息采集
/// </summary>
public class FD_BudgetFileBLL : FD_BudgetFileIBLL
{
private FD_BudgetFileService fD_BudgetFileService = new FD_BudgetFileService();

#region 获取数据

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

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

#endregion

}
}

+ 87
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_BudgetFile/FD_BudgetFileEntity.cs View File

@@ -0,0 +1,87 @@
using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-08-11 11:57
/// 描 述:基础信息采集
/// </summary>
public class FD_BudgetFileEntity
{
#region 实体成员
/// <summary>
/// Id
/// </summary>
[Column("ID")]
public string Id { get; set; }
/// <summary>
/// 年份
/// </summary>
[Column("YEARNO")]
public string YearNo { get; set; }
/// <summary>
/// MouthNo
/// </summary>
[Column("MOUTHNO")]
public string MouthNo { get; set; }
/// <summary>
/// DeptId
/// </summary>
[Column("DEPTID")]
public string DeptId { get; set; }
/// <summary>
/// FileName
/// </summary>
[Column("FILENAME")]
public string FileName { get; set; }
/// <summary>
/// Url
/// </summary>
[Column("URL")]
public string Url { get; set; }
/// <summary>
/// Remark
/// </summary>
[Column("REMARK")]
public string Remark { get; set; }
/// <summary>
/// CreateTime
/// </summary>
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// CreateUserId
/// </summary>
[Column("CREATEUSERID")]
public string CreateUserId { get; set; }
#endregion

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


+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_BudgetFile/FD_BudgetFileIBLL.cs View File

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

namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-08-11 11:57
/// 描 述:基础信息采集
/// </summary>
public interface FD_BudgetFileIBLL
{
#region 获取数据

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

}
}

+ 166
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_BudgetFile/FD_BudgetFileService.cs View File

@@ -0,0 +1,166 @@
using Dapper;
using Learun.Application.TwoDevelopment.ReceiveSendFeeManagement;
using Learun.DataBase.Repository;
using Learun.Util;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-08-11 11:57
/// 描 述:基础信息采集
/// </summary>
public class FD_BudgetFileService : RepositoryFactory
{
#region 获取数据

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

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

}
}

Loading…
Cancel
Save