日志分表 任务日志 操作日志 接口日志

添加对应的日志文件
修改主子表的表结构信息
删除无关字段信息
测试添加数据到历史表中
This commit is contained in:
zhougf committed 2024-03-15 18:45:10 +08:00
1 parent ebdd40c518
commit 4f2ba2a3ee
101 files changed
+1004 -418

No files matched your search

@@ -0,0 +1,79 @@
// WTM默认页面 Wtm buidin page
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using HHWMS.Web;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
namespace WalkingTec.Mvvm.Mvc.Admin.Controllers
{
[Area("_Admin")]
[ActionDescription("MenuKey.InterfaceLog")]
public class InterfaceLogController : BaseController
{
[ActionDescription("Sys.Search")]
public IActionResult Index()
{
var vm = Wtm.CreateVM<InterfaceLogListVM>();
return PartialView(vm);
}
[ActionDescription("Sys.Search")]
[HttpPost]
public string Search(InterfaceLogSearcher searcher)
{
var vm = Wtm.CreateVM<InterfaceLogListVM>(passInit:true);
if (ModelState.IsValid)
{
vm.Searcher = searcher;
return vm.GetJson(false);
}
else
{
return vm.GetError();
}
}
[HttpGet]
[ActionDescription("Sys.Details")]
public IActionResult Details(string id)
{
var vm = Wtm.CreateVM<InterfaceLogVM>(id);
return PartialView(vm);
}
[ActionDescription("Sys.Export")]
[HttpPost]
public IActionResult ExportExcel(InterfaceLogListVM vm)
{
return vm.GetExportData();
}
[HttpPost]
[ActionDescription("Sys.BatchDelete")]
public ActionResult BatchDelete(string[] IDs)
{
var vm = Wtm.CreateVM<InterfaceLogBatchVM>(Ids: IDs);
return PartialView(vm);
}
[HttpPost]
[ActionDescription("Sys.BatchDelete")]
public ActionResult DoBatchDelete(InterfaceLogBatchVM vm, IFormCollection nouse)
{
if (!ModelState.IsValid || !vm.DoBatchDelete())
{
return PartialView("BatchDelete", vm);
}
else
{
return FFResult().CloseDialog().RefreshGrid().Alert(Localizer["Sys.BatchDeleteSuccess", vm.Ids.Length]);
}
}
}
}
@@ -0,0 +1,78 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using HHWMS.Web;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
namespace WalkingTec.Mvvm.Mvc.Admin.Controllers
{
[Area("_Admin")]
[ActionDescription("MenuKey.JobLog")]
public class JobLogController : BaseController
{
[ActionDescription("Sys.Search")]
public IActionResult Index()
{
var vm = Wtm.CreateVM<JobLogListVM>();
return PartialView(vm);
}
[ActionDescription("Sys.Search")]
[HttpPost]
public string Search(JobLogSearcher searcher)
{
var vm = Wtm.CreateVM<JobLogListVM>(passInit:true);
if (ModelState.IsValid)
{
vm.Searcher = searcher;
return vm.GetJson(false);
}
else
{
return vm.GetError();
}
}
[HttpGet]
[ActionDescription("Sys.Details")]
public IActionResult Details(string id)
{
var vm = Wtm.CreateVM<JobLogVM>(id);
return PartialView(vm);
}
[ActionDescription("Sys.Export")]
[HttpPost]
public IActionResult ExportExcel(JobLogListVM vm)
{
return vm.GetExportData();
}
[HttpPost]
[ActionDescription("Sys.BatchDelete")]
public ActionResult BatchDelete(string[] IDs)
{
var vm = Wtm.CreateVM<JobLogBatchVM>(Ids: IDs);
return PartialView(vm);
}
[HttpPost]
[ActionDescription("Sys.BatchDelete")]
public ActionResult DoBatchDelete(JobLogBatchVM vm, IFormCollection nouse)
{
if (!ModelState.IsValid || !vm.DoBatchDelete())
{
return PartialView("BatchDelete", vm);
}
else
{
return FFResult().CloseDialog().RefreshGrid().Alert(Localizer["Sys.BatchDeleteSuccess", vm.Ids.Length]);
}
}
}
}
@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web
{
public partial class InterfaceLogBatchVM : BaseBatchVM<InterfaceLog, InterfaceLog_BatchEdit>
{
public InterfaceLogBatchVM()
{
ListVM = new InterfaceLogListVM();
LinkedVM = new InterfaceLog_BatchEdit();
}
}
/// <summary>
/// Class to define batch edit fields
/// </summary>
public class InterfaceLog_BatchEdit : BaseVM
{
protected override void InitVM()
{
}
}
}
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web
{
public partial class InterfaceLogTemplateVM : BaseTemplateVM
{
protected override void InitVM()
{
}
}
public class InterfaceLogImportVM : BaseImportVM<InterfaceLogTemplateVM, InterfaceLog>
{
}
}
@@ -0,0 +1,88 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web
{
public partial class InterfaceLogListVM : BasePagedListVM<InterfaceLog_View, InterfaceLogSearcher>
{
protected override List<GridAction> InitGridAction()
{
return new List<GridAction>
{
this.MakeStandardAction("InterfaceLog", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"_Admin", dialogWidth: 800),
this.MakeStandardAction("InterfaceLog", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "_Admin", dialogWidth: 800),
this.MakeStandardAction("InterfaceLog", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "_Admin", dialogWidth: 800),
this.MakeStandardAction("InterfaceLog", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "_Admin", dialogWidth: 800),
this.MakeStandardAction("InterfaceLog", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "_Admin", dialogWidth: 800),
this.MakeStandardAction("InterfaceLog", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "_Admin", dialogWidth: 800),
this.MakeStandardAction("InterfaceLog", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "_Admin", dialogWidth: 800),
this.MakeStandardAction("InterfaceLog", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "_Admin"),
};
}
protected override IEnumerable<IGridColumn<InterfaceLog_View>> InitGridHeader()
{
return new List<GridColumn<InterfaceLog_View>>{
this.MakeGridHeader(x => x.ModuleName),
this.MakeGridHeader(x => x.ActionName),
this.MakeGridHeader(x => x.ITCode),
this.MakeGridHeader(x => x.ActionUrl),
this.MakeGridHeader(x => x.ActionTime),
this.MakeGridHeader(x => x.Duration),
this.MakeGridHeader(x => x.Remark),
this.MakeGridHeader(x => x.IP),
this.MakeGridHeader(x => x.LogType),
this.MakeGridHeader(x => x.TenantCode),
this.MakeGridHeader(x => x.Request),
this.MakeGridHeader(x => x.Result),
this.MakeGridHeaderAction(width: 200)
};
}
public override IOrderedQueryable<InterfaceLog_View> GetSearchQuery()
{
var query = DC.Set<InterfaceLog>()
.CheckContain(Searcher.ModuleName, x=>x.ModuleName)
.CheckContain(Searcher.ActionName, x=>x.ActionName)
.CheckContain(Searcher.ITCode, x=>x.ITCode)
.CheckContain(Searcher.ActionUrl, x=>x.ActionUrl)
.CheckBetween(Searcher.ActionTime?.GetStartTime(), Searcher.ActionTime?.GetEndTime(), x => x.ActionTime, includeMax: false)
.CheckContain(Searcher.IP, x=>x.IP)
.CheckEqual(Searcher.LogType, x=>x.LogType)
.CheckContain(Searcher.Request, x=>x.Request)
.CheckContain(Searcher.Result, x=>x.Result)
.Select(x => new InterfaceLog_View
{
ID = x.ID,
ModuleName = x.ModuleName,
ActionName = x.ActionName,
ITCode = x.ITCode,
ActionUrl = x.ActionUrl,
ActionTime = x.ActionTime,
Duration = x.Duration,
Remark = x.Remark,
IP = x.IP,
LogType = x.LogType,
TenantCode = x.TenantCode,
Request = x.Request,
Result = x.Result,
})
.OrderBy(x => x.ID);
return query;
}
}
public class InterfaceLog_View : InterfaceLog{
}
}
@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web
{
public partial class InterfaceLogSearcher : BaseSearcher
{
[Display(Name = "_Admin.Module")]
public String ModuleName { get; set; }
[Display(Name = "_Admin.Action")]
public String ActionName { get; set; }
[Display(Name = "_Admin.Account")]
public String ITCode { get; set; }
[Display(Name = "Url")]
public String ActionUrl { get; set; }
[Display(Name = "_Admin.ActionTime")]
public DateRange ActionTime { get; set; }
[Display(Name = "IP")]
public String IP { get; set; }
[Display(Name = "_Admin.LogType")]
public ActionLogTypesEnum? LogType { get; set; }
[Display(Name = "_Admin.Request")]
public String Request { get; set; }
[Display(Name = "_Admin.Response")]
public String Result { get; set; }
protected override void InitVM()
{
}
}
}
@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web
{
public partial class InterfaceLogVM : BaseCRUDVM<InterfaceLog>
{
public InterfaceLogVM()
{
}
protected override void InitVM()
{
}
public override void DoAdd()
{
base.DoAdd();
}
public override void DoEdit(bool updateAllFields = false)
{
base.DoEdit(updateAllFields);
}
public override void DoDelete()
{
base.DoDelete();
}
}
}
@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web
{
public partial class JobLogBatchVM : BaseBatchVM<JobLog, JobLog_BatchEdit>
{
public JobLogBatchVM()
{
ListVM = new JobLogListVM();
LinkedVM = new JobLog_BatchEdit();
}
}
/// <summary>
/// Class to define batch edit fields
/// </summary>
public class JobLog_BatchEdit : BaseVM
{
protected override void InitVM()
{
}
}
}
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web
{
public partial class JobLogTemplateVM : BaseTemplateVM
{
protected override void InitVM()
{
}
}
public class JobLogImportVM : BaseImportVM<JobLogTemplateVM, JobLog>
{
}
}
@@ -0,0 +1,84 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web
{
public partial class JobLogListVM : BasePagedListVM<JobLog_View, JobLogSearcher>
{
protected override List<GridAction> InitGridAction()
{
return new List<GridAction>
{
this.MakeStandardAction("JobLog", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"_Admin", dialogWidth: 800),
this.MakeStandardAction("JobLog", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "_Admin", dialogWidth: 800),
this.MakeStandardAction("JobLog", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "_Admin", dialogWidth: 800),
this.MakeStandardAction("JobLog", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "_Admin", dialogWidth: 800),
this.MakeStandardAction("JobLog", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "_Admin", dialogWidth: 800),
this.MakeStandardAction("JobLog", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "_Admin", dialogWidth: 800),
this.MakeStandardAction("JobLog", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "_Admin", dialogWidth: 800),
this.MakeStandardAction("JobLog", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "_Admin"),
};
}
protected override IEnumerable<IGridColumn<JobLog_View>> InitGridHeader()
{
return new List<GridColumn<JobLog_View>>{
this.MakeGridHeader(x => x.ModuleName),
this.MakeGridHeader(x => x.ActionName),
this.MakeGridHeader(x => x.ITCode),
this.MakeGridHeader(x => x.ActionUrl),
this.MakeGridHeader(x => x.ActionTime),
this.MakeGridHeader(x => x.Duration),
this.MakeGridHeader(x => x.Remark),
this.MakeGridHeader(x => x.IP),
this.MakeGridHeader(x => x.LogType),
this.MakeGridHeader(x => x.TenantCode),
this.MakeGridHeader(x => x.Request),
this.MakeGridHeader(x => x.Result),
this.MakeGridHeaderAction(width: 200)
};
}
public override IOrderedQueryable<JobLog_View> GetSearchQuery()
{
var query = DC.Set<JobLog>()
.CheckContain(Searcher.ModuleName, x=>x.ModuleName)
.CheckContain(Searcher.ActionName, x=>x.ActionName)
.CheckContain(Searcher.ITCode, x=>x.ITCode)
.CheckContain(Searcher.ActionUrl, x=>x.ActionUrl)
.CheckBetween(Searcher.ActionTime?.GetStartTime(), Searcher.ActionTime?.GetEndTime(), x => x.ActionTime, includeMax: false)
.Select(x => new JobLog_View
{
ID = x.ID,
ModuleName = x.ModuleName,
ActionName = x.ActionName,
ITCode = x.ITCode,
ActionUrl = x.ActionUrl,
ActionTime = x.ActionTime,
Duration = x.Duration,
Remark = x.Remark,
IP = x.IP,
LogType = x.LogType,
TenantCode = x.TenantCode,
Request = x.Request,
Result = x.Result,
})
.OrderBy(x => x.ID);
return query;
}
}
public class JobLog_View : JobLog{
}
}
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web
{
public partial class JobLogSearcher : BaseSearcher
{
[Display(Name = "_Admin.Module")]
public String ModuleName { get; set; }
[Display(Name = "_Admin.Action")]
public String ActionName { get; set; }
[Display(Name = "_Admin.Account")]
public String ITCode { get; set; }
[Display(Name = "Url")]
public String ActionUrl { get; set; }
[Display(Name = "_Admin.ActionTime")]
public DateRange ActionTime { get; set; }
protected override void InitVM()
{
}
}
}
@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web
{
public partial class JobLogVM : BaseCRUDVM<JobLog>
{
public JobLogVM()
{
}
protected override void InitVM()
{
}
public override void DoAdd()
{
base.DoAdd();
}
public override void DoEdit(bool updateAllFields = false)
{
base.DoEdit(updateAllFields);
}
public override void DoDelete()
{
base.DoDelete();
}
}
}
@@ -0,0 +1,12 @@
@model HHWMS.Web.InterfaceLogBatchVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<wt:quote>@Localizer["Sys.BatchDeleteConfirm"]</wt:quote>
<wt:hidden field="Ids" />
<wt:grid vm="ListVM" use-local-data="true" height="300" hidden-checkbox="true" hidden-panel="true"/>
<wt:row align="AlignEnum.Right">
<wt:submitbutton theme=" ButtonThemeEnum.Warm" text="@Localizer["Sys.Delete"]"/>
<wt:closebutton />
</wt:row>
</wt:form>
@@ -0,0 +1,14 @@
@model HHWMS.Web.InterfaceLogBatchVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<div style="margin-bottom:10px">@Localizer["Sys.BatchEditConfirm"] </div>
<wt:row items-per-row="ItemsPerRowEnum.Two">
</wt:row>
<wt:hidden field="Ids" />
<wt:grid vm="ListVM" use-local-data="true" height="300" hidden-checkbox="true" hidden-panel="true"/>
<wt:row align="AlignEnum.Right">
<wt:submitbutton />
<wt:closebutton />
</wt:row>
</wt:form>
@@ -0,0 +1,11 @@
@model HHWMS.Web.InterfaceLogVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<wt:row items-per-row="ItemsPerRowEnum.Two">
</wt:row>
<wt:row align="AlignEnum.Right">
<wt:submitbutton />
<wt:closebutton />
</wt:row>
</wt:form>
@@ -0,0 +1,13 @@
@model HHWMS.Web.InterfaceLogVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<wt:quote>@Localizer["Sys.DeleteConfirm"]</wt:quote>
<wt:row items-per-row="ItemsPerRowEnum.Two">
</wt:row>
<wt:hidden field="Entity.ID" />
<wt:row align="AlignEnum.Right">
<wt:submitbutton theme=" ButtonThemeEnum.Warm" text="@Localizer["Sys.Delete"]"/>
<wt:closebutton />
</wt:row>
</wt:form>
@@ -0,0 +1,10 @@
@model HHWMS.Web.InterfaceLogVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<wt:row items-per-row="ItemsPerRowEnum.Two">
</wt:row>
<wt:row align="AlignEnum.Right">
<wt:closebutton />
</wt:row>
</wt:form>
@@ -0,0 +1,12 @@
@model HHWMS.Web.InterfaceLogVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<wt:row items-per-row="ItemsPerRowEnum.Two">
</wt:row>
<wt:hidden field="Entity.ID" />
<wt:row align="AlignEnum.Right">
<wt:submitbutton />
<wt:closebutton />
</wt:row>
</wt:form>
@@ -0,0 +1,14 @@
@model HHWMS.Web.InterfaceLogImportVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<wt:row align="AlignEnum.Right">
<wt:downloadTemplateButton vm="@Model" />
</wt:row>
<wt:upload field="UploadFileId" label-text="@Model.Localizer["Sys.UploadTemplate"]" upload-type="ExcelFile" />
<wt:grid vm="ErrorListVM" use-local-data="true" hidden-checkbox="true" hidden-grid-index="true" hidden-panel="true" height="300"/>
<wt:row align="AlignEnum.Right">
<wt:submitbutton />
<wt:closebutton />
</wt:row>
</wt:form>
@@ -0,0 +1,17 @@
@model HHWMS.Web.InterfaceLogListVM
@inject IStringLocalizer<Program> Localizer;
<wt:searchpanel vm="@Model" reset-btn="true">
<wt:row items-per-row="ItemsPerRowEnum.Three">
<wt:textbox field="Searcher.ModuleName" />
<wt:textbox field="Searcher.ActionName" />
<wt:textbox field="Searcher.ITCode" />
<wt:textbox field="Searcher.ActionUrl" />
<wt:datetime field="Searcher.ActionTime" range="true" />
<wt:textbox field="Searcher.IP" />
<wt:combobox field="Searcher.LogType" empty-text="@Localizer["Sys.All"]" />
<wt:textbox field="Searcher.Request" />
<wt:textbox field="Searcher.Result" />
</wt:row>
</wt:searchpanel>
<wt:grid vm="@Model" url="/_Admin/InterfaceLog/Search"/>
@@ -0,0 +1,12 @@
@model HHWMS.Web.JobLogBatchVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<wt:quote>@Localizer["Sys.BatchDeleteConfirm"]</wt:quote>
<wt:hidden field="Ids" />
<wt:grid vm="ListVM" use-local-data="true" height="300" hidden-checkbox="true" hidden-panel="true"/>
<wt:row align="AlignEnum.Right">
<wt:submitbutton theme=" ButtonThemeEnum.Warm" text="@Localizer["Sys.Delete"]"/>
<wt:closebutton />
</wt:row>
</wt:form>
@@ -0,0 +1,14 @@
@model HHWMS.Web.JobLogBatchVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<div style="margin-bottom:10px">@Localizer["Sys.BatchEditConfirm"] </div>
<wt:row items-per-row="ItemsPerRowEnum.Two">
</wt:row>
<wt:hidden field="Ids" />
<wt:grid vm="ListVM" use-local-data="true" height="300" hidden-checkbox="true" hidden-panel="true"/>
<wt:row align="AlignEnum.Right">
<wt:submitbutton />
<wt:closebutton />
</wt:row>
</wt:form>
@@ -0,0 +1,11 @@
@model HHWMS.Web.JobLogVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<wt:row items-per-row="ItemsPerRowEnum.Two">
</wt:row>
<wt:row align="AlignEnum.Right">
<wt:submitbutton />
<wt:closebutton />
</wt:row>
</wt:form>
@@ -0,0 +1,13 @@
@model HHWMS.Web.JobLogVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<wt:quote>@Localizer["Sys.DeleteConfirm"]</wt:quote>
<wt:row items-per-row="ItemsPerRowEnum.Two">
</wt:row>
<wt:hidden field="Entity.ID" />
<wt:row align="AlignEnum.Right">
<wt:submitbutton theme=" ButtonThemeEnum.Warm" text="@Localizer["Sys.Delete"]"/>
<wt:closebutton />
</wt:row>
</wt:form>
@@ -0,0 +1,10 @@
@model HHWMS.Web.JobLogVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<wt:row items-per-row="ItemsPerRowEnum.Two">
</wt:row>
<wt:row align="AlignEnum.Right">
<wt:closebutton />
</wt:row>
</wt:form>
@@ -0,0 +1,12 @@
@model HHWMS.Web.JobLogVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<wt:row items-per-row="ItemsPerRowEnum.Two">
</wt:row>
<wt:hidden field="Entity.ID" />
<wt:row align="AlignEnum.Right">
<wt:submitbutton />
<wt:closebutton />
</wt:row>
</wt:form>
@@ -0,0 +1,14 @@
@model HHWMS.Web.JobLogImportVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<wt:row align="AlignEnum.Right">
<wt:downloadTemplateButton vm="@Model" />
</wt:row>
<wt:upload field="UploadFileId" label-text="@Model.Localizer["Sys.UploadTemplate"]" upload-type="ExcelFile" />
<wt:grid vm="ErrorListVM" use-local-data="true" hidden-checkbox="true" hidden-grid-index="true" hidden-panel="true" height="300"/>
<wt:row align="AlignEnum.Right">
<wt:submitbutton />
<wt:closebutton />
</wt:row>
</wt:form>
@@ -0,0 +1,13 @@
@model HHWMS.Web.JobLogListVM
@inject IStringLocalizer<Program> Localizer;
<wt:searchpanel vm="@Model" reset-btn="true">
<wt:row items-per-row="ItemsPerRowEnum.Three">
<wt:textbox field="Searcher.ModuleName" />
<wt:textbox field="Searcher.ActionName" />
<wt:textbox field="Searcher.ITCode" />
<wt:textbox field="Searcher.ActionUrl" />
<wt:datetime field="Searcher.ActionTime" range="true" />
</wt:row>
</wt:searchpanel>
<wt:grid vm="@Model" url="/_Admin/JobLog/Search"/>