diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MP_ManagementPlanController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MP_ManagementPlanController.cs index 9b59e2ef7..1d8f663d1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MP_ManagementPlanController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MP_ManagementPlanController.cs @@ -118,7 +118,7 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers [AjaxOnly] public ActionResult GetAcademicYear() { - var data = WebHelper.GenerateNearByAcademicTwo(); + var data = WebHelper.GenerateNearByYear(); return Success(data); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Form.cshtml index c48c70cc3..f01617a3f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Form.cshtml @@ -4,13 +4,13 @@ }
-
学年*
+
年度*
-
+ @*
学期*
-
+
*@
月份*
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Form.js index 573228b5f..a79762c38 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Form.js @@ -17,20 +17,20 @@ var bootstrap = function ($, learun) { bind: function () { //学年 $('#MPAcademicYearNo').lrselect({ - placeholder: "请选择学年", + placeholder: "请选择年度", allowSearch: true, url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetAcademicYear', value: 'value', text: 'text' }); //学期 - $('#MPSemester').lrselect({ - placeholder: "请选择学期", - allowSearch: true, - url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', - value: 'value', - text: 'text' - }); + //$('#MPSemester').lrselect({ + // placeholder: "请选择学期", + // allowSearch: true, + // url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', + // value: 'value', + // text: 'text' + //}); $('#MPDepartment').lrselect({ type: 'tree', diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Index.cshtml index c28465f91..ea3ae34fc 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Index.cshtml @@ -11,13 +11,13 @@
-
学年
+
年度
-
+ @*
学期
-
+
*@
月份
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Index.js index b78c149cf..1a7a23c51 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Index.js @@ -23,20 +23,20 @@ var bootstrap = function ($, learun) { }, 220, 400); //学年 $('#MPAcademicYearNo').lrselect({ - placeholder: "请选择学年", + placeholder: "请选择年度", allowSearch: true, url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetAcademicYear', value: 'value', text: 'text' }); //学期 - $('#MPSemester').lrselect({ - placeholder: "请选择学期", - allowSearch: true, - url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', - value: 'value', - text: 'text' - }); + //$('#MPSemester').lrselect({ + // placeholder: "请选择学期", + // allowSearch: true, + // url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', + // value: 'value', + // text: 'text' + //}); $('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); // 刷新 $('#lr_refresh').on('click', function () { @@ -102,8 +102,8 @@ var bootstrap = function ($, learun) { $('#gridtable').lrAuthorizeJfGrid({ url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetPageList', headData: [ - { label: "学年", name: "MPAcademicYearNo", width: 100, align: "left" }, - { label: "学期", name: "MPSemester", width: 100, align: "left" }, + { label: "年度", name: "MPAcademicYearNo", width: 100, align: "left" }, + //{ label: "学期", name: "MPSemester", width: 100, align: "left" }, { label: "月份", name: "MPMonth", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { @@ -128,6 +128,26 @@ var bootstrap = function ($, learun) { }); } }, + { + label: "上传人", name: "MPUploader", width: 250, 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']); + } + }); + } + //formatterAsync: function (callback, value, row, op, $cell) { + // learun.httpAsyncGet(top.$.rootUrl + '/LR_OrganizationModule/User/GetListByUserIds?keyValue=' + value, function (res) { + // if (res.code == learun.httpCode.success) { + // callback(res.data); + // } + // }); + //} + }, { label: "材料名称", name: "MPProjectName", width: 150, align: "left" }, { label: "上传文件", diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.cshtml index cc0f966e2..f99596f98 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.cshtml @@ -11,13 +11,13 @@
-
学年
+
年度
-
+ @*
学期
-
+
*@
月份
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.js index 7bda23c45..39aaa98dc 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.js @@ -23,20 +23,20 @@ var bootstrap = function ($, learun) { }, 220, 400); //学年 $('#MPAcademicYearNo').lrselect({ - placeholder: "请选择学年", + placeholder: "请选择年度", allowSearch: true, url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetAcademicYear', value: 'value', text: 'text' }); //学期 - $('#MPSemester').lrselect({ - placeholder: "请选择学期", - allowSearch: true, - url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', - value: 'value', - text: 'text' - }); + //$('#MPSemester').lrselect({ + // placeholder: "请选择学期", + // allowSearch: true, + // url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo', + // value: 'value', + // text: 'text' + //}); $('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); $('#MPDepartment').lrselect({ @@ -48,11 +48,12 @@ var bootstrap = function ($, learun) { // 访问数据接口地址 url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree', select: function (val) { - console.log(val); - var departmentIds = val.id; - $('#MPReceiveUser').lrselectRefresh({ - url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentIds?departmentId=' + departmentIds - }) + if (val) { + var departmentIds = val.id; + $('#MPReceiveUser').lrselectRefresh({ + url: top.$.rootUrl +'/LR_OrganizationModule/User/GetListByDepartmentIds?departmentId=' +departmentIds + }); + } } }); @@ -143,7 +144,7 @@ var bootstrap = function ($, learun) { if (learun.checkrow(keyValue)) { learun.layerConfirm('是否确认合格!', function (res) { if (res) { - learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/Qqualified', {keyValue:keyValue, status: true }, function () { + learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/Qqualified', { keyValue: keyValue, status: true }, function () { refreshGirdData(); }); } @@ -156,7 +157,7 @@ var bootstrap = function ($, learun) { if (learun.checkrow(keyValue)) { learun.layerConfirm('是否确认不合格!', function (res) { if (res) { - learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/Qqualified', {keyValue:keyValue, status: false }, function () { + learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/Qqualified', { keyValue: keyValue, status: false }, function () { refreshGirdData(); }); } @@ -174,8 +175,8 @@ var bootstrap = function ($, learun) { $('#gridtable').lrAuthorizeJfGrid({ url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetPageList', headData: [ - { label: "学年", name: "MPAcademicYearNo", width: 100, align: "left" }, - { label: "学期", name: "MPSemester", width: 100, align: "left" }, + { label: "年度", name: "MPAcademicYearNo", width: 100, align: "left" }, + //{ label: "学期", name: "MPSemester", width: 100, align: "left" }, { label: "月份", name: "MPMonth", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { @@ -200,18 +201,38 @@ var bootstrap = function ($, learun) { } }, { - label: "接收人", name: "MPReceiveUser", width: 250, align: "left", + label: "上传人", name: "MPUploader", width: 250, align: "left", formatterAsync: function (callback, value, row, op, $cell) { - learun.httpAsyncGet(top.$.rootUrl + '/LR_OrganizationModule/User/GetListByUserIds?keyValue=' + value, function (res) { - if (res.code == learun.httpCode.success) { - callback(res.data); + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'teacheruserdata', + key: value, + keyId: 'f_userid', + callback: function (_data) { + callback(_data['f_realname']); } }); } + //formatterAsync: function (callback, value, row, op, $cell) { + // learun.httpAsyncGet(top.$.rootUrl + '/LR_OrganizationModule/User/GetListByUserIds?keyValue=' + value, function (res) { + // if (res.code == learun.httpCode.success) { + // callback(res.data); + // } + // }); + //} }, + //{ + // label: "接收人", name: "MPReceiveUser", width: 250, align: "left", + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.httpAsyncGet(top.$.rootUrl + '/LR_OrganizationModule/User/GetListByUserIds?keyValue=' + value, function (res) { + // if (res.code == learun.httpCode.success) { + // callback(res.data); + // } + // }); + // } + //}, { label: "材料名称", name: "MPProjectName", width: 150, align: "left" }, { - label: "上传文件", + label: "上传材料", name: "MPFileTwo", width: 200, align: "left", @@ -241,9 +262,9 @@ var bootstrap = function ($, learun) { { label: "是否合格", name: "MPConclusion", width: 100, align: "left", formatter: function (val) { - if (val===1) { + if (val === 1) { return "合格"; - } else if (val===0) { + } else if (val === 0) { return "不合格"; } else { return ""; @@ -261,6 +282,10 @@ var bootstrap = function ($, learun) { if (isUser) { param.isUser = 'true'; } + if (!param.MPAcademicYearNo) { + var jsdate = new Date(); + param.MPAcademicYearNo = jsdate.getFullYear(); + } $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); }, downLoad: function (fileId) {