入库单新建
This commit is contained in:
1 parent
e2dead6c3f
commit
663769f80e
50 files changed
+2164
-94
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 Material2BatchVM : BaseBatchVM<Material2, Material2_BatchEdit>
|
||||
{
|
||||
public Material2BatchVM()
|
||||
{
|
||||
ListVM = new Material2ListVM();
|
||||
LinkedVM = new Material2_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class Material2_BatchEdit : BaseVM
|
||||
{
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
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 Material2TemplateVM : BaseTemplateVM
|
||||
{
|
||||
public ExcelPropety WarehouseId_Excel = ExcelPropety.CreateProperty<Material2>(x => x.WarehouseId);
|
||||
public ExcelPropety WarehouseCode_Excel = ExcelPropety.CreateProperty<Material2>(x => x.WarehouseCode);
|
||||
public ExcelPropety CompanyId_Excel = ExcelPropety.CreateProperty<Material2>(x => x.CompanyId);
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<Material2>(x => x.CompanyCode);
|
||||
public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Code);
|
||||
public ExcelPropety Type_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Type);
|
||||
public ExcelPropety Name_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Name);
|
||||
public ExcelPropety Barcode_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Barcode);
|
||||
public ExcelPropety Barcode2_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Barcode2);
|
||||
public ExcelPropety Barcode3_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Barcode3);
|
||||
public ExcelPropety Barcode4_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Barcode4);
|
||||
public ExcelPropety ClassA_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ClassA);
|
||||
public ExcelPropety ClassB_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ClassB);
|
||||
public ExcelPropety ClassC_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ClassC);
|
||||
public ExcelPropety Specification_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Specification);
|
||||
public ExcelPropety Brand_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Brand);
|
||||
public ExcelPropety Size_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Size);
|
||||
public ExcelPropety Color_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Color);
|
||||
public ExcelPropety PlaceOfOrigin_Excel = ExcelPropety.CreateProperty<Material2>(x => x.PlaceOfOrigin);
|
||||
public ExcelPropety DaysToExpire_Excel = ExcelPropety.CreateProperty<Material2>(x => x.DaysToExpire);
|
||||
public ExcelPropety ExpiringDays_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ExpiringDays);
|
||||
public ExcelPropety MinShelfLifeDays_Excel = ExcelPropety.CreateProperty<Material2>(x => x.MinShelfLifeDays);
|
||||
public ExcelPropety CostPrice_Excel = ExcelPropety.CreateProperty<Material2>(x => x.CostPrice);
|
||||
public ExcelPropety ListPrice_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ListPrice);
|
||||
public ExcelPropety NetPrice_Excel = ExcelPropety.CreateProperty<Material2>(x => x.NetPrice);
|
||||
public ExcelPropety MasterUnit_Excel = ExcelPropety.CreateProperty<Material2>(x => x.MasterUnit);
|
||||
public ExcelPropety AssistUnit_Excel = ExcelPropety.CreateProperty<Material2>(x => x.AssistUnit);
|
||||
public ExcelPropety ConvertRate_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ConvertRate);
|
||||
public ExcelPropety ManufactureDate_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ManufactureDate);
|
||||
public ExcelPropety ReceiptDate_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ReceiptDate);
|
||||
public ExcelPropety Enable_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Enable);
|
||||
public ExcelPropety Deleted_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Deleted);
|
||||
public ExcelPropety UserDef1_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef1);
|
||||
public ExcelPropety UserDef2_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef2);
|
||||
public ExcelPropety UserDef3_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef3);
|
||||
public ExcelPropety UserDef4_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef4);
|
||||
public ExcelPropety UserDef5_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef5);
|
||||
public ExcelPropety UserDef6_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef6);
|
||||
public ExcelPropety UserDef7_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef7);
|
||||
public ExcelPropety UserDef8_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef8);
|
||||
public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ZoneCode);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class Material2ImportVM : BaseImportVM<Material2TemplateVM, Material2>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
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 Material2ListVM : BasePagedListVM<Material2_View, Material2Searcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "xwms"),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<Material2_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<Material2_View>>{
|
||||
this.MakeGridHeader(x => x.Code),
|
||||
this.MakeGridHeader(x => x.Type),
|
||||
this.MakeGridHeader(x => x.Name),
|
||||
this.MakeGridHeader(x => x.MasterUnit),
|
||||
this.MakeGridHeader(x => x.AssistUnit),
|
||||
this.MakeGridHeader(x => x.WarehouseId),
|
||||
this.MakeGridHeader(x => x.WarehouseCode),
|
||||
this.MakeGridHeader(x => x.CompanyId),
|
||||
this.MakeGridHeader(x => x.CompanyCode),
|
||||
this.MakeGridHeader(x => x.Barcode),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<Material2_View> GetSearchQuery()
|
||||
{
|
||||
var dc2 = Wtm.CreateDC(cskey: "hangyong");
|
||||
var query = dc2.Set<Material2>()
|
||||
.CheckContain(Searcher.Code, x => x.Code)
|
||||
.CheckContain(Searcher.Name, x => x.Name)
|
||||
.CheckContain(Searcher.Type, x => x.Type)
|
||||
.Select(x => new Material2_View
|
||||
{
|
||||
ID = x.ID,
|
||||
WarehouseId = x.WarehouseId,
|
||||
WarehouseCode = x.WarehouseCode,
|
||||
CompanyId = x.CompanyId,
|
||||
CompanyCode = x.CompanyCode,
|
||||
Code = x.Code,
|
||||
Type = x.Type,
|
||||
Name = x.Name,
|
||||
Barcode = x.Barcode,
|
||||
Barcode2 = x.Barcode2,
|
||||
Barcode3 = x.Barcode3,
|
||||
Barcode4 = x.Barcode4,
|
||||
ClassA = x.ClassA,
|
||||
ClassB = x.ClassB,
|
||||
ClassC = x.ClassC,
|
||||
Specification = x.Specification,
|
||||
Brand = x.Brand,
|
||||
Size = x.Size,
|
||||
Color = x.Color,
|
||||
PlaceOfOrigin = x.PlaceOfOrigin,
|
||||
DaysToExpire = x.DaysToExpire,
|
||||
ExpiringDays = x.ExpiringDays,
|
||||
MinShelfLifeDays = x.MinShelfLifeDays,
|
||||
CostPrice = x.CostPrice,
|
||||
ListPrice = x.ListPrice,
|
||||
NetPrice = x.NetPrice,
|
||||
MasterUnit = x.MasterUnit,
|
||||
AssistUnit = x.AssistUnit,
|
||||
ConvertRate = x.ConvertRate,
|
||||
ManufactureDate = x.ManufactureDate,
|
||||
ReceiptDate = x.ReceiptDate,
|
||||
Enable = x.Enable,
|
||||
Deleted = x.Deleted,
|
||||
UserDef1 = x.UserDef1,
|
||||
UserDef2 = x.UserDef2,
|
||||
UserDef3 = x.UserDef3,
|
||||
UserDef4 = x.UserDef4,
|
||||
UserDef5 = x.UserDef5,
|
||||
UserDef6 = x.UserDef6,
|
||||
UserDef7 = x.UserDef7,
|
||||
UserDef8 = x.UserDef8,
|
||||
ZoneCode = x.ZoneCode,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class Material2_View : Material2{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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 Material2Searcher : BaseSearcher
|
||||
{
|
||||
public Int32? WarehouseId { get; set; }
|
||||
public String WarehouseCode { get; set; }
|
||||
public Int32? CompanyId { get; set; }
|
||||
public String CompanyCode { get; set; }
|
||||
public String Code { get; set; }
|
||||
public String Type { get; set; }
|
||||
public String Name { get; set; }
|
||||
public String Barcode { get; set; }
|
||||
public String Barcode2 { get; set; }
|
||||
public String Barcode3 { get; set; }
|
||||
public String Barcode4 { get; set; }
|
||||
public String ClassA { get; set; }
|
||||
public String ClassB { get; set; }
|
||||
public String ClassC { get; set; }
|
||||
public String Specification { get; set; }
|
||||
public String Brand { get; set; }
|
||||
public String Size { get; set; }
|
||||
public String Color { get; set; }
|
||||
public String PlaceOfOrigin { get; set; }
|
||||
public Int32? DaysToExpire { get; set; }
|
||||
public Int32? ExpiringDays { get; set; }
|
||||
public Int32? MinShelfLifeDays { get; set; }
|
||||
public Decimal? CostPrice { get; set; }
|
||||
public Decimal? ListPrice { get; set; }
|
||||
public Decimal? NetPrice { get; set; }
|
||||
public String MasterUnit { get; set; }
|
||||
public String AssistUnit { get; set; }
|
||||
public Single? ConvertRate { get; set; }
|
||||
public Boolean? ManufactureDate { get; set; }
|
||||
public Boolean? ReceiptDate { get; set; }
|
||||
public Boolean? Enable { get; set; }
|
||||
public Boolean? Deleted { get; set; }
|
||||
public String UserDef1 { get; set; }
|
||||
public String UserDef2 { get; set; }
|
||||
public String UserDef3 { get; set; }
|
||||
public String UserDef4 { get; set; }
|
||||
public String UserDef5 { get; set; }
|
||||
public String UserDef6 { get; set; }
|
||||
public String UserDef7 { get; set; }
|
||||
public String UserDef8 { get; set; }
|
||||
public String ZoneCode { 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 Material2VM : BaseCRUDVM<Material2>
|
||||
{
|
||||
|
||||
public Material2VM()
|
||||
{
|
||||
}
|
||||
|
||||
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