Browse Source

新增上传限制

zhuyiyi 1 week ago
parent
commit
75a672d862
1 changed files with 9 additions and 1 deletions
  1. 9 1
      uploadFile.aspx.cs

+ 9 - 1
uploadFile.aspx.cs

@@ -221,7 +221,15 @@ public partial class uploadFile : System.Web.UI.Page
                         conErc("只允许上传zip和cdr文件!");
                         return;
                     }
-
+                    CeErpTrade ceErpTrade = CeErpTrade.Get(entity.tid);
+                    if (ceErpTrade != null)
+                    {
+                        if (ceErpTrade.receiver_state.Contains("台湾") && string.IsNullOrEmpty(ceErpTrade.receiver_zip))
+                        {
+                            conErc("台湾客户需填写身份证号!");
+                            return;
+                        }
+                    }
 
                     if (entity.OrderState != 5)
                     {