Bläddra i källkod

给手机端添加考试安排功能

西昌缴费二期
ndbs 3 år sedan
förälder
incheckning
be0e03043b
5 ändrade filer med 109 tillägg och 0 borttagningar
  1. +0
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/ArrangeExamTermNew/ArrangeExamTermNew.css
  2. +8
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/ArrangeExamTermNew/ArrangeExamTermNew.html
  3. +53
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/ArrangeExamTermNew/ArrangeExamTermNew.js
  4. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj
  5. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/ArrangeExamTermNewApi.cs

+ 0
- 0
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/ArrangeExamTermNew/ArrangeExamTermNew.css Visa fil


+ 8
- 0
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/ArrangeExamTermNew/ArrangeExamTermNew.html Visa fil

@@ -0,0 +1,8 @@
<div class="lr-page lr-ArrangeExamTermNew-page">
<div class="lr-page-tool">
<div class="lr-tool-left">
总共<span class="lr-badge lr-badge-primary">0</span>条
</div>
</div>
<div class="lr-page-content" id="lr_ArrangeExamTerm_list"></div>
</div>

+ 53
- 0
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/ArrangeExamTermNew/ArrangeExamTermNew.js Visa fil

@@ -0,0 +1,53 @@
(function () {
var multipleData = null;
var page = {
grid: null,
init: function ($page) {
page.grid = $page.find('#lr_ArrangeExamTerm_list').lrpagination({
lclass: page.lclass,
rows: 10, // 每页行数
getData: function (param, callback) {// 获取数据 param 分页参数,callback 异步回调
param.multipleData = multipleData;
page.loadData(param, callback, $page);
},
renderData: function (_index, _item, _$item) {// 渲染数据模板
return page.rowRender(_index, _item, _$item, $page);
},
});
},
lclass: 'lr-list',
loadData: function (param, callback, $page) {// 列表加载后台数据
var _postParam = {
pagination: {
rows: param.rows,
page: param.page
},
queryJson: '{}'
};
if (param.multipleData) {
_postParam.queryJson = JSON.stringify(multipleData);
}
learun.httpget(config.webapi + '/learun/ask/testlist', _postParam, (data) => {
$page.find('.lr-badge').text('0');
if (data) {
$page.find('.lr-badge').text(data.records);
callback(data.rows, parseInt(data.records));
}
else {
callback([], 2);
}
});
},
rowRender: function (_index, _item, _$item, $page) {// 渲染列表行数据
_$item.addClass('lr-list-item lr-list-item-multi');
_$item.append($('<p class="lr-ellipsis"><span>考试日期:</span></p>').dataFormatter({ value: _item.ExamDate }));
_$item.append($('<p class="lr-ellipsis"><span>考试时间:</span></p>').dataFormatter({ value: _item.ExamTime }));
_$item.append($('<p class="lr-ellipsis"><span>课程编码:</span></p>').dataFormatter({ value: _item.LessonNo }));
_$item.append($('<p class="lr-ellipsis"><span>课程名称:</span></p>').dataFormatter({ value: _item.LessonName }));
_$item.append($('<p class="lr-ellipsis"><span>教室编码:</span></p>').dataFormatter({ value: _item.ClassRoomNo }));
_$item.append($('<p class="lr-ellipsis"><span>教室名称:</span></p>').dataFormatter({ value: _item.ClassRoomName }));
return '';
},
};
return page;
})();

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj Visa fil

@@ -195,6 +195,7 @@
<Compile Include="Modules\ArrangeLessonTermAttemperApi.cs" />
<Compile Include="Modules\DataSourceNoLoginApi.cs" />
<Compile Include="Modules\AskApi.cs" />
<Compile Include="Modules\EducationalAdministration\ArrangeExamTermNewApi.cs" />
<Compile Include="Modules\EducationalAdministration\LoginUserBindApi.cs" />
<Compile Include="Modules\PushMessageApi.cs" />
<Compile Include="Modules\EvalApi.cs" />


+ 47
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/ArrangeExamTermNewApi.cs Visa fil

@@ -0,0 +1,47 @@
using Learun.Application.Organization;
using Learun.Application.TwoDevelopment.EducationalAdministration;
using Learun.Application.TwoDevelopment.EvaluationTeach;
using Learun.Util;
using Nancy;
using System.Collections.Generic;
using Learun.Application.TwoDevelopment.Ask;

namespace Learun.Application.WebApi.Modules
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创建人:数字化智慧校园-框架开发组
/// 日 期:2018.01.04
/// 描 述:部门管理
/// </summary>
public class ArrangeExamTermNewApi : BaseApi
{
public ArrangeExamTermNewApi()
: base("/learun/ask")
{
Get["/testlist"] = GetPageList;
}

private ArrangeExamTermNewIBLL AeTerm = new ArrangeExamTermNewBLL();

/// <summary>
/// 获取问卷列表
/// </summary>
/// <param name="_"></param>
/// <returns></returns>
public Response GetPageList(dynamic _)
{
ReqPageParam parameter = this.GetReqData<ReqPageParam>();
var data = AeTerm.GetPageList(parameter.pagination, parameter.queryJson);
var jsonData = new
{
rows = data,
total = parameter.pagination.total,
page = parameter.pagination.page,
records = parameter.pagination.records
};
return Success(jsonData);
}
}
}

Laddar…
Avbryt
Spara