入库操作页面测试
This commit is contained in:
1 parent
028d206936
commit
85a2ad05c3
4 files changed
+141
-113
No files matched your search
@@ -6,6 +6,8 @@ using WalkingTec.Mvvm.Mvc;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web;
|
||||
using HHWMS.Web.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Linq;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
@@ -28,18 +30,26 @@ namespace HHWMS.Web.Controllers
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
[HttpPost]
|
||||
public string Search(ReceiptInSearcher searcher)
|
||||
public string Search(ReceiptDetailListVM vm)
|
||||
{
|
||||
var vm = Wtm.CreateVM<ReceiptInListVM>(passInit: true);
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
vm.Searcher = searcher;
|
||||
return vm.GetJson(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
return vm.GetError();
|
||||
}
|
||||
vm.Searcher.Page = vm.FC.GetValue<int>("Page");
|
||||
vm.Searcher.Limit = vm.FC.GetValue<int>("Limit");
|
||||
vm.Searcher.ReceiptHeaderId = vm.FC.GetValue<int>("Code");
|
||||
return vm.GetJson(false);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult<dynamic> SelectReceipt(string Code)
|
||||
{
|
||||
var data = _unitwork.Find<ReceiptHeader>(x => x.Code == Code).Include(x => x.ReceiptDetails).FirstOrDefault();
|
||||
var result = data.ReceiptDetails;
|
||||
return JsonMore(result);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public IActionResult Test(string Code, string code2, string code3, string code4)
|
||||
{
|
||||
return FFResult().Message("success");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in new issue
Block a user