diff --git a/AMESCoreStudio.Web/Controllers/BASController.cs b/AMESCoreStudio.Web/Controllers/BASController.cs index 49b35147..a87c6d1c 100644 --- a/AMESCoreStudio.Web/Controllers/BASController.cs +++ b/AMESCoreStudio.Web/Controllers/BASController.cs @@ -1315,7 +1315,8 @@ namespace AMESCoreStudio.Web.Controllers if (result.Success) { var _msg = model.RuleStationID == 0 ? "添加成功!" : "修改成功!"; - return RedirectToAction("Refresh", "Home", new { msg = _msg }); + //return RedirectToAction("Refresh", "Home", new { msg = _msg }); + return RedirectToAction("BAS010", "BAS", new { msg = _msg }); } else { @@ -1354,6 +1355,7 @@ namespace AMESCoreStudio.Web.Controllers [HttpGet] public async Task GetRuleStationsByFlowAsync(int flowId, int page = 0, int limit = 10) { + /* var flow_id = ""; HttpContext.Request.Cookies.TryGetValue("FlowID4BAS010", out flow_id); if (flow_id != null) @@ -1374,6 +1376,7 @@ namespace AMESCoreStudio.Web.Controllers HttpContext.Response.Cookies.Append("FlowID4BAS010", flowId.ToString()); } } + */ var result_total = await _basApi.GetRuleStationsByFlow(flowId, 0, limit); @@ -1536,6 +1539,7 @@ namespace AMESCoreStudio.Web.Controllers [HttpGet] public async Task GetRulesesByFlowAsync(int flowId, int page = 0, int limit = 10) { + /* var flow_id = ""; HttpContext.Request.Cookies.TryGetValue("FlowID4BAS011", out flow_id); if (flow_id != null) @@ -1556,6 +1560,7 @@ namespace AMESCoreStudio.Web.Controllers HttpContext.Response.Cookies.Append("FlowID4BAS011", flowId.ToString()); } } + */ var result_total = await _basApi.GetRulesesByFlow(flowId, 0, limit); var result = await _basApi.GetRulesesByFlow(flowId, page, limit); diff --git a/AMESCoreStudio.Web/Views/BAS/BAS003.cshtml b/AMESCoreStudio.Web/Views/BAS/BAS003.cshtml index 1b297e41..debb3b48 100644 --- a/AMESCoreStudio.Web/Views/BAS/BAS003.cshtml +++ b/AMESCoreStudio.Web/Views/BAS/BAS003.cshtml @@ -161,7 +161,13 @@ field: 'unit', title: '製程單位', templet: function (d) { - return d.unit["unitName"]; + if (d.unit != null) { + return d.unit["unitName"]; + } + else + { + return ''; + } } }, { diff --git a/AMESCoreStudio.Web/Views/BAS/BAS005.cshtml b/AMESCoreStudio.Web/Views/BAS/BAS005.cshtml index 755eaffb..0b1d2963 100644 --- a/AMESCoreStudio.Web/Views/BAS/BAS005.cshtml +++ b/AMESCoreStudio.Web/Views/BAS/BAS005.cshtml @@ -291,12 +291,10 @@ }, { field: 'beginTime', - title: '上班時間' }, { field: 'endTime', - title: '下班時間' }, { @@ -304,12 +302,16 @@ width: 100, title: '休息時間(分)' }, + { + field: 'statusNo', + title: '狀態' + }, { field: 'sartDate', width: 100, title: '起用時間', templet: function (d) { - return layui.util.toDateString(d.bulletinTime, "yyyy-MM-dd"); + return layui.util.toDateString(d.sartDate, "yyyy-MM-dd"); } }, { @@ -317,7 +319,7 @@ width: 100, title: '停用時間', templet: function (d) { - return layui.util.toDateString(d.bulletinTime, "yyyy-MM-dd"); + return layui.util.toDateString(d.stopDate, "yyyy-MM-dd"); } }, { @@ -333,7 +335,7 @@ templet: function (item) { var btns = ''; btns = btns + '编辑'; - btns = btns + '删除'; + btns = btns + ' 啟用 / 停用 '; return btns; } diff --git a/AMESCoreStudio.Web/Views/BAS/BAS006.cshtml b/AMESCoreStudio.Web/Views/BAS/BAS006.cshtml index b15df396..a77faafd 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; } diff --git a/AMESCoreStudio.Web/Views/BAS/BAS010.cshtml b/AMESCoreStudio.Web/Views/BAS/BAS010.cshtml index 0460c6d7..4fdff7c2 100644 --- a/AMESCoreStudio.Web/Views/BAS/BAS010.cshtml +++ b/AMESCoreStudio.Web/Views/BAS/BAS010.cshtml @@ -76,7 +76,7 @@ { console.info(result.data); $("#flow").empty();//清空下拉框的值 - $("#flow").prepend(""); + $("#flow").prepend(""); $.each(result.data, function (index, item) { $("#flow").append($("