diff --git a/AMESCoreStudio.Web/Controllers/WHSController.cs b/AMESCoreStudio.Web/Controllers/WHSController.cs index c630648b..c91931da 100644 --- a/AMESCoreStudio.Web/Controllers/WHSController.cs +++ b/AMESCoreStudio.Web/Controllers/WHSController.cs @@ -586,11 +586,11 @@ namespace AMESCoreStudio.Web.Controllers } public async Task GetStandardWorkTimes005Async(string u, string l, string i) { - if (l == "") + if (string.IsNullOrEmpty(l)) return Json(new Table() { count = 0, data = null }); if (string.IsNullOrEmpty(i)) i = "Null"; - if (string.IsNullOrEmpty(u)) + if (string.IsNullOrEmpty(u) || u=="0") u = "Null"; var result = await _whsApi.GetStandardWorkTimes005(u, l, i); diff --git a/AMESCoreStudio.Web/Views/WHS/WHS003.cshtml b/AMESCoreStudio.Web/Views/WHS/WHS003.cshtml index ce70d31b..2fdf22f1 100644 --- a/AMESCoreStudio.Web/Views/WHS/WHS003.cshtml +++ b/AMESCoreStudio.Web/Views/WHS/WHS003.cshtml @@ -232,255 +232,5 @@ } - @**@ + } \ No newline at end of file diff --git a/AMESCoreStudio.Web/Views/WHS/WHS005.cshtml b/AMESCoreStudio.Web/Views/WHS/WHS005.cshtml index 7abd8dce..b4fbe16d 100644 --- a/AMESCoreStudio.Web/Views/WHS/WHS005.cshtml +++ b/AMESCoreStudio.Web/Views/WHS/WHS005.cshtml @@ -34,7 +34,7 @@
- +
@@ -55,9 +55,11 @@ var form = layui.form, layer = layui.layer; var table = layui.table; + table.render({ elem: '#test' , url: "@Url.Action("GetStandardWorkTimes", "WHS")" + , title: '標準工時資料維護' , cols: [[ { @@ -147,7 +149,8 @@ }); //如果需要使用原始保单提交方式(刷新整个页面) //请注释掉下方 监听表单的 代码 - form.on('submit(demo1)', function (data) { + form.on('submit(submitBtn)', function (data) { + console.log("reload"); //打印表单数据 table.reload('test', { url: '/WHS/GetStandardWorkTimes005/', @@ -160,6 +163,7 @@ return false;//阻止默认表单提交行为 }); + }); var options = { el: '#demo1', @@ -172,13 +176,13 @@ list: [ 'ALL', 'CLEAR', - 'REVERSE', ] }, data: [], }; var demo1 = xmSelect.render(options) setTimeout(function () { + console.log("setTimeout"); $.ajax({ url: '/BAS/GetLineInfoesList', method: 'get', @@ -189,6 +193,7 @@ data: res.data, autoRow: true, }) + console.log("setTimeoutsuccess"); } }); }, 100); diff --git a/AMESCoreStudio.Web/Views/WHS/WHS006.cshtml b/AMESCoreStudio.Web/Views/WHS/WHS006.cshtml index 4e3a8b06..1795b634 100644 --- a/AMESCoreStudio.Web/Views/WHS/WHS006.cshtml +++ b/AMESCoreStudio.Web/Views/WHS/WHS006.cshtml @@ -88,7 +88,7 @@
@**@ - +