diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/CreateModal.cshtml.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/CreateModal.cshtml.cs new file mode 100644 index 000000000..b2fc8a4f3 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/CreateModal.cshtml.cs @@ -0,0 +1,27 @@ +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using WinIn.FasterZ.Wms.Z_Business.StoreRecycledMaterialReceiptNoteDetail; +using WinIn.FasterZ.Wms.Z_Business.StoreRecycledMaterialReceiptNoteDetail.Dtos; +using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreRecycledMaterialReceiptNoteDetail.StoreRecycledMaterialReceiptNoteDetail.ViewModels; + +namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreRecycledMaterialReceiptNoteDetail.StoreRecycledMaterialReceiptNoteDetail; + +public class CreateModalModel : WmsPageModel +{ + [BindProperty] + public CreateEditStoreRecycledMaterialReceiptNoteDetailViewModel ViewModel { get; set; } + + private readonly IStoreRecycledMaterialReceiptNoteDetailAppService _service; + + public CreateModalModel(IStoreRecycledMaterialReceiptNoteDetailAppService service) + { + _service = service; + } + + public virtual async Task OnPostAsync() + { + var dto = ObjectMapper.Map(ViewModel); + await _service.CreateAsync(dto); + return NoContent(); + } +} \ No newline at end of file diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/EditModal.cshtml b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/EditModal.cshtml new file mode 100644 index 000000000..c3a187541 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/EditModal.cshtml @@ -0,0 +1,19 @@ +@page +@using WinIn.FasterZ.Wms.Localization +@using Microsoft.AspNetCore.Mvc.Localization +@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal; +@inject IHtmlLocalizer L +@model WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreRecycledMaterialReceiptNoteDetail.StoreRecycledMaterialReceiptNoteDetail.EditModalModel +@{ + Layout = null; +} + + + + + + + + + + diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/EditModal.cshtml.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/EditModal.cshtml.cs new file mode 100644 index 000000000..a29591970 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/EditModal.cshtml.cs @@ -0,0 +1,38 @@ +using System; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using WinIn.FasterZ.Wms.Z_Business.StoreRecycledMaterialReceiptNoteDetail; +using WinIn.FasterZ.Wms.Z_Business.StoreRecycledMaterialReceiptNoteDetail.Dtos; +using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreRecycledMaterialReceiptNoteDetail.StoreRecycledMaterialReceiptNoteDetail.ViewModels; + +namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreRecycledMaterialReceiptNoteDetail.StoreRecycledMaterialReceiptNoteDetail; + +public class EditModalModel : WmsPageModel +{ + [HiddenInput] + [BindProperty(SupportsGet = true)] + public Guid Id { get; set; } + + [BindProperty] + public CreateEditStoreRecycledMaterialReceiptNoteDetailViewModel ViewModel { get; set; } + + private readonly IStoreRecycledMaterialReceiptNoteDetailAppService _service; + + public EditModalModel(IStoreRecycledMaterialReceiptNoteDetailAppService service) + { + _service = service; + } + + public virtual async Task OnGetAsync() + { + var dto = await _service.GetAsync(Id); + ViewModel = ObjectMapper.Map(dto); + } + + public virtual async Task OnPostAsync() + { + var dto = ObjectMapper.Map(ViewModel); + await _service.UpdateAsync(Id, dto); + return NoContent(); + } +} \ No newline at end of file diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/Index.cshtml b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/Index.cshtml new file mode 100644 index 000000000..66e1dca3d --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/Index.cshtml @@ -0,0 +1,57 @@ +@page +@using WinIn.FasterZ.Wms.Permissions +@using Microsoft.AspNetCore.Authorization +@using Microsoft.AspNetCore.Mvc.Localization +@using Volo.Abp.AspNetCore.Mvc.UI.Layout +@using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreRecycledMaterialReceiptNoteDetail.StoreRecycledMaterialReceiptNoteDetail +@using WinIn.FasterZ.Wms.Localization +@using WinIn.FasterZ.Wms.Web.Menus +@model IndexModel +@inject IPageLayout PageLayout +@inject IHtmlLocalizer L +@inject IAuthorizationService Authorization +@{ + PageLayout.Content.Title = L["StoreRecycledMaterialReceiptNoteDetail"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:StoreRecycledMaterialReceiptNoteDetail"].Value); + PageLayout.Content.MenuItemName = WmsMenus.StoreRecycledMaterialReceiptNoteDetail; +} + +@section scripts +{ + +} +@section styles +{ + +} + + + + + + @L["StoreRecycledMaterialReceiptNoteDetail"] + + + @if (await Authorization.IsGrantedAsync(WmsPermissions.StoreRecycledMaterialReceiptNoteDetail.Create)) + { + + } + + + + + + @L["TableFilter"] + + + + + + +
+ +
+
diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/Index.cshtml.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/Index.cshtml.cs new file mode 100644 index 000000000..53e114acd --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/Index.cshtml.cs @@ -0,0 +1,119 @@ +using System; +using System.Threading.Tasks; +using System.ComponentModel.DataAnnotations; +using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form; + +namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreRecycledMaterialReceiptNoteDetail.StoreRecycledMaterialReceiptNoteDetail; + +public class IndexModel : WmsPageModel +{ + public StoreRecycledMaterialReceiptNoteDetailFilterInput StoreRecycledMaterialReceiptNoteDetailFilter { get; set; } + + public virtual async Task OnGetAsync() + { + await Task.CompletedTask; + } +} + +public class StoreRecycledMaterialReceiptNoteDetailFilterInput +{ + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailArriveDate")] + public DateTime? ArriveDate { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailContainerCode")] + public string? ContainerCode { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailExpireDate")] + public DateTime? ExpireDate { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailItemCode")] + public string? ItemCode { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailItemDesc1")] + public string? ItemDesc1 { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailItemDesc2")] + public string? ItemDesc2 { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailItemName")] + public string? ItemName { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailLocationArea")] + public string? LocationArea { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailLocationCode")] + public string? LocationCode { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailLocationErpCode")] + public string? LocationErpCode { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailLocationGroup")] + public string? LocationGroup { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailLot")] + public string? Lot { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailMaster")] + public StoreRecycledMaterialReceiptNote? Master { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailMasterId")] + public Guid? MasterId { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailNumber")] + public string? Number { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailPackingCode")] + public string? PackingCode { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailProduceDate")] + public DateTime? ProduceDate { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailQty")] + public decimal? Qty { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailReasonCode")] + public string? ReasonCode { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailRemark")] + public string? Remark { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailStatus")] + public string? Status { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailStdPackQty")] + public decimal? StdPackQty { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailSupplierBatch")] + public string? SupplierBatch { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailUom")] + public string? Uom { get; set; } + + [FormControlSize(AbpFormControlSize.Small)] + [Display(Name = "StoreRecycledMaterialReceiptNoteDetailWarehouseCode")] + public string? WarehouseCode { get; set; } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/index.css b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Web/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/index.css new file mode 100644 index 000000000..e69de29bb