瀏覽代碼

新生信息管理 分配班级系部查询条件查询失效

临城职教中职
ndbs 2 年之前
父節點
當前提交
b0b37b39fc
共有 2 個檔案被更改,包括 8 行新增1 行删除
  1. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/AllocationClass.js
  2. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshService.cs

+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/AllocationClass.js 查看文件

@@ -210,10 +210,12 @@ var bootstrap = function ($, learun) {

};
getParam = function () {
var deptNo = $("#DeptNo").lrselectGet();
var majorNo = $("#MajorNo").lrselectGet();
var IdCard = $("#IDCard").val();
var isAllocation = $("#isAllocation").find('input:checked').val();
var param = {
DeptNo: deptNo,
MajorNo: majorNo,
IDCard: IdCard,
IsAllocation: isAllocation


+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshService.cs 查看文件

@@ -160,7 +160,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}

var data = this.BaseRepository("CollegeMIS").FindList<StuInfoFreshEntity>(strSql.ToString(), dp);
return data;
}
catch (Exception ex)
@@ -289,6 +289,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
dp.Add("Grade", '%' + queryParam["Grade"].ToString() + '%', DbType.String);
}
//分配班级
if (!queryParam["DeptNo"].IsEmpty())
{
strSql.Append(" and t.DeptNo = @DeptNo ");
dp.Add("DeptNo", queryParam["DeptNo"].ToString(), DbType.String);
}
if (!queryParam["MajorNo"].IsEmpty())
{
strSql.Append(" and t.MajorNo = @MajorNo ");


Loading…
取消
儲存