CNCEC_SUBQHSE_WUHUAN/SGGL/FineUIPro.Web/AttachFile/OnlineEditing.aspx.cs

108 lines
2.7 KiB
C#
Raw Normal View History

2023-08-10 11:40:02 +08:00
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
{
2023-08-10 16:56:20 +08:00
var sysSet = (from x in Funs.DB.Sys_Const where x.ConstText == "OnlineEditAppid" select x).ToList().FirstOrDefault();
2023-08-10 11:40:02 +08:00
if (sysSet != null)
{
2023-08-10 16:56:20 +08:00
return sysSet.ConstValue;
2023-08-10 11:40:02 +08:00
}
else
{
return "";
}
}
}
public string Appkey
{
get
{
2023-08-10 16:56:20 +08:00
var sysSet = (from x in Funs.DB.Sys_Const where x.ConstText == "OnlineEditAppkey" select x).ToList().FirstOrDefault();
2023-08-10 11:40:02 +08:00
if (sysSet != null)
{
2023-08-10 16:56:20 +08:00
return sysSet.ConstValue;
2023-08-10 11:40:02 +08:00
}
else
{
return "";
}
}
}
public string CallBackUrl
{
get
{
2023-08-10 16:56:20 +08:00
var sysSet = (from x in Funs.DB.Sys_Const where x.ConstText == "OnlineEditCallBackurl" select x).ToList().FirstOrDefault();
2023-08-10 11:40:02 +08:00
if (sysSet != null)
{
2023-08-10 16:56:20 +08:00
return sysSet.ConstValue;
2023-08-10 11:40:02 +08:00
}
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;
}
}
2023-10-12 19:33:22 +08:00
public string editorMode
{
get
{
return (string)ViewState["editorMode"];
}
set
{
ViewState["editorMode"] = value;
}
}
2023-08-10 11:40:02 +08:00
#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"];
2023-10-12 19:33:22 +08:00
editorMode = Request.Params["editorMode"];
2023-08-10 11:40:02 +08:00
}
}
}
}