新增隐患整改通知单、反馈单批量导出功能

This commit is contained in:
2024-03-27 18:07:03 +08:00
parent 464d147d02
commit 0fb13c4758
8 changed files with 500 additions and 104 deletions
+395 -5
View File
@@ -56,6 +56,32 @@
System.Web.HttpContext.Current.Response.End();
}
}
public static void PrinterRectifyNoticesHtmlAll(string projectId, string type)
{
System.Web.HttpContext.Current.Response.ClearContent();
string htmlStr = string.Empty;
string name = "隐患整改通知单";
if (type == "1")
{
htmlStr = GetRectifyNoticesTableHtmlAll(projectId);
}
else
{
htmlStr = GetRectifyNoticesTableHtmlAll2(projectId);
name = "隐患整改反馈单";
}
if (!string.IsNullOrEmpty(htmlStr))
{
string filename = name + Funs.GetNewFileName();
System.Web.HttpContext.Current.Response.AddHeader("content-disposition", "attachment; filename="
+ System.Web.HttpUtility.UrlEncode(filename, Encoding.UTF8) + ".doc");
System.Web.HttpContext.Current.Response.ContentType = "application/word";
System.Web.HttpContext.Current.Response.ContentEncoding = Encoding.UTF8;
System.Web.HttpContext.Current.Response.Write(htmlStr);
System.Web.HttpContext.Current.Response.End();
}
}
#region
/// <summary>
@@ -237,6 +263,190 @@
}
return sb.ToString();
}
/// <summary>
/// 导出方法
/// </summary>
/// <param name="grid"></param>
/// <returns></returns>
public static string GetRectifyNoticesTableHtmlAll(string projectId)
{
StringBuilder sb = new StringBuilder();
var getRectifyNoticesAll = from x in Funs.DB.Check_RectifyNotices
orderby x.RectifyNoticesCode
where x.ProjectId == projectId
select x;
sb.Append("<meta http-equiv=\"content-type\" content=\"application/word; charset=UTF-8\"/>");
foreach (var getRectifyNotices in getRectifyNoticesAll)
{
sb.Append("<table width=\"100% \" cellspacing=\"0\" rules=\"all\" border=\"1\" style=\"border-collapse:collapse;font-size: 11pt;\">");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" colspan=\"4\" style=\"width: 100%; font-size: 12pt; font-weight: bold;border-right: none;border-left: none;border-bottom: none;border-top: none; \">{0}</td> ", "安全隐患整改通知单");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" colspan=\"3\" style=\"border-right: none;border-left: none;border-top: none; \">{0}</td> ", "项目名称:" + BLL.ProjectService.GetProjectNameByProjectId(getRectifyNotices.ProjectId));
sb.AppendFormat("<td align=\"center\" style=\"border-right: none;border-left: none;border-top: none; \">{0}</td> ", "编号:" + getRectifyNotices.RectifyNoticesCode);
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" style=\"width: 18%; \">{0}</td> ", "受检单位名称");
sb.AppendFormat("<td align=\"left\" style=\"width: 32%; \">{0}</td> ", UnitService.GetUnitNameByUnitId(getRectifyNotices.UnitId));
sb.AppendFormat("<td align=\"center\" style=\"width: 18%; \">{0}</td> ", "单位工程名称");
sb.AppendFormat("<td align=\"left\" style=\"width: 32%; \">{0}</td> ", UnitWorkService.GetUnitWorkName(getRectifyNotices.WorkAreaId));
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" >{0}</td> ", "检查人员");
sb.AppendFormat("<td align=\"left\" colspan=\"3\">{0}</td> ", Person_PersonsService.getPersonsNamesPersonIds(getRectifyNotices.CheckManIds));
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" >{0}</td> ", "检查日期");
sb.AppendFormat("<td align=\"left\" colspan=\"3\">{0}</td> ", string.Format("{0:yyyy-MM-dd}", getRectifyNotices.CheckedDate));
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" >{0}</td> ", "隐患类别");
if (getRectifyNotices.HiddenHazardType == "3")
{
sb.AppendFormat("<td align=\"left\" colspan=\"3\">{0}</td> ", "☐一般 ☐较大 √重大");
}
else if (getRectifyNotices.HiddenHazardType == "2")
{
sb.AppendFormat("<td align=\"left\" colspan=\"3\">{0}</td> ", "☐一般 √较大 ☐重大");
}
else
{
sb.AppendFormat("<td align=\"left\" colspan=\"3\">{0}</td> ", "√一般 ☐较大 ☐重大");
}
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" style=\"border-bottom: none;\" >{0}</td> ", "贵公司存在的安全隐患及整改要求如下:");
sb.Append("</tr>");
var getItem = from x in Funs.DB.Check_RectifyNoticesItem
where x.RectifyNoticesId == getRectifyNotices.RectifyNoticesId
orderby x.RectifyNoticesItemId
select x;
int i = 1;
foreach (var item in getItem)
{
string contStr = "&nbsp; &nbsp;" + i.ToString() + "." + item.WrongContent + "(详见附图" + i.ToString() + "),整改要求:" + item.Requirement;
if (item.LimitTime.HasValue)
{
contStr += " 整改期限" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", item.LimitTime);
}
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" style=\"border-top: none;border-bottom: none;\" >{0}</td> ", contStr);
sb.Append("</tr>");
i++;
}
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" style=\"border-top: none;border-bottom: none;\" >{0}</td> ", "");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"right\" colspan=\"4\" style=\"border-top: none;border-bottom: none;\" >{0}</td> ", "总包单位项目安全经理:" + Person_PersonsService.getSignatureName(getRectifyNotices.SignPerson) + "&nbsp; &nbsp;");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"right\" colspan=\"4\" style=\"border-top: none;\">{0}</td> ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.SignDate) + "&nbsp; &nbsp;");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" rowspan=\"3\">{0}</td> ", "抄送:");
if (string.IsNullOrEmpty(getRectifyNotices.ProfessionalEngineerId))
{
sb.AppendFormat("<td align=\"left\" colspan=\"2\">{0}</td> ", "☐专业工程师:");
sb.AppendFormat("<td align=\"left\" >{0}</td> ", "日期:");
}
else
{
sb.AppendFormat("<td align=\"left\" colspan=\"2\">{0}</td> ", "√专业工程师:" + Person_PersonsService.getSignatureName(getRectifyNotices.ProfessionalEngineerId));
sb.AppendFormat("<td align=\"left\" >{0}</td> ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.ProfessionalEngineerTime1));
}
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
if (string.IsNullOrEmpty(getRectifyNotices.ConstructionManagerId))
{
sb.AppendFormat("<td align=\"left\" colspan=\"2\">{0}</td> ", "☐施工经理:");
sb.AppendFormat("<td align=\"left\" >{0}</td> ", "日期:");
}
else
{
sb.AppendFormat("<td align=\"left\" colspan=\"2\">{0}</td> ", "√施工经理:" + Person_PersonsService.getSignatureName(getRectifyNotices.ConstructionManagerId));
sb.AppendFormat("<td align=\"left\" >{0}</td> ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.ConstructionManagerTime1));
}
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
if (string.IsNullOrEmpty(getRectifyNotices.ProjectManagerId))
{
sb.AppendFormat("<td align=\"left\" colspan=\"2\">{0}</td> ", "☐项目经理:");
sb.AppendFormat("<td align=\"left\" >{0}</td> ", "日期:");
}
else
{
sb.AppendFormat("<td align=\"left\" colspan=\"2\">{0}</td> ", "√项目经理:" + Person_PersonsService.getSignatureName(getRectifyNotices.ProjectManagerId));
sb.AppendFormat("<td align=\"left\" >{0}</td> ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.ProjectManagerTime1));
}
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" >{0}</td> ", "接收人");
sb.AppendFormat("<td align=\"left\" >{0}</td> ", Person_PersonsService.getSignatureName(getRectifyNotices.DutyPersonId));
sb.AppendFormat("<td align=\"center\" >{0}</td> ", "接收日期");
sb.AppendFormat("<td align=\"left\" >{0}</td> ", string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.DutyPersonTime));
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" style=\"border-bottom: none;\" >{0}</td> ", "注: 1.本表由总包单位项目安全经理签发,一般隐患抄送专业工程师监督;较大隐患抄送施工经理监督;重大隐患需要由项目经理签字并报公司施工管理部备案。");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" style=\"border-top: none;\">{0}</td> ", "&nbsp; &nbsp;2.本表一式2份,签发单位和接收单位各一份。");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" style=\"width: 100%; font-size: 11pt; font-weight: bold;border-right: none;border-left: none;border-bottom: none;border-top: none; \">{0}</td> ", "附图:");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 20px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" >{0}</td> ", "整改前的照片");
sb.Append("</tr>");
int j = 1;
foreach (var item in getItem)
{
var att = AttachFileService.GetAttachFile(item.RectifyNoticesItemId.ToString() + "#1", BLL.Const.ProjectRectifyNoticesMenuId);
if (att != null && !string.IsNullOrEmpty(att.AttachUrl))
{
string imgStr = string.Empty;
List<string> listStr = Funs.GetStrListByStr(att.AttachUrl, ',');
foreach (var urlItem in listStr)
{
imgStr += "<img width='100' height='100' src='" + (Funs.SGGLUrl + urlItem).Replace('\\', '/') + "'></img>&nbsp;&nbsp;";
}
sb.Append("<tr>");
sb.AppendFormat("<td align=\"center\" colspan=\"4\" style=\"border-bottom: none;\">{0}</td> ", imgStr);
sb.Append("</tr>");
sb.Append("<tr style=\"height: 20px\">");
sb.AppendFormat("<td align=\"center\" colspan=\"4\" style=\"border-top: none;\">{0}</td> ", "图 " + j.ToString());
sb.Append("</tr>");
j++;
}
}
sb.Append("</table>");
}
return sb.ToString();
}
#endregion
#region
@@ -421,6 +631,186 @@
}
return sb.ToString();
}
public static string GetRectifyNoticesTableHtmlAll2(string projectId)
{
StringBuilder sb = new StringBuilder();
sb.Append("<meta http-equiv=\"content-type\" content=\"application/word; charset=UTF-8\"/>");
var getRectifyNoticesAll = from x in Funs.DB.Check_RectifyNotices
orderby x.RectifyNoticesCode
where x.ProjectId == projectId
select x;
foreach (var getRectifyNotices in getRectifyNoticesAll)
{
sb.Append("<table width=\"100% \" cellspacing=\"0\" rules=\"all\" border=\"1\" style=\"border-collapse:collapse;font-size: 11pt;\">");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" colspan=\"4\" style=\"width: 100%; font-size: 12pt; font-weight: bold;border-right: none;border-left: none;border-bottom: none;border-top: none; \">{0}</td> ", "安全隐患整改反馈单");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" colspan=\"3\" style=\"border-right: none;border-left: none;border-top: none; \">{0}</td> ", "项目名称:" + BLL.ProjectService.GetProjectNameByProjectId(getRectifyNotices.ProjectId));
sb.AppendFormat("<td align=\"center\" style=\"border-right: none;border-left: none;border-top: none; \">{0}</td> ", "编号:" + getRectifyNotices.RectifyNoticesCode);
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" style=\"width: 18%; \">{0}</td> ", "受检单位名称");
sb.AppendFormat("<td align=\"left\" style=\"width: 32%; \">{0}</td> ", UnitService.GetUnitNameByUnitId(getRectifyNotices.UnitId));
sb.AppendFormat("<td align=\"center\" style=\"width: 18%; \">{0}</td> ", "单位工程名称");
sb.AppendFormat("<td align=\"left\" style=\"width: 32%; \">{0}</td> ", UnitWorkService.GetUnitWorkName(getRectifyNotices.WorkAreaId));
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" >{0}</td> ", "检查人员");
sb.AppendFormat("<td align=\"left\" colspan=\"3\">{0}</td> ", Person_PersonsService.getPersonsNamesPersonIds(getRectifyNotices.CheckManIds));
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" >{0}</td> ", "检查日期");
sb.AppendFormat("<td align=\"left\" colspan=\"3\">{0}</td> ", string.Format("{0:yyyy-MM-dd}", getRectifyNotices.CheckedDate));
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" >{0}</td> ", "隐患类别");
if (getRectifyNotices.HiddenHazardType == "3")
{
sb.AppendFormat("<td align=\"left\" colspan=\"3\">{0}</td> ", "☐一般 ☐较大 √重大");
}
else if (getRectifyNotices.HiddenHazardType == "2")
{
sb.AppendFormat("<td align=\"left\" colspan=\"3\">{0}</td> ", "☐一般 √较大 ☐重大");
}
else
{
sb.AppendFormat("<td align=\"left\" colspan=\"3\">{0}</td> ", "√一般 ☐较大 ☐重大");
}
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" style=\"border-bottom: none;\" >{0}</td> ", "&nbsp; &nbsp;我单位接到编号为 " + getRectifyNotices.RectifyNoticesCode + " 的安全隐患整改通知单后,现已按要求完成了整改,具体整改情况如下:");
sb.Append("</tr>");
var getItem = from x in Funs.DB.Check_RectifyNoticesItem
where x.RectifyNoticesId == getRectifyNotices.RectifyNoticesId
orderby x.RectifyNoticesItemId
select x;
int i = 1;
foreach (var item in getItem)
{
string contStr = "&nbsp; &nbsp;" + i.ToString() + "." + item.RectifyResults + "(详见附图" + i.ToString() + ")。是否合格:" + (item.IsRectify.HasValue ? (item.IsRectify == true ? "合格" : "不合格") : "");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" style=\"border-top: none;border-bottom: none;\" >{0}</td> ", contStr);
sb.Append("</tr>");
i++;
}
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" style=\"border-top: none;border-bottom: none;\" >{0}</td> ", "");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"right\" colspan=\"4\" style=\"border-top: none;border-bottom: none;\" >{0}</td> ", "施工单位项目安全经理:" + Person_PersonsService.getSignatureName(getRectifyNotices.DutyPersonId) + "&nbsp; &nbsp;"
+ "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.CompleteDate) + "&nbsp; &nbsp;");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"right\" colspan=\"4\" style=\"border-top: none;\" >{0}</td> ", "施工单位项目负责人:" + Person_PersonsService.getSignatureName(getRectifyNotices.UnitHeadManId) + "&nbsp; &nbsp;"
+ "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.UnitHeadManDate) + "&nbsp; &nbsp;");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" style=\"border-bottom: none;\" >{0}</td> ", "总包单位复查意见:");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" style=\"border-top: none;border-bottom: none;\" >{0}</td> ", "&nbsp; &nbsp;" + getRectifyNotices.ReCheckOpinion);
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" style=\"border-top: none;border-bottom: none;\" >{0}</td> ", "");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"right\" colspan=\"4\" style=\"border-top: none;border-bottom: none;\" >{0}</td> ", "安全经理/安全工程师:" + Person_PersonsService.getSignatureName(getRectifyNotices.CheckPerson) + "&nbsp; &nbsp;");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"right\" colspan=\"4\" style=\"border-top: none;\">{0}</td> ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.ReCheckDate) + "&nbsp; &nbsp;");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" rowspan=\"3\">{0}</td> ", "抄送:");
if (string.IsNullOrEmpty(getRectifyNotices.ProfessionalEngineerId))
{
sb.AppendFormat("<td align=\"left\" colspan=\"2\">{0}</td> ", "☐专业工程师:");
sb.AppendFormat("<td align=\"left\" >{0}</td> ", "日期:");
}
else
{
sb.AppendFormat("<td align=\"left\" colspan=\"2\">{0}</td> ", "√专业工程师:" + Person_PersonsService.getSignatureName(getRectifyNotices.ProfessionalEngineerId));
sb.AppendFormat("<td align=\"left\" >{0}</td> ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.ProfessionalEngineerTime2));
}
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
if (string.IsNullOrEmpty(getRectifyNotices.ConstructionManagerId))
{
sb.AppendFormat("<td align=\"left\" colspan=\"2\">{0}</td> ", "☐施工经理:");
sb.AppendFormat("<td align=\"left\" >{0}</td> ", "日期:");
}
else
{
sb.AppendFormat("<td align=\"left\" colspan=\"2\">{0}</td> ", "√施工经理:" + Person_PersonsService.getSignatureName(getRectifyNotices.ConstructionManagerId));
sb.AppendFormat("<td align=\"left\" >{0}</td> ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.ConstructionManagerTime2));
}
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
if (string.IsNullOrEmpty(getRectifyNotices.ProjectManagerId))
{
sb.AppendFormat("<td align=\"left\" colspan=\"2\">{0}</td> ", "☐项目经理:");
sb.AppendFormat("<td align=\"left\" >{0}</td> ", "日期:");
}
else
{
sb.AppendFormat("<td align=\"left\" colspan=\"2\">{0}</td> ", "√项目经理:" + Person_PersonsService.getSignatureName(getRectifyNotices.ProjectManagerId));
sb.AppendFormat("<td align=\"left\" >{0}</td> ", "日期:" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", getRectifyNotices.ProjectManagerTime2));
}
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" style=\"width: 100%; font-size: 11pt; font-weight: bold;border-right: none;border-left: none;border-bottom: none;border-top: none; \">{0}</td> ", "附图:");
sb.Append("</tr>");
sb.Append("<tr style=\"height: 20px\">");
sb.AppendFormat("<td align=\"left\" colspan=\"4\" >{0}</td> ", "整改后的照片");
sb.Append("</tr>");
int j = 1;
foreach (var item in getItem)
{
var att = AttachFileService.GetAttachFile(item.RectifyNoticesItemId.ToString() + "#2", BLL.Const.ProjectRectifyNoticesMenuId);
if (att != null && !string.IsNullOrEmpty(att.AttachUrl))
{
string imgStr = string.Empty;
List<string> listStr = Funs.GetStrListByStr(att.AttachUrl, ',');
foreach (var urlItem in listStr)
{
imgStr += "<img width='100' height='100' src='" + (Funs.SGGLUrl + urlItem).Replace('\\', '/') + "'></img>&nbsp;&nbsp;";
}
sb.Append("<tr>");
sb.AppendFormat("<td align=\"center\" colspan=\"4\" style=\"border-bottom: none;\">{0}</td> ", imgStr);
sb.Append("</tr>");
sb.Append("<tr style=\"height: 20px\">");
sb.AppendFormat("<td align=\"center\" colspan=\"4\" style=\"border-top: none;\">{0}</td> ", "图 " + j.ToString());
sb.Append("</tr>");
j++;
}
}
sb.Append("</table>");
}
return sb.ToString();
}
#endregion
#region
@@ -1795,7 +2185,7 @@
sb.Append("<tr style=\"height: 35px\">");
sb.AppendFormat("<td align=\"center\" colspan=\"2\" >{0}</td> ", "项目名称");
sb.AppendFormat("<td align=\"center\" colspan=\"4\" >{0}</td> ", BLL.ProjectService.GetProjectNameByProjectId(getCostManage.ProjectId));
sb.AppendFormat("<td align=\"center\" colspan=\"4\" >{0}</td> ", BLL.ProjectService.GetProjectNameByProjectId(getCostManage.ProjectId));
sb.Append("</tr>");
sb.Append("<tr style=\"height: 35px\">");
@@ -1833,7 +2223,7 @@
sb.AppendFormat("<td align=\"center\" style=\"width: 20%; \" >{0}</td> ", "分项名称");
sb.AppendFormat("<td align=\"center\" style=\"width: 15%; \" >{0}</td> ", "子项名称");
sb.Append("</tr>");
var getItem = BLL.CostManageItemService.GetCostManageItemByCostManageId(costManageId);
var getItem = BLL.CostManageItemService.GetCostManageItemByCostManageId(costManageId);
int i = 1;
foreach (var item in getItem)
{
@@ -1843,12 +2233,12 @@
sb.AppendFormat("<td align=\"center\" >{0}</td> ", item.CostTypeName);
sb.AppendFormat("<td align=\"center\" >{0}</td> ", item.InvestCostProject);
sb.AppendFormat("<td align=\"center\" >{0}</td> ", item.PriceMoney.ToString());
sb.AppendFormat("<td align=\"center\" >{0}</td> ","");
sb.AppendFormat("<td align=\"center\" >{0}</td> ", "");
sb.Append("</tr>");
i++;
}
string opinin1 = string.Empty;string date1 = string.Empty;string signatureName1 = string.Empty;
string opinin1 = string.Empty; string date1 = string.Empty; string signatureName1 = string.Empty;
var getFlow1 = Funs.DB.CostGoods_CostManageFlowOperate.FirstOrDefault(x => x.CostManageId == costManageId && x.SortIndex == 1);
if (getFlow1 != null)
{
@@ -1937,7 +2327,7 @@
}
return sb.ToString();
}
#endregion
}
}