+
-
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/OfficialSeal/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/OfficialSeal/Index.js
index 5826e5dd7..9a7a353b9 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/OfficialSeal/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/OfficialSeal/Index.js
@@ -56,7 +56,59 @@ var bootstrap = function ($, learun) {
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
- learun.deleteForm(top.$.rootUrl + '/CustomFunction/OfficialSeal/DeleteForm', { keyValue: keyValue}, function () {
+ learun.deleteForm(top.$.rootUrl + '/CustomFunction/OfficialSeal/DeleteForm', { keyValue: keyValue }, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ }
+ });
+ // 启用
+ $('#lr_enable').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认启用该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/CustomFunction/OfficialSeal/IsEnable', { keyValue: keyValue, Enable: 1 }, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ }
+ });
+ // 禁用
+ $('#lr_disable').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认禁用该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/CustomFunction/OfficialSeal/IsEnable', { keyValue: keyValue, Enable: 0 }, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ }
+ });
+ // 挂失
+ $('#lr_loss').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认挂失该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/CustomFunction/OfficialSeal/UpdateStatus', { keyValue: keyValue, Status: 2 }, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ }
+ });
+ // 取消挂失
+ $('#lr_noloss').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认取消挂失该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/CustomFunction/OfficialSeal/UpdateStatus', { keyValue: keyValue, Status: 0 }, function () {
refreshGirdData();
});
}
@@ -73,29 +125,46 @@ var bootstrap = function ($, learun) {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/CustomFunction/OfficialSeal/GetPageList',
headData: [
- { label: "公章名称", name: "Name", width: 100, align: "left"},
- { label: "公章类型", name: "Type", width: 100, align: "left",
- formatterAsync: function (callback, value, row, op,$cell) {
- learun.clientdata.getAsync('dataItem', {
- key: value,
- code: 'SealType',
- callback: function (_data) {
- callback(_data.text);
- }
- });
- }},
- { label: "管理者", name: "ManageUserId", 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: "Enable", width: 100, align: "left",
+ { label: "公章名称", name: "Name", width: 100, align: "left" },
+ {
+ label: "公章类型", name: "Type", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'SealType',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ {
+ label: "管理者", name: "ManageUserId", 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: "AuthorizeUserId", 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: "Enable", width: 100, align: "left",
formatter: function (cellvalue) {
if (cellvalue == 1) {
return '
启用';
@@ -111,20 +180,22 @@ var bootstrap = function ($, learun) {
if (cellvalue == '0') {
return '
正常';
} else if (cellvalue == '1') {
- return '
借出';
+ return '
借出';
+ } else if (cellvalue == '2') {
+ return '
挂失';
}
}
},
],
- mainId:'Id',
+ mainId: 'Id',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
- $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/OfficialSeal/OfficialSealEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/OfficialSeal/OfficialSealEntity.cs
index 6228ef2d9..05d56faf1 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/OfficialSeal/OfficialSealEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/OfficialSeal/OfficialSealEntity.cs
@@ -44,6 +44,12 @@ namespace Learun.Application.TwoDevelopment.CustomFunction
///
[Column("MANAGEUSERID")]
public string ManageUserId { get; set; }
+ ///
+ /// 授权者
+ ///
+ [Column("AUTHORIZEUSERID")]
+ public string AuthorizeUserId { get; set; }
+
///
/// CreateUserId
///
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/DBModel/资产系统.PDM b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/DBModel/资产系统.PDM
index 7ee6ba7bd..8fd13ae05 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/DBModel/资产系统.PDM
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/DBModel/资产系统.PDM
@@ -1,5 +1,5 @@
-
+
@@ -48898,7 +48898,7 @@ B9AF
OfficialSeal
1574145306
edy
-1623221194
+1623289408
edy
公章管理
@@ -48958,10 +48958,11 @@ B9AF
Enable
1574145418
edy
-1623220673
+1623229959
edy
是否启用
-bit
+nvarchar(50)
+50
5B5298AC-E2A2-4577-B045-7A032A31F29E
@@ -48976,6 +48977,18 @@ B9AF
50
+93D38526-1203-4E40-94E9-8A5486434856
+AuthorizeUserId
+AuthorizeUserId
+1623220355
+edy
+1623289408
+edy
+授权者
+nvarchar(50)
+50
+
+
973AF0F8-2F98-4360-9340-6BA94A746D5E
CreateUserId
CreateUserId
@@ -48986,7 +48999,7 @@ B9AF
nvarchar(50)
50
-
+
12CF3C89-40EB-4983-BC0E-6C7D936A2393
CreateUserName
CreateUserName
@@ -48997,7 +49010,7 @@ B9AF
nvarchar(50)
50
-
+
87F668B2-8747-4EF7-91C9-6E290CAE4A6B
CreateTime
CreateTime
@@ -49007,7 +49020,7 @@ B9AF
edy
datetime
-
+
01B9E710-A116-4DDD-8026-7B4AD4056777
LastModifyUserId
LastModifyUserId
@@ -49018,7 +49031,7 @@ B9AF
nvarchar(50)
50
-
+
CFC51C1E-B06F-470F-87FD-B2F77B195A58
LastModifyUserName
LastModifyUserName
@@ -49029,7 +49042,7 @@ B9AF
nvarchar(50)
50
-
+
B844AE0D-AADA-4046-94B0-3B5E2387697B
LastModifyTime
LastModifyTime
@@ -49041,7 +49054,7 @@ B9AF
-
+
D957299A-CCED-4CB0-8067-094D3E08B217
Key_1
Key_1
@@ -49055,10 +49068,10 @@ B9AF
-
+
-
+
@@ -49067,11 +49080,12 @@ B9AF
OfficialSealUse
1574145306
edy
-1623221395
+1623222458
edy
+公章申请审批
-
+
F1B2FE48-71FF-494D-95A1-36372B439CED
Id
Id
@@ -49084,7 +49098,7 @@ B9AF
50
1
-
+
8A558B1B-B8B8-4FBC-8F27-86A631141CE5
Type
Type
@@ -49096,7 +49110,7 @@ B9AF
nvarchar(50)
50
-
+
BFACB616-A0D5-4D57-894D-2547F4F9AAE1
SealId
SealId
@@ -49108,31 +49122,30 @@ B9AF
nvarchar(50)
50
-
+
38AF693D-3070-4339-858B-83882F93993C
ApplyReason
ApplyReason
1574145418
edy
-1623221395
+1623226902
edy
申请理由
-nvarchar(50)
-50
+nvarchar(200)
+200
-
+
6E14DF3B-BD39-4800-8FB1-035CADD9AB09
Status
Status
1574145418
edy
-1623221180
+1623226902
edy
状态
-nvarchar(50)
-50
+int
-
+
883B4158-986C-4DC3-A868-8906823CE705
ApplyUserId
ApplyUserId
@@ -49143,7 +49156,7 @@ B9AF
nvarchar(50)
50
-
+
F4364B69-4FA4-4FCB-B19E-2E1EB86F6CA9
ApplyUserName
ApplyUserName
@@ -49154,7 +49167,7 @@ B9AF
nvarchar(50)
50
-
+
8B6676FF-21BC-4539-9CF9-0DCD4E139E8E
ApplyTime
ApplyTime
@@ -49166,7 +49179,7 @@ B9AF
-
+
2412DACA-8776-4044-BAB2-3683D7578380
Key_1
Key_1
@@ -49175,28 +49188,29 @@ B9AF
1623221180
edy
-
+
-
+
-
+
5F003D1A-69FB-4491-B659-E4180B5FF187
-公章使用/归还
+公章使用/归还记录
OfficialSealRecord
1574145306
edy
-1623221682
+1623222453
edy
+公章使用/归还记录
-
+
40E15FC5-EF45-4FCE-B546-D268C28E9819
Id
Id
@@ -49209,7 +49223,7 @@ B9AF
50
1
-
+
C585DA32-52C9-4F2C-B805-0BCDD3C7ECA8
SealId
SealId
@@ -49221,7 +49235,7 @@ B9AF
nvarchar(50)
50
-
+
30C0276C-CD32-48FD-8754-788019DDE10B
Status
Status
@@ -49233,7 +49247,7 @@ B9AF
nvarchar(50)
50
-
+
93FF43A6-CBD9-43ED-B7DD-DCE4609E54EB
ApplyUserId
ApplyUserId
@@ -49244,7 +49258,7 @@ B9AF
nvarchar(50)
50
-
+
F43C3463-84B9-47BE-9FCC-AD7575F36917
ApplyUserName
ApplyUserName
@@ -49255,7 +49269,7 @@ B9AF
nvarchar(50)
50
-
+
80237D49-9A65-48C6-A47A-53D3EF21637C
ApplyTime
ApplyTime
@@ -49267,7 +49281,7 @@ B9AF
-
+
9CF8F8CF-6335-4C23-BC6D-5C4125D3EC67
Key_1
Key_1
@@ -49276,15 +49290,15 @@ B9AF
1623221554
edy
-
+
-
+
-
+
@@ -49309,7 +49323,7 @@ B9AF
-
+
14D78C43-17A2-48F0-83B4-3DF757D5ABE8
1552635393
l
@@ -49344,7 +49358,7 @@ B9AF
-
+
FEAECB7B-8E2A-4492-A530-B0062E1511B8
1552635777
l
@@ -49379,7 +49393,7 @@ B9AF
-
+
81527A47-E565-49C2-AAA7-F0555E81CE72
1553245426
l
@@ -49414,7 +49428,7 @@ B9AF
-
+
A3225D9D-069C-4A67-ABF0-43DC2FA55CF0
1553247802
l
@@ -49448,7 +49462,7 @@ B9AF
-
+
B458081F-CEE1-4251-9E7A-5E9CC93519D5
1553248376
l
@@ -49483,7 +49497,7 @@ B9AF
-
+
8397C4F6-A728-4D3F-B2F8-FAC56886462B
1553248622
l
@@ -49517,7 +49531,7 @@ B9AF
-
+
2F8BC700-F31E-41CC-9DA8-9505EAC5DA85
1553483161
l
@@ -49551,7 +49565,7 @@ B9AF
-
+
0E2D2049-564F-4247-9F5B-B0AA82F9BE96
1555404296
admin
@@ -49568,7 +49582,7 @@ B9AF
-
+
46EC3E2A-6CBF-421A-9DA8-6BCCEDEC7DF5
PUBLIC
PUBLIC
@@ -49831,7 +49845,7 @@ B9AF
-
+
B1BAD530-6C69-4A9D-BD41-F62F564CA348
Microsoft SQL Server 2008
MSSQLSRV2008
From a8a662c5e5151c73ba1fdeea86380f2b5ceea994 Mon Sep 17 00:00:00 2001
From: zhangli <1109134334@qq.com>
Date: Thu, 10 Jun 2021 14:55:36 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E5=85=AC=E7=AB=A0=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controllers/OfficialSealController.cs | 27 ++++
.../OfficialSealRecordController.cs | 117 ++++++++++++++
.../Controllers/OfficialSealUseController.cs | 24 ++-
.../Views/OfficialSeal/Index.cshtml | 15 +-
.../Views/OfficialSeal/Index.js | 25 +++
.../Views/OfficialSealRecord/Form.cshtml | 15 ++
.../Views/OfficialSealRecord/Form.js | 52 ++++++
.../Views/OfficialSealRecord/Index.cshtml | 36 +++++
.../Views/OfficialSealRecord/Index.js | 115 +++++++++++++
.../Views/OfficialSealUse/Form.js | 19 ++-
.../Views/OfficialSealUse/Index.cshtml | 2 +-
.../Views/OfficialSealUse/Index.js | 37 +++--
.../Learun.Application.Web.csproj | 5 +
.../CustomFunction/OfficialSealRecordMap.cs | 29 ++++
.../Learun.Application.Mapping.csproj | 1 +
.../OfficialSeal/OfficialSealBLL.cs | 22 +++
.../OfficialSeal/OfficialSealIBLL.cs | 6 +
.../OfficialSeal/OfficialSealService.cs | 30 +++-
.../OfficialSealRecordBLL.cs | 125 +++++++++++++++
.../OfficialSealRecordEntity.cs | 75 +++++++++
.../OfficialSealRecordIBLL.cs | 48 ++++++
.../OfficialSealRecordService.cs | 151 ++++++++++++++++++
.../OfficialSealUse/OfficialSealUseBLL.cs | 22 +++
.../OfficialSealUse/OfficialSealUseIBLL.cs | 6 +
.../OfficialSealUse/OfficialSealUseService.cs | 52 +++++-
.../Learun.Application.TwoDevelopment.csproj | 4 +
26 files changed, 1024 insertions(+), 36 deletions(-)
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/OfficialSealRecordController.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/OfficialSealRecord/Form.cshtml
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/OfficialSealRecord/Form.js
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/OfficialSealRecord/Index.cshtml
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/OfficialSealRecord/Index.js
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/CustomFunction/OfficialSealRecordMap.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/OfficialSealRecord/OfficialSealRecordBLL.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/OfficialSealRecord/OfficialSealRecordEntity.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/OfficialSealRecord/OfficialSealRecordIBLL.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/OfficialSealRecord/OfficialSealRecordService.cs
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/OfficialSealController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/OfficialSealController.cs
index 812df1f1e..16f5da6bb 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/OfficialSealController.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/OfficialSealController.cs
@@ -93,6 +93,33 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
officialSealIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
+
+ ///
+ /// 启用/禁用
+ ///
+ /// 主键
+ ///
+ [HttpPost]
+ [AjaxOnly]
+ public ActionResult IsEnable(string keyValue,string Enable)
+ {
+ var entity = officialSealIBLL.GetOfficialSealEntity(keyValue);
+ entity.Enable = Enable;
+ officialSealIBLL.SaveEntity(keyValue, entity);
+ return Success("删除成功!");
+ }
+ ///
+ ///
+ ///
+ /// 主键
+ ///
+ [HttpPost]
+ [AjaxOnly]
+ public ActionResult UpdateStatus(string keyValue, string Status)
+ {
+ officialSealIBLL.UpdateStatus(keyValue, Status);
+ return Success("操作成功!");
+ }
///
/// 保存实体数据(新增、修改)
///
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/OfficialSealRecordController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/OfficialSealRecordController.cs
new file mode 100644
index 000000000..2ce655942
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/OfficialSealRecordController.cs
@@ -0,0 +1,117 @@
+using Learun.Util;
+using System.Data;
+using Learun.Application.TwoDevelopment.CustomFunction;
+using System.Web.Mvc;
+using System.Collections.Generic;
+
+namespace Learun.Application.Web.Areas.CustomFunction.Controllers
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2021-06-10 11:54
+ /// 描 述:系统日志
+ ///
+ public class OfficialSealRecordController : MvcControllerBase
+ {
+ private OfficialSealRecordIBLL officialSealRecordIBLL = new OfficialSealRecordBLL();
+
+ #region 视图功能
+
+ ///
+ /// 主页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Index()
+ {
+ return View();
+ }
+ ///
+ /// 表单页
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Form()
+ {
+ return View();
+ }
+ #endregion
+
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetPageList(string pagination, string queryJson)
+ {
+ Pagination paginationobj = pagination.ToObject();
+ var data = officialSealRecordIBLL.GetPageList(paginationobj, queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = paginationobj.total,
+ page = paginationobj.page,
+ records = paginationobj.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ /// 主键
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetFormData(string keyValue)
+ {
+ var OfficialSealRecordData = officialSealRecordIBLL.GetOfficialSealRecordEntity( keyValue );
+ var jsonData = new {
+ OfficialSealRecord = OfficialSealRecordData,
+ };
+ return Success(jsonData);
+ }
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ ///
+ [HttpPost]
+ [AjaxOnly]
+ public ActionResult DeleteForm(string keyValue)
+ {
+ officialSealRecordIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ ///
+ [HttpPost]
+ [ValidateAntiForgeryToken]
+ [AjaxOnly]
+ public ActionResult SaveForm(string keyValue, string strEntity)
+ {
+ OfficialSealRecordEntity entity = strEntity.ToObject();
+ officialSealRecordIBLL.SaveEntity(keyValue,entity);
+ if (string.IsNullOrEmpty(keyValue))
+ {
+ }
+ return Success("保存成功!");
+ }
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/OfficialSealUseController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/OfficialSealUseController.cs
index 01b76ceaf..3d8fe13ff 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/OfficialSealUseController.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/OfficialSealUseController.cs
@@ -26,7 +26,7 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
[HttpGet]
public ActionResult Index()
{
- return View();
+ return View();
}
///
/// 表单页
@@ -35,7 +35,7 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
[HttpGet]
public ActionResult Form()
{
- return View();
+ return View();
}
#endregion
@@ -71,8 +71,9 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
- var OfficialSealUseData = officialSealUseIBLL.GetOfficialSealUseEntity( keyValue );
- var jsonData = new {
+ var OfficialSealUseData = officialSealUseIBLL.GetOfficialSealUseEntity(keyValue);
+ var jsonData = new
+ {
OfficialSealUse = OfficialSealUseData,
};
return Success(jsonData);
@@ -93,6 +94,19 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
officialSealUseIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
+
+ ///
+ /// 提交 审核
+ ///
+ /// 主键
+ ///
+ [HttpPost]
+ [AjaxOnly]
+ public ActionResult UpdateStatus(string keyValue, int Status)
+ {
+ officialSealUseIBLL.UpdateStatus(keyValue, Status);
+ return Success("操作成功!");
+ }
///
/// 保存实体数据(新增、修改)
///
@@ -105,7 +119,7 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
public ActionResult SaveForm(string keyValue, string strEntity)
{
OfficialSealUseEntity entity = strEntity.ToObject();
- officialSealUseIBLL.SaveEntity(keyValue,entity);
+ officialSealUseIBLL.SaveEntity(keyValue, entity);
if (string.IsNullOrEmpty(keyValue))
{
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/OfficialSeal/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/OfficialSeal/Index.cshtml
index d00fe8543..59ae161c3 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/OfficialSeal/Index.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/OfficialSeal/Index.cshtml
@@ -33,10 +33,17 @@
打印