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

stuinfofresh 增加grade 年级查询 和 导入增加年级字段

中职版本
zhichao lei пре 4 година
родитељ
комит
e8e0d5ae8a
3 измењених фајлова са 9 додато и 1 уклоњено
  1. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/Index.cshtml
  2. +3
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/Index.js
  3. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshService.cs

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

@@ -9,6 +9,7 @@
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<input id="txt_Keyword" type="text" class="form-control" placeholder="考生号/准考证号/姓名/身份证号" />
<input id="Grade" type="text" class="form-control" placeholder="年级" />
</div>
<div class="lr-layout-tool-item">
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i>&nbsp;查询</a>


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

@@ -17,7 +17,8 @@ var bootstrap = function ($, learun) {
// 查询
$('#btn_Search').on('click', function () {
var keyword = $('#txt_Keyword').val();
page.search({ keyword: keyword });
var Grade = $('#Grade').val();
page.search({ keyword: keyword, Grade: Grade });
});
// 刷新
$('#lr_refresh').on('click', function () {
@@ -172,6 +173,7 @@ var bootstrap = function ($, learun) {
{ label: '考生号', name: 'ksh', width: 150, align: "left" },
{ label: '准考证号', name: 'zkzh', width: 150, align: "left" },
{ label: '学号', name: 'StuNo', width: 100, align: "left" },
{ label: '年级', name: 'Grade', width: 100, align: "left" },
{ label: '姓名', name: 'StuName', width: 100, align: "left" },
{
label: '是否完善信息', name: 'ID', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {


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

@@ -224,6 +224,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
strSql.Append(" and t.StuName like @StuName ");
dp.Add("StuName", '%' + queryParam["StuName"].ToString() + '%', DbType.String);
}
if (!queryParam["Grade"].IsEmpty())
{
strSql.Append(" and t.Grade like @Grade ");
dp.Add("Grade", '%' + queryParam["Grade"].ToString() + '%', DbType.String);
}
//分配班级
if (!queryParam["MajorNo"].IsEmpty())
{


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