添加项目文件。
This commit is contained in:
1 parent
05e131ca4e
commit
514d6f5255
1162 files changed
+81255
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class TaskDetailHistoryBatchVM : BaseBatchVM<TaskDetailHistory, TaskDetailHistory_BatchEdit>
|
||||
{
|
||||
public TaskDetailHistoryBatchVM()
|
||||
{
|
||||
ListVM = new TaskDetailHistoryListVM();
|
||||
LinkedVM = new TaskDetailHistory_BatchEdit();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class TaskDetailHistory_BatchEdit : BaseVM
|
||||
{
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
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 TaskDetailHistoryTemplateVM : BaseTemplateVM
|
||||
{
|
||||
public ExcelPropety TaskHeader_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.TaskHeaderId);
|
||||
[Display(Name = "Inventory.ReceiptCode")]
|
||||
public ExcelPropety OrderCode_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.OrderCode);
|
||||
[Display(Name = "Inventory.ReceiptDetailId")]
|
||||
public ExcelPropety OrderDetailId_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.OrderDetailId);
|
||||
[Display(Name = "Inventory.MaterialCode")]
|
||||
public ExcelPropety MaterialCode_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.MaterialCode);
|
||||
[Display(Name = "Inventory.MaterialName")]
|
||||
public ExcelPropety MaterialName_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.MaterialName);
|
||||
[Display(Name = "Inventory.MaterialSpec")]
|
||||
public ExcelPropety MaterialSpec_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.MaterialSpec);
|
||||
[Display(Name = "Inventory.MaterialUnit")]
|
||||
public ExcelPropety MaterialUnit_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.MaterialUnit);
|
||||
[Display(Name = "Inventory.Batch")]
|
||||
public ExcelPropety Batch_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.Batch);
|
||||
[Display(Name = "Inventory.Lot")]
|
||||
public ExcelPropety Lot_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.Lot);
|
||||
[Display(Name = "Task.ContainerCode")]
|
||||
public ExcelPropety ContainerCode_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.ContainerCode);
|
||||
[Display(Name = "Inventory.Qty")]
|
||||
public ExcelPropety Qty_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.Qty);
|
||||
[Display(Name = "TaskDetail.InventoryId")]
|
||||
public ExcelPropety InventoryId_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.InventoryId);
|
||||
[Display(Name = "TaskDetail.Status")]
|
||||
public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<TaskDetailHistory>(x => x.Status);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
TaskHeader_Excel.DataType = ColumnDataType.ComboBox;
|
||||
TaskHeader_Excel.ListItems = DC.Set<TaskHeaderHistory>().GetSelectListItems(Wtm, y => y.TaskNo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class TaskDetailHistoryImportVM : BaseImportVM<TaskDetailHistoryTemplateVM, TaskDetailHistory>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
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 TaskDetailHistoryListVM : BasePagedListVM<TaskDetailHistory_View, TaskDetailHistorySearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("TaskDetailHistory", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskDetailHistory", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskDetailHistory", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskDetailHistory", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskDetailHistory", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskDetailHistory", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskDetailHistory", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskDetailHistory", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "taskManage"),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<TaskDetailHistory_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<TaskDetailHistory_View>>{
|
||||
this.MakeGridHeader(x => x.TaskNo_view),
|
||||
this.MakeGridHeader(x => x.OrderCode),
|
||||
this.MakeGridHeader(x => x.OrderDetailId),
|
||||
this.MakeGridHeader(x => x.MaterialCode),
|
||||
this.MakeGridHeader(x => x.MaterialName),
|
||||
this.MakeGridHeader(x => x.MaterialSpec),
|
||||
this.MakeGridHeader(x => x.MaterialUnit),
|
||||
this.MakeGridHeader(x => x.Batch),
|
||||
this.MakeGridHeader(x => x.Lot),
|
||||
this.MakeGridHeader(x => x.ContainerCode),
|
||||
this.MakeGridHeader(x => x.Qty),
|
||||
this.MakeGridHeader(x => x.InventoryId),
|
||||
this.MakeGridHeader(x => x.Status),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<TaskDetailHistory_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<TaskDetailHistory>()
|
||||
.CheckEqual(Searcher.TaskHeaderId, x=>x.TaskHeaderId)
|
||||
.CheckContain(Searcher.MaterialCode, x=>x.MaterialCode)
|
||||
.CheckContain(Searcher.MaterialName, x=>x.MaterialName)
|
||||
.CheckContain(Searcher.MaterialSpec, x=>x.MaterialSpec)
|
||||
.CheckContain(Searcher.Batch, x=>x.Batch)
|
||||
.CheckContain(Searcher.Lot, x=>x.Lot)
|
||||
.CheckContain(Searcher.ContainerCode, x=>x.ContainerCode)
|
||||
.CheckEqual(Searcher.Status, x=>x.Status)
|
||||
.Select(x => new TaskDetailHistory_View
|
||||
{
|
||||
ID = x.ID,
|
||||
TaskNo_view = x.TaskHeader.TaskNo,
|
||||
OrderCode = x.OrderCode,
|
||||
OrderDetailId = x.OrderDetailId,
|
||||
MaterialCode = x.MaterialCode,
|
||||
MaterialName = x.MaterialName,
|
||||
MaterialSpec = x.MaterialSpec,
|
||||
MaterialUnit = x.MaterialUnit,
|
||||
Batch = x.Batch,
|
||||
Lot = x.Lot,
|
||||
ContainerCode = x.ContainerCode,
|
||||
Qty = x.Qty,
|
||||
InventoryId = x.InventoryId,
|
||||
Status = x.Status,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class TaskDetailHistory_View : TaskDetailHistory{
|
||||
[Display(Name = "Task.TaskNo")]
|
||||
public String TaskNo_view { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
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 TaskDetailHistorySearcher : BaseSearcher
|
||||
{
|
||||
public List<ComboSelectListItem> AllTaskHeaders { get; set; }
|
||||
public int? TaskHeaderId { get; set; }
|
||||
[Display(Name = "Inventory.MaterialCode")]
|
||||
public String MaterialCode { get; set; }
|
||||
[Display(Name = "Inventory.MaterialName")]
|
||||
public String MaterialName { get; set; }
|
||||
[Display(Name = "Inventory.MaterialSpec")]
|
||||
public String MaterialSpec { get; set; }
|
||||
[Display(Name = "Inventory.Batch")]
|
||||
public String Batch { get; set; }
|
||||
[Display(Name = "Inventory.Lot")]
|
||||
public String Lot { get; set; }
|
||||
[Display(Name = "Task.ContainerCode")]
|
||||
public String ContainerCode { get; set; }
|
||||
[Display(Name = "TaskDetail.Status")]
|
||||
public TaskStatusEnum? Status { get; set; }
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
AllTaskHeaders = DC.Set<TaskHeaderHistory>().GetSelectListItems(Wtm, y => y.TaskNo);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
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 TaskDetailHistoryVM : BaseCRUDVM<TaskDetailHistory>
|
||||
{
|
||||
public List<ComboSelectListItem> AllTaskHeaders { get; set; }
|
||||
|
||||
public TaskDetailHistoryVM()
|
||||
{
|
||||
SetInclude(x => x.TaskHeader);
|
||||
}
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
AllTaskHeaders = DC.Set<TaskHeaderHistory>().GetSelectListItems(Wtm, y => y.TaskNo);
|
||||
}
|
||||
|
||||
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 HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class TaskDetailBatchVM : BaseBatchVM<TaskDetail, TaskDetail_BatchEdit>
|
||||
{
|
||||
public TaskDetailBatchVM()
|
||||
{
|
||||
ListVM = new TaskDetailListVM();
|
||||
LinkedVM = new TaskDetail_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class TaskDetail_BatchEdit : BaseVM
|
||||
{
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
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 TaskDetailTemplateVM : BaseTemplateVM
|
||||
{
|
||||
public ExcelPropety TaskHeader_Excel = ExcelPropety.CreateProperty<TaskDetail>(x => x.TaskHeaderId);
|
||||
[Display(Name = "Inventory.ReceiptCode")]
|
||||
public ExcelPropety OrderCode_Excel = ExcelPropety.CreateProperty<TaskDetail>(x => x.OrderCode);
|
||||
[Display(Name = "Inventory.ReceiptDetailId")]
|
||||
public ExcelPropety OrderDetailId_Excel = ExcelPropety.CreateProperty<TaskDetail>(x => x.OrderDetailId);
|
||||
[Display(Name = "Inventory.MaterialCode")]
|
||||
public ExcelPropety MaterialCode_Excel = ExcelPropety.CreateProperty<TaskDetail>(x => x.MaterialCode);
|
||||
[Display(Name = "Inventory.MaterialName")]
|
||||
public ExcelPropety MaterialName_Excel = ExcelPropety.CreateProperty<TaskDetail>(x => x.MaterialName);
|
||||
[Display(Name = "Inventory.MaterialSpec")]
|
||||
public ExcelPropety MaterialSpec_Excel = ExcelPropety.CreateProperty<TaskDetail>(x => x.MaterialSpec);
|
||||
[Display(Name = "Inventory.MaterialUnit")]
|
||||
public ExcelPropety MaterialUnit_Excel = ExcelPropety.CreateProperty<TaskDetail>(x => x.MaterialUnit);
|
||||
[Display(Name = "Inventory.Batch")]
|
||||
public ExcelPropety Batch_Excel = ExcelPropety.CreateProperty<TaskDetail>(x => x.Batch);
|
||||
[Display(Name = "Inventory.Lot")]
|
||||
public ExcelPropety Lot_Excel = ExcelPropety.CreateProperty<TaskDetail>(x => x.Lot);
|
||||
[Display(Name = "Task.ContainerCode")]
|
||||
public ExcelPropety ContainerCode_Excel = ExcelPropety.CreateProperty<TaskDetail>(x => x.ContainerCode);
|
||||
[Display(Name = "Inventory.Qty")]
|
||||
public ExcelPropety Qty_Excel = ExcelPropety.CreateProperty<TaskDetail>(x => x.Qty);
|
||||
[Display(Name = "TaskDetail.InventoryId")]
|
||||
public ExcelPropety InventoryId_Excel = ExcelPropety.CreateProperty<TaskDetail>(x => x.InventoryId);
|
||||
[Display(Name = "TaskDetail.Status")]
|
||||
public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<TaskDetail>(x => x.Status);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
TaskHeader_Excel.DataType = ColumnDataType.ComboBox;
|
||||
TaskHeader_Excel.ListItems = DC.Set<TaskHeader>().GetSelectListItems(Wtm, y => y.TaskNo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class TaskDetailImportVM : BaseImportVM<TaskDetailTemplateVM, TaskDetail>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
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 TaskDetailListVM : BasePagedListVM<TaskDetail_View, TaskDetailSearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("TaskDetail", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskDetail", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskDetail", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskDetail", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskDetail", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskDetail", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskDetail", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskDetail", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "taskManage"),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<TaskDetail_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<TaskDetail_View>>{
|
||||
this.MakeGridHeader(x => x.TaskNo_view),
|
||||
this.MakeGridHeader(x => x.OrderCode),
|
||||
this.MakeGridHeader(x => x.OrderDetailId),
|
||||
this.MakeGridHeader(x => x.MaterialCode),
|
||||
this.MakeGridHeader(x => x.MaterialName),
|
||||
this.MakeGridHeader(x => x.MaterialSpec),
|
||||
this.MakeGridHeader(x => x.MaterialUnit),
|
||||
this.MakeGridHeader(x => x.Batch),
|
||||
this.MakeGridHeader(x => x.Lot),
|
||||
this.MakeGridHeader(x => x.ContainerCode),
|
||||
this.MakeGridHeader(x => x.Qty),
|
||||
this.MakeGridHeader(x => x.InventoryId),
|
||||
this.MakeGridHeader(x => x.Status),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<TaskDetail_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<TaskDetail>()
|
||||
.CheckEqual(Searcher.TaskHeaderId, x=>x.TaskHeaderId)
|
||||
.CheckContain(Searcher.MaterialCode, x=>x.MaterialCode)
|
||||
.CheckContain(Searcher.MaterialName, x=>x.MaterialName)
|
||||
.CheckContain(Searcher.MaterialSpec, x=>x.MaterialSpec)
|
||||
.CheckContain(Searcher.Batch, x=>x.Batch)
|
||||
.CheckContain(Searcher.ContainerCode, x=>x.ContainerCode)
|
||||
.CheckEqual(Searcher.Status, x=>x.Status)
|
||||
.Select(x => new TaskDetail_View
|
||||
{
|
||||
ID = x.ID,
|
||||
TaskNo_view = x.TaskHeader.TaskNo,
|
||||
OrderCode = x.OrderCode,
|
||||
OrderDetailId = x.OrderDetailId,
|
||||
MaterialCode = x.MaterialCode,
|
||||
MaterialName = x.MaterialName,
|
||||
MaterialSpec = x.MaterialSpec,
|
||||
MaterialUnit = x.MaterialUnit,
|
||||
Batch = x.Batch,
|
||||
Lot = x.Lot,
|
||||
ContainerCode = x.ContainerCode,
|
||||
Qty = x.Qty,
|
||||
InventoryId = x.InventoryId,
|
||||
Status = x.Status,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class TaskDetail_View : TaskDetail{
|
||||
[Display(Name = "Task.TaskNo")]
|
||||
public String TaskNo_view { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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 TaskDetailSearcher : BaseSearcher
|
||||
{
|
||||
public List<ComboSelectListItem> AllTaskHeaders { get; set; }
|
||||
[Display(Name = "Task.TaskNo")]
|
||||
public int? TaskHeaderId { get; set; }
|
||||
[Display(Name = "Inventory.MaterialCode")]
|
||||
public String MaterialCode { get; set; }
|
||||
[Display(Name = "Inventory.MaterialName")]
|
||||
public String MaterialName { get; set; }
|
||||
[Display(Name = "Inventory.MaterialSpec")]
|
||||
public String MaterialSpec { get; set; }
|
||||
[Display(Name = "Inventory.Batch")]
|
||||
public String Batch { get; set; }
|
||||
[Display(Name = "Task.ContainerCode")]
|
||||
public String ContainerCode { get; set; }
|
||||
[Display(Name = "TaskDetail.Status")]
|
||||
public TaskStatusEnum? Status { get; set; }
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
AllTaskHeaders = DC.Set<TaskHeader>().GetSelectListItems(Wtm, y => y.TaskNo);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
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 TaskDetailVM : BaseCRUDVM<TaskDetail>
|
||||
{
|
||||
public List<ComboSelectListItem> AllTaskHeaders { get; set; }
|
||||
|
||||
public TaskDetailVM()
|
||||
{
|
||||
SetInclude(x => x.TaskHeader);
|
||||
}
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
AllTaskHeaders = DC.Set<TaskHeader>().GetSelectListItems(Wtm, y => y.TaskNo);
|
||||
}
|
||||
|
||||
public override void DoAdd()
|
||||
{
|
||||
base.DoAdd();
|
||||
}
|
||||
|
||||
public override void DoEdit(bool updateAllFields = false)
|
||||
{
|
||||
base.DoEdit(updateAllFields);
|
||||
}
|
||||
|
||||
public override void DoDelete()
|
||||
{
|
||||
base.DoDelete();
|
||||
}
|
||||
}
|
||||
}
|
||||
+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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 TaskHeaderBatchVM : BaseBatchVM<TaskHeader, TaskHeader_BatchEdit>
|
||||
{
|
||||
public TaskHeaderBatchVM()
|
||||
{
|
||||
ListVM = new TaskHeaderListVM();
|
||||
LinkedVM = new TaskHeader_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class TaskHeader_BatchEdit : BaseVM
|
||||
{
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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 TaskHeaderTemplateVM : BaseTemplateVM
|
||||
{
|
||||
[Display(Name = "Task.ZoneCode")]
|
||||
public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.ZoneCode);
|
||||
[Display(Name = "Task.TaskNo")]
|
||||
public ExcelPropety TaskNo_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.TaskNo);
|
||||
[Display(Name = "Task.TaskType")]
|
||||
public ExcelPropety TaskType_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.TaskType);
|
||||
[Display(Name = "Task.FromLocation")]
|
||||
public ExcelPropety FromLocation_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.FromLocation);
|
||||
[Display(Name = "Task.ToLocation")]
|
||||
public ExcelPropety ToLocation_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.ToLocation);
|
||||
[Display(Name = "Task.Station")]
|
||||
public ExcelPropety Station_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.Station);
|
||||
[Display(Name = "Task.ContainerCode")]
|
||||
public ExcelPropety ContainerCode_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.ContainerCode);
|
||||
[Display(Name = "Task.RoadWay")]
|
||||
public ExcelPropety RoadWay_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.RoadWay);
|
||||
[Display(Name = "Task.Priority")]
|
||||
public ExcelPropety Priority_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.Priority);
|
||||
[Display(Name = "Task.Status")]
|
||||
public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.Status);
|
||||
[Display(Name = "Task.ErrorMsg")]
|
||||
public ExcelPropety ErrorMsg_Excel = ExcelPropety.CreateProperty<TaskHeader>(x => x.ErrorMsg);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class TaskHeaderImportVM : BaseImportVM<TaskHeaderTemplateVM, TaskHeader>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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 TaskHeaderListVM : BasePagedListVM<TaskHeader_View, TaskHeaderSearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("TaskHeader", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskHeader", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskHeader", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskHeader", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskHeader", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskHeader", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskHeader", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "taskManage", dialogWidth: 800),
|
||||
this.MakeStandardAction("TaskHeader", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "taskManage"),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<TaskHeader_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<TaskHeader_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<TaskHeader_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<TaskHeader>()
|
||||
.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 TaskHeader_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 TaskHeader_View : TaskHeader{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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 TaskHeaderSearcher : 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 TaskHeaderVM : BaseCRUDVM<TaskHeader>
|
||||
{
|
||||
|
||||
public TaskHeaderVM()
|
||||
{
|
||||
}
|
||||
|
||||
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