文件上传 分项目

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

View File

@ -31,7 +31,7 @@ namespace FineUIPro.Web.JDGL.JDCH
U.UserName AS UploadManName U.UserName AS UploadManName
FROM dbo.Common_FileManager AS t FROM dbo.Common_FileManager AS t
LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan 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>(); List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(txtFileName.Text)) if (!string.IsNullOrEmpty(txtFileName.Text))

View File

@ -49,6 +49,7 @@ namespace FineUIPro.Web.JDGL.JDCH
{ {
string fileId = Request.Params["fileId"]; string fileId = Request.Params["fileId"];
Model.Common_FileManager temp = new Model.Common_FileManager(); Model.Common_FileManager temp = new Model.Common_FileManager();
temp.ProjectId = this.CurrUser.LoginProjectId;
if (txtFileName.Text == string.Empty) if (txtFileName.Text == string.Empty)
{ {
ShowNotify("名称不能为空!", MessageBoxIcon.Warning); ShowNotify("名称不能为空!", MessageBoxIcon.Warning);

View File

@ -31,7 +31,7 @@ namespace FineUIPro.Web.JDGL.JDCH
U.UserName AS UploadManName U.UserName AS UploadManName
FROM dbo.Common_FileManager AS t FROM dbo.Common_FileManager AS t
LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan 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>(); List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(txtFileName.Text)) if (!string.IsNullOrEmpty(txtFileName.Text))

View File

@ -49,6 +49,7 @@ namespace FineUIPro.Web.JDGL.JDCH
{ {
string fileId = Request.Params["fileId"]; string fileId = Request.Params["fileId"];
Model.Common_FileManager temp = new Model.Common_FileManager(); Model.Common_FileManager temp = new Model.Common_FileManager();
temp.ProjectId = CurrUser.LoginProjectId;
if (txtFileName.Text == string.Empty) if (txtFileName.Text == string.Empty)
{ {
ShowNotify("名称不能为空!", MessageBoxIcon.Warning); ShowNotify("名称不能为空!", MessageBoxIcon.Warning);

View File

@ -24,6 +24,7 @@ namespace FineUIPro.Web.JDGL.JDJH
if (!string.IsNullOrEmpty(fileId)) if (!string.IsNullOrEmpty(fileId))
{ {
Model.Common_FileManager t = BLL.FileManagerService.GetFileById(fileId); Model.Common_FileManager t = BLL.FileManagerService.GetFileById(fileId);
t.ProjectId=CurrUser.LoginProjectId;
if (t != null) if (t != null)
{ {
this.txtFileName.Text = t.FileName; this.txtFileName.Text = t.FileName;
@ -50,6 +51,7 @@ namespace FineUIPro.Web.JDGL.JDJH
{ {
string fileId = Request.Params["fileId"]; string fileId = Request.Params["fileId"];
Model.Common_FileManager temp = new Model.Common_FileManager(); Model.Common_FileManager temp = new Model.Common_FileManager();
temp.ProjectId = this.CurrUser.LoginProjectId;
if (txtFileName.Text == string.Empty) if (txtFileName.Text == string.Empty)
{ {
ShowNotify("名称不能为空!", MessageBoxIcon.Warning); ShowNotify("名称不能为空!", MessageBoxIcon.Warning);

View File

@ -31,7 +31,7 @@ namespace FineUIPro.Web.JDGL.JDJH
U.UserName AS UploadManName U.UserName AS UploadManName
FROM dbo.Common_FileManager AS t FROM dbo.Common_FileManager AS t
LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan
WHERE ToMenu='16' "; WHERE ToMenu='16' and t.ProjectId = '"+this.CurrUser.LoginProjectId+"' ";
List<SqlParameter> listStr = new List<SqlParameter>(); List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(txtFileName.Text)) if (!string.IsNullOrEmpty(txtFileName.Text))

View File

@ -50,6 +50,7 @@ namespace FineUIPro.Web.JDGL.JDJH
{ {
string fileId = Request.Params["fileId"]; string fileId = Request.Params["fileId"];
Model.Common_FileManager temp = new Model.Common_FileManager(); Model.Common_FileManager temp = new Model.Common_FileManager();
temp.ProjectId = CurrUser.ProjectId;
if (txtFileName.Text == string.Empty) if (txtFileName.Text == string.Empty)
{ {
ShowNotify("名称不能为空!", MessageBoxIcon.Warning); ShowNotify("名称不能为空!", MessageBoxIcon.Warning);

View File

@ -31,7 +31,7 @@ namespace FineUIPro.Web.JDGL.JDJH
U.UserName AS UploadManName U.UserName AS UploadManName
FROM dbo.Common_FileManager AS t FROM dbo.Common_FileManager AS t
LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan
WHERE ToMenu='17' "; WHERE ToMenu='17' and t.ProjectId = '"+this.CurrUser.LoginProjectId+"' ";
List<SqlParameter> listStr = new List<SqlParameter>(); List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(txtFileName.Text)) if (!string.IsNullOrEmpty(txtFileName.Text))

View File

@ -49,6 +49,7 @@ namespace FineUIPro.Web.JDGL.JDJH
{ {
string fileId = Request.Params["fileId"]; string fileId = Request.Params["fileId"];
Model.Common_FileManager temp = new Model.Common_FileManager(); Model.Common_FileManager temp = new Model.Common_FileManager();
temp.ProjectId = CurrUser.LoginProjectId;
if (txtFileName.Text == string.Empty) if (txtFileName.Text == string.Empty)
{ {
ShowNotify("名称不能为空!", MessageBoxIcon.Warning); ShowNotify("名称不能为空!", MessageBoxIcon.Warning);

View File

@ -31,7 +31,7 @@ namespace FineUIPro.Web.JDGL.JDJH
U.UserName AS UploadManName U.UserName AS UploadManName
FROM dbo.Common_FileManager AS t FROM dbo.Common_FileManager AS t
LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan
WHERE ToMenu='14' "; WHERE ToMenu='14' and t.ProjectId = '"+this.CurrUser.LoginProjectId+"' ";
List<SqlParameter> listStr = new List<SqlParameter>(); List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(txtFileName.Text)) if (!string.IsNullOrEmpty(txtFileName.Text))

View File

@ -49,6 +49,7 @@ namespace FineUIPro.Web.JDGL.JDJH
{ {
string fileId = Request.Params["fileId"]; string fileId = Request.Params["fileId"];
Model.Common_FileManager temp = new Model.Common_FileManager(); Model.Common_FileManager temp = new Model.Common_FileManager();
temp.ProjectId = CurrUser.LoginProjectId;
if (txtFileName.Text == string.Empty) if (txtFileName.Text == string.Empty)
{ {
ShowNotify("名称不能为空!", MessageBoxIcon.Warning); ShowNotify("名称不能为空!", MessageBoxIcon.Warning);

View File

@ -31,7 +31,7 @@ namespace FineUIPro.Web.JDGL.SGBG
U.UserName AS UploadManName U.UserName AS UploadManName
FROM dbo.Common_FileManager AS t FROM dbo.Common_FileManager AS t
LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan
WHERE ToMenu='19' "; WHERE ToMenu='19' and t.ProjectId = '"+this.CurrUser.LoginProjectId+"' ";
List<SqlParameter> listStr = new List<SqlParameter>(); List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(txtFileName.Text)) if (!string.IsNullOrEmpty(txtFileName.Text))

View File

@ -49,6 +49,7 @@ namespace FineUIPro.Web.JDGL.SGBG
{ {
string fileId = Request.Params["fileId"]; string fileId = Request.Params["fileId"];
Model.Common_FileManager temp = new Model.Common_FileManager(); Model.Common_FileManager temp = new Model.Common_FileManager();
temp.ProjectId = CurrUser.LoginProjectId;
if (txtFileName.Text == string.Empty) if (txtFileName.Text == string.Empty)
{ {
ShowNotify("名称不能为空!", MessageBoxIcon.Warning); ShowNotify("名称不能为空!", MessageBoxIcon.Warning);