82 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			82 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C#
		
	
	
	
using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Linq;
 | 
						|
using System.Web;
 | 
						|
using System.Web.UI;
 | 
						|
using System.Web.UI.WebControls;
 | 
						|
using BLL;
 | 
						|
 | 
						|
namespace FineUIPro.Web.AttachFile
 | 
						|
{
 | 
						|
    public partial class OnlineEditingPrivate : PageBase
 | 
						|
    {
 | 
						|
        #region 定义参数
 | 
						|
 | 
						|
        public string CallBackUrl
 | 
						|
        {
 | 
						|
            get
 | 
						|
            {
 | 
						|
                var sysSet = (from x in Funs.DB.Sys_Const where x.ConstText == "OnlineEditCallBackurl" select x).ToList().FirstOrDefault();
 | 
						|
                if (sysSet != null)
 | 
						|
                {
 | 
						|
                    return sysSet.ConstValue;
 | 
						|
                }
 | 
						|
                else
 | 
						|
                {
 | 
						|
                    return "";
 | 
						|
                }
 | 
						|
            }
 | 
						|
        }
 | 
						|
        public string ReadOnly
 | 
						|
        {
 | 
						|
            get
 | 
						|
            {
 | 
						|
                return (string)ViewState["ReadOnly"];
 | 
						|
            }
 | 
						|
            set
 | 
						|
            {
 | 
						|
                ViewState["ReadOnly"] = value;
 | 
						|
            }
 | 
						|
        }
 | 
						|
        public string PCUrl
 | 
						|
        {
 | 
						|
            get
 | 
						|
            {
 | 
						|
                return (string)ViewState["PCUrl"];
 | 
						|
            }
 | 
						|
            set
 | 
						|
            {
 | 
						|
                ViewState["PCUrl"] = value;
 | 
						|
            }
 | 
						|
        }
 | 
						|
        public string editorMode
 | 
						|
        {
 | 
						|
            get
 | 
						|
            {
 | 
						|
                return (string)ViewState["editorMode"];
 | 
						|
            }
 | 
						|
            set
 | 
						|
            {
 | 
						|
                ViewState["editorMode"] = value;
 | 
						|
            }
 | 
						|
        }
 | 
						|
        public string urlString = String.Empty;
 | 
						|
        public string urlStringMD5 = String.Empty;
 | 
						|
        #endregion
 | 
						|
 | 
						|
        protected void Page_Load(object sender, EventArgs e)
 | 
						|
        {
 | 
						|
            if (!IsPostBack)
 | 
						|
            {
 | 
						|
                /*UserId = Request.Params["UserId"];
 | 
						|
                AttachFileId = Request.Params["AttachFileId"];
 | 
						|
                ReadOnly = Request.Params["ReadOnly"];*/
 | 
						|
                PCUrl = Request.Params["fileUrl"];
 | 
						|
                editorMode = Request.Params["editorMode"];
 | 
						|
 | 
						|
                urlString = Funs.SGGLUrl + PCUrl;
 | 
						|
                urlStringMD5 = Funs.GetMD5(urlString);
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
} |