其他出
This commit is contained in:
1 parent
f15b26fcc5
commit
e9f154bd06
46 files changed
+3178
No files matched your search
@@ -0,0 +1,114 @@
|
||||
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 ShipmentDetail2ListVM : BasePagedListVM<ShipmentDetail2_View, ShipmentDetail2Searcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"xwms", dialogWidth: 800),
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "xwms", dialogWidth: 800),
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "xwms", dialogWidth: 800),
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "xwms", dialogWidth: 800),
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "xwms", dialogWidth: 800),
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "xwms", dialogWidth: 800),
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "xwms", dialogWidth: 800),
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "xwms"),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<ShipmentDetail2_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<ShipmentDetail2_View>>{
|
||||
this.MakeGridHeader(x => x.ShipmentCode).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.SourceCode).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.SourceLine),
|
||||
this.MakeGridHeader(x => x.SupplierCode).SetHide(),
|
||||
this.MakeGridHeader(x => x.SupplierName).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.MaterialCode).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.MaterialName).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.Batch).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.Lot),
|
||||
this.MakeGridHeader(x => x.Project),
|
||||
this.MakeGridHeader(x => x.InventoryStatus),
|
||||
this.MakeGridHeader(x => x.Qty),
|
||||
this.MakeGridHeader(x => x.Unit),
|
||||
this.MakeGridHeader(x => x.Price),
|
||||
this.MakeGridHeader(x => x.Status),
|
||||
this.MakeGridHeader(x => x.UserDef1).SetHide(),
|
||||
this.MakeGridHeader(x => x.UserDef2).SetHide(),
|
||||
this.MakeGridHeader(x => x.UserDef3).SetHide(),
|
||||
this.MakeGridHeader(x => x.PurchasQty).SetHide(),
|
||||
this.MakeGridHeader(x => x.PurchasUnits).SetHide(),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<ShipmentDetail2_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<ShipmentDetail2>()
|
||||
.Where(x => x.ShipmentId == Searcher.ShipmentId)
|
||||
.Select(x => new ShipmentDetail2_View
|
||||
{
|
||||
ID = x.ID,
|
||||
WarehouseId = x.WarehouseId,
|
||||
WarehouseCode = x.WarehouseCode,
|
||||
ZoneCode = x.ZoneCode,
|
||||
CompanyId = x.CompanyId,
|
||||
CompanyCode = x.CompanyCode,
|
||||
SourceCode = x.SourceCode,
|
||||
SupplierCode = x.SupplierCode,
|
||||
SupplierName = x.SupplierName,
|
||||
CPoCode = x.CPoCode,
|
||||
MoCode = x.MoCode,
|
||||
SourceLine = x.SourceLine,
|
||||
ShipmentId = x.ShipmentId,
|
||||
ShipmentCode = x.ShipmentCode,
|
||||
MaterialId = x.MaterialId,
|
||||
MaterialCode = x.MaterialCode,
|
||||
MaterialName = x.MaterialName,
|
||||
Batch = x.Batch,
|
||||
Lot = x.Lot,
|
||||
Sn = x.Sn,
|
||||
Project = x.Project,
|
||||
ManufactureDate = x.ManufactureDate,
|
||||
ExpirationDate = x.ExpirationDate,
|
||||
AgingDate = x.AgingDate,
|
||||
InventoryStatus = x.InventoryStatus,
|
||||
Qty = x.Qty,
|
||||
QtyCompleted = x.QtyCompleted,
|
||||
Unit = x.Unit,
|
||||
Price = x.Price,
|
||||
Status = x.Status,
|
||||
Deleted = x.Deleted,
|
||||
AutoId = x.AutoId,
|
||||
UserDef1 = x.UserDef1,
|
||||
UserDef2 = x.UserDef2,
|
||||
UserDef3 = x.UserDef3,
|
||||
QtyDivided = x.QtyDivided,
|
||||
RequireAddr = x.RequireAddr,
|
||||
PurchasQty = x.PurchasQty,
|
||||
PurchasUnits = x.PurchasUnits,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ShipmentDetail2_View : ShipmentDetail2{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user