Browse Source

请假统计sql修改、教师用户页日期1970处理、h5框架集成验证代码

临城职教中职
坤 梁 2 years ago
parent
commit
57b5f687d9
3 changed files with 10 additions and 7 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/scripts/lrmui.js
  2. +8
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/IndexInTeacher.cshtml
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/LeaveSchool/LeaveSchoolService.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/scripts/lrmui.js
File diff suppressed because it is too large
View File


+ 8
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/IndexInTeacher.cshtml View File

@@ -496,12 +496,15 @@

},
date: function (value) {
var date = new Date(value);
if (date instanceof Date && !isNaN(date.getTime())) {
return date.toLocaleDateString();
} else {
if (!!value) {
var date = new Date(value);
if (date instanceof Date && !isNaN(date.getTime())) {
return date.toLocaleDateString();
} else {
return '';
}
} else
return '';
}
},
company: function (value) {
var result;


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/LeaveSchool/LeaveSchoolService.cs View File

@@ -31,7 +31,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@" t.f_itemname, t.pcum ");
strSql.Append(@" FROM (select F_ItemName,count(id) as pcum from LeaveSchool aa left join (select a.F_ItemName,a.F_ItemValue from LR_Base_DataItemDetail a left join LR_Base_DataItem b on a.F_ItemId=b.F_ItemId where b.F_ItemCode='LeaveType' ) bb on F_leixing=F_ItemValue group by F_ItemName)t ");
strSql.Append(@" FROM (select F_ItemName,count(slid) as pcum from studentleave aa left join (select a.F_ItemName,a.F_ItemValue from LR_Base_DataItemDetail a left join LR_Base_DataItem b on a.F_ItemId=b.F_ItemId where b.F_ItemCode='LeaveType' ) bb on F_qjtype=F_ItemValue group by F_ItemName)t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数


Loading…
Cancel
Save