diff --git a/SCP/Admin/default.aspx.cs b/SCP/Admin/default.aspx.cs index a0280b3..9abdb72 100644 --- a/SCP/Admin/default.aspx.cs +++ b/SCP/Admin/default.aspx.cs @@ -52,10 +52,12 @@ namespace SCP.admin //同时发给自己的信息里,只能看到供应商的名称是自己名字,不能有其它供应商名字 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) => { if (ret.State == ReturnStatus.Succeed) @@ -65,6 +67,9 @@ namespace SCP.admin }); } } + + + //string name = GetIdentityName(); //User modelUsers = DB.Users.FirstOrDefault(p => p.Name == name);