不符合项清单基础数据字典(安全问题分类、性质;质量问题分类、性质)

This commit is contained in:
2026-05-07 19:32:17 +08:00
parent 0c0ceebd0f
commit 578085acd1
49 changed files with 6758 additions and 294 deletions
@@ -79,7 +79,7 @@ namespace FineUIPro.Web.BaseInfo
/// <returns></returns>
private List<Model.Base_SafetyProblemClassify> GetNewTraining()
{
return (from x in Funs.DB.Base_SafetyProblemClassify orderby x.ClassifyCode select x).ToList(); ;
return (from x in Funs.DB.Base_SafetyProblemClassify orderby x.ClassifyCode select x).ToList(); ;
}
#endregion
@@ -329,10 +329,10 @@ namespace FineUIPro.Web.BaseInfo
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
string Id = this.trObj.SelectedNode.Nodes.Count == 0 ? this.trObj.SelectedNode.NodeID : string.Empty;
string itemId = Grid1.SelectedRowID;
//itemId = itemId.Substring(0, itemId.IndexOf("_"));
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("SafetyProblemClassifyItemSave.aspx?ClassifyItemId={0}", itemId, "编辑 - ")));
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("SafetyProblemClassifyItemSave.aspx?ClassifyItemId={0}&ClassifyId={1}", itemId, Id, "编辑 - ")));
}
#endregion
@@ -429,113 +429,5 @@ namespace FineUIPro.Web.BaseInfo
Response.End();
}
#region
///// <summary>
///// 导出方法
///// </summary>
///// <param name="grid"></param>
///// <returns></returns>
//public static string GetGridTableHtml(Grid grid, int count)
//{
// StringBuilder sb = new StringBuilder();
// sb.Append("<meta http-equiv=\"content-type\" content=\"application/excel; charset=UTF-8\"/>");
// sb.Append("<table cellspacing=\"0\" rules=\"all\" border=\"1\" style=\"border-collapse:collapse;\">");
// sb.Append("<tr>");
// foreach (GridColumn column in grid.Columns)
// {
// if (column.ColumnIndex < count)
// {
// sb.AppendFormat("<td>{0}</td>", column.HeaderText);
// }
// }
// sb.Append("</tr>");
// foreach (GridRow row in grid.Rows)
// {
// sb.Append("<tr>");
// foreach (GridColumn column in grid.Columns)
// {
// if (column.ColumnIndex < count)
// {
// string html = row.Values[column.ColumnIndex].ToString();
// if (column.ColumnID == "tfNumber" && (row.FindControl("lbNumber") as AspNet.Label) != null)
// {
// html = (row.FindControl("lbNumber") as AspNet.Label).Text;
// }
// if (column.ColumnID == "tfCompanyTrainingItemCode" && (row.FindControl("lbCompanyTrainingItemCode") as AspNet.Label) != null)
// {
// html = (row.FindControl("lbCompanyTrainingItemCode") as AspNet.Label).Text;
// }
// if (column.ColumnID == "tfCompanyTrainingItemName" && (row.FindControl("lbCompanyTrainingItemName") as AspNet.Label) != null)
// {
// html = (row.FindControl("lbCompanyTrainingItemName") as AspNet.Label).Text;
// }
// if (column.ColumnID == "tfCompileMan" && (row.FindControl("lbCompileMan") as AspNet.Label) != null)
// {
// html = (row.FindControl("lbCompileMan") as AspNet.Label).Text;
// }
// if (column.ColumnID == "tfCompileDate" && (row.FindControl("lbCompileDate") as AspNet.Label) != null)
// {
// html = (row.FindControl("lbCompileDate") as AspNet.Label).Text;
// }
// sb.AppendFormat("<td>{0}</td>", html);
// }
// }
// sb.Append("</tr>");
// }
// sb.Append("</table>");
// return sb.ToString();
//}
#endregion
///// <summary>
///// 行事件
///// </summary>
///// <param name="sender"></param>
///// <param name="e"></param>
//protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
//{
// if (e.CommandName == "Attach")
// {
// string attUrl = this.Grid1.Rows[e.RowIndex].Values[this.Grid1.Columns.Count - 1].ToString();
// try
// {
// string url = Funs.RootPath + attUrl;
// FileInfo info = new FileInfo(url);
// string savedName = Path.GetFileName(url);
// if (!info.Exists || string.IsNullOrEmpty(savedName))
// {
// url = Funs.RootPath + "Images//Null.jpg";
// info = new FileInfo(url);
// }
// if (Path.GetExtension(savedName) == ".mp4" || Path.GetExtension(savedName).ToLower() == ".mp4" || Path.GetExtension(savedName) == ".m4v")
// {
// string mpUrl = HttpUtility.UrlEncode(attUrl.Replace('\\', '/'));
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/player.aspx?url={0}", attUrl.Replace('\\', '/'), "播放 - "), "播放视频", 700, 560));
// }
// else
// {
// string fileName = Path.GetFileName(url);
// long fileSize = info.Length;
// System.Web.HttpContext.Current.Response.Clear();
// //System.Web.HttpContext.Current.Response.ContentType = "application/x-zip-compressed";
// System.Web.HttpContext.Current.Response.ContentType = "application/octet-stream";
// System.Web.HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
// System.Web.HttpContext.Current.Response.AddHeader("Content-Length", fileSize.ToString());
// System.Web.HttpContext.Current.Response.TransmitFile(url, 0, fileSize);
// System.Web.HttpContext.Current.Response.Flush();
// System.Web.HttpContext.Current.Response.End();
// }
// }
// catch (Exception)
// {
// }
// }
//}
}
}