zhichao lei vor 4 Jahren
Ursprung
Commit
b7dbc39635
2 geänderte Dateien mit 15 neuen und 6 gelöschten Zeilen
  1. +13
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Index.js
  2. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/plugin/custmerform/lr-formcomponts.js

+ 13
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Index.js Datei anzeigen

@@ -106,15 +106,10 @@ var bootstrap = function ($, learun) {
$('#lr_delete').on('click', function () { $('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('RID'); var keyValue = $('#gridtable').jfGridValue('RID');
if (learun.checkrow(keyValue)) { if (learun.checkrow(keyValue)) {
var SendFlag = $('#gridtable').jfGridValue('RSendFlag');
if (SendFlag != 0) {
learun.alert.warning("当前项目已提交不能删除!");
return;
}
learun.layerConfirm('是否确认删除该项!', function (res) { learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) { if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/DeleteForm', { keyValue: keyValue }, function () { learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
page.search();
}); });
} }
}); });
@@ -205,6 +200,18 @@ var bootstrap = function ($, learun) {
$('#gridtable').lrAuthorizeJfGrid({ $('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/GetPageList', url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/GetPageList',
headData: [ headData: [
{
label: "录入人员", name: "SenderId", width: 100, 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']);
}
});
}
},
{ label: "来文单位", name: "RSourceUnit", width: 100, align: "left" }, { label: "来文单位", name: "RSourceUnit", width: 100, align: "left" },
{ {
label: "收文单位", name: "RReceiveUnit", width: 100, align: "left", label: "收文单位", name: "RReceiveUnit", width: 100, align: "left",


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/plugin/custmerform/lr-formcomponts.js Datei anzeigen

@@ -1682,6 +1682,8 @@
{ id: "NotNull", text: "不能为空!" }, { id: "NotNull", text: "不能为空!" },
{ id: "Num", text: "必须为数字!" }, { id: "Num", text: "必须为数字!" },
{ id: "NumOrNull", text: "数字或空!" }, { id: "NumOrNull", text: "数字或空!" },
{ id: "PositiveFloatintZero", text: "整数或小数(不能为负数)!" },
{ id: "PositiveFloatint", text: "整数或小数(不能为零和负数)!" },
{ id: "Email", text: "必须为E-mail格式!" }, { id: "Email", text: "必须为E-mail格式!" },
{ id: "EmailOrNull", text: "E-mail格式或空!" }, { id: "EmailOrNull", text: "E-mail格式或空!" },
{ id: "EnglishStr", text: "必须为字符串!" }, { id: "EnglishStr", text: "必须为字符串!" },


Laden…
Abbrechen
Speichern