文件上传 分项目

This commit is contained in:
2023-05-02 11:32:45 +08:00
parent d80899aec8
commit 62ae3c559d
13 changed files with 14 additions and 6 deletions
@@ -31,7 +31,7 @@ namespace FineUIPro.Web.JDGL.JDCH
U.UserName AS UploadManName
FROM dbo.Common_FileManager AS t
LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan
WHERE ToMenu='12' ";
WHERE ToMenu='12' and t.ProjectId = '"+this.CurrUser.LoginProjectId+"' ";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(txtFileName.Text))
@@ -49,6 +49,7 @@ namespace FineUIPro.Web.JDGL.JDCH
{
string fileId = Request.Params["fileId"];
Model.Common_FileManager temp = new Model.Common_FileManager();
temp.ProjectId = this.CurrUser.LoginProjectId;
if (txtFileName.Text == string.Empty)
{
ShowNotify("名称不能为空!", MessageBoxIcon.Warning);
@@ -31,7 +31,7 @@ namespace FineUIPro.Web.JDGL.JDCH
U.UserName AS UploadManName
FROM dbo.Common_FileManager AS t
LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan
WHERE ToMenu='11' ";
WHERE ToMenu='11' and t.ProjectId = '"+this.CurrUser.LoginProjectId+"' ";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(txtFileName.Text))
@@ -49,6 +49,7 @@ namespace FineUIPro.Web.JDGL.JDCH
{
string fileId = Request.Params["fileId"];
Model.Common_FileManager temp = new Model.Common_FileManager();
temp.ProjectId = CurrUser.LoginProjectId;
if (txtFileName.Text == string.Empty)
{
ShowNotify("名称不能为空!", MessageBoxIcon.Warning);