添加项目文件。
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 ShipmentDetailHistoryBatchVM : BaseBatchVM<ShipmentDetailHistory, ShipmentDetailHistory_BatchEdit>
|
||||
{
|
||||
public ShipmentDetailHistoryBatchVM()
|
||||
{
|
||||
ListVM = new ShipmentDetailHistoryListVM();
|
||||
LinkedVM = new ShipmentDetailHistory_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class ShipmentDetailHistory_BatchEdit : BaseVM
|
||||
{
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
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 ShipmentDetailHistoryTemplateVM : BaseTemplateVM
|
||||
{
|
||||
public ExcelPropety ShipmentHeaderHistory_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.ShipmentHeaderHistoryId);
|
||||
[Display(Name = "Task.ZoneCode")]
|
||||
public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.ZoneCode);
|
||||
[Display(Name = "Inventory.MaterialCode")]
|
||||
public ExcelPropety MaterialCode_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.MaterialCode);
|
||||
[Display(Name = "Inventory.MaterialType")]
|
||||
public ExcelPropety MaterialType_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.MaterialType);
|
||||
[Display(Name = "Inventory.MaterialName")]
|
||||
public ExcelPropety MaterialName_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.MaterialName);
|
||||
[Display(Name = "Inventory.MaterialSpec")]
|
||||
public ExcelPropety MaterialSpec_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.MaterialSpec);
|
||||
[Display(Name = "Inventory.MaterialUnit")]
|
||||
public ExcelPropety MaterialUnit_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.MaterialUnit);
|
||||
[Display(Name = "Inventory.Batch")]
|
||||
public ExcelPropety Batch_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.Batch);
|
||||
[Display(Name = "Inventory.Lot")]
|
||||
public ExcelPropety Lot_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.Lot);
|
||||
[Display(Name = "Inventory.ManufactureDate")]
|
||||
public ExcelPropety ManufactureDate_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.ManufactureDate);
|
||||
[Display(Name = "Inventory.ExpirationDate")]
|
||||
public ExcelPropety ExpirationDate_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.ExpirationDate);
|
||||
[Display(Name = "Inventory.CompanyCode")]
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.CompanyCode);
|
||||
[Display(Name = "Inventory.SupplierCode")]
|
||||
public ExcelPropety SupplierCode_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.SupplierCode);
|
||||
[Display(Name = "Receipt.CompletedQty")]
|
||||
public ExcelPropety CompletedQty_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.CompletedQty);
|
||||
[Display(Name = "Ship.DividedQty")]
|
||||
public ExcelPropety DividedQty_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.DividedQty);
|
||||
[Display(Name = "Inventory.Qty")]
|
||||
public ExcelPropety Qty_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.Qty);
|
||||
[Display(Name = "Inventory.Status")]
|
||||
public ExcelPropety InventoryStatus_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.InventoryStatus);
|
||||
[Display(Name = "Receipt.Status")]
|
||||
public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<ShipmentDetailHistory>(x => x.Status);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
ShipmentHeaderHistory_Excel.DataType = ColumnDataType.ComboBox;
|
||||
ShipmentHeaderHistory_Excel.ListItems = DC.Set<ShipmentHeaderHistory>().GetSelectListItems(Wtm, y => y.Code);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ShipmentDetailHistoryImportVM : BaseImportVM<ShipmentDetailHistoryTemplateVM, ShipmentDetailHistory>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+105
@@ -0,0 +1,105 @@
|
||||
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 ShipmentDetailHistoryListVM : BasePagedListVM<ShipmentDetailHistory_View, ShipmentDetailHistorySearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("ShipmentDetailHistory", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentDetailHistory", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentDetailHistory", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentDetailHistory", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentDetailHistory", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentDetailHistory", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentDetailHistory", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentDetailHistory", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "shipment"),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<ShipmentDetailHistory_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<ShipmentDetailHistory_View>>{
|
||||
this.MakeGridHeader(x => x.Code_view),
|
||||
this.MakeGridHeader(x => x.ZoneCode),
|
||||
this.MakeGridHeader(x => x.MaterialCode),
|
||||
this.MakeGridHeader(x => x.MaterialType),
|
||||
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.ManufactureDate),
|
||||
this.MakeGridHeader(x => x.ExpirationDate),
|
||||
this.MakeGridHeader(x => x.CompanyCode),
|
||||
this.MakeGridHeader(x => x.SupplierCode),
|
||||
this.MakeGridHeader(x => x.CompletedQty),
|
||||
this.MakeGridHeader(x => x.DividedQty),
|
||||
this.MakeGridHeader(x => x.Qty),
|
||||
this.MakeGridHeader(x => x.InventoryStatus),
|
||||
this.MakeGridHeader(x => x.Status),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<ShipmentDetailHistory_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<ShipmentDetailHistory>()
|
||||
.CheckEqual(Searcher.ShipmentHeaderHistoryId, x=>x.ShipmentHeaderHistoryId)
|
||||
.CheckContain(Searcher.ZoneCode, x=>x.ZoneCode)
|
||||
.CheckContain(Searcher.MaterialCode, x=>x.MaterialCode)
|
||||
.CheckContain(Searcher.MaterialType, x=>x.MaterialType)
|
||||
.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.CompanyCode, x=>x.CompanyCode)
|
||||
.CheckContain(Searcher.SupplierCode, x=>x.SupplierCode)
|
||||
.CheckContain(Searcher.InventoryStatus, x=>x.InventoryStatus)
|
||||
.CheckEqual(Searcher.Status, x=>x.Status)
|
||||
.Select(x => new ShipmentDetailHistory_View
|
||||
{
|
||||
ID = x.ID,
|
||||
Code_view = x.ShipmentHeaderHistory.Code,
|
||||
ZoneCode = x.ZoneCode,
|
||||
MaterialCode = x.MaterialCode,
|
||||
MaterialType = x.MaterialType,
|
||||
MaterialName = x.MaterialName,
|
||||
MaterialSpec = x.MaterialSpec,
|
||||
MaterialUnit = x.MaterialUnit,
|
||||
Batch = x.Batch,
|
||||
Lot = x.Lot,
|
||||
ManufactureDate = x.ManufactureDate,
|
||||
ExpirationDate = x.ExpirationDate,
|
||||
CompanyCode = x.CompanyCode,
|
||||
SupplierCode = x.SupplierCode,
|
||||
CompletedQty = x.CompletedQty,
|
||||
DividedQty = x.DividedQty,
|
||||
Qty = x.Qty,
|
||||
InventoryStatus = x.InventoryStatus,
|
||||
Status = x.Status,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ShipmentDetailHistory_View : ShipmentDetailHistory{
|
||||
[Display(Name = "Inventory.ShipCode")]
|
||||
public String Code_view { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
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 ShipmentDetailHistorySearcher : BaseSearcher
|
||||
{
|
||||
public List<ComboSelectListItem> AllShipmentHeaderHistorys { get; set; }
|
||||
[Display(Name = "Inventory.ShipCode")]
|
||||
public int? ShipmentHeaderHistoryId { get; set; }
|
||||
[Display(Name = "Task.ZoneCode")]
|
||||
public String ZoneCode { get; set; }
|
||||
[Display(Name = "Inventory.MaterialCode")]
|
||||
public String MaterialCode { get; set; }
|
||||
[Display(Name = "Inventory.MaterialType")]
|
||||
public String MaterialType { 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 = "Inventory.CompanyCode")]
|
||||
public String CompanyCode { get; set; }
|
||||
[Display(Name = "Inventory.SupplierCode")]
|
||||
public String SupplierCode { get; set; }
|
||||
[Display(Name = "Inventory.Status")]
|
||||
public String InventoryStatus { get; set; }
|
||||
[Display(Name = "Receipt.Status")]
|
||||
public ShipStatusEnum? Status { get; set; }
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
AllShipmentHeaderHistorys = DC.Set<ShipmentHeaderHistory>().GetSelectListItems(Wtm, y => y.Code);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
+42
@@ -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 ShipmentDetailHistoryVM : BaseCRUDVM<ShipmentDetailHistory>
|
||||
{
|
||||
public List<ComboSelectListItem> AllShipmentHeaderHistorys { get; set; }
|
||||
|
||||
public ShipmentDetailHistoryVM()
|
||||
{
|
||||
SetInclude(x => x.ShipmentHeaderHistory);
|
||||
}
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
AllShipmentHeaderHistorys = DC.Set<ShipmentHeaderHistory>().GetSelectListItems(Wtm, y => y.Code);
|
||||
}
|
||||
|
||||
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,24 @@
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ShipmentDetailBatchVM : BaseBatchVM<ShipmentDetail, ShipmentDetail_BatchEdit>
|
||||
{
|
||||
public ShipmentDetailBatchVM()
|
||||
{
|
||||
ListVM = new ShipmentDetailListVM();
|
||||
LinkedVM = new ShipmentDetail_BatchEdit();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class ShipmentDetail_BatchEdit : BaseVM
|
||||
{
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ShipmentDetailTemplateVM : BaseTemplateVM
|
||||
{
|
||||
public ExcelPropety ShipmentHeader_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.ShipmentHeaderId);
|
||||
|
||||
[Display(Name = "Task.ZoneCode")]
|
||||
public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.ZoneCode);
|
||||
|
||||
[Display(Name = "Inventory.MaterialCode")]
|
||||
public ExcelPropety MaterialCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.MaterialCode);
|
||||
|
||||
[Display(Name = "Inventory.MaterialType")]
|
||||
public ExcelPropety MaterialType_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.MaterialType);
|
||||
|
||||
[Display(Name = "Inventory.MaterialName")]
|
||||
public ExcelPropety MaterialName_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.MaterialName);
|
||||
|
||||
[Display(Name = "Inventory.MaterialSpec")]
|
||||
public ExcelPropety MaterialSpec_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.MaterialSpec);
|
||||
|
||||
[Display(Name = "Inventory.MaterialUnit")]
|
||||
public ExcelPropety MaterialUnit_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.MaterialUnit);
|
||||
|
||||
[Display(Name = "Inventory.Batch")]
|
||||
public ExcelPropety Batch_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.Batch);
|
||||
|
||||
[Display(Name = "Inventory.Lot")]
|
||||
public ExcelPropety Lot_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.Lot);
|
||||
|
||||
[Display(Name = "Inventory.ManufactureDate")]
|
||||
public ExcelPropety ManufactureDate_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.ManufactureDate);
|
||||
|
||||
[Display(Name = "Inventory.ExpirationDate")]
|
||||
public ExcelPropety ExpirationDate_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.ExpirationDate);
|
||||
|
||||
[Display(Name = "Inventory.CompanyCode")]
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.CompanyCode);
|
||||
|
||||
[Display(Name = "Inventory.SupplierCode")]
|
||||
public ExcelPropety SupplierCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.SupplierCode);
|
||||
|
||||
[Display(Name = "Receipt.CompletedQty")]
|
||||
public ExcelPropety CompletedQty_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.CompletedQty);
|
||||
|
||||
[Display(Name = "Ship.DividedQty")]
|
||||
public ExcelPropety DividedQty_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.DividedQty);
|
||||
|
||||
[Display(Name = "Inventory.Qty")]
|
||||
public ExcelPropety Qty_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.Qty);
|
||||
|
||||
[Display(Name = "Inventory.Status")]
|
||||
public ExcelPropety InventoryStatus_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.InventoryStatus);
|
||||
|
||||
[Display(Name = "Receipt.Status")]
|
||||
public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<ShipmentDetail>(x => x.Status);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
ShipmentHeader_Excel.DataType = ColumnDataType.ComboBox;
|
||||
ShipmentHeader_Excel.ListItems = DC.Set<ShipmentHeader>().GetSelectListItems(Wtm, y => y.Code);
|
||||
}
|
||||
}
|
||||
|
||||
public class ShipmentDetailImportVM : BaseImportVM<ShipmentDetailTemplateVM, ShipmentDetail>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ShipmentDetailListVM : BasePagedListVM<ShipmentDetail_View, ShipmentDetailSearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("ShipmentDetail", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentDetail", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentDetail", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentDetail", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentDetail", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentDetail", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentDetail", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentDetail", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "shipment"),
|
||||
};
|
||||
}
|
||||
|
||||
protected override IEnumerable<IGridColumn<ShipmentDetail_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<ShipmentDetail_View>>{
|
||||
this.MakeGridHeader(x => x.Code_view),
|
||||
this.MakeGridHeader(x => x.ZoneCode),
|
||||
this.MakeGridHeader(x => x.MaterialCode),
|
||||
this.MakeGridHeader(x => x.MaterialType),
|
||||
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.ManufactureDate),
|
||||
this.MakeGridHeader(x => x.ExpirationDate),
|
||||
this.MakeGridHeader(x => x.CompanyCode),
|
||||
this.MakeGridHeader(x => x.SupplierCode),
|
||||
this.MakeGridHeader(x => x.CompletedQty),
|
||||
this.MakeGridHeader(x => x.DividedQty),
|
||||
this.MakeGridHeader(x => x.Qty),
|
||||
this.MakeGridHeader(x => x.InventoryStatus),
|
||||
this.MakeGridHeader(x => x.Status),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<ShipmentDetail_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<ShipmentDetail>()
|
||||
.CheckEqual(Searcher.ShipmentHeaderId, x => x.ShipmentHeaderId)
|
||||
.CheckContain(Searcher.ZoneCode, x => x.ZoneCode)
|
||||
.CheckContain(Searcher.MaterialCode, x => x.MaterialCode)
|
||||
.CheckContain(Searcher.MaterialType, x => x.MaterialType)
|
||||
.CheckContain(Searcher.MaterialName, x => x.MaterialName)
|
||||
.CheckContain(Searcher.MaterialSpec, x => x.MaterialSpec)
|
||||
.CheckContain(Searcher.MaterialUnit, x => x.MaterialUnit)
|
||||
.CheckContain(Searcher.Batch, x => x.Batch)
|
||||
.CheckContain(Searcher.Lot, x => x.Lot)
|
||||
.CheckContain(Searcher.InventoryStatus, x => x.InventoryStatus)
|
||||
.CheckEqual(Searcher.Status, x => x.Status)
|
||||
.Select(x => new ShipmentDetail_View
|
||||
{
|
||||
ID = x.ID,
|
||||
Code_view = x.ShipmentHeader.Code,
|
||||
ZoneCode = x.ZoneCode,
|
||||
MaterialCode = x.MaterialCode,
|
||||
MaterialType = x.MaterialType,
|
||||
MaterialName = x.MaterialName,
|
||||
MaterialSpec = x.MaterialSpec,
|
||||
MaterialUnit = x.MaterialUnit,
|
||||
Batch = x.Batch,
|
||||
Lot = x.Lot,
|
||||
ManufactureDate = x.ManufactureDate,
|
||||
ExpirationDate = x.ExpirationDate,
|
||||
CompanyCode = x.CompanyCode,
|
||||
SupplierCode = x.SupplierCode,
|
||||
CompletedQty = x.CompletedQty,
|
||||
DividedQty = x.DividedQty,
|
||||
Qty = x.Qty,
|
||||
InventoryStatus = x.InventoryStatus,
|
||||
Status = x.Status,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
}
|
||||
|
||||
public class ShipmentDetail_View : ShipmentDetail
|
||||
{
|
||||
[Display(Name = "Inventory.ShipCode")]
|
||||
public String Code_view { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ShipmentDetailSearcher : BaseSearcher
|
||||
{
|
||||
public List<ComboSelectListItem> AllShipmentHeaders { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ShipCode")]
|
||||
public int? ShipmentHeaderId { get; set; }
|
||||
|
||||
[Display(Name = "Task.ZoneCode")]
|
||||
public String ZoneCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialCode")]
|
||||
public String MaterialCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialType")]
|
||||
public String MaterialType { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialName")]
|
||||
public String MaterialName { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialSpec")]
|
||||
public String MaterialSpec { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialUnit")]
|
||||
public String MaterialUnit { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Batch")]
|
||||
public String Batch { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Lot")]
|
||||
public String Lot { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Status")]
|
||||
public String InventoryStatus { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.Status")]
|
||||
public ShipStatusEnum? Status { get; set; }
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
AllShipmentHeaders = DC.Set<ShipmentHeader>().GetSelectListItems(Wtm, y => y.Code);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using System.Collections.Generic;
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ShipmentDetailVM : BaseCRUDVM<ShipmentDetail>
|
||||
{
|
||||
public List<ComboSelectListItem> AllShipmentHeaders { get; set; }
|
||||
|
||||
public ShipmentDetailVM()
|
||||
{
|
||||
SetInclude(x => x.ShipmentHeader);
|
||||
}
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
AllShipmentHeaders = DC.Set<ShipmentHeader>().GetSelectListItems(Wtm, y => y.Code);
|
||||
}
|
||||
|
||||
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 ShipmentHeaderHistoryBatchVM : BaseBatchVM<ShipmentHeaderHistory, ShipmentHeaderHistory_BatchEdit>
|
||||
{
|
||||
public ShipmentHeaderHistoryBatchVM()
|
||||
{
|
||||
ListVM = new ShipmentHeaderHistoryListVM();
|
||||
LinkedVM = new ShipmentHeaderHistory_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class ShipmentHeaderHistory_BatchEdit : BaseVM
|
||||
{
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
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 ShipmentHeaderHistoryTemplateVM : BaseTemplateVM
|
||||
{
|
||||
[Display(Name = "Inventory.SourceCode")]
|
||||
public ExcelPropety SourceCode_Excel = ExcelPropety.CreateProperty<ShipmentHeaderHistory>(x => x.SourceCode);
|
||||
[Display(Name = "Inventory.ShipCode")]
|
||||
public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<ShipmentHeaderHistory>(x => x.Code);
|
||||
[Display(Name = "Inventory.BillType")]
|
||||
public ExcelPropety BillType_Excel = ExcelPropety.CreateProperty<ShipmentHeaderHistory>(x => x.BillType);
|
||||
[Display(Name = "Inventory.CompanyCode")]
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<ShipmentHeaderHistory>(x => x.CompanyCode);
|
||||
[Display(Name = "Inventory.SupplierCode")]
|
||||
public ExcelPropety SupplierCode_Excel = ExcelPropety.CreateProperty<ShipmentHeaderHistory>(x => x.SupplierCode);
|
||||
[Display(Name = "Receipt.TotalQty")]
|
||||
public ExcelPropety TotalQty_Excel = ExcelPropety.CreateProperty<ShipmentHeaderHistory>(x => x.TotalQty);
|
||||
[Display(Name = "Receipt.TotalLines")]
|
||||
public ExcelPropety TotalLines_Excel = ExcelPropety.CreateProperty<ShipmentHeaderHistory>(x => x.TotalLines);
|
||||
[Display(Name = "Receipt.FirstStatus")]
|
||||
public ExcelPropety FirstStatus_Excel = ExcelPropety.CreateProperty<ShipmentHeaderHistory>(x => x.FirstStatus);
|
||||
[Display(Name = "Receipt.LastStatus")]
|
||||
public ExcelPropety LastStatus_Excel = ExcelPropety.CreateProperty<ShipmentHeaderHistory>(x => x.LastStatus);
|
||||
[Display(Name = "_Admin.Remark")]
|
||||
public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<ShipmentHeaderHistory>(x => x.Remark);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ShipmentHeaderHistoryImportVM : BaseImportVM<ShipmentHeaderHistoryTemplateVM, ShipmentHeaderHistory>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+82
@@ -0,0 +1,82 @@
|
||||
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 ShipmentHeaderHistoryListVM : BasePagedListVM<ShipmentHeaderHistory_View, ShipmentHeaderHistorySearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("ShipmentHeaderHistory", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeaderHistory", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeaderHistory", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeaderHistory", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeaderHistory", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeaderHistory", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeaderHistory", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeaderHistory", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "shipment"),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<ShipmentHeaderHistory_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<ShipmentHeaderHistory_View>>{
|
||||
this.MakeGridHeader(x => x.SourceCode),
|
||||
this.MakeGridHeader(x => x.Code),
|
||||
this.MakeGridHeader(x => x.BillType),
|
||||
this.MakeGridHeader(x => x.CompanyCode),
|
||||
this.MakeGridHeader(x => x.SupplierCode),
|
||||
this.MakeGridHeader(x => x.TotalQty),
|
||||
this.MakeGridHeader(x => x.TotalLines),
|
||||
this.MakeGridHeader(x => x.FirstStatus),
|
||||
this.MakeGridHeader(x => x.LastStatus),
|
||||
this.MakeGridHeader(x => x.Remark),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<ShipmentHeaderHistory_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<ShipmentHeaderHistory>()
|
||||
.CheckContain(Searcher.SourceCode, x=>x.SourceCode)
|
||||
.CheckContain(Searcher.Code, x=>x.Code)
|
||||
.CheckContain(Searcher.BillType, x=>x.BillType)
|
||||
.CheckContain(Searcher.CompanyCode, x=>x.CompanyCode)
|
||||
.CheckContain(Searcher.SupplierCode, x=>x.SupplierCode)
|
||||
.CheckEqual(Searcher.FirstStatus, x=>x.FirstStatus)
|
||||
.CheckEqual(Searcher.LastStatus, x=>x.LastStatus)
|
||||
.Select(x => new ShipmentHeaderHistory_View
|
||||
{
|
||||
ID = x.ID,
|
||||
SourceCode = x.SourceCode,
|
||||
Code = x.Code,
|
||||
BillType = x.BillType,
|
||||
CompanyCode = x.CompanyCode,
|
||||
SupplierCode = x.SupplierCode,
|
||||
TotalQty = x.TotalQty,
|
||||
TotalLines = x.TotalLines,
|
||||
FirstStatus = x.FirstStatus,
|
||||
LastStatus = x.LastStatus,
|
||||
Remark = x.Remark,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ShipmentHeaderHistory_View : ShipmentHeaderHistory{
|
||||
|
||||
}
|
||||
}
|
||||
+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 ShipmentHeaderHistorySearcher : BaseSearcher
|
||||
{
|
||||
[Display(Name = "Inventory.SourceCode")]
|
||||
public String SourceCode { get; set; }
|
||||
[Display(Name = "Inventory.ShipCode")]
|
||||
public String Code { get; set; }
|
||||
[Display(Name = "Inventory.BillType")]
|
||||
public String BillType { get; set; }
|
||||
[Display(Name = "Inventory.CompanyCode")]
|
||||
public String CompanyCode { get; set; }
|
||||
[Display(Name = "Inventory.SupplierCode")]
|
||||
public String SupplierCode { get; set; }
|
||||
[Display(Name = "Receipt.FirstStatus")]
|
||||
public ShipStatusEnum? FirstStatus { get; set; }
|
||||
[Display(Name = "Receipt.LastStatus")]
|
||||
public ShipStatusEnum? LastStatus { get; set; }
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
+39
@@ -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 ShipmentHeaderHistoryVM : BaseCRUDVM<ShipmentHeaderHistory>
|
||||
{
|
||||
|
||||
public ShipmentHeaderHistoryVM()
|
||||
{
|
||||
}
|
||||
|
||||
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,24 @@
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ShipmentHeaderBatchVM : BaseBatchVM<ShipmentHeader, ShipmentHeader_BatchEdit>
|
||||
{
|
||||
public ShipmentHeaderBatchVM()
|
||||
{
|
||||
ListVM = new ShipmentHeaderListVM();
|
||||
LinkedVM = new ShipmentHeader_BatchEdit();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class ShipmentHeader_BatchEdit : BaseVM
|
||||
{
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ShipmentHeaderTemplateVM : BaseTemplateVM
|
||||
{
|
||||
[Display(Name = "Inventory.SourceCode")]
|
||||
public ExcelPropety SourceCode_Excel = ExcelPropety.CreateProperty<ShipmentHeader>(x => x.SourceCode);
|
||||
|
||||
[Display(Name = "Inventory.ShipCode")]
|
||||
public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<ShipmentHeader>(x => x.Code);
|
||||
|
||||
[Display(Name = "Inventory.BillType")]
|
||||
public ExcelPropety BillType_Excel = ExcelPropety.CreateProperty<ShipmentHeader>(x => x.BillType);
|
||||
|
||||
[Display(Name = "Inventory.CompanyCode")]
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<ShipmentHeader>(x => x.CompanyCode);
|
||||
|
||||
[Display(Name = "Inventory.SupplierCode")]
|
||||
public ExcelPropety SupplierCode_Excel = ExcelPropety.CreateProperty<ShipmentHeader>(x => x.SupplierCode);
|
||||
|
||||
[Display(Name = "Receipt.TotalQty")]
|
||||
public ExcelPropety TotalQty_Excel = ExcelPropety.CreateProperty<ShipmentHeader>(x => x.TotalQty);
|
||||
|
||||
[Display(Name = "Receipt.TotalLines")]
|
||||
public ExcelPropety TotalLines_Excel = ExcelPropety.CreateProperty<ShipmentHeader>(x => x.TotalLines);
|
||||
|
||||
[Display(Name = "Receipt.FirstStatus")]
|
||||
public ExcelPropety FirstStatus_Excel = ExcelPropety.CreateProperty<ShipmentHeader>(x => x.FirstStatus);
|
||||
|
||||
[Display(Name = "Receipt.LastStatus")]
|
||||
public ExcelPropety LastStatus_Excel = ExcelPropety.CreateProperty<ShipmentHeader>(x => x.LastStatus);
|
||||
|
||||
[Display(Name = "_Admin.Remark")]
|
||||
public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<ShipmentHeader>(x => x.Remark);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class ShipmentHeaderImportVM : BaseImportVM<ShipmentHeaderTemplateVM, ShipmentHeader>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ShipmentHeaderListVM : BasePagedListVM<ShipmentHeader_View, ShipmentHeaderSearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("ShipmentHeader", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "shipment", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "shipment"),
|
||||
};
|
||||
}
|
||||
|
||||
protected override IEnumerable<IGridColumn<ShipmentHeader_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<ShipmentHeader_View>>{
|
||||
this.MakeGridHeader(x => x.SourceCode),
|
||||
this.MakeGridHeader(x => x.Code),
|
||||
this.MakeGridHeader(x => x.BillType),
|
||||
this.MakeGridHeader(x => x.CompanyCode),
|
||||
this.MakeGridHeader(x => x.SupplierCode),
|
||||
this.MakeGridHeader(x => x.TotalQty),
|
||||
this.MakeGridHeader(x => x.TotalLines),
|
||||
this.MakeGridHeader(x => x.FirstStatus),
|
||||
this.MakeGridHeader(x => x.LastStatus),
|
||||
this.MakeGridHeader(x => x.Remark),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<ShipmentHeader_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<ShipmentHeader>()
|
||||
.CheckContain(Searcher.SourceCode, x => x.SourceCode)
|
||||
.CheckContain(Searcher.Code, x => x.Code)
|
||||
.CheckContain(Searcher.BillType, x => x.BillType)
|
||||
.CheckEqual(Searcher.FirstStatus, x => x.FirstStatus)
|
||||
.Select(x => new ShipmentHeader_View
|
||||
{
|
||||
ID = x.ID,
|
||||
SourceCode = x.SourceCode,
|
||||
Code = x.Code,
|
||||
BillType = x.BillType,
|
||||
CompanyCode = x.CompanyCode,
|
||||
SupplierCode = x.SupplierCode,
|
||||
TotalQty = x.TotalQty,
|
||||
TotalLines = x.TotalLines,
|
||||
FirstStatus = x.FirstStatus,
|
||||
LastStatus = x.LastStatus,
|
||||
Remark = x.Remark,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
}
|
||||
|
||||
public class ShipmentHeader_View : ShipmentHeader
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ShipmentHeaderSearcher : BaseSearcher
|
||||
{
|
||||
[Display(Name = "Inventory.SourceCode")]
|
||||
public String SourceCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ShipCode")]
|
||||
public String Code { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.BillType")]
|
||||
public String BillType { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.FirstStatus")]
|
||||
public ShipStatusEnum? FirstStatus { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.LastStatus")]
|
||||
public ShipStatusEnum? LastStatus { 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;
|
||||
using HHWMS.Web.Models;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ShipmentHeaderVM : BaseCRUDVM<ShipmentHeader>
|
||||
{
|
||||
|
||||
public ShipmentHeaderVM()
|
||||
{
|
||||
}
|
||||
|
||||
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