添加项目文件。
This commit is contained in:
1 parent
05e131ca4e
commit
514d6f5255
1162 files changed
+81255
No files matched your search
+35
@@ -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 HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class TaskHeaderHistoryBatchVM : BaseBatchVM<TaskHeaderHistory, TaskHeaderHistory_BatchEdit>
|
||||
{
|
||||
public TaskHeaderHistoryBatchVM()
|
||||
{
|
||||
ListVM = new TaskHeaderHistoryListVM();
|
||||
LinkedVM = new TaskHeaderHistory_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class TaskHeaderHistory_BatchEdit : BaseVM
|
||||
{
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
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 HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class TaskHeaderHistoryTemplateVM : BaseTemplateVM
|
||||
{
|
||||
[Display(Name = "Task.ZoneCode")]
|
||||
public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty<TaskHeaderHistory>(x => x.ZoneCode);
|
||||
[Display(Name = "Task.TaskNo")]
|
||||
public ExcelPropety TaskNo_Excel = ExcelPropety.CreateProperty<TaskHeaderHistory>(x => x.TaskNo);
|
||||
[Display(Name = "Task.TaskType")]
|
||||
public ExcelPropety TaskType_Excel = ExcelPropety.CreateProperty<TaskHeaderHistory>(x => x.TaskType);
|
||||
[Display(Name = "Task.FromLocation")]
|
||||
public ExcelPropety FromLocation_Excel = ExcelPropety.CreateProperty<TaskHeaderHistory>(x => x.FromLocation);
|
||||
[Display(Name = "Task.ToLocation")]
|
||||
public ExcelPropety ToLocation_Excel = ExcelPropety.CreateProperty<TaskHeaderHistory>(x => x.ToLocation);
|
||||
[Display(Name = "Task.Station")]
|
||||
public ExcelPropety Station_Excel = ExcelPropety.CreateProperty<TaskHeaderHistory>(x => x.Station);
|
||||
[Display(Name = "Task.ContainerCode")]
|
||||
public ExcelPropety ContainerCode_Excel = ExcelPropety.CreateProperty<TaskHeaderHistory>(x => x.ContainerCode);
|
||||
[Display(Name = "Task.RoadWay")]
|
||||
public ExcelPropety RoadWay_Excel = ExcelPropety.CreateProperty<TaskHeaderHistory>(x => x.RoadWay);
|
||||
[Display(Name = "Task.Priority")]
|
||||
public ExcelPropety Priority_Excel = ExcelPropety.CreateProperty<TaskHeaderHistory>(x => x.Priority);
|
||||
[Display(Name = "Task.Status")]
|
||||
public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<TaskHeaderHistory>(x => x.Status);
|
||||
[Display(Name = "Task.ErrorMsg")]
|
||||
public ExcelPropety ErrorMsg_Excel = ExcelPropety.CreateProperty<TaskHeaderHistory>(x => x.ErrorMsg);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class TaskHeaderHistoryImportVM : BaseImportVM<TaskHeaderHistoryTemplateVM, TaskHeaderHistory>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
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 HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class TaskHeaderHistoryListVM : BasePagedListVM<TaskHeaderHistory_View, TaskHeaderHistorySearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("TaskHeaderHistory", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskHeaderHistory", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskHeaderHistory", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskHeaderHistory", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskHeaderHistory", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskHeaderHistory", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskHeaderHistory", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskHeaderHistory", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "taskManage"),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<TaskHeaderHistory_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<TaskHeaderHistory_View>>{
|
||||
this.MakeGridHeader(x => x.ZoneCode),
|
||||
this.MakeGridHeader(x => x.TaskNo),
|
||||
this.MakeGridHeader(x => x.TaskType),
|
||||
this.MakeGridHeader(x => x.FromLocation),
|
||||
this.MakeGridHeader(x => x.ToLocation),
|
||||
this.MakeGridHeader(x => x.Station),
|
||||
this.MakeGridHeader(x => x.ContainerCode),
|
||||
this.MakeGridHeader(x => x.RoadWay),
|
||||
this.MakeGridHeader(x => x.Priority),
|
||||
this.MakeGridHeader(x => x.Status),
|
||||
this.MakeGridHeader(x => x.ErrorMsg),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<TaskHeaderHistory_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<TaskHeaderHistory>()
|
||||
.CheckContain(Searcher.ZoneCode, x=>x.ZoneCode)
|
||||
.CheckContain(Searcher.TaskNo, x=>x.TaskNo)
|
||||
.CheckEqual(Searcher.TaskType, x=>x.TaskType)
|
||||
.CheckContain(Searcher.FromLocation, x=>x.FromLocation)
|
||||
.CheckContain(Searcher.ToLocation, x=>x.ToLocation)
|
||||
.CheckContain(Searcher.ContainerCode, x=>x.ContainerCode)
|
||||
.CheckEqual(Searcher.RoadWay, x=>x.RoadWay)
|
||||
.CheckEqual(Searcher.Status, x=>x.Status)
|
||||
.Select(x => new TaskHeaderHistory_View
|
||||
{
|
||||
ID = x.ID,
|
||||
ZoneCode = x.ZoneCode,
|
||||
TaskNo = x.TaskNo,
|
||||
TaskType = x.TaskType,
|
||||
FromLocation = x.FromLocation,
|
||||
ToLocation = x.ToLocation,
|
||||
Station = x.Station,
|
||||
ContainerCode = x.ContainerCode,
|
||||
RoadWay = x.RoadWay,
|
||||
Priority = x.Priority,
|
||||
Status = x.Status,
|
||||
ErrorMsg = x.ErrorMsg,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class TaskHeaderHistory_View : TaskHeaderHistory{
|
||||
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
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 HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class TaskHeaderHistorySearcher : BaseSearcher
|
||||
{
|
||||
[Display(Name = "Task.ZoneCode")]
|
||||
public String ZoneCode { get; set; }
|
||||
[Display(Name = "Task.TaskNo")]
|
||||
public String TaskNo { get; set; }
|
||||
[Display(Name = "Task.TaskType")]
|
||||
public TaskTypeEnum? TaskType { get; set; }
|
||||
[Display(Name = "Task.FromLocation")]
|
||||
public String FromLocation { get; set; }
|
||||
[Display(Name = "Task.ToLocation")]
|
||||
public String ToLocation { get; set; }
|
||||
[Display(Name = "Task.ContainerCode")]
|
||||
public String ContainerCode { get; set; }
|
||||
[Display(Name = "Task.RoadWay")]
|
||||
public Int16? RoadWay { get; set; }
|
||||
[Display(Name = "Task.Status")]
|
||||
public TaskStatusEnum? Status { 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 HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class TaskHeaderHistoryVM : BaseCRUDVM<TaskHeaderHistory>
|
||||
{
|
||||
|
||||
public TaskHeaderHistoryVM()
|
||||
{
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user