diff --git a/AMESCoreStudio.Web/Views/BAS/BAS005.cshtml b/AMESCoreStudio.Web/Views/BAS/BAS005.cshtml index 0b1d2963..1121afd8 100644 --- a/AMESCoreStudio.Web/Views/BAS/BAS005.cshtml +++ b/AMESCoreStudio.Web/Views/BAS/BAS005.cshtml @@ -189,8 +189,12 @@ hg.open('修改班別', '/BAS/BAS005U/' + obj.data.classID, 480, 480); } } + if (obj.data.statusNo == "A") + str = "停用"; + else + str = "啟用"; if (obj.event == 'del') { - hg.confirm("系統:" + obj.data.classNo + ",确定要删除吗?", function () { + hg.confirm("系統:" + obj.data.classNo + ",确定要" + str + "吗?", function () { $.ajax({ url: '/BAS/BAS005D', data: { id: obj.data.classID }, @@ -198,7 +202,7 @@ success: function (data) { if (data.success) { obj.del(); //只删本地数据 - hg.msghide("删除成功!"); + hg.msghide(str + "成功!"); init(data); request($("#selectunit").val()); } @@ -335,7 +339,10 @@ templet: function (item) { var btns = ''; btns = btns + '编辑'; - btns = btns + ' 啟用 / 停用 '; + if (item.statusNo == "A") + btns = btns + '停用'; + else if (item.statusNo == "S") + btns = btns + '啟用'; return btns; } diff --git a/AMESCoreStudio.Web/Views/BAS/BAS006.cshtml b/AMESCoreStudio.Web/Views/BAS/BAS006.cshtml index a77faafd..9754ea4d 100644 --- a/AMESCoreStudio.Web/Views/BAS/BAS006.cshtml +++ b/AMESCoreStudio.Web/Views/BAS/BAS006.cshtml @@ -75,7 +75,7 @@ templet: function (item) { var btns = ''; btns = btns + '编辑'; - btns = btns + ' 啟用 / 停用 '; + btns = btns + '刪除'; return btns; } @@ -111,13 +111,14 @@ } if (obj.event == 'del') { if (obj.data.segmentID) { - + /* var str; if (obj.data.statusNo == "A") str = "停用"; else str = "啟用"; - hg.confirm("系統:" + obj.data.segmentID + ",确定"+str+"要吗?", function () { + */ + hg.confirm("系統:" + obj.data.segmentID + ",确定要刪除吗?", function () { $.ajax({ url: '/BAS/BAS006D', data: { id: obj.data.segmentID }, @@ -125,7 +126,7 @@ success: function (data) { if (data.success) { obj.del(); //只删本地数据 - hg.msghide(str+"成功!"); + hg.msghide("刪除成功!"); } else { hg.msg(data.msg); diff --git a/AMESCoreStudio.Web/Views/KCS/KCS001.cshtml b/AMESCoreStudio.Web/Views/KCS/KCS001.cshtml index 5dd3fff5..abc19a77 100644 --- a/AMESCoreStudio.Web/Views/KCS/KCS001.cshtml +++ b/AMESCoreStudio.Web/Views/KCS/KCS001.cshtml @@ -100,7 +100,7 @@ //通过行tool编辑,lay-event="edit" function edit(obj) { if (obj.data.class) { - hg.open('修改MAC資料', '/KCS/KCS001U/' + obj.data.class + ',' + obj.data.classGroup, 640, 640); + hg.open('修改MAC資料', '/KCS/KCS001U/' + obj.data.class + ',' + obj.data.classGroup, 640, 400); } } @@ -133,7 +133,7 @@ layuiicon: '', class: 'layui-btn-normal', handler: function () { - hg.open('新增MAC資料', '/KCS/KCS001C', 640, 640); + hg.open('新增MAC資料', '/KCS/KCS001C', 640, 400); } } diff --git a/AMESCoreStudio.Web/Views/KCS/KCS001C.cshtml b/AMESCoreStudio.Web/Views/KCS/KCS001C.cshtml index 72af2ec3..3e121456 100644 --- a/AMESCoreStudio.Web/Views/KCS/KCS001C.cshtml +++ b/AMESCoreStudio.Web/Views/KCS/KCS001C.cshtml @@ -87,7 +87,10 @@