20250329 工作台
This commit is contained in:
		
							parent
							
								
									6d70d94a03
								
							
						
					
					
						commit
						ea286c51aa
					
				|  | @ -169,10 +169,10 @@ namespace FineUIPro.Web | ||||||
|             if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId) |             if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId) | ||||||
|             { |             { | ||||||
|                 string strSql = @"select ProjectId,ProjectCode,(ProjectCode+' '+ProjectName) as ProjectName,ProjectState,
 |                 string strSql = @"select ProjectId,ProjectCode,(ProjectCode+' '+ProjectName) as ProjectName,ProjectState,
 | ||||||
| 									(case when AttachFile.AttachUrl is not null  | 									(case when AttachFile.AttachUrl is null then  '../../res/images/16.png' else | ||||||
|  |  (case when AttachFile.AttachUrl is not null and AttachFile.AttachUrl like '%,%' | ||||||
| 									then '../../' + SUBSTRING(AttachFile.AttachUrl, 1 ,  CHARINDEX(',',AttachFile.AttachUrl)-1) | 									then '../../' + SUBSTRING(AttachFile.AttachUrl, 1 ,  CHARINDEX(',',AttachFile.AttachUrl)-1) | ||||||
| 									else '../../res/images/16.png' end ) | 									else '../../'+AttachFile.AttachUrl end ) end)as AttachUrl | ||||||
| 									as AttachUrl |  | ||||||
| 								from Base_Project | 								from Base_Project | ||||||
|                                 left join AttachFile on AttachFile.ToKeyId=Base_Project.ProjectId"
 |                                 left join AttachFile on AttachFile.ToKeyId=Base_Project.ProjectId"
 | ||||||
|                                  + @" WHERE 1=1"; |                                  + @" WHERE 1=1"; | ||||||
|  | @ -189,8 +189,9 @@ namespace FineUIPro.Web | ||||||
|                 SqlParameter[] parameter = listStr.ToArray(); |                 SqlParameter[] parameter = listStr.ToArray(); | ||||||
|                 DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); |                 DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); | ||||||
|                 for (int i = 0; i < tb.Rows.Count; i++) |                 for (int i = 0; i < tb.Rows.Count; i++) | ||||||
|                 {                   |                 { | ||||||
|                     returnDbHtml += "<div class=\"z-item\"><p class=\"z-val\"><span><img style=\"height: .350rem; width: .350rem; \" src='" + tb.Rows[i][4].ToString() + "'/></span><span>" + tb.Rows[i][2].ToString() + "</span></p><p class=\"z-data\"><div id=\"mybtn\" style=\"cursor:pointer\" onclick=\"javascrtpt:window.location.href='indexProject.aspx?projectId=" + tb.Rows[i][0].ToString() + "'\">进入项目</div></p></div>"; |                     returnDbHtml += "<div class=\"z-item\"><p class=\"z-val\"><span><img style=\"height: .350rem; width: .350rem; \" src='" + tb.Rows[i][4].ToString() + "'/></span><span>" + tb.Rows[i][2].ToString() + "</span></p><p class=\"z-data\"><div id=\"mybtn\" style=\"cursor:pointer\" onclick=\"javascrtpt:window.location.href='indexProject.aspx?projectId=" + tb.Rows[i][0].ToString() + "'\">进入项目</div></p></div>"; | ||||||
|  |                     //returnDbHtml += "abc"; | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|             else |             else | ||||||
|  | @ -208,10 +209,10 @@ namespace FineUIPro.Web | ||||||
|                         if (getRoleP != null && getUser.UnitId == Const.UnitId_CWCEC) |                         if (getRoleP != null && getUser.UnitId == Const.UnitId_CWCEC) | ||||||
|                         { |                         { | ||||||
|                             string strSql = @"select ProjectId,ProjectCode,(ProjectCode+' '+ProjectName) as ProjectName,ProjectState,
 |                             string strSql = @"select ProjectId,ProjectCode,(ProjectCode+' '+ProjectName) as ProjectName,ProjectState,
 | ||||||
| 									(case when AttachFile.AttachUrl is not null  | 									(case when AttachFile.AttachUrl is null then  '../../res/images/16.png' else | ||||||
| 									then '../../'+ SUBSTRING(AttachFile.AttachUrl, 1 ,  CHARINDEX(',',AttachFile.AttachUrl)-1) |  (case when AttachFile.AttachUrl is not null and AttachFile.AttachUrl like '%,%' | ||||||
| 									else '../../res/images/16.png' end ) | 									then '../../' + SUBSTRING(AttachFile.AttachUrl, 1 ,  CHARINDEX(',',AttachFile.AttachUrl)-1) | ||||||
| 									as AttachUrl | 									else '../../'+AttachFile.AttachUrl end ) end)as AttachUrl | ||||||
| 								from Base_Project | 								from Base_Project | ||||||
|                                 left join AttachFile on AttachFile.ToKeyId=Base_Project.ProjectId"
 |                                 left join AttachFile on AttachFile.ToKeyId=Base_Project.ProjectId"
 | ||||||
|                                   + @" WHERE 1=1"; |                                   + @" WHERE 1=1"; | ||||||
|  | @ -235,9 +236,10 @@ namespace FineUIPro.Web | ||||||
|                         else |                         else | ||||||
|                         { |                         { | ||||||
|                             string strSql = @"select distinct p.ProjectId,p.ProjectCode,(p.ProjectCode+' '+p.ProjectName) as ProjectName,p.ProjectState
 |                             string strSql = @"select distinct p.ProjectId,p.ProjectCode,(p.ProjectCode+' '+p.ProjectName) as ProjectName,p.ProjectState
 | ||||||
|                                             (case when AttachFile.AttachUrl is not null  |                                            (case when AttachFile.AttachUrl is null then  '../../res/images/16.png' else | ||||||
| 									        then '../../'+SUBSTRING(AttachFile.AttachUrl, 1 ,  CHARINDEX(',',AttachFile.AttachUrl)-1) |  (case when AttachFile.AttachUrl is not null and AttachFile.AttachUrl like '%,%' | ||||||
| 									        else '../../res/images/16.png' end )as AttachUrl | 									then '../../' + SUBSTRING(AttachFile.AttachUrl, 1 ,  CHARINDEX(',',AttachFile.AttachUrl)-1) | ||||||
|  | 									else '../../'+AttachFile.AttachUrl end ) end)as AttachUrl | ||||||
|                                                         from Base_Project p |                                                         from Base_Project p | ||||||
|                                                         left join Project_ProjectUser as pu on pu.ProjectId = p.ProjectId |                                                         left join Project_ProjectUser as pu on pu.ProjectId = p.ProjectId | ||||||
|                                                         left join AttachFile on AttachFile.ToKeyId=p.ProjectId |                                                         left join AttachFile on AttachFile.ToKeyId=p.ProjectId | ||||||
|  | @ -267,10 +269,10 @@ namespace FineUIPro.Web | ||||||
|                         if (getRoleP != null) |                         if (getRoleP != null) | ||||||
|                         { |                         { | ||||||
|                             string strSql = @"select ProjectId,ProjectCode,(ProjectCode+' '+ProjectName) as ProjectName,ProjectState,
 |                             string strSql = @"select ProjectId,ProjectCode,(ProjectCode+' '+ProjectName) as ProjectName,ProjectState,
 | ||||||
| 									(case when AttachFile.AttachUrl is not null  | 									(case when AttachFile.AttachUrl is null then  '../../res/images/16.png' else | ||||||
| 									then '../../'+SUBSTRING(AttachFile.AttachUrl, 1 ,  CHARINDEX(',',AttachFile.AttachUrl)-1) |  (case when AttachFile.AttachUrl is not null and AttachFile.AttachUrl like '%,%' | ||||||
| 									else '../../res/images/16.png' end ) | 									then '../../' + SUBSTRING(AttachFile.AttachUrl, 1 ,  CHARINDEX(',',AttachFile.AttachUrl)-1) | ||||||
| 									as AttachUrl | 									else '../../'+AttachFile.AttachUrl end ) end)as AttachUrl | ||||||
| 								from Base_Project | 								from Base_Project | ||||||
|                                 left join AttachFile on AttachFile.ToKeyId=Base_Project.ProjectId"
 |                                 left join AttachFile on AttachFile.ToKeyId=Base_Project.ProjectId"
 | ||||||
|                                       + @" WHERE 1=1"; |                                       + @" WHERE 1=1"; | ||||||
|  | @ -294,9 +296,10 @@ namespace FineUIPro.Web | ||||||
|                         else |                         else | ||||||
|                         { |                         { | ||||||
|                             string strSql = @"select distinct p.ProjectId,p.ProjectCode,(p.ProjectCode+' '+p.ProjectName) as ProjectName,p.ProjectState,
 |                             string strSql = @"select distinct p.ProjectId,p.ProjectCode,(p.ProjectCode+' '+p.ProjectName) as ProjectName,p.ProjectState,
 | ||||||
|                                                 (case when AttachFile.AttachUrl is not null  |                                                (case when AttachFile.AttachUrl is null then  '../../res/images/16.png' else | ||||||
|                                                 then '../../'+SUBSTRING(AttachFile.AttachUrl, 1 ,  CHARINDEX(',',AttachFile.AttachUrl)-1) |  (case when AttachFile.AttachUrl is not null and AttachFile.AttachUrl like '%,%' | ||||||
|                                                 else '../../res/images/16.png' end ) as AttachUrl  | 									then '../../' + SUBSTRING(AttachFile.AttachUrl, 1 ,  CHARINDEX(',',AttachFile.AttachUrl)-1) | ||||||
|  | 									else '../../'+AttachFile.AttachUrl end ) end)as AttachUrl | ||||||
|                                         from Base_Project p |                                         from Base_Project p | ||||||
|                                         left join Project_ProjectUser as pu on pu.ProjectId = p.ProjectId |                                         left join Project_ProjectUser as pu on pu.ProjectId = p.ProjectId | ||||||
| 										left join AttachFile on AttachFile.ToKeyId=p.ProjectId | 										left join AttachFile on AttachFile.ToKeyId=p.ProjectId | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig> |     <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> | ||||||
|     <UseIISExpress>true</UseIISExpress> |     <UseIISExpress>true</UseIISExpress> | ||||||
|     <Use64BitIISExpress /> |     <Use64BitIISExpress /> | ||||||
|     <IISExpressSSLPort /> |     <IISExpressSSLPort /> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue