162 changed files with 9914 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||
@page |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal; |
|||
@using WinIn.FasterZ.Wms.Localization |
|||
@inject IHtmlLocalizer<WmsResource> L |
|||
@model WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductL7partsNote.StoreProductL7partsNote.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStoreProductL7partsNote"].Value"></abp-modal-header> |
|||
<abp-modal-body> |
|||
<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,27 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductL7partsNote; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductL7partsNote.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductL7partsNote.StoreProductL7partsNote.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductL7partsNote.StoreProductL7partsNote; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStoreProductL7partsNoteViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductL7partsNoteAppService _service; |
|||
|
|||
public CreateModalModel(IStoreProductL7partsNoteAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductL7partsNoteViewModel, CreateUpdateStoreProductL7partsNoteDto>(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.StoreProductL7partsNote.StoreProductL7partsNote.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStoreProductL7partsNote"].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.StoreProductL7partsNote; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductL7partsNote.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductL7partsNote.StoreProductL7partsNote.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductL7partsNote.StoreProductL7partsNote; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStoreProductL7partsNoteViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductL7partsNoteAppService _service; |
|||
|
|||
public EditModalModel(IStoreProductL7partsNoteAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StoreProductL7partsNoteDto, CreateEditStoreProductL7partsNoteViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductL7partsNoteViewModel, CreateUpdateStoreProductL7partsNoteDto>(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.StoreProductL7partsNote.StoreProductL7partsNote |
|||
@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["StoreProductL7partsNote"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StoreProductL7partsNote"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StoreProductL7partsNote; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StoreProductL7partsNote/StoreProductL7partsNote/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StoreProductL7partsNote/StoreProductL7partsNote/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StoreProductL7partsNote"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StoreProductL7partsNote.Create)) |
|||
{ |
|||
<abp-button id="NewStoreProductL7partsNoteButton" |
|||
text="@L["CreateStoreProductL7partsNote"].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="StoreProductL7partsNoteCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StoreProductL7partsNoteFilter" id="StoreProductL7partsNoteFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StoreProductL7partsNoteCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StoreProductL7partsNoteTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,83 @@ |
|||
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.StoreProductL7partsNote.StoreProductL7partsNote; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StoreProductL7partsNoteFilterInput StoreProductL7partsNoteFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StoreProductL7partsNoteFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteActiveDate")] |
|||
public DateTime? ActiveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteConfiguration")] |
|||
public string? Configuration { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteContainerCode")] |
|||
public string? ContainerCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteCreateDate")] |
|||
public DateTime? CreateDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteFata")] |
|||
public string? Fata { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNotePosition")] |
|||
public string? Position { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteProductNo")] |
|||
public string? ProductNo { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteProgram")] |
|||
public string? Program { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteReceiptNumber")] |
|||
public string? ReceiptNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteState")] |
|||
public int? State { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteStatus")] |
|||
public int? Status { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteStoreProductL7partsNoteDetails")] |
|||
public ICollection<StoreProductL7partsNoteDetail>? StoreProductL7partsNoteDetails { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteWorker")] |
|||
public string? Worker { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteYear")] |
|||
public string? Year { get; set; } |
|||
} |
@ -0,0 +1,55 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductL7partsNote.StoreProductL7partsNote.ViewModels; |
|||
|
|||
public class CreateEditStoreProductL7partsNoteViewModel |
|||
{ |
|||
[Display(Name = "StoreProductL7partsNoteActiveDate")] |
|||
public DateTime ActiveDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteConfiguration")] |
|||
public string? Configuration { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteContainerCode")] |
|||
public string? ContainerCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteCreateDate")] |
|||
public DateTime CreateDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteFata")] |
|||
public string? Fata { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNotePosition")] |
|||
public string? Position { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteProductNo")] |
|||
public string? ProductNo { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteProgram")] |
|||
public string? Program { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteReceiptNumber")] |
|||
public string? ReceiptNumber { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteState")] |
|||
public int State { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteStatus")] |
|||
public int Status { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteStoreProductL7partsNoteDetails")] |
|||
public ICollection<StoreProductL7partsNoteDetail> StoreProductL7partsNoteDetails { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteWorker")] |
|||
public string? Worker { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteYear")] |
|||
public string? Year { get; set; } |
|||
} |
@ -0,0 +1,145 @@ |
|||
$(function () { |
|||
|
|||
$("#StoreProductL7partsNoteFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StoreProductL7partsNoteCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StoreProductL7partsNoteFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StoreProductL7partsNoteFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storeProductL7partsNote.storeProductL7partsNote; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductL7partsNote/StoreProductL7partsNote/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductL7partsNote/StoreProductL7partsNote/EditModal'); |
|||
|
|||
var dataTable = $('#StoreProductL7partsNoteTable').DataTable(abp.libs.datatables.normalizeConfiguration({ |
|||
processing: true, |
|||
serverSide: true, |
|||
paging: true, |
|||
searching: false,//disable default searchbox
|
|||
autoWidth: false, |
|||
scrollCollapse: true, |
|||
order: [[0, "asc"]], |
|||
ajax: abp.libs.datatables.createAjax(service.getList,getFilter), |
|||
columnDefs: [ |
|||
{ |
|||
rowAction: { |
|||
items: |
|||
[ |
|||
{ |
|||
text: l('Edit'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductL7partsNote.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductL7partsNote.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StoreProductL7partsNoteDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteActiveDate'), |
|||
data: "activeDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteConfiguration'), |
|||
data: "configuration" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteContainerCode'), |
|||
data: "containerCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteCreateDate'), |
|||
data: "createDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteFata'), |
|||
data: "fata" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNotePosition'), |
|||
data: "position" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteProductNo'), |
|||
data: "productNo" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteProgram'), |
|||
data: "program" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteReceiptNumber'), |
|||
data: "receiptNumber" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteState'), |
|||
data: "state" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteStatus'), |
|||
data: "status" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteStoreProductL7partsNoteDetails'), |
|||
data: "storeProductL7partsNoteDetails" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteWorker'), |
|||
data: "worker" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteYear'), |
|||
data: "year" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStoreProductL7partsNoteButton').click(function (e) { |
|||
e.preventDefault(); |
|||
createModal.open(); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
@page |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal; |
|||
@using WinIn.FasterZ.Wms.Localization |
|||
@inject IHtmlLocalizer<WmsResource> L |
|||
@model WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductL7partsNoteDetail.StoreProductL7partsNoteDetail.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStoreProductL7partsNoteDetail"].Value"></abp-modal-header> |
|||
<abp-modal-body> |
|||
<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,27 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductL7partsNoteDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductL7partsNoteDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductL7partsNoteDetail.StoreProductL7partsNoteDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductL7partsNoteDetail.StoreProductL7partsNoteDetail; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStoreProductL7partsNoteDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductL7partsNoteDetailAppService _service; |
|||
|
|||
public CreateModalModel(IStoreProductL7partsNoteDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductL7partsNoteDetailViewModel, CreateUpdateStoreProductL7partsNoteDetailDto>(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.StoreProductL7partsNoteDetail.StoreProductL7partsNoteDetail.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStoreProductL7partsNoteDetail"].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.StoreProductL7partsNoteDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductL7partsNoteDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductL7partsNoteDetail.StoreProductL7partsNoteDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductL7partsNoteDetail.StoreProductL7partsNoteDetail; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStoreProductL7partsNoteDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductL7partsNoteDetailAppService _service; |
|||
|
|||
public EditModalModel(IStoreProductL7partsNoteDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StoreProductL7partsNoteDetailDto, CreateEditStoreProductL7partsNoteDetailViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductL7partsNoteDetailViewModel, CreateUpdateStoreProductL7partsNoteDetailDto>(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.StoreProductL7partsNoteDetail.StoreProductL7partsNoteDetail |
|||
@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["StoreProductL7partsNoteDetail"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StoreProductL7partsNoteDetail"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StoreProductL7partsNoteDetail; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StoreProductL7partsNoteDetail/StoreProductL7partsNoteDetail/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StoreProductL7partsNoteDetail/StoreProductL7partsNoteDetail/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StoreProductL7partsNoteDetail"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StoreProductL7partsNoteDetail.Create)) |
|||
{ |
|||
<abp-button id="NewStoreProductL7partsNoteDetailButton" |
|||
text="@L["CreateStoreProductL7partsNoteDetail"].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="StoreProductL7partsNoteDetailCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StoreProductL7partsNoteDetailFilter" id="StoreProductL7partsNoteDetailFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StoreProductL7partsNoteDetailCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StoreProductL7partsNoteDetailTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,111 @@ |
|||
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.StoreProductL7partsNoteDetail.StoreProductL7partsNoteDetail; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StoreProductL7partsNoteDetailFilterInput StoreProductL7partsNoteDetailFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StoreProductL7partsNoteDetailFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailCanBuy")] |
|||
public bool? CanBuy { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailCanMake")] |
|||
public bool? CanMake { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailConfiguration")] |
|||
public string? Configuration { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailCreateDate")] |
|||
public DateTime? CreateDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailFata")] |
|||
public string? Fata { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailItemCode")] |
|||
public string? ItemCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailL7part")] |
|||
public string? L7part { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailLocationCode")] |
|||
public string? LocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailMaster")] |
|||
public StoreProductL7partsNote? Master { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailMasterId")] |
|||
public Guid? MasterId { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailPosition")] |
|||
public string? Position { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailProdLine")] |
|||
public string? ProdLine { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailProductNo")] |
|||
public string? ProductNo { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailProgram")] |
|||
public string? Program { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailQty")] |
|||
public int? Qty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailRawLocationCode")] |
|||
public string? RawLocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailRowId")] |
|||
public int? RowId { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductL7partsNoteDetailState")] |
|||
public int? State { get; set; } |
|||
} |
@ -0,0 +1,76 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductL7partsNoteDetail.StoreProductL7partsNoteDetail.ViewModels; |
|||
|
|||
public class CreateEditStoreProductL7partsNoteDetailViewModel |
|||
{ |
|||
[Display(Name = "StoreProductL7partsNoteDetailCanBuy")] |
|||
public bool CanBuy { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailCanMake")] |
|||
public bool CanMake { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailConfiguration")] |
|||
public string? Configuration { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailCreateDate")] |
|||
public DateTime CreateDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailFata")] |
|||
public string? Fata { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailItemCode")] |
|||
public string ItemCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailL7part")] |
|||
public string? L7part { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailLocationCode")] |
|||
public string? LocationCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailMaster")] |
|||
public StoreProductL7partsNote Master { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailMasterId")] |
|||
public Guid MasterId { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailPosition")] |
|||
public string? Position { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailProdLine")] |
|||
public string? ProdLine { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailProductNo")] |
|||
public string? ProductNo { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailProgram")] |
|||
public string? Program { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailQty")] |
|||
public int Qty { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailRawLocationCode")] |
|||
public string? RawLocationCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailRowId")] |
|||
public int RowId { get; set; } |
|||
|
|||
[Display(Name = "StoreProductL7partsNoteDetailState")] |
|||
public int State { get; set; } |
|||
} |
@ -0,0 +1,173 @@ |
|||
$(function () { |
|||
|
|||
$("#StoreProductL7partsNoteDetailFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StoreProductL7partsNoteDetailCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StoreProductL7partsNoteDetailFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StoreProductL7partsNoteDetailFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storeProductL7partsNoteDetail.storeProductL7partsNoteDetail; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductL7partsNoteDetail/StoreProductL7partsNoteDetail/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductL7partsNoteDetail/StoreProductL7partsNoteDetail/EditModal'); |
|||
|
|||
var dataTable = $('#StoreProductL7partsNoteDetailTable').DataTable(abp.libs.datatables.normalizeConfiguration({ |
|||
processing: true, |
|||
serverSide: true, |
|||
paging: true, |
|||
searching: false,//disable default searchbox
|
|||
autoWidth: false, |
|||
scrollCollapse: true, |
|||
order: [[0, "asc"]], |
|||
ajax: abp.libs.datatables.createAjax(service.getList,getFilter), |
|||
columnDefs: [ |
|||
{ |
|||
rowAction: { |
|||
items: |
|||
[ |
|||
{ |
|||
text: l('Edit'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductL7partsNoteDetail.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductL7partsNoteDetail.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StoreProductL7partsNoteDetailDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailCanBuy'), |
|||
data: "canBuy" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailCanMake'), |
|||
data: "canMake" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailConfiguration'), |
|||
data: "configuration" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailCreateDate'), |
|||
data: "createDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailFata'), |
|||
data: "fata" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailItemCode'), |
|||
data: "itemCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailItemDesc1'), |
|||
data: "itemDesc1" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailItemDesc2'), |
|||
data: "itemDesc2" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailItemName'), |
|||
data: "itemName" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailL7part'), |
|||
data: "l7part" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailLocationCode'), |
|||
data: "locationCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailMaster'), |
|||
data: "master" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailMasterId'), |
|||
data: "masterId" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailPosition'), |
|||
data: "position" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailProdLine'), |
|||
data: "prodLine" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailProductNo'), |
|||
data: "productNo" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailProgram'), |
|||
data: "program" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailQty'), |
|||
data: "qty" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailRawLocationCode'), |
|||
data: "rawLocationCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailRowId'), |
|||
data: "rowId" |
|||
}, |
|||
{ |
|||
title: l('StoreProductL7partsNoteDetailState'), |
|||
data: "state" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStoreProductL7partsNoteDetailButton').click(function (e) { |
|||
e.preventDefault(); |
|||
createModal.open(); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
@page |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal; |
|||
@using WinIn.FasterZ.Wms.Localization |
|||
@inject IHtmlLocalizer<WmsResource> L |
|||
@model WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptNote.StoreProductReceiptNote.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStoreProductReceiptNote"].Value"></abp-modal-header> |
|||
<abp-modal-body> |
|||
<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,27 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptNote; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptNote.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptNote.StoreProductReceiptNote.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptNote.StoreProductReceiptNote; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStoreProductReceiptNoteViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductReceiptNoteAppService _service; |
|||
|
|||
public CreateModalModel(IStoreProductReceiptNoteAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductReceiptNoteViewModel, CreateUpdateStoreProductReceiptNoteDto>(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.StoreProductReceiptNote.StoreProductReceiptNote.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStoreProductReceiptNote"].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.StoreProductReceiptNote; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptNote.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptNote.StoreProductReceiptNote.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptNote.StoreProductReceiptNote; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStoreProductReceiptNoteViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductReceiptNoteAppService _service; |
|||
|
|||
public EditModalModel(IStoreProductReceiptNoteAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StoreProductReceiptNoteDto, CreateEditStoreProductReceiptNoteViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductReceiptNoteViewModel, CreateUpdateStoreProductReceiptNoteDto>(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.StoreProductReceiptNote.StoreProductReceiptNote |
|||
@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["StoreProductReceiptNote"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StoreProductReceiptNote"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StoreProductReceiptNote; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StoreProductReceiptNote/StoreProductReceiptNote/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StoreProductReceiptNote/StoreProductReceiptNote/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StoreProductReceiptNote"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StoreProductReceiptNote.Create)) |
|||
{ |
|||
<abp-button id="NewStoreProductReceiptNoteButton" |
|||
text="@L["CreateStoreProductReceiptNote"].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="StoreProductReceiptNoteCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StoreProductReceiptNoteFilter" id="StoreProductReceiptNoteFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StoreProductReceiptNoteCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StoreProductReceiptNoteTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,79 @@ |
|||
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.StoreProductReceiptNote.StoreProductReceiptNote; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StoreProductReceiptNoteFilterInput StoreProductReceiptNoteFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StoreProductReceiptNoteFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteActiveDate")] |
|||
public DateTime? ActiveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteCompleteTime")] |
|||
public DateTime? CompleteTime { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteJobNumber")] |
|||
public string? JobNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteProductionPlanNumber")] |
|||
public string? ProductionPlanNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteProductReceiptRequestNumber")] |
|||
public string? ProductReceiptRequestNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteReceiptType")] |
|||
public string? ReceiptType { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteShift")] |
|||
public string? Shift { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteSourceNumber")] |
|||
public string? SourceNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteStoreProductReceiptNoteDetails")] |
|||
public ICollection<StoreProductReceiptNoteDetail>? StoreProductReceiptNoteDetails { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteType")] |
|||
public string? Type { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteWarehouseCode")] |
|||
public string? WarehouseCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteWorker")] |
|||
public string? Worker { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteWorkShop")] |
|||
public string? WorkShop { get; set; } |
|||
} |
@ -0,0 +1,52 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptNote.StoreProductReceiptNote.ViewModels; |
|||
|
|||
public class CreateEditStoreProductReceiptNoteViewModel |
|||
{ |
|||
[Display(Name = "StoreProductReceiptNoteActiveDate")] |
|||
public DateTime ActiveDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteCompleteTime")] |
|||
public DateTime CompleteTime { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteJobNumber")] |
|||
public string? JobNumber { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteProductionPlanNumber")] |
|||
public string? ProductionPlanNumber { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteProductReceiptRequestNumber")] |
|||
public string? ProductReceiptRequestNumber { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteReceiptType")] |
|||
public string ReceiptType { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteShift")] |
|||
public string? Shift { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteSourceNumber")] |
|||
public string? SourceNumber { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteStoreProductReceiptNoteDetails")] |
|||
public ICollection<StoreProductReceiptNoteDetail> StoreProductReceiptNoteDetails { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteType")] |
|||
public string? Type { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteWarehouseCode")] |
|||
public string? WarehouseCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteWorker")] |
|||
public string? Worker { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteWorkShop")] |
|||
public string? WorkShop { get; set; } |
|||
} |
@ -0,0 +1,141 @@ |
|||
$(function () { |
|||
|
|||
$("#StoreProductReceiptNoteFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StoreProductReceiptNoteCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StoreProductReceiptNoteFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StoreProductReceiptNoteFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storeProductReceiptNote.storeProductReceiptNote; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductReceiptNote/StoreProductReceiptNote/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductReceiptNote/StoreProductReceiptNote/EditModal'); |
|||
|
|||
var dataTable = $('#StoreProductReceiptNoteTable').DataTable(abp.libs.datatables.normalizeConfiguration({ |
|||
processing: true, |
|||
serverSide: true, |
|||
paging: true, |
|||
searching: false,//disable default searchbox
|
|||
autoWidth: false, |
|||
scrollCollapse: true, |
|||
order: [[0, "asc"]], |
|||
ajax: abp.libs.datatables.createAjax(service.getList,getFilter), |
|||
columnDefs: [ |
|||
{ |
|||
rowAction: { |
|||
items: |
|||
[ |
|||
{ |
|||
text: l('Edit'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductReceiptNote.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductReceiptNote.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StoreProductReceiptNoteDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteActiveDate'), |
|||
data: "activeDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteCompleteTime'), |
|||
data: "completeTime" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteJobNumber'), |
|||
data: "jobNumber" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteProductionPlanNumber'), |
|||
data: "productionPlanNumber" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteProductReceiptRequestNumber'), |
|||
data: "productReceiptRequestNumber" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteReceiptType'), |
|||
data: "receiptType" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteShift'), |
|||
data: "shift" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteSourceNumber'), |
|||
data: "sourceNumber" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteStoreProductReceiptNoteDetails'), |
|||
data: "storeProductReceiptNoteDetails" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteType'), |
|||
data: "type" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteWarehouseCode'), |
|||
data: "warehouseCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteWorker'), |
|||
data: "worker" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteWorkShop'), |
|||
data: "workShop" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStoreProductReceiptNoteButton').click(function (e) { |
|||
e.preventDefault(); |
|||
createModal.open(); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
@page |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal; |
|||
@using WinIn.FasterZ.Wms.Localization |
|||
@inject IHtmlLocalizer<WmsResource> L |
|||
@model WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptNoteDetail.StoreProductReceiptNoteDetail.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStoreProductReceiptNoteDetail"].Value"></abp-modal-header> |
|||
<abp-modal-body> |
|||
<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,27 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptNoteDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptNoteDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptNoteDetail.StoreProductReceiptNoteDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptNoteDetail.StoreProductReceiptNoteDetail; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStoreProductReceiptNoteDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductReceiptNoteDetailAppService _service; |
|||
|
|||
public CreateModalModel(IStoreProductReceiptNoteDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductReceiptNoteDetailViewModel, CreateUpdateStoreProductReceiptNoteDetailDto>(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.StoreProductReceiptNoteDetail.StoreProductReceiptNoteDetail.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStoreProductReceiptNoteDetail"].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.StoreProductReceiptNoteDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptNoteDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptNoteDetail.StoreProductReceiptNoteDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptNoteDetail.StoreProductReceiptNoteDetail; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStoreProductReceiptNoteDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductReceiptNoteDetailAppService _service; |
|||
|
|||
public EditModalModel(IStoreProductReceiptNoteDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StoreProductReceiptNoteDetailDto, CreateEditStoreProductReceiptNoteDetailViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductReceiptNoteDetailViewModel, CreateUpdateStoreProductReceiptNoteDetailDto>(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.StoreProductReceiptNoteDetail.StoreProductReceiptNoteDetail |
|||
@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["StoreProductReceiptNoteDetail"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StoreProductReceiptNoteDetail"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StoreProductReceiptNoteDetail; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StoreProductReceiptNoteDetail/StoreProductReceiptNoteDetail/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StoreProductReceiptNoteDetail/StoreProductReceiptNoteDetail/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StoreProductReceiptNoteDetail"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StoreProductReceiptNoteDetail.Create)) |
|||
{ |
|||
<abp-button id="NewStoreProductReceiptNoteDetailButton" |
|||
text="@L["CreateStoreProductReceiptNoteDetail"].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="StoreProductReceiptNoteDetailCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StoreProductReceiptNoteDetailFilter" id="StoreProductReceiptNoteDetailFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StoreProductReceiptNoteDetailCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StoreProductReceiptNoteDetailTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,239 @@ |
|||
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.StoreProductReceiptNoteDetail.StoreProductReceiptNoteDetail; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StoreProductReceiptNoteDetailFilterInput StoreProductReceiptNoteDetailFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StoreProductReceiptNoteDetailFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailArriveDate")] |
|||
public DateTime? ArriveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailBomVersion")] |
|||
public string? BomVersion { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailContainerCode")] |
|||
public string? ContainerCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailExpireDate")] |
|||
public DateTime? ExpireDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledArriveDate")] |
|||
public DateTime? HandledArriveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledContainerCode")] |
|||
public string? HandledContainerCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledExpireDate")] |
|||
public DateTime? HandledExpireDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledLot")] |
|||
public string? HandledLot { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledPackingCode")] |
|||
public string? HandledPackingCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledProduceDate")] |
|||
public DateTime? HandledProduceDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledQty")] |
|||
public decimal? HandledQty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledSupplierBatch")] |
|||
public string? HandledSupplierBatch { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledToLocationArea")] |
|||
public string? HandledToLocationArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledToLocationCode")] |
|||
public string? HandledToLocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledToLocationErpCode")] |
|||
public string? HandledToLocationErpCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledToLocationGroup")] |
|||
public string? HandledToLocationGroup { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledToWarehouseCode")] |
|||
public string? HandledToWarehouseCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailItemCode")] |
|||
public string? ItemCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailLocationArea")] |
|||
public string? LocationArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailLocationCode")] |
|||
public string? LocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailLocationErpCode")] |
|||
public string? LocationErpCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailLocationGroup")] |
|||
public string? LocationGroup { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailLot")] |
|||
public string? Lot { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailMaster")] |
|||
public StoreProductReceiptNote? Master { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailMasterId")] |
|||
public Guid? MasterId { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailPackingCode")] |
|||
public string? PackingCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailProdLine")] |
|||
public string? ProdLine { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailProduceDate")] |
|||
public DateTime? ProduceDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailQty")] |
|||
public decimal? Qty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRawArea")] |
|||
public string? RawArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRawLocationCode")] |
|||
public string? RawLocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendArriveDate")] |
|||
public DateTime? RecommendArriveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendContainerCode")] |
|||
public string? RecommendContainerCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendExpireDate")] |
|||
public DateTime? RecommendExpireDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendLot")] |
|||
public string? RecommendLot { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendPackingCode")] |
|||
public string? RecommendPackingCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendProduceDate")] |
|||
public DateTime? RecommendProduceDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendQty")] |
|||
public decimal? RecommendQty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendSupplierBatch")] |
|||
public string? RecommendSupplierBatch { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendToLocationArea")] |
|||
public string? RecommendToLocationArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendToLocationCode")] |
|||
public string? RecommendToLocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendToLocationErpCode")] |
|||
public string? RecommendToLocationErpCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendToLocationGroup")] |
|||
public string? RecommendToLocationGroup { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendToWarehouseCode")] |
|||
public string? RecommendToWarehouseCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailReturnQty")] |
|||
public decimal? ReturnQty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailStatus")] |
|||
public string? Status { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailStdPackQty")] |
|||
public decimal? StdPackQty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailSupplierBatch")] |
|||
public string? SupplierBatch { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailUom")] |
|||
public string? Uom { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptNoteDetailWarehouseCode")] |
|||
public string? WarehouseCode { get; set; } |
|||
} |
@ -0,0 +1,172 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptNoteDetail.StoreProductReceiptNoteDetail.ViewModels; |
|||
|
|||
public class CreateEditStoreProductReceiptNoteDetailViewModel |
|||
{ |
|||
[Display(Name = "StoreProductReceiptNoteDetailArriveDate")] |
|||
public DateTime ArriveDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailBomVersion")] |
|||
public string? BomVersion { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailContainerCode")] |
|||
public string? ContainerCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailExpireDate")] |
|||
public DateTime ExpireDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledArriveDate")] |
|||
public DateTime HandledArriveDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledContainerCode")] |
|||
public string? HandledContainerCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledExpireDate")] |
|||
public DateTime HandledExpireDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledLot")] |
|||
public string? HandledLot { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledPackingCode")] |
|||
public string? HandledPackingCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledProduceDate")] |
|||
public DateTime HandledProduceDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledQty")] |
|||
public decimal HandledQty { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledSupplierBatch")] |
|||
public string? HandledSupplierBatch { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledToLocationArea")] |
|||
public string? HandledToLocationArea { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledToLocationCode")] |
|||
public string? HandledToLocationCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledToLocationErpCode")] |
|||
public string? HandledToLocationErpCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledToLocationGroup")] |
|||
public string? HandledToLocationGroup { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailHandledToWarehouseCode")] |
|||
public string? HandledToWarehouseCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailItemCode")] |
|||
public string ItemCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailLocationArea")] |
|||
public string? LocationArea { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailLocationCode")] |
|||
public string LocationCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailLocationErpCode")] |
|||
public string LocationErpCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailLocationGroup")] |
|||
public string? LocationGroup { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailLot")] |
|||
public string? Lot { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailMaster")] |
|||
public StoreProductReceiptNote Master { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailMasterId")] |
|||
public Guid MasterId { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailPackingCode")] |
|||
public string PackingCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailProdLine")] |
|||
public string? ProdLine { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailProduceDate")] |
|||
public DateTime ProduceDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailQty")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRawArea")] |
|||
public string? RawArea { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRawLocationCode")] |
|||
public string? RawLocationCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendArriveDate")] |
|||
public DateTime RecommendArriveDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendContainerCode")] |
|||
public string? RecommendContainerCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendExpireDate")] |
|||
public DateTime RecommendExpireDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendLot")] |
|||
public string? RecommendLot { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendPackingCode")] |
|||
public string? RecommendPackingCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendProduceDate")] |
|||
public DateTime RecommendProduceDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendQty")] |
|||
public decimal RecommendQty { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendSupplierBatch")] |
|||
public string? RecommendSupplierBatch { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendToLocationArea")] |
|||
public string? RecommendToLocationArea { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendToLocationCode")] |
|||
public string? RecommendToLocationCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendToLocationErpCode")] |
|||
public string? RecommendToLocationErpCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendToLocationGroup")] |
|||
public string? RecommendToLocationGroup { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRecommendToWarehouseCode")] |
|||
public string? RecommendToWarehouseCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailReturnQty")] |
|||
public decimal ReturnQty { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailStatus")] |
|||
public string Status { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailStdPackQty")] |
|||
public decimal StdPackQty { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailSupplierBatch")] |
|||
public string? SupplierBatch { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailUom")] |
|||
public string Uom { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptNoteDetailWarehouseCode")] |
|||
public string WarehouseCode { get; set; } |
|||
} |
@ -0,0 +1,301 @@ |
|||
$(function () { |
|||
|
|||
$("#StoreProductReceiptNoteDetailFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StoreProductReceiptNoteDetailCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StoreProductReceiptNoteDetailFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StoreProductReceiptNoteDetailFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storeProductReceiptNoteDetail.storeProductReceiptNoteDetail; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductReceiptNoteDetail/StoreProductReceiptNoteDetail/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductReceiptNoteDetail/StoreProductReceiptNoteDetail/EditModal'); |
|||
|
|||
var dataTable = $('#StoreProductReceiptNoteDetailTable').DataTable(abp.libs.datatables.normalizeConfiguration({ |
|||
processing: true, |
|||
serverSide: true, |
|||
paging: true, |
|||
searching: false,//disable default searchbox
|
|||
autoWidth: false, |
|||
scrollCollapse: true, |
|||
order: [[0, "asc"]], |
|||
ajax: abp.libs.datatables.createAjax(service.getList,getFilter), |
|||
columnDefs: [ |
|||
{ |
|||
rowAction: { |
|||
items: |
|||
[ |
|||
{ |
|||
text: l('Edit'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductReceiptNoteDetail.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductReceiptNoteDetail.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StoreProductReceiptNoteDetailDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailArriveDate'), |
|||
data: "arriveDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailBomVersion'), |
|||
data: "bomVersion" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailContainerCode'), |
|||
data: "containerCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailExpireDate'), |
|||
data: "expireDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailHandledArriveDate'), |
|||
data: "handledArriveDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailHandledContainerCode'), |
|||
data: "handledContainerCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailHandledExpireDate'), |
|||
data: "handledExpireDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailHandledLot'), |
|||
data: "handledLot" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailHandledPackingCode'), |
|||
data: "handledPackingCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailHandledProduceDate'), |
|||
data: "handledProduceDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailHandledQty'), |
|||
data: "handledQty" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailHandledSupplierBatch'), |
|||
data: "handledSupplierBatch" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailHandledToLocationArea'), |
|||
data: "handledToLocationArea" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailHandledToLocationCode'), |
|||
data: "handledToLocationCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailHandledToLocationErpCode'), |
|||
data: "handledToLocationErpCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailHandledToLocationGroup'), |
|||
data: "handledToLocationGroup" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailHandledToWarehouseCode'), |
|||
data: "handledToWarehouseCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailItemCode'), |
|||
data: "itemCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailItemDesc1'), |
|||
data: "itemDesc1" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailItemDesc2'), |
|||
data: "itemDesc2" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailItemName'), |
|||
data: "itemName" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailLocationArea'), |
|||
data: "locationArea" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailLocationCode'), |
|||
data: "locationCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailLocationErpCode'), |
|||
data: "locationErpCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailLocationGroup'), |
|||
data: "locationGroup" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailLot'), |
|||
data: "lot" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailMaster'), |
|||
data: "master" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailMasterId'), |
|||
data: "masterId" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailPackingCode'), |
|||
data: "packingCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailProdLine'), |
|||
data: "prodLine" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailProduceDate'), |
|||
data: "produceDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailQty'), |
|||
data: "qty" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRawArea'), |
|||
data: "rawArea" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRawLocationCode'), |
|||
data: "rawLocationCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRecommendArriveDate'), |
|||
data: "recommendArriveDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRecommendContainerCode'), |
|||
data: "recommendContainerCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRecommendExpireDate'), |
|||
data: "recommendExpireDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRecommendLot'), |
|||
data: "recommendLot" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRecommendPackingCode'), |
|||
data: "recommendPackingCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRecommendProduceDate'), |
|||
data: "recommendProduceDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRecommendQty'), |
|||
data: "recommendQty" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRecommendSupplierBatch'), |
|||
data: "recommendSupplierBatch" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRecommendToLocationArea'), |
|||
data: "recommendToLocationArea" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRecommendToLocationCode'), |
|||
data: "recommendToLocationCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRecommendToLocationErpCode'), |
|||
data: "recommendToLocationErpCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRecommendToLocationGroup'), |
|||
data: "recommendToLocationGroup" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRecommendToWarehouseCode'), |
|||
data: "recommendToWarehouseCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailReturnQty'), |
|||
data: "returnQty" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailStatus'), |
|||
data: "status" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailStdPackQty'), |
|||
data: "stdPackQty" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailSupplierBatch'), |
|||
data: "supplierBatch" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailUom'), |
|||
data: "uom" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptNoteDetailWarehouseCode'), |
|||
data: "warehouseCode" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStoreProductReceiptNoteDetailButton').click(function (e) { |
|||
e.preventDefault(); |
|||
createModal.open(); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
@page |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal; |
|||
@using WinIn.FasterZ.Wms.Localization |
|||
@inject IHtmlLocalizer<WmsResource> L |
|||
@model WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptRequest.StoreProductReceiptRequest.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStoreProductReceiptRequest"].Value"></abp-modal-header> |
|||
<abp-modal-body> |
|||
<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,27 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptRequest; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptRequest.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptRequest.StoreProductReceiptRequest.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptRequest.StoreProductReceiptRequest; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStoreProductReceiptRequestViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductReceiptRequestAppService _service; |
|||
|
|||
public CreateModalModel(IStoreProductReceiptRequestAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductReceiptRequestViewModel, CreateUpdateStoreProductReceiptRequestDto>(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.StoreProductReceiptRequest.StoreProductReceiptRequest.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStoreProductReceiptRequest"].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.StoreProductReceiptRequest; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptRequest.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptRequest.StoreProductReceiptRequest.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptRequest.StoreProductReceiptRequest; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStoreProductReceiptRequestViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductReceiptRequestAppService _service; |
|||
|
|||
public EditModalModel(IStoreProductReceiptRequestAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StoreProductReceiptRequestDto, CreateEditStoreProductReceiptRequestViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductReceiptRequestViewModel, CreateUpdateStoreProductReceiptRequestDto>(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.StoreProductReceiptRequest.StoreProductReceiptRequest |
|||
@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["StoreProductReceiptRequest"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StoreProductReceiptRequest"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StoreProductReceiptRequest; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StoreProductReceiptRequest/StoreProductReceiptRequest/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StoreProductReceiptRequest/StoreProductReceiptRequest/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StoreProductReceiptRequest"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StoreProductReceiptRequest.Create)) |
|||
{ |
|||
<abp-button id="NewStoreProductReceiptRequestButton" |
|||
text="@L["CreateStoreProductReceiptRequest"].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="StoreProductReceiptRequestCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StoreProductReceiptRequestFilter" id="StoreProductReceiptRequestFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StoreProductReceiptRequestCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StoreProductReceiptRequestTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,91 @@ |
|||
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.StoreProductReceiptRequest.StoreProductReceiptRequest; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StoreProductReceiptRequestFilterInput StoreProductReceiptRequestFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StoreProductReceiptRequestFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestActiveDate")] |
|||
public DateTime? ActiveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestAutoAgree")] |
|||
public bool? AutoAgree { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestAutoCompleteJob")] |
|||
public bool? AutoCompleteJob { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestAutoHandle")] |
|||
public bool? AutoHandle { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestAutoSubmit")] |
|||
public bool? AutoSubmit { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDirectCreateNote")] |
|||
public bool? DirectCreateNote { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestPlanDate")] |
|||
public DateTime? PlanDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestProdLine")] |
|||
public string? ProdLine { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestProductionPlanNumber")] |
|||
public string? ProductionPlanNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestRequestStatus")] |
|||
public string? RequestStatus { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestShift")] |
|||
public string? Shift { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestStoreProductReceiptRequestDetails")] |
|||
public ICollection<StoreProductReceiptRequestDetail>? StoreProductReceiptRequestDetails { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestTeam")] |
|||
public string? Team { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestType")] |
|||
public string? Type { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestWorker")] |
|||
public string? Worker { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestWorkshop")] |
|||
public string? Workshop { get; set; } |
|||
} |
@ -0,0 +1,61 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptRequest.StoreProductReceiptRequest.ViewModels; |
|||
|
|||
public class CreateEditStoreProductReceiptRequestViewModel |
|||
{ |
|||
[Display(Name = "StoreProductReceiptRequestActiveDate")] |
|||
public DateTime ActiveDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestAutoAgree")] |
|||
public bool AutoAgree { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestAutoCompleteJob")] |
|||
public bool AutoCompleteJob { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestAutoHandle")] |
|||
public bool AutoHandle { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestAutoSubmit")] |
|||
public bool AutoSubmit { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDirectCreateNote")] |
|||
public bool DirectCreateNote { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestPlanDate")] |
|||
public DateTime PlanDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestProdLine")] |
|||
public string? ProdLine { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestProductionPlanNumber")] |
|||
public string? ProductionPlanNumber { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestRequestStatus")] |
|||
public string RequestStatus { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestShift")] |
|||
public string? Shift { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestStoreProductReceiptRequestDetails")] |
|||
public ICollection<StoreProductReceiptRequestDetail> StoreProductReceiptRequestDetails { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestTeam")] |
|||
public string? Team { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestType")] |
|||
public string? Type { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestWorker")] |
|||
public string? Worker { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestWorkshop")] |
|||
public string? Workshop { get; set; } |
|||
} |
@ -0,0 +1,153 @@ |
|||
$(function () { |
|||
|
|||
$("#StoreProductReceiptRequestFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StoreProductReceiptRequestCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StoreProductReceiptRequestFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StoreProductReceiptRequestFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storeProductReceiptRequest.storeProductReceiptRequest; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductReceiptRequest/StoreProductReceiptRequest/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductReceiptRequest/StoreProductReceiptRequest/EditModal'); |
|||
|
|||
var dataTable = $('#StoreProductReceiptRequestTable').DataTable(abp.libs.datatables.normalizeConfiguration({ |
|||
processing: true, |
|||
serverSide: true, |
|||
paging: true, |
|||
searching: false,//disable default searchbox
|
|||
autoWidth: false, |
|||
scrollCollapse: true, |
|||
order: [[0, "asc"]], |
|||
ajax: abp.libs.datatables.createAjax(service.getList,getFilter), |
|||
columnDefs: [ |
|||
{ |
|||
rowAction: { |
|||
items: |
|||
[ |
|||
{ |
|||
text: l('Edit'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductReceiptRequest.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductReceiptRequest.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StoreProductReceiptRequestDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestActiveDate'), |
|||
data: "activeDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestAutoAgree'), |
|||
data: "autoAgree" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestAutoCompleteJob'), |
|||
data: "autoCompleteJob" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestAutoHandle'), |
|||
data: "autoHandle" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestAutoSubmit'), |
|||
data: "autoSubmit" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDirectCreateNote'), |
|||
data: "directCreateNote" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestPlanDate'), |
|||
data: "planDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestProdLine'), |
|||
data: "prodLine" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestProductionPlanNumber'), |
|||
data: "productionPlanNumber" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestRequestStatus'), |
|||
data: "requestStatus" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestShift'), |
|||
data: "shift" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestStoreProductReceiptRequestDetails'), |
|||
data: "storeProductReceiptRequestDetails" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestTeam'), |
|||
data: "team" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestType'), |
|||
data: "type" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestWorker'), |
|||
data: "worker" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestWorkshop'), |
|||
data: "workshop" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStoreProductReceiptRequestButton').click(function (e) { |
|||
e.preventDefault(); |
|||
createModal.open(); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
@page |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal; |
|||
@using WinIn.FasterZ.Wms.Localization |
|||
@inject IHtmlLocalizer<WmsResource> L |
|||
@model WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptRequestDetail.StoreProductReceiptRequestDetail.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStoreProductReceiptRequestDetail"].Value"></abp-modal-header> |
|||
<abp-modal-body> |
|||
<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,27 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptRequestDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptRequestDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptRequestDetail.StoreProductReceiptRequestDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptRequestDetail.StoreProductReceiptRequestDetail; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStoreProductReceiptRequestDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductReceiptRequestDetailAppService _service; |
|||
|
|||
public CreateModalModel(IStoreProductReceiptRequestDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductReceiptRequestDetailViewModel, CreateUpdateStoreProductReceiptRequestDetailDto>(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.StoreProductReceiptRequestDetail.StoreProductReceiptRequestDetail.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStoreProductReceiptRequestDetail"].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.StoreProductReceiptRequestDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptRequestDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptRequestDetail.StoreProductReceiptRequestDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptRequestDetail.StoreProductReceiptRequestDetail; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStoreProductReceiptRequestDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductReceiptRequestDetailAppService _service; |
|||
|
|||
public EditModalModel(IStoreProductReceiptRequestDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StoreProductReceiptRequestDetailDto, CreateEditStoreProductReceiptRequestDetailViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductReceiptRequestDetailViewModel, CreateUpdateStoreProductReceiptRequestDetailDto>(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.StoreProductReceiptRequestDetail.StoreProductReceiptRequestDetail |
|||
@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["StoreProductReceiptRequestDetail"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StoreProductReceiptRequestDetail"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StoreProductReceiptRequestDetail; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StoreProductReceiptRequestDetail/StoreProductReceiptRequestDetail/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StoreProductReceiptRequestDetail/StoreProductReceiptRequestDetail/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StoreProductReceiptRequestDetail"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StoreProductReceiptRequestDetail.Create)) |
|||
{ |
|||
<abp-button id="NewStoreProductReceiptRequestDetailButton" |
|||
text="@L["CreateStoreProductReceiptRequestDetail"].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="StoreProductReceiptRequestDetailCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StoreProductReceiptRequestDetailFilter" id="StoreProductReceiptRequestDetailFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StoreProductReceiptRequestDetailCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StoreProductReceiptRequestDetailTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,115 @@ |
|||
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.StoreProductReceiptRequestDetail.StoreProductReceiptRequestDetail; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StoreProductReceiptRequestDetailFilterInput StoreProductReceiptRequestDetailFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StoreProductReceiptRequestDetailFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailArriveDate")] |
|||
public DateTime? ArriveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailBomVersion")] |
|||
public string? BomVersion { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailExpireDate")] |
|||
public DateTime? ExpireDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailItemCode")] |
|||
public string? ItemCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailLocationArea")] |
|||
public string? LocationArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailLocationCode")] |
|||
public string? LocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailLocationErpCode")] |
|||
public string? LocationErpCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailLocationGroup")] |
|||
public string? LocationGroup { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailLot")] |
|||
public string? Lot { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailMaster")] |
|||
public StoreProductReceiptRequest? Master { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailMasterId")] |
|||
public Guid? MasterId { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailProduceDate")] |
|||
public DateTime? ProduceDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailQty")] |
|||
public decimal? Qty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailRawArea")] |
|||
public string? RawArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailReturnQty")] |
|||
public decimal? ReturnQty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailStdPackQty")] |
|||
public decimal? StdPackQty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailSupplierBatch")] |
|||
public string? SupplierBatch { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailUom")] |
|||
public string? Uom { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductReceiptRequestDetailWarehouseCode")] |
|||
public string? WarehouseCode { get; set; } |
|||
} |
@ -0,0 +1,79 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductReceiptRequestDetail.StoreProductReceiptRequestDetail.ViewModels; |
|||
|
|||
public class CreateEditStoreProductReceiptRequestDetailViewModel |
|||
{ |
|||
[Display(Name = "StoreProductReceiptRequestDetailArriveDate")] |
|||
public DateTime ArriveDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailBomVersion")] |
|||
public string? BomVersion { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailExpireDate")] |
|||
public DateTime ExpireDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailItemCode")] |
|||
public string ItemCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailLocationArea")] |
|||
public string? LocationArea { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailLocationCode")] |
|||
public string LocationCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailLocationErpCode")] |
|||
public string LocationErpCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailLocationGroup")] |
|||
public string? LocationGroup { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailLot")] |
|||
public string? Lot { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailMaster")] |
|||
public StoreProductReceiptRequest Master { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailMasterId")] |
|||
public Guid MasterId { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailProduceDate")] |
|||
public DateTime ProduceDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailQty")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailRawArea")] |
|||
public string? RawArea { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailReturnQty")] |
|||
public decimal ReturnQty { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailStdPackQty")] |
|||
public decimal StdPackQty { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailSupplierBatch")] |
|||
public string? SupplierBatch { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailUom")] |
|||
public string Uom { get; set; } |
|||
|
|||
[Display(Name = "StoreProductReceiptRequestDetailWarehouseCode")] |
|||
public string WarehouseCode { get; set; } |
|||
} |
@ -0,0 +1,177 @@ |
|||
$(function () { |
|||
|
|||
$("#StoreProductReceiptRequestDetailFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StoreProductReceiptRequestDetailCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StoreProductReceiptRequestDetailFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StoreProductReceiptRequestDetailFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storeProductReceiptRequestDetail.storeProductReceiptRequestDetail; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductReceiptRequestDetail/StoreProductReceiptRequestDetail/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductReceiptRequestDetail/StoreProductReceiptRequestDetail/EditModal'); |
|||
|
|||
var dataTable = $('#StoreProductReceiptRequestDetailTable').DataTable(abp.libs.datatables.normalizeConfiguration({ |
|||
processing: true, |
|||
serverSide: true, |
|||
paging: true, |
|||
searching: false,//disable default searchbox
|
|||
autoWidth: false, |
|||
scrollCollapse: true, |
|||
order: [[0, "asc"]], |
|||
ajax: abp.libs.datatables.createAjax(service.getList,getFilter), |
|||
columnDefs: [ |
|||
{ |
|||
rowAction: { |
|||
items: |
|||
[ |
|||
{ |
|||
text: l('Edit'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductReceiptRequestDetail.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductReceiptRequestDetail.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StoreProductReceiptRequestDetailDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailArriveDate'), |
|||
data: "arriveDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailBomVersion'), |
|||
data: "bomVersion" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailExpireDate'), |
|||
data: "expireDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailItemCode'), |
|||
data: "itemCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailItemDesc1'), |
|||
data: "itemDesc1" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailItemDesc2'), |
|||
data: "itemDesc2" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailItemName'), |
|||
data: "itemName" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailLocationArea'), |
|||
data: "locationArea" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailLocationCode'), |
|||
data: "locationCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailLocationErpCode'), |
|||
data: "locationErpCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailLocationGroup'), |
|||
data: "locationGroup" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailLot'), |
|||
data: "lot" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailMaster'), |
|||
data: "master" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailMasterId'), |
|||
data: "masterId" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailProduceDate'), |
|||
data: "produceDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailQty'), |
|||
data: "qty" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailRawArea'), |
|||
data: "rawArea" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailReturnQty'), |
|||
data: "returnQty" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailStdPackQty'), |
|||
data: "stdPackQty" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailSupplierBatch'), |
|||
data: "supplierBatch" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailUom'), |
|||
data: "uom" |
|||
}, |
|||
{ |
|||
title: l('StoreProductReceiptRequestDetailWarehouseCode'), |
|||
data: "warehouseCode" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStoreProductReceiptRequestDetailButton').click(function (e) { |
|||
e.preventDefault(); |
|||
createModal.open(); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
@page |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal; |
|||
@using WinIn.FasterZ.Wms.Localization |
|||
@inject IHtmlLocalizer<WmsResource> L |
|||
@model WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleMaterialDetail.StoreProductRecycleMaterialDetail.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStoreProductRecycleMaterialDetail"].Value"></abp-modal-header> |
|||
<abp-modal-body> |
|||
<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,27 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleMaterialDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleMaterialDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleMaterialDetail.StoreProductRecycleMaterialDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleMaterialDetail.StoreProductRecycleMaterialDetail; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStoreProductRecycleMaterialDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductRecycleMaterialDetailAppService _service; |
|||
|
|||
public CreateModalModel(IStoreProductRecycleMaterialDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductRecycleMaterialDetailViewModel, CreateUpdateStoreProductRecycleMaterialDetailDto>(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.StoreProductRecycleMaterialDetail.StoreProductRecycleMaterialDetail.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStoreProductRecycleMaterialDetail"].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.StoreProductRecycleMaterialDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleMaterialDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleMaterialDetail.StoreProductRecycleMaterialDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleMaterialDetail.StoreProductRecycleMaterialDetail; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStoreProductRecycleMaterialDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductRecycleMaterialDetailAppService _service; |
|||
|
|||
public EditModalModel(IStoreProductRecycleMaterialDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StoreProductRecycleMaterialDetailDto, CreateEditStoreProductRecycleMaterialDetailViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductRecycleMaterialDetailViewModel, CreateUpdateStoreProductRecycleMaterialDetailDto>(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.StoreProductRecycleMaterialDetail.StoreProductRecycleMaterialDetail |
|||
@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["StoreProductRecycleMaterialDetail"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StoreProductRecycleMaterialDetail"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StoreProductRecycleMaterialDetail; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StoreProductRecycleMaterialDetail/StoreProductRecycleMaterialDetail/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StoreProductRecycleMaterialDetail/StoreProductRecycleMaterialDetail/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StoreProductRecycleMaterialDetail"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StoreProductRecycleMaterialDetail.Create)) |
|||
{ |
|||
<abp-button id="NewStoreProductRecycleMaterialDetailButton" |
|||
text="@L["CreateStoreProductRecycleMaterialDetail"].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="StoreProductRecycleMaterialDetailCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StoreProductRecycleMaterialDetailFilter" id="StoreProductRecycleMaterialDetailFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StoreProductRecycleMaterialDetailCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StoreProductRecycleMaterialDetailTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,143 @@ |
|||
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.StoreProductRecycleMaterialDetail.StoreProductRecycleMaterialDetail; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StoreProductRecycleMaterialDetailFilterInput StoreProductRecycleMaterialDetailFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StoreProductRecycleMaterialDetailFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailArriveDate")] |
|||
public DateTime? ArriveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailBomVersion")] |
|||
public string? BomVersion { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailContainerCode")] |
|||
public string? ContainerCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailExpireDate")] |
|||
public DateTime? ExpireDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailItemCode")] |
|||
public string? ItemCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailLocationArea")] |
|||
public string? LocationArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailLocationCode")] |
|||
public string? LocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailLocationErpCode")] |
|||
public string? LocationErpCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailLocationGroup")] |
|||
public string? LocationGroup { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailLot")] |
|||
public string? Lot { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailMaster")] |
|||
public StoreProductRecycleNote? Master { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailMasterId")] |
|||
public Guid? MasterId { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailPackingCode")] |
|||
public string? PackingCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailProduceDate")] |
|||
public DateTime? ProduceDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailProductItemCode")] |
|||
public string? ProductItemCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailProductItemDesc1")] |
|||
public string? ProductItemDesc1 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailProductItemDesc2")] |
|||
public string? ProductItemDesc2 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailProductItemName")] |
|||
public string? ProductItemName { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailProductLot")] |
|||
public string? ProductLot { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailProductPackingCode")] |
|||
public string? ProductPackingCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailQty")] |
|||
public decimal? Qty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailStatus")] |
|||
public string? Status { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailStdPackQty")] |
|||
public decimal? StdPackQty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailSupplierBatch")] |
|||
public string? SupplierBatch { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailUom")] |
|||
public string? Uom { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleMaterialDetailWarehouseCode")] |
|||
public string? WarehouseCode { get; set; } |
|||
} |
@ -0,0 +1,100 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleMaterialDetail.StoreProductRecycleMaterialDetail.ViewModels; |
|||
|
|||
public class CreateEditStoreProductRecycleMaterialDetailViewModel |
|||
{ |
|||
[Display(Name = "StoreProductRecycleMaterialDetailArriveDate")] |
|||
public DateTime ArriveDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailBomVersion")] |
|||
public string? BomVersion { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailContainerCode")] |
|||
public string? ContainerCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailExpireDate")] |
|||
public DateTime ExpireDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailItemCode")] |
|||
public string ItemCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailLocationArea")] |
|||
public string? LocationArea { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailLocationCode")] |
|||
public string LocationCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailLocationErpCode")] |
|||
public string LocationErpCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailLocationGroup")] |
|||
public string? LocationGroup { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailLot")] |
|||
public string? Lot { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailMaster")] |
|||
public StoreProductRecycleNote Master { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailMasterId")] |
|||
public Guid MasterId { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailPackingCode")] |
|||
public string PackingCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailProduceDate")] |
|||
public DateTime ProduceDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailProductItemCode")] |
|||
public string? ProductItemCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailProductItemDesc1")] |
|||
public string? ProductItemDesc1 { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailProductItemDesc2")] |
|||
public string? ProductItemDesc2 { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailProductItemName")] |
|||
public string? ProductItemName { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailProductLot")] |
|||
public string? ProductLot { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailProductPackingCode")] |
|||
public string? ProductPackingCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailQty")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailStatus")] |
|||
public string Status { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailStdPackQty")] |
|||
public decimal StdPackQty { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailSupplierBatch")] |
|||
public string? SupplierBatch { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailUom")] |
|||
public string Uom { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleMaterialDetailWarehouseCode")] |
|||
public string WarehouseCode { get; set; } |
|||
} |
@ -0,0 +1,205 @@ |
|||
$(function () { |
|||
|
|||
$("#StoreProductRecycleMaterialDetailFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StoreProductRecycleMaterialDetailCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StoreProductRecycleMaterialDetailFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StoreProductRecycleMaterialDetailFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storeProductRecycleMaterialDetail.storeProductRecycleMaterialDetail; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductRecycleMaterialDetail/StoreProductRecycleMaterialDetail/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductRecycleMaterialDetail/StoreProductRecycleMaterialDetail/EditModal'); |
|||
|
|||
var dataTable = $('#StoreProductRecycleMaterialDetailTable').DataTable(abp.libs.datatables.normalizeConfiguration({ |
|||
processing: true, |
|||
serverSide: true, |
|||
paging: true, |
|||
searching: false,//disable default searchbox
|
|||
autoWidth: false, |
|||
scrollCollapse: true, |
|||
order: [[0, "asc"]], |
|||
ajax: abp.libs.datatables.createAjax(service.getList,getFilter), |
|||
columnDefs: [ |
|||
{ |
|||
rowAction: { |
|||
items: |
|||
[ |
|||
{ |
|||
text: l('Edit'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductRecycleMaterialDetail.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductRecycleMaterialDetail.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StoreProductRecycleMaterialDetailDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailArriveDate'), |
|||
data: "arriveDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailBomVersion'), |
|||
data: "bomVersion" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailContainerCode'), |
|||
data: "containerCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailExpireDate'), |
|||
data: "expireDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailItemCode'), |
|||
data: "itemCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailItemDesc1'), |
|||
data: "itemDesc1" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailItemDesc2'), |
|||
data: "itemDesc2" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailItemName'), |
|||
data: "itemName" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailLocationArea'), |
|||
data: "locationArea" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailLocationCode'), |
|||
data: "locationCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailLocationErpCode'), |
|||
data: "locationErpCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailLocationGroup'), |
|||
data: "locationGroup" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailLot'), |
|||
data: "lot" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailMaster'), |
|||
data: "master" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailMasterId'), |
|||
data: "masterId" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailPackingCode'), |
|||
data: "packingCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailProduceDate'), |
|||
data: "produceDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailProductItemCode'), |
|||
data: "productItemCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailProductItemDesc1'), |
|||
data: "productItemDesc1" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailProductItemDesc2'), |
|||
data: "productItemDesc2" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailProductItemName'), |
|||
data: "productItemName" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailProductLot'), |
|||
data: "productLot" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailProductPackingCode'), |
|||
data: "productPackingCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailQty'), |
|||
data: "qty" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailStatus'), |
|||
data: "status" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailStdPackQty'), |
|||
data: "stdPackQty" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailSupplierBatch'), |
|||
data: "supplierBatch" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailUom'), |
|||
data: "uom" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleMaterialDetailWarehouseCode'), |
|||
data: "warehouseCode" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStoreProductRecycleMaterialDetailButton').click(function (e) { |
|||
e.preventDefault(); |
|||
createModal.open(); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
@page |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal; |
|||
@using WinIn.FasterZ.Wms.Localization |
|||
@inject IHtmlLocalizer<WmsResource> L |
|||
@model WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleNote.StoreProductRecycleNote.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStoreProductRecycleNote"].Value"></abp-modal-header> |
|||
<abp-modal-body> |
|||
<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,27 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleNote; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleNote.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleNote.StoreProductRecycleNote.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleNote.StoreProductRecycleNote; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStoreProductRecycleNoteViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductRecycleNoteAppService _service; |
|||
|
|||
public CreateModalModel(IStoreProductRecycleNoteAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductRecycleNoteViewModel, CreateUpdateStoreProductRecycleNoteDto>(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.StoreProductRecycleNote.StoreProductRecycleNote.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStoreProductRecycleNote"].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.StoreProductRecycleNote; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleNote.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleNote.StoreProductRecycleNote.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleNote.StoreProductRecycleNote; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStoreProductRecycleNoteViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductRecycleNoteAppService _service; |
|||
|
|||
public EditModalModel(IStoreProductRecycleNoteAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StoreProductRecycleNoteDto, CreateEditStoreProductRecycleNoteViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductRecycleNoteViewModel, CreateUpdateStoreProductRecycleNoteDto>(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.StoreProductRecycleNote.StoreProductRecycleNote |
|||
@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["StoreProductRecycleNote"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StoreProductRecycleNote"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StoreProductRecycleNote; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StoreProductRecycleNote/StoreProductRecycleNote/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StoreProductRecycleNote/StoreProductRecycleNote/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StoreProductRecycleNote"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StoreProductRecycleNote.Create)) |
|||
{ |
|||
<abp-button id="NewStoreProductRecycleNoteButton" |
|||
text="@L["CreateStoreProductRecycleNote"].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="StoreProductRecycleNoteCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StoreProductRecycleNoteFilter" id="StoreProductRecycleNoteFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StoreProductRecycleNoteCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StoreProductRecycleNoteTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,59 @@ |
|||
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.StoreProductRecycleNote.StoreProductRecycleNote; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StoreProductRecycleNoteFilterInput StoreProductRecycleNoteFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StoreProductRecycleNoteFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteActiveDate")] |
|||
public DateTime? ActiveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteRecycleTime")] |
|||
public DateTime? RecycleTime { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteRequestNumber")] |
|||
public string? RequestNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteShift")] |
|||
public string? Shift { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteStoreProductRecycleMaterialDetails")] |
|||
public ICollection<StoreProductRecycleMaterialDetail>? StoreProductRecycleMaterialDetails { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteStoreProductRecycleNoteDetails")] |
|||
public ICollection<StoreProductRecycleNoteDetail>? StoreProductRecycleNoteDetails { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteWorker")] |
|||
public string? Worker { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteWorkshop")] |
|||
public string? Workshop { get; set; } |
|||
} |
@ -0,0 +1,37 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleNote.StoreProductRecycleNote.ViewModels; |
|||
|
|||
public class CreateEditStoreProductRecycleNoteViewModel |
|||
{ |
|||
[Display(Name = "StoreProductRecycleNoteActiveDate")] |
|||
public DateTime ActiveDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteRecycleTime")] |
|||
public DateTime RecycleTime { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteRequestNumber")] |
|||
public string? RequestNumber { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteShift")] |
|||
public string? Shift { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteStoreProductRecycleMaterialDetails")] |
|||
public ICollection<StoreProductRecycleMaterialDetail> StoreProductRecycleMaterialDetails { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteStoreProductRecycleNoteDetails")] |
|||
public ICollection<StoreProductRecycleNoteDetail> StoreProductRecycleNoteDetails { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteWorker")] |
|||
public string? Worker { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteWorkshop")] |
|||
public string? Workshop { get; set; } |
|||
} |
@ -0,0 +1,121 @@ |
|||
$(function () { |
|||
|
|||
$("#StoreProductRecycleNoteFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StoreProductRecycleNoteCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StoreProductRecycleNoteFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StoreProductRecycleNoteFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storeProductRecycleNote.storeProductRecycleNote; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductRecycleNote/StoreProductRecycleNote/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductRecycleNote/StoreProductRecycleNote/EditModal'); |
|||
|
|||
var dataTable = $('#StoreProductRecycleNoteTable').DataTable(abp.libs.datatables.normalizeConfiguration({ |
|||
processing: true, |
|||
serverSide: true, |
|||
paging: true, |
|||
searching: false,//disable default searchbox
|
|||
autoWidth: false, |
|||
scrollCollapse: true, |
|||
order: [[0, "asc"]], |
|||
ajax: abp.libs.datatables.createAjax(service.getList,getFilter), |
|||
columnDefs: [ |
|||
{ |
|||
rowAction: { |
|||
items: |
|||
[ |
|||
{ |
|||
text: l('Edit'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductRecycleNote.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductRecycleNote.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StoreProductRecycleNoteDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteActiveDate'), |
|||
data: "activeDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteRecycleTime'), |
|||
data: "recycleTime" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteRequestNumber'), |
|||
data: "requestNumber" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteShift'), |
|||
data: "shift" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteStoreProductRecycleMaterialDetails'), |
|||
data: "storeProductRecycleMaterialDetails" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteStoreProductRecycleNoteDetails'), |
|||
data: "storeProductRecycleNoteDetails" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteWorker'), |
|||
data: "worker" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteWorkshop'), |
|||
data: "workshop" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStoreProductRecycleNoteButton').click(function (e) { |
|||
e.preventDefault(); |
|||
createModal.open(); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
@page |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal; |
|||
@using WinIn.FasterZ.Wms.Localization |
|||
@inject IHtmlLocalizer<WmsResource> L |
|||
@model WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleNoteDetail.StoreProductRecycleNoteDetail.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStoreProductRecycleNoteDetail"].Value"></abp-modal-header> |
|||
<abp-modal-body> |
|||
<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,27 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleNoteDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleNoteDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleNoteDetail.StoreProductRecycleNoteDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleNoteDetail.StoreProductRecycleNoteDetail; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStoreProductRecycleNoteDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductRecycleNoteDetailAppService _service; |
|||
|
|||
public CreateModalModel(IStoreProductRecycleNoteDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductRecycleNoteDetailViewModel, CreateUpdateStoreProductRecycleNoteDetailDto>(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.StoreProductRecycleNoteDetail.StoreProductRecycleNoteDetail.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStoreProductRecycleNoteDetail"].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.StoreProductRecycleNoteDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleNoteDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleNoteDetail.StoreProductRecycleNoteDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleNoteDetail.StoreProductRecycleNoteDetail; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStoreProductRecycleNoteDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductRecycleNoteDetailAppService _service; |
|||
|
|||
public EditModalModel(IStoreProductRecycleNoteDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StoreProductRecycleNoteDetailDto, CreateEditStoreProductRecycleNoteDetailViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductRecycleNoteDetailViewModel, CreateUpdateStoreProductRecycleNoteDetailDto>(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.StoreProductRecycleNoteDetail.StoreProductRecycleNoteDetail |
|||
@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["StoreProductRecycleNoteDetail"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StoreProductRecycleNoteDetail"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StoreProductRecycleNoteDetail; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StoreProductRecycleNoteDetail/StoreProductRecycleNoteDetail/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StoreProductRecycleNoteDetail/StoreProductRecycleNoteDetail/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StoreProductRecycleNoteDetail"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StoreProductRecycleNoteDetail.Create)) |
|||
{ |
|||
<abp-button id="NewStoreProductRecycleNoteDetailButton" |
|||
text="@L["CreateStoreProductRecycleNoteDetail"].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="StoreProductRecycleNoteDetailCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StoreProductRecycleNoteDetailFilter" id="StoreProductRecycleNoteDetailFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StoreProductRecycleNoteDetailCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StoreProductRecycleNoteDetailTable" 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.StoreProductRecycleNoteDetail.StoreProductRecycleNoteDetail; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StoreProductRecycleNoteDetailFilterInput StoreProductRecycleNoteDetailFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StoreProductRecycleNoteDetailFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailArriveDate")] |
|||
public DateTime? ArriveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailContainerCode")] |
|||
public string? ContainerCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailExpireDate")] |
|||
public DateTime? ExpireDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailItemCode")] |
|||
public string? ItemCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailLocationArea")] |
|||
public string? LocationArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailLocationCode")] |
|||
public string? LocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailLocationErpCode")] |
|||
public string? LocationErpCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailLocationGroup")] |
|||
public string? LocationGroup { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailLot")] |
|||
public string? Lot { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailMaster")] |
|||
public StoreProductRecycleNote? Master { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailMasterId")] |
|||
public Guid? MasterId { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailPackingCode")] |
|||
public string? PackingCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailProduceDate")] |
|||
public DateTime? ProduceDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailQty")] |
|||
public decimal? Qty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailReasonCode")] |
|||
public string? ReasonCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailStatus")] |
|||
public string? Status { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailStdPackQty")] |
|||
public decimal? StdPackQty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailSupplierBatch")] |
|||
public string? SupplierBatch { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailUom")] |
|||
public string? Uom { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleNoteDetailWarehouseCode")] |
|||
public string? WarehouseCode { get; set; } |
|||
} |
@ -0,0 +1,82 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleNoteDetail.StoreProductRecycleNoteDetail.ViewModels; |
|||
|
|||
public class CreateEditStoreProductRecycleNoteDetailViewModel |
|||
{ |
|||
[Display(Name = "StoreProductRecycleNoteDetailArriveDate")] |
|||
public DateTime ArriveDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailContainerCode")] |
|||
public string? ContainerCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailExpireDate")] |
|||
public DateTime ExpireDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailItemCode")] |
|||
public string ItemCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailLocationArea")] |
|||
public string? LocationArea { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailLocationCode")] |
|||
public string LocationCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailLocationErpCode")] |
|||
public string LocationErpCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailLocationGroup")] |
|||
public string? LocationGroup { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailLot")] |
|||
public string? Lot { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailMaster")] |
|||
public StoreProductRecycleNote Master { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailMasterId")] |
|||
public Guid MasterId { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailPackingCode")] |
|||
public string PackingCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailProduceDate")] |
|||
public DateTime ProduceDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailQty")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailReasonCode")] |
|||
public string? ReasonCode { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailStatus")] |
|||
public string Status { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailStdPackQty")] |
|||
public decimal StdPackQty { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailSupplierBatch")] |
|||
public string? SupplierBatch { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailUom")] |
|||
public string Uom { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleNoteDetailWarehouseCode")] |
|||
public string WarehouseCode { get; set; } |
|||
} |
@ -0,0 +1,181 @@ |
|||
$(function () { |
|||
|
|||
$("#StoreProductRecycleNoteDetailFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StoreProductRecycleNoteDetailCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StoreProductRecycleNoteDetailFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StoreProductRecycleNoteDetailFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storeProductRecycleNoteDetail.storeProductRecycleNoteDetail; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductRecycleNoteDetail/StoreProductRecycleNoteDetail/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductRecycleNoteDetail/StoreProductRecycleNoteDetail/EditModal'); |
|||
|
|||
var dataTable = $('#StoreProductRecycleNoteDetailTable').DataTable(abp.libs.datatables.normalizeConfiguration({ |
|||
processing: true, |
|||
serverSide: true, |
|||
paging: true, |
|||
searching: false,//disable default searchbox
|
|||
autoWidth: false, |
|||
scrollCollapse: true, |
|||
order: [[0, "asc"]], |
|||
ajax: abp.libs.datatables.createAjax(service.getList,getFilter), |
|||
columnDefs: [ |
|||
{ |
|||
rowAction: { |
|||
items: |
|||
[ |
|||
{ |
|||
text: l('Edit'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductRecycleNoteDetail.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductRecycleNoteDetail.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StoreProductRecycleNoteDetailDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailArriveDate'), |
|||
data: "arriveDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailContainerCode'), |
|||
data: "containerCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailExpireDate'), |
|||
data: "expireDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailItemCode'), |
|||
data: "itemCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailItemDesc1'), |
|||
data: "itemDesc1" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailItemDesc2'), |
|||
data: "itemDesc2" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailItemName'), |
|||
data: "itemName" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailLocationArea'), |
|||
data: "locationArea" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailLocationCode'), |
|||
data: "locationCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailLocationErpCode'), |
|||
data: "locationErpCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailLocationGroup'), |
|||
data: "locationGroup" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailLot'), |
|||
data: "lot" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailMaster'), |
|||
data: "master" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailMasterId'), |
|||
data: "masterId" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailPackingCode'), |
|||
data: "packingCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailProduceDate'), |
|||
data: "produceDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailQty'), |
|||
data: "qty" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailReasonCode'), |
|||
data: "reasonCode" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailStatus'), |
|||
data: "status" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailStdPackQty'), |
|||
data: "stdPackQty" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailSupplierBatch'), |
|||
data: "supplierBatch" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailUom'), |
|||
data: "uom" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleNoteDetailWarehouseCode'), |
|||
data: "warehouseCode" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStoreProductRecycleNoteDetailButton').click(function (e) { |
|||
e.preventDefault(); |
|||
createModal.open(); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
@page |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal; |
|||
@using WinIn.FasterZ.Wms.Localization |
|||
@inject IHtmlLocalizer<WmsResource> L |
|||
@model WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleRequest.StoreProductRecycleRequest.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStoreProductRecycleRequest"].Value"></abp-modal-header> |
|||
<abp-modal-body> |
|||
<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,27 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleRequest; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleRequest.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleRequest.StoreProductRecycleRequest.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleRequest.StoreProductRecycleRequest; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStoreProductRecycleRequestViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductRecycleRequestAppService _service; |
|||
|
|||
public CreateModalModel(IStoreProductRecycleRequestAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductRecycleRequestViewModel, CreateUpdateStoreProductRecycleRequestDto>(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.StoreProductRecycleRequest.StoreProductRecycleRequest.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStoreProductRecycleRequest"].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.StoreProductRecycleRequest; |
|||
using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleRequest.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleRequest.StoreProductRecycleRequest.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleRequest.StoreProductRecycleRequest; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStoreProductRecycleRequestViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStoreProductRecycleRequestAppService _service; |
|||
|
|||
public EditModalModel(IStoreProductRecycleRequestAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StoreProductRecycleRequestDto, CreateEditStoreProductRecycleRequestViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStoreProductRecycleRequestViewModel, CreateUpdateStoreProductRecycleRequestDto>(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.StoreProductRecycleRequest.StoreProductRecycleRequest |
|||
@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["StoreProductRecycleRequest"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StoreProductRecycleRequest"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StoreProductRecycleRequest; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StoreProductRecycleRequest/StoreProductRecycleRequest/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StoreProductRecycleRequest/StoreProductRecycleRequest/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StoreProductRecycleRequest"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StoreProductRecycleRequest.Create)) |
|||
{ |
|||
<abp-button id="NewStoreProductRecycleRequestButton" |
|||
text="@L["CreateStoreProductRecycleRequest"].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="StoreProductRecycleRequestCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StoreProductRecycleRequestFilter" id="StoreProductRecycleRequestFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StoreProductRecycleRequestCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StoreProductRecycleRequestTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,71 @@ |
|||
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.StoreProductRecycleRequest.StoreProductRecycleRequest; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StoreProductRecycleRequestFilterInput StoreProductRecycleRequestFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StoreProductRecycleRequestFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleRequestActiveDate")] |
|||
public DateTime? ActiveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleRequestAutoAgree")] |
|||
public bool? AutoAgree { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleRequestAutoCompleteJob")] |
|||
public bool? AutoCompleteJob { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleRequestAutoHandle")] |
|||
public bool? AutoHandle { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleRequestAutoSubmit")] |
|||
public bool? AutoSubmit { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleRequestDirectCreateNote")] |
|||
public bool? DirectCreateNote { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleRequestNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleRequestRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleRequestRequestStatus")] |
|||
public string? RequestStatus { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleRequestShift")] |
|||
public string? Shift { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleRequestStoreProductRecycleRequestDetails")] |
|||
public ICollection<StoreProductRecycleRequestDetail>? StoreProductRecycleRequestDetails { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleRequestWorker")] |
|||
public string? Worker { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StoreProductRecycleRequestWorkshop")] |
|||
public string? Workshop { get; set; } |
|||
} |
@ -0,0 +1,46 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StoreProductRecycleRequest.StoreProductRecycleRequest.ViewModels; |
|||
|
|||
public class CreateEditStoreProductRecycleRequestViewModel |
|||
{ |
|||
[Display(Name = "StoreProductRecycleRequestActiveDate")] |
|||
public DateTime ActiveDate { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleRequestAutoAgree")] |
|||
public bool AutoAgree { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleRequestAutoCompleteJob")] |
|||
public bool AutoCompleteJob { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleRequestAutoHandle")] |
|||
public bool AutoHandle { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleRequestAutoSubmit")] |
|||
public bool AutoSubmit { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleRequestDirectCreateNote")] |
|||
public bool DirectCreateNote { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleRequestNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleRequestRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleRequestRequestStatus")] |
|||
public string RequestStatus { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleRequestShift")] |
|||
public string? Shift { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleRequestStoreProductRecycleRequestDetails")] |
|||
public ICollection<StoreProductRecycleRequestDetail> StoreProductRecycleRequestDetails { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleRequestWorker")] |
|||
public string? Worker { get; set; } |
|||
|
|||
[Display(Name = "StoreProductRecycleRequestWorkshop")] |
|||
public string? Workshop { get; set; } |
|||
} |
@ -0,0 +1,133 @@ |
|||
$(function () { |
|||
|
|||
$("#StoreProductRecycleRequestFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StoreProductRecycleRequestCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StoreProductRecycleRequestFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StoreProductRecycleRequestFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storeProductRecycleRequest.storeProductRecycleRequest; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductRecycleRequest/StoreProductRecycleRequest/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StoreProductRecycleRequest/StoreProductRecycleRequest/EditModal'); |
|||
|
|||
var dataTable = $('#StoreProductRecycleRequestTable').DataTable(abp.libs.datatables.normalizeConfiguration({ |
|||
processing: true, |
|||
serverSide: true, |
|||
paging: true, |
|||
searching: false,//disable default searchbox
|
|||
autoWidth: false, |
|||
scrollCollapse: true, |
|||
order: [[0, "asc"]], |
|||
ajax: abp.libs.datatables.createAjax(service.getList,getFilter), |
|||
columnDefs: [ |
|||
{ |
|||
rowAction: { |
|||
items: |
|||
[ |
|||
{ |
|||
text: l('Edit'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductRecycleRequest.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StoreProductRecycleRequest.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StoreProductRecycleRequestDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleRequestActiveDate'), |
|||
data: "activeDate" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleRequestAutoAgree'), |
|||
data: "autoAgree" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleRequestAutoCompleteJob'), |
|||
data: "autoCompleteJob" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleRequestAutoHandle'), |
|||
data: "autoHandle" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleRequestAutoSubmit'), |
|||
data: "autoSubmit" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleRequestDirectCreateNote'), |
|||
data: "directCreateNote" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleRequestNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleRequestRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleRequestRequestStatus'), |
|||
data: "requestStatus" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleRequestShift'), |
|||
data: "shift" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleRequestStoreProductRecycleRequestDetails'), |
|||
data: "storeProductRecycleRequestDetails" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleRequestWorker'), |
|||
data: "worker" |
|||
}, |
|||
{ |
|||
title: l('StoreProductRecycleRequestWorkshop'), |
|||
data: "workshop" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStoreProductRecycleRequestButton').click(function (e) { |
|||
e.preventDefault(); |
|||
createModal.open(); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
@page |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal; |
|||
@using WinIn.FasterZ.Wms.Localization |
|||
@inject IHtmlLocalizer<WmsResource> L |
|||
@model WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseOrder.StorePurchaseOrder.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStorePurchaseOrder"].Value"></abp-modal-header> |
|||
<abp-modal-body> |
|||
<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,27 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePurchaseOrder; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePurchaseOrder.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseOrder.StorePurchaseOrder.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseOrder.StorePurchaseOrder; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStorePurchaseOrderViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStorePurchaseOrderAppService _service; |
|||
|
|||
public CreateModalModel(IStorePurchaseOrderAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStorePurchaseOrderViewModel, CreateUpdateStorePurchaseOrderDto>(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.StorePurchaseOrder.StorePurchaseOrder.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStorePurchaseOrder"].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.StorePurchaseOrder; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePurchaseOrder.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseOrder.StorePurchaseOrder.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseOrder.StorePurchaseOrder; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStorePurchaseOrderViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStorePurchaseOrderAppService _service; |
|||
|
|||
public EditModalModel(IStorePurchaseOrderAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StorePurchaseOrderDto, CreateEditStorePurchaseOrderViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStorePurchaseOrderViewModel, CreateUpdateStorePurchaseOrderDto>(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.StorePurchaseOrder.StorePurchaseOrder |
|||
@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["StorePurchaseOrder"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StorePurchaseOrder"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StorePurchaseOrder; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StorePurchaseOrder/StorePurchaseOrder/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StorePurchaseOrder/StorePurchaseOrder/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StorePurchaseOrder"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StorePurchaseOrder.Create)) |
|||
{ |
|||
<abp-button id="NewStorePurchaseOrderButton" |
|||
text="@L["CreateStorePurchaseOrder"].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="StorePurchaseOrderCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StorePurchaseOrderFilter" id="StorePurchaseOrderFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StorePurchaseOrderCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StorePurchaseOrderTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,91 @@ |
|||
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.StorePurchaseOrder.StorePurchaseOrder; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StorePurchaseOrderFilterInput StorePurchaseOrderFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StorePurchaseOrderFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderActiveDate")] |
|||
public DateTime? ActiveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderContactEmail")] |
|||
public string? ContactEmail { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderContactName")] |
|||
public string? ContactName { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderContactPhone")] |
|||
public string? ContactPhone { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderDueDate")] |
|||
public DateTime? DueDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderIsConsignment")] |
|||
public bool? IsConsignment { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderOrderDate")] |
|||
public DateTime? OrderDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderOrderStatus")] |
|||
public string? OrderStatus { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderPoType")] |
|||
public string? PoType { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderStorePurchaseOrderDetails")] |
|||
public ICollection<StorePurchaseOrderDetail>? StorePurchaseOrderDetails { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderSupplierAddress")] |
|||
public string? SupplierAddress { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderSupplierCode")] |
|||
public string? SupplierCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderSupplierName")] |
|||
public string? SupplierName { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderTaxRate")] |
|||
public decimal? TaxRate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderVersion")] |
|||
public string? Version { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseOrderWorker")] |
|||
public string? Worker { get; set; } |
|||
} |
@ -0,0 +1,61 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseOrder.StorePurchaseOrder.ViewModels; |
|||
|
|||
public class CreateEditStorePurchaseOrderViewModel |
|||
{ |
|||
[Display(Name = "StorePurchaseOrderActiveDate")] |
|||
public DateTime ActiveDate { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderContactEmail")] |
|||
public string? ContactEmail { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderContactName")] |
|||
public string? ContactName { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderContactPhone")] |
|||
public string? ContactPhone { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderDueDate")] |
|||
public DateTime DueDate { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderIsConsignment")] |
|||
public bool? IsConsignment { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderOrderDate")] |
|||
public DateTime OrderDate { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderOrderStatus")] |
|||
public string OrderStatus { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderPoType")] |
|||
public string? PoType { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderStorePurchaseOrderDetails")] |
|||
public ICollection<StorePurchaseOrderDetail> StorePurchaseOrderDetails { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderSupplierAddress")] |
|||
public string? SupplierAddress { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderSupplierCode")] |
|||
public string? SupplierCode { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderSupplierName")] |
|||
public string? SupplierName { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderTaxRate")] |
|||
public decimal TaxRate { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderVersion")] |
|||
public string? Version { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseOrderWorker")] |
|||
public string? Worker { get; set; } |
|||
} |
@ -0,0 +1,153 @@ |
|||
$(function () { |
|||
|
|||
$("#StorePurchaseOrderFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StorePurchaseOrderCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StorePurchaseOrderFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StorePurchaseOrderFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storePurchaseOrder.storePurchaseOrder; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StorePurchaseOrder/StorePurchaseOrder/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StorePurchaseOrder/StorePurchaseOrder/EditModal'); |
|||
|
|||
var dataTable = $('#StorePurchaseOrderTable').DataTable(abp.libs.datatables.normalizeConfiguration({ |
|||
processing: true, |
|||
serverSide: true, |
|||
paging: true, |
|||
searching: false,//disable default searchbox
|
|||
autoWidth: false, |
|||
scrollCollapse: true, |
|||
order: [[0, "asc"]], |
|||
ajax: abp.libs.datatables.createAjax(service.getList,getFilter), |
|||
columnDefs: [ |
|||
{ |
|||
rowAction: { |
|||
items: |
|||
[ |
|||
{ |
|||
text: l('Edit'), |
|||
visible: abp.auth.isGranted('Wms.StorePurchaseOrder.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StorePurchaseOrder.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StorePurchaseOrderDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderActiveDate'), |
|||
data: "activeDate" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderContactEmail'), |
|||
data: "contactEmail" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderContactName'), |
|||
data: "contactName" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderContactPhone'), |
|||
data: "contactPhone" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderDueDate'), |
|||
data: "dueDate" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderIsConsignment'), |
|||
data: "isConsignment" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderOrderDate'), |
|||
data: "orderDate" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderOrderStatus'), |
|||
data: "orderStatus" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderPoType'), |
|||
data: "poType" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderStorePurchaseOrderDetails'), |
|||
data: "storePurchaseOrderDetails" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderSupplierAddress'), |
|||
data: "supplierAddress" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderSupplierCode'), |
|||
data: "supplierCode" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderSupplierName'), |
|||
data: "supplierName" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderTaxRate'), |
|||
data: "taxRate" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderVersion'), |
|||
data: "version" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseOrderWorker'), |
|||
data: "worker" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStorePurchaseOrderButton').click(function (e) { |
|||
e.preventDefault(); |
|||
createModal.open(); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
@page |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal; |
|||
@using WinIn.FasterZ.Wms.Localization |
|||
@inject IHtmlLocalizer<WmsResource> L |
|||
@model WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseOrderDetail.StorePurchaseOrderDetail.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStorePurchaseOrderDetail"].Value"></abp-modal-header> |
|||
<abp-modal-body> |
|||
<abp-form-content /> |
|||
</abp-modal-body> |
|||
<abp-modal-footer buttons="@(AbpModalButtons.Cancel|AbpModalButtons.Save)"></abp-modal-footer> |
|||
</abp-modal> |
|||
</abp-dynamic-form> |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue