其他出
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 ShipmentHeader2BatchVM : BaseBatchVM<ShipmentHeader2, ShipmentHeader2_BatchEdit>
|
||||
{
|
||||
public ShipmentHeader2BatchVM()
|
||||
{
|
||||
ListVM = new ShipmentHeader2ListVM();
|
||||
LinkedVM = new ShipmentHeader2_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class ShipmentHeader2_BatchEdit : BaseVM
|
||||
{
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
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 ShipmentHeader2TemplateVM : BaseTemplateVM
|
||||
{
|
||||
public ExcelPropety WarehouseId_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.WarehouseId);
|
||||
public ExcelPropety WarehouseCode_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.WarehouseCode);
|
||||
public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Code);
|
||||
public ExcelPropety CompanyId_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.CompanyId);
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.CompanyCode);
|
||||
public ExcelPropety SourceCode_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.SourceCode);
|
||||
public ExcelPropety SourcePlatform_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.SourcePlatform);
|
||||
public ExcelPropety Type_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Type);
|
||||
public ExcelPropety ShipTo_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.ShipTo);
|
||||
public ExcelPropety Priority_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Priority);
|
||||
public ExcelPropety Station_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Station);
|
||||
public ExcelPropety TotalQty_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.TotalQty);
|
||||
public ExcelPropety TotalLines_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.TotalLines);
|
||||
public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Remark);
|
||||
public ExcelPropety Uploadremark_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Uploadremark);
|
||||
public ExcelPropety UploadTime_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.UploadTime);
|
||||
public ExcelPropety AppointmentTime_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.AppointmentTime);
|
||||
public ExcelPropety FirstStatus_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.FirstStatus);
|
||||
public ExcelPropety LastStatus_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.LastStatus);
|
||||
public ExcelPropety UploadStatus_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.UploadStatus);
|
||||
public ExcelPropety Enable_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Enable);
|
||||
public ExcelPropety Deleted_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Deleted);
|
||||
public ExcelPropety UserDef1_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.UserDef1);
|
||||
public ExcelPropety UserDef2_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.UserDef2);
|
||||
public ExcelPropety UserDef3_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.UserDef3);
|
||||
public ExcelPropety UserDef4_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.UserDef4);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ShipmentHeader2ImportVM : BaseImportVM<ShipmentHeader2TemplateVM, ShipmentHeader2>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
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 ShipmentHeader2ListVM : BasePagedListVM<ShipmentHeader2_View, ShipmentHeader2Searcher>
|
||||
{
|
||||
public ShipmentDetail2ListVM ShipmentDetails { get; set; } = new ShipmentDetail2ListVM();
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
ShipmentDetails.CopyContext(this);
|
||||
}
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "xwms"),
|
||||
this.MakeAction("ShipmentHeader2","CreateOut",Localizer["Sys.Out"],Localizer["Sys.Out"],GridActionParameterTypesEnum.NoId,"xwms")
|
||||
.SetMax(),
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<ShipmentHeader2_View>> InitGridHeader()
|
||||
{
|
||||
InitVM();
|
||||
return new List<GridColumn<ShipmentHeader2_View>>{
|
||||
this.MakeGridHeader(x => x.Code)
|
||||
.SetFormat((a,b) =>
|
||||
{
|
||||
string rv = UIService.MakeScriptButton(ButtonTypesEnum.Link,a.Code,$"details('{a.ID}')");
|
||||
return rv;
|
||||
}).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.SourceCode),
|
||||
this.MakeGridHeader(x => x.Type),
|
||||
this.MakeGridHeader(x => x.ShipTo),
|
||||
this.MakeGridHeader(x => x.TotalQty),
|
||||
this.MakeGridHeader(x => x.TotalLines),
|
||||
this.MakeGridHeader(x => x.Remark),
|
||||
this.MakeGridHeader(x => x.Uploadremark).SetHide(),
|
||||
this.MakeGridHeader(x => x.UploadTime).SetHide(),
|
||||
this.MakeGridHeader(x => x.FirstStatus).SetHide(),
|
||||
this.MakeGridHeader(x => x.LastStatus).SetHide(),
|
||||
this.MakeGridHeader(x => x.UploadStatus).SetHide(),
|
||||
this.MakeGridHeader(x => x.UserDef1).SetHide(),
|
||||
this.MakeGridHeader(x => x.UserDef2).SetHide(),
|
||||
this.MakeGridHeader(x => x.UserDef3).SetHide(),
|
||||
this.MakeGridHeader(x => x.UserDef4).SetHide(),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<ShipmentHeader2_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<ShipmentHeader2>()
|
||||
.CheckEqual(Searcher.WarehouseId, x => x.WarehouseId)
|
||||
.CheckContain(Searcher.Code, x=>x.Code)
|
||||
.CheckContain(Searcher.SourceCode, x=>x.SourceCode)
|
||||
.CheckContain(Searcher.Type, x=>x.Type)
|
||||
.CheckContain(Searcher.ShipTo, x=>x.ShipTo)
|
||||
.CheckEqual(Searcher.FirstStatus, x=>x.FirstStatus)
|
||||
.CheckEqual(Searcher.LastStatus, x=>x.LastStatus)
|
||||
.CheckEqual(Searcher.UploadStatus, x=>x.UploadStatus)
|
||||
.CheckContain(Searcher.UserDef1, x=>x.UserDef1)
|
||||
.CheckContain(Searcher.UserDef2, x=>x.UserDef2)
|
||||
.CheckContain(Searcher.UserDef3, x=>x.UserDef3)
|
||||
.CheckContain(Searcher.UserDef4, x=>x.UserDef4)
|
||||
.Select(x => new ShipmentHeader2_View
|
||||
{
|
||||
ID = x.ID,
|
||||
WarehouseId = x.WarehouseId,
|
||||
WarehouseCode = x.WarehouseCode,
|
||||
Code = x.Code,
|
||||
CompanyId = x.CompanyId,
|
||||
CompanyCode = x.CompanyCode,
|
||||
SourceCode = x.SourceCode,
|
||||
SourcePlatform = x.SourcePlatform,
|
||||
Type = x.Type,
|
||||
ShipTo = x.ShipTo,
|
||||
Priority = x.Priority,
|
||||
Station = x.Station,
|
||||
TotalQty = x.TotalQty,
|
||||
TotalLines = x.TotalLines,
|
||||
Remark = x.Remark,
|
||||
Uploadremark = x.Uploadremark,
|
||||
UploadTime = x.UploadTime,
|
||||
AppointmentTime = x.AppointmentTime,
|
||||
FirstStatus = x.FirstStatus,
|
||||
LastStatus = x.LastStatus,
|
||||
UploadStatus = x.UploadStatus,
|
||||
Enable = x.Enable,
|
||||
Deleted = x.Deleted,
|
||||
UserDef1 = x.UserDef1,
|
||||
UserDef2 = x.UserDef2,
|
||||
UserDef3 = x.UserDef3,
|
||||
UserDef4 = x.UserDef4,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ShipmentHeader2_View : ShipmentHeader2{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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 ShipmentHeader2Searcher : BaseSearcher
|
||||
{
|
||||
public Int32? WarehouseId { get; set; }
|
||||
public String WarehouseCode { get; set; }
|
||||
public String Code { get; set; }
|
||||
public Int32? CompanyId { get; set; }
|
||||
public String CompanyCode { get; set; }
|
||||
public String SourceCode { get; set; }
|
||||
public String SourcePlatform { get; set; }
|
||||
public String Type { get; set; }
|
||||
public String ShipTo { get; set; }
|
||||
public Int32? Priority { get; set; }
|
||||
public String Station { get; set; }
|
||||
public Decimal? TotalQty { get; set; }
|
||||
public Int32? TotalLines { get; set; }
|
||||
public String Remark { get; set; }
|
||||
public String Uploadremark { get; set; }
|
||||
public DateRange UploadTime { get; set; }
|
||||
public DateRange AppointmentTime { get; set; }
|
||||
public Int32? FirstStatus { get; set; }
|
||||
public Int32? LastStatus { get; set; }
|
||||
public Int32? UploadStatus { 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; }
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
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 ShipmentHeader2VM : BaseCRUDVM<ShipmentHeader2>
|
||||
{
|
||||
public ShipmentHeader2VM()
|
||||
{
|
||||
}
|
||||
|
||||
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