54 changed files with 3543 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.StorePurchaseReturnRequest.StorePurchaseReturnRequest.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStorePurchaseReturnRequest"].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.StorePurchaseReturnRequest; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePurchaseReturnRequest.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseReturnRequest.StorePurchaseReturnRequest.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseReturnRequest.StorePurchaseReturnRequest; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStorePurchaseReturnRequestViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStorePurchaseReturnRequestAppService _service; |
|||
|
|||
public CreateModalModel(IStorePurchaseReturnRequestAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStorePurchaseReturnRequestViewModel, CreateUpdateStorePurchaseReturnRequestDto>(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.StorePurchaseReturnRequest.StorePurchaseReturnRequest.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStorePurchaseReturnRequest"].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.StorePurchaseReturnRequest; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePurchaseReturnRequest.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseReturnRequest.StorePurchaseReturnRequest.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseReturnRequest.StorePurchaseReturnRequest; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStorePurchaseReturnRequestViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStorePurchaseReturnRequestAppService _service; |
|||
|
|||
public EditModalModel(IStorePurchaseReturnRequestAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StorePurchaseReturnRequestDto, CreateEditStorePurchaseReturnRequestViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStorePurchaseReturnRequestViewModel, CreateUpdateStorePurchaseReturnRequestDto>(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.StorePurchaseReturnRequest.StorePurchaseReturnRequest |
|||
@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["StorePurchaseReturnRequest"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StorePurchaseReturnRequest"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StorePurchaseReturnRequest; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StorePurchaseReturnRequest/StorePurchaseReturnRequest/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StorePurchaseReturnRequest/StorePurchaseReturnRequest/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StorePurchaseReturnRequest"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StorePurchaseReturnRequest.Create)) |
|||
{ |
|||
<abp-button id="NewStorePurchaseReturnRequestButton" |
|||
text="@L["CreateStorePurchaseReturnRequest"].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="StorePurchaseReturnRequestCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StorePurchaseReturnRequestFilter" id="StorePurchaseReturnRequestFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StorePurchaseReturnRequestCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StorePurchaseReturnRequestTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,87 @@ |
|||
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.StorePurchaseReturnRequest.StorePurchaseReturnRequest; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StorePurchaseReturnRequestFilterInput StorePurchaseReturnRequestFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StorePurchaseReturnRequestFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestActiveDate")] |
|||
public DateTime? ActiveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestAsnNumber")] |
|||
public string? AsnNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestAutoAgree")] |
|||
public bool? AutoAgree { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestAutoCompleteJob")] |
|||
public bool? AutoCompleteJob { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestAutoHandle")] |
|||
public bool? AutoHandle { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestAutoSubmit")] |
|||
public bool? AutoSubmit { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDirectCreateNote")] |
|||
public bool? DirectCreateNote { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestPoNumber")] |
|||
public string? PoNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestRequestStatus")] |
|||
public string? RequestStatus { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestReturnTime")] |
|||
public DateTime? ReturnTime { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestReturnType")] |
|||
public string? ReturnType { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestRpNumber")] |
|||
public string? RpNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestStorePurchaseReturnRequestDetails")] |
|||
public ICollection<StorePurchaseReturnRequestDetail>? StorePurchaseReturnRequestDetails { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestSupplierCode")] |
|||
public string? SupplierCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestWorker")] |
|||
public string? Worker { get; set; } |
|||
} |
@ -0,0 +1,58 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseReturnRequest.StorePurchaseReturnRequest.ViewModels; |
|||
|
|||
public class CreateEditStorePurchaseReturnRequestViewModel |
|||
{ |
|||
[Display(Name = "StorePurchaseReturnRequestActiveDate")] |
|||
public DateTime ActiveDate { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestAsnNumber")] |
|||
public string? AsnNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestAutoAgree")] |
|||
public bool AutoAgree { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestAutoCompleteJob")] |
|||
public bool AutoCompleteJob { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestAutoHandle")] |
|||
public bool AutoHandle { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestAutoSubmit")] |
|||
public bool AutoSubmit { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDirectCreateNote")] |
|||
public bool DirectCreateNote { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestPoNumber")] |
|||
public string? PoNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestRequestStatus")] |
|||
public string RequestStatus { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestReturnTime")] |
|||
public DateTime ReturnTime { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestReturnType")] |
|||
public string ReturnType { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestRpNumber")] |
|||
public string? RpNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestStorePurchaseReturnRequestDetails")] |
|||
public ICollection<StorePurchaseReturnRequestDetail> StorePurchaseReturnRequestDetails { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestSupplierCode")] |
|||
public string? SupplierCode { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestWorker")] |
|||
public string? Worker { get; set; } |
|||
} |
@ -0,0 +1,149 @@ |
|||
$(function () { |
|||
|
|||
$("#StorePurchaseReturnRequestFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StorePurchaseReturnRequestCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StorePurchaseReturnRequestFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StorePurchaseReturnRequestFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storePurchaseReturnRequest.storePurchaseReturnRequest; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StorePurchaseReturnRequest/StorePurchaseReturnRequest/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StorePurchaseReturnRequest/StorePurchaseReturnRequest/EditModal'); |
|||
|
|||
var dataTable = $('#StorePurchaseReturnRequestTable').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.StorePurchaseReturnRequest.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StorePurchaseReturnRequest.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StorePurchaseReturnRequestDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestActiveDate'), |
|||
data: "activeDate" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestAsnNumber'), |
|||
data: "asnNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestAutoAgree'), |
|||
data: "autoAgree" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestAutoCompleteJob'), |
|||
data: "autoCompleteJob" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestAutoHandle'), |
|||
data: "autoHandle" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestAutoSubmit'), |
|||
data: "autoSubmit" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDirectCreateNote'), |
|||
data: "directCreateNote" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestPoNumber'), |
|||
data: "poNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestRequestStatus'), |
|||
data: "requestStatus" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestReturnTime'), |
|||
data: "returnTime" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestReturnType'), |
|||
data: "returnType" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestRpNumber'), |
|||
data: "rpNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestStorePurchaseReturnRequestDetails'), |
|||
data: "storePurchaseReturnRequestDetails" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestSupplierCode'), |
|||
data: "supplierCode" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestWorker'), |
|||
data: "worker" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStorePurchaseReturnRequestButton').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.StorePurchaseReturnRequestDetail.StorePurchaseReturnRequestDetail.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStorePurchaseReturnRequestDetail"].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.StorePurchaseReturnRequestDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePurchaseReturnRequestDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseReturnRequestDetail.StorePurchaseReturnRequestDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseReturnRequestDetail.StorePurchaseReturnRequestDetail; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStorePurchaseReturnRequestDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStorePurchaseReturnRequestDetailAppService _service; |
|||
|
|||
public CreateModalModel(IStorePurchaseReturnRequestDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStorePurchaseReturnRequestDetailViewModel, CreateUpdateStorePurchaseReturnRequestDetailDto>(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.StorePurchaseReturnRequestDetail.StorePurchaseReturnRequestDetail.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStorePurchaseReturnRequestDetail"].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.StorePurchaseReturnRequestDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePurchaseReturnRequestDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseReturnRequestDetail.StorePurchaseReturnRequestDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseReturnRequestDetail.StorePurchaseReturnRequestDetail; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStorePurchaseReturnRequestDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStorePurchaseReturnRequestDetailAppService _service; |
|||
|
|||
public EditModalModel(IStorePurchaseReturnRequestDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StorePurchaseReturnRequestDetailDto, CreateEditStorePurchaseReturnRequestDetailViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStorePurchaseReturnRequestDetailViewModel, CreateUpdateStorePurchaseReturnRequestDetailDto>(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.StorePurchaseReturnRequestDetail.StorePurchaseReturnRequestDetail |
|||
@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["StorePurchaseReturnRequestDetail"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StorePurchaseReturnRequestDetail"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StorePurchaseReturnRequestDetail; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StorePurchaseReturnRequestDetail/StorePurchaseReturnRequestDetail/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StorePurchaseReturnRequestDetail/StorePurchaseReturnRequestDetail/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StorePurchaseReturnRequestDetail"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StorePurchaseReturnRequestDetail.Create)) |
|||
{ |
|||
<abp-button id="NewStorePurchaseReturnRequestDetailButton" |
|||
text="@L["CreateStorePurchaseReturnRequestDetail"].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="StorePurchaseReturnRequestDetailCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StorePurchaseReturnRequestDetailFilter" id="StorePurchaseReturnRequestDetailFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StorePurchaseReturnRequestDetailCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StorePurchaseReturnRequestDetailTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,123 @@ |
|||
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.StorePurchaseReturnRequestDetail.StorePurchaseReturnRequestDetail; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StorePurchaseReturnRequestDetailFilterInput StorePurchaseReturnRequestDetailFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StorePurchaseReturnRequestDetailFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailArriveDate")] |
|||
public DateTime? ArriveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailContainerCode")] |
|||
public string? ContainerCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailExpireDate")] |
|||
public DateTime? ExpireDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailItemCode")] |
|||
public string? ItemCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailLocationArea")] |
|||
public string? LocationArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailLocationCode")] |
|||
public string? LocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailLocationErpCode")] |
|||
public string? LocationErpCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailLocationGroup")] |
|||
public string? LocationGroup { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailLot")] |
|||
public string? Lot { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailMaster")] |
|||
public StorePurchaseReturnRequest? Master { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailMasterId")] |
|||
public Guid? MasterId { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailPackingCode")] |
|||
public string? PackingCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailPoLine")] |
|||
public string? PoLine { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailPoNumber")] |
|||
public string? PoNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailProduceDate")] |
|||
public DateTime? ProduceDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailQty")] |
|||
public decimal? Qty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailStatus")] |
|||
public string? Status { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailStdPackQty")] |
|||
public decimal? StdPackQty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailSupplierBatch")] |
|||
public string? SupplierBatch { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailUom")] |
|||
public string? Uom { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePurchaseReturnRequestDetailWarehouseCode")] |
|||
public string? WarehouseCode { get; set; } |
|||
} |
@ -0,0 +1,85 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePurchaseReturnRequestDetail.StorePurchaseReturnRequestDetail.ViewModels; |
|||
|
|||
public class CreateEditStorePurchaseReturnRequestDetailViewModel |
|||
{ |
|||
[Display(Name = "StorePurchaseReturnRequestDetailArriveDate")] |
|||
public DateTime ArriveDate { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailContainerCode")] |
|||
public string? ContainerCode { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailExpireDate")] |
|||
public DateTime ExpireDate { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailItemCode")] |
|||
public string ItemCode { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailLocationArea")] |
|||
public string? LocationArea { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailLocationCode")] |
|||
public string LocationCode { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailLocationErpCode")] |
|||
public string LocationErpCode { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailLocationGroup")] |
|||
public string? LocationGroup { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailLot")] |
|||
public string? Lot { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailMaster")] |
|||
public StorePurchaseReturnRequest Master { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailMasterId")] |
|||
public Guid MasterId { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailPackingCode")] |
|||
public string PackingCode { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailPoLine")] |
|||
public string? PoLine { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailPoNumber")] |
|||
public string? PoNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailProduceDate")] |
|||
public DateTime ProduceDate { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailQty")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailStatus")] |
|||
public string Status { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailStdPackQty")] |
|||
public decimal StdPackQty { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailSupplierBatch")] |
|||
public string? SupplierBatch { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailUom")] |
|||
public string Uom { get; set; } |
|||
|
|||
[Display(Name = "StorePurchaseReturnRequestDetailWarehouseCode")] |
|||
public string WarehouseCode { get; set; } |
|||
} |
@ -0,0 +1,185 @@ |
|||
$(function () { |
|||
|
|||
$("#StorePurchaseReturnRequestDetailFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StorePurchaseReturnRequestDetailCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StorePurchaseReturnRequestDetailFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StorePurchaseReturnRequestDetailFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storePurchaseReturnRequestDetail.storePurchaseReturnRequestDetail; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StorePurchaseReturnRequestDetail/StorePurchaseReturnRequestDetail/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StorePurchaseReturnRequestDetail/StorePurchaseReturnRequestDetail/EditModal'); |
|||
|
|||
var dataTable = $('#StorePurchaseReturnRequestDetailTable').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.StorePurchaseReturnRequestDetail.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StorePurchaseReturnRequestDetail.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StorePurchaseReturnRequestDetailDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailArriveDate'), |
|||
data: "arriveDate" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailContainerCode'), |
|||
data: "containerCode" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailExpireDate'), |
|||
data: "expireDate" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailItemCode'), |
|||
data: "itemCode" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailItemDesc1'), |
|||
data: "itemDesc1" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailItemDesc2'), |
|||
data: "itemDesc2" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailItemName'), |
|||
data: "itemName" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailLocationArea'), |
|||
data: "locationArea" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailLocationCode'), |
|||
data: "locationCode" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailLocationErpCode'), |
|||
data: "locationErpCode" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailLocationGroup'), |
|||
data: "locationGroup" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailLot'), |
|||
data: "lot" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailMaster'), |
|||
data: "master" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailMasterId'), |
|||
data: "masterId" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailPackingCode'), |
|||
data: "packingCode" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailPoLine'), |
|||
data: "poLine" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailPoNumber'), |
|||
data: "poNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailProduceDate'), |
|||
data: "produceDate" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailQty'), |
|||
data: "qty" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailStatus'), |
|||
data: "status" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailStdPackQty'), |
|||
data: "stdPackQty" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailSupplierBatch'), |
|||
data: "supplierBatch" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailUom'), |
|||
data: "uom" |
|||
}, |
|||
{ |
|||
title: l('StorePurchaseReturnRequestDetailWarehouseCode'), |
|||
data: "warehouseCode" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStorePurchaseReturnRequestDetailButton').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.StorePutawayNote.StorePutawayNote.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStorePutawayNote"].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.StorePutawayNote; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePutawayNote.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayNote.StorePutawayNote.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayNote.StorePutawayNote; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStorePutawayNoteViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStorePutawayNoteAppService _service; |
|||
|
|||
public CreateModalModel(IStorePutawayNoteAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStorePutawayNoteViewModel, CreateUpdateStorePutawayNoteDto>(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.StorePutawayNote.StorePutawayNote.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStorePutawayNote"].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.StorePutawayNote; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePutawayNote.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayNote.StorePutawayNote.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayNote.StorePutawayNote; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStorePutawayNoteViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStorePutawayNoteAppService _service; |
|||
|
|||
public EditModalModel(IStorePutawayNoteAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StorePutawayNoteDto, CreateEditStorePutawayNoteViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStorePutawayNoteViewModel, CreateUpdateStorePutawayNoteDto>(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.StorePutawayNote.StorePutawayNote |
|||
@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["StorePutawayNote"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StorePutawayNote"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StorePutawayNote; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StorePutawayNote/StorePutawayNote/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StorePutawayNote/StorePutawayNote/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StorePutawayNote"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StorePutawayNote.Create)) |
|||
{ |
|||
<abp-button id="NewStorePutawayNoteButton" |
|||
text="@L["CreateStorePutawayNote"].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="StorePutawayNoteCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StorePutawayNoteFilter" id="StorePutawayNoteFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StorePutawayNoteCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StorePutawayNoteTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,75 @@ |
|||
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.StorePutawayNote.StorePutawayNote; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StorePutawayNoteFilterInput StorePutawayNoteFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StorePutawayNoteFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteActiveDate")] |
|||
public DateTime? ActiveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteAsnNumber")] |
|||
public string? AsnNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteInspectNumber")] |
|||
public string? InspectNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteJobNumber")] |
|||
public string? JobNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteProductReceiptNumber")] |
|||
public string? ProductReceiptNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNotePurchaseReceiptRequestNumber")] |
|||
public string? PurchaseReceiptRequestNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteReceiptNumber")] |
|||
public string? ReceiptNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteRpNumber")] |
|||
public string? RpNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteStorePutawayNoteDetails")] |
|||
public ICollection<StorePutawayNoteDetail>? StorePutawayNoteDetails { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteSupplierCode")] |
|||
public string? SupplierCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteType")] |
|||
public string? Type { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteWorker")] |
|||
public string? Worker { get; set; } |
|||
} |
@ -0,0 +1,49 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayNote.StorePutawayNote.ViewModels; |
|||
|
|||
public class CreateEditStorePutawayNoteViewModel |
|||
{ |
|||
[Display(Name = "StorePutawayNoteActiveDate")] |
|||
public DateTime ActiveDate { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteAsnNumber")] |
|||
public string? AsnNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteInspectNumber")] |
|||
public string? InspectNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteJobNumber")] |
|||
public string? JobNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteProductReceiptNumber")] |
|||
public string? ProductReceiptNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNotePurchaseReceiptRequestNumber")] |
|||
public string? PurchaseReceiptRequestNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteReceiptNumber")] |
|||
public string? ReceiptNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteRpNumber")] |
|||
public string? RpNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteStorePutawayNoteDetails")] |
|||
public ICollection<StorePutawayNoteDetail> StorePutawayNoteDetails { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteSupplierCode")] |
|||
public string? SupplierCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteType")] |
|||
public string Type { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteWorker")] |
|||
public string? Worker { get; set; } |
|||
} |
@ -0,0 +1,137 @@ |
|||
$(function () { |
|||
|
|||
$("#StorePutawayNoteFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StorePutawayNoteCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StorePutawayNoteFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StorePutawayNoteFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storePutawayNote.storePutawayNote; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StorePutawayNote/StorePutawayNote/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StorePutawayNote/StorePutawayNote/EditModal'); |
|||
|
|||
var dataTable = $('#StorePutawayNoteTable').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.StorePutawayNote.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StorePutawayNote.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StorePutawayNoteDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteActiveDate'), |
|||
data: "activeDate" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteAsnNumber'), |
|||
data: "asnNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteInspectNumber'), |
|||
data: "inspectNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteJobNumber'), |
|||
data: "jobNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteProductReceiptNumber'), |
|||
data: "productReceiptNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNotePurchaseReceiptRequestNumber'), |
|||
data: "purchaseReceiptRequestNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteReceiptNumber'), |
|||
data: "receiptNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteRpNumber'), |
|||
data: "rpNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteStorePutawayNoteDetails'), |
|||
data: "storePutawayNoteDetails" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteSupplierCode'), |
|||
data: "supplierCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteType'), |
|||
data: "type" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteWorker'), |
|||
data: "worker" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStorePutawayNoteButton').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.StorePutawayNoteDetail.StorePutawayNoteDetail.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStorePutawayNoteDetail"].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.StorePutawayNoteDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePutawayNoteDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayNoteDetail.StorePutawayNoteDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayNoteDetail.StorePutawayNoteDetail; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStorePutawayNoteDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStorePutawayNoteDetailAppService _service; |
|||
|
|||
public CreateModalModel(IStorePutawayNoteDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStorePutawayNoteDetailViewModel, CreateUpdateStorePutawayNoteDetailDto>(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.StorePutawayNoteDetail.StorePutawayNoteDetail.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStorePutawayNoteDetail"].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.StorePutawayNoteDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePutawayNoteDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayNoteDetail.StorePutawayNoteDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayNoteDetail.StorePutawayNoteDetail; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStorePutawayNoteDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStorePutawayNoteDetailAppService _service; |
|||
|
|||
public EditModalModel(IStorePutawayNoteDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StorePutawayNoteDetailDto, CreateEditStorePutawayNoteDetailViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStorePutawayNoteDetailViewModel, CreateUpdateStorePutawayNoteDetailDto>(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.StorePutawayNoteDetail.StorePutawayNoteDetail |
|||
@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["StorePutawayNoteDetail"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StorePutawayNoteDetail"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StorePutawayNoteDetail; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StorePutawayNoteDetail/StorePutawayNoteDetail/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StorePutawayNoteDetail/StorePutawayNoteDetail/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StorePutawayNoteDetail"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StorePutawayNoteDetail.Create)) |
|||
{ |
|||
<abp-button id="NewStorePutawayNoteDetailButton" |
|||
text="@L["CreateStorePutawayNoteDetail"].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="StorePutawayNoteDetailCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StorePutawayNoteDetailFilter" id="StorePutawayNoteDetailFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StorePutawayNoteDetailCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StorePutawayNoteDetailTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,267 @@ |
|||
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.StorePutawayNoteDetail.StorePutawayNoteDetail; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StorePutawayNoteDetailFilterInput StorePutawayNoteDetailFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StorePutawayNoteDetailFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailArriveDate")] |
|||
public DateTime? ArriveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailExpireDate")] |
|||
public DateTime? ExpireDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailFromContainerCode")] |
|||
public string? FromContainerCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailFromLocationArea")] |
|||
public string? FromLocationArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailFromLocationCode")] |
|||
public string? FromLocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailFromLocationErpCode")] |
|||
public string? FromLocationErpCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailFromLocationGroup")] |
|||
public string? FromLocationGroup { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailFromLot")] |
|||
public string? FromLot { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailFromPackingCode")] |
|||
public string? FromPackingCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailFromStatus")] |
|||
public string? FromStatus { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailFromWarehouseCode")] |
|||
public string? FromWarehouseCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailHandledArriveDate")] |
|||
public DateTime? HandledArriveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailHandledContainerCode")] |
|||
public string? HandledContainerCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailHandledExpireDate")] |
|||
public DateTime? HandledExpireDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailHandledLot")] |
|||
public string? HandledLot { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailHandledPackingCode")] |
|||
public string? HandledPackingCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailHandledProduceDate")] |
|||
public DateTime? HandledProduceDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailHandledQty")] |
|||
public decimal? HandledQty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailHandledSupplierBatch")] |
|||
public string? HandledSupplierBatch { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailHandledToLocationArea")] |
|||
public string? HandledToLocationArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailHandledToLocationCode")] |
|||
public string? HandledToLocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailHandledToLocationErpCode")] |
|||
public string? HandledToLocationErpCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailHandledToLocationGroup")] |
|||
public string? HandledToLocationGroup { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailHandledToWarehouseCode")] |
|||
public string? HandledToWarehouseCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailItemCode")] |
|||
public string? ItemCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailJobNumber")] |
|||
public string? JobNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailMaster")] |
|||
public StorePutawayNote? Master { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailMasterId")] |
|||
public Guid? MasterId { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailPoLine")] |
|||
public string? PoLine { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailPoNumber")] |
|||
public string? PoNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailProduceDate")] |
|||
public DateTime? ProduceDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailQty")] |
|||
public decimal? Qty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailRecommendArriveDate")] |
|||
public DateTime? RecommendArriveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailRecommendContainerCode")] |
|||
public string? RecommendContainerCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailRecommendExpireDate")] |
|||
public DateTime? RecommendExpireDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailRecommendLot")] |
|||
public string? RecommendLot { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailRecommendPackingCode")] |
|||
public string? RecommendPackingCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailRecommendProduceDate")] |
|||
public DateTime? RecommendProduceDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailRecommendQty")] |
|||
public decimal? RecommendQty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailRecommendSupplierBatch")] |
|||
public string? RecommendSupplierBatch { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailRecommendToLocationArea")] |
|||
public string? RecommendToLocationArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailRecommendToLocationCode")] |
|||
public string? RecommendToLocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailRecommendToLocationErpCode")] |
|||
public string? RecommendToLocationErpCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailRecommendToLocationGroup")] |
|||
public string? RecommendToLocationGroup { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailRecommendToWarehouseCode")] |
|||
public string? RecommendToWarehouseCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailStdPackQty")] |
|||
public decimal? StdPackQty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailSupplierBatch")] |
|||
public string? SupplierBatch { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailToContainerCode")] |
|||
public string? ToContainerCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailToLocationArea")] |
|||
public string? ToLocationArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailToLocationCode")] |
|||
public string? ToLocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailToLocationErpCode")] |
|||
public string? ToLocationErpCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailToLocationGroup")] |
|||
public string? ToLocationGroup { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailToLot")] |
|||
public string? ToLot { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailToPackingCode")] |
|||
public string? ToPackingCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailToStatus")] |
|||
public string? ToStatus { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailToWarehouseCode")] |
|||
public string? ToWarehouseCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayNoteDetailUom")] |
|||
public string? Uom { get; set; } |
|||
} |
@ -0,0 +1,193 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayNoteDetail.StorePutawayNoteDetail.ViewModels; |
|||
|
|||
public class CreateEditStorePutawayNoteDetailViewModel |
|||
{ |
|||
[Display(Name = "StorePutawayNoteDetailArriveDate")] |
|||
public DateTime ArriveDate { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailExpireDate")] |
|||
public DateTime ExpireDate { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailFromContainerCode")] |
|||
public string? FromContainerCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailFromLocationArea")] |
|||
public string? FromLocationArea { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailFromLocationCode")] |
|||
public string FromLocationCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailFromLocationErpCode")] |
|||
public string FromLocationErpCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailFromLocationGroup")] |
|||
public string? FromLocationGroup { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailFromLot")] |
|||
public string? FromLot { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailFromPackingCode")] |
|||
public string? FromPackingCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailFromStatus")] |
|||
public string FromStatus { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailFromWarehouseCode")] |
|||
public string FromWarehouseCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailHandledArriveDate")] |
|||
public DateTime HandledArriveDate { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailHandledContainerCode")] |
|||
public string? HandledContainerCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailHandledExpireDate")] |
|||
public DateTime HandledExpireDate { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailHandledLot")] |
|||
public string? HandledLot { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailHandledPackingCode")] |
|||
public string? HandledPackingCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailHandledProduceDate")] |
|||
public DateTime HandledProduceDate { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailHandledQty")] |
|||
public decimal HandledQty { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailHandledSupplierBatch")] |
|||
public string? HandledSupplierBatch { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailHandledToLocationArea")] |
|||
public string? HandledToLocationArea { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailHandledToLocationCode")] |
|||
public string? HandledToLocationCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailHandledToLocationErpCode")] |
|||
public string? HandledToLocationErpCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailHandledToLocationGroup")] |
|||
public string? HandledToLocationGroup { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailHandledToWarehouseCode")] |
|||
public string? HandledToWarehouseCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailItemCode")] |
|||
public string ItemCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailJobNumber")] |
|||
public string? JobNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailMaster")] |
|||
public StorePutawayNote Master { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailMasterId")] |
|||
public Guid MasterId { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailPoLine")] |
|||
public string? PoLine { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailPoNumber")] |
|||
public string? PoNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailProduceDate")] |
|||
public DateTime ProduceDate { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailQty")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailRecommendArriveDate")] |
|||
public DateTime RecommendArriveDate { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailRecommendContainerCode")] |
|||
public string? RecommendContainerCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailRecommendExpireDate")] |
|||
public DateTime RecommendExpireDate { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailRecommendLot")] |
|||
public string? RecommendLot { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailRecommendPackingCode")] |
|||
public string? RecommendPackingCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailRecommendProduceDate")] |
|||
public DateTime RecommendProduceDate { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailRecommendQty")] |
|||
public decimal RecommendQty { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailRecommendSupplierBatch")] |
|||
public string? RecommendSupplierBatch { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailRecommendToLocationArea")] |
|||
public string? RecommendToLocationArea { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailRecommendToLocationCode")] |
|||
public string? RecommendToLocationCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailRecommendToLocationErpCode")] |
|||
public string? RecommendToLocationErpCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailRecommendToLocationGroup")] |
|||
public string? RecommendToLocationGroup { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailRecommendToWarehouseCode")] |
|||
public string? RecommendToWarehouseCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailStdPackQty")] |
|||
public decimal StdPackQty { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailSupplierBatch")] |
|||
public string? SupplierBatch { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailToContainerCode")] |
|||
public string? ToContainerCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailToLocationArea")] |
|||
public string? ToLocationArea { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailToLocationCode")] |
|||
public string ToLocationCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailToLocationErpCode")] |
|||
public string ToLocationErpCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailToLocationGroup")] |
|||
public string? ToLocationGroup { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailToLot")] |
|||
public string? ToLot { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailToPackingCode")] |
|||
public string? ToPackingCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailToStatus")] |
|||
public string ToStatus { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailToWarehouseCode")] |
|||
public string ToWarehouseCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayNoteDetailUom")] |
|||
public string Uom { get; set; } |
|||
} |
@ -0,0 +1,329 @@ |
|||
$(function () { |
|||
|
|||
$("#StorePutawayNoteDetailFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StorePutawayNoteDetailCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StorePutawayNoteDetailFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StorePutawayNoteDetailFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storePutawayNoteDetail.storePutawayNoteDetail; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StorePutawayNoteDetail/StorePutawayNoteDetail/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StorePutawayNoteDetail/StorePutawayNoteDetail/EditModal'); |
|||
|
|||
var dataTable = $('#StorePutawayNoteDetailTable').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.StorePutawayNoteDetail.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StorePutawayNoteDetail.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StorePutawayNoteDetailDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailArriveDate'), |
|||
data: "arriveDate" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailExpireDate'), |
|||
data: "expireDate" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailFromContainerCode'), |
|||
data: "fromContainerCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailFromLocationArea'), |
|||
data: "fromLocationArea" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailFromLocationCode'), |
|||
data: "fromLocationCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailFromLocationErpCode'), |
|||
data: "fromLocationErpCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailFromLocationGroup'), |
|||
data: "fromLocationGroup" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailFromLot'), |
|||
data: "fromLot" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailFromPackingCode'), |
|||
data: "fromPackingCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailFromStatus'), |
|||
data: "fromStatus" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailFromWarehouseCode'), |
|||
data: "fromWarehouseCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailHandledArriveDate'), |
|||
data: "handledArriveDate" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailHandledContainerCode'), |
|||
data: "handledContainerCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailHandledExpireDate'), |
|||
data: "handledExpireDate" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailHandledLot'), |
|||
data: "handledLot" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailHandledPackingCode'), |
|||
data: "handledPackingCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailHandledProduceDate'), |
|||
data: "handledProduceDate" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailHandledQty'), |
|||
data: "handledQty" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailHandledSupplierBatch'), |
|||
data: "handledSupplierBatch" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailHandledToLocationArea'), |
|||
data: "handledToLocationArea" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailHandledToLocationCode'), |
|||
data: "handledToLocationCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailHandledToLocationErpCode'), |
|||
data: "handledToLocationErpCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailHandledToLocationGroup'), |
|||
data: "handledToLocationGroup" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailHandledToWarehouseCode'), |
|||
data: "handledToWarehouseCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailItemCode'), |
|||
data: "itemCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailItemDesc1'), |
|||
data: "itemDesc1" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailItemDesc2'), |
|||
data: "itemDesc2" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailItemName'), |
|||
data: "itemName" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailJobNumber'), |
|||
data: "jobNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailMaster'), |
|||
data: "master" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailMasterId'), |
|||
data: "masterId" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailPoLine'), |
|||
data: "poLine" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailPoNumber'), |
|||
data: "poNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailProduceDate'), |
|||
data: "produceDate" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailQty'), |
|||
data: "qty" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailRecommendArriveDate'), |
|||
data: "recommendArriveDate" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailRecommendContainerCode'), |
|||
data: "recommendContainerCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailRecommendExpireDate'), |
|||
data: "recommendExpireDate" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailRecommendLot'), |
|||
data: "recommendLot" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailRecommendPackingCode'), |
|||
data: "recommendPackingCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailRecommendProduceDate'), |
|||
data: "recommendProduceDate" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailRecommendQty'), |
|||
data: "recommendQty" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailRecommendSupplierBatch'), |
|||
data: "recommendSupplierBatch" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailRecommendToLocationArea'), |
|||
data: "recommendToLocationArea" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailRecommendToLocationCode'), |
|||
data: "recommendToLocationCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailRecommendToLocationErpCode'), |
|||
data: "recommendToLocationErpCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailRecommendToLocationGroup'), |
|||
data: "recommendToLocationGroup" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailRecommendToWarehouseCode'), |
|||
data: "recommendToWarehouseCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailStdPackQty'), |
|||
data: "stdPackQty" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailSupplierBatch'), |
|||
data: "supplierBatch" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailToContainerCode'), |
|||
data: "toContainerCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailToLocationArea'), |
|||
data: "toLocationArea" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailToLocationCode'), |
|||
data: "toLocationCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailToLocationErpCode'), |
|||
data: "toLocationErpCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailToLocationGroup'), |
|||
data: "toLocationGroup" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailToLot'), |
|||
data: "toLot" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailToPackingCode'), |
|||
data: "toPackingCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailToStatus'), |
|||
data: "toStatus" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailToWarehouseCode'), |
|||
data: "toWarehouseCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayNoteDetailUom'), |
|||
data: "uom" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStorePutawayNoteDetailButton').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.StorePutawayRequest.StorePutawayRequest.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStorePutawayRequest"].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.StorePutawayRequest; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePutawayRequest.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayRequest.StorePutawayRequest.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayRequest.StorePutawayRequest; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStorePutawayRequestViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStorePutawayRequestAppService _service; |
|||
|
|||
public CreateModalModel(IStorePutawayRequestAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStorePutawayRequestViewModel, CreateUpdateStorePutawayRequestDto>(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.StorePutawayRequest.StorePutawayRequest.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStorePutawayRequest"].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.StorePutawayRequest; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePutawayRequest.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayRequest.StorePutawayRequest.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayRequest.StorePutawayRequest; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStorePutawayRequestViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStorePutawayRequestAppService _service; |
|||
|
|||
public EditModalModel(IStorePutawayRequestAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StorePutawayRequestDto, CreateEditStorePutawayRequestViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStorePutawayRequestViewModel, CreateUpdateStorePutawayRequestDto>(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.StorePutawayRequest.StorePutawayRequest |
|||
@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["StorePutawayRequest"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StorePutawayRequest"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StorePutawayRequest; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StorePutawayRequest/StorePutawayRequest/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StorePutawayRequest/StorePutawayRequest/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StorePutawayRequest"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StorePutawayRequest.Create)) |
|||
{ |
|||
<abp-button id="NewStorePutawayRequestButton" |
|||
text="@L["CreateStorePutawayRequest"].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="StorePutawayRequestCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StorePutawayRequestFilter" id="StorePutawayRequestFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StorePutawayRequestCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StorePutawayRequestTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,107 @@ |
|||
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.StorePutawayRequest.StorePutawayRequest; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StorePutawayRequestFilterInput StorePutawayRequestFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StorePutawayRequestFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestActiveDate")] |
|||
public DateTime? ActiveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestAsnNumber")] |
|||
public string? AsnNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestAutoAgree")] |
|||
public bool? AutoAgree { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestAutoCompleteJob")] |
|||
public bool? AutoCompleteJob { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestAutoHandle")] |
|||
public bool? AutoHandle { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestAutoSubmit")] |
|||
public bool? AutoSubmit { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDirectCreateNote")] |
|||
public bool? DirectCreateNote { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestInspectNumber")] |
|||
public string? InspectNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestPoNumber")] |
|||
public string? PoNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestProductReceiptNumber")] |
|||
public string? ProductReceiptNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestPurchaseReceiptRequestNumber")] |
|||
public string? PurchaseReceiptRequestNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestPutawayMode")] |
|||
public string? PutawayMode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestReceiptNumber")] |
|||
public string? ReceiptNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestRequestNumber")] |
|||
public string? RequestNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestRequestStatus")] |
|||
public string? RequestStatus { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestRpNumber")] |
|||
public string? RpNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestStorePutawayRequestDetails")] |
|||
public ICollection<StorePutawayRequestDetail>? StorePutawayRequestDetails { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestSupplierCode")] |
|||
public string? SupplierCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestType")] |
|||
public string? Type { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestWorker")] |
|||
public string? Worker { get; set; } |
|||
} |
@ -0,0 +1,73 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayRequest.StorePutawayRequest.ViewModels; |
|||
|
|||
public class CreateEditStorePutawayRequestViewModel |
|||
{ |
|||
[Display(Name = "StorePutawayRequestActiveDate")] |
|||
public DateTime ActiveDate { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestAsnNumber")] |
|||
public string? AsnNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestAutoAgree")] |
|||
public bool AutoAgree { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestAutoCompleteJob")] |
|||
public bool AutoCompleteJob { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestAutoHandle")] |
|||
public bool AutoHandle { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestAutoSubmit")] |
|||
public bool AutoSubmit { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDirectCreateNote")] |
|||
public bool DirectCreateNote { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestInspectNumber")] |
|||
public string? InspectNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestPoNumber")] |
|||
public string? PoNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestProductReceiptNumber")] |
|||
public string? ProductReceiptNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestPurchaseReceiptRequestNumber")] |
|||
public string? PurchaseReceiptRequestNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestPutawayMode")] |
|||
public string PutawayMode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestReceiptNumber")] |
|||
public string? ReceiptNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestRequestNumber")] |
|||
public string? RequestNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestRequestStatus")] |
|||
public string RequestStatus { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestRpNumber")] |
|||
public string? RpNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestStorePutawayRequestDetails")] |
|||
public ICollection<StorePutawayRequestDetail> StorePutawayRequestDetails { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestSupplierCode")] |
|||
public string? SupplierCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestType")] |
|||
public string Type { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestWorker")] |
|||
public string? Worker { get; set; } |
|||
} |
@ -0,0 +1,169 @@ |
|||
$(function () { |
|||
|
|||
$("#StorePutawayRequestFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StorePutawayRequestCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StorePutawayRequestFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StorePutawayRequestFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storePutawayRequest.storePutawayRequest; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StorePutawayRequest/StorePutawayRequest/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StorePutawayRequest/StorePutawayRequest/EditModal'); |
|||
|
|||
var dataTable = $('#StorePutawayRequestTable').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.StorePutawayRequest.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StorePutawayRequest.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StorePutawayRequestDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestActiveDate'), |
|||
data: "activeDate" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestAsnNumber'), |
|||
data: "asnNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestAutoAgree'), |
|||
data: "autoAgree" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestAutoCompleteJob'), |
|||
data: "autoCompleteJob" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestAutoHandle'), |
|||
data: "autoHandle" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestAutoSubmit'), |
|||
data: "autoSubmit" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDirectCreateNote'), |
|||
data: "directCreateNote" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestInspectNumber'), |
|||
data: "inspectNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestPoNumber'), |
|||
data: "poNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestProductReceiptNumber'), |
|||
data: "productReceiptNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestPurchaseReceiptRequestNumber'), |
|||
data: "purchaseReceiptRequestNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestPutawayMode'), |
|||
data: "putawayMode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestReceiptNumber'), |
|||
data: "receiptNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestRequestNumber'), |
|||
data: "requestNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestRequestStatus'), |
|||
data: "requestStatus" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestRpNumber'), |
|||
data: "rpNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestStorePutawayRequestDetails'), |
|||
data: "storePutawayRequestDetails" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestSupplierCode'), |
|||
data: "supplierCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestType'), |
|||
data: "type" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestWorker'), |
|||
data: "worker" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStorePutawayRequestButton').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.StorePutawayRequestDetail.StorePutawayRequestDetail.CreateModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="CreateModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["CreateStorePutawayRequestDetail"].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.StorePutawayRequestDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePutawayRequestDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayRequestDetail.StorePutawayRequestDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayRequestDetail.StorePutawayRequestDetail; |
|||
|
|||
public class CreateModalModel : WmsPageModel |
|||
{ |
|||
[BindProperty] |
|||
public CreateEditStorePutawayRequestDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStorePutawayRequestDetailAppService _service; |
|||
|
|||
public CreateModalModel(IStorePutawayRequestDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStorePutawayRequestDetailViewModel, CreateUpdateStorePutawayRequestDetailDto>(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.StorePutawayRequestDetail.StorePutawayRequestDetail.EditModalModel |
|||
@{ |
|||
Layout = null; |
|||
} |
|||
<abp-dynamic-form abp-model="ViewModel" data-ajaxForm="true" asp-page="EditModal"> |
|||
<abp-modal> |
|||
<abp-modal-header title="@L["EditStorePutawayRequestDetail"].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.StorePutawayRequestDetail; |
|||
using WinIn.FasterZ.Wms.Z_Business.StorePutawayRequestDetail.Dtos; |
|||
using WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayRequestDetail.StorePutawayRequestDetail.ViewModels; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayRequestDetail.StorePutawayRequestDetail; |
|||
|
|||
public class EditModalModel : WmsPageModel |
|||
{ |
|||
[HiddenInput] |
|||
[BindProperty(SupportsGet = true)] |
|||
public Guid Id { get; set; } |
|||
|
|||
[BindProperty] |
|||
public CreateEditStorePutawayRequestDetailViewModel ViewModel { get; set; } |
|||
|
|||
private readonly IStorePutawayRequestDetailAppService _service; |
|||
|
|||
public EditModalModel(IStorePutawayRequestDetailAppService service) |
|||
{ |
|||
_service = service; |
|||
} |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
var dto = await _service.GetAsync(Id); |
|||
ViewModel = ObjectMapper.Map<StorePutawayRequestDetailDto, CreateEditStorePutawayRequestDetailViewModel>(dto); |
|||
} |
|||
|
|||
public virtual async Task<IActionResult> OnPostAsync() |
|||
{ |
|||
var dto = ObjectMapper.Map<CreateEditStorePutawayRequestDetailViewModel, CreateUpdateStorePutawayRequestDetailDto>(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.StorePutawayRequestDetail.StorePutawayRequestDetail |
|||
@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["StorePutawayRequestDetail"].Value; |
|||
PageLayout.Content.BreadCrumb.Add(L["Menu:StorePutawayRequestDetail"].Value); |
|||
PageLayout.Content.MenuItemName = WmsMenus.StorePutawayRequestDetail; |
|||
} |
|||
|
|||
@section scripts |
|||
{ |
|||
<abp-script src="/Pages/Z_Business/StorePutawayRequestDetail/StorePutawayRequestDetail/index.js" /> |
|||
} |
|||
@section styles |
|||
{ |
|||
<abp-style src="/Pages/Z_Business/StorePutawayRequestDetail/StorePutawayRequestDetail/index.css"/> |
|||
} |
|||
|
|||
<abp-card> |
|||
<abp-card-header> |
|||
<abp-row> |
|||
<abp-column size-md="_6"> |
|||
<abp-card-title>@L["StorePutawayRequestDetail"]</abp-card-title> |
|||
</abp-column> |
|||
<abp-column size-md="_6" class="text-end"> |
|||
@if (await Authorization.IsGrantedAsync(WmsPermissions.StorePutawayRequestDetail.Create)) |
|||
{ |
|||
<abp-button id="NewStorePutawayRequestDetailButton" |
|||
text="@L["CreateStorePutawayRequestDetail"].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="StorePutawayRequestDetailCollapse" class="text-secondary">@L["TableFilter"] </a> |
|||
</abp-row> |
|||
<abp-dynamic-form abp-model="StorePutawayRequestDetailFilter" id="StorePutawayRequestDetailFilter" required-symbols="false" column-size="_3"> |
|||
<abp-collapse-body id="StorePutawayRequestDetailCollapse"> |
|||
<abp-form-content /> |
|||
</abp-collapse-body> |
|||
</abp-dynamic-form> |
|||
<hr /> |
|||
<abp-table striped-rows="true" id="StorePutawayRequestDetailTable" class="nowrap"/> |
|||
</abp-card-body> |
|||
</abp-card> |
@ -0,0 +1,163 @@ |
|||
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.StorePutawayRequestDetail.StorePutawayRequestDetail; |
|||
|
|||
public class IndexModel : WmsPageModel |
|||
{ |
|||
public StorePutawayRequestDetailFilterInput StorePutawayRequestDetailFilter { get; set; } |
|||
|
|||
public virtual async Task OnGetAsync() |
|||
{ |
|||
await Task.CompletedTask; |
|||
} |
|||
} |
|||
|
|||
public class StorePutawayRequestDetailFilterInput |
|||
{ |
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailArriveDate")] |
|||
public DateTime? ArriveDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailExpireDate")] |
|||
public DateTime? ExpireDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailFromContainerCode")] |
|||
public string? FromContainerCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailFromLocationArea")] |
|||
public string? FromLocationArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailFromLocationCode")] |
|||
public string? FromLocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailFromLocationErpCode")] |
|||
public string? FromLocationErpCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailFromLocationGroup")] |
|||
public string? FromLocationGroup { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailFromLot")] |
|||
public string? FromLot { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailFromPackingCode")] |
|||
public string? FromPackingCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailFromStatus")] |
|||
public string? FromStatus { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailFromWarehouseCode")] |
|||
public string? FromWarehouseCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailInventoryQty")] |
|||
public decimal? InventoryQty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailItemCode")] |
|||
public string? ItemCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailMaster")] |
|||
public StorePutawayRequest? Master { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailMasterId")] |
|||
public Guid? MasterId { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailNumber")] |
|||
public string? Number { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailPoLine")] |
|||
public string? PoLine { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailPoNumber")] |
|||
public string? PoNumber { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailProduceDate")] |
|||
public DateTime? ProduceDate { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailQty")] |
|||
public decimal? Qty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailStdPackQty")] |
|||
public decimal? StdPackQty { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailSupplierBatch")] |
|||
public string? SupplierBatch { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailToContainerCode")] |
|||
public string? ToContainerCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailToLocationArea")] |
|||
public string? ToLocationArea { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailToLocationCode")] |
|||
public string? ToLocationCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailToLocationErpCode")] |
|||
public string? ToLocationErpCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailToLocationGroup")] |
|||
public string? ToLocationGroup { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailToLot")] |
|||
public string? ToLot { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailToPackingCode")] |
|||
public string? ToPackingCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailToStatus")] |
|||
public string? ToStatus { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailToWarehouseCode")] |
|||
public string? ToWarehouseCode { get; set; } |
|||
|
|||
[FormControlSize(AbpFormControlSize.Small)] |
|||
[Display(Name = "StorePutawayRequestDetailUom")] |
|||
public string? Uom { get; set; } |
|||
} |
@ -0,0 +1,115 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace WinIn.FasterZ.Wms.Web.Pages.Z_Business.StorePutawayRequestDetail.StorePutawayRequestDetail.ViewModels; |
|||
|
|||
public class CreateEditStorePutawayRequestDetailViewModel |
|||
{ |
|||
[Display(Name = "StorePutawayRequestDetailArriveDate")] |
|||
public DateTime ArriveDate { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailExpireDate")] |
|||
public DateTime ExpireDate { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailFromContainerCode")] |
|||
public string? FromContainerCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailFromLocationArea")] |
|||
public string? FromLocationArea { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailFromLocationCode")] |
|||
public string FromLocationCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailFromLocationErpCode")] |
|||
public string FromLocationErpCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailFromLocationGroup")] |
|||
public string? FromLocationGroup { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailFromLot")] |
|||
public string? FromLot { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailFromPackingCode")] |
|||
public string? FromPackingCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailFromStatus")] |
|||
public string FromStatus { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailFromWarehouseCode")] |
|||
public string FromWarehouseCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailInventoryQty")] |
|||
public decimal InventoryQty { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailItemCode")] |
|||
public string ItemCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailItemDesc1")] |
|||
public string? ItemDesc1 { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailItemDesc2")] |
|||
public string? ItemDesc2 { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailItemName")] |
|||
public string? ItemName { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailMaster")] |
|||
public StorePutawayRequest Master { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailMasterId")] |
|||
public Guid MasterId { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailNumber")] |
|||
public string Number { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailPoLine")] |
|||
public string? PoLine { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailPoNumber")] |
|||
public string? PoNumber { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailProduceDate")] |
|||
public DateTime ProduceDate { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailQty")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailRemark")] |
|||
public string? Remark { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailStdPackQty")] |
|||
public decimal StdPackQty { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailSupplierBatch")] |
|||
public string? SupplierBatch { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailToContainerCode")] |
|||
public string? ToContainerCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailToLocationArea")] |
|||
public string? ToLocationArea { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailToLocationCode")] |
|||
public string ToLocationCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailToLocationErpCode")] |
|||
public string ToLocationErpCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailToLocationGroup")] |
|||
public string? ToLocationGroup { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailToLot")] |
|||
public string? ToLot { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailToPackingCode")] |
|||
public string? ToPackingCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailToStatus")] |
|||
public string ToStatus { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailToWarehouseCode")] |
|||
public string ToWarehouseCode { get; set; } |
|||
|
|||
[Display(Name = "StorePutawayRequestDetailUom")] |
|||
public string Uom { get; set; } |
|||
} |
@ -0,0 +1,225 @@ |
|||
$(function () { |
|||
|
|||
$("#StorePutawayRequestDetailFilter :input").on('input', function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
//After abp v7.2 use dynamicForm 'column-size' instead of the following settings
|
|||
//$('#StorePutawayRequestDetailCollapse div').addClass('col-sm-3').parent().addClass('row');
|
|||
|
|||
var getFilter = function () { |
|||
var input = {}; |
|||
$("#StorePutawayRequestDetailFilter") |
|||
.serializeArray() |
|||
.forEach(function (data) { |
|||
if (data.value != '') { |
|||
input[abp.utils.toCamelCase(data.name.replace(/StorePutawayRequestDetailFilter./g, ''))] = data.value; |
|||
} |
|||
}) |
|||
return input; |
|||
}; |
|||
|
|||
var l = abp.localization.getResource('Wms'); |
|||
|
|||
var service = winIn.fasterZ.wms.z_Business.storePutawayRequestDetail.storePutawayRequestDetail; |
|||
var createModal = new abp.ModalManager(abp.appPath + 'Z_Business/StorePutawayRequestDetail/StorePutawayRequestDetail/CreateModal'); |
|||
var editModal = new abp.ModalManager(abp.appPath + 'Z_Business/StorePutawayRequestDetail/StorePutawayRequestDetail/EditModal'); |
|||
|
|||
var dataTable = $('#StorePutawayRequestDetailTable').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.StorePutawayRequestDetail.Update'), |
|||
action: function (data) { |
|||
editModal.open({ id: data.record.id }); |
|||
} |
|||
}, |
|||
{ |
|||
text: l('Delete'), |
|||
visible: abp.auth.isGranted('Wms.StorePutawayRequestDetail.Delete'), |
|||
confirmMessage: function (data) { |
|||
return l('StorePutawayRequestDetailDeletionConfirmationMessage', data.record.id); |
|||
}, |
|||
action: function (data) { |
|||
service.delete(data.record.id) |
|||
.then(function () { |
|||
abp.notify.info(l('SuccessfullyDeleted')); |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailArriveDate'), |
|||
data: "arriveDate" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailExpireDate'), |
|||
data: "expireDate" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailFromContainerCode'), |
|||
data: "fromContainerCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailFromLocationArea'), |
|||
data: "fromLocationArea" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailFromLocationCode'), |
|||
data: "fromLocationCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailFromLocationErpCode'), |
|||
data: "fromLocationErpCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailFromLocationGroup'), |
|||
data: "fromLocationGroup" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailFromLot'), |
|||
data: "fromLot" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailFromPackingCode'), |
|||
data: "fromPackingCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailFromStatus'), |
|||
data: "fromStatus" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailFromWarehouseCode'), |
|||
data: "fromWarehouseCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailInventoryQty'), |
|||
data: "inventoryQty" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailItemCode'), |
|||
data: "itemCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailItemDesc1'), |
|||
data: "itemDesc1" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailItemDesc2'), |
|||
data: "itemDesc2" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailItemName'), |
|||
data: "itemName" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailMaster'), |
|||
data: "master" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailMasterId'), |
|||
data: "masterId" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailNumber'), |
|||
data: "number" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailPoLine'), |
|||
data: "poLine" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailPoNumber'), |
|||
data: "poNumber" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailProduceDate'), |
|||
data: "produceDate" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailQty'), |
|||
data: "qty" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailRemark'), |
|||
data: "remark" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailStdPackQty'), |
|||
data: "stdPackQty" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailSupplierBatch'), |
|||
data: "supplierBatch" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailToContainerCode'), |
|||
data: "toContainerCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailToLocationArea'), |
|||
data: "toLocationArea" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailToLocationCode'), |
|||
data: "toLocationCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailToLocationErpCode'), |
|||
data: "toLocationErpCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailToLocationGroup'), |
|||
data: "toLocationGroup" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailToLot'), |
|||
data: "toLot" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailToPackingCode'), |
|||
data: "toPackingCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailToStatus'), |
|||
data: "toStatus" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailToWarehouseCode'), |
|||
data: "toWarehouseCode" |
|||
}, |
|||
{ |
|||
title: l('StorePutawayRequestDetailUom'), |
|||
data: "uom" |
|||
}, |
|||
] |
|||
})); |
|||
|
|||
createModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
editModal.onResult(function () { |
|||
dataTable.ajax.reload(); |
|||
}); |
|||
|
|||
$('#NewStorePutawayRequestDetailButton').click(function (e) { |
|||
e.preventDefault(); |
|||
createModal.open(); |
|||
}); |
|||
}); |
Loading…
Reference in new issue