Pārlūkot izejas kodu

学生证书管理 提交后不可编辑删除

新疆警官学校中职
ndbs pirms 2 gadiem
vecāks
revīzija
4f83750fab
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. +9
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Index.js

+ 9
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Index.js Parādīt failu

@@ -66,6 +66,11 @@ var bootstrap = function ($, learun) {
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var Status = $('#gridtable').jfGridValue('Status');
if (Status != 0) {
learun.alert.warning("当前项目已提交,不可编辑!");
return;
}
learun.layerForm({
id: 'form',
title: '编辑',
@@ -141,6 +146,10 @@ var bootstrap = function ($, learun) {
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
if (Status != 0) {
learun.alert.warning("当前项目已提交,不可编辑!");
return;
}
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StudentCertificate/DeleteForm', { keyValue: keyValue }, function () {


Notiek ielāde…
Atcelt
Saglabāt