添加项目文件。
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 ReceiptHeaderHistoryBatchVM : BaseBatchVM<ReceiptHeaderHistory, ReceiptHeaderHistory_BatchEdit>
|
||||
{
|
||||
public ReceiptHeaderHistoryBatchVM()
|
||||
{
|
||||
ListVM = new ReceiptHeaderHistoryListVM();
|
||||
LinkedVM = new ReceiptHeaderHistory_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class ReceiptHeaderHistory_BatchEdit : BaseVM
|
||||
{
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
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 ReceiptHeaderHistoryTemplateVM : BaseTemplateVM
|
||||
{
|
||||
[Display(Name = "Inventory.SourceCode")]
|
||||
public ExcelPropety SourceCode_Excel = ExcelPropety.CreateProperty<ReceiptHeaderHistory>(x => x.SourceCode);
|
||||
[Display(Name = "Inventory.ReceiptCode")]
|
||||
public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<ReceiptHeaderHistory>(x => x.Code);
|
||||
[Display(Name = "Inventory.BillType")]
|
||||
public ExcelPropety BillType_Excel = ExcelPropety.CreateProperty<ReceiptHeaderHistory>(x => x.BillType);
|
||||
[Display(Name = "Inventory.CompanyCode")]
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<ReceiptHeaderHistory>(x => x.CompanyCode);
|
||||
[Display(Name = "Inventory.SupplierCode")]
|
||||
public ExcelPropety SupplierCode_Excel = ExcelPropety.CreateProperty<ReceiptHeaderHistory>(x => x.SupplierCode);
|
||||
[Display(Name = "Receipt.TotalQty")]
|
||||
public ExcelPropety TotalQty_Excel = ExcelPropety.CreateProperty<ReceiptHeaderHistory>(x => x.TotalQty);
|
||||
[Display(Name = "Receipt.TotalLines")]
|
||||
public ExcelPropety TotalLines_Excel = ExcelPropety.CreateProperty<ReceiptHeaderHistory>(x => x.TotalLines);
|
||||
[Display(Name = "Receipt.FirstStatus")]
|
||||
public ExcelPropety FirstStatus_Excel = ExcelPropety.CreateProperty<ReceiptHeaderHistory>(x => x.FirstStatus);
|
||||
[Display(Name = "Receipt.LastStatus")]
|
||||
public ExcelPropety LastStatus_Excel = ExcelPropety.CreateProperty<ReceiptHeaderHistory>(x => x.LastStatus);
|
||||
[Display(Name = "Receipt.AppointmentTime")]
|
||||
public ExcelPropety AppointmentTime_Excel = ExcelPropety.CreateProperty<ReceiptHeaderHistory>(x => x.AppointmentTime);
|
||||
[Display(Name = "_Admin.Remark")]
|
||||
public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<ReceiptHeaderHistory>(x => x.Remark);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ReceiptHeaderHistoryImportVM : BaseImportVM<ReceiptHeaderHistoryTemplateVM, ReceiptHeaderHistory>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
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 ReceiptHeaderHistoryListVM : BasePagedListVM<ReceiptHeaderHistory_View, ReceiptHeaderHistorySearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("ReceiptHeaderHistory", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeaderHistory", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeaderHistory", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeaderHistory", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeaderHistory", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeaderHistory", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeaderHistory", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeaderHistory", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "receipt"),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<ReceiptHeaderHistory_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<ReceiptHeaderHistory_View>>{
|
||||
this.MakeGridHeader(x => x.SourceCode),
|
||||
this.MakeGridHeader(x => x.Code),
|
||||
this.MakeGridHeader(x => x.BillType),
|
||||
this.MakeGridHeader(x => x.CompanyCode),
|
||||
this.MakeGridHeader(x => x.SupplierCode),
|
||||
this.MakeGridHeader(x => x.TotalQty),
|
||||
this.MakeGridHeader(x => x.TotalLines),
|
||||
this.MakeGridHeader(x => x.FirstStatus),
|
||||
this.MakeGridHeader(x => x.LastStatus),
|
||||
this.MakeGridHeader(x => x.AppointmentTime),
|
||||
this.MakeGridHeader(x => x.Remark),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<ReceiptHeaderHistory_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<ReceiptHeaderHistory>()
|
||||
.CheckContain(Searcher.SourceCode, x=>x.SourceCode)
|
||||
.CheckContain(Searcher.Code, x=>x.Code)
|
||||
.CheckContain(Searcher.BillType, x=>x.BillType)
|
||||
.CheckContain(Searcher.CompanyCode, x=>x.CompanyCode)
|
||||
.CheckContain(Searcher.SupplierCode, x=>x.SupplierCode)
|
||||
.CheckEqual(Searcher.FirstStatus, x=>x.FirstStatus)
|
||||
.CheckEqual(Searcher.LastStatus, x=>x.LastStatus)
|
||||
.Select(x => new ReceiptHeaderHistory_View
|
||||
{
|
||||
ID = x.ID,
|
||||
SourceCode = x.SourceCode,
|
||||
Code = x.Code,
|
||||
BillType = x.BillType,
|
||||
CompanyCode = x.CompanyCode,
|
||||
SupplierCode = x.SupplierCode,
|
||||
TotalQty = x.TotalQty,
|
||||
TotalLines = x.TotalLines,
|
||||
FirstStatus = x.FirstStatus,
|
||||
LastStatus = x.LastStatus,
|
||||
AppointmentTime = x.AppointmentTime,
|
||||
Remark = x.Remark,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ReceiptHeaderHistory_View : ReceiptHeaderHistory{
|
||||
|
||||
}
|
||||
}
|
||||
+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 ReceiptHeaderHistorySearcher : BaseSearcher
|
||||
{
|
||||
[Display(Name = "Inventory.SourceCode")]
|
||||
public String SourceCode { get; set; }
|
||||
[Display(Name = "Inventory.ReceiptCode")]
|
||||
public String Code { get; set; }
|
||||
[Display(Name = "Inventory.BillType")]
|
||||
public String BillType { get; set; }
|
||||
[Display(Name = "Inventory.CompanyCode")]
|
||||
public String CompanyCode { get; set; }
|
||||
[Display(Name = "Inventory.SupplierCode")]
|
||||
public String SupplierCode { get; set; }
|
||||
[Display(Name = "Receipt.FirstStatus")]
|
||||
public ReceiptStatusEnum? FirstStatus { get; set; }
|
||||
[Display(Name = "Receipt.LastStatus")]
|
||||
public ReceiptStatusEnum? LastStatus { 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 ReceiptHeaderHistoryVM : BaseCRUDVM<ReceiptHeaderHistory>
|
||||
{
|
||||
|
||||
public ReceiptHeaderHistoryVM()
|
||||
{
|
||||
}
|
||||
|
||||
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