diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.cshtml
index 8aaddf32b..9057c3322 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.cshtml
@@ -20,7 +20,7 @@
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.js
index dc23b2a78..cfce0fb53 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.js
@@ -8,6 +8,7 @@ var acceptClick;
var keyValue = request('keyValue');
var isStudent = request('isStudent');
var Crowning = request('Crowning');
+var editType = request('editType');//编辑类型:myclass我的班级页面的编辑按钮
var bootstrap = function ($, learun) {
"use strict";
var page = {
@@ -16,6 +17,67 @@ var bootstrap = function ($, learun) {
page.bind();
page.initData();
page.hide();
+ page.showPart();
+ },
+ showPart: function () {
+ if (editType == "myclass") {
+ $("#F_SchoolId").attr("readonly", "readonly");
+ $("#StuNo").attr("readonly", "readonly");
+ $("#StuCode").attr("readonly", "readonly");
+ $("#ksh").attr("readonly", "readonly");
+ $("#NoticeNo").attr("readonly", "readonly");
+ $("#IdentityCardNo").attr("readonly", "readonly");
+ $("#StuName").attr("readonly", "readonly");
+ $("#NationalityNo").attr("readonly", "readonly");
+ $("#GenderNo").attr("readonly", "readonly");
+ $("#HealthStatus").attr("readonly", "readonly");
+ $("#PartyFaceNo").attr("readonly", "readonly");
+ $("#Birthday").attr("readonly", "readonly");
+ $("#HealthStatusNo").attr("readonly", "readonly");
+ $("#ResidenceNo").attr("readonly", "readonly");
+ $("#F_ProvinceId").attr("readonly", "readonly");
+ $("#F_CityId").attr("readonly", "readonly");
+ $("#F_CountyId").attr("readonly", "readonly");
+ $("#Photo").attr("readonly", "readonly");
+ $("#EMail").attr("readonly", "readonly");
+ $("#BankLocation").attr("readonly", "readonly");
+ $("#PostalCode").attr("readonly", "readonly");
+ $("#FatherUnit").attr("readonly", "readonly");
+ $("#MatherUnit").attr("readonly", "readonly");
+ $("#Domicile").attr("readonly", "readonly");
+ $("#IsSingle").attr("readonly", "readonly");
+ $("#FatherName").attr("readonly", "readonly");
+ $("#MatherName").attr("readonly", "readonly");
+ $("#OneIdCardNo").attr("readonly", "readonly");
+ $("#TwoIdCardNo").attr("readonly", "readonly");
+ $("#OneDomicile").attr("readonly", "readonly");
+ $("#TwoDomicile").attr("readonly", "readonly");
+ $("#GuardianName").attr("readonly", "readonly");
+ $("#GuardianIdCardNo").attr("readonly", "readonly");
+ $("#GuardianDomicile").attr("readonly", "readonly");
+ $("#GuardianAddress").attr("readonly", "readonly");
+ $("#FamilyOriginNo").attr("readonly", "readonly");
+ $("#OverseasChineseNo").attr("readonly", "readonly");
+ $("#Grade").attr("readonly", "readonly");
+ $("#GraduateNo").attr("readonly", "readonly");
+ $("#EduSystem").attr("readonly", "readonly");
+ $("#RegisterDate").attr("readonly", "readonly");
+ $("#StudyModality").attr("readonly", "readonly");
+ $("#DiplomaNo").attr("readonly", "readonly");
+ $("#GraduateYear").attr("readonly", "readonly");
+ $("#DiplomaRemark").attr("readonly", "readonly");
+ $("#DeptNo").attr("readonly", "readonly");
+ $("#MajorNo").attr("readonly", "readonly");
+ $("#ClassNo").attr("readonly", "readonly");
+ $("#EntranceDate").attr("readonly", "readonly");
+ $("#JoinPartyDate").attr("readonly", "readonly");
+ $("#JoinLeagueDate").attr("readonly", "readonly");
+ $("#InSchoolAddress").attr("readonly", "readonly");
+ $("#InSchoolTelephone").attr("readonly", "readonly");
+ $("#QQ").attr("readonly", "readonly");
+ $("#GoodAt").attr("readonly", "readonly");
+ $("#Remark").attr("readonly", "readonly");
+ }
},
hide: function () {
if (isStudent == "1") {
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/MyClass.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/MyClass.js
index 87dadd679..ee943e918 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/MyClass.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/MyClass.js
@@ -29,15 +29,15 @@ var bootstrap = function ($, learun) {
learun.alert.warning("只能选择一条记录进行编辑!");
return;
}
- var CheckMark = $('#gridtable').jfGridValue('CheckMark');
- if (CheckMark === "1") {
- learun.alert.warning("当前项目已审核不能编辑!");
- return;
- }
+ //var CheckMark = $('#gridtable').jfGridValue('CheckMark');
+ //if (CheckMark === "1") {
+ // learun.alert.warning("当前项目已审核不能编辑!");
+ // return;
+ //}
learun.layerForm({
id: 'form',
title: '编辑',
- url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/Form?keyValue=' + keyValue,
+ url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/Form?editType=myclass&keyValue=' + keyValue,
width: 800,
height: 600,
callBack: function (id) {
@@ -64,43 +64,6 @@ var bootstrap = function ($, learun) {
});
}
});
- //审核
- $('#check').on('click', function () {
- var keyValue = $('#gridtable').jfGridValue('StuId');
- if (learun.checkrow(keyValue)) {
- var CheckMark = $('#gridtable').jfGridValue('CheckMark');
- if (CheckMark.indexOf('1') != -1) {
- learun.alert.warning("选中记录中包含已审核项目!");
- return;
- }
- learun.layerConfirm('是否确认审核该项?', function (res) {
- if (res) {
- learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/Check', { keyValue: keyValue }, function () {
- refreshGirdData();
- });
- }
- });
- }
- });
- //去审
- $('#uncheck').on('click', function () {
- var keyValue = $('#gridtable').jfGridValue('StuId');
- if (learun.checkrow(keyValue)) {
- var CheckMark = $('#gridtable').jfGridValue('CheckMark');
- var CheckMarkArr = CheckMark.split(',');
- if ($.inArray('0', CheckMarkArr) != -1 || $.inArray('', CheckMarkArr) != -1) {
- learun.alert.warning("选中记录中包含未审核项目!");
- return;
- }
- learun.layerConfirm('是否确认取消审核该项?', function (res) {
- if (res) {
- learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/UnCheck', { keyValue: keyValue }, function () {
- refreshGirdData();
- });
- }
- });
- }
- });
//更新学生数据
$('#lr_update').on('click', function () {
if (!!ClassNo) {