Kaynağa Gözat

登陆统计优化

新疆影视学院高职
zhangli 2 yıl önce
ebeveyn
işleme
7c964b4796
4 değiştirilmiş dosya ile 41 ekleme ve 27 silme
  1. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/LoginStatistics/Index.cshtml
  2. +31
    -23
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/LoginStatistics/Index.js
  3. +5
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexStatistics.js
  4. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsEntity.cs

+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/LoginStatistics/Index.cshtml Dosyayı Görüntüle

@@ -22,7 +22,7 @@
<div id="Month"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">职工号/学号</div>
<div class="lr-form-item-title">职工号</div>
<input id="Account" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
@@ -33,10 +33,10 @@
<div class="lr-form-item-title">部门</div>
<div id="Departmentid"></div>
</div>
<div class="col-xs-12 lr-form-item">
@*<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">班级</div>
<div id="ClassNo"></div>
</div>
</div>*@
</div>
</div>
</div>


+ 31
- 23
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/LoginStatistics/Index.js Dosyayı Görüntüle

@@ -72,31 +72,39 @@ var bootstrap = function ($, learun) {
];

headData = [
{ label: "职工编号/学号", name: "account", width: 120, align: "left" },
{ label: "职工编号", name: "account", width: 120, align: "left" },
{ label: "姓名", name: "name", width: 120, align: "left" },
{
label: "部门/班级", name: "departmentid", width: 100, align: "left",
label: "部门", name: "departmentid", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
if (!!row.classno) {
learun.clientdata.getAsync('custmerData',
{
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
key: row.classno,
keyId: 'classno',
callback: function (_data) {
callback(_data['classname']);
}
});
} else {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
key: value,
keyId: 'id',
callback: function (_data) {
callback(_data['name']);
}
});
}
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
key: value,
keyId: 'id',
callback: function (_data) {
callback(_data['name']);
}
});
//if (!!row.classno) {
// learun.clientdata.getAsync('custmerData',
// {
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
// key: row.classno,
// keyId: 'classno',
// callback: function (_data) {
// callback(_data['classname']);
// }
// });
//} else {
// learun.clientdata.getAsync('custmerData', {
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
// key: value,
// keyId: 'id',
// callback: function (_data) {
// callback(_data['name']);
// }
// });
//}
}
},
{ label: StrYearMonth, name: "sumnum", width: 100, align: "left" },
@@ -160,7 +168,7 @@ var bootstrap = function ($, learun) {
} else {
param.Month = date.getMonth() + 1;
}
//param.SqlParameter = " and ((classno is null or len(classno)=0) and (departmentid is not null or len(departmentid)>0)) ";
param.SqlParameter = " and F_Description='教师' ";
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};


+ 5
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexStatistics.js Dosyayı Görüntüle

@@ -15,6 +15,10 @@ var bootstrap = function ($, learun) {
},
bind: function () {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
if (!!queryJson.Year && !!queryJson.Month) {
queryJson.Year = queryJson.Year;
queryJson.Month = Number(queryJson.Month) + 1;
}
page.search(queryJson);
}, 200, 400);
// 刷新
@@ -60,7 +64,7 @@ var bootstrap = function ($, learun) {
{ label: '应阅读总次数', name: 'srnum', width: 100, align: 'left' },
{ label: '完成阅读次数(发起通知7天内)', name: 'rnum', width: 180, align: 'left' },
{
label: '完成阅读百分比', name: '', width: 100, align: 'left',
label: '完成阅读百分比', name: 'ruserid', width: 100, align: 'left',
formatter: function (value, row) {
if (!!row.rnum && !!row.srnum) {
return GetPercent(row.rnum, row.srnum);


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsEntity.cs Dosyayı Görüntüle

@@ -258,6 +258,8 @@ namespace Learun.Application.OA
public string F_Departmentid { get; set; }
[NotMapped]
public string F_Account { get; set; }
[NotMapped]
public string ruserid { get; set; }
}




Yükleniyor…
İptal
Kaydet