MultiuploadFiles.aspx.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using SiteCore;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. public partial class EDesign_MultiuploadFiles : BasePage
  9. {
  10. protected override void OnPreInit(EventArgs e)
  11. {
  12. _repTitle = "批量上传";
  13. PmTag = "multiupload";
  14. //_selfCheckPermission = true;
  15. _keyFilterVisible = false;
  16. _addVisible = false;
  17. }
  18. protected void Page_Load(object sender, EventArgs e)
  19. {
  20. if (!IsPostBack)
  21. {
  22. string user_agent = HttpContext.Current.Request.ServerVariables["HTTP_USER_AGENT"];
  23. //if (user_agent.IndexOf("Chrome") == -1)
  24. //{
  25. // litUpload.Text = "请使用谷歌浏览器打开ERP系统上传!";
  26. //}
  27. //else
  28. //{
  29. int userid = CurrentUser.UserID;
  30. int orgid = CurrentUser.UserPost.OrgID;
  31. litUpload.Text = "<div id=\"multiupload1\" class=\"uc-multiupload\" style=\"width:1024px;min-height: 500px\" uploadurl=\"" + webConfig.ltUploadUrl + "?userid=" + userid + "&orgid=" + orgid + "\" limitType=\"*.rar;*.zip;*.7z;*.cdr;*.gif;*.jpeg;*.pdf;*.png;*.bmp;*.jpg\" limitSize=\"2048MB\" queueLimit=\"30\" onuploaderror=\"onUploadError\" onuploadsuccess=\"onUploadSuccess\"></div>";
  32. //}
  33. }
  34. }
  35. }