Browse Source

不用绑定权限 可以看任何供应商价格

master
qian 3 months ago
parent
commit
d5df8ff9d0
  1. 6
      北京北汽/Controller/SCP_DC_UNI_CONTROLLER.cs
  2. 6
      北京北汽/SCP/Views/BasicData/Price.aspx.cs

6
北京北汽/Controller/SCP_DC_UNI_CONTROLLER.cs

@ -517,7 +517,7 @@ namespace CK.SCP.Controller
ResultObject<List<LogModel>> result = new ResultObject<List<LogModel>>(); ResultObject<List<LogModel>> result = new ResultObject<List<LogModel>>();
List<LogModel> _msglist = new List<LogModel>(); List<LogModel> _msglist = new List<LogModel>();
using (var scope = using (var scope =
new TransactionScope(TransactionScopeOption.Required, new TransactionOptions() new TransactionScope(TransactionScopeOption.Suppress, new TransactionOptions()
{ {
IsolationLevel = System.Transactions.IsolationLevel.Serializable, IsolationLevel = System.Transactions.IsolationLevel.Serializable,
Timeout = new TimeSpan(0, 20, 0) Timeout = new TimeSpan(0, 20, 0)
@ -527,8 +527,8 @@ namespace CK.SCP.Controller
{ {
ScpEntities scpdb = EntitiesFactory.CreateScpInstance(); ScpEntities scpdb = EntitiesFactory.CreateScpInstance();
ExchangeCenterContext db = EntitiesFactory.CreateExchangeCenterInstance(); ExchangeCenterContext db = EntitiesFactory.CreateExchangeCenterInstance();
var _list = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "CDBMPT").OrderBy(p => p.UID).ToList(); var _list = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "CQBMPT").OrderBy(p => p.UID).ToList();
var _list1 = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "CDBMPT" && p.InterfaceType == "Price").OrderBy(p => p.UID).ToList(); var _list1 = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "CQBMPT" && p.InterfaceType == "Price").OrderBy(p => p.UID).ToList();
var apiii = _list1.Count(); var apiii = _list1.Count();
if (apiii > 0) if (apiii > 0)

6
北京北汽/SCP/Views/BasicData/Price.aspx.cs

@ -217,11 +217,7 @@ namespace SCP.BasicData
} }
_entity.UserInAddress = CurrentUser.FactoryList; _entity.UserInAddress = CurrentUser.FactoryList;
_entity.UserInVendIds = CurrentUser.VenderList; _entity.UserInVendIds = CurrentUser.VenderList;
if (CurrentUser.VenderList.Count() == 0)
{
Alert.Show("请绑定供应商后进行操作");
return;
}
//_entity.UserInSubSite = CurrentUser.SubSiteList; //_entity.UserInSubSite = CurrentUser.SubSiteList;
if (CurrentUser.RoleList.Contains("供应商") && CurrentUser.VenderList.Count == 0) if (CurrentUser.RoleList.Contains("供应商") && CurrentUser.VenderList.Count == 0)
{ {

Loading…
Cancel
Save