();
+ entity.Updater = loginUserInfo.userId;
+ entity.UpdateTime = DateTime.Now;
+ pM_CertificateIBLL.SaveEntity(keyValue,entity);
+ return Success("保存成功!");
+ }
+ ///
+ /// 提交
+ ///
+ ///
+ ///
+ ///
+ public ActionResult Submit(string empId,bool status)
+ {
+ pM_CertificateIBLL.Submit(empId,status);
+ if (status)
+ {
+ return Success("提交成功!");
+ }
+ else
+ {
+ return Success("取消提交成功");
+ }
+ }
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml
index 31e2a6db7..09316e60d 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml
@@ -22,7 +22,8 @@
#tab5 > .lr-scroll-box,
#tab6 > .lr-scroll-box,
#tab7 > .lr-scroll-box,
- #tab8 > .lr-scroll-box {
+ #tab8 > .lr-scroll-box,
+ #tab9 > .lr-scroll-box {
height: 100%;
width: 100%;
}
@@ -40,6 +41,7 @@
家庭情况
教师聘任变更记录
年度考核结果管理
+ 资格证获取情况
+
@@ -437,6 +443,9 @@
+
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js
index 8cad4920f..386328de5 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js
@@ -65,6 +65,7 @@ var bootstrap = function ($, learun) {
$("#PM_FamilySituation").attr("src", "/EducationalAdministration/PM_FamilySituation/Index?empId=" + NewEmpId);
$("#PM_PositionChange").attr("src", "/EducationalAdministration/PM_PositionChange/Index?empId=" + NewEmpId);
$("#PM_YearAssess").attr("src", "/EducationalAdministration/PM_YearAssess/Index?empId=" + NewEmpId);
+ $("#PM_Certificate").attr("src", "/EducationalAdministration/PM_Certificate/Index?empId=" + NewEmpId);
$('#lr_form_tabs').lrFormTab();
$('#lr_form_tabs ul li').eq(0).trigger('click');
//校区
@@ -169,6 +170,7 @@ var bootstrap = function ($, learun) {
$('#ProfessionalTitle').lrDataItemSelect({ code: 'jszc' });
$('#ProfessionalTitleLevel').lrDataItemSelect({ code: 'TeacherTitlePostLevel' });
$('#TeacherQualifications').lrDataItemSelect({ code: 'TeacherQualifications' });
+ $('#MandarinLevel').lrDataItemSelect({ code: 'MandarinLevel' });
//内容编辑器
ue = UE.getEditor('editor');
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Form.cshtml
new file mode 100644
index 000000000..436c4dcac
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Form.cshtml
@@ -0,0 +1,31 @@
+@{
+ ViewBag.Title = "资格证获取情况";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PM_Certificate/Form.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Form.js
new file mode 100644
index 000000000..e2e79b131
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Form.js
@@ -0,0 +1,56 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2020-11-07 14:08
+ * 描 述:资格证获取情况
+ */
+var acceptClick;
+var keyValue = request('keyValue');
+var empId = request('empId');
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ $('.lr-form-wrap').lrscroll();
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ $('#IsSync').lrDataItemSelect({ code: 'YesOrNoBit' });
+ $('#TeacherQualifications').lrDataItemSelect({ code: 'TeacherQualifications' });
+ $('#MandarinLevel').lrDataItemSelect({ code: 'MandarinLevel' });
+ },
+ initData: function () {
+ if (!!keyValue) {
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/PM_Certificate/GetFormData?keyValue=' + keyValue, function (data) {
+ for (var id in data) {
+ if (!!data[id].length && data[id].length > 0) {
+ $('#' + id).jfGridSet('refreshdata', data[id]);
+ }
+ else {
+ $('[data-table="' + id + '"]').lrSetFormData(data[id]);
+ }
+ }
+ });
+ }
+ }
+ };
+ // 保存数据
+ acceptClick = function (callBack) {
+ if (!$('body').lrValidform()) {
+ return false;
+ }
+ var data = $('body').lrGetFormData();
+ data["EmpId"] = empId;
+ var postData = {
+ strEntity: JSON.stringify(data)
+ };
+ $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/PM_Certificate/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack();
+ }
+ });
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Index.cshtml
new file mode 100644
index 000000000..e24a86ed5
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Index.cshtml
@@ -0,0 +1,58 @@
+@{
+ ViewBag.Title = "资格证获取情况";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PM_Certificate/Index.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Index.js
new file mode 100644
index 000000000..d18923242
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/Index.js
@@ -0,0 +1,174 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2020-11-07 14:08
+ * 描 述:资格证获取情况
+ */
+var refreshGirdData;
+var empId = request('empId');
+var status = false;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ page.refreshStatus();
+ page.initGird();
+ page.bind();
+ },
+ refreshStatus: function () {
+ //获取主表状态
+ learun.httpAsyncGet(top.$.rootUrl + '/EducationalAdministration/EmpInfo/GetFormData?keyValue=' + empId, function (res) {
+ if (res.code == 200) {
+ if (res.data.EmpInfo != null) {
+ status = res.data.EmpInfo.CertificateStatus;
+ }
+ }
+ });
+ },
+ bind: function () {
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 400);
+ $('#TeacherQualifications').lrDataItemSelect({ code: 'TeacherQualifications' });
+ $('#MandarinLevel').lrDataItemSelect({ code: 'MandarinLevel' });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ // 新增
+ $('#lr_add').on('click', function () {
+ if (status == 'true') {
+ learun.alert.warning('已提交,不能再修改!');
+ return;
+ }
+ learun.layerForm({
+ id: 'formInPM_Certificate',
+ title: '新增',
+ url: top.$.rootUrl + '/EducationalAdministration/PM_Certificate/Form?empId=' + empId,
+ width: 600,
+ height: 400,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ });
+ // 编辑
+ $('#lr_edit').on('click', function () {
+ if (status == 'true') {
+ learun.alert.warning('已提交,不能再修改!');
+ return;
+ }
+ var keyValue = $('#gridtable').jfGridValue('ID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerForm({
+ id: 'formInPM_Certificate',
+ title: '编辑',
+ url: top.$.rootUrl + '/EducationalAdministration/PM_Certificate/Form?keyValue=' + keyValue + '&empId=' + empId,
+ width: 600,
+ height: 400,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ }
+ });
+ // 删除
+ $('#lr_delete').on('click', function () {
+ if (status == 'true') {
+ learun.alert.warning('已提交,不能再修改!');
+ return;
+ }
+ var keyValue = $('#gridtable').jfGridValue('ID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认删除该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/PM_Certificate/DeleteForm', { keyValue: keyValue }, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ }
+ });
+ // 提交
+ $('#lr_check').on('click', function () {
+ if (status == 'true') {
+ learun.alert.warning('已提交,不能再修改!');
+ return;
+ }
+ learun.layerConfirm('是否确认提交!', function (res) {
+ if (res) {
+ learun.postForm( top.$.rootUrl + '/EducationalAdministration/PM_Certificate/Submit', { empId: empId, status: true }, function (info) {
+ refreshGirdData();
+ });
+ }
+ });
+ });
+ // 取消提交
+ $('#lr_uncheck').on('click', function () {
+ learun.layerConfirm('是否取消提交!', function (res) {
+ if (res) {
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/PM_Certificate/Submit', { empId: empId, status: false }, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ });
+ },
+ // 初始化列表
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/EducationalAdministration/PM_Certificate/GetPageList',
+ headData: [
+ { label: "证书编号", name: "TeacherQualificationsNo", width: 100, align: "left" },
+ {
+ label: "教师资格证种类", name: "TeacherQualifications", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'TeacherQualifications',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ { label: "其他职业资格证", name: "OtherTeacherQualifications", width: 100, align: "left" },
+ {
+ label: "普通话等级", name: "MandarinLevel", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'MandarinLevel',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ { label: "备注", name: "Remark", width: 100, align: "left" },
+ { label: "是否同步", name: "IsSync", width: 100, align: "left", formatter: function (cellvalue) { return cellvalue == true ? "是" : "否" } },
+ {
+ label: "提交状态", name: "SubmitStatus", width: 100, align: "left",
+ formatter: function (cellvalue) {
+ return cellvalue == true ? "" : "";
+ }
+ },
+ ],
+ mainId: 'ID',
+ isPage: true,
+ sidx:'UpdateTime desc'
+ });
+ page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ param.EmpId = empId;
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function () {
+ page.search();
+ page.refreshStatus();
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/StatisticIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/StatisticIndex.cshtml
new file mode 100644
index 000000000..9d2659345
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/StatisticIndex.cshtml
@@ -0,0 +1,56 @@
+@{
+ ViewBag.Title = "资格证获取情况";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PM_Certificate/StatisticIndex.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/StatisticIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/StatisticIndex.js
new file mode 100644
index 000000000..dfd597952
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_Certificate/StatisticIndex.js
@@ -0,0 +1,98 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2020-11-07 14:08
+ * 描 述:资格证获取情况
+ */
+var refreshGirdData;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ page.initGird();
+ page.bind();
+ },
+ bind: function () {
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 400);
+ $('#TeacherQualifications').lrDataItemSelect({ code: 'TeacherQualifications' });
+ $('#MandarinLevel').lrDataItemSelect({ code: 'MandarinLevel' });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ },
+ // 初始化列表
+ initGird: function () {
+ $('#gridtable').lrAuthorizeJfGrid({
+ url: top.$.rootUrl + '/EducationalAdministration/PM_Certificate/GetPageStatisticList',
+ headData: [
+ {
+ label: "教师", name: "EmpId", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'EmpInfo',
+ key: value,
+ keyId: 'empid',
+ callback: function (_data) {
+ callback(_data['empname']);
+ }
+ });
+ }
+ },
+ { label: "证书编号", name: "TeacherQualificationsNo", width: 100, align: "left" },
+ {
+ label: "教师资格证种类", name: "TeacherQualifications", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'TeacherQualifications',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ { label: "其他职业资格证", name: "OtherTeacherQualifications", width: 100, align: "left" },
+ {
+ label: "普通话等级", name: "MandarinLevel", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'MandarinLevel',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ { label: "变更时间", name: "UpdateTime", width: 130, align: "left" },
+ {
+ label: "变更人", name: "Updater", width: 100, align: "left",
+ formatterAsync: function (callback, value, row) {
+ learun.clientdata.getAsync('user', {
+ key: value,
+ callback: function (item) {
+ callback(item.name);
+ }
+ });
+ }
+ },
+ ],
+ mainId: 'ID',
+ isPage: true,
+ sidx:'UpdateTime desc'
+ });
+ page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function () {
+ page.search();
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_YearAssess/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_YearAssess/Form.cshtml
index b5ba18cd5..da9db08dc 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_YearAssess/Form.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_YearAssess/Form.cshtml
@@ -5,11 +5,11 @@