| | |
| | | using Model.ModelDto.LogDto; |
| | | using Utility; |
| | | using Model.ModelVm.LogVm; |
| | | using System.Diagnostics; |
| | | |
| | | namespace Wms.Controllers |
| | | { |
| | |
| | | /// <param name="department">部门</param> |
| | | /// <param name="setting">功能设定</param> |
| | | /// <param name="operation">操作日志</param> |
| | | public BasisController(ICustomerServer customerSvc, ILogisticsInfoServer logisticsSvc, IUserInforServer userInforServer, IRolesServer rolesServer, IRoleRightServer roleRightServer, IRBACServer rBACServer, IUnitServer unitSvc, IPackagServer packagServer, IMaterialsServer mate, IDepartmentServer department, IFunSettingServer setting, IInterfaceServer interfaceS, IOperationSysServer operation, UserManager userManager) |
| | | public BasisController(ICustomerServer customerSvc, ILogisticsInfoServer logisticsSvc, IUserInforServer userInforServer, |
| | | IRolesServer rolesServer, IRoleRightServer roleRightServer, IRBACServer rBACServer, IUnitServer unitSvc, |
| | | IPackagServer packagServer, IMaterialsServer mate, IDepartmentServer department, IFunSettingServer setting, |
| | | IInterfaceServer interfaceS, IOperationSysServer operation, UserManager userManager) |
| | | { |
| | | _customerSvc = customerSvc;//客户Svc |
| | | _logisticsSvc = logisticsSvc;//物流Svc |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [ServiceFilter(typeof(ApiResponseActionFilter))] |
| | | public async Task<List<FunctionMenuDto>> GetRBACLists(int id) |
| | | { |
| | | return await _rBACServer.GetMenuByroleIdNew(id); |
| | |
| | | [HttpGet] |
| | | public async Task<List<RoleRightDto>> GetRoleRightList() |
| | | { |
| | | return await _roleRightServer.GetRoleMenuList(); |
| | | Stopwatch stopwatch = new Stopwatch(); |
| | | stopwatch.Start(); |
| | | var model = await _roleRightServer.GetRoleMenuList(); |
| | | stopwatch.Stop(); |
| | | |
| | | var time = stopwatch.ElapsedMilliseconds; |
| | | return model; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | public async Task DelLogisticsInfo(IdVm model) |
| | | { |
| | | await _logisticsSvc.DelLogisticsInfo(model.Id, _userManager.UserId); |
| | | SysLogisticsInfo logisit = await _logisticsSvc.GetLogisticsInfo(model.Id); |
| | | SysLogisticsInfo logisit = await _logisticsSvc.GetLogisticsDelInfo(model.Id); |
| | | await _operation.InsertOperation("基础信息", "物流管理", logisit.CarrierName, "删除", "删除物流信息 公司名称:" + logisit.CarrierName, _userManager.UserId); |
| | | } |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [ServiceFilter(typeof(ApiResponseActionFilter))] |
| | | public async Task<SqlSugarPagedList> GetSysOperationList(GetOperationVm model) |
| | | { |
| | | return await _operation.GetSysOperationList(model); |
| | |
| | | /// <param name="dicName">字典名称</param> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [ServiceFilter(typeof(ApiResponseActionFilter))] |
| | | public async Task<List<SysDictionary>> GetDicTypeList(string dicName) |
| | | { |
| | | return await _operation.GetDicTypeList(dicName); |