6 changed files with 260 additions and 0 deletions
@ -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<IActionResult> OnPostAsync() |
||||
|
{ |
||||
|
var dto = ObjectMapper.Map<CreateEditStoreRecycledMaterialReceiptNoteDetailViewModel, CreateUpdateStoreRecycledMaterialReceiptNoteDetailDto>(ViewModel); |
||||
|
await _service.CreateAsync(dto); |
||||
|
return NoContent(); |
||||
|
} |
||||
|
} |
@ -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<WmsResource> L |
||||
|
@model WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreRecycledMaterialReceiptNoteDetail.StoreRecycledMaterialReceiptNoteDetail.EditModalModel |
||||
|
@{ |
||||
|
Layout = null; |
||||
|
} |
||||
|
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
||||
|
<abp-modal> |
||||
|
<abp-modal-header title="@L["EditStoreRecycledMaterialReceiptNoteDetail"].Value"></abp-modal-header> |
||||
|
<abp-modal-body> |
||||
|
<abp-input asp-for="Id" /> |
||||
|
<abp-form-content /> |
||||
|
</abp-modal-body> |
||||
|
<abp-modal-footer buttons="@(AbpModalButtons.Cancel|AbpModalButtons.Save)"></abp-modal-footer> |
||||
|
</abp-modal> |
||||
|
</abp-dynamic-form> |
@ -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<StoreRecycledMaterialReceiptNoteDetailDto, CreateEditStoreRecycledMaterialReceiptNoteDetailViewModel>(dto); |
||||
|
} |
||||
|
|
||||
|
public virtual async Task<IActionResult> OnPostAsync() |
||||
|
{ |
||||
|
var dto = ObjectMapper.Map<CreateEditStoreRecycledMaterialReceiptNoteDetailViewModel, CreateUpdateStoreRecycledMaterialReceiptNoteDetailDto>(ViewModel); |
||||
|
await _service.UpdateAsync(Id, dto); |
||||
|
return NoContent(); |
||||
|
} |
||||
|
} |
@ -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<WmsResource> 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 |
||||
|
{ |
||||
|
<abp-script src="/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/index.js" /> |
||||
|
} |
||||
|
@section styles |
||||
|
{ |
||||
|
<abp-style src="/Pages/Z_Business/StoreRecycledMaterialReceiptNoteDetail/StoreRecycledMaterialReceiptNoteDetail/index.css"/> |
||||
|
} |
||||
|
|
||||
|
<abp-card> |
||||
|
<abp-card-header> |
||||
|
<abp-row> |
||||
|
<abp-column size-md="_6"> |
||||
|
<abp-card-title>@L["StoreRecycledMaterialReceiptNoteDetail"]</abp-card-title> |
||||
|
</abp-column> |
||||
|
<abp-column size-md="_6" class="text-end"> |
||||
|
@if (await Authorization.IsGrantedAsync(WmsPermissions.StoreRecycledMaterialReceiptNoteDetail.Create)) |
||||
|
{ |
||||
|
<abp-button id="NewStoreRecycledMaterialReceiptNoteDetailButton" |
||||
|
text="@L["CreateStoreRecycledMaterialReceiptNoteDetail"].Value" |
||||
|
icon="plus" |
||||
|
button-type="Primary" /> |
||||
|
} |
||||
|
</abp-column> |
||||
|
</abp-row> |
||||
|
</abp-card-header> |
||||
|
<abp-card-body> |
||||
|
<abp-row class="mb-3"> |
||||
|
<a abp-collapse-id="StoreRecycledMaterialReceiptNoteDetailCollapse" class="text-secondary">@L["TableFilter"] </a> |
||||
|
</abp-row> |
||||
|
<abp-dynamic-form abp-model="StoreRecycledMaterialReceiptNoteDetailFilter" id="StoreRecycledMaterialReceiptNoteDetailFilter" required-symbols="false" column-size="_3"> |
||||
|
<abp-collapse-body id="StoreRecycledMaterialReceiptNoteDetailCollapse"> |
||||
|
<abp-form-content /> |
||||
|
</abp-collapse-body> |
||||
|
</abp-dynamic-form> |
||||
|
<hr /> |
||||
|
<abp-table striped-rows="true" id="StoreRecycledMaterialReceiptNoteDetailTable" class="nowrap"/> |
||||
|
</abp-card-body> |
||||
|
</abp-card> |
@ -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; } |
||||
|
} |
Loading…
Reference in new issue