添加项目文件。
This commit is contained in:
1 parent
05e131ca4e
commit
514d6f5255
1162 files changed
+81255
No files matched your search
@@ -0,0 +1,24 @@
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ReceiptHeaderBatchVM : BaseBatchVM<ReceiptHeader, ReceiptHeader_BatchEdit>
|
||||
{
|
||||
public ReceiptHeaderBatchVM()
|
||||
{
|
||||
ListVM = new ReceiptHeaderListVM();
|
||||
LinkedVM = new ReceiptHeader_BatchEdit();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class ReceiptHeader_BatchEdit : BaseVM
|
||||
{
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ReceiptHeaderTemplateVM : BaseTemplateVM
|
||||
{
|
||||
[Display(Name = "Inventory.SourceCode")]
|
||||
public ExcelPropety SourceCode_Excel = ExcelPropety.CreateProperty<ReceiptHeader>(x => x.SourceCode);
|
||||
|
||||
[Display(Name = "Inventory.ReceiptCode")]
|
||||
public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<ReceiptHeader>(x => x.Code);
|
||||
|
||||
[Display(Name = "Inventory.BillType")]
|
||||
public ExcelPropety BillType_Excel = ExcelPropety.CreateProperty<ReceiptHeader>(x => x.BillType);
|
||||
|
||||
[Display(Name = "Inventory.CompanyCode")]
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<ReceiptHeader>(x => x.CompanyCode);
|
||||
|
||||
[Display(Name = "Inventory.SupplierCode")]
|
||||
public ExcelPropety SupplierCode_Excel = ExcelPropety.CreateProperty<ReceiptHeader>(x => x.SupplierCode);
|
||||
|
||||
[Display(Name = "Receipt.TotalQty")]
|
||||
public ExcelPropety TotalQty_Excel = ExcelPropety.CreateProperty<ReceiptHeader>(x => x.TotalQty);
|
||||
|
||||
[Display(Name = "Receipt.TotalLines")]
|
||||
public ExcelPropety TotalLines_Excel = ExcelPropety.CreateProperty<ReceiptHeader>(x => x.TotalLines);
|
||||
|
||||
[Display(Name = "Receipt.FirstStatus")]
|
||||
public ExcelPropety FirstStatus_Excel = ExcelPropety.CreateProperty<ReceiptHeader>(x => x.FirstStatus);
|
||||
|
||||
[Display(Name = "Receipt.LastStatus")]
|
||||
public ExcelPropety LastStatus_Excel = ExcelPropety.CreateProperty<ReceiptHeader>(x => x.LastStatus);
|
||||
|
||||
[Display(Name = "Receipt.AppointmentTime")]
|
||||
public ExcelPropety AppointmentTime_Excel = ExcelPropety.CreateProperty<ReceiptHeader>(x => x.AppointmentTime);
|
||||
|
||||
[Display(Name = "_Admin.Remark")]
|
||||
public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<ReceiptHeader>(x => x.Remark);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class ReceiptHeaderImportVM : BaseImportVM<ReceiptHeaderTemplateVM, ReceiptHeader>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ReceiptHeaderListVM : BasePagedListVM<ReceiptHeader_View, ReceiptHeaderSearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("ReceiptHeader", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeader", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeader", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeader", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeader", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeader", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeader", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "receipt", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeader", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "receipt"),
|
||||
};
|
||||
}
|
||||
|
||||
protected override IEnumerable<IGridColumn<ReceiptHeader_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<ReceiptHeader_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<ReceiptHeader_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<ReceiptHeader>()
|
||||
.CheckContain(Searcher.SourceCode, x => x.SourceCode)
|
||||
.CheckContain(Searcher.Code, x => x.Code)
|
||||
.CheckContain(Searcher.BillType, x => x.BillType)
|
||||
.CheckEqual(Searcher.FirstStatus, x => x.FirstStatus)
|
||||
.CheckEqual(Searcher.LastStatus, x => x.LastStatus)
|
||||
.Select(x => new ReceiptHeader_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 ReceiptHeader_View : ReceiptHeader
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ReceiptHeaderSearcher : 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 = "Receipt.FirstStatus")]
|
||||
public ReceiptStatusEnum? FirstStatus { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.LastStatus")]
|
||||
public ReceiptStatusEnum? LastStatus { get; set; }
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System.Linq;
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using Z.EntityFramework.Plus;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ReceiptHeaderVM : BaseCRUDVM<ReceiptHeader>
|
||||
{
|
||||
public ReceiptHeaderVM()
|
||||
{
|
||||
}
|
||||
|
||||
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