-
奖励金额
-
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachingCompetition/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachingCompetition/Index.js
index d15ece5c4..27f4463d1 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachingCompetition/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachingCompetition/Index.js
@@ -31,7 +31,7 @@ var bootstrap = function ($, learun) {
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/TeachingCompetition/Form',
width: 600,
- height: 450,
+ height: 500,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
@@ -50,7 +50,7 @@ var bootstrap = function ($, learun) {
title: '编辑',
url: top.$.rootUrl + '/EducationalAdministration/TeachingCompetition/Form?keyValue=' + keyValue,
width: 600,
- height: 450,
+ height: 500,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
@@ -71,6 +71,38 @@ var bootstrap = function ($, learun) {
}
});
// 评价
+ $('#lr_dept').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('ID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerForm({
+ id: 'form',
+ title: '评价',
+ url: top.$.rootUrl + '/EducationalAdministration/TeachingCompetition/FormDeptSchool?keyValue=' + keyValue + '&DeptSchool=1',
+ width: 600,
+ height: 600,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ }
+ });
+ // 学校
+ $('#lr_school').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('ID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerForm({
+ id: 'form',
+ title: '部门',
+ url: top.$.rootUrl + '/EducationalAdministration/TeachingCompetition/FormDeptSchool?keyValue=' + keyValue +'&DeptSchool=2',
+ width: 600,
+ height: 600,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ }
+ });
+ // 评价
$('#lr_check').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
@@ -79,7 +111,7 @@ var bootstrap = function ($, learun) {
title: '评价',
url: top.$.rootUrl + '/EducationalAdministration/TeachingCompetition/CheckForm?keyValue=' + keyValue,
width: 600,
- height: 300,
+ height: 600,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
@@ -174,28 +206,54 @@ var bootstrap = function ($, learun) {
});
}
},
- { label: "奖励金额", name: "Money", width: 100, align: "left" },
+ //{ label: "奖励金额", name: "Money", width: 100, align: "left" },
{ label: "备注", name: "Remark", width: 100, align: "left" },
{
- label: "评价教师", name: "EvaluateTeacher", width: 100, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('custmerData', {
- url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo',
- key: value,
- keyId: 'f_userid',
- callback: function (_data) {
- callback(_data['f_realname']);
- }
- });
- }
- },
+ label: "部门审核人", name: "DeptUser", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo',
+ key: value,
+ keyId: 'f_userid',
+ callback: function (_data) {
+ callback(_data['f_realname']);
+ }
+ });
+ }
+ },
{
- label: "评价时间", name: "EvaluateTime", width: 100, align: "left"
- , formatter: function (cellvalue) {
- return learun.formatDate(cellvalue, 'yyyy-MM-dd ');
- }
- },
- { label: "评价备注", name: "EvaluateRemark", width: 100, align: "left" },
+ label: "学校审核人", name: "SchoolUser", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo',
+ key: value,
+ keyId: 'f_userid',
+ callback: function (_data) {
+ callback(_data['f_realname']);
+ }
+ });
+ }
+ },
+ //{
+ // label: "评价教师", name: "EvaluateTeacher", width: 100, align: "left",
+ // formatterAsync: function (callback, value, row, op, $cell) {
+ // learun.clientdata.getAsync('custmerData', {
+ // url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo',
+ // key: value,
+ // keyId: 'f_userid',
+ // callback: function (_data) {
+ // callback(_data['f_realname']);
+ // }
+ // });
+ // }
+ //},
+ //{
+ // label: "评价时间", name: "EvaluateTime", width: 100, align: "left"
+ // , formatter: function (cellvalue) {
+ // return learun.formatDate(cellvalue, 'yyyy-MM-dd ');
+ // }
+ //},
+ //{ label: "评价备注", name: "EvaluateRemark", width: 100, align: "left" },
],
mainId: 'ID',
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
index ea6ee652a..8b63d175c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
@@ -1441,6 +1441,7 @@
+
@@ -8141,6 +8142,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionBLL.cs
index e9f648479..5f9f9dd74 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionBLL.cs
@@ -136,7 +136,24 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}
-
+ public void DeptOrSchoolForm(string keyValue, string DeptSchool)
+ {
+ try
+ {
+ teachingCompetitionService.DeptOrSchoolForm(keyValue, DeptSchool);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
#endregion
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionEntity.cs
index 1e1b63518..c16609bb7 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionEntity.cs
@@ -93,8 +93,22 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
///
[Column("EVALUATEREMARK")]
public string EvaluateRemark { get; set; }
- [Column("TType")]
+ [Column("TTYPE")]
public string TType { get; set; }
+ [Column("PATH")]
+ public string Path { get; set; }
+
+ [Column("DEPTTIME")]
+ public DateTime? DeptTime { get; set; }
+ [Column("DEPTUSER")]
+ public string DeptUser { get; set; }
+ [Column("SCHOOLTIME")]
+ public DateTime? SchoolTime { get; set; }
+ [Column("SCHOOLUSER")]
+ public string SchoolUser { get; set; }
+ [Column("STATE")]
+ public int? State { get; set; }
+
#endregion
#region 扩展操作
@@ -106,6 +120,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
this.ID = Guid.NewGuid().ToString();
this.CreateTime = DateTime.Now;
this.CreateUser = LoginUserInfo.Get().userId;
+ this.State = 0;
}
///
/// 编辑调用
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionIBLL.cs
index 0541c1e05..da79ece8e 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionIBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionIBLL.cs
@@ -43,6 +43,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 实体
void SaveEntity(string keyValue, TeachingCompetitionEntity entity);
void CheckEntity(string keyValue, TeachingCompetitionEntity entity);
+ void DeptOrSchoolForm(string keyValue, string DeptSchool);
#endregion
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionService.cs
index 884fe96bf..58f5f59a2 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachingCompetition/TeachingCompetitionService.cs
@@ -205,6 +205,36 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ public void DeptOrSchoolForm(string keyValue, string DeptSchool)
+ {
+ try
+ {
+ if (DeptSchool == "1")
+ {
+ this.BaseRepository("CollegeMIS").ExecuteBySql(" update TeachingCompetition set DeptUser='" + LoginUserInfo.Get().userId + "',DeptTime='" + DateTime.Now + "',State=2 where id= '" + keyValue + "'");
+ }
+ else
+ {
+ this.BaseRepository("CollegeMIS").ExecuteBySql(" update TeachingCompetition set SchoolUser='" + LoginUserInfo.Get().userId + "',SchoolTime='" + DateTime.Now + "',State=2 where id= '" + keyValue + "'");
+ }
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
#endregion
}