|
|
@@ -194,7 +194,7 @@ namespace SiteCore.Handler
|
|
|
|
|
|
if (poscode != "wxDesigner" && poscode != "Designer" && poscode != "DesignerMr" && poscode != "wxDesignerMr" && poscode != "SysAdmin")
|
|
|
{
|
|
|
- string usershop = CurrentUser.User.pemShop;
|
|
|
+ string usershop = "0," + CurrentUser.User.pemShop;
|
|
|
lw.Add(string.Format("ShopId in ({0})", usershop));
|
|
|
}
|
|
|
}
|
|
|
@@ -207,7 +207,7 @@ namespace SiteCore.Handler
|
|
|
|
|
|
if (PKey != "admin" && poscode != "SysAdmin")
|
|
|
{
|
|
|
- string usershop = CurrentUser.User.pemShop;
|
|
|
+ string usershop = "0," + CurrentUser.User.pemShop;
|
|
|
lw.Add(string.Format("ShopId in ({0})", usershop));
|
|
|
paramsCount++;
|
|
|
}
|
|
|
@@ -2066,7 +2066,7 @@ namespace SiteCore.Handler
|
|
|
entitycell.StartDesignTime = entitycell.pay_time;
|
|
|
entitycell.DesignUserId = 218;
|
|
|
}
|
|
|
- if (addFrom == "1" && (shopId != 34 && shopId != 96 && shopId != 95 && shopId != 94 && shopId != 114))
|
|
|
+ if (addFrom == "1" && (shopId != 34 && shopId != 96 && shopId != 95 && shopId != 94 && shopId != 114 && shopId != 158))
|
|
|
{
|
|
|
entitycell.OrderState = -1;//修改12-5
|
|
|
CeWithdraw ceWithdraw = new CeWithdraw();
|
|
|
@@ -2613,10 +2613,11 @@ namespace SiteCore.Handler
|
|
|
{
|
|
|
//apiDesign.API_GetPrintData_CreateOrder(entity);
|
|
|
}
|
|
|
+ List<int> shopIds = new List<int>() { 17, 21, 52, 54, 64, 63, 66, 49, 67, 105, 35, 57, 53, 65, 87, 140, 26, 45, 2, 77, 122, 121, 153, 154, 158 };
|
|
|
if (userid == 3542 && entity.seller_memo != "")
|
|
|
{
|
|
|
string userPost = CurrentUser.UserPost.Post.Code;
|
|
|
- if (CurrentUser.UserID == 73)
|
|
|
+ if (CurrentUser.UserID == 73 || shopIds.Contains(entity.ShopId))
|
|
|
{
|
|
|
userPost = "SysAdmin";
|
|
|
}
|
|
|
@@ -11104,8 +11105,6 @@ namespace SiteCore.Handler
|
|
|
public void upd_supplier_audit()
|
|
|
{
|
|
|
|
|
|
-
|
|
|
-
|
|
|
if (UrlPostParmsCheck("ctid"))
|
|
|
{
|
|
|
string eid = GetPostString("ctid");
|
|
|
@@ -14263,6 +14262,7 @@ namespace SiteCore.Handler
|
|
|
{
|
|
|
ceErpTradeCellExtend.Create();
|
|
|
}
|
|
|
+ designHelper.API_sendTempInfo(ctid, tempId);
|
|
|
LogHelper.addLog(ceErpTradeCellExtend.ctid, CurrentUser.UserID, "修改模板id" + tempId, 6);
|
|
|
returnSuccessMsg("保存成功");
|
|
|
return;
|