| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using SiteCore;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- public partial class EDesign_MultiuploadFiles : BasePage
- {
- protected override void OnPreInit(EventArgs e)
- {
- _repTitle = "批量上传";
- PmTag = "multiupload";
- //_selfCheckPermission = true;
- _keyFilterVisible = false;
- _addVisible = false;
- }
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- string user_agent = HttpContext.Current.Request.ServerVariables["HTTP_USER_AGENT"];
- //if (user_agent.IndexOf("Chrome") == -1)
- //{
- // litUpload.Text = "请使用谷歌浏览器打开ERP系统上传!";
- //}
- //else
- //{
- int userid = CurrentUser.UserID;
- int orgid = CurrentUser.UserPost.OrgID;
- 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>";
- //}
-
-
-
- }
- }
- }
|