Browse Source

【修改】荣誉称号管理;

yanshi
dyy 2 years ago
parent
commit
b9ad304d0e
5 changed files with 20 additions and 5 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtHonorType/Form.js
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtHonoraryUser/Form.js
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtHonoraryUser/Index.js
  4. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/SW_Ask_Student/Index.js
  5. +16
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/DtHonoraryUser/DtHonoraryUserService.cs

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

@@ -33,7 +33,7 @@ var bootstrap = function ($, learun) {
if (!$('form').lrValidform()) {
return false;
}
//var postData = $('#form').lrGetFormData(keyValue);
var postData = $('#form').lrGetFormData(keyValue);
//if (postData["ParentId"] == '' || postData["ParentId"] == ' ') {
// postData["ParentId"] = $("#ParentId").lrselectGet();
//}


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

@@ -34,7 +34,7 @@ var bootstrap = function ($, learun) {
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 + ")" },
param: { strWhere: " 1=1 and classno in ('" + ClassNo + "')" },
value: "stuid",
text: "stuname",
maxHeight: 200,


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtHonoraryUser/Index.js View File

@@ -39,7 +39,7 @@ var bootstrap = function ($, learun) {
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 + ")" },
param: { strWhere: " 1=1 and classno in ('" + ClassNo + "')" },
value: "stuid",
text: "stuname",
maxHeight: 200,


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/SW_Ask_Student/Index.js View File

@@ -36,7 +36,7 @@ var bootstrap = function ($, learun) {
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 + ")" },
param: { strWhere: " 1=1 and classno in ('" + ClassNo + "')" },
value: "stuid",
text: "stuname",
maxHeight: 200,


+ 16
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/DtHonoraryUser/DtHonoraryUserService.cs View File

@@ -31,12 +31,27 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@" * ");
strSql.Append(@" t.* ");
strSql.Append(" FROM DtHonoraryUser t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
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["StuNo"].IsEmpty())
{
dp.Add("StuNo", queryParam["StuNo"].ToString(), DbType.String);
strSql.Append(" AND t.StuNo = @StuNo ");
}
return this.BaseRepository("CollegeMIS").FindList<DtHonoraryUserEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)


Loading…
Cancel
Save