20250329 工作台

This commit is contained in:
毕文静 2025-03-29 10:10:11 +08:00
parent 6d70d94a03
commit ea286c51aa
2 changed files with 22 additions and 19 deletions

View File

@ -169,10 +169,10 @@ namespace FineUIPro.Web
if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId)
{
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)
else '../../res/images/16.png' end )
as AttachUrl
else '../../'+AttachFile.AttachUrl end ) end)as AttachUrl
from Base_Project
left join AttachFile on AttachFile.ToKeyId=Base_Project.ProjectId"
+ @" WHERE 1=1";
@ -189,8 +189,9 @@ namespace FineUIPro.Web
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
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 += "abc";
}
}
else
@ -208,10 +209,10 @@ namespace FineUIPro.Web
if (getRoleP != null && getUser.UnitId == Const.UnitId_CWCEC)
{
string strSql = @"select ProjectId,ProjectCode,(ProjectCode+' '+ProjectName) as ProjectName,ProjectState,
(case when AttachFile.AttachUrl is not null
then '../../'+ SUBSTRING(AttachFile.AttachUrl, 1 , CHARINDEX(',',AttachFile.AttachUrl)-1)
else '../../res/images/16.png' end )
as AttachUrl
(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)
else '../../'+AttachFile.AttachUrl end ) end)as AttachUrl
from Base_Project
left join AttachFile on AttachFile.ToKeyId=Base_Project.ProjectId"
+ @" WHERE 1=1";
@ -235,9 +236,10 @@ namespace FineUIPro.Web
else
{
string strSql = @"select distinct p.ProjectId,p.ProjectCode,(p.ProjectCode+' '+p.ProjectName) as ProjectName,p.ProjectState
(case when AttachFile.AttachUrl is not null
then '../../'+SUBSTRING(AttachFile.AttachUrl, 1 , CHARINDEX(',',AttachFile.AttachUrl)-1)
else '../../res/images/16.png' end )as AttachUrl
(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)
else '../../'+AttachFile.AttachUrl end ) end)as AttachUrl
from Base_Project p
left join Project_ProjectUser as pu on pu.ProjectId = p.ProjectId
left join AttachFile on AttachFile.ToKeyId=p.ProjectId
@ -267,10 +269,10 @@ namespace FineUIPro.Web
if (getRoleP != null)
{
string strSql = @"select ProjectId,ProjectCode,(ProjectCode+' '+ProjectName) as ProjectName,ProjectState,
(case when AttachFile.AttachUrl is not null
then '../../'+SUBSTRING(AttachFile.AttachUrl, 1 , CHARINDEX(',',AttachFile.AttachUrl)-1)
else '../../res/images/16.png' end )
as AttachUrl
(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)
else '../../'+AttachFile.AttachUrl end ) end)as AttachUrl
from Base_Project
left join AttachFile on AttachFile.ToKeyId=Base_Project.ProjectId"
+ @" WHERE 1=1";
@ -294,9 +296,10 @@ namespace FineUIPro.Web
else
{
string strSql = @"select distinct p.ProjectId,p.ProjectCode,(p.ProjectCode+' '+p.ProjectName) as ProjectName,p.ProjectState,
(case when AttachFile.AttachUrl is not null
then '../../'+SUBSTRING(AttachFile.AttachUrl, 1 , CHARINDEX(',',AttachFile.AttachUrl)-1)
else '../../res/images/16.png' end ) as AttachUrl
(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)
else '../../'+AttachFile.AttachUrl end ) end)as AttachUrl
from Base_Project p
left join Project_ProjectUser as pu on pu.ProjectId = p.ProjectId
left join AttachFile on AttachFile.ToKeyId=p.ProjectId

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />
<IISExpressSSLPort />