其他出
This commit is contained in:
1 parent
f15b26fcc5
commit
e9f154bd06
46 files changed
+3178
No files matched your search
@@ -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 ShipmentDetail2BatchVM : BaseBatchVM<ShipmentDetail2, ShipmentDetail2_BatchEdit>
|
||||
{
|
||||
public ShipmentDetail2BatchVM()
|
||||
{
|
||||
ListVM = new ShipmentDetail2ListVM();
|
||||
LinkedVM = new ShipmentDetail2_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class ShipmentDetail2_BatchEdit : BaseVM
|
||||
{
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
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 ShipmentDetail2TemplateVM : BaseTemplateVM
|
||||
{
|
||||
public ExcelPropety WarehouseId_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.WarehouseId);
|
||||
public ExcelPropety WarehouseCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.WarehouseCode);
|
||||
public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.ZoneCode);
|
||||
public ExcelPropety CompanyId_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.CompanyId);
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.CompanyCode);
|
||||
public ExcelPropety SourceCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.SourceCode);
|
||||
public ExcelPropety SupplierCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.SupplierCode);
|
||||
public ExcelPropety SupplierName_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.SupplierName);
|
||||
public ExcelPropety CPoCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.CPoCode);
|
||||
public ExcelPropety MoCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.MoCode);
|
||||
public ExcelPropety SourceLine_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.SourceLine);
|
||||
public ExcelPropety ShipmentId_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.ShipmentId);
|
||||
public ExcelPropety ShipmentCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.ShipmentCode);
|
||||
public ExcelPropety MaterialId_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.MaterialId);
|
||||
public ExcelPropety MaterialCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.MaterialCode);
|
||||
public ExcelPropety MaterialName_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.MaterialName);
|
||||
public ExcelPropety Batch_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Batch);
|
||||
public ExcelPropety Lot_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Lot);
|
||||
public ExcelPropety Sn_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Sn);
|
||||
public ExcelPropety Project_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Project);
|
||||
public ExcelPropety ManufactureDate_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.ManufactureDate);
|
||||
public ExcelPropety ExpirationDate_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.ExpirationDate);
|
||||
public ExcelPropety AgingDate_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.AgingDate);
|
||||
public ExcelPropety InventoryStatus_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.InventoryStatus);
|
||||
public ExcelPropety Qty_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Qty);
|
||||
public ExcelPropety QtyCompleted_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.QtyCompleted);
|
||||
public ExcelPropety Unit_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Unit);
|
||||
public ExcelPropety Price_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Price);
|
||||
public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Status);
|
||||
public ExcelPropety Deleted_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Deleted);
|
||||
public ExcelPropety AutoId_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.AutoId);
|
||||
public ExcelPropety UserDef1_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.UserDef1);
|
||||
public ExcelPropety UserDef2_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.UserDef2);
|
||||
public ExcelPropety UserDef3_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.UserDef3);
|
||||
public ExcelPropety QtyDivided_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.QtyDivided);
|
||||
public ExcelPropety RequireAddr_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.RequireAddr);
|
||||
public ExcelPropety PurchasQty_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.PurchasQty);
|
||||
public ExcelPropety PurchasUnits_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.PurchasUnits);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ShipmentDetail2ImportVM : BaseImportVM<ShipmentDetail2TemplateVM, ShipmentDetail2>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
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 ShipmentDetail2Searcher : BaseSearcher
|
||||
{
|
||||
public Int32? WarehouseId { get; set; }
|
||||
public String WarehouseCode { get; set; }
|
||||
public String ZoneCode { get; set; }
|
||||
public Int32? CompanyId { get; set; }
|
||||
public String CompanyCode { get; set; }
|
||||
public String SourceCode { get; set; }
|
||||
public String SupplierCode { get; set; }
|
||||
public String SupplierName { get; set; }
|
||||
public String CPoCode { get; set; }
|
||||
public String MoCode { get; set; }
|
||||
public String SourceLine { get; set; }
|
||||
public Int32? ShipmentId { get; set; }
|
||||
public String ShipmentCode { get; set; }
|
||||
public Int32? MaterialId { get; set; }
|
||||
public String MaterialCode { get; set; }
|
||||
public String MaterialName { get; set; }
|
||||
public String Batch { get; set; }
|
||||
public String Lot { get; set; }
|
||||
public String Sn { get; set; }
|
||||
public String Project { get; set; }
|
||||
public DateRange ManufactureDate { get; set; }
|
||||
public DateRange ExpirationDate { get; set; }
|
||||
public DateRange AgingDate { get; set; }
|
||||
public String InventoryStatus { get; set; }
|
||||
public Decimal? Qty { get; set; }
|
||||
public Decimal? QtyCompleted { get; set; }
|
||||
public String Unit { get; set; }
|
||||
public Decimal? Price { get; set; }
|
||||
public Int32? Status { get; set; }
|
||||
public Boolean? Deleted { get; set; }
|
||||
public Int32? AutoId { get; set; }
|
||||
public String UserDef1 { get; set; }
|
||||
public String UserDef2 { get; set; }
|
||||
public String UserDef3 { get; set; }
|
||||
public Decimal? QtyDivided { get; set; }
|
||||
public String RequireAddr { get; set; }
|
||||
public Decimal? PurchasQty { get; set; }
|
||||
public String PurchasUnits { 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 ShipmentDetail2VM : BaseCRUDVM<ShipmentDetail2>
|
||||
{
|
||||
|
||||
public ShipmentDetail2VM()
|
||||
{
|
||||
}
|
||||
|
||||
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