添加项目文件。
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 ReceiptDetailHistoryBatchVM : BaseBatchVM<ReceiptDetailHistory, ReceiptDetailHistory_BatchEdit>
|
||||
{
|
||||
public ReceiptDetailHistoryBatchVM()
|
||||
{
|
||||
ListVM = new ReceiptDetailHistoryListVM();
|
||||
LinkedVM = new ReceiptDetailHistory_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class ReceiptDetailHistory_BatchEdit : BaseVM
|
||||
{
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
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 ReceiptDetailHistoryTemplateVM : BaseTemplateVM
|
||||
{
|
||||
public ExcelPropety ReceiptHeaderHistory_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.ReceiptHeaderHistoryId);
|
||||
[Display(Name = "Task.ZoneCode")]
|
||||
public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.ZoneCode);
|
||||
[Display(Name = "Inventory.MaterialCode")]
|
||||
public ExcelPropety MaterialCode_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.MaterialCode);
|
||||
[Display(Name = "Inventory.MaterialType")]
|
||||
public ExcelPropety MaterialType_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.MaterialType);
|
||||
[Display(Name = "Inventory.MaterialName")]
|
||||
public ExcelPropety MaterialName_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.MaterialName);
|
||||
[Display(Name = "Inventory.MaterialSpec")]
|
||||
public ExcelPropety MaterialSpec_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.MaterialSpec);
|
||||
[Display(Name = "Inventory.MaterialUnit")]
|
||||
public ExcelPropety MaterialUnit_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.MaterialUnit);
|
||||
[Display(Name = "Inventory.Batch")]
|
||||
public ExcelPropety Batch_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.Batch);
|
||||
[Display(Name = "Inventory.Lot")]
|
||||
public ExcelPropety Lot_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.Lot);
|
||||
[Display(Name = "Inventory.ManufactureDate")]
|
||||
public ExcelPropety ManufactureDate_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.ManufactureDate);
|
||||
[Display(Name = "Inventory.ExpirationDate")]
|
||||
public ExcelPropety ExpirationDate_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.ExpirationDate);
|
||||
[Display(Name = "Inventory.CompanyCode")]
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.CompanyCode);
|
||||
[Display(Name = "Inventory.SupplierCode")]
|
||||
public ExcelPropety SupplierCode_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.SupplierCode);
|
||||
[Display(Name = "Receipt.CompletedQty")]
|
||||
public ExcelPropety CompletedQty_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.CompletedQty);
|
||||
[Display(Name = "Inventory.Qty")]
|
||||
public ExcelPropety Qty_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.Qty);
|
||||
[Display(Name = "Inventory.Status")]
|
||||
public ExcelPropety InventoryStatus_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.InventoryStatus);
|
||||
[Display(Name = "Receipt.Status")]
|
||||
public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<ReceiptDetailHistory>(x => x.Status);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
ReceiptHeaderHistory_Excel.DataType = ColumnDataType.ComboBox;
|
||||
ReceiptHeaderHistory_Excel.ListItems = DC.Set<ReceiptHeaderHistory>().GetSelectListItems(Wtm, y => y.Code);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ReceiptDetailHistoryImportVM : BaseImportVM<ReceiptDetailHistoryTemplateVM, ReceiptDetailHistory>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
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 ReceiptDetailHistoryListVM : BasePagedListVM<ReceiptDetailHistory_View, ReceiptDetailHistorySearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("ReceiptDetailHistory", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptDetailHistory", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptDetailHistory", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptDetailHistory", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptDetailHistory", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptDetailHistory", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptDetailHistory", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptDetailHistory", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "receipt"),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<ReceiptDetailHistory_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<ReceiptDetailHistory_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.Qty),
|
||||
this.MakeGridHeader(x => x.InventoryStatus),
|
||||
this.MakeGridHeader(x => x.Status),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<ReceiptDetailHistory_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<ReceiptDetailHistory>()
|
||||
.CheckEqual(Searcher.ReceiptHeaderHistoryId, x=>x.ReceiptHeaderHistoryId)
|
||||
.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 ReceiptDetailHistory_View
|
||||
{
|
||||
ID = x.ID,
|
||||
Code_view = x.ReceiptHeaderHistory.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,
|
||||
Qty = x.Qty,
|
||||
InventoryStatus = x.InventoryStatus,
|
||||
Status = x.Status,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ReceiptDetailHistory_View : ReceiptDetailHistory{
|
||||
[Display(Name = "Inventory.ReceiptCode")]
|
||||
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 ReceiptDetailHistorySearcher : BaseSearcher
|
||||
{
|
||||
public List<ComboSelectListItem> AllReceiptHeaderHistorys { get; set; }
|
||||
[Display(Name = "Inventory.ReceiptCode")]
|
||||
public int? ReceiptHeaderHistoryId { 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 ReceiptStatusEnum? Status { get; set; }
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
AllReceiptHeaderHistorys = DC.Set<ReceiptHeaderHistory>().GetSelectListItems(Wtm, y => y.Code);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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 ReceiptDetailHistoryVM : BaseCRUDVM<ReceiptDetailHistory>
|
||||
{
|
||||
public List<ComboSelectListItem> AllReceiptHeaderHistorys { get; set; }
|
||||
|
||||
public ReceiptDetailHistoryVM()
|
||||
{
|
||||
SetInclude(x => x.ReceiptHeaderHistory);
|
||||
}
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
AllReceiptHeaderHistorys = DC.Set<ReceiptHeaderHistory>().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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user