赖素文
authored
|
1
|
using Hh.Mes.Common.Request;
|
赖素文
authored
|
2
|
using Hh.Mes.POJO.Entity;
|
赖素文
authored
|
3
|
using Hh.Mes.Service;
|
赖素文
authored
|
4
|
using Hh.Mes.Service.Configure;
|
赖素文
authored
|
5
6
7
8
|
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Hh.Mes.Service.SystemAuth;
using WebMvc.Aop;
|
赖素文
authored
|
9
10
|
using Hh.Mes.POJO.WebEntity.bus;
using NPOI.POIFS.FileSystem;
|
赖素文
authored
|
11
|
|
赖素文
authored
|
12
|
namespace WebMvc.Areas.Configure.Controllers
|
赖素文
authored
|
13
|
{
|
赖素文
authored
|
14
15
16
17
18
|
/// <summary>
/// sn项目信息头表 WMS推送
/// </summary>
[Area("configure")]
public class BusSnProjectInfoWmsController : BaseController
|
赖素文
authored
|
19
|
{
|
赖素文
authored
|
20
21
|
private readonly BusSnProjectInfoWmsService _service;
protected readonly IWebHostEnvironment hostingEnvironment;
|
赖素文
authored
|
22
|
|
赖素文
authored
|
23
|
public BusSnProjectInfoWmsController(IAuth authUtil, BusSnProjectInfoWmsService service) : base(authUtil)
|
赖素文
authored
|
24
25
|
{
_service = service;
|
赖素文
authored
|
26
|
if (_loginInfo != null)_service.sysWebUser = _loginInfo;
|
赖素文
authored
|
27
28
29
30
31
32
33
34
35
36
37
|
}
#region 视图功能
/// <summary>
/// 默认视图Action
/// </summary>
/// <returns></returns>
[Authenticate]
[ServiceFilter(typeof(OperLogFilter))]
public ActionResult Index()
{
|
唐召明
authored
|
38
|
if (_loginInfo == null) return Redirect("/Login/Index");
|
赖素文
authored
|
39
40
41
42
43
44
45
46
47
48
49
50
51
|
return View();
}
#endregion
#region 数据操作
/// <summary>
/// 加载及分页查询
/// </summary>
/// <param name="pageRequest">表单请求信息</param>
/// <param name="entity">请求条件实例</param>
/// <returns></returns>
[HttpPost]
|
赖素文
authored
|
52
|
public string Load(PageReq pageRequest, bus_sn_project_info_wms_head entity)
|
赖素文
authored
|
53
54
55
56
57
58
59
60
61
62
63
|
{
return Serialize(_service.Load(pageRequest, entity));
}
/// <summary>
/// 新增数据
/// </summary>
/// <param name="entity">新增实例</param>
/// <returns></returns>
[HttpPost]
[ServiceFilter(typeof(OperLogFilter))]
|
赖素文
authored
|
64
|
public string Ins(bus_sn_project_info_wms_head entity)
|
赖素文
authored
|
65
66
67
68
69
70
71
72
73
74
75
|
{
return Serialize(_service.Ins(entity));
}
/// <summary>
/// 修改数据
/// </summary>
/// <param name="entity">修改实例</param>
/// <returns></returns>
[HttpPost]
[ServiceFilter(typeof(OperLogFilter))]
|
赖素文
authored
|
76
|
public string Upd(bus_sn_project_info_wms_head entity)
|
赖素文
authored
|
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
{
return Serialize(_service.Upd(entity));
}
/// <summary>
/// 删除数据
/// </summary>
/// <param name="ids"></param>
/// <returns></returns>
[HttpPost]
[ServiceFilter(typeof(OperLogFilter))]
public string DelByIds(int[] ids)
{
return Serialize(_service.DelByIds(ids));
}
#endregion
|
赖素文
authored
|
93
94
95
96
97
98
99
100
101
102
|
/// <summary>
/// //获取明细列表 支持导出查询
/// </summary>
public string LoadDesc(PageReq pageReq, bus_sn_project_info_wms_detail model)
{
return Serialize(_service.LoadDesc(pageReq,model));
}
|
赖素文
authored
|
103
104
105
106
107
108
109
|
#region 导出数据
/// <summary>
/// 导出数据
/// </summary>
/// <param name="entity">请求条件实例</param>
/// <returns></returns>
[HttpPost]
|
赖素文
authored
|
110
|
public string Export(bus_sn_project_info_wms_head entity)
|
赖素文
authored
|
111
112
113
114
115
116
117
118
119
120
|
{
return Serialize(_service.ExportData(entity));
}
#endregion
#region 自定义方法
#endregion
}
}
|