public static string GetOpenWindowStringToList(int siteId, EUploadType uploadType, string realtedPath) { return(LayerUtils.GetOpenScript("上传附件", PageUtils.GetCmsUrl(siteId, nameof(ModalUploadFile), new NameValueCollection { { "uploadType", EUploadTypeUtils.GetValue(uploadType) }, { "realtedPath", realtedPath } }), 550, 250)); }
public static string GetOpenWindowStringToTextBox(int siteId, EUploadType uploadType, string textBoxClientId) { return(LayerUtils.GetOpenScript("上传附件", PageUtils.GetCmsUrl(siteId, nameof(ModalUploadFile), new NameValueCollection { { "uploadType", EUploadTypeUtils.GetValue(uploadType) }, { "TextBoxClientID", textBoxClientId } }), 550, 250)); }
public static string GetOpenWindowStringToList(int publishmentSystemId, EUploadType uploadType, string realtedPath) { return(PageUtils.GetOpenWindowString("上传附件", PageUtils.GetCmsUrl(nameof(ModalUploadFile), new NameValueCollection { { "PublishmentSystemID", publishmentSystemId.ToString() }, { "uploadType", EUploadTypeUtils.GetValue(uploadType) }, { "realtedPath", realtedPath } }), 480, 300)); }
public static string GetOpenWindowStringToTextBox(int publishmentSystemId, EUploadType uploadType, string textBoxClientId) { return(PageUtils.GetOpenWindowString("上传附件", PageUtils.GetCmsUrl(nameof(ModalUploadFile), new NameValueCollection { { "PublishmentSystemID", publishmentSystemId.ToString() }, { "uploadType", EUploadTypeUtils.GetValue(uploadType) }, { "TextBoxClientID", textBoxClientId } }), 480, 300)); }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("PublishmentSystemID"); _uploadType = EUploadTypeUtils.GetEnumType(Body.GetQueryString("uploadType")); _realtedPath = Body.GetQueryString("realtedPath"); _textBoxClientId = Body.GetQueryString("TextBoxClientID"); if (!IsPostBack) { EBooleanUtils.AddListItems(rblIsFileUploadChangeFileName, "采用系统生成文件名", "采用原有文件名"); ControlUtils.SelectListItemsIgnoreCase(rblIsFileUploadChangeFileName, PublishmentSystemInfo.Additional.IsFileUploadChangeFileName.ToString()); } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("siteId"); _uploadType = EUploadTypeUtils.GetEnumType(AuthRequest.GetQueryString("uploadType")); _realtedPath = AuthRequest.GetQueryString("realtedPath"); _textBoxClientId = AuthRequest.GetQueryString("TextBoxClientID"); if (IsPostBack) { return; } EBooleanUtils.AddListItems(DdlIsFileUploadChangeFileName, "采用系统生成文件名", "采用原有文件名"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsFileUploadChangeFileName, SiteInfo.Additional.IsFileUploadChangeFileName.ToString()); }