Browse Source

【修改】奖助学金管理:审核状态多条件查询下拉框调整;奖/助学金管理/审核页面,奖/助学金类型由数据源修改为方法;

临城职教中职
dyy 2 years ago
parent
commit
50c1455b68
10 changed files with 140 additions and 19 deletions
  1. +14
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ScholarshipController.cs
  2. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Scholarshipxj/Form.js
  3. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Scholarshipxj/FormAudit.js
  4. +7
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Scholarshipxj/Formzxj.js
  5. +9
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Scholarshipxj/Index.js
  6. +10
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Scholarshipxj/IndexAudit.js
  7. +10
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Scholarshipxj/Indexzxj.js
  8. +25
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Scholarship/ScholarshipBLL.cs
  9. +7
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Scholarship/ScholarshipIBLL.cs
  10. +46
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Scholarship/ScholarshipService.cs

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

@@ -99,6 +99,20 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
};
return Success(jsonData);
}

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetList(string queryJson)
{
var data = scholarshipIBLL.GetList(queryJson);
return Success(data);
}
#endregion

#region 提交数据


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

@@ -15,7 +15,12 @@ var bootstrap = function ($, learun) {
page.initData();
},
bind: function () {
$('#SchoolType').lrDataSourceSelect({ code: 'Isjxj',value: 'id',text: 'itemname' });
$('#SchoolType').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/Scholarship/GetList?queryJson=' + JSON.stringify({ IsType: 0, IsValid: 0 }),
value: "Id",
text: "ItemName"
});
$('#LrPeople')[0].lrvalue = learun.clientdata.get(['userinfo']).userId;
$('#LrPeople').val(learun.clientdata.get(['userinfo']).realName);
$('#LrTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd'));


+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Scholarshipxj/FormAudit.js View File

@@ -21,7 +21,12 @@ var bootstrap = function ($, learun) {
value: "value"
})
$('#AttachmentName').lrUploader();
$('#SchoolType').lrDataSourceSelect({ code: 'Iszxj',value: 'id',text: 'itemname' });
$('#SchoolType').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/Scholarship/GetList?queryJson=' + JSON.stringify({ IsType: 1, IsValid: 0 }),
value: "Id",
text: "ItemName"
});
$('#StuName').lrGirdSelect({
// 字段
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuInfoBasic',


+ 7
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Scholarshipxj/Formzxj.js View File

@@ -16,11 +16,16 @@ var bootstrap = function ($, learun) {
},
bind: function () {
$('#State').lrselect({
data: [{ text: "待审核", value: "0" }, { text: "同意", value: "1" },{ text: "不同意", value: "2" }],
data: [{ text: "待审核", value: "0" }, { text: "审核通过", value: "1" }, { text: "不通过", value: "2" }],
text: "text",
value: "value"
})
$('#SchoolType').lrDataSourceSelect({ code: 'Iszxj',value: 'id',text: 'itemname' });
$('#SchoolType').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/Scholarship/GetList?queryJson=' + JSON.stringify({ IsType: 1, IsValid: 0 }),
value: "Id",
text: "ItemName"
});
$('#LrPeople')[0].lrvalue = learun.clientdata.get(['userinfo']).userId;
$('#LrPeople').val(learun.clientdata.get(['userinfo']).realName);
$('#LrTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd'));


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

@@ -20,8 +20,12 @@ var bootstrap = function ($, learun) {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#SchoolType').lrDataSourceSelect({ code: 'Isjxj',value: 'id',text: 'itemname' });
$('#SchoolType').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/Scholarship/GetList?queryJson=' + JSON.stringify({ IsType: 0, IsValid: 0 }),
value: "Id",
text: "ItemName"
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
@@ -118,11 +122,11 @@ var bootstrap = function ($, learun) {
label: "奖学金类型", name: "SchoolType", width: 200, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Isjxj',
url: '/EducationalAdministration/Scholarship/GetList?queryJson=' + JSON.stringify({ IsType: 0, IsValid: 0 }),
key: value,
keyId: 'id',
keyId: 'Id',
callback: function (_data) {
callback(_data['itemname']);
callback(_data['ItemName']);
}
});
}


+ 10
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Scholarshipxj/IndexAudit.js View File

@@ -20,9 +20,14 @@ var bootstrap = function ($, learun) {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#SchoolType').lrDataSourceSelect({ code: 'Iszxj', value: 'id', text: 'itemname' });
$('#SchoolType').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/Scholarship/GetList?queryJson=' + JSON.stringify({ IsType: 1, IsValid: 0 }),
value: "Id",
text: "ItemName"
});
$('#State').lrselect({
data: [{ text: "待审核", value: "0" }, { text: "同意", value: "1" }, { text: "不同意", value: "2" }],
data: [{ text: "待审核", value: "0" }, { text: "审核通过", value: "1" }, { text: "不通过", value: "2" }],
text: "text",
value: "value"
})
@@ -83,11 +88,11 @@ var bootstrap = function ($, learun) {
label: "助学金类型", name: "SchoolType", width: 200, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Iszxj',
url: '/EducationalAdministration/Scholarship/GetList?queryJson=' + JSON.stringify({ IsType: 1, IsValid: 0 }),
key: value,
keyId: 'id',
keyId: 'Id',
callback: function (_data) {
callback(_data['itemname']);
callback(_data['ItemName']);
}
});
}


+ 10
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Scholarshipxj/Indexzxj.js View File

@@ -20,9 +20,14 @@ var bootstrap = function ($, learun) {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#SchoolType').lrDataSourceSelect({ code: 'Iszxj',value: 'id',text: 'itemname' });
$('#SchoolType').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/Scholarship/GetList?queryJson=' + JSON.stringify({ IsType: 1, IsValid :0}),
value: "Id",
text: "ItemName"
});
$('#State').lrselect({
data: [{ text: "待审核", value: "0" }, { text: "同意", value: "1" }, { text: "不同意", value: "2" }],
data: [{ text: "待审核", value: "0" }, { text: "审核通过", value: "1" }, { text: "不通过", value: "2" }],
text: "text",
value: "value"
})
@@ -132,11 +137,11 @@ var bootstrap = function ($, learun) {
label: "助学金类型", name: "SchoolType", width: 200, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Iszxj',
url: '/EducationalAdministration/Scholarship/GetList?queryJson=' + JSON.stringify({ IsType: 1, IsValid: 0 }),
key: value,
keyId: 'id',
keyId: 'Id',
callback: function (_data) {
callback(_data['itemname']);
callback(_data['ItemName']);
}
});
}


+ 25
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Scholarship/ScholarshipBLL.cs View File

@@ -67,6 +67,31 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}

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

#endregion

#region 提交数据


+ 7
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Scholarship/ScholarshipIBLL.cs View File

@@ -35,6 +35,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// <returns></returns>
ScholarshipEntity NameOrCode(string ItemName, string ItemCode, int? IsType);

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<ScholarshipEntity> GetList(string queryJson);
#endregion

#region 提交数据


+ 46
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Scholarship/ScholarshipService.cs View File

@@ -101,6 +101,52 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<ScholarshipEntity> GetList(string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@" * ");
strSql.Append(" FROM Scholarship t ");
strSql.Append(" WHERE 1=1 and IsDel ='0' ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });

if (!queryParam["IsValid"].IsEmpty())
{
dp.Add("IsValid", queryParam["IsValid"].ToString(), DbType.String);
strSql.Append(" AND t.IsValid = @IsValid ");
}

if (!queryParam["IsType"].IsEmpty())
{
dp.Add("IsType", queryParam["IsType"].ToString(), DbType.String);
strSql.Append(" AND t.IsType = @IsType ");
}

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

#endregion

#region 提交数据


Loading…
Cancel
Save