合并最新
This commit is contained in:
@@ -5,6 +5,7 @@ using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
@@ -216,6 +217,44 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取整改前图片(放于Img中)
|
||||
/// </summary>
|
||||
/// <param name="registrationId"></param>
|
||||
/// <returns></returns>
|
||||
protected string ConvertImageUrlByImage(object JointCheckDetailId)
|
||||
{
|
||||
string url = string.Empty;
|
||||
if (JointCheckDetailId != null)
|
||||
{
|
||||
var attUrl = BLL.AttachFileService.getFileUrl(JointCheckDetailId.ToString());
|
||||
if (!string.IsNullOrEmpty(attUrl))
|
||||
{
|
||||
url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["SGGLUrl"], attUrl);
|
||||
}
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取整改后图片(放于Img中)
|
||||
/// </summary>
|
||||
/// <param name="registrationId"></param>
|
||||
/// <returns></returns>
|
||||
protected string ConvertImgUrlByImage(object JointCheckDetailId)
|
||||
{
|
||||
string url = string.Empty;
|
||||
if (JointCheckDetailId != null)
|
||||
{
|
||||
var attUrl = BLL.AttachFileService.getFileUrl(JointCheckDetailId.ToString() + "r");
|
||||
if (!string.IsNullOrEmpty(attUrl))
|
||||
{
|
||||
url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["SGGLUrl"], attUrl);
|
||||
}
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
string itemId = Grid1.DataKeys[e.RowIndex][0].ToString();
|
||||
@@ -313,15 +352,24 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
{
|
||||
if (column.ColumnID != "AttchUrl" && column.ColumnID != "ReAttachUrl")
|
||||
{
|
||||
sb.AppendFormat("<td>{0}</td>", column.HeaderText);
|
||||
if (column.ColumnID == "tfImageUrl1" || column.ColumnID == "tfImageUrl2")
|
||||
{
|
||||
sb.AppendFormat("<td style='width:240px;'>{0}</td>", column.HeaderText);
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.AppendFormat("<td>{0}</td>", column.HeaderText);
|
||||
}
|
||||
}
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
bool b = false;
|
||||
foreach (GridRow row in grid.Rows)
|
||||
{
|
||||
sb.Append("<tr>");
|
||||
foreach (GridColumn column in grid.Columns)
|
||||
{
|
||||
b = false;
|
||||
if (column.ColumnID != "AttchUrl" && column.ColumnID != "ReAttachUrl")
|
||||
{
|
||||
string html = row.Values[column.ColumnIndex].ToString();
|
||||
@@ -333,8 +381,24 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
{
|
||||
html = (row.FindControl("lbState") as AspNet.Label).Text;
|
||||
}
|
||||
//sb.AppendFormat("<td>{0}</td>", html);
|
||||
sb.AppendFormat("<td style='vnd.ms-excel.numberformat:@;width:140px;'>{0}</td>", html);
|
||||
if (column.ColumnID == "tfImageUrl1")
|
||||
{
|
||||
b = true;
|
||||
html = (row.FindControl("lbImageUrl") as AspNet.Label).Text;
|
||||
}
|
||||
if (column.ColumnID == "tfImageUrl2")
|
||||
{
|
||||
b = true;
|
||||
html = (row.FindControl("lbImgUrl") as AspNet.Label).Text;
|
||||
}
|
||||
if (b)
|
||||
{
|
||||
sb.AppendFormat("<td style='width:240px;'>{0}</td>", html);
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.AppendFormat("<td>{0}</td>", html);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user