新增循环测试

This commit is contained in:
zgf committed 2023-08-18 10:26:38 +08:00
1 parent f4505ff18d
commit 028d206936
21 files changed
+619 -50

No files matched your search

@@ -0,0 +1,48 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Mvc;
using WalkingTec.Mvvm.Core.Extensions;
using HHWMS.Web;
using HHWMS.Web.Models;
namespace HHWMS.Web.Controllers
{
[Area("receipt")]
[ActionDescription("入库单操作")]
public partial class ReceiptInController : BaseController
{
private readonly IUnitWork _unitwork;
public ReceiptInController(IUnitWork unitwork)
{
_unitwork = unitwork;
}
#region Search
[ActionDescription("Sys.Search")]
public ActionResult Index()
{
var vm = Wtm.CreateVM<ReceiptInListVM>();
return PartialView(vm);
}
[ActionDescription("Sys.Search")]
[HttpPost]
public string Search(ReceiptInSearcher searcher)
{
var vm = Wtm.CreateVM<ReceiptInListVM>(passInit: true);
if (ModelState.IsValid)
{
vm.Searcher = searcher;
return vm.GetJson(false);
}
else
{
return vm.GetError();
}
}
#endregion
}
}