2023-08-04

This commit is contained in:
2023-08-04 17:06:50 +08:00
parent 70a51ab125
commit 78e8037f08
81 changed files with 8897 additions and 2763 deletions
@@ -1,38 +1,70 @@
using BLL;
using RestSharp;
using System;
using System;
using System.Collections.Generic;
using System.IO;
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 : System.Web.UI.Page
public partial class OnlineEditing : PageBase
{
#region
public string UserId
public string Appid
{
get
{
return (string)ViewState["UserId"];
}
set
{
ViewState["UserId"] = value;
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 UserName
public string Appkey
{
get
{
return (string)ViewState["UserName"];
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["UserName"] = value;
ViewState["ReadOnly"] = value;
}
}
public string PCUrl
@@ -45,17 +77,6 @@ namespace FineUIPro.Web.AttachFile
{
ViewState["PCUrl"] = value;
}
}
public string CanSave
{
get
{
return (string)ViewState["CanSave"];
}
set
{
ViewState["CanSave"] = value;
}
}
#endregion
@@ -63,13 +84,12 @@ namespace FineUIPro.Web.AttachFile
{
if (!IsPostBack)
{
UserId = Request.Params["UserId"];
// UserId = "C4A62EC0-E5D3-4EBF-A5FA-E56AA89633C0";
CanSave = Request.Params["CanSave"];
PCUrl = Request.Params["PCUrl"];
// PCUrl = "https://sggl.sedin.com.cn/FileUpLoad/K350-ZBJH-001.doc";
UserName=BLL.Person_PersonsService.GetPersonsNameById(UserId);
CanSave = "true";
/*UserId = Request.Params["UserId"];
AttachFileId = Request.Params["AttachFileId"];
ReadOnly = Request.Params["ReadOnly"];*/
PCUrl = Request.Params["fileUrl"];
}
}
}