Browse Source

提交

master
学 赵 4 years ago
parent
commit
7b8c8c3830
  1. 9
      SCP/Admin/default.aspx.cs

9
SCP/Admin/default.aspx.cs

@ -52,10 +52,12 @@ namespace SCP.admin
//同时发给自己的信息里,只能看到供应商的名称是自己名字,不能有其它供应商名字 //同时发给自己的信息里,只能看到供应商的名称是自己名字,不能有其它供应商名字
if (CurrentUser.RoleList.Contains("供应商") && !CurrentUser.RoleList.Contains("采购人员") && !CurrentUser.RoleList.Contains("计划人员") ) if (CurrentUser.RoleList.Contains("供应商") && !CurrentUser.RoleList.Contains("采购人员") && !CurrentUser.RoleList.Contains("计划人员") )
{ {
if (CurrentUser.UsedDomain == "BJINTIER") if (CurrentUser.VenderList.Count > 0)
{ {
if (!string.IsNullOrEmpty(_info.SupplierCode))
if (!string.IsNullOrEmpty(CurrentUser.VenderList.FirstOrDefault()))
{ {
_info.SupplierCode = CurrentUser.VenderList.FirstOrDefault();
SCP_INFO_CONTROLLER.Get_V_INFO_List(_info, (ret) => SCP_INFO_CONTROLLER.Get_V_INFO_List(_info, (ret) =>
{ {
if (ret.State == ReturnStatus.Succeed) if (ret.State == ReturnStatus.Succeed)
@ -65,6 +67,9 @@ namespace SCP.admin
}); });
} }
} }
//string name = GetIdentityName(); //string name = GetIdentityName();
//User modelUsers = DB.Users.FirstOrDefault(p => p.Name == name); //User modelUsers = DB.Users.FirstOrDefault(p => p.Name == name);

Loading…
Cancel
Save