事务,分库

This commit is contained in:
zgf committed 2024-01-03 13:30:19 +08:00
1 parent 663769f80e
commit 8702a24e20
11 files changed
+285 -190

No files matched your search

@@ -40,7 +40,8 @@ namespace HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs
{
InitVM();
return new List<GridColumn<ReceiptHeader2_View>>{
this.MakeGridHeader(x => x.Code).SetFormat((a,b) =>
this.MakeGridHeader(x => x.Code)
.SetFormat((a,b) =>
{
string rv = UIService.MakeScriptButton(ButtonTypesEnum.Link,a.Code,$"details('{a.ID}')");
return rv;
@@ -48,7 +49,7 @@ namespace HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs
this.MakeGridHeader(x => x.Type),
this.MakeGridHeader(x => x.SourceCode).SetWidth(150),
this.MakeGridHeader(x => x.SupplierCode).SetHide(),
this.MakeGridHeader(x => x.SupplierName).SetWidth(200),
this.MakeGridHeader(x => x.SupplierName).SetWidth(150),
this.MakeGridHeader(x => x.TotalQty)
.SetFormat((a,b) =>
{
@@ -73,6 +74,11 @@ namespace HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs
public override IOrderedQueryable<ReceiptHeader2_View> GetSearchQuery()
{
var query = DC.Set<ReceiptHeader2>()
.CheckEqual(Searcher.WarehouseId, x => x.WarehouseId)
.CheckContain(Searcher.Code, x => x.Code)
.CheckContain(Searcher.Type, x => x.Type)
.CheckContain(Searcher.SourceCode, x => x.SourceCode)
.CheckContain(Searcher.SupplierName, x => x.SupplierName)
.Select(x => new ReceiptHeader2_View
{
ID = x.ID,