Ver código fonte

1

金隅分支
edy 3 anos atrás
pai
commit
53d2a82870
3 arquivos alterados com 27 adições e 14 exclusões
  1. +17
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/FillinFromController.cs
  2. +9
    -13
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromEntity.cs

+ 17
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/FillinFromController.cs Ver arquivo

@@ -141,5 +141,22 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
}
#endregion

#region 扩展数据
/// <summary>
/// 隐藏/撤下
/// </summary>
/// <param name="keyValue"></param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult HideList(string keyValue,string strEntity)
{
FillinFromEntity entity = strEntity.ToObject<FillinFromEntity>();
entity.State = 0;
fillinFromIBLL.SaveEntity(keyValue, entity);
return Success("保存成功!");
}

#endregion
}
}

+ 9
- 13
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js Ver arquivo

@@ -78,14 +78,14 @@ var bootstrap = function ($, learun) {
$('#lr_cancel').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var RStatus = $('#gridtable').jfGridValue('State');
if (RStatus == 1) {
var State = $('#gridtable').jfGridValue('State');
if (State !== 1 && State !== 2 && State !== 0) {
learun.alert.warning("已提交!");
return false;
}
learun.layerConfirm('是否确认提交该项!', function (res) {
learun.layerConfirm('是否确认撤回该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/Ass_Repair/DoSubmit', { keyValue: keyValue }, function () {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/DoCancel', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
@@ -135,16 +135,12 @@ var bootstrap = function ($, learun) {
$('#lr_hide').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var RStatus = $('#gridtable').jfGridValue('State');
if (RStatus == 1) {
learun.alert.warning("已提交!");
return false;
}
learun.layerConfirm('是否确认提交该项!', function (res) {
learun.layerConfirm('是否确认隐藏该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/Ass_Repair/DoSubmit', { keyValue: keyValue }, function () {
refreshGirdData();
});
param = param || {},
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/HideLis', { keyValue: keyValue, queryJson: JSON.stringify(param) }, function () {
refreshGirdData();
});
}
});
}


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromEntity.cs Ver arquivo

@@ -38,7 +38,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 公式
/// </summary>
[Column("FORMULA")]
public string Formul { get; set; }
public string FORMULA { get; set; }
/// <summary>
/// 结果
/// </summary>


Carregando…
Cancelar
Salvar