108 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			108 lines
		
	
	
		
			2.7 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 OnlineEditing :PageBase
 | |
|     {
 | |
|         #region 定义参数
 | |
|         public string Appid
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 var sysSet = (from x in Funs.DB.Sys_Const where x.ConstText == "OnlineEditAppid" select x).ToList().FirstOrDefault();
 | |
|                 if (sysSet != null)
 | |
|                 {
 | |
|                      return sysSet.ConstValue;
 | |
|                 }
 | |
|                 else
 | |
|                 {
 | |
|                     return "";
 | |
|                 }
 | |
|             }
 | |
|         }
 | |
|         public string Appkey
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 var sysSet = (from x in Funs.DB.Sys_Const where x.ConstText == "OnlineEditAppkey" select x).ToList().FirstOrDefault();
 | |
|                 if (sysSet != null)
 | |
|                 {
 | |
|                     return sysSet.ConstValue;
 | |
|                 }
 | |
|                 else
 | |
|                 {
 | |
|                     return "";
 | |
|                 }
 | |
|             }
 | |
|         }
 | |
|         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;
 | |
|             }
 | |
|         }
 | |
|         #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"];
 | |
|                 
 | |
|                 
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| } |