Bläddra i källkod

撤销

黑艺新账号
ndbs 1 år sedan
förälder
incheckning
d694550bb3
4 ändrade filer med 0 tillägg och 296 borttagningar
  1. +0
    -40
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveDocumentController.cs
  2. +0
    -43
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Statistics.cshtml
  3. +0
    -211
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Statistics.js
  4. +0
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj

+ 0
- 40
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveDocumentController.cs Visa fil

@@ -88,14 +88,6 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
return View();
}
/// <summary>
/// 统计页面
/// </summary>
/// <returns></returns>
public ActionResult Statistics()
{
return View();
}
#endregion

#region 获取数据
@@ -132,38 +124,6 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
return Success(jsonData);
}

/// <summary>
/// 收文统计
/// </summary>
/// <param name="pagination"></param>
/// <param name="queryJson"></param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageListStatistics(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = sYS_ReceiveDocumentIBLL.GetPageList(paginationobj, queryJson);

foreach (var item in data)
{
var sql = $"SELECT COUNT(*) FROM dbo.Sys_ReceiveFile where ReadFlag=1 AND SFileId='{item.RID}'";
var sendSql = $"SELECT COUNT(*) FROM dbo.Sys_ReceiveFile where SFileId='{item.RID}'";
var readdt = sYS_ReceiveDocumentIBLL.Execute(sql);
var senddt = sYS_ReceiveDocumentIBLL.Execute(sendSql);
var readcount = readdt.Rows[0][0];
var sendcount = senddt.Rows[0][0];
item.NumberPeople = $"{readcount}/{sendcount}";
}
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// <summary>


+ 0
- 43
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Statistics.cshtml Visa fil

@@ -1,43 +0,0 @@
@{
ViewBag.Title = "文件接收";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="datesearch"></div>
</div>
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">文件标题</div>
<input id="RTitle" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">来文单位</div>
<input id="RSourceUnit" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">收文单位</div>
<div id="RReceiveUnit"></div>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-search-minus"></i>&nbsp;查看</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Statistics.js")

+ 0
- 211
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Statistics.js Visa fil

@@ -1,211 +0,0 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2019-10-22 16:58
* 描 述:文件接收
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var processId = '';
var startTime;
var endTime;
var loginInfo = top.learun.clientdata.get(['userinfo']);
var page = {
init: function () {
page.initGird();
page.bind();
},
bind: function () {
// 时间搜索框
$('#datesearch').lrdate({
dfdata: [
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }
],
// 月
mShow: false,
premShow: false,
// 季度
jShow: false,
prejShow: false,
// 年
ysShow: false,
yxShow: false,
preyShow: false,
yShow: false,
// 默认
dfvalue: '1',
selectfn: function (begin, end) {
startTime = begin;
endTime = end;
page.search();
}

});

$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#RReceiveUnit').lrDepartmentSelect();

// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 查看
$('#lr_view').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('RID');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
title: '查看',
url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/FormView?keyValue=' + keyValue,
width: 800,
height: 600,
callBack: function (id) {
var res = false;
// 验证数据
res = top[id].validForm();
// 保存数据
if (res) {
res = top[id].save('', function () {
page.search();
});
}
return res;
}
});
}
});
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/GetPageListStatistics',
headData: [
{
label: "录入人员", name: "SenderId", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'teacheruserdata',
key: value,
keyId: 'f_userid',
callback: function (_data) {
callback(_data['f_realname']);
}
});
}
},
{ label: "收文时间", name: "RReceiveTime", width: 100, align: "left" },
{ label: "来文单位", name: "RSourceUnit", width: 100, align: "left" },
{ label: "字第(号)", name: "lwz", width: 100, align: "left" },
{
label: "收文单位", name: "RReceiveUnit", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('department', {
key: value,
callback: function (_data) {
callback(_data.name);
}
});
}
},
{ label: "字第(号)", name: "swz", width: 100, align: "left" },
{
label: "缓急程度", name: "RUrgencyDegree", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'UrgencyDegree',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "文件标题", name: "RTitle", width: 100, align: "left" },
{
label: "已接收", name: "ReceiverId", width: 300, align: "left", formatterAsync:
function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('user',
{
key: value,
callback: function (_data) {
if (_data.length > 0) {
var text = '';
$.each(_data,
function (i, item) {
if (item) {
text += item.name + ',';
}
});
text = text.substring(0, text.lastIndexOf(','));
callback(text);
} else {
callback(_data.name);
}
}
});
}
},
{
label: "状态", name: "RSendFlag", width: 100, align: "left",
formatter: function (cellvalue, row) {
if (cellvalue === "1") {
return '<span class=\"label label-warning\">已下发</span>';
} else if (cellvalue === "4") {
return '<span class=\"label label-success\" >下发完毕</span>';
} else {
return '<span class=\"label label-default\" >草稿</span>';
}
}
},
{
label: "是否需要处理", name: "HasDispose", width: 100, align: "left",
formatter: function (cellvalue, row) {
if (cellvalue == "1") {
return '<span class=\"label label-warning\">需要处理</span>';
} else {
return '<span class=\"label label-success\" >无需处理</span>';
}
}
},
{
label: "阅读人数/接受人数", name: "NumberPeople", width: 150, align: "left"

}
],
mainId: 'RID',
isPage: true
});
//page.search();
},
search: function (param) {

param = param || {};
param.SenderId = loginInfo.userId;
param.StartTime = startTime;
param.EndTime = endTime;
param.SqlParameter = ' AND RSendFlag<>4';
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
//refreshGirdData = function (res, postData) {
// if (res.code == 200) {
// // 发起流程
// var postData = {
// schemeCode: 'Sys_ReceiveDocument',// 填写流程对应模板编号
// processId: processId,
// level: '1',
// };
// learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) {
// learun.loading(false);
// });

// page.search();
// }
//};
page.init();
}

+ 0
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Visa fil

@@ -1056,7 +1056,6 @@
<Content Include="Areas\EducationalAdministration\Views\StuSelectLessonListOfElectiveOnline\QueryStuSelectResult.js" />
<Content Include="Areas\EducationalAdministration\Views\StuSelectLessonListOfElectiveOnline\QueryStuSelectResultForTeacher.js" />
<Content Include="Areas\EducationalAdministration\Views\StuSelectLessonListOfElectiveOnline\InitScoreForm.js" />
<Content Include="Areas\EducationalAdministration\Views\Sys_ReceiveDocument\Statistics.js" />
<Content Include="Areas\EducationalAdministration\Views\YKTStateMent\AnalysisByMonthForStudent.js" />
<Content Include="Areas\EducationalAdministration\Views\YKTStateMent\ManageIndexTeacher.js" />
<Content Include="Areas\EducationalAdministration\Views\YKTStateMent\IndexForTeacher.js" />
@@ -8303,7 +8302,6 @@
<Content Include="Areas\EducationalAdministration\Views\StuScore\StuScoreRank.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuDisciplineManagement\IndexOfStudent.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuCancelDisciplineManagement\IndexOfTeacher.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\Sys_ReceiveDocument\Statistics.cshtml" />
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />


Laddar…
Avbryt
Spara