Procházet zdrojové kódy

【修改】我的班级:修改按钮的方法优化;

新疆体育高职分支
dyy před 7 měsíci
rodič
revize
d13006bc7d
3 změnil soubory, kde provedl 69 přidání a 44 odebrání
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.cshtml
  2. +62
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.js
  3. +6
    -43
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/MyClass.js

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.cshtml Zobrazit soubor

@@ -20,7 +20,7 @@
<input id="ksh" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasic">
<div class="lr-form-item-title">通知书号</font></div>
<div class="lr-form-item-title">通知书号</div>
<input id="NoticeNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasic">


+ 62
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Form.js Zobrazit soubor

@@ -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") {


+ 6
- 43
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/MyClass.js Zobrazit soubor

@@ -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) {


Načítá se…
Zrušit
Uložit