危险源管理模块接入真实数据库:新增危大/超危工程、风险控制清单、安全验收、安全巡检、临时用电管理(含前端页面、BLL/API服务、WebAPI控制器、Model项、SQL脚本与接口文档)
排除 CreateModel.bat(含明文sa密码与本地服务器名,未入库)
This commit is contained in:
@@ -62,10 +62,6 @@ namespace FineUIPro.Web.HJGL.WeldingReport
|
||||
#endregion
|
||||
|
||||
#region 绑定BindGrid
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
private DataTable tb = null;
|
||||
|
||||
/// <summary>
|
||||
/// 绑定数据
|
||||
@@ -275,7 +271,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport
|
||||
{
|
||||
row.CreateCell(5).SetCellValue(tb.Rows[i]["JOT_Dia"] != DBNull.Value ? ((decimal)tb.Rows[i]["JOT_Dia"]).ToString("##.#") : "");
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
row.CreateCell(6).SetCellValue(tb.Rows[i]["JOT_Sch"] != DBNull.Value ? tb.Rows[i]["JOT_Sch"].ToString() : "");
|
||||
row.CreateCell(7).SetCellValue(tb.Rows[i]["JOT_FactSch"] != DBNull.Value ? tb.Rows[i]["JOT_FactSch"].ToString() : "");
|
||||
row.CreateCell(8).SetCellValue(tb.Rows[i]["STE_Name1"] != DBNull.Value ? tb.Rows[i]["STE_Name1"].ToString() : "");
|
||||
@@ -288,7 +284,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport
|
||||
{
|
||||
row.CreateCell(14).SetCellValue(tb.Rows[i]["JOT_WeldDate"] != DBNull.Value ? ((DateTime)tb.Rows[i]["JOT_WeldDate"]).ToString("yyyy-MM-dd") : "");
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
row.CreateCell(15).SetCellValue(tb.Rows[i]["JOT_DailyReportNo"] != DBNull.Value ? tb.Rows[i]["JOT_DailyReportNo"].ToString() : "");
|
||||
row.CreateCell(16).SetCellValue(tb.Rows[i]["CH_TRUSTCODE1"] != DBNull.Value ? tb.Rows[i]["CH_TRUSTCODE1"].ToString() : "");
|
||||
row.CreateCell(17).SetCellValue(tb.Rows[i]["ProessName"] != DBNull.Value ? tb.Rows[i]["ProessName"].ToString() : "");
|
||||
@@ -297,7 +293,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport
|
||||
{
|
||||
row.CreateCell(19).SetCellValue(tb.Rows[i]["ProessDate"] != DBNull.Value ? ((DateTime)tb.Rows[i]["ProessDate"]).ToString("yyyy-MM-dd") : "");
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
//try
|
||||
//{
|
||||
// row.CreateCell(20).SetCellValue(tb.Rows[i]["CHT_CHECKDATE"] != DBNull.Value ? ((DateTime)tb.Rows[i]["CHT_FilmDate"]).ToString("yyyy-MM-dd") : "");
|
||||
@@ -315,12 +311,12 @@ namespace FineUIPro.Web.HJGL.WeldingReport
|
||||
{
|
||||
row.CreateCell(29).SetCellValue(tb.Rows[i]["HotHardDate"] != DBNull.Value ? ((DateTime)tb.Rows[i]["HotHardDate"]).ToString("yyyy-MM-dd") : "");
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
row.CreateCell(30).SetCellValue(tb.Rows[i]["CH_TrustDate"] != DBNull.Value ? ((DateTime)tb.Rows[i]["CH_TrustDate"]).ToString("yyyy-MM-dd") : "");
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
row.CreateCell(31).SetCellValue(tb.Rows[i]["PTP_TestPackageNo"] != DBNull.Value ? tb.Rows[i]["PTP_TestPackageNo"].ToString() : "");
|
||||
row.CreateCell(32).SetCellValue(tb.Rows[i]["WeldTypeCode"] != DBNull.Value ? tb.Rows[i]["WeldTypeCode"].ToString() : "");
|
||||
|
||||
@@ -384,7 +380,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport
|
||||
/// </summary>
|
||||
/// <param name="grid"></param>
|
||||
/// <returns></returns>
|
||||
private string GetGridTableHtml(Grid grid)
|
||||
private new string GetGridTableHtml(Grid grid)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
grid.PageSize = this.Grid1.RecordCount;
|
||||
@@ -428,7 +424,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport
|
||||
sb.AppendFormat("<td style=\"vnd.ms-excel.numberformat:@\" >{0}</td>", "");
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Exception)
|
||||
{
|
||||
sb.AppendFormat("<td style=\"vnd.ms-excel.numberformat:@\" >{0}</td>", "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user