diff --git a/DataBase/版本日志/SGGLDB_WH_2024-04-28-bwj.sql b/DataBase/版本日志/SGGLDB_WH_2024-04-28-bwj.sql new file mode 100644 index 00000000..aa22a3e0 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_2024-04-28-bwj.sql @@ -0,0 +1,19 @@ + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +values('51ee983f-085e-4f02-b819-cab049d9cc27','Ŀܱ£','CQMS/ManageReportNew/WeekReport.aspx',15,'7ecf0229-8a0b-40ce-8b04-e556f7bd3394','Menu_CQMS',0,1,1) +go + insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + values('F30A37F8-A05E-4EFA-A577-26E909733C14','51ee983f-085e-4f02-b819-cab049d9cc27','',1) + insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + values('A214EF84-5C60-40EA-823C-DC1CB523A214','51ee983f-085e-4f02-b819-cab049d9cc27','޸',2) + insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + values('964847FA-521C-4BAF-B172-A5B2A06A18A8','51ee983f-085e-4f02-b819-cab049d9cc27','ɾ',3) + insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + values('256E7842-64DC-44EB-AAD5-A6DBC1DA31C8','51ee983f-085e-4f02-b819-cab049d9cc27','',4) + go + +alter table Report_WeekAndMonthReport_New add ReportType nvarchar(10) +go + +update Report_WeekAndMonthReport_New set ReportType='1'where ReportType is null +go diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index 8ee4bfb6..feaed4ac 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -3241,6 +3241,11 @@ namespace BLL /// public const string MonthReportNewTemplateUrl = "File\\Word\\CQMS\\项目质量月报.doc"; + /// + /// 新项目质量周报模板文件原始虚拟路径 + /// + public const string WeekReportNewTemplateUrl = "File\\Word\\CQMS\\项目质量周报.doc"; + /// /// 资料收发文登记记录导入模板原始虚拟路径 /// @@ -3622,9 +3627,14 @@ namespace BLL public const string DivisionId15 = "BD0C9DC9-C621-497E-B947-A85F46D86AA4"; /// - /// 质量周报(新) + /// 质量月报(新) /// - public const string CQWeekReportNewMenuId = "4164BF9B-DA7C-4287-AC11-D1EB6A664F57"; + public const string MonthReportNewMenuId = "4164BF9B-DA7C-4287-AC11-D1EB6A664F57"; + + /// + /// 质量周报(新) + /// + public const string WeekReportNewMenuId = "51ee983f-085e-4f02-b819-cab049d9cc27"; #region 质量管理 #region 基础设置 diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReport.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReport.aspx.cs index 17d17647..588b9c69 100644 --- a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReport.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReport.aspx.cs @@ -26,9 +26,9 @@ namespace FineUIPro.Web.CQMS.ManageReportNew public void BindGrid() { - string strSql = @"select Id, Sortid, StartDate, EndDate, ProjectId + string strSql = @"select Id, Sortid, StartDate, EndDate, ProjectId,ReportType from Report_WeekAndMonthReport_New C - where C.ProjectId = @ProjectId"; + where C.ReportType='1' AND C.ProjectId = @ProjectId"; List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); SqlParameter[] parameter = listStr.ToArray(); @@ -129,7 +129,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew { return; } - var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CQWeekReportNewMenuId); + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.MonthReportNewMenuId); if (buttonList.Count() > 0) { if (buttonList.Contains(BLL.Const.BtnModify)) diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs index 4ae5d19a..e1d30040 100644 --- a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs @@ -2751,6 +2751,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew Model.Report_WeekAndMonthReport_New report = new Model.Report_WeekAndMonthReport_New(); report.Id = ReportId; report.ProjectId = this.CurrUser.LoginProjectId; + report.ReportType = "1";//1.月报,2-周报 if (!string.IsNullOrEmpty(this.txtPeriod.Text.Trim())) { try diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReport.aspx b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReport.aspx new file mode 100644 index 00000000..bf510e6b --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReport.aspx @@ -0,0 +1,84 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WeekReport.aspx.cs" Inherits="FineUIPro.Web.CQMS.ManageReportNew.WeekReport" %> + + + + + + + 项目质量周报(新) + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReport.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReport.aspx.cs new file mode 100644 index 00000000..82c1a59c --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReport.aspx.cs @@ -0,0 +1,3204 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.IO; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using Aspose.Words; +using Aspose.Words.Tables; +using BLL; + +namespace FineUIPro.Web.CQMS.ManageReportNew +{ + public partial class WeekReport : PageBase + { + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + BindGrid(); + GetButtonPower(); + } + } + + public void BindGrid() + { + string strSql = @"select Id, Sortid, StartDate, EndDate, ProjectId,ReportType + from Report_WeekAndMonthReport_New C + where C.ReportType='2' AND C.ProjectId = @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 格式化字符串 + /// + /// + /// + protected static string ConvertDate(object reportId) + { + string date = string.Empty; + if (reportId != null) + { + var r = BLL.WeekAndMonthReportNewService.Detail(reportId.ToString()); + if (r != null) + { + date = string.Format("{0:yyyy-MM-dd}", r.StartDate) + " 至 " + string.Format("{0:yyyy-MM-dd}", r.EndDate); + } + } + return date; + } + + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WeekReportEdit.aspx?reportId=" + Grid1.SelectedRowID, "添加 - "))); + } + + + protected void btnNew_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WeekReportEdit.aspx", "添加 - "))); + } + + protected void btnMenuModify_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WeekReportEdit.aspx?reportId=" + Grid1.SelectedRowID, "添加 - "))); + } + + protected void btnMenuView_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WeekReportEdit.aspx?view=view&reportId=" + Grid1.SelectedRowID, "查看 - "))); + } + + protected void btnMenuDel_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + //本周质量目标管理情况 + CqmsTargetService.Delete(rowID); + TextBoxContentService.Delete(rowID); + Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(rowID); + WeekAndMonthReportNewService.Delete(rowID); + } + BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == BLL.Const._Null) + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.WeekReportNewMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnModify)) + { + this.btnMenuModify.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + } + } + #endregion + + #region 导出 + + /** + * 创建列值 + * @param value 要插入的值 + * @param doc Document对象 + * @return + */ + public static Cell CreateCell(String value, Document doc, double cellWidth, string cellMerge = "", string CenterPage = "") + { + Cell cell = new Cell(doc); + Paragraph p = new Paragraph(doc); + if (!string.IsNullOrEmpty(cellMerge)) + { + if (cellMerge == "0") + { + cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;//竖直方向合并的第一个单元格 + } + else + { + cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;//竖直方向合并的第一个单元格 + } + + } + else + { + cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None; + } + if (!string.IsNullOrEmpty(CenterPage)) + { + //序号 + value = " " + value; + } + + + p.AppendChild(new Run(doc, value)); + + cell.CellFormat.Width = cellWidth; + + cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center; + + cell.AppendChild(p); + return cell; + } + + + protected void btnPrinter_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string Id = Grid1.SelectedRowID;//质量周报的主键 + try + { + string rootPath = Server.MapPath("~/"); + string initTemplatePath = string.Empty; + string uploadfilepath = string.Empty; + string newUrl = string.Empty; + string filePath = string.Empty; + Model.SGGLDB db = Funs.DB; + initTemplatePath = Const.WeekReportNewTemplateUrl; + uploadfilepath = rootPath + initTemplatePath; + //newUrl = uploadfilepath.Replace(".doc", "(" + Funs.GetNewFileName() + ")" + ".doc"); + //名称XX项目质量周报第几期 + + //根据id获取质量月报主表数据 + var weekModel = db.Report_WeekAndMonthReport_New.FirstOrDefault(x => x.Id == Id); + var startDate = Convert.ToDateTime(weekModel.StartDate); + var endDate = Convert.ToDateTime(weekModel.EndDate); + //获取project + var pModel = db.Base_Project.FirstOrDefault(x => x.ProjectId == weekModel.ProjectId); + var urlHz = startDate.ToString("yyyyMMdd") + "-" + + endDate.ToString("yyyyMMdd"); + + newUrl = uploadfilepath.Replace("项目质量周报", pModel.ShortName + "项目质量周报(第" + weekModel.SortId + "期)" + urlHz); + + if (File.Exists(newUrl)) + { + File.Delete(newUrl); + } + File.Copy(uploadfilepath, newUrl); + //更新书签内容 + Document doc = new Aspose.Words.Document(newUrl); + DocumentBuilder builder = new DocumentBuilder(doc); + + + + #region 头部静态列 + //业主单位 + var unitsYz = (from x in db.Base_Unit + join y in db.Project_ProjectUnit + on x.UnitId equals y.UnitId + where y.ProjectId == this.CurrUser.LoginProjectId && y.UnitType == BLL.Const.ProjectUnitType_4 + orderby x.UnitName + select x).FirstOrDefault(); + + Bookmark bkmark = doc.Range.Bookmarks["username"]; + if (bkmark != null) + { + + if (unitsYz != null) + { + bkmark.Text = unitsYz.UnitName; + } + //var uModel = db.Sys_User.FirstOrDefault(x => x.UserId == weekModel.CreateMan); + //if (uModel!=null) + //{ + // bkmark.Text = uModel.UserName; + //} + } + + bkmark = doc.Range.Bookmarks["projectNo"]; + if (bkmark != null) + { + bkmark.Text = pModel.ProjectCode; + } + + bkmark = doc.Range.Bookmarks["createdate"]; + if (bkmark != null) + { + bkmark.Text = weekModel.CreateDate.ToString().Split(' ')[0].Replace('/', '.'); + } + + bkmark = doc.Range.Bookmarks["projectname"]; + if (bkmark != null) + { + bkmark.Text = pModel.ProjectName; + } + + bkmark = doc.Range.Bookmarks["quamanagername"]; + if (bkmark != null) + { + //var zlName = ""; + ////根据项目获取质量经理 + //var puserList = db.Project_ProjectUser.Where(x => x.ProjectId == weekModel.ProjectId && x.RoleId.Contains(BLL.Const.QAManager)).ToList(); + //foreach (var item in puserList) + //{ + // zlName+= db.Sys_User.FirstOrDefault(x => x.UserId == item.UserId).UserName+","; + //} + + var getPUser = Funs.DB.Project_ProjectUser.Where(x => x.ProjectId == weekModel.ProjectId); + ////质量经理 + var qa = getPUser.FirstOrDefault(x => x.RoleId.Contains(BLL.Const.QAManager)); + + bkmark.Text = db.Sys_User.FirstOrDefault(x => x.UserId == qa.UserId).UserName; + } + + bkmark = doc.Range.Bookmarks["reportAlldate"]; + //20XX年XX月XX日至20XX年XX月XX日 + if (bkmark != null) + { + var sdate = Convert.ToDateTime(weekModel.StartDate); + var edate = Convert.ToDateTime(weekModel.EndDate); + bkmark.Text = sdate.Year + "年" + sdate.Month + "月" + sdate.Day + "日至" + + edate.Year + "年" + edate.Month + "月" + edate.Day + "日"; + } + + bkmark = doc.Range.Bookmarks["reportindex"]; + if (bkmark != null) + { + bkmark.Text = weekModel.SortId; + } + + bkmark = doc.Range.Bookmarks["fromcode"]; + //fromcode,项目号-RM-PQM-顺序号 + if (bkmark != null) + { + bkmark.Text = pModel.ProjectCode + "-RM-PQM-" + weekModel.SortId; + } + #endregion + + #region 本月质量目标管理情况 + //获取word文档中的第二个表格 + int whileIndex = 1; + Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 1, true); + bool isYm = true; + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + var cqrmTargetList = db.Report_CqmsTarget.Where(x => x.ReportId == Id).OrderBy(x => x.SortId); + int numberIndex = 1; + foreach (var item in cqrmTargetList) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ProStage, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.ProDescribe, doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TargetValue, doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthPer, doc, table.FirstRow.Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + + #endregion + + #region 本月主要工作内容 + var txtReportList = Funs.DB.Report_TextBoxContent.Where(x => x.ReportId == Id).ToList(); + + bkmark = doc.Range.Bookmarks["Content1"]; + if (bkmark != null) + { + bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "0").ContentText; + } + + bkmark = doc.Range.Bookmarks["Content2"]; + if (bkmark != null) + { + bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "1").ContentText; + } + + bkmark = doc.Range.Bookmarks["Content3"]; + if (bkmark != null) + { + bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "2").ContentText; + } + + bkmark = doc.Range.Bookmarks["Content8"]; + if (bkmark != null) + { + bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "8").ContentText; + } + + #endregion + + var ContuructionAllList = db.Report_Construction_Plan.Where(x => x.ReportId == Id).OrderBy(x => x.UnitOrMajor).ToList(); + + #region 3.施工方案及检验试验计划审批情况 + + #region 一般施工方案审批情况 + var ybsgfaList = ContuructionAllList.Where(x => x.ReType == "0").ToList(); + if (ybsgfaList.Count > 0) + { + isYm = true; + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0; + foreach (var item in ybsgfaList) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.UnitOrMajor, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num1 += item.Quantity1; + num2 += item.Quantity2; + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 危大工程方案审批情况 + var wdsgfaList = ContuructionAllList.Where(x => x.ReType == "1").ToList(); + if (wdsgfaList.Count > 0) + { + isYm = true; + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0, num3 = 0; + foreach (var item in wdsgfaList) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.UnitOrMajor, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity3.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num1 += item.Quantity1; + num2 += item.Quantity2; + num3 += item.Quantity3; + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + //创建行 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num3.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 质量控制点或检验试验计划(ITP)情况 + var itpList = ContuructionAllList.Where(x => x.ReType == "2").ToList(); + if (itpList.Count > 0) + { + isYm = true; + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0; + foreach (var item in itpList) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.UnitOrMajor, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num1 += item.Quantity1; + num2 += item.Quantity2; + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + //创建行 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #endregion + + #region 设计交底管理情况 + var sjjdList = ContuructionAllList.Where(x => x.ReType == "3").ToList(); + if (sjjdList.Count > 0) + { + isYm = true; + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0; + foreach (var item in sjjdList) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.UnitOrMajor, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num1 += item.Quantity1; + num2 += item.Quantity2; + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + //创建行 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 图纸会审管理情况 + var tzhsList = ContuructionAllList.Where(x => x.ReType == "4").ToList(); + if (tzhsList.Count > 0) + { + isYm = true; + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0; + foreach (var item in tzhsList) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.UnitOrMajor, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num1 += item.Quantity1; + num2 += item.Quantity2; + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + //创建行 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 6.设计变更管理情况 + int Quantity1Sum = 0, Quantity2Sum = 0, Quantity3Sum = 0, Quantity4Sum = 0, Quantity5Sum = 0, Quantity6Sum = 0; + DateTime projectStartDate = Convert.ToDateTime("2015-01-01"); + List StatisticsList = new List(); + Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId); + if (project != null) + { + if (project.StartDate != null) + { + projectStartDate = Convert.ToDateTime(project.StartDate); + } + } + int i = 1; + var cNProfessionals = from x in Funs.DB.Base_CNProfessional + where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId +&& x.CNProfessionalId != BLL.Const.ComprehensiveId + orderby x.SortIndex + select x; + foreach (var item in cNProfessionals) + { + //专业下所有集合 + List totalManagementList = BLL.DesignChangeOrderService.GetDesignChangeOrderListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, item.CNProfessionalId, projectStartDate, DateTime.Now); + //专业下当期集合 + List managementList = BLL.DesignChangeOrderService.GetDesignChangeOrderListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, item.CNProfessionalId, startDate, endDate); + Model.CheckStatisc checkStatisc = new Model.CheckStatisc(); + checkStatisc.Num = i; + checkStatisc.WorkName = item.ProfessionalName; + checkStatisc.CheckNum = managementList.Count(); + checkStatisc.TotalCheckNum = totalManagementList.Count(); + checkStatisc.OKNum = managementList.Count(x => x.ApprovalDate != null); + checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ApprovalDate != null); + checkStatisc.OneOKRate = managementList.Count(x => x.ImplementationFrontState == "已完成").ToString(); //当期完成数 + checkStatisc.TotalOneOKRate = totalManagementList.Count(x => x.ImplementationFrontState == "已完成").ToString(); //累计完成数 + + StatisticsList.Add(checkStatisc); + Quantity1Sum += checkStatisc.CheckNum; + Quantity2Sum += checkStatisc.TotalCheckNum; + Quantity3Sum += checkStatisc.OKNum; + Quantity4Sum += checkStatisc.TotalOKNum; + Quantity5Sum += Convert.ToInt32(checkStatisc.OneOKRate); + Quantity6Sum += Convert.ToInt32(checkStatisc.TotalOneOKRate); + } + if (StatisticsList.Count > 0) + { + isYm = true; + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 2; + //需要插入的table + foreach (var item in StatisticsList) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell((numberIndex - 1).ToString(), doc, table.Rows[0].Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.WorkName, doc, table.Rows[0].Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.CheckNum.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalCheckNum.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.OKNum.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalOKNum.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + row.Cells.Add(CreateCell(item.OneOKRate.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalOneOKRate.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex, row); + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + //创建行 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.Rows[0].Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(Quantity1Sum.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(Quantity2Sum.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(Quantity3Sum.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(Quantity4Sum.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(Quantity5Sum.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(Quantity6Sum.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + + } + + + + + #endregion + + #region 7.1合格焊工管理情况 + + Quantity1Sum = 0; Quantity2Sum = 0; Quantity3Sum = 0; Quantity4Sum = 0; Quantity5Sum = 0; Quantity6Sum = 0; + int Quantity7Sum = 0, Quantity8Sum = 0; + + List PassWelderList = new List(); + + if (project != null) + { + if (project.StartDate != null) + { + projectStartDate = Convert.ToDateTime(project.StartDate); + } + } + i = 1; + var units = from x in Funs.DB.Project_ProjectUnit + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitType == BLL.Const.ProjectUnitType_2 + orderby y.UnitCode + select new { x.UnitId, y.UnitName }; + + foreach (var item in units) + { + + var query = from c in db.Comprehensive_InspectionPerson + + join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin + + from u in unitJoin.DefaultIfEmpty() + join cn in db.Base_CNProfessional on c.CNProfessionalId equals cn.CNProfessionalId into cnJoin + + from cn in cnJoin.DefaultIfEmpty() + join p in db.Base_Post on c.PostId equals p.PostId into postJoin + + from p in postJoin.DefaultIfEmpty() + where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId + select new + + { + c.InspectionPersonId, + c.ProjectId, + u.UnitId, + u.UnitName, + c.PersonName, + c.ApprovalTime, + cn.ProfessionalName, + p.PostName + + }; + + //单位下所有集合 + // List totalWelderList = BLL.PersonManageService.GetWelderListByUnitId(this.CurrUser.LoginProjectId, item.UnitId); + //List welderList = BLL.PersonManageService.GetWelderListByUnitIdAndDate(this.CurrUser.LoginProjectId, item.UnitId, startDate, endDate); + var totalWelderList = query.ToList(); + var welderList = query + .Where(x => (x.ApprovalTime >= Convert.ToDateTime(startDate) && x.ApprovalTime <= Convert.ToDateTime(endDate))); + Model.PassWelderStatisc passWelderStatisc = new Model.PassWelderStatisc(); + passWelderStatisc.Num = i; + passWelderStatisc.UnitName = item.UnitName; + passWelderStatisc.PipeMountGuard = welderList.Count(x => x.ProfessionalName == "管道" && x.PostName == "焊工"); + passWelderStatisc.PipeTotal = totalWelderList.Count(x => x.ProfessionalName == "管道" && x.PostName == "焊工"); + passWelderStatisc.SteelStructureMountGuard = welderList.Count(x => x.ProfessionalName == "土建" && x.PostName == "焊工"); + passWelderStatisc.SteelStructureTotal = totalWelderList.Count(x => x.ProfessionalName == "土建" && x.PostName == "焊工"); + passWelderStatisc.EquipmentMountGuard = welderList.Count(x => x.ProfessionalName == "设备" && x.PostName == "焊工"); + passWelderStatisc.EquipmentTotal = totalWelderList.Count(x => x.ProfessionalName == "设备" && x.PostName == "焊工"); + passWelderStatisc.OtherMountGuard = welderList.Count(x => x.ProfessionalName != "管道" && x.ProfessionalName != "土建" && x.ProfessionalName != "设备" && x.PostName == "焊工"); + passWelderStatisc.OtherTotal = totalWelderList.Count(x => x.ProfessionalName != "管道" && x.ProfessionalName != "土建" && x.ProfessionalName != "设备" && x.PostName == "焊工"); + PassWelderList.Add(passWelderStatisc); + i++; + Quantity1Sum += passWelderStatisc.PipeMountGuard; + Quantity2Sum += passWelderStatisc.PipeTotal; + Quantity3Sum += passWelderStatisc.SteelStructureMountGuard; + Quantity4Sum += passWelderStatisc.SteelStructureTotal; + Quantity5Sum += passWelderStatisc.EquipmentMountGuard; + Quantity6Sum += passWelderStatisc.EquipmentTotal; + Quantity7Sum += passWelderStatisc.OtherMountGuard; + Quantity8Sum += passWelderStatisc.OtherTotal; + } + if (PassWelderList.Count > 0) + { + isYm = true; + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 2; + //需要插入的table + foreach (var item in PassWelderList) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell((numberIndex - 1).ToString(), doc, table.Rows[0].Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.UnitName, doc, table.Rows[0].Cells[1].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.PipeMountGuard.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.PipeTotal.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.SteelStructureMountGuard.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.SteelStructureTotal.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + row.Cells.Add(CreateCell(item.EquipmentMountGuard.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + row.Cells.Add(CreateCell(item.EquipmentTotal.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + row.Cells.Add(CreateCell(item.OtherMountGuard.ToString(), doc, table.Rows[1].Cells[8].CellFormat.Width)); + row.Cells.Add(CreateCell(item.OtherTotal.ToString(), doc, table.Rows[1].Cells[9].CellFormat.Width)); + + table.Rows.Insert(numberIndex, row); + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + //创建行 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.Rows[0].Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(Quantity1Sum.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(Quantity2Sum.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(Quantity3Sum.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(Quantity4Sum.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(Quantity5Sum.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(Quantity6Sum.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(Quantity7Sum.ToString(), doc, table.Rows[1].Cells[8].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(Quantity8Sum.ToString(), doc, table.Rows[1].Cells[9].CellFormat.Width)); + + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + + #endregion + + #region 7.2PQR/WPS报验情况 + var pqrList = ContuructionAllList.Where(x => x.ReType == "5").ToList(); + if (pqrList.Count > 0) + { + isYm = true; + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0; + foreach (var item in pqrList) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.UnitOrMajor, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num1 += item.Quantity1; + num2 += item.Quantity2; + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + //创建行 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + else + { + isYm = true; + numberIndex = 1; + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + //创建合计 + Row rowhj = new Row(doc); + double numcount0 = table.FirstRow.Cells[0].CellFormat.Width; + double numcount1 = table.FirstRow.Cells[1].CellFormat.Width; + double numcount2 = table.FirstRow.Cells[2].CellFormat.Width; + double numcount3 = table.FirstRow.Cells[3].CellFormat.Width; + double numcount4 = table.FirstRow.Cells[4].CellFormat.Width; + double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4; + rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount)); + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 7.3无损检测管理情况 + var NondestructiveTestlist = new List(); + //加载所有施工分包单位 + units = from x in Funs.DB.Project_ProjectUnit + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2) + orderby y.UnitCode + select new { x.UnitId, y.UnitName }; + + int? totalNum0 = 0, totalNum1 = 0;//拍片数量合计 + + + foreach (var item in units) + { + int? num0 = 0, num1 = 0;//拍片数量小计 + + var query = from c in db.ProcessControl_NondestructiveTest_New + + join u in db.Base_Unit on c.UnitId equals u.UnitId + + + + where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId + && c.CreateDate >= Convert.ToDateTime(startDate) && c.CreateDate <= Convert.ToDateTime(endDate) + + orderby c.CreateDate descending + + select new + + { + c.CreateDate, + c.ProjectId, + u.UnitId, + u.UnitName, + c.ProfessionalName, + c.MonthQuantity, + c.TotalQuantity, + c.MonthRate, + c.TotalRate + }; + if (query.ToList().Count > 0) + { + //加载工艺管道 + var gygdModel = query.FirstOrDefault(x => x.ProfessionalName == "工艺管道"); + var model = new Model.ProcessControl_NondestructiveTest_New(); + model.Id = Guid.NewGuid().ToString(); + model.CreateMan = item.UnitName;//用作存储施工单位名称 + model.ProfessionalName = "工艺管道"; + + if (gygdModel != null) + { + model.MonthQuantity = gygdModel.MonthQuantity; + model.TotalQuantity = gygdModel.TotalQuantity; + model.MonthRate = gygdModel.MonthRate + "%"; + model.TotalRate = gygdModel.TotalRate + "%"; + #region 小计和合计 + //小计 + num0 += gygdModel.MonthQuantity; + num1 += gygdModel.TotalQuantity; + + //合计 + totalNum0 += gygdModel.MonthQuantity; + totalNum1 += gygdModel.TotalQuantity; + + #endregion + NondestructiveTestlist.Add(model); + } + else + { + model.MonthQuantity = 0; + model.TotalQuantity = 0; + model.MonthRate = "0%"; + model.TotalRate = "0%"; + NondestructiveTestlist.Add(model); + } + + + + + //地管 + gygdModel = query.FirstOrDefault(x => x.ProfessionalName == "地管"); + model = new Model.ProcessControl_NondestructiveTest_New(); + model.Id = Guid.NewGuid().ToString(); + model.CreateMan = item.UnitName;//用作存储施工单位名称 + model.ProfessionalName = "地管"; + + if (gygdModel != null) + { + model.MonthQuantity = gygdModel.MonthQuantity; + model.TotalQuantity = gygdModel.TotalQuantity; + model.MonthRate = gygdModel.MonthRate + "%"; + model.TotalRate = gygdModel.TotalRate + "%"; + #region 小计和合计 + //小计 + num0 += gygdModel.MonthQuantity; + num1 += gygdModel.TotalQuantity; + + //合计 + totalNum0 += gygdModel.MonthQuantity; + totalNum1 += gygdModel.TotalQuantity; + + #endregion + NondestructiveTestlist.Add(model); + } + else + { + model.MonthQuantity = 0; + model.TotalQuantity = 0; + model.MonthRate = "0%"; + model.TotalRate = "0%"; + NondestructiveTestlist.Add(model); + } + + + //非标 + gygdModel = query.FirstOrDefault(x => x.ProfessionalName == "非标"); + model = new Model.ProcessControl_NondestructiveTest_New(); + model.Id = Guid.NewGuid().ToString(); + model.CreateMan = item.UnitName;//用作存储施工单位名称 + model.ProfessionalName = "非标"; + + if (gygdModel != null) + { + model.MonthQuantity = gygdModel.MonthQuantity; + model.TotalQuantity = gygdModel.TotalQuantity; + model.MonthRate = gygdModel.MonthRate + "%"; + model.TotalRate = gygdModel.TotalRate + "%"; + #region 小计和合计 + //小计 + num0 += gygdModel.MonthQuantity; + num1 += gygdModel.TotalQuantity; + + //合计 + totalNum0 += gygdModel.MonthQuantity; + totalNum1 += gygdModel.TotalQuantity; + + #endregion + NondestructiveTestlist.Add(model); + } + else + { + model.MonthQuantity = 0; + model.TotalQuantity = 0; + model.MonthRate = "0%"; + model.TotalRate = "0%"; + NondestructiveTestlist.Add(model); + } + //小计 + model = new Model.ProcessControl_NondestructiveTest_New(); + model.Id = Guid.NewGuid().ToString(); + model.CreateMan = item.UnitName;//用作存储施工单位名称 + model.ProfessionalName = "小计"; + model.MonthQuantity = num0; + model.TotalQuantity = num1; + model.MonthRate = ""; + model.TotalRate = ""; + NondestructiveTestlist.Add(model); + } + } + if (NondestructiveTestlist.Count > 0) + { + isYm = true; + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + //需要插入的table + var Unitname = ""; + int pageCount = 1; + foreach (var item in NondestructiveTestlist) + { + + //创建行 + Row row = new Row(doc); + + + //如果是第一列,或者 + if (numberIndex == 1 || Unitname != item.CreateMan) + { + if (Unitname != item.CreateMan && numberIndex != 1) + { + pageCount += 1; + } + row.Cells.Add(CreateCell((pageCount).ToString(), doc, table.Rows[0].Cells[0].CellFormat.Width, "0", "1")); + row.Cells.Add(CreateCell(item.CreateMan, doc, table.Rows[0].Cells[1].CellFormat.Width, "0")); + + Unitname = item.CreateMan; + } + else + { + row.Cells.Add(CreateCell((pageCount).ToString(), doc, table.Rows[0].Cells[0].CellFormat.Width, "1", "1")); + row.Cells.Add(CreateCell(item.CreateMan, doc, table.Rows[0].Cells[1].CellFormat.Width, "1")); + Unitname = item.CreateMan; + } + + + + row.Cells.Add(CreateCell(item.ProfessionalName.ToString(), doc, table.Rows[0].Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthQuantity.ToString(), doc, table.Rows[0].Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalQuantity.ToString(), doc, table.Rows[0].Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthRate.ToString(), doc, table.Rows[0].Cells[5].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalRate.ToString(), doc, table.Rows[0].Cells[6].CellFormat.Width)); + + table.Rows.Insert(numberIndex, row); + numberIndex += 1; + if (Unitname != item.CreateMan) + { + pageCount += 1; + } + + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + //创建行 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.Rows[0].Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(totalNum0.ToString(), doc, table.Rows[0].Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(totalNum1.ToString(), doc, table.Rows[0].Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[5].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[6].CellFormat.Width)); + + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + else + { + isYm = true; + numberIndex = 1; + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + //创建合计 + Row rowhj = new Row(doc); + double numcount0 = table.Rows[0].Cells[0].CellFormat.Width; + double numcount1 = table.Rows[0].Cells[1].CellFormat.Width; + double numcount2 = table.Rows[0].Cells[2].CellFormat.Width; + double numcount3 = table.Rows[0].Cells[3].CellFormat.Width; + double numcount4 = table.Rows[0].Cells[4].CellFormat.Width; + double numcount5 = table.Rows[0].Cells[5].CellFormat.Width; + double numcount6 = table.Rows[0].Cells[6].CellFormat.Width; + double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6; + rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount)); + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + + #endregion + + #region 8.设备材料报验管理情况 + var sbclbyList = ContuructionAllList.Where(x => x.ReType == "6").ToList(); + if (sbclbyList.Count > 0) + { + isYm = true; + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + //获取到第一列是序号的列 + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0; + foreach (var item in sbclbyList) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.UnitOrMajor, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Quantity2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.QuaRate.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num1 += item.Quantity1; + num2 += item.Quantity2; + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + //创建行 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + else + { + isYm = true; + numberIndex = 1; + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + //创建合计 + Row rowhj = new Row(doc); + double numcount0 = table.Rows[0].Cells[0].CellFormat.Width; + double numcount1 = table.Rows[0].Cells[1].CellFormat.Width; + double numcount2 = table.Rows[0].Cells[2].CellFormat.Width; + double numcount3 = table.Rows[0].Cells[3].CellFormat.Width; + double numcount4 = table.Rows[0].Cells[4].CellFormat.Width; + double numcount5 = table.Rows[0].Cells[5].CellFormat.Width; + double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5; + rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount)); + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + + #endregion + + var reportItem = db.Report_CQMS_MonthReportItem.Where(x => x.ReportId == Id).OrderBy(x => x.ContentName).ToList(); + + #region 9.计量器具报验管理情况 + var measuringInspection = reportItem.Where(x => x.ReType == "9").ToList(); + if (measuringInspection.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 13; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0; + foreach (var item in measuringInspection) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num1 += item.MonthsCount; + num2 += item.ProjectCount; + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + else + { + + isYm = true; + numberIndex = 1; + whileIndex = 13; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width)); + row.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + } + + #endregion + + #region 10.现场质量共检数据 + + #region 10-1 土建 + var TJInspection = reportItem.Where(x => x.ReType == "10-1").ToList(); + if (TJInspection != null || TJInspection.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 14; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0, num3 = 0, num4 = 0; + string num5 = string.Empty; + string num6 = string.Empty; + foreach (var item in TJInspection) + { + //创建行 + Row row = new Row(doc); + + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.Rows[0].Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.Rows[0].Cells[1].CellFormat.Width)); + // 合并第一行的前两个单元格 + table.Rows[0].Cells[0].CellFormat.VerticalMerge = CellMerge.First; + table.Rows[1].Cells[0].CellFormat.VerticalMerge = CellMerge.Previous; + + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsBackCount.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalNoBackCount.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.RectificationRate.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex + 1, row); + + num1 += item.MonthsCount; + num2 += item.MonthsBackCount; + num3 += item.ProjectCount; + num4 += item.TotalNoBackCount; + + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + + if (num1 != 0)//被除数不能为零 + { + num5 = Math.Round((double)num3 / (double)num1 * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + num5 = "0%"; + } + if (num2 != 0)//被除数不能为零 + { + num6 = Math.Round((double)num4 / (double)num2 * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + num6 = "0%"; + } + + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.Rows[0].Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num3.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num4.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num5.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num6.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + else + { + isYm = true; + numberIndex = 1; + whileIndex = 14; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + //创建合计 + Row rowhj = new Row(doc); + double numcount0 = table.Rows[0].Cells[0].CellFormat.Width; + double numcount1 = table.Rows[0].Cells[1].CellFormat.Width; + double numcount2 = table.Rows[1].Cells[2].CellFormat.Width; + double numcount3 = table.Rows[1].Cells[3].CellFormat.Width; + double numcount4 = table.Rows[1].Cells[4].CellFormat.Width; + double numcount5 = table.Rows[1].Cells[5].CellFormat.Width; + double numcount6 = table.Rows[1].Cells[6].CellFormat.Width; + double numcount7 = table.Rows[1].Cells[7].CellFormat.Width; + double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6 + numcount7; + rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount)); + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 10-2 设备 + var SBInspection = reportItem.Where(x => x.ReType == "10-2").ToList(); + if (SBInspection != null || SBInspection.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 15; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0, num3 = 0, num4 = 0; + string num5 = string.Empty; + string num6 = string.Empty; + foreach (var item in SBInspection) + { + //创建行 + Row row = new Row(doc); + + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.Rows[0].Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.Rows[0].Cells[1].CellFormat.Width)); + // 合并第一行的前两个单元格 + table.Rows[0].Cells[0].CellFormat.VerticalMerge = CellMerge.First; + table.Rows[1].Cells[0].CellFormat.VerticalMerge = CellMerge.Previous; + + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsBackCount.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalNoBackCount.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.RectificationRate.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex + 1, row); + + num1 += item.MonthsCount; + num2 += item.MonthsBackCount; + num3 += item.ProjectCount; + num4 += item.TotalNoBackCount; + + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + + if (num1 != 0)//被除数不能为零 + { + num5 = Math.Round((double)num3 / (double)num1 * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + num5 = "0%"; + } + if (num2 != 0)//被除数不能为零 + { + num6 = Math.Round((double)num4 / (double)num2 * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + num6 = "0%"; + } + + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.Rows[0].Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num3.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num4.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num5.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num6.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + else + { + isYm = true; + numberIndex = 1; + whileIndex = 15; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + //创建合计 + Row rowhj = new Row(doc); + double numcount0 = table.Rows[0].Cells[0].CellFormat.Width; + double numcount1 = table.Rows[0].Cells[1].CellFormat.Width; + double numcount2 = table.Rows[1].Cells[2].CellFormat.Width; + double numcount3 = table.Rows[1].Cells[3].CellFormat.Width; + double numcount4 = table.Rows[1].Cells[4].CellFormat.Width; + double numcount5 = table.Rows[1].Cells[5].CellFormat.Width; + double numcount6 = table.Rows[1].Cells[6].CellFormat.Width; + double numcount7 = table.Rows[1].Cells[7].CellFormat.Width; + double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6 + numcount7; + rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount)); + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 10-3 管道 + var GDInspection = reportItem.Where(x => x.ReType == "10-3").ToList(); + if (GDInspection != null || GDInspection.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 16; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0, num3 = 0, num4 = 0; + string num5 = string.Empty; + string num6 = string.Empty; + foreach (var item in GDInspection) + { + //创建行 + Row row = new Row(doc); + + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.Rows[0].Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.Rows[0].Cells[1].CellFormat.Width)); + // 合并第一行的前两个单元格 + table.Rows[0].Cells[0].CellFormat.VerticalMerge = CellMerge.First; + table.Rows[1].Cells[0].CellFormat.VerticalMerge = CellMerge.Previous; + + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsBackCount.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalNoBackCount.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.RectificationRate.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex + 1, row); + + num1 += item.MonthsCount; + num2 += item.MonthsBackCount; + num3 += item.ProjectCount; + num4 += item.TotalNoBackCount; + + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + + if (num1 != 0)//被除数不能为零 + { + num5 = Math.Round((double)num3 / (double)num1 * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + num5 = "0%"; + } + if (num2 != 0)//被除数不能为零 + { + num6 = Math.Round((double)num4 / (double)num2 * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + num6 = "0%"; + } + + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.Rows[0].Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num3.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num4.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num5.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num6.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + else + { + isYm = true; + numberIndex = 1; + whileIndex = 16; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + //创建合计 + Row rowhj = new Row(doc); + double numcount0 = table.Rows[0].Cells[0].CellFormat.Width; + double numcount1 = table.Rows[0].Cells[1].CellFormat.Width; + double numcount2 = table.Rows[1].Cells[2].CellFormat.Width; + double numcount3 = table.Rows[1].Cells[3].CellFormat.Width; + double numcount4 = table.Rows[1].Cells[4].CellFormat.Width; + double numcount5 = table.Rows[1].Cells[5].CellFormat.Width; + double numcount6 = table.Rows[1].Cells[6].CellFormat.Width; + double numcount7 = table.Rows[1].Cells[7].CellFormat.Width; + double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6 + numcount7; + rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount)); + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 10-4 电气 + var DQInspection = reportItem.Where(x => x.ReType == "10-4").ToList(); + if (DQInspection != null || DQInspection.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 17; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0, num3 = 0, num4 = 0; + string num5 = string.Empty; + string num6 = string.Empty; + foreach (var item in DQInspection) + { + //创建行 + Row row = new Row(doc); + + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.Rows[0].Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.Rows[0].Cells[1].CellFormat.Width)); + // 合并第一行的前两个单元格 + table.Rows[0].Cells[0].CellFormat.VerticalMerge = CellMerge.First; + table.Rows[1].Cells[0].CellFormat.VerticalMerge = CellMerge.Previous; + + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsBackCount.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalNoBackCount.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.RectificationRate.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex + 1, row); + + num1 += item.MonthsCount; + num2 += item.MonthsBackCount; + num3 += item.ProjectCount; + num4 += item.TotalNoBackCount; + + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + + if (num1 != 0)//被除数不能为零 + { + num5 = Math.Round((double)num3 / (double)num1 * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + num5 = "0%"; + } + if (num2 != 0)//被除数不能为零 + { + num6 = Math.Round((double)num4 / (double)num2 * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + num6 = "0%"; + } + + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.Rows[0].Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num3.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num4.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num5.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num6.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + else + { + isYm = true; + numberIndex = 1; + whileIndex = 17; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + //创建合计 + Row rowhj = new Row(doc); + double numcount0 = table.Rows[0].Cells[0].CellFormat.Width; + double numcount1 = table.Rows[0].Cells[1].CellFormat.Width; + double numcount2 = table.Rows[1].Cells[2].CellFormat.Width; + double numcount3 = table.Rows[1].Cells[3].CellFormat.Width; + double numcount4 = table.Rows[1].Cells[4].CellFormat.Width; + double numcount5 = table.Rows[1].Cells[5].CellFormat.Width; + double numcount6 = table.Rows[1].Cells[6].CellFormat.Width; + double numcount7 = table.Rows[1].Cells[7].CellFormat.Width; + double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6 + numcount7; + rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount)); + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 10-5.仪表 + var YBInspection = reportItem.Where(x => x.ReType == "10-5").ToList(); + if (YBInspection != null || YBInspection.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 18; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0, num3 = 0, num4 = 0; + string num5 = string.Empty; + string num6 = string.Empty; + foreach (var item in YBInspection) + { + //创建行 + Row row = new Row(doc); + + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.Rows[0].Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.Rows[0].Cells[1].CellFormat.Width)); + // 合并第一行的前两个单元格 + table.Rows[0].Cells[0].CellFormat.VerticalMerge = CellMerge.First; + table.Rows[1].Cells[0].CellFormat.VerticalMerge = CellMerge.Previous; + + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsBackCount.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalNoBackCount.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.RectificationRate.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex + 1, row); + + num1 += item.MonthsCount; + num2 += item.MonthsBackCount; + num3 += item.ProjectCount; + num4 += item.TotalNoBackCount; + + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + + if (num1 != 0)//被除数不能为零 + { + num5 = Math.Round((double)num3 / (double)num1 * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + num5 = "0%"; + } + if (num2 != 0)//被除数不能为零 + { + num6 = Math.Round((double)num4 / (double)num2 * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + num6 = "0%"; + } + + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.Rows[0].Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num3.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num4.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num5.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num6.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + else + { + isYm = true; + numberIndex = 1; + whileIndex = 18; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + //创建合计 + Row rowhj = new Row(doc); + double numcount0 = table.Rows[0].Cells[0].CellFormat.Width; + double numcount1 = table.Rows[0].Cells[1].CellFormat.Width; + double numcount2 = table.Rows[1].Cells[2].CellFormat.Width; + double numcount3 = table.Rows[1].Cells[3].CellFormat.Width; + double numcount4 = table.Rows[1].Cells[4].CellFormat.Width; + double numcount5 = table.Rows[1].Cells[5].CellFormat.Width; + double numcount6 = table.Rows[1].Cells[6].CellFormat.Width; + double numcount7 = table.Rows[1].Cells[7].CellFormat.Width; + double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6 + numcount7; + rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount)); + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 10-6.防腐 + var FFInspection = reportItem.Where(x => x.ReType == "10-6").ToList(); + if (FFInspection != null || FFInspection.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 19; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0, num3 = 0, num4 = 0; + string num5 = string.Empty; + string num6 = string.Empty; + foreach (var item in FFInspection) + { + //创建行 + Row row = new Row(doc); + + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.Rows[0].Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.Rows[0].Cells[1].CellFormat.Width)); + // 合并第一行的前两个单元格 + table.Rows[0].Cells[0].CellFormat.VerticalMerge = CellMerge.First; + table.Rows[1].Cells[0].CellFormat.VerticalMerge = CellMerge.Previous; + + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsBackCount.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalNoBackCount.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.RectificationRate.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex + 1, row); + + num1 += item.MonthsCount; + num2 += item.MonthsBackCount; + num3 += item.ProjectCount; + num4 += item.TotalNoBackCount; + + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + + if (num1 != 0)//被除数不能为零 + { + num5 = Math.Round((double)num3 / (double)num1 * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + num5 = "0%"; + } + if (num2 != 0)//被除数不能为零 + { + num6 = Math.Round((double)num4 / (double)num2 * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + num6 = "0%"; + } + + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.Rows[0].Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num3.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num4.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num5.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num6.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + else + { + isYm = true; + numberIndex = 1; + whileIndex = 19; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + //创建合计 + Row rowhj = new Row(doc); + double numcount0 = table.Rows[0].Cells[0].CellFormat.Width; + double numcount1 = table.Rows[0].Cells[1].CellFormat.Width; + double numcount2 = table.Rows[1].Cells[2].CellFormat.Width; + double numcount3 = table.Rows[1].Cells[3].CellFormat.Width; + double numcount4 = table.Rows[1].Cells[4].CellFormat.Width; + double numcount5 = table.Rows[1].Cells[5].CellFormat.Width; + double numcount6 = table.Rows[1].Cells[6].CellFormat.Width; + double numcount7 = table.Rows[1].Cells[7].CellFormat.Width; + double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6 + numcount7; + rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount)); + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 10-7.消防 + var XFInspection = reportItem.Where(x => x.ReType == "10-7").ToList(); + if (XFInspection != null || XFInspection.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 20; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0, num3 = 0, num4 = 0; + string num5 = string.Empty; + string num6 = string.Empty; + foreach (var item in XFInspection) + { + //创建行 + Row row = new Row(doc); + + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.Rows[0].Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.Rows[0].Cells[1].CellFormat.Width)); + // 合并第一行的前两个单元格 + table.Rows[0].Cells[0].CellFormat.VerticalMerge = CellMerge.First; + table.Rows[1].Cells[0].CellFormat.VerticalMerge = CellMerge.Previous; + + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsBackCount.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalNoBackCount.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + + row.Cells.Add(CreateCell(item.RectificationRate.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex + 1, row); + + num1 += item.MonthsCount; + num2 += item.MonthsBackCount; + num3 += item.ProjectCount; + num4 += item.TotalNoBackCount; + + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + + if (num1 != 0)//被除数不能为零 + { + num5 = Math.Round((double)num3 / (double)num1 * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + num5 = "0%"; + } + if (num2 != 0)//被除数不能为零 + { + num6 = Math.Round((double)num4 / (double)num2 * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + num6 = "0%"; + } + + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.Rows[0].Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.Rows[0].Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.Rows[1].Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.Rows[1].Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num3.ToString(), doc, table.Rows[1].Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num4.ToString(), doc, table.Rows[1].Cells[5].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num5.ToString(), doc, table.Rows[1].Cells[6].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num6.ToString(), doc, table.Rows[1].Cells[7].CellFormat.Width)); + + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + else + { + isYm = true; + numberIndex = 1; + whileIndex = 20; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + //创建合计 + Row rowhj = new Row(doc); + double numcount0 = table.Rows[0].Cells[0].CellFormat.Width; + double numcount1 = table.Rows[0].Cells[1].CellFormat.Width; + double numcount2 = table.Rows[1].Cells[2].CellFormat.Width; + double numcount3 = table.Rows[1].Cells[3].CellFormat.Width; + double numcount4 = table.Rows[1].Cells[4].CellFormat.Width; + double numcount5 = table.Rows[1].Cells[5].CellFormat.Width; + double numcount6 = table.Rows[1].Cells[6].CellFormat.Width; + double numcount7 = table.Rows[1].Cells[7].CellFormat.Width; + double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6 + numcount7; + rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount)); + table.Rows.Insert(numberIndex + 1, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 10.总数 + var InspectionDataInspection = reportItem.Where(x => x.ReType == "10").ToList(); + if (InspectionDataInspection != null || InspectionDataInspection.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 21; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + //decimal? num1 = 0, num2 = 0; + //decimal MonthsCountstring = 0, ProjectCountstring = 0; + int CheckNum = 0, OKNum = 0, TotalCheckNum = 0, TotalOKNum = 0; + string QuantitySum1 = String.Empty;//本月检查合格点数/本月检查点数 + string QuantitySum2 = String.Empty;//累计检查合格点数/累计检查点数 + foreach (var item in InspectionDataInspection) + { + if (string.IsNullOrEmpty(item.RectificationRate)) + { + item.RectificationRate = "0%"; + } + + if (string.IsNullOrEmpty(item.TotationRate)) + { + item.TotationRate = "0%"; + } + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(Convert.ToString(item.RectificationRate), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(Convert.ToString(item.TotationRate), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + //num1 += MonthsCountstring; + //num2 += ProjectCountstring; + CheckNum += Convert.ToInt32(item.MonthsCount); + OKNum += Convert.ToInt32(item.ProjectCount); + TotalCheckNum += Convert.ToInt32(item.MonthsBackCount); + TotalOKNum += Convert.ToInt32(item.TotalNoBackCount); + + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + + + if (CheckNum != 0)//被除数不能为零 + { + QuantitySum1 = Math.Round((decimal)OKNum / (decimal)CheckNum * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + QuantitySum1 = "0%"; + } + if (TotalCheckNum != 0)//被除数不能为零 + { + QuantitySum2 = Math.Round((decimal)TotalOKNum / (decimal)TotalCheckNum * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + QuantitySum2 = "0%"; + } + + + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(QuantitySum1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(QuantitySum2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #endregion + + #region 11.压力管道监检情况 + var PressureInspection = reportItem.Where(x => x.ReType == "11").ToList(); + if (PressureInspection.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 22; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0, num3 = 0; + foreach (var item in PressureInspection) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalNoBackCount.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num1 += item.MonthsCount; + num2 += item.ProjectCount; + num3 += item.TotalNoBackCount; + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num3.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 12.管道试压包管理情况 + var PipingInspection = reportItem.Where(x => x.ReType == "12").ToList(); + if (PipingInspection.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 23; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0, num3 = 0; + foreach (var item in PipingInspection) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalNoBackCount.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num3 += item.TotalNoBackCount; + num1 += item.MonthsCount; + num2 += item.ProjectCount; + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num3.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 13.特种设备监检情况 + var SpecialInspection = reportItem.Where(x => x.ReType == "13").ToList(); + if (SpecialInspection.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 24; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0, num3 = 0; + foreach (var item in SpecialInspection) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalNoBackCount.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num1 += item.MonthsCount; + num2 += item.ProjectCount; + num3 += item.TotalNoBackCount; + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num3.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 14.NCR管理情况 + var NcrManagementInspection = reportItem.Where(x => x.ReType == "14").ToList(); + if (NcrManagementInspection.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 25; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0, num3 = 0; + string num4 = string.Empty; + foreach (var item in NcrManagementInspection) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalNoBackCount.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.RectificationRate.ToString(), doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num1 += item.MonthsCount; + num2 += item.ProjectCount; + num3 += item.TotalNoBackCount; + numberIndex += 1; + } + + if (num2 != 0)//被除数不能为零 + { + num4 = Math.Round((double)num2 / (double)num3 * 100, 2) + "%";//保留两位小数、后四舍五3 + } + else + { + num4 = "0%"; + } + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num3.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num4.ToString(), doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 15.质量巡检情况 + var qualityInspections = reportItem.Where(x => x.ReType == "1").ToList(); + if (qualityInspections.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 26; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0; + foreach (var item in qualityInspections) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.RectificationRate, doc, table.FirstRow.Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num1 += item.MonthsCount; + num2 += item.ProjectCount; + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 16.质量专项检查情况 + var specialChecks = reportItem.Where(x => x.ReType == "2").ToList(); + if (specialChecks.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 27; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0; + foreach (var item in specialChecks) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num1 += item.MonthsCount; + num2 += item.ProjectCount; + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 17.质量文件上报情况 + var fileReports = reportItem.Where(x => x.ReType == "3").ToList(); + if (fileReports.Count > 0) + { + isYm = true; + //whileIndex += 1; + whileIndex = 28; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + //跳过页眉的表头 + while (isYm) + { + if (table.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm = false; + } + } + numberIndex = 1; + int? num1 = 0, num2 = 0, num3 = 0, num4 = 0; + foreach (var item in fileReports) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.ContentName, doc, table.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.MonthsBackCount.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TotalNoBackCount.ToString(), doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, row); + num1 += item.MonthsCount; + num2 += item.ProjectCount; + num3 += item.MonthsBackCount; + num4 += item.TotalNoBackCount; + numberIndex += 1; + } + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + //创建合计 + Row rowhj = new Row(doc); + rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width)); + rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num3.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width)); + rowhj.Cells.Add(CreateCell(num4.ToString(), doc, table.FirstRow.Cells[5].CellFormat.Width)); + table.Rows.Insert(numberIndex, rowhj); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + } + #endregion + + #region 18.本月质量问题处理情况 + #region (1)原材料问题 + whileIndex = 29; + Aspose.Words.Tables.Table table18_1 = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + bool isYm18_1 = true; + //跳过页眉的表头 + while (isYm18_1) + { + if (table18_1.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table18_1 = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm18_1 = false; + } + } + var rowMaterialProblems = db.Report_RowMaterialProblem.Where(x => x.ReportId == Id); + int numberIndex18_1 = 1; + foreach (var item in rowMaterialProblems) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex18_1.ToString(), doc, table18_1.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.UnitId, doc, table18_1.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.ProblemDesrioption, doc, table18_1.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TreatmentMeasures, doc, table18_1.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.ProcessingResults, doc, table18_1.FirstRow.Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remark, doc, table18_1.FirstRow.Cells[5].CellFormat.Width)); + table18_1.Rows.Insert(numberIndex18_1, row); + + numberIndex18_1 += 1; + } + //自动设置表格样式 + table18_1.AutoFit(AutoFitBehavior.FixedColumnWidths); + #endregion + + #region (2)施工过程问题 + whileIndex = 30; + Aspose.Words.Tables.Table table18_2 = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + bool isYm18_2 = true; + //跳过页眉的表头 + while (isYm18_2) + { + if (table18_2.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table18_2 = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm18_2 = false; + } + } + var constructionProblems = db.Report_ConstructionProblems.Where(x => x.ReportId == Id); + int numberIndex18_2 = 1; + foreach (var item in constructionProblems) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex18_2.ToString(), doc, table18_2.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.UnitId, doc, table18_2.FirstRow.Cells[1].CellFormat.Width)); + row.Cells.Add(CreateCell(item.ProblemDesrioption, doc, table18_2.FirstRow.Cells[2].CellFormat.Width)); + row.Cells.Add(CreateCell(item.TreatmentMeasures, doc, table18_2.FirstRow.Cells[3].CellFormat.Width)); + row.Cells.Add(CreateCell(item.ProcessingResults, doc, table18_2.FirstRow.Cells[4].CellFormat.Width)); + row.Cells.Add(CreateCell(item.Remark, doc, table18_2.FirstRow.Cells[5].CellFormat.Width)); + table18_2.Rows.Insert(numberIndex18_2, row); + + numberIndex18_2 += 1; + } + //自动设置表格样式 + table18_2.AutoFit(AutoFitBehavior.FixedColumnWidths); + #endregion + #endregion + + #region 19.下月质量控制重点 + whileIndex = 31; + Aspose.Words.Tables.Table table19 = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + bool isYm19 = true; + //跳过页眉的表头 + while (isYm19) + { + if (table19.Range.Text.Substring(0, 2) != "序号") + { + whileIndex += 1; + table19 = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true); + } + else + { + isYm19 = false; + } + } + var nextQualityControls = db.Report_NextQualityControl.Where(x => x.ReportId == Id); + int numberIndex19 = 1; + foreach (var item in nextQualityControls) + { + //创建行 + Row row = new Row(doc); + row.Cells.Add(CreateCell(numberIndex19.ToString(), doc, table19.FirstRow.Cells[0].CellFormat.Width, "", "1")); + row.Cells.Add(CreateCell(item.NextQualityControlContent, doc, table19.FirstRow.Cells[1].CellFormat.Width)); + table19.Rows.Insert(numberIndex19, row); + + numberIndex19 += 1; + } + //自动设置表格样式 + table19.AutoFit(AutoFitBehavior.FixedColumnWidths); + #endregion + + #region 20.项目质量体系审核 + bkmark = doc.Range.Bookmarks["Content20"]; + if (bkmark != null) + { + bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "20").ContentText; + } + #endregion + + #region 21.类似项目管理经验教训应对措施及跟踪 + bkmark = doc.Range.Bookmarks["Content21"]; + if (bkmark != null) + { + bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "21").ContentText; + } + #endregion + + #region 22.附件 + bkmark = doc.Range.Bookmarks["Content22"]; + if (bkmark != null) + { + bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "22").ContentText; + } + #endregion + + #region 23.施工照片 + string imageUrl = "res/images/R-C.png"; + var imageUrl1 = txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ImageUrl; + if (!string.IsNullOrWhiteSpace(imageUrl1) && imageUrl1 != imageUrl) + { + string rootPathUrl = rootPath.Replace("\\", "/"); + string url = rootPathUrl + imageUrl1; + //DocumentBuilder builder = new DocumentBuilder(doc); + builder.MoveToBookmark("ImageUrl1"); + if (!string.IsNullOrEmpty(url)) + { + System.Drawing.Size JpgSize; + float Wpx; + float Hpx; + UploadAttachmentService.getJpgSize(rootPathUrl + imageUrl1, out JpgSize, out Wpx, out Hpx); + //double w = 1; + //w = JpgSize.Width / 50.0; + if (File.Exists(url)) + { + //builder.InsertImage(url, JpgSize.Width / w, JpgSize.Height / w); + builder.InsertImage(url, 200, 150); + } + } + } + + var imageUrl2 = txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ImageUrl; + if (!string.IsNullOrWhiteSpace(imageUrl2) && imageUrl2 != imageUrl) + { + string rootPathUrl = rootPath.Replace("\\", "/"); + string url = rootPathUrl + imageUrl2; + //DocumentBuilder builder = new DocumentBuilder(doc); + builder.MoveToBookmark("ImageUrl2"); + if (!string.IsNullOrEmpty(url)) + { + System.Drawing.Size JpgSize; + float Wpx; + float Hpx; + UploadAttachmentService.getJpgSize(rootPathUrl + imageUrl2, out JpgSize, out Wpx, out Hpx); + //double w = 1; + //w = JpgSize.Width / 50.0; + if (File.Exists(url)) + { + //builder.InsertImage(url, JpgSize.Width / w, JpgSize.Height / w); + builder.InsertImage(url, 200, 150); + } + } + } + + var imageUrl3 = txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ImageUrl; + if (!string.IsNullOrWhiteSpace(imageUrl3) && imageUrl3 != imageUrl) + { + string rootPathUrl = rootPath.Replace("\\", "/"); + string url = rootPathUrl + imageUrl3; + //DocumentBuilder builder = new DocumentBuilder(doc); + builder.MoveToBookmark("ImageUrl3"); + if (!string.IsNullOrEmpty(url)) + { + System.Drawing.Size JpgSize; + float Wpx; + float Hpx; + UploadAttachmentService.getJpgSize(rootPathUrl + imageUrl3, out JpgSize, out Wpx, out Hpx); + //double w = 1; + //w = JpgSize.Width / 50.0; + if (File.Exists(url)) + { + //builder.InsertImage(url, JpgSize.Width / w, JpgSize.Height / w); + builder.InsertImage(url, 200, 150); + } + } + } + + var imageUrl4 = txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ImageUrl; + if (!string.IsNullOrWhiteSpace(imageUrl4) && imageUrl4 != imageUrl) + { + string rootPathUrl = rootPath.Replace("\\", "/"); + string url = rootPathUrl + imageUrl4; + //DocumentBuilder builder = new DocumentBuilder(doc); + builder.MoveToBookmark("ImageUrl4"); + if (!string.IsNullOrEmpty(url)) + { + System.Drawing.Size JpgSize; + float Wpx; + float Hpx; + UploadAttachmentService.getJpgSize(rootPathUrl + imageUrl4, out JpgSize, out Wpx, out Hpx); + //double w = 1; + //w = JpgSize.Width / 50.0; + if (File.Exists(url)) + { + //builder.InsertImage(url, JpgSize.Width / w, JpgSize.Height / w); + builder.InsertImage(url, 200, 150); + } + } + } + + var imageUrl5 = txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ImageUrl; + if (!string.IsNullOrWhiteSpace(imageUrl5) && imageUrl5 != imageUrl) + { + string rootPathUrl = rootPath.Replace("\\", "/"); + string url = rootPathUrl + imageUrl5; + //DocumentBuilder builder = new DocumentBuilder(doc); + builder.MoveToBookmark("ImageUrl5"); + if (!string.IsNullOrEmpty(url)) + { + System.Drawing.Size JpgSize; + float Wpx; + float Hpx; + UploadAttachmentService.getJpgSize(rootPathUrl + imageUrl5, out JpgSize, out Wpx, out Hpx); + //double w = 1; + //w = JpgSize.Width / 50.0; + if (File.Exists(url)) + { + //builder.InsertImage(url, JpgSize.Width / w, JpgSize.Height / w); + builder.InsertImage(url, 200, 150); + } + } + } + + var imageUrl6 = txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ImageUrl; + if (!string.IsNullOrWhiteSpace(imageUrl6) && imageUrl6 != imageUrl) + { + string rootPathUrl = rootPath.Replace("\\", "/"); + string url = rootPathUrl + imageUrl6; + //DocumentBuilder builder = new DocumentBuilder(doc); + builder.MoveToBookmark("ImageUrl6"); + if (!string.IsNullOrEmpty(url)) + { + System.Drawing.Size JpgSize; + float Wpx; + float Hpx; + UploadAttachmentService.getJpgSize(rootPathUrl + imageUrl6, out JpgSize, out Wpx, out Hpx); + //double w = 1; + //w = JpgSize.Width / 50.0; + if (File.Exists(url)) + { + //builder.InsertImage(url, JpgSize.Width / w, JpgSize.Height / w); + builder.InsertImage(url, 200, 150); + } + } + } + + bkmark = doc.Range.Bookmarks["ImageContent1"]; + if (bkmark != null) + { + bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ContentText; + } + + bkmark = doc.Range.Bookmarks["ImageContent2"]; + if (bkmark != null) + { + bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ContentText; + } + + bkmark = doc.Range.Bookmarks["ImageContent3"]; + if (bkmark != null) + { + bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ContentText; + } + + bkmark = doc.Range.Bookmarks["ImageContent4"]; + if (bkmark != null) + { + bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ContentText; + } + + bkmark = doc.Range.Bookmarks["ImageContent5"]; + if (bkmark != null) + { + bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ContentText; + } + + bkmark = doc.Range.Bookmarks["ImageContent6"]; + if (bkmark != null) + { + bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ContentText; + } + #endregion + + #region 设置页眉上的数据 + whileIndex = 1; + table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 1, true); + if (unitsYz != null) + { + //业主名称 + table.Rows[0].Cells[2].FirstParagraph.Runs[0].Text = unitsYz.UnitName; + } + + //项目号 + table.Rows[0].Cells[4].FirstParagraph.Runs[0].Text = pModel.ProjectCode; + + //项目名称 + table.Rows[2].Cells[2].FirstParagraph.Runs[0].Text = pModel.ProjectName; + table.Rows[2].Cells[3].FirstParagraph.Runs[0].Text = pModel.ProjectCode + "-RM-PQM-" + weekModel.SortId; + + //总页数 + table.Rows[4].Cells[5].FirstParagraph.Runs[0].Text = doc.PageCount.ToString(); + + bkmark = doc.Range.Bookmarks["CountPage"]; + if (bkmark != null) + { + bkmark.Text = doc.PageCount.ToString(); + } + + //页眉是第二个表 + //tableIndex—要移动的表的索引。 + //rowIndex - 表中行的索引。 + //columnIndex—表中列的索引。 + //字符在单元格中的索引。目前只能指定0移动到单元格的开头,或指定 - 1移动到单元格的结尾。 + //builder.MoveToCell(1,0,2,0); + //builder.Write(unitsYz.UnitName); + #endregion + + doc.Save(newUrl); + string fileName = Path.GetFileName(newUrl); + FileInfo info = new FileInfo(newUrl); + long fileSize = info.Length; + Response.Clear(); + Response.ContentType = "application/x-zip-compressed"; + Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8)); + Response.AddHeader("Content-Length", fileSize.ToString()); + Response.TransmitFile(newUrl, 0, fileSize); + Response.Flush(); + Response.Close(); + File.Delete(newUrl); + } + catch (Exception ex) + { + Alert.ShowInTop(ex.Message, MessageBoxIcon.Warning); + throw; + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReport.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReport.aspx.designer.cs new file mode 100644 index 00000000..4ac8449a --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReport.aspx.designer.cs @@ -0,0 +1,141 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.CQMS.ManageReportNew { + + + public partial class WeekReport { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// lblPageIndex 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblPageIndex; + + /// + /// Label41 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label41; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuModify 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuModify; + + /// + /// btnMenuView 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuView; + + /// + /// btnPrinter 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnPrinter; + + /// + /// btnMenuDel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDel; + } +} diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReportEdit.aspx b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReportEdit.aspx new file mode 100644 index 00000000..898e1075 --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReportEdit.aspx @@ -0,0 +1,2067 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WeekReportEdit.aspx.cs" Inherits="FineUIPro.Web.CQMS.ManageReportNew.WeekReportEdit" %> + + + + + + + 编辑项目质量周报(新) + + + + + + + +
+ + + + + + + + + + + + + + + + + <%-- + + --%> +
+ + + + + +
+ +  编辑项目质量周报 + + <%-- --%> + + + + +
+
+ + + + + + + + + +
+ + + + + + + * + +
+
+
+ +
+
+ + + + + +
时间段  + + + + + + + + + <%-- + — + --%> +
+
+ + + + + + + +
+ +  20)项目质量体系审核 +
+ + + + +
+ +
+
+
+ <%--1.本周质量目标管理情况--%> + + + + + + + + + + + + + + + + + + + + + + + <%--2.本周主要工作内容--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--3.施工方案及检验试验计划审批情况--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--4.设计交底管理情况--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--5.图纸会审管理情况--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--6.设计变更管理情况--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--7.焊接管理情况--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--8.设备材料报验管理情况--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--9.计量器具报验管理情况--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--10.现场质量共检数据--%> + + + + + + + <%--10-1.土建--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--10-2.设备--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--10-3.管道--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--10-4.电气--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--10-5.仪表--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--10-6.防腐--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--10-7.消防--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--10.合计--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--11.压力管道监检情况--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--12.管道试压包管理情况--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--13.特种设备监检情况--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--14.NCR管理情况--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--15.质量巡检情况--%> + + + + + + + + + + + + + + + + + <%-- + + + --%> + + + + + + + + + + + + + + + + + + + + + + <%--16.质量专项检查情况--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--17.质量文件上报情况--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--18.本周质量问题处理情况--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%--19.下周质量控制重点--%> + + + + + + + + + + + + + + + + + + + + + + <%--20.项目质量体系审核--%> + + + + + + + + + + + + + + + <%--21.类似项目管理经验教训应对措施及跟踪--%> + + + + + + + + + + + + + + + + <%--22.附件--%> + + + + + + + + + + + + + + + + <%--23.施工照片--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReportEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReportEdit.aspx.cs new file mode 100644 index 00000000..bcc1e45d --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReportEdit.aspx.cs @@ -0,0 +1,3948 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web.UI; +using System.Web.UI.WebControls; +using BLL; +using Newtonsoft.Json.Linq; +using System.Threading; + +namespace FineUIPro.Web.CQMS.ManageReportNew +{ + public partial class WeekReportEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string ReportId + { + get + { + return (string)ViewState["ReportId"]; + } + set + { + ViewState["ReportId"] = value; + } + } + + public string AddOrUpdate + { + get + { + return (string)ViewState["AddOrUpdate"]; + } + set + { + ViewState["AddOrUpdate"] = value; + } + } + #endregion + + public Model.SGGLDB db = Funs.DB; + + #region 列表集合 + private static List detailsGrid1 = new List(); + + /// + /// 18.本月质量问题处理情况 + /// (1)原材料问题 + /// + private static List rowMaterialProblemLists = new List(); + + /// + /// 18.本月质量问题处理情况 + /// (2)施工过程问题 + /// + private static List constructionProblemsLists = new List(); + + /// + /// 19.下月质量控制重点 + /// + private static List nextQualityControlLists = new List(); + #endregion + + #region 加载所有单位 + public class UnitClass + { + public string UnitId { get; set; } + public string UnitName { get; set; } + + public string UnitType { get; set; } + } + + public List units = new List(); + #endregion + + #region 加载所有专业 + public class ProfessionalsClass + { + public string CNProfessionalId { get; set; } + public string ProfessionalName { get; set; } + } + + public List CNProfessionals = new List(); + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + //加载所有单位 + units = (from x in db.Project_ProjectUnit + join y in db.Base_Unit on x.UnitId equals y.UnitId + where x.ProjectId == this.CurrUser.LoginProjectId + orderby y.UnitCode + select new UnitClass { UnitId = x.UnitId, UnitName = y.UnitName, UnitType = x.UnitType }).ToList(); + //加载所有专业 + CNProfessionals = (from x in db.Base_CNProfessional + where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId + && x.CNProfessionalId != BLL.Const.ComprehensiveId + orderby x.SortIndex + select new ProfessionalsClass + { + CNProfessionalId = x.CNProfessionalId, + ProfessionalName = x.ProfessionalName + }).ToList(); + + BLL.UnitService.InitUnitNameByProjectIdUnitTypeDropDownList(this.drpUnitId, this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2, false); + BLL.UnitService.InitUnitDownListByText(this.drpUnitIdGrid9, this.CurrUser.LoginProjectId, true); + this.EnableViewState = true; + this.lblProjectName.Text = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId).ProjectName; + this.ReportId = Request.Params["reportId"]; + if (!string.IsNullOrEmpty(Request.Params["view"])) + { + this.Button1.Visible = false; + this.Button2.Visible = false; + } + + if (!string.IsNullOrEmpty(this.ReportId)) + { + Model.Report_WeekAndMonthReport_New weekAndMonthReport = WeekAndMonthReportNewService.Detail(this.ReportId); + if (weekAndMonthReport != null) + { + if (weekAndMonthReport.SortId != null) + { + this.txtPeriod.Text = Convert.ToString(weekAndMonthReport.SortId); + } + if (weekAndMonthReport.StartDate != null) + { + this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", weekAndMonthReport.StartDate); + } + if (weekAndMonthReport.EndDate != null) + { + this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", weekAndMonthReport.EndDate); + } + } + AddOrUpdate = "update"; + + #region 加载本月质量目标管理情况 + detailsGrid1.Clear(); + detailsGrid1 = (from x in db.Report_CqmsTarget + where x.ReportId == this.ReportId + orderby x.SortId + select x).ToList(); + if (detailsGrid1.Count > 0) + { + Grid1.Hidden = false; + Grid1.DataSource = detailsGrid1; + Grid1.DataBind(); + } + + #endregion + + #region 加载7.2 PQR/WPS报验情况 + var detailsGrid9 = (from x in db.Report_Construction_Plan + where x.ReportId == ReportId && x.ReType == "5" + select x).ToList(); + if (detailsGrid9.Count > 0) + { + Grid9.Hidden = false; + Grid9.DataSource = detailsGrid9; + Grid9.DataBind(); + } + if (!string.IsNullOrEmpty(Request.Params["view"])) + { + //查看页面 + Button4.Hidden = true; + Button3.Hidden = true; + //合计 + OutPutSummaryGrid9(); + Grid1.FindColumn("Delete1").Hidden = true; + Grid9.FindColumn("Delete9").Hidden = true; + } + #endregion + + #region 加载18.本月质量问题处理情况 + //(1)原材料问题 + rowMaterialProblemLists.Clear(); + rowMaterialProblemLists = (from x in db.Report_RowMaterialProblem + where x.ReportId == this.ReportId + select x).ToList(); + if (rowMaterialProblemLists.Count > 0) + { + gvRowMaterialProblem.Hidden = false; + gvRowMaterialProblem.DataSource = rowMaterialProblemLists; + gvRowMaterialProblem.DataBind(); + } + //(2)施工过程问题 + constructionProblemsLists.Clear(); + constructionProblemsLists = (from x in db.Report_ConstructionProblems + where x.ReportId == this.ReportId + select x).ToList(); + if (constructionProblemsLists.Count > 0) + { + gvConstructionProblems.Hidden = false; + gvConstructionProblems.DataSource = constructionProblemsLists; + gvConstructionProblems.DataBind(); + } + #endregion + + #region 加载19.下月质量控制重点 + nextQualityControlLists.Clear(); + nextQualityControlLists = (from x in db.Report_NextQualityControl + where x.ReportId == this.ReportId + select x).ToList(); + if (nextQualityControlLists.Count > 0) + { + gvNextQualityControl.Hidden = false; + gvNextQualityControl.DataSource = nextQualityControlLists; + gvNextQualityControl.DataBind(); + } + #endregion + + #region 加载文本框内容 + var txtReportList = db.Report_TextBoxContent.Where(x => x.ReportId == ReportId).ToList(); + txtAre0.Text = txtReportList.FirstOrDefault(x => x.ContentType == "0").ContentText; + txtAre1.Text = txtReportList.FirstOrDefault(x => x.ContentType == "1").ContentText; + txtAre2.Text = txtReportList.FirstOrDefault(x => x.ContentType == "2").ContentText; + + txtAre20.Text = txtReportList.FirstOrDefault(x => x.ContentType == "20").ContentText; + txtAre21.Text = txtReportList.FirstOrDefault(x => x.ContentType == "21").ContentText; + txtAre22.Text = txtReportList.FirstOrDefault(x => x.ContentType == "22").ContentText; + txtAre8.Text = txtReportList.FirstOrDefault(x => x.ContentType == "8").ContentText; + + imgPhoto.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ImageUrl; + txtPhotoContent1.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ContentText; + imgPhoto2.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ImageUrl; + txtPhotoContent2.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ContentText; + imgPhoto3.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ImageUrl; + txtPhotoContent3.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ContentText; + imgPhoto4.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ImageUrl; + txtPhotoContent4.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ContentText; + imgPhoto5.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ImageUrl; + txtPhotoContent5.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ContentText; + imgPhoto6.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ImageUrl; + txtPhotoContent6.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ContentText; + #endregion + + //加载所有grid + lodAllGrid("1"); + } + else + { + this.txtStartDate.Text = string.IsNullOrEmpty(Request.Params["startdate"]) ? string.Format("{0:yyyy-MM-dd}", DateTime.Now) : Request.Params["startdate"]; + this.txtEndDate.Text = string.IsNullOrEmpty(Request.Params["enddate"]) ? string.Format("{0:yyyy-MM-dd}", Convert.ToDateTime(this.txtStartDate.Text).AddDays(6)) : Request.Params["enddate"]; + //给个新的主键 + ReportId = Guid.NewGuid().ToString(); + AddOrUpdate = "add"; + + //加载所有grid + lodAllGrid("0"); + } + + Grid10.EmptyText = "
无数据
"; + gvTj.EmptyText = "
无数据
"; + GvSb.EmptyText = "
无数据
"; + GvGD.EmptyText = "
无数据
"; + GvDq.EmptyText = "
无数据
"; + GvYb.EmptyText = "
无数据
"; + GvFf.EmptyText = "
无数据
"; + GvXf.EmptyText = "
无数据
"; + + hidReportId.Value = ReportId; + } + } + + /// + /// 加载grid + /// + /// + void lodAllGrid(string objType) + { + //3.1 加载一般施工方案审批情况 + loadGeneralPlanApproval(objType); + + //3.2 加载危大工程方案审批情况 + loadMajorPlanApproval(objType); + + //3.3 质量控制点或检验试验计划(ITP)情况 + loadInspectionTestPlan(objType); + + //4 加载设计交底管理情况 + loadDesignDetailsApprove(objType); + + //5 加载图纸会审管理情况 + loadReviewDrawings(objType); + + //6 加载设计变更管理情况 + loadDesignChangeOrder(); + + //7.1 加载合格焊工管理情况 + loadPassWelder(); + + //7.3 加载无损检测管理 + loadProcessControl_NondestructiveTest_New(); + + //8 设备报验管理Grid11 + LoadInspectionEquipment(objType); + + //加载9.计量器具报验管理情况 + loadMeasuringInspection(objType); + //加载10.现场质量共检数据 + loadInspectionDataInspection(objType); + //加载11.压力管道监检情况 + loadPressureInspection(objType); + //加载12.管道试压包管理情况 + loadPipingInspection(objType); + //加载13.特种设备监检情况 + loadSpecialInspection(objType); + ////加载14.NCR管理情况 + loadNcrManagementInspection(objType); + + //加载15.质量巡检情况 + loadQualityInspection(objType); + //加载16.质量专项检查情况 + loadSpecialCheck(objType); + //加载17.质量文件上报情况 + loadFileReport(objType); + } + #endregion + + #region 时间选择事件 + /// + /// 开始时间选择事件 + /// + /// + /// + protected void txtStartDate_TextChanged(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.txtStartDate.Text.Trim())) + { + string url = Request.Url.ToString(); + if (url.Contains("?")) + { + url = Request.Url.ToString().Substring(0, Request.Url.ToString().LastIndexOf('?')); + } + Response.Redirect(url + "?startdate=" + txtStartDate.Text + "&enddate=" + txtEndDate.Text); + } + } + + protected void TextBox_TextChanged(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.txtStartDate.Text.Trim()) && !string.IsNullOrEmpty(this.txtEndDate.Text.Trim())) + { + if (Funs.GetNewDateTime(this.txtStartDate.Text.Trim()) > Funs.GetNewDateTime(this.txtEndDate.Text.Trim())) + { + Alert.ShowInTop("开始时间不能大于结束时间!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript("refresh();"); + } + } + + protected void btnLoad_Click(object sender, EventArgs e) + { + if (AddOrUpdate == "update") + { + lodAllGrid("1"); + PageContext.RegisterStartupScript("rehiden();"); + } + else + { + lodAllGrid("0"); + PageContext.RegisterStartupScript("rehiden();"); + } + } + + #endregion + + #region 本月质量目标管理情况 Grid1方法 + protected void btnAddGrid1_Click(object sender, EventArgs e) + { + Grid1.Hidden = false; + + JArray teamGroupData = Grid1.GetMergedData(); + List list = new List(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + values.Add("Id", teamGroupRow.Value("id")); + list.Add(values); + } + JObject defaultObj = new JObject + { { "Id",Guid.NewGuid() }, + { "ReportId", ReportId }, + { "ProStage", "" }, + { "ProDescribe",""}, + { "TargetValue", "" }, + { "MonthPer","" }, + { "Remarks", "" }, + { "SortId","" }, + { "Delete1", String.Format("", GetDeleteScriptGrid1(), IconHelper.GetResolvedIconUrl(Icon.Delete)) } + }; + list.Add(defaultObj); + Grid1.DataSource = list; + Grid1.DataBind(); + } + + protected void Grid1_PreDataBound(object sender, EventArgs e) + { + // 设置LinkButtonField的点击客户端事件 + LinkButtonField deleteField = Grid1.FindColumn("Delete1") as LinkButtonField; + deleteField.OnClientClick = GetDeleteScriptGrid1(); + } + /// + /// 删除提示 + /// + /// + private string GetDeleteScriptGrid1() + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, Grid1.GetDeleteSelectedRowsReference(), String.Empty); + } + #endregion + + #region 3.1一般施工方案审批情况 Grid2方法 + /// + /// 加载一般施工审批情况 + /// + void loadGeneralPlanApproval(string objType) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + int i = 1; + + int Quantity1Sum = 0; + int Quantity2Sum = 0; + //加载所有单位 + //var units = from x in db.Project_ProjectUnit + // join y in db.Base_Unit on x.UnitId equals y.UnitId + // where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1) + // orderby y.UnitCode + // select new { x.UnitId, y.UnitName }; + units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList(); + foreach (var item in units) + { + + var query = from c in db.Comprehensive_GeneralPlanApproval + + join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin + + from u in unitJoin.DefaultIfEmpty() + + where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId + select new + + { + c.ApprovalDate, + c.ProjectId, + u.UnitId, + u.UnitName, + c.CompileDate + }; + + var AllList = query.ToList(); + var monethCount = query + .Where(x => (x.ApprovalDate >= Convert.ToDateTime(startDate) && x.ApprovalDate <= Convert.ToDateTime(endDate))); + + Model.Report_Construction_Plan model = new Model.Report_Construction_Plan(); + + model.Id = Guid.NewGuid().ToString(); + model.UnitOrMajor = item.UnitName; + model.Quantity1 = monethCount.Count(); + model.Quantity2 = AllList.Count(); + model.ReportId = ReportId; + //如果是修改,查询表中数据 + if (objType == "1") + { + var NewModel = db.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.UnitName && x.ReType == "0"); + if (NewModel != null) + { + model.Remarks = NewModel.Remarks; + } + } + list.Add(model); + + Quantity1Sum += monethCount.Count(); + Quantity2Sum += AllList.Count(); + i++; + } + Grid2.DataSource = list; + Grid2.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("UnitOrMajor", "合计"); + summary.Add("Quantity1", Quantity1Sum.ToString()); + summary.Add("Quantity2", Quantity2Sum.ToString()); + + Grid2.SummaryData = summary; + } + + + #endregion + + #region 3.2 危大工程方案审批情况 Grid3方法 + /// + /// 加载一般施工审批情况 + /// + void loadMajorPlanApproval(string objType) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + int i = 1; + + int Quantity1Sum = 0; + int Quantity2Sum = 0; + int Quantity3Sum = 0; + //加载所有单位 + //var units = from x in db.Project_ProjectUnit + // join y in db.Base_Unit on x.UnitId equals y.UnitId + // where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1) + // orderby y.UnitCode + // select new { x.UnitId, y.UnitName }; + units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList(); + foreach (var item in units) + { + + var query = from c in db.Comprehensive_MajorPlanApproval + + join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin + + from u in unitJoin.DefaultIfEmpty() + + where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId + select new + + { + c.ApprovalDate, + c.ProjectId, + u.UnitId, + u.UnitName, + c.ExpertReviewMan, + c.IsReview, + c.CompileDate + }; + + var AllList = query.ToList(); + var monethCount = query + .Where(x => (x.ApprovalDate >= Convert.ToDateTime(startDate) && x.ApprovalDate <= Convert.ToDateTime(endDate))); + + Model.Report_Construction_Plan model = new Model.Report_Construction_Plan(); + + model.Id = Guid.NewGuid().ToString(); + model.UnitOrMajor = item.UnitName; + model.Quantity1 = monethCount.Count(); + model.Quantity2 = AllList.Count(); + model.Quantity3 = AllList.Where(x => x.IsReview == true).ToList().Count(); + model.ReportId = ReportId; + //如果是修改,查询表中数据 + if (objType == "1") + { + var NewModel = db.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.UnitName && x.ReType == "1"); + if (NewModel != null) + { + model.Remarks = NewModel.Remarks; + } + } + list.Add(model); + + Quantity1Sum += monethCount.Count(); + Quantity2Sum += AllList.Count(); + Quantity3Sum += Convert.ToInt32(model.Quantity3); + i++; + } + Grid3.DataSource = list; + Grid3.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("UnitOrMajor", "合计"); + summary.Add("Quantity1", Quantity1Sum.ToString()); + summary.Add("Quantity2", Quantity2Sum.ToString()); + summary.Add("Quantity3", Quantity3Sum.ToString()); + Grid3.SummaryData = summary; + } + + + #endregion + + #region 3.3 质量控制点或检验试验计划(ITP)情况 Grid4方法 + /// + /// 加载一般施工审批情况 + /// + void loadInspectionTestPlan(string objType) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + int i = 1; + + int Quantity1Sum = 0; + int Quantity2Sum = 0; + //加载所有专业 + //var CNProfessionals = from x in db.Base_CNProfessional + // where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId + // && x.CNProfessionalId != BLL.Const.ComprehensiveId + // orderby x.SortIndex + // select new + // { + // x.CNProfessionalId, + // x.ProfessionalName + // }; + + + foreach (var item in CNProfessionals) + { + + var query = from c in db.Inspection_Test_Plan + + join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin + + from u in unitJoin.DefaultIfEmpty() + + where c.ProjectId == this.CurrUser.LoginProjectId && c.CNProfessionalId == item.CNProfessionalId + select new + + { + c.ApprovalDate, + c.ProjectId, + u.UnitId, + u.UnitName, + c.CreateDate + }; + + var AllList = query.ToList(); + var monethCount = query + .Where(x => (x.CreateDate >= Convert.ToDateTime(startDate) && x.CreateDate <= Convert.ToDateTime(endDate))); + + Model.Report_Construction_Plan model = new Model.Report_Construction_Plan(); + + model.Id = Guid.NewGuid().ToString(); + model.UnitOrMajor = item.ProfessionalName; + model.Quantity1 = monethCount.Count(); + model.Quantity2 = AllList.Count(); + + model.ReportId = ReportId; + //如果是修改,查询表中数据 + if (objType == "1") + { + var NewModel = db.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.ProfessionalName && x.ReType == "2"); + if (NewModel != null) + { + model.Remarks = NewModel.Remarks; + } + } + list.Add(model); + + Quantity1Sum += monethCount.Count(); + Quantity2Sum += AllList.Count(); + + i++; + } + Grid4.DataSource = list; + Grid4.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("UnitOrMajor", "合计"); + summary.Add("Quantity1", Quantity1Sum.ToString()); + summary.Add("Quantity2", Quantity2Sum.ToString()); + Grid4.SummaryData = summary; + } + + + #endregion + + #region 4 设计交底管理情况 Grid5方法 + /// + /// 加载一般施工审批情况 + /// + void loadDesignDetailsApprove(string objType) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + int i = 1; + + int Quantity1Sum = 0; + int Quantity2Sum = 0; + //加载所有专业 + //var CNProfessionals = from x in db.Base_CNProfessional + // where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId + // && x.CNProfessionalId != BLL.Const.ComprehensiveId + // orderby x.SortIndex + // select new + // { + // x.CNProfessionalId, + // x.ProfessionalName + // }; + + + foreach (var item in CNProfessionals) + { + + var query = from c in db.Comprehensive_DesignDetails + + where c.ProjectId == this.CurrUser.LoginProjectId && c.CNProfessionalId == item.CNProfessionalId + //&& c.Status == "3" + select new + + { + c.Status, + c.CompileDate, + c.ProjectId, + + }; + + var AllList = query.ToList(); + var monethCount = query + .Where(x => (x.CompileDate >= Convert.ToDateTime(startDate) && x.CompileDate <= Convert.ToDateTime(endDate))); + + Model.Report_Construction_Plan model = new Model.Report_Construction_Plan(); + + model.Id = Guid.NewGuid().ToString(); + model.UnitOrMajor = item.ProfessionalName; + model.Quantity1 = monethCount.Count(); + model.Quantity2 = AllList.Count(); + + model.ReportId = ReportId; + //如果是修改,查询表中数据 + if (objType == "1") + { + var NewModel = db.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.ProfessionalName && x.ReType == "3"); + if (NewModel != null) + { + model.Remarks = NewModel.Remarks; + } + } + list.Add(model); + + Quantity1Sum += monethCount.Count(); + Quantity2Sum += AllList.Count(); + + i++; + } + Grid5.DataSource = list; + Grid5.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("UnitOrMajor", "合计"); + summary.Add("Quantity1", Quantity1Sum.ToString()); + summary.Add("Quantity2", Quantity2Sum.ToString()); + Grid5.SummaryData = summary; + } + + + #endregion + + #region 5 图纸会审管理情况 Grid6方法 + /// + /// 加载一图纸会审管理情况 + /// + void loadReviewDrawings(string objType) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + int i = 1; + + int Quantity1Sum = 0; + int Quantity2Sum = 0; + //加载所有专业 + //var CNProfessionals = from x in db.Base_CNProfessional + // where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId + // && x.CNProfessionalId != BLL.Const.ComprehensiveId + // orderby x.SortIndex + // select new + // { + // x.CNProfessionalId, + // x.ProfessionalName + // }; + + + foreach (var item in CNProfessionals) + { + + var query = from c in db.Comprehensive_ReviewDrawings + + where c.ProjectId == this.CurrUser.LoginProjectId && c.CNProfessionalId == item.CNProfessionalId + //&& c.Status == "3" + select new + + { + c.Status, + c.ReviewDate, + c.ProjectId, + + }; + + var AllList = query.ToList(); + var monethCount = query + .Where(x => (x.ReviewDate >= Convert.ToDateTime(startDate) && x.ReviewDate <= Convert.ToDateTime(endDate))); + + Model.Report_Construction_Plan model = new Model.Report_Construction_Plan(); + + model.Id = Guid.NewGuid().ToString(); + model.UnitOrMajor = item.ProfessionalName; + model.Quantity1 = monethCount.Count(); + model.Quantity2 = AllList.Count(); + + model.ReportId = ReportId; + //如果是修改,查询表中数据 + if (objType == "1") + { + var NewModel = db.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.ProfessionalName && x.ReType == "4"); + if (NewModel != null) + { + model.Remarks = NewModel.Remarks; + } + } + list.Add(model); + + Quantity1Sum += monethCount.Count(); + Quantity2Sum += AllList.Count(); + + i++; + } + Grid6.DataSource = list; + Grid6.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("UnitOrMajor", "合计"); + summary.Add("Quantity1", Quantity1Sum.ToString()); + summary.Add("Quantity2", Quantity2Sum.ToString()); + Grid6.SummaryData = summary; + } + + + #endregion + + #region 6 设计变更管理情况 Grid7方法 + /// + /// 加载设计变更管理情况 + /// + void loadDesignChangeOrder() + { + int Quantity1Sum = 0, Quantity2Sum = 0, Quantity3Sum = 0, Quantity4Sum = 0, Quantity5Sum = 0, Quantity6Sum = 0; + + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + DateTime projectStartDate = Convert.ToDateTime("2015-01-01"); + List StatisticsList = new List(); + Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId); + if (project != null) + { + if (project.StartDate != null) + { + projectStartDate = Convert.ToDateTime(project.StartDate); + } + } + int i = 1; + var cNProfessionals = from x in db.Base_CNProfessional + where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId + && x.CNProfessionalId != BLL.Const.ComprehensiveId + orderby x.SortIndex + select x; + foreach (var item in cNProfessionals) + { + //专业下所有集合 + List totalManagementList = BLL.DesignChangeOrderService.GetDesignChangeOrderListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, item.CNProfessionalId, projectStartDate, DateTime.Now); + //专业下当期集合 + List managementList = BLL.DesignChangeOrderService.GetDesignChangeOrderListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, item.CNProfessionalId, startDate, endDate); + Model.CheckStatisc checkStatisc = new Model.CheckStatisc(); + checkStatisc.Num = i; + checkStatisc.WorkName = item.ProfessionalName; + checkStatisc.CheckNum = managementList.Count(); + checkStatisc.TotalCheckNum = totalManagementList.Count(); + checkStatisc.OKNum = managementList.Count(x => x.ApprovalDate != null); + checkStatisc.TotalOKNum = totalManagementList.Count(x => x.ApprovalDate != null); + checkStatisc.OneOKRate = managementList.Count(x => x.ImplementationFrontState == "已完成").ToString(); //当期完成数 + checkStatisc.TotalOneOKRate = totalManagementList.Count(x => x.ImplementationFrontState == "已完成").ToString(); //累计完成数 + + StatisticsList.Add(checkStatisc); + Quantity1Sum += checkStatisc.CheckNum; + Quantity2Sum += checkStatisc.TotalCheckNum; + Quantity3Sum += checkStatisc.OKNum; + Quantity4Sum += checkStatisc.TotalOKNum; + Quantity5Sum += Convert.ToInt32(checkStatisc.OneOKRate); + Quantity6Sum += Convert.ToInt32(checkStatisc.TotalOneOKRate); + } + + Grid7.DataSource = StatisticsList; + Grid7.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("WorkName", "合计"); + summary.Add("CheckNum", Quantity1Sum.ToString()); + summary.Add("TotalCheckNum", Quantity2Sum.ToString()); + summary.Add("OKNum", Quantity3Sum.ToString()); + summary.Add("TotalOKNum", Quantity4Sum.ToString()); + summary.Add("OneOKRate", Quantity5Sum.ToString()); + summary.Add("TotalOneOKRate", Quantity6Sum.ToString()); + Grid7.SummaryData = summary; + } + + + #endregion + + #region 7.1 合格焊工管理情况 Grid8方法 + /// + /// 加载合格焊工管理情况 + /// + void loadPassWelder() + { + int Quantity1Sum = 0, Quantity2Sum = 0, Quantity3Sum = 0, Quantity4Sum = 0, Quantity5Sum = 0, Quantity6Sum = 0, Quantity7Sum = 0, Quantity8Sum = 0; + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + DateTime projectStartDate = Convert.ToDateTime("2015-01-01"); + List StatisticsList = new List(); + Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId); + if (project != null) + { + if (project.StartDate != null) + { + projectStartDate = Convert.ToDateTime(project.StartDate); + } + } + int i = 1; + //var units = from x in db.Project_ProjectUnit + // join y in db.Base_Unit on x.UnitId equals y.UnitId + // where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitType == BLL.Const.ProjectUnitType_2 + // orderby y.UnitCode + // select new { x.UnitId, y.UnitName }; + units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2).ToList(); + foreach (var item in units) + { + + var query = from c in db.Comprehensive_InspectionPerson + + join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin + + from u in unitJoin.DefaultIfEmpty() + join cn in db.Base_CNProfessional on c.CNProfessionalId equals cn.CNProfessionalId into cnJoin + + from cn in cnJoin.DefaultIfEmpty() + join p in db.Base_Post on c.PostId equals p.PostId into postJoin + + from p in postJoin.DefaultIfEmpty() + where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId + select new + + { + c.InspectionPersonId, + c.ProjectId, + u.UnitId, + u.UnitName, + c.PersonName, + c.ApprovalTime, + cn.ProfessionalName, + p.PostName + + }; + + //单位下所有集合 + // List totalWelderList = BLL.PersonManageService.GetWelderListByUnitId(this.CurrUser.LoginProjectId, item.UnitId); + //List welderList = BLL.PersonManageService.GetWelderListByUnitIdAndDate(this.CurrUser.LoginProjectId, item.UnitId, startDate, endDate); + var totalWelderList = query.ToList(); + var welderList = query + .Where(x => (x.ApprovalTime >= Convert.ToDateTime(startDate) && x.ApprovalTime <= Convert.ToDateTime(endDate))); + Model.PassWelderStatisc passWelderStatisc = new Model.PassWelderStatisc(); + passWelderStatisc.Num = i; + passWelderStatisc.UnitName = item.UnitName; + passWelderStatisc.PipeMountGuard = welderList.Count(x => x.ProfessionalName == "管道" && x.PostName == "焊工"); + passWelderStatisc.PipeTotal = totalWelderList.Count(x => x.ProfessionalName == "管道" && x.PostName == "焊工"); + passWelderStatisc.SteelStructureMountGuard = welderList.Count(x => x.ProfessionalName == "土建" && x.PostName == "焊工"); + passWelderStatisc.SteelStructureTotal = totalWelderList.Count(x => x.ProfessionalName == "土建" && x.PostName == "焊工"); + passWelderStatisc.EquipmentMountGuard = welderList.Count(x => x.ProfessionalName == "设备" && x.PostName == "焊工"); + passWelderStatisc.EquipmentTotal = totalWelderList.Count(x => x.ProfessionalName == "设备" && x.PostName == "焊工"); + passWelderStatisc.OtherMountGuard = welderList.Count(x => x.ProfessionalName != "管道" && x.ProfessionalName != "土建" && x.ProfessionalName != "设备" && x.PostName == "焊工"); + passWelderStatisc.OtherTotal = totalWelderList.Count(x => x.ProfessionalName != "管道" && x.ProfessionalName != "土建" && x.ProfessionalName != "设备" && x.PostName == "焊工"); + StatisticsList.Add(passWelderStatisc); + i++; + Quantity1Sum += passWelderStatisc.PipeMountGuard; + Quantity2Sum += passWelderStatisc.PipeTotal; + Quantity3Sum += passWelderStatisc.SteelStructureMountGuard; + Quantity4Sum += passWelderStatisc.SteelStructureTotal; + Quantity5Sum += passWelderStatisc.EquipmentMountGuard; + Quantity6Sum += passWelderStatisc.EquipmentTotal; + Quantity7Sum += passWelderStatisc.OtherMountGuard; + Quantity8Sum += passWelderStatisc.OtherTotal; + } + + Grid8.DataSource = StatisticsList; + Grid8.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("UnitName", "合计"); + summary.Add("PipeMountGuard", Quantity1Sum.ToString()); + summary.Add("PipeTotal", Quantity2Sum.ToString()); + summary.Add("SteelStructureMountGuard", Quantity3Sum.ToString()); + summary.Add("SteelStructureTotal", Quantity4Sum.ToString()); + summary.Add("EquipmentMountGuard", Quantity5Sum.ToString()); + summary.Add("EquipmentTotal", Quantity6Sum.ToString()); + summary.Add("OtherMountGuard", Quantity7Sum.ToString()); + summary.Add("OtherTotal", Quantity8Sum.ToString()); + Grid8.SummaryData = summary; + } + #endregion + + #region 7.2 PQR/WPS报验情况 Grid9方法 + protected void btnAddGrid9_Click(object sender, EventArgs e) + { + Grid9.Hidden = false; + + JArray teamGroupData = Grid9.GetMergedData(); + List list = new List(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + values.Add("Id", teamGroupRow.Value("id")); + list.Add(values); + } + JObject defaultObj = new JObject + { { "Id",Guid.NewGuid() }, + { "ReportId", ReportId }, + { "ReType", "2" }, + { "UnitOrMajor",""}, + { "Quantity1", "" }, + { "Quantity2","" }, + { "Remarks", "" }, + { "Delete9", String.Format("", GetDeleteScriptGrid9(), IconHelper.GetResolvedIconUrl(Icon.Delete)) } + }; + list.Add(defaultObj); + Grid9.DataSource = list; + Grid9.DataBind(); + } + + protected void Grid9_PreDataBound(object sender, EventArgs e) + { + // 设置LinkButtonField的点击客户端事件 + LinkButtonField deleteField = Grid9.FindColumn("Delete9") as LinkButtonField; + deleteField.OnClientClick = GetDeleteScriptGrid9(); + } + /// + /// 删除提示 + /// + /// + private string GetDeleteScriptGrid9() + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, Grid9.GetDeleteSelectedRowsReference(), String.Empty); + } + + /// + /// 为grid9合计行 + /// + void OutPutSummaryGrid9() + { + DataTable source = ObjectToTable(Grid9.DataSource); + int Quantity1Total = 0, Quantity2Total = 0; + foreach (DataRow row in source.Rows) + { + Quantity1Total += Convert.ToInt32(row["Quantity1"]); + Quantity2Total += Convert.ToInt32(row["Quantity2"]); + } + + JObject summary = new JObject(); + summary.Add("UnitOrMajor", "合计"); + summary.Add("Quantity1", Quantity1Total.ToString()); + summary.Add("Quantity2", Quantity2Total.ToString()); + Grid9.SummaryData = summary; + } + + public static DataTable ObjectToTable(object obj) + { + try + { + Type t; + if (obj.GetType().IsGenericType) + { + t = obj.GetType().GetGenericTypeDefinition(); + } + else + { + t = obj.GetType(); + } + if (t == typeof(List<>) || + t == typeof(IEnumerable<>)) + { + DataTable dt = new DataTable(); + IEnumerable lstenum = obj as IEnumerable; + if (lstenum.Count() > 0) + { + var ob1 = lstenum.GetEnumerator(); + ob1.MoveNext(); + foreach (var item in ob1.Current.GetType().GetProperties()) + { + dt.Columns.Add(new DataColumn() { ColumnName = item.Name }); + } + //数据 + foreach (var item in lstenum) + { + DataRow row = dt.NewRow(); + foreach (var sub in item.GetType().GetProperties()) + { + row[sub.Name] = sub.GetValue(item, null); + } + dt.Rows.Add(row); + } + return dt; + } + } + else if (t == typeof(DataTable)) + { + return (DataTable)obj; + } + else //(t==typeof(Object)) + { + DataTable dt = new DataTable(); + foreach (var item in obj.GetType().GetProperties()) + { + dt.Columns.Add(new DataColumn() { ColumnName = item.Name }); + } + DataRow row = dt.NewRow(); + foreach (var item in obj.GetType().GetProperties()) + { + row[item.Name] = item.GetValue(obj, null); + } + dt.Rows.Add(row); + return dt; + } + + } + catch (Exception ex) + { + } + return null; + } + + #endregion + + #region 7.3 无损检测管理 Grid10方法 + void loadProcessControl_NondestructiveTest_New() + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + //加载所有施工分包单位 + //var units = from x in db.Project_ProjectUnit + // join y in db.Base_Unit on x.UnitId equals y.UnitId + // where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2) + // orderby y.UnitCode + // select new { x.UnitId, y.UnitName }; + units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2).ToList(); + + int? totalNum0 = 0, totalNum1 = 0;//拍片数量合计 + + + foreach (var item in units) + { + int? num0 = 0, num1 = 0;//拍片数量小计 + + var query = from c in db.ProcessControl_NondestructiveTest_New + + join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin + + from u in unitJoin.DefaultIfEmpty() + + where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId + && c.CreateDate >= Convert.ToDateTime(startDate) && c.CreateDate <= Convert.ToDateTime(endDate) + + orderby c.CreateDate descending + + select new + + { + c.CreateDate, + c.ProjectId, + u.UnitId, + u.UnitName, + c.ProfessionalName, + c.MonthQuantity, + c.TotalQuantity, + c.MonthRate, + c.TotalRate + }; + if (query.ToList().Count > 0) + { + //加载工艺管道 + var gygdModel = query.FirstOrDefault(x => x.ProfessionalName == "工艺管道"); + var model = new Model.ProcessControl_NondestructiveTest_New(); + model.Id = Guid.NewGuid().ToString(); + model.CreateMan = item.UnitName;//用作存储施工单位名称 + model.ProfessionalName = "工艺管道"; + + if (gygdModel != null) + { + model.MonthQuantity = gygdModel.MonthQuantity; + model.TotalQuantity = gygdModel.TotalQuantity; + model.MonthRate = gygdModel.MonthRate + "%"; + model.TotalRate = gygdModel.TotalRate + "%"; + #region 小计和合计 + //小计 + num0 += gygdModel.MonthQuantity; + num1 += gygdModel.TotalQuantity; + + //合计 + totalNum0 += gygdModel.MonthQuantity; + totalNum1 += gygdModel.TotalQuantity; + + #endregion + list.Add(model); + } + else + { + model.MonthQuantity = 0; + model.TotalQuantity = 0; + model.MonthRate = "0%"; + model.TotalRate = "0%"; + list.Add(model); + } + + + + + //地管 + gygdModel = query.FirstOrDefault(x => x.ProfessionalName == "地管"); + model = new Model.ProcessControl_NondestructiveTest_New(); + model.Id = Guid.NewGuid().ToString(); + model.CreateMan = item.UnitName;//用作存储施工单位名称 + model.ProfessionalName = "地管"; + + if (gygdModel != null) + { + model.MonthQuantity = gygdModel.MonthQuantity; + model.TotalQuantity = gygdModel.TotalQuantity; + model.MonthRate = gygdModel.MonthRate + "%"; + model.TotalRate = gygdModel.TotalRate + "%"; + #region 小计和合计 + //小计 + num0 += gygdModel.MonthQuantity; + num1 += gygdModel.TotalQuantity; + + //合计 + totalNum0 += gygdModel.MonthQuantity; + totalNum1 += gygdModel.TotalQuantity; + + #endregion + list.Add(model); + } + else + { + model.MonthQuantity = 0; + model.TotalQuantity = 0; + model.MonthRate = "0%"; + model.TotalRate = "0%"; + list.Add(model); + } + + + //非标 + gygdModel = query.FirstOrDefault(x => x.ProfessionalName == "非标"); + model = new Model.ProcessControl_NondestructiveTest_New(); + model.Id = Guid.NewGuid().ToString(); + model.CreateMan = item.UnitName;//用作存储施工单位名称 + model.ProfessionalName = "非标"; + + if (gygdModel != null) + { + model.MonthQuantity = gygdModel.MonthQuantity; + model.TotalQuantity = gygdModel.TotalQuantity; + model.MonthRate = gygdModel.MonthRate + "%"; + model.TotalRate = gygdModel.TotalRate + "%"; + #region 小计和合计 + //小计 + num0 += gygdModel.MonthQuantity; + num1 += gygdModel.TotalQuantity; + + //合计 + totalNum0 += gygdModel.MonthQuantity; + totalNum1 += gygdModel.TotalQuantity; + + #endregion + list.Add(model); + } + else + { + model.MonthQuantity = 0; + model.TotalQuantity = 0; + model.MonthRate = "0%"; + model.TotalRate = "0%"; + list.Add(model); + } + //小计 + model = new Model.ProcessControl_NondestructiveTest_New(); + model.Id = Guid.NewGuid().ToString(); + model.CreateMan = item.UnitName;//用作存储施工单位名称 + model.ProfessionalName = "小计"; + model.MonthQuantity = num0; + model.TotalQuantity = num1; + model.MonthRate = ""; + model.TotalRate = ""; + list.Add(model); + } + } + if (list.Count == 0) + { + Grid10.Hidden = true; + hidWsjcgl.Hidden = false; + } + else + { + Grid10.DataSource = list; + Grid10.DataBind(); + + //合计 + //合计 + JObject summary = new JObject(); + summary.Add("CreateMan", "合计"); + summary.Add("MonthQuantity", totalNum0.ToString()); + summary.Add("TotalQuantity", totalNum1.ToString()); + + Grid10.SummaryData = summary; + } + } + #endregion + + #region 8 设备报验管理情况 Grid11方法 + /// + /// 加载一般施工审批情况 + /// + void LoadInspectionEquipment(string objType) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + int i = 1; + + int Quantity1Sum = 0; + int Quantity2Sum = 0; + //加载所有单位 + //var units = from x in db.Project_ProjectUnit + // join y in db.Base_Unit on x.UnitId equals y.UnitId + // where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1) + // orderby y.UnitCode + // select new { x.UnitId, y.UnitName }; + units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList(); + foreach (var item in units) + { + + var query = from c in db.Comprehensive_InspectionEquipment + + join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin + + from u in unitJoin.DefaultIfEmpty() + + where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId + + //&& c.Status == "3" + + select new + + { + c.SamplingResult,//1合格 2不合格 + c.ProjectId, + u.UnitId, + u.UnitName, + c.CompileDate + }; + + var AllList = query.ToList(); + var monethCount = query + .Where(x => (x.CompileDate >= Convert.ToDateTime(startDate) && x.CompileDate <= Convert.ToDateTime(endDate))); + + Model.Report_Construction_Plan model = new Model.Report_Construction_Plan(); + + model.Id = Guid.NewGuid().ToString(); + model.UnitOrMajor = item.UnitName; + model.Quantity1 = monethCount.Count(); + model.Quantity2 = AllList.Count(); + //验收合格率 + var UnqualifiedCount = AllList.Where(x => x.SamplingResult == "1").ToList().Count;//合格的数量 + if (UnqualifiedCount == AllList.Count() && AllList.Count() != 0) + { + model.QuaRate = "100%"; + } + else if (UnqualifiedCount == 0 && AllList.Count() == 0) + { + model.QuaRate = "0%"; + } + else + { + var Qualificationrate = (Convert.ToDouble(UnqualifiedCount) / Convert.ToDouble(AllList.Count)) * 100; + model.QuaRate = Qualificationrate.ToString("0.00") + "%"; + } + + model.ReportId = ReportId; + //如果是修改,查询表中数据 + if (objType == "1") + { + var NewModel = db.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.UnitName && x.ReType == "6"); + if (NewModel != null) + { + model.Remarks = NewModel.Remarks; + } + } + list.Add(model); + + Quantity1Sum += monethCount.Count(); + Quantity2Sum += AllList.Count(); + + i++; + } + Grid11.DataSource = list; + Grid11.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("UnitOrMajor", "合计"); + summary.Add("Quantity1", Quantity1Sum.ToString()); + summary.Add("Quantity2", Quantity2Sum.ToString()); + + Grid11.SummaryData = summary; + } + + /// + /// 新增按钮显示文本框 + /// + /// + /// + protected void btnAddGrid11_Click(object sender, EventArgs e) + { + Form19.Hidden = false; + } + #endregion + + #region 9.计量器具报验管理情况 gvMeasuringInspection方法 + /// + /// 计量器具报验管理情况 + /// + void loadMeasuringInspection(string objType) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + int i = 1; + + int Quantity1Sum = 0; + int Quantity2Sum = 0; + //加载所有单位 + //var units = from x in db.Project_ProjectUnit + // join y in db.Base_Unit on x.UnitId equals y.UnitId + // where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1) + // orderby y.UnitCode + // select new { x.UnitId, y.UnitName }; + units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList(); + foreach (var item in units) + { + var query = from c in db.Comprehensive_InspectionMachine + join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin + from u in unitJoin.DefaultIfEmpty() + where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId && c.InspectionType.Equals("计量") + select new + { + c.InspectionDate, + c.ProjectId, + u.UnitId, + u.UnitName + }; + var AllList = query.ToList(); + var monethCount = query + .Where(x => (x.InspectionDate >= Convert.ToDateTime(startDate) && x.InspectionDate <= Convert.ToDateTime(endDate))); + + Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem(); + model.Id = Guid.NewGuid().ToString(); + model.ContentName = item.UnitName; + model.MonthsCount = monethCount.Count(); + model.ProjectCount = AllList.Count(); + model.ReportId = ReportId; + //如果是修改,查询表中数据 + if (objType == "1") + { + var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "9"); + if (NewModel != null) + { + model.RectificationRate = NewModel.RectificationRate; + model.Remarks = NewModel.Remarks; + } + } + list.Add(model); + + Quantity1Sum += monethCount.Count(); + Quantity2Sum += AllList.Count(); + i++; + } + gvMeasuringInspection.DataSource = list; + gvMeasuringInspection.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("ContentName", "合计"); + summary.Add("MonthsCount", Quantity1Sum.ToString()); + summary.Add("ProjectCount", Quantity2Sum.ToString()); + + gvMeasuringInspection.SummaryData = summary; + } + #endregion + + #region 10.现场质量共检数据 gvInspectionDataInspection方法 + /// + /// 现场质量共检数据 + /// + void loadInspectionDataInspection(string objType) + { + CheckLotBindStatisc("CV");//检验批统计:土建 + CheckLotBindStatisc("EQ");//检验批统计:设备 + CheckLotBindStatisc("PP");//检验批统计:管道 + CheckLotBindStatisc("EL");//检验批统计:电气 + CheckLotBindStatisc("IN");//检验批统计:仪表 + CheckLotBindStatisc("FF");//检验批统计:反腐 + CheckLotBindStatisc("XF");//检验批统计:消防 + + #region 现场质量共检数据合计 + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + int i = 1; + + int CheckNum = 0;//本月检查点数 + int TotalCheckNum = 0;//累计检查点数 + + int OKNum = 0;//本月检查合格点数 + int TotalOKNum = 0;//累计检查合格点数 + + string Quantity1Sum = String.Empty;//本月检查合格点数/本月检查点数 + string Quantity2Sum = String.Empty;//累计检查合格点数/累计检查点数 + + + //加载所有单位 + //var units = from x in db.Project_ProjectUnit + // join y in db.Base_Unit on x.UnitId equals y.UnitId + // where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1) + // orderby y.UnitCode + // select new { x.UnitId, y.UnitName }; + units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList(); + foreach (var item in units) + { + var query = from c in db.View_CQMS_InspectionManagementDetail + join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin + from u in unitJoin.DefaultIfEmpty() + where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId + select new + { + c.CheckDate, + c.ProjectId, + u.UnitId, + u.UnitName, + c.IsOnceQualified + }; + var AllList = query.ToList(); + var monethCount = query + .Where(x => (x.CheckDate >= Convert.ToDateTime(startDate) && x.CheckDate <= Convert.ToDateTime(endDate))); + + + Model.CheckStatisc checkStatisc = new Model.CheckStatisc(); + checkStatisc.Id = Guid.NewGuid().ToString(); + checkStatisc.ReportId = ReportId; + checkStatisc.WorkName = item.UnitName; + checkStatisc.CheckNum = monethCount.Count(); + checkStatisc.TotalCheckNum = AllList.Count(); + checkStatisc.OKNum = monethCount.Count(x => x.IsOnceQualified == true); + checkStatisc.TotalOKNum = AllList.Count(x => x.IsOnceQualified == true); + + if (checkStatisc.CheckNum != 0)//被除数不能为零 + { + checkStatisc.OneOKRate = Math.Round((double)checkStatisc.OKNum / (double)checkStatisc.CheckNum * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + checkStatisc.OneOKRate = "0%"; + } + + if (checkStatisc.TotalCheckNum != 0)//被除数不能为零 + { + checkStatisc.TotalOneOKRate = Math.Round((double)checkStatisc.TotalOKNum / (double)checkStatisc.TotalCheckNum * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + checkStatisc.TotalOneOKRate = "0%"; + } + //如果是修改,查询表中数据 + if (objType == "1") + { + var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "10"); + if (NewModel != null) + { + checkStatisc.Remarks = NewModel.Remarks; + } + } + list.Add(checkStatisc); + + CheckNum += checkStatisc.CheckNum; + TotalCheckNum += checkStatisc.TotalCheckNum; + + OKNum += checkStatisc.OKNum; + TotalOKNum += checkStatisc.TotalOKNum; + + i++; + } + + gvInspectionDataInspection.DataSource = list; + gvInspectionDataInspection.DataBind(); + + if (CheckNum != 0)//被除数不能为零 + { + Quantity1Sum = Math.Round((double)OKNum / (double)CheckNum * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + Quantity1Sum = "0%"; + } + if (TotalCheckNum != 0)//被除数不能为零 + { + Quantity2Sum = Math.Round((double)TotalOKNum / (double)TotalCheckNum * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + Quantity2Sum = "0%"; + } + + //合计 + JObject summary = new JObject(); + summary.Add("WorkName", "合计"); + summary.Add("OneOKRate", Quantity1Sum.ToString()); + summary.Add("TotalOneOKRate", Quantity2Sum.ToString()); + + gvInspectionDataInspection.SummaryData = summary; + #endregion + } + + public void CheckLotBindStatisc(string cNProfessionalCode) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + + DateTime projectStartDate = Convert.ToDateTime("2015-01-01"); + List StatisticsList = new List(); + Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId); + + int CheckNum = 0; + int TotalCheckNum = 0; + + int OKNum = 0; + int TotalOKNum = 0; + + string OneOKRate = String.Empty; + string TotalOneOKRate = String.Empty; + + + if (project != null) + { + if (project.StartDate != null) + { + projectStartDate = Convert.ToDateTime(project.StartDate); + } + } + //int i = 1; + string cNProfessionalId = (from x in db.Base_CNProfessional where x.CNProfessionalCode == cNProfessionalCode select x.CNProfessionalId).FirstOrDefault(); + + List workNames = new List(); + //专业下所有集合 + List totalManagementList = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, projectStartDate, endDate, false); + //专业下当期集合 + List managementList = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, startDate, endDate, false); + workNames = totalManagementList.Select(x => x.UnitWorkId).DefaultIfEmpty().Distinct()?.ToList(); + foreach (string item in workNames) + { + Model.WBS_UnitWork ins = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(item); + if (ins != null) + { + Model.CheckStatisc checkStatisc = new Model.CheckStatisc(); + checkStatisc.Id = Guid.NewGuid().ToString(); + checkStatisc.WorkName = ins.UnitWorkName; + + checkStatisc.CheckNum = managementList.Count(x => x.UnitWorkId == item); + checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.UnitWorkId == item); + + checkStatisc.OKNum = managementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true); + checkStatisc.TotalOKNum = totalManagementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true); + + if (checkStatisc.CheckNum != 0)//被除数不能为零 + { + checkStatisc.OneOKRate = Math.Round((double)checkStatisc.OKNum / (double)checkStatisc.CheckNum * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + checkStatisc.OneOKRate = "0%"; + } + + if (checkStatisc.TotalCheckNum != 0)//被除数不能为零 + { + checkStatisc.TotalOneOKRate = Math.Round((double)checkStatisc.TotalOKNum / (double)checkStatisc.TotalCheckNum * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + checkStatisc.TotalOneOKRate = "0%"; + } + + StatisticsList.Add(checkStatisc); + + CheckNum += checkStatisc.CheckNum; + TotalCheckNum += checkStatisc.TotalCheckNum; + + OKNum += checkStatisc.OKNum; + TotalOKNum += checkStatisc.TotalOKNum; + } + } + + if (CheckNum != 0)//被除数不能为零 + { + OneOKRate = Math.Round((double)OKNum / (double)CheckNum * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + OneOKRate = "0"; + } + if (TotalCheckNum != 0)//被除数不能为零 + { + TotalOneOKRate = Math.Round((double)TotalOKNum / (double)TotalCheckNum * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + TotalOneOKRate = "0"; + } + + //检验批统计:土建 + if (cNProfessionalCode == "CV") + { + this.gvTj.DataSource = StatisticsList; + this.gvTj.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("WorkName", "合计"); + + summary.Add("CheckNum", CheckNum.ToString()); //当前检查点数 + summary.Add("TotalCheckNum", TotalCheckNum.ToString());//累计点数 + + summary.Add("OKNum", OKNum.ToString());//当前合格点数 + summary.Add("TotalOKNum", TotalOKNum.ToString());//累计合格点数 + + summary.Add("OneOKRate", OneOKRate.ToString());//本月合格点数 + summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本月累计合格点数 + gvTj.SummaryData = summary; + + } + //检验批统计:设备 + if (cNProfessionalCode == "EQ") + { + this.GvSb.DataSource = StatisticsList; + this.GvSb.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("WorkName", "合计"); + + summary.Add("CheckNum", CheckNum.ToString()); //当前检查点数 + summary.Add("TotalCheckNum", TotalCheckNum.ToString());//累计点数 + + summary.Add("OKNum", OKNum.ToString());//当前合格点数 + summary.Add("TotalOKNum", TotalOKNum.ToString());//累计合格点数 + + summary.Add("OneOKRate", OneOKRate.ToString());//本月合格点数 + summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本月累计合格点数 + GvSb.SummaryData = summary; + } + //检验批统计:管道 + if (cNProfessionalCode == "PP") + { + this.GvGD.DataSource = StatisticsList; + this.GvGD.DataBind(); + //合计 + JObject summary = new JObject(); + summary.Add("WorkName", "合计"); + + summary.Add("CheckNum", CheckNum.ToString()); //当前检查点数 + summary.Add("TotalCheckNum", TotalCheckNum.ToString());//累计点数 + + summary.Add("OKNum", OKNum.ToString());//当前合格点数 + summary.Add("TotalOKNum", TotalOKNum.ToString());//累计合格点数 + + summary.Add("OneOKRate", OneOKRate.ToString());//本月合格点数 + summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本月累计合格点数 + GvGD.SummaryData = summary; + } + //检验批统计:电气 + if (cNProfessionalCode == "EL") + { + this.GvDq.DataSource = StatisticsList; + this.GvDq.DataBind(); + //合计 + JObject summary = new JObject(); + summary.Add("WorkName", "合计"); + + summary.Add("CheckNum", CheckNum.ToString()); //当前检查点数 + summary.Add("TotalCheckNum", TotalCheckNum.ToString());//累计点数 + + summary.Add("OKNum", OKNum.ToString());//当前合格点数 + summary.Add("TotalOKNum", TotalOKNum.ToString());//累计合格点数 + + summary.Add("OneOKRate", OneOKRate.ToString());//本月合格点数 + summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本月累计合格点数 + GvDq.SummaryData = summary; + } + //检验批统计:仪表 + if (cNProfessionalCode == "IN") + { + this.GvYb.DataSource = StatisticsList; + this.GvYb.DataBind(); + //合计 + JObject summary = new JObject(); + summary.Add("WorkName", "合计"); + + summary.Add("CheckNum", CheckNum.ToString()); //当前检查点数 + summary.Add("TotalCheckNum", TotalCheckNum.ToString());//累计点数 + + summary.Add("OKNum", OKNum.ToString());//当前合格点数 + summary.Add("TotalOKNum", TotalOKNum.ToString());//累计合格点数 + + summary.Add("OneOKRate", OneOKRate.ToString());//本月合格点数 + summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本月累计合格点数 + GvYb.SummaryData = summary; + } + //检验批统计:防腐 + if (cNProfessionalCode == "FF") + { + this.GvFf.DataSource = StatisticsList; + this.GvFf.DataBind(); + //合计 + JObject summary = new JObject(); + summary.Add("WorkName", "合计"); + + summary.Add("CheckNum", CheckNum.ToString()); //当前检查点数 + summary.Add("TotalCheckNum", TotalCheckNum.ToString());//累计点数 + + summary.Add("OKNum", OKNum.ToString());//当前合格点数 + summary.Add("TotalOKNum", TotalOKNum.ToString());//累计合格点数 + + summary.Add("OneOKRate", OneOKRate.ToString());//本月合格点数 + summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本月累计合格点数 + GvFf.SummaryData = summary; + } + //检验批统计:消防 + if (cNProfessionalCode == "XF") + { + this.GvXf.DataSource = StatisticsList; + this.GvXf.DataBind(); + //合计 + JObject summary = new JObject(); + summary.Add("WorkName", "合计"); + + summary.Add("CheckNum", CheckNum.ToString()); //当前检查点数 + summary.Add("TotalCheckNum", TotalCheckNum.ToString());//累计点数 + + summary.Add("OKNum", OKNum.ToString());//当前合格点数 + summary.Add("TotalOKNum", TotalOKNum.ToString());//累计合格点数 + + summary.Add("OneOKRate", OneOKRate.ToString());//本月合格点数 + summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本月累计合格点数 + + GvXf.SummaryData = summary; + } + } + + #endregion + + #region 11.压力管道监检情况 gvPressureInspection方法 + /// + /// 压力管道监检情况 + /// + void loadPressureInspection(string objType) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + int i = 1; + + int Quantity0Sum = 0; + int Quantity1Sum = 0; + int Quantity2Sum = 0; + //加载所有单位 + //var units = from x in db.Project_ProjectUnit + // join y in db.Base_Unit on x.UnitId equals y.UnitId + // where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1) + // orderby y.UnitCode + // select new { x.UnitId, y.UnitName }; + units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList(); + foreach (var item in units) + { + var query = from c in db.Comprehensive_PressurePipe + join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin + from u in unitJoin.DefaultIfEmpty() + where c.Projctid == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId + select new + { + c.ReportTime, + c.Projctid, + u.UnitId, + u.UnitName, + c.ActualNumber, + c.PressurePipeNumber + }; + var AllList = query.ToList(); + var monethCount = query + .Where(x => (x.ReportTime >= Convert.ToDateTime(startDate) && x.ReportTime <= Convert.ToDateTime(endDate))); + + Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem(); + model.Id = Guid.NewGuid().ToString(); + model.ContentName = item.UnitName; + model.MonthsCount = Convert.ToInt32(monethCount.Sum(o => o.PressurePipeNumber)); + model.ProjectCount = Convert.ToInt32(AllList.Sum(o => o.PressurePipeNumber)); + model.TotalNoBackCount = Convert.ToInt32(monethCount.Sum(o => o.ActualNumber));//总数 + model.ReportId = ReportId; + //如果是修改,查询表中数据 + if (objType == "1") + { + var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "11"); + if (NewModel != null) + { + model.Remarks = NewModel.Remarks; + } + } + list.Add(model); + Quantity0Sum += Convert.ToInt32(AllList.Sum(o => o.ActualNumber)); + Quantity1Sum += Convert.ToInt32(monethCount.Sum(o => o.PressurePipeNumber)); + Quantity2Sum += Convert.ToInt32(AllList.Sum(o => o.PressurePipeNumber)); + i++; + } + gvPressureInspection.DataSource = list; + gvPressureInspection.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("ContentName", "合计"); + summary.Add("TotalNoBackCount", Quantity0Sum.ToString());//总数 + summary.Add("MonthsCount", Quantity1Sum.ToString()); + summary.Add("ProjectCount", Quantity2Sum.ToString()); + + gvPressureInspection.SummaryData = summary; + } + #endregion + + #region 12.管道试压包管理情况 gvPipingInspection方法 + /// + /// 管道试压包管理情况 + /// + void loadPipingInspection(string objType) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + int i = 1; + + int Quantity0Sum = 0; + int Quantity1Sum = 0; + int Quantity2Sum = 0; + + //加载所有单位 + //var units = from x in db.Project_ProjectUnit + // join y in db.Base_Unit on x.UnitId equals y.UnitId + // where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1) + // orderby y.UnitCode + // select new { x.UnitId, y.UnitName }; + units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList(); + foreach (var item in units) + { + var query = from c in db.Comprehensive_PressurePipe + join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin + from u in unitJoin.DefaultIfEmpty() + where c.Projctid == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId + select new + { + c.ReportTime, + c.Projctid, + u.UnitId, + u.UnitName, + c.PackageNumber, + c.IssuedReportNumber + }; + var AllList = query.ToList(); + var monethCount = query + .Where(x => (x.ReportTime >= Convert.ToDateTime(startDate) && x.ReportTime <= Convert.ToDateTime(endDate))); + + Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem(); + model.Id = Guid.NewGuid().ToString(); + model.ContentName = item.UnitName; + model.TotalNoBackCount = Convert.ToInt32(monethCount.Sum(o => o.PackageNumber)); + model.MonthsCount = Convert.ToInt32(monethCount.Sum(o => o.IssuedReportNumber)); + model.ProjectCount = Convert.ToInt32(AllList.Sum(o => o.IssuedReportNumber)); + model.ReportId = ReportId; + //如果是修改,查询表中数据 + if (objType == "1") + { + var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "11"); + if (NewModel != null) + { + model.Remarks = NewModel.Remarks; + } + } + list.Add(model); + + Quantity0Sum += Convert.ToInt32(monethCount.Sum(o => o.PackageNumber)); + Quantity1Sum += Convert.ToInt32(monethCount.Sum(o => o.IssuedReportNumber)); + Quantity2Sum += Convert.ToInt32(AllList.Sum(o => o.IssuedReportNumber)); + i++; + } + gvPipingInspection.DataSource = list; + gvPipingInspection.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("ContentName", "合计"); + summary.Add("TotalNoBackCount", Quantity0Sum.ToString()); + summary.Add("MonthsCount", Quantity1Sum.ToString()); + summary.Add("ProjectCount", Quantity2Sum.ToString()); + + gvPipingInspection.SummaryData = summary; + } + #endregion + + #region 13.特种设备监检情况 gvSpecialInspection方法 + /// + /// 特种设备监检情况 + /// + void loadSpecialInspection(string objType) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + int i = 1; + + int Quantity0Sum = 0; + int Quantity1Sum = 0; + int Quantity2Sum = 0; + //加载所有单位 + //var units = from x in db.Project_ProjectUnit + // join y in db.Base_Unit on x.UnitId equals y.UnitId + // where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1) + // orderby y.UnitCode + // select new { x.UnitId, y.UnitName }; + units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList(); + foreach (var item in units) + { + var query = from c in db.Comprehensive_SpecialEquipment + join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin + from u in unitJoin.DefaultIfEmpty() + where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId + select new + { + c.ReportTime, + c.ProjectId, + u.UnitId, + u.UnitName, + c.SunNumber, + c.MonitoringReportNumber + }; + var AllList = query.ToList(); + var monethCount = query + .Where(x => (x.ReportTime >= Convert.ToDateTime(startDate) && x.ReportTime <= Convert.ToDateTime(endDate))); + + Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem(); + model.Id = Guid.NewGuid().ToString(); + model.ContentName = item.UnitName; + model.TotalNoBackCount = Convert.ToInt32(AllList.Sum(o => o.SunNumber)); + model.MonthsCount = Convert.ToInt32(monethCount.Sum(o => o.MonitoringReportNumber)); + model.ProjectCount = Convert.ToInt32(AllList.Sum(o => o.MonitoringReportNumber)); + model.ReportId = ReportId; + //如果是修改,查询表中数据 + if (objType == "1") + { + var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "13"); + if (NewModel != null) + { + model.Remarks = NewModel.Remarks; + } + } + list.Add(model); + Quantity0Sum += Convert.ToInt32(AllList.Sum(o => o.SunNumber)); + Quantity1Sum += Convert.ToInt32(monethCount.Sum(o => o.MonitoringReportNumber)); + Quantity2Sum += Convert.ToInt32(AllList.Sum(o => o.MonitoringReportNumber)); + i++; + } + gvSpecialInspection.DataSource = list; + gvSpecialInspection.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("ContentName", "合计"); + summary.Add("TotalNoBackCount", Quantity0Sum.ToString());//总数 + summary.Add("MonthsCount", Quantity1Sum.ToString());//本月完成监检数量 + summary.Add("ProjectCount", Quantity2Sum.ToString());//累计完成监检数量 + + gvSpecialInspection.SummaryData = summary; + } + #endregion + + #region 14.NCR管理情况 gvNcrManagementInspection方法 + /// + /// NCR管理情况 + /// + void loadNcrManagementInspection(string objType) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + List StatisticsList = new List(); + int i = 1; + + int CurrentPeriodOkNumSum = 0; + int OKNumSum = 0; + int CheckNumSum = 0; + string OKRateSum = string.Empty; + + var project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId); + DateTime projectStartDate = Convert.ToDateTime("2000-01-01"); + if (project != null && project.StartDate != null) + { + projectStartDate = project.StartDate.Value; + } + //var units = from x in db.Project_ProjectUnit + // join y in db.Base_Unit on x.UnitId equals y.UnitId + // where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitType == BLL.Const.ProjectUnitType_2 + // orderby y.UnitCode + // select new { x.UnitId, y.UnitName }; + units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2).ToList(); + + foreach (var item in units) + { + + var query = from c in db.Comprehensive_NCRManagement + join u in db.Base_Unit on c.SendUnit equals u.UnitId into unitJoin + from u in unitJoin.DefaultIfEmpty() + where c.ProjectId == this.CurrUser.LoginProjectId && c.ReceiveUnit == item.UnitId + select new + { + c.NCRManagementId, + c.ProjectId, + u.UnitId, + u.UnitName, + c.IssuedDate, + c.Status, + c.ImplementationFrontState, + }; + + var AllList = query.ToList(); + var unitNCRStatic = query + .Where(x => (x.IssuedDate >= Convert.ToDateTime(startDate) && x.IssuedDate <= Convert.ToDateTime(endDate))); + + Model.NCRReportStatisc NCRStatisc = new Model.NCRReportStatisc(); + NCRStatisc.Id = Guid.NewGuid().ToString(); + NCRStatisc.WorkName = item.UnitName; + //NCRStatisc.CurrentPeriodOkNum = unitNCRStatic.Count(x => x.Status == "3"); + //NCRStatisc.OKNum = AllList.Count(x => x.Status == "3"); + NCRStatisc.CurrentPeriodOkNum = unitNCRStatic.Where(x => x.ImplementationFrontState.Trim().Equals("已闭合")).Count(); + NCRStatisc.OKNum = AllList.Where(x => x.ImplementationFrontState.Trim().Equals("已闭合")).Count(); + + NCRStatisc.CheckNum = AllList.Count(); + + if (NCRStatisc.CheckNum != 0)//被除数不能为零 + { + NCRStatisc.OKRate = Math.Round((double)NCRStatisc.OKNum / (double)NCRStatisc.CheckNum * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + NCRStatisc.OKRate = "0%"; + } + + StatisticsList.Add(NCRStatisc); + + CurrentPeriodOkNumSum += NCRStatisc.CurrentPeriodOkNum; + OKNumSum += NCRStatisc.OKNum; + CheckNumSum += NCRStatisc.CheckNum; + i++; + } + + if (CheckNumSum != 0)//被除数不能为零 + { + OKRateSum = Math.Round((double)OKNumSum / (double)CheckNumSum * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + OKRateSum = "0%"; + } + + this.gvNcrManagementInspection.DataSource = StatisticsList; + this.gvNcrManagementInspection.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("WorkName", "合计"); + summary.Add("CurrentPeriodOkNum", CurrentPeriodOkNumSum.ToString()); + summary.Add("OKNum", OKNumSum.ToString()); + summary.Add("CheckNum", CheckNumSum.ToString()); + summary.Add("OKRate", OKRateSum.ToString()); + + gvNcrManagementInspection.SummaryData = summary; + } + #endregion + + #region 15.质量巡检情况 gvQualityInspection方法 + /// + /// 加载质量巡检情况 + /// + void loadQualityInspection(string objType) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + int i = 1; + + int Quantity1Sum = 0; + int Quantity2Sum = 0; + int ClosedCountSum = 0; + //加载所有单位 + //var units = from x in db.Project_ProjectUnit + // join y in db.Base_Unit on x.UnitId equals y.UnitId + // where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1) + // orderby y.UnitCode + // select new { x.UnitId, y.UnitName }; + units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList(); + foreach (var item in units) + { + var query = from c in db.Check_CheckControl + join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin + from u in unitJoin.DefaultIfEmpty() + where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId + select new + { + c.CheckDate, + c.ProjectId, + u.UnitId, + u.UnitName, + c.State + }; + var AllList = query.ToList(); + var monethCount = query + .Where(x => (x.CheckDate >= Convert.ToDateTime(startDate) && x.CheckDate <= Convert.ToDateTime(endDate))); + var ClosedCount = query.Where(x => x.State == "7");//已关闭数量 + + Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem(); + model.Id = Guid.NewGuid().ToString(); + model.ContentName = item.UnitName; + model.MonthsCount = monethCount.Count(); + model.ProjectCount = AllList.Count(); + if (AllList.Count() > 0) + { + model.RectificationRate = (100.0 * (ClosedCount.Count() / AllList.Count())).ToString("#0.00") + "%"; + } + else + { + model.RectificationRate = "0.00%"; + } + + model.ReportId = ReportId; + //如果是修改,查询表中数据 + if (objType == "1") + { + var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "1"); + if (NewModel != null) + { + //model.RectificationRate = NewModel.RectificationRate; + model.Remarks = NewModel.Remarks; + } + } + list.Add(model); + + Quantity1Sum += monethCount.Count(); + Quantity2Sum += AllList.Count(); + ClosedCountSum += ClosedCount.Count(); + + i++; + } + gvQualityInspection.DataSource = list; + gvQualityInspection.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("ContentName", "合计"); + summary.Add("MonthsCount", Quantity1Sum.ToString()); + summary.Add("ProjectCount", Quantity2Sum.ToString()); + if (Quantity2Sum > 0) + { + summary.Add("RectificationRate", (100.00 * (ClosedCountSum / Quantity2Sum)).ToString("#0.00") + "%"); + } + else + { + summary.Add("RectificationRate", "0.00%"); + } + gvQualityInspection.SummaryData = summary; + } + #endregion + + #region 16.质量专项检查情况 gvSpecialCheck方法 + /// + /// 加载质量专项检查情况 + /// + void loadSpecialCheck(string objType) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + int i = 1; + + int Quantity1Sum = 0; + int Quantity2Sum = 0; + + //加载检查类别 + var lists = BLL.JointCheckService.GetCheckTypeList(); + foreach (var item in lists) + { + var query = from c in db.Check_JointCheck + where c.ProjectId == this.CurrUser.LoginProjectId && c.CheckType == item.Key.ToString() + select new + { + c.CheckDate, + c.ProjectId, + c.CheckType + }; + var AllList = query.ToList(); + var monethCount = query + .Where(x => (x.CheckDate >= Convert.ToDateTime(startDate) && x.CheckDate <= Convert.ToDateTime(endDate))); + + Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem(); + model.Id = Guid.NewGuid().ToString(); + model.ContentName = item.Value; + model.MonthsCount = monethCount.Count(); + model.ProjectCount = AllList.Count(); + model.ReportId = ReportId; + //如果是修改,查询表中数据 + if (objType == "1") + { + var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.Value && x.ReType == "2"); + if (NewModel != null) + { + model.Remarks = NewModel.Remarks; + } + } + list.Add(model); + + Quantity1Sum += monethCount.Count(); + Quantity2Sum += AllList.Count(); + i++; + } + + gvSpecialCheck.DataSource = list; + gvSpecialCheck.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("ContentName", "合计"); + summary.Add("MonthsCount", Quantity1Sum.ToString()); + summary.Add("ProjectCount", Quantity2Sum.ToString()); + + gvSpecialCheck.SummaryData = summary; + } + #endregion + + #region 17.质量文件上报情况 gvFileReport方法 + /// + /// 加载质量文件上报情况 + /// + void loadFileReport(string objType) + { + DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()); + var list = new List(); + int i = 1; + + int Quantity1Sum = 0; + int Quantity2Sum = 0; + int Quantity3Sum = 0; + int Quantity4Sum = 0; + //加载所有单位 + //var units = from x in db.Project_ProjectUnit + // join y in db.Base_Unit on x.UnitId equals y.UnitId + // where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1) + // orderby y.UnitCode + // select new { x.UnitId, y.UnitName }; + units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList(); + foreach (var item in units) + { + var query = from c in db.Comprehensive_DataReceivingDoc + join u in db.Base_Unit on c.SendUnit equals u.UnitId into unitJoin + from u in unitJoin.DefaultIfEmpty() + where c.ProjectId == this.CurrUser.LoginProjectId && c.SendUnit == item.UnitId + select new + { + c.ReceiveDate, + c.ProjectId, + c.IsReply, + c.RetrunWuhuangCopies, + u.UnitId, + u.UnitName + }; + var AllList = query.ToList();//项目数 + //本月数 + var monethCount = query.Where(x => (x.ReceiveDate >= Convert.ToDateTime(startDate) && x.ReceiveDate <= Convert.ToDateTime(endDate))); + var yzCount = query.Where(x => x.IsReply == true && x.RetrunWuhuangCopies != null && (x.ReceiveDate >= Convert.ToDateTime(startDate) && x.ReceiveDate <= Convert.ToDateTime(endDate)));//本月业主/ 监理返回数量 + int totalReturnCount = query.Where(x => x.IsReply == true && x.RetrunWuhuangCopies != null).Count();//总的已返回数量 + var NoBackCount = AllList.Count() - totalReturnCount;//累计未返回数量 + Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem(); + model.Id = Guid.NewGuid().ToString(); + model.ContentName = item.UnitName; + model.MonthsCount = monethCount.Count(); + model.ProjectCount = AllList.Count(); + model.MonthsBackCount = yzCount.Count(); + model.TotalNoBackCount = NoBackCount; + model.ReportId = ReportId; + //如果是修改,查询表中数据 + if (objType == "1") + { + var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "3"); + if (NewModel != null) + { + model.Remarks = NewModel.Remarks; + } + } + list.Add(model); + + Quantity1Sum += monethCount.Count(); + Quantity2Sum += AllList.Count(); + Quantity3Sum += yzCount.Count(); + Quantity4Sum += NoBackCount; + i++; + } + gvFileReport.DataSource = list; + gvFileReport.DataBind(); + + //合计 + JObject summary = new JObject(); + summary.Add("ContentName", "合计"); + summary.Add("MonthsCount", Quantity1Sum.ToString()); + summary.Add("ProjectCount", Quantity2Sum.ToString()); + summary.Add("MonthsBackCount", Quantity3Sum.ToString()); + summary.Add("TotalNoBackCount", Quantity4Sum.ToString()); + + gvFileReport.SummaryData = summary; + } + #endregion + + #region 18.本月质量问题处理情况 + #region gvRowMaterialProblem 事件 + /// + /// 增加原材料问题 + /// + /// + /// + protected void btnRowMaterialProblem_Click(object sender, EventArgs e) + { + gvRowMaterialProblem.Hidden = false; + + JArray teamGroupData = gvRowMaterialProblem.GetMergedData(); + List list = new List(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + values.Add("Id", teamGroupRow.Value("id")); + list.Add(values); + } + JObject defaultObj = new JObject + { { "RowMaterialProblemId",Guid.NewGuid().ToString() }, + { "ReportId", ReportId }, + { "UnitId", "" }, + { "ProblemDesrioption",""}, + { "TreatmentMeasures", "" }, + { "ProcessingResults","" }, + { "Remark", "" }, + { "delRowMaterialProblem", String.Format("", GetDeleteRowMaterialProblem(), IconHelper.GetResolvedIconUrl(Icon.Delete)) } + }; + list.Add(defaultObj); + gvRowMaterialProblem.DataSource = list; + gvRowMaterialProblem.DataBind(); + } + + /// + /// 绑定数据前事件 + /// + /// + /// + protected void gvRowMaterialProblem_PreDataBound(object sender, EventArgs e) + { + // 设置LinkButtonField的点击客户端事件 + LinkButtonField deleteField = gvRowMaterialProblem.FindColumn("delRowMaterialProblem") as LinkButtonField; + deleteField.OnClientClick = GetDeleteRowMaterialProblem(); + } + /// + /// 删除提示 + /// + /// + private string GetDeleteRowMaterialProblem() + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, gvRowMaterialProblem.GetDeleteSelectedRowsReference(), String.Empty); + } + #endregion + + #region gvConstructionProblems 事件 + /// + /// 增加施工过程问题 + /// + /// + /// + protected void btnAddConstructionProblems_Click(object sender, EventArgs e) + { + gvConstructionProblems.Hidden = false; + + JArray teamGroupData = gvConstructionProblems.GetMergedData(); + List list = new List(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + values.Add("Id", teamGroupRow.Value("id")); + list.Add(values); + } + JObject defaultObj = new JObject + { { "ConstructionProblemsId",Guid.NewGuid() }, + { "ReportId", ReportId }, + { "UnitId", "" }, + { "ProblemDesrioption",""}, + { "TreatmentMeasures", "" }, + { "ProcessingResults","" }, + { "Remark", "" }, + { "delConstructionProblems", String.Format("", GetDeleteConstructionProblems(), IconHelper.GetResolvedIconUrl(Icon.Delete)) } + }; + list.Add(defaultObj); + gvConstructionProblems.DataSource = list; + gvConstructionProblems.DataBind(); + } + + /// + /// 绑定数据前事件 + /// + /// + /// + protected void gvConstructionProblems_PreDataBound(object sender, EventArgs e) + { + // 设置LinkButtonField的点击客户端事件 + LinkButtonField deleteField = gvConstructionProblems.FindColumn("delConstructionProblems") as LinkButtonField; + deleteField.OnClientClick = GetDeleteConstructionProblems(); + } + + /// + /// 删除提示 + /// + /// + private string GetDeleteConstructionProblems() + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, gvConstructionProblems.GetDeleteSelectedRowsReference(), String.Empty); + } + #endregion + #endregion + + #region 19.下月质量控制重点 + /// + /// gvNextQualityControl加载前事件 + /// + /// + /// + protected void gvNextQualityControl_PreDataBound(object sender, EventArgs e) + { + // 设置LinkButtonField的点击客户端事件 + LinkButtonField deleteField = gvNextQualityControl.FindColumn("delNextQualityControl") as LinkButtonField; + deleteField.OnClientClick = GetDeleteNextQualityControl(); + } + + /// + /// 增加 + /// + /// + /// + protected void btnAddNextControl_Click(object sender, EventArgs e) + { + gvNextQualityControl.Hidden = false; + + JArray teamGroupData = gvNextQualityControl.GetMergedData(); + List list = new List(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + values.Add("Id", teamGroupRow.Value("id")); + list.Add(values); + } + JObject defaultObj = new JObject + { { "NextQualityControlId",Guid.NewGuid().ToString() }, + { "ReportId", ReportId }, + { "NextQualityControlContent", "" }, + { "delNextQualityControl", String.Format("", GetDeleteNextQualityControl(), IconHelper.GetResolvedIconUrl(Icon.Delete)) } + }; + list.Add(defaultObj); + gvNextQualityControl.DataSource = list; + gvNextQualityControl.DataBind(); + } + + /// + /// 删除提示 + /// + /// + private string GetDeleteNextQualityControl() + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, gvNextQualityControl.GetDeleteSelectedRowsReference(), String.Empty); + } + #endregion + + #region 23.施工照片 + protected void filePhoto_FileSelected(object sender, EventArgs e) + { + if (filePhoto.HasFile) + { + string fileName = filePhoto.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto.Reset(); + } + + if (filePhoto2.HasFile) + { + string fileName = filePhoto2.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto2.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto2.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto2.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto2.Reset(); + } + + if (filePhoto3.HasFile) + { + string fileName = filePhoto3.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto3.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto3.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto3.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto3.Reset(); + } + + if (filePhoto4.HasFile) + { + string fileName = filePhoto4.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto4.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto4.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto4.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto4.Reset(); + } + + if (filePhoto5.HasFile) + { + string fileName = filePhoto5.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto5.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto5.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto5.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto5.Reset(); + } + + if (filePhoto6.HasFile) + { + string fileName = filePhoto6.ShortFileName; + if (!ValidateFileType(fileName)) + { + // 清空文件上传控件 + filePhoto6.Reset(); + ShowNotify("无效的文件类型!"); + return; + } + fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_"); + fileName = DateTime.Now.Ticks.ToString() + "_" + fileName; + + filePhoto6.SaveAs(Server.MapPath("~/upload/" + fileName)); + + imgPhoto6.ImageUrl = "~/upload/" + fileName; + + // 清空文件上传组件(上传后要记着清空,否则点击提交表单时会再次上传!!) + filePhoto6.Reset(); + } + } + #endregion + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(this.txtPeriod.Text.Trim())) + { + ShowNotify("周期不能为空!", MessageBoxIcon.Warning); + return; + } + Model.Report_WeekAndMonthReport_New report = new Model.Report_WeekAndMonthReport_New(); + report.Id = ReportId; + report.ProjectId = this.CurrUser.LoginProjectId; + report.ReportType = "2";//1.月报,2-周报 + if (!string.IsNullOrEmpty(this.txtPeriod.Text.Trim())) + { + try + { + report.SortId = this.txtPeriod.Text.Trim(); + } + catch (Exception) + { + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('周期输入格式不正确,请重新输入!')", true); + return; + } + } + if (!string.IsNullOrEmpty(this.txtStartDate.Text)) + { + report.StartDate = Convert.ToDateTime(this.txtStartDate.Text); + } + if (!string.IsNullOrEmpty(this.txtEndDate.Text)) + { + report.EndDate = Convert.ToDateTime(this.txtEndDate.Text); + } + report.CreateDate = DateTime.Now; + report.CreateMan = CurrUser.UserId; + + #region 删除所有子表 + //本月质量目标管理情况 + CqmsTargetService.Delete(ReportId); + + //所有文本框表 + TextBoxContentService.Delete(ReportId); + + //删除施工方案及检验试验计划审批情况 + BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId); + + // 15.质量巡检情况 16.质量专项检查情况 17.质量文件上报情况 + BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId); + //18.本月质量问题处理情况(1)原材料问题 + BLL.RowMaterialProblemService.DeleteRowMaterialProbleByReportId(ReportId); + //18.本月质量问题处理情况(2)施工过程问题 + BLL.ConstructionProblemsService.DeleteConstructionProblemsByReportId(ReportId); + //19.下月质量控制重点 + BLL.NextQualityControlService.DeleteNextQualityControlByReportId(ReportId); + + #endregion + + #region 保存所有子表 + //保存本月质量目标管理情况 + saveTarget(); + + //保存3.1一般施工方案审批情况 + saveYbsgfa(); + + //保存3.2危大工程方案审批情况 + saveWdgcfa(); + + //保存3.2质量控制点或检验试验计划(ITP)情况 + saveJysyjh(); + + //保存4 设计交底管理情况 + saveSjjd(); + + //保存4图纸会审管理情况 + saveTzhs(); + + //保存7.2PQR/WPS报验情况 + savePqrWps(); + + //保存8 设备材料报验管理情况 + saveSbclBy(); + + //保存9.计量器具报验管理情况 + saveMeasuringInspection(); + //保存10.现场质量共检数据 + saveTjInspection(); + saveSbInspection(); + saveGDInspection(); + saveDQInspection(); + saveYBInspection(); + saveFFInspection(); + saveXFInspection(); + saveInspectionDataInspection(); + //保存11.压力管道监检情况 + savePressureInspection(); + //保存12.管道试压包管理情况 + savePipingInspection(); + //保存13.特种设备监检情况 + saveSpecialInspection(); + //保存14.NCR管理情况 + saveNcrManagementInspection(); + + //保存15.质量巡检情况 + saveQualityInspection(); + //保存16.质量专项检查情况 + saveSpecialCheck(); + //保存17.质量文件上报情况 + saveFileReport(); + //保存18.(1)原材料问题 + saveRowMaterialProblem(); + //保存18.(2)施工过程问题 + saveConstructionProblems(); + //保存19.下月质量控制重点 + saveNextQualityControl(); + + //保存23.施工照片 + saveImages(); + + //保存文本框 + saveTxtContent(); + #endregion + + if (AddOrUpdate == "add") + { + WeekAndMonthReportNewService.Insert(report); + } + else + { + WeekAndMonthReportNewService.Update(report); + } + + ShowNotify("编辑成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + + #region 保存本月质量目标管理情况 + void saveTarget() + { + List detailLists = new List(); + JArray teamGroupData = Grid1.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CqmsTarget newDetail = new Model.Report_CqmsTarget + { + //Id = values.Value("Id"), + ReportId = ReportId, + ProStage = values.Value("ProStage"), + ProDescribe = values.Value("ProDescribe"), + TargetValue = values.Value("TargetValue"), + MonthPer = values.Value("MonthPer"), + Remarks = values.Value("Remarks"), + SortId = rowIndex + 1 + }; + if (Grid1.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = Grid1.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CqmsTarget.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + + } + #endregion + + #region 保存PQR/WPS报验情况 + void savePqrWps() + { + List detailLists = new List(); + JArray teamGroupData = Grid9.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_Construction_Plan newDetail = new Model.Report_Construction_Plan + { + //Id = values.Value("Id"), + ReportId = ReportId, + ReType = "5", + UnitOrMajor = values.Value("UnitOrMajor"), + Quantity1 = values.Value("Quantity1"), + Quantity2 = values.Value("Quantity2"), + Remarks = values.Value("Remarks"), + }; + if (Grid9.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = Grid9.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_Construction_Plan.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + #endregion + + #region 保存施工方案及检验试验计划审批情况 + /// + /// 3.1保存一般施工方案审批情况 + /// + void saveYbsgfa() + { + List detailLists = new List(); + JArray teamGroupData = Grid2.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_Construction_Plan newDetail = new Model.Report_Construction_Plan + { + //Id = values.Value("Id"), + ReportId = ReportId, + ReType = "0", + UnitOrMajor = values.Value("UnitOrMajor"), + Quantity1 = values.Value("Quantity1"), + Quantity2 = values.Value("Quantity2"), + Remarks = values.Value("Remarks") + }; + if (Grid2.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = Grid2.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_Construction_Plan.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + + /// + /// 3.2保存危大工程方案审批情况 + /// + void saveWdgcfa() + { + List detailLists = new List(); + JArray teamGroupData = Grid3.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_Construction_Plan newDetail = new Model.Report_Construction_Plan + { + //Id = values.Value("Id"), + ReportId = ReportId, + ReType = "1", + UnitOrMajor = values.Value("UnitOrMajor"), + Quantity1 = values.Value("Quantity1"), + Quantity2 = values.Value("Quantity2"), + Quantity3 = values.Value("Quantity3"), + Remarks = values.Value("Remarks") + }; + if (Grid3.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = Grid3.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_Construction_Plan.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + + /// + /// 3.3 质量控制点或检验试验计划(ITP)情况 + /// + void saveJysyjh() + { + List detailLists = new List(); + JArray teamGroupData = Grid4.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_Construction_Plan newDetail = new Model.Report_Construction_Plan + { + //Id = values.Value("Id"), + ReportId = ReportId, + ReType = "2", + UnitOrMajor = values.Value("UnitOrMajor"), + Quantity1 = values.Value("Quantity1"), + Quantity2 = values.Value("Quantity2"), + Remarks = values.Value("Remarks") + }; + if (Grid4.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = Grid4.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_Construction_Plan.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + #endregion + + #region 保存4.设计交底管理情况 + /// + /// 保存设计交底管理情况 + /// + void saveSjjd() + { + List detailLists = new List(); + JArray teamGroupData = Grid5.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_Construction_Plan newDetail = new Model.Report_Construction_Plan + { + //Id = values.Value("Id"), + ReportId = ReportId, + ReType = "3", + UnitOrMajor = values.Value("UnitOrMajor"), + Quantity1 = values.Value("Quantity1"), + Quantity2 = values.Value("Quantity2"), + Remarks = values.Value("Remarks") + }; + if (Grid5.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = Grid5.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_Construction_Plan.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + #endregion + + #region 保存图纸会审 + /// + /// 保存图纸会审 + /// + void saveTzhs() + { + List detailLists = new List(); + JArray teamGroupData = Grid6.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_Construction_Plan newDetail = new Model.Report_Construction_Plan + { + //Id = values.Value("Id"), + ReportId = ReportId, + ReType = "4", + UnitOrMajor = values.Value("UnitOrMajor"), + Quantity1 = values.Value("Quantity1"), + Quantity2 = values.Value("Quantity2"), + Remarks = values.Value("Remarks") + }; + if (Grid6.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = Grid6.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_Construction_Plan.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + #endregion + + #region 保存设备材料报验管理情况 + /// + /// 保存设备材料报验管理情况 + /// + void saveSbclBy() + { + List detailLists = new List(); + JArray teamGroupData = Grid11.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_Construction_Plan newDetail = new Model.Report_Construction_Plan + { + //Id = values.Value("Id"), + ReportId = ReportId, + ReType = "6", + UnitOrMajor = values.Value("UnitOrMajor"), + Quantity1 = values.Value("Quantity1"), + Quantity2 = values.Value("Quantity2"), + QuaRate = values.Value("QuaRate"), + Remarks = values.Value("Remarks") + }; + if (Grid11.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = Grid11.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_Construction_Plan.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + #endregion + + #region 保存文本框内容 + /// + /// 保存文本框内容 + /// + void saveTxtContent() + { + var txtContentList = new List(); + #region 给实体赋值 + var model0 = new Model.Report_TextBoxContent(); + model0.Id = Guid.NewGuid().ToString(); + model0.ReportId = ReportId; + model0.ContentType = "0"; + model0.ContentText = txtAre0.Text; + txtContentList.Add(model0); + + var model1 = new Model.Report_TextBoxContent(); + model1.Id = Guid.NewGuid().ToString(); + model1.ReportId = ReportId; + model1.ContentType = "1"; + model1.ContentText = txtAre1.Text; + txtContentList.Add(model1); + + var model2 = new Model.Report_TextBoxContent(); + model2.Id = Guid.NewGuid().ToString(); + model2.ReportId = ReportId; + model2.ContentType = "2"; + model2.ContentText = txtAre2.Text; + txtContentList.Add(model2); + + var model20 = new Model.Report_TextBoxContent(); + model20.Id = Guid.NewGuid().ToString(); + model20.ReportId = ReportId; + model20.ContentType = "20"; + model20.ContentText = txtAre20.Text; + txtContentList.Add(model20); + + var model21 = new Model.Report_TextBoxContent(); + model21.Id = Guid.NewGuid().ToString(); + model21.ReportId = ReportId; + model21.ContentType = "21"; + model21.ContentText = txtAre21.Text; + txtContentList.Add(model21); + + var model22 = new Model.Report_TextBoxContent(); + model22.Id = Guid.NewGuid().ToString(); + model22.ReportId = ReportId; + model22.ContentType = "22"; + model22.ContentText = txtAre22.Text; + txtContentList.Add(model22); + + //如果8设备材料报验管理情况点击了增加按钮,则添加文本框内容 + var model8 = new Model.Report_TextBoxContent(); + model8.Id = Guid.NewGuid().ToString(); + model8.ReportId = ReportId; + model8.ContentType = "8"; + model8.ContentText = txtAre8.Text; + txtContentList.Add(model8); + #endregion + db.Report_TextBoxContent.InsertAllOnSubmit(txtContentList); + db.SubmitChanges(); + } + #endregion + + #region 9.计量器具报验管理情况 + void saveMeasuringInspection() + { + + List detailLists = new List(); + JArray teamGroupData = gvMeasuringInspection.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "9", + ContentName = values.Value("ContentName"), + MonthsCount = values.Value("MonthsCount"), + ProjectCount = values.Value("ProjectCount"), + //RectificationRate = values.Value("RectificationRate"), + Remarks = values.Value("Remarks") + }; + if (gvMeasuringInspection.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = gvMeasuringInspection.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + #endregion + + #region 10.现场质量共检数据 + void saveTjInspection() //检验批统计:土建 + { + List detailLists = new List(); + JArray teamGroupData = gvTj.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "10-1", + ContentName = values.Value("WorkName"), + + MonthsCount = values.Value("CheckNum"), //当前检查点数 + MonthsBackCount = values.Value("TotalCheckNum"),//累计点数 + + ProjectCount = values.Value("OKNum"),//当前合格点数 + TotalNoBackCount = values.Value("TotalOKNum"),//累计合格点数 + + RectificationRate = values.Value("OneOKRate"),//本月合格点数 + Remarks = values.Value("TotalOneOKRate"),//本月累计合格点数 + }; + if (gvTj.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = gvTj.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + void saveSbInspection() //检验批统计:设备 + { + List detailLists = new List(); + JArray teamGroupData = GvSb.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "10-2", + ContentName = values.Value("WorkName"), + MonthsCount = values.Value("CheckNum"), //当前检查点数 + MonthsBackCount = values.Value("TotalCheckNum"),//累计点数 + + ProjectCount = values.Value("OKNum"),//当前合格点数 + TotalNoBackCount = values.Value("TotalOKNum"),//累计合格点数 + + RectificationRate = values.Value("OneOKRate"),//本月合格点数 + Remarks = values.Value("TotalOneOKRate"),//本月累计合格点数 + }; + if (GvSb.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = GvSb.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + void saveGDInspection() //检验批统计:管道 + { + List detailLists = new List(); + JArray teamGroupData = GvGD.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "10-3", + ContentName = values.Value("WorkName"), + MonthsCount = values.Value("CheckNum"), //当前检查点数 + MonthsBackCount = values.Value("TotalCheckNum"),//累计点数 + + ProjectCount = values.Value("OKNum"),//当前合格点数 + TotalNoBackCount = values.Value("TotalOKNum"),//累计合格点数 + + RectificationRate = values.Value("OneOKRate"),//本月合格点数 + Remarks = values.Value("TotalOneOKRate"),//本月累计合格点数 + }; + if (GvGD.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = GvGD.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + + void saveDQInspection() //检验批统计:电气 + { + List detailLists = new List(); + JArray teamGroupData = GvDq.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "10-4", + ContentName = values.Value("WorkName"), + MonthsCount = values.Value("CheckNum"), //当前检查点数 + MonthsBackCount = values.Value("TotalCheckNum"),//累计点数 + + ProjectCount = values.Value("OKNum"),//当前合格点数 + TotalNoBackCount = values.Value("TotalOKNum"),//累计合格点数 + + RectificationRate = values.Value("OneOKRate"),//本月合格点数 + Remarks = values.Value("TotalOneOKRate"),//本月累计合格点数 + }; + if (GvDq.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = GvDq.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + void saveYBInspection() //检验批统计:仪表 + { + List detailLists = new List(); + JArray teamGroupData = GvYb.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "10-5", + ContentName = values.Value("WorkName"), + MonthsCount = values.Value("CheckNum"), //当前检查点数 + MonthsBackCount = values.Value("TotalCheckNum"),//累计点数 + + ProjectCount = values.Value("OKNum"),//当前合格点数 + TotalNoBackCount = values.Value("TotalOKNum"),//累计合格点数 + + RectificationRate = values.Value("OneOKRate"),//本月合格点数 + Remarks = values.Value("TotalOneOKRate"),//本月累计合格点数 + }; + if (GvYb.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = GvYb.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + void saveFFInspection() //检验批统计:防腐 + { + List detailLists = new List(); + JArray teamGroupData = GvFf.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "10-6", + ContentName = values.Value("WorkName"), + MonthsCount = values.Value("CheckNum"), //当前检查点数 + MonthsBackCount = values.Value("TotalCheckNum"),//累计点数 + + ProjectCount = values.Value("OKNum"),//当前合格点数 + TotalNoBackCount = values.Value("TotalOKNum"),//累计合格点数 + + RectificationRate = values.Value("OneOKRate"),//本月合格点数 + Remarks = values.Value("TotalOneOKRate"),//本月累计合格点数 + }; + if (GvFf.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = GvFf.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + void saveXFInspection() //检验批统计:消防 + { + List detailLists = new List(); + JArray teamGroupData = GvXf.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "10-7", + ContentName = values.Value("WorkName"), + MonthsCount = values.Value("CheckNum"), //当前检查点数 + MonthsBackCount = values.Value("TotalCheckNum"),//累计点数 + + ProjectCount = values.Value("OKNum"),//当前合格点数 + TotalNoBackCount = values.Value("TotalOKNum"),//累计合格点数 + + RectificationRate = values.Value("OneOKRate"),//本月合格点数 + Remarks = values.Value("TotalOneOKRate"),//本月累计合格点数 + }; + if (GvXf.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = GvXf.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + void saveInspectionDataInspection() + { + List detailLists = new List(); + JArray teamGroupData = gvInspectionDataInspection.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "10", + ContentName = values.Value("WorkName"), + MonthsCount = values.Value("CheckNum"), //当前检查点数 + MonthsBackCount = values.Value("TotalCheckNum"),//累计点数 + + ProjectCount = values.Value("OKNum"),//当前合格点数 + TotalNoBackCount = values.Value("TotalOKNum"),//累计合格点数 + + RectificationRate = values.Value("OneOKRate"),//本月合格点数 + TotationRate = values.Value("TotalOneOKRate"), + Remarks = values.Value("Remarks"),//本月累计合格点数 + + }; + if (gvInspectionDataInspection.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = gvInspectionDataInspection.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + + } + #endregion + + #region 11.压力管道监检情况 + void savePressureInspection() + { + List detailLists = new List(); + JArray teamGroupData = gvPressureInspection.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "11", + TotalNoBackCount = values.Value("TotalNoBackCount"), + ContentName = values.Value("ContentName"), + MonthsCount = values.Value("MonthsCount"), + ProjectCount = values.Value("ProjectCount"), + //RectificationRate = values.Value("RectificationRate"), + Remarks = values.Value("Remarks"), + }; + if (gvPressureInspection.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = gvPressureInspection.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + + } + #endregion + + #region 12.管道试压包管理情况 + void savePipingInspection() + { + List detailLists = new List(); + JArray teamGroupData = gvPipingInspection.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "12", + TotalNoBackCount = values.Value("TotalNoBackCount"), + ContentName = values.Value("ContentName"), + MonthsCount = values.Value("MonthsCount"), + ProjectCount = values.Value("ProjectCount"), + //RectificationRate = values.Value("RectificationRate"), + Remarks = values.Value("Remarks"), + }; + if (gvPipingInspection.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = gvPipingInspection.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + + } + #endregion + + #region 13.特种设备监检情况 + void saveSpecialInspection() + { + List detailLists = new List(); + JArray teamGroupData = gvSpecialInspection.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "13", + TotalNoBackCount = values.Value("TotalNoBackCount"), + ContentName = values.Value("ContentName"), + MonthsCount = values.Value("MonthsCount"), + ProjectCount = values.Value("ProjectCount"), + //RectificationRate = values.Value("RectificationRate"), + Remarks = values.Value("Remarks"), + }; + if (gvSpecialInspection.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = gvSpecialInspection.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + + } + #endregion + + #region 14.NCR管理情况 + void saveNcrManagementInspection() + { + List detailLists = new List(); + JArray teamGroupData = gvNcrManagementInspection.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "14", + ContentName = values.Value("WorkName"), + MonthsCount = values.Value("CurrentPeriodOkNum"), + ProjectCount = values.Value("OKNum"), + TotalNoBackCount = values.Value("CheckNum"), + RectificationRate = values.Value("OKRate"), + }; + if (gvNcrManagementInspection.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = gvNcrManagementInspection.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + #endregion + + #region 15.质量巡检情况 + /// + /// 15.质量巡检情况 + /// + void saveQualityInspection() + { + List detailLists = new List(); + JArray teamGroupData = gvQualityInspection.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "1", + ContentName = values.Value("ContentName"), + MonthsCount = values.Value("MonthsCount"), + ProjectCount = values.Value("ProjectCount"), + RectificationRate = values.Value("RectificationRate"), + Remarks = values.Value("Remarks") + }; + if (gvQualityInspection.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = gvQualityInspection.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + #endregion + + #region 16.质量专项检查情况 + /// + /// 16.质量专项检查情况 + /// + void saveSpecialCheck() + { + List detailLists = new List(); + JArray teamGroupData = gvSpecialCheck.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "2", + ContentName = values.Value("ContentName"), + MonthsCount = values.Value("MonthsCount"), + ProjectCount = values.Value("ProjectCount"), + Remarks = values.Value("Remarks") + }; + if (gvSpecialCheck.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = gvSpecialCheck.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + #endregion + + #region 17.质量文件上报情况 + /// + /// 17.质量文件上报情况 + /// + void saveFileReport() + { + List detailLists = new List(); + JArray teamGroupData = gvFileReport.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem + { + ReportId = ReportId, + ReType = "3", + ContentName = values.Value("ContentName"), + MonthsCount = Funs.GetNewInt(values.Value("MonthsCount").ToString()), + ProjectCount = Funs.GetNewInt(values.Value("ProjectCount").ToString()), + MonthsBackCount = Funs.GetNewInt(values.Value("MonthsBackCount").ToString()), + TotalNoBackCount = Funs.GetNewInt(values.Value("TotalNoBackCount").ToString()) + }; + if (gvFileReport.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.Id = gvFileReport.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + #endregion + + #region 18.本月质量问题处理情况 + /// + /// (1)原材料问题 + /// + void saveRowMaterialProblem() + { + List detailLists = new List(); + JArray teamGroupData = gvRowMaterialProblem.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_RowMaterialProblem newDetail = new Model.Report_RowMaterialProblem + { + ReportId = ReportId, + UnitId = values.Value("UnitId"), + ProblemDesrioption = values.Value("ProblemDesrioption"), + TreatmentMeasures = values.Value("TreatmentMeasures"), + ProcessingResults = values.Value("ProcessingResults"), + Remark = values.Value("Remark") + }; + if (gvRowMaterialProblem.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.RowMaterialProblemId = gvRowMaterialProblem.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_RowMaterialProblem.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + + /// + /// (2)施工过程问题 + /// + void saveConstructionProblems() + { + List detailLists = new List(); + JArray teamGroupData = gvConstructionProblems.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_ConstructionProblems newDetail = new Model.Report_ConstructionProblems + { + ReportId = ReportId, + UnitId = values.Value("UnitId"), + ProblemDesrioption = values.Value("ProblemDesrioption"), + TreatmentMeasures = values.Value("TreatmentMeasures"), + ProcessingResults = values.Value("ProcessingResults"), + Remark = values.Value("Remark") + }; + if (gvConstructionProblems.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.ConstructionProblemsId = gvConstructionProblems.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_ConstructionProblems.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + + #endregion + + #region 19.下月质量控制重点 + /// + /// 下月质量控制重点 + /// + void saveNextQualityControl() + { + List detailLists = new List(); + JArray teamGroupData = gvNextQualityControl.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.Report_NextQualityControl newDetail = new Model.Report_NextQualityControl + { + ReportId = ReportId, + NextQualityControlContent = values.Value("NextQualityControlContent") + }; + if (gvNextQualityControl.Rows[rowIndex].DataKeys.Length > 0) + { + newDetail.NextQualityControlId = gvNextQualityControl.Rows[rowIndex].DataKeys[0].ToString(); + } + detailLists.Add(newDetail); + } + if (detailLists.Count > 0) + { + db.Report_NextQualityControl.InsertAllOnSubmit(detailLists); + db.SubmitChanges(); + } + } + #endregion + + #region 23.施工照片 + void saveImages() + { + var ImageLists = new List(); + var imgage1 = new Model.Report_TextBoxContent(); + imgage1.Id = Guid.NewGuid().ToString(); + imgage1.ReportId = ReportId; + imgage1.ContentType = "23-1"; + imgage1.ContentText = txtPhotoContent1.Text; + imgage1.ImageUrl = imgPhoto.ImageUrl.Substring(imgPhoto.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage1); + + var imgage2 = new Model.Report_TextBoxContent(); + imgage2.Id = Guid.NewGuid().ToString(); + imgage2.ReportId = ReportId; + imgage2.ContentType = "23-2"; + imgage2.ContentText = txtPhotoContent2.Text; + imgage2.ImageUrl = imgPhoto2.ImageUrl.Substring(imgPhoto2.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage2); + + var imgage3 = new Model.Report_TextBoxContent(); + imgage3.Id = Guid.NewGuid().ToString(); + imgage3.ReportId = ReportId; + imgage3.ContentType = "23-3"; + imgage3.ContentText = txtPhotoContent3.Text; + imgage3.ImageUrl = imgPhoto3.ImageUrl.Substring(imgPhoto3.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage3); + + var imgage4 = new Model.Report_TextBoxContent(); + imgage4.Id = Guid.NewGuid().ToString(); + imgage4.ReportId = ReportId; + imgage4.ContentType = "23-4"; + imgage4.ContentText = txtPhotoContent4.Text; + imgage4.ImageUrl = imgPhoto4.ImageUrl.Substring(imgPhoto4.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage4); + + var imgage5 = new Model.Report_TextBoxContent(); + imgage5.Id = Guid.NewGuid().ToString(); + imgage5.ReportId = ReportId; + imgage5.ContentType = "23-5"; + imgage5.ContentText = txtPhotoContent5.Text; + imgage5.ImageUrl = imgPhoto5.ImageUrl.Substring(imgPhoto5.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage5); + + var imgage6 = new Model.Report_TextBoxContent(); + imgage6.Id = Guid.NewGuid().ToString(); + imgage6.ReportId = ReportId; + imgage6.ContentType = "23-6"; + imgage6.ContentText = txtPhotoContent6.Text; + imgage6.ImageUrl = imgPhoto6.ImageUrl.Substring(imgPhoto6.ImageUrl.IndexOf("/") + 1); + ImageLists.Add(imgage6); + + db.Report_TextBoxContent.InsertAllOnSubmit(ImageLists); + db.SubmitChanges(); + } + #endregion + + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReportEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReportEdit.aspx.designer.cs new file mode 100644 index 00000000..edca3c7f --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/WeekReportEdit.aspx.designer.cs @@ -0,0 +1,1905 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.CQMS.ManageReportNew { + + + public partial class WeekReportEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// ContentPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ContentPanel ContentPanel1; + + /// + /// Table1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTable Table1; + + /// + /// tabbtn 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTable tabbtn; + + /// + /// image15 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Image image15; + + /// + /// Button2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button2; + + /// + /// Table5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTable Table5; + + /// + /// lblProjectName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblProjectName; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label1; + + /// + /// txtPeriod 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.TextBox txtPeriod; + + /// + /// RequiredFieldValidator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// lblTital 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblTital; + + /// + /// Table2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTable Table2; + + /// + /// txtStartDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartDate; + + /// + /// Label3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label3; + + /// + /// txtEndDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndDate; + + /// + /// Panel4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel4; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// Button3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button3; + + /// + /// Form5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form5; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// txtProStage 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtProStage; + + /// + /// txtProDescribe 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtProDescribe; + + /// + /// txtTargetValue 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTargetValue; + + /// + /// txtMonthPer 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMonthPer; + + /// + /// txtRemarks 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRemarks; + + /// + /// Panel5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel5; + + /// + /// Panel6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel6; + + /// + /// Form6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form6; + + /// + /// txtAre0 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtAre0; + + /// + /// Panel7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel7; + + /// + /// Form7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form7; + + /// + /// txtAre1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtAre1; + + /// + /// Panel8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel8; + + /// + /// Form8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form8; + + /// + /// txtAre2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtAre2; + + /// + /// Panel9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel9; + + /// + /// Panel10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel10; + + /// + /// Form9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form9; + + /// + /// Grid2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid2; + + /// + /// TextBox5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox5; + + /// + /// Panel11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel11; + + /// + /// Form10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form10; + + /// + /// Grid3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid3; + + /// + /// TextBox1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox1; + + /// + /// Panel12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel12; + + /// + /// Form11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form11; + + /// + /// Grid4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid4; + + /// + /// TextBox2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox2; + + /// + /// Panel13 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel13; + + /// + /// Form12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form12; + + /// + /// Grid5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid5; + + /// + /// TextBox3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox3; + + /// + /// Panel14 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel14; + + /// + /// Form13 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form13; + + /// + /// Grid6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid6; + + /// + /// TextBox4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox4; + + /// + /// Panel15 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel15; + + /// + /// Form14 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form14; + + /// + /// Grid7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid7; + + /// + /// Panel16 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel16; + + /// + /// Panel17 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel17; + + /// + /// Form15 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form15; + + /// + /// Grid8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid8; + + /// + /// Panel18 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel18; + + /// + /// Toolbar3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar3; + + /// + /// Button4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button4; + + /// + /// Form16 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form16; + + /// + /// Grid9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid9; + + /// + /// drpUnitIdGrid9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitIdGrid9; + + /// + /// TextBox7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox TextBox7; + + /// + /// TextBox8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox TextBox8; + + /// + /// TextBox10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox10; + + /// + /// Panel19 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel19; + + /// + /// Form17 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form17; + + /// + /// Grid10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid10; + + /// + /// hidWsjcgl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label hidWsjcgl; + + /// + /// Panel20 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel20; + + /// + /// Form18 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form18; + + /// + /// Grid11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid11; + + /// + /// TextBox6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox6; + + /// + /// Form19 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form19; + + /// + /// txtAre8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtAre8; + + /// + /// Pnl9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Pnl9; + + /// + /// Form26 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form26; + + /// + /// gvMeasuringInspection 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvMeasuringInspection; + + /// + /// TextBox9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox9; + + /// + /// Pnl10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Pnl10; + + /// + /// Form27 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form27; + + /// + /// gvTj 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvTj; + + /// + /// GvSb 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid GvSb; + + /// + /// GvGD 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid GvGD; + + /// + /// GvDq 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid GvDq; + + /// + /// GvYb 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid GvYb; + + /// + /// GvFf 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid GvFf; + + /// + /// GvXf 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid GvXf; + + /// + /// gvInspectionDataInspection 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvInspectionDataInspection; + + /// + /// TextBox14 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox14; + + /// + /// Pnl11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Pnl11; + + /// + /// Form28 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form28; + + /// + /// gvPressureInspection 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvPressureInspection; + + /// + /// TextBox15 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox15; + + /// + /// Pnl12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Pnl12; + + /// + /// Form29 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form29; + + /// + /// gvPipingInspection 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvPipingInspection; + + /// + /// TextBox16 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox16; + + /// + /// TextBox17 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox17; + + /// + /// Pnl13 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Pnl13; + + /// + /// Form30 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form30; + + /// + /// gvSpecialInspection 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvSpecialInspection; + + /// + /// TextBox18 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox18; + + /// + /// Pnl14 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Pnl14; + + /// + /// Form31 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form31; + + /// + /// gvNcrManagementInspection 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvNcrManagementInspection; + + /// + /// Panel21 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel21; + + /// + /// Form20 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form20; + + /// + /// gvQualityInspection 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvQualityInspection; + + /// + /// TextBox11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox11; + + /// + /// Panel22 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel22; + + /// + /// Form21 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form21; + + /// + /// gvSpecialCheck 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvSpecialCheck; + + /// + /// TextBox12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox12; + + /// + /// Panel23 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel23; + + /// + /// Form22 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form22; + + /// + /// gvFileReport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvFileReport; + + /// + /// Panel24 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel24; + + /// + /// Panel25 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel25; + + /// + /// Toolbar5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar5; + + /// + /// btnRowMaterialProblem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnRowMaterialProblem; + + /// + /// Form23 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form23; + + /// + /// gvRowMaterialProblem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvRowMaterialProblem; + + /// + /// txtUnitId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUnitId; + + /// + /// txtProblemDesrioption 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtProblemDesrioption; + + /// + /// txtTreatmentMeasures 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTreatmentMeasures; + + /// + /// txtProcessingResults 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtProcessingResults; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRemark; + + /// + /// Panel26 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel26; + + /// + /// Toolbar6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar6; + + /// + /// btnAddConstructionProblems 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAddConstructionProblems; + + /// + /// Form24 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form24; + + /// + /// gvConstructionProblems 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvConstructionProblems; + + /// + /// drpUnitId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitId; + + /// + /// txtProblemDesrioption2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtProblemDesrioption2; + + /// + /// txtTreatmentMeasures2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTreatmentMeasures2; + + /// + /// txtProcessingResults2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtProcessingResults2; + + /// + /// txtRemark2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRemark2; + + /// + /// Panel27 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel27; + + /// + /// Toolbar7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar7; + + /// + /// btnAddNextControl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAddNextControl; + + /// + /// Form25 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form25; + + /// + /// gvNextQualityControl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvNextQualityControl; + + /// + /// TextBox13 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox13; + + /// + /// Panel3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel3; + + /// + /// Form3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form3; + + /// + /// txtAre20 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtAre20; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Form2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form2; + + /// + /// txtAre21 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtAre21; + + /// + /// Panel2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel2; + + /// + /// Form4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form4; + + /// + /// txtAre22 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtAre22; + + /// + /// Panel28 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel28; + + /// + /// Form32 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form32; + + /// + /// imgPhoto 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto; + + /// + /// imgPhoto2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto2; + + /// + /// Label7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label7; + + /// + /// filePhoto 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto; + + /// + /// Label8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label8; + + /// + /// filePhoto2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto2; + + /// + /// Label9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label9; + + /// + /// Label4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label4; + + /// + /// txtPhotoContent1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent1; + + /// + /// Label5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label5; + + /// + /// txtPhotoContent2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent2; + + /// + /// Label6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label6; + + /// + /// imgPhoto3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto3; + + /// + /// imgPhoto4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto4; + + /// + /// Label10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label10; + + /// + /// filePhoto3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto3; + + /// + /// Label11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label11; + + /// + /// filePhoto4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto4; + + /// + /// Label12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label12; + + /// + /// Label13 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label13; + + /// + /// txtPhotoContent3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent3; + + /// + /// Label14 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label14; + + /// + /// txtPhotoContent4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent4; + + /// + /// Label15 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label15; + + /// + /// imgPhoto5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto5; + + /// + /// imgPhoto6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto6; + + /// + /// Label16 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label16; + + /// + /// filePhoto5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto5; + + /// + /// Label17 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label17; + + /// + /// filePhoto6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload filePhoto6; + + /// + /// Label18 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label18; + + /// + /// Label19 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label19; + + /// + /// txtPhotoContent5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent5; + + /// + /// Label20 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label20; + + /// + /// txtPhotoContent6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPhotoContent6; + + /// + /// Label21 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label21; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// hdCheckControlCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdCheckControlCode; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// Button1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button1; + + /// + /// Button5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button5; + + /// + /// hdId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdId; + + /// + /// hdAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdAttachUrl; + + /// + /// ValidationSummary1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.ValidationSummary ValidationSummary1; + + /// + /// hidReportId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlInputHidden hidReportId; + } +} diff --git a/SGGL/FineUIPro.Web/File/Word/CQMS/项目质量周报.doc b/SGGL/FineUIPro.Web/File/Word/CQMS/项目质量周报.doc new file mode 100644 index 00000000..e8240f66 --- /dev/null +++ b/SGGL/FineUIPro.Web/File/Word/CQMS/项目质量周报.doc @@ -0,0 +1,261 @@ +PK +N@ docProps/PKN@vDsdocProps/app.xmlRN0#Qi)'YζHl6=vf\}]+i14eTeiЍez@^3X;c>/6{I-O3!B'fSo|QB|F#n0=:^6Fs}10{ۉa9Mo>0أgs 5Ѣ\9[ q{46pt/K *:w¶EժGd'):qG `lmn(Vvch9# VvJmכ`/Ϙ9]%_XI*JHik8mc[ V5p$X<<֠,TA(^ MeJP4Nb^R^hE J0#)Cy%B9d- q f~QC:c e zZй(siw=d /vꭑp6چu՗z+(QY2_&( IH|2I0#CYN??^_*Yw[$cN..+-sx8C2#!NVeʛ |F4jiCZV/ aO?YPKN@mdocProps/custom.xmlAO0&;t3Bfs (vS4w4;xx~y}gZi҈34RlE;@2aYRqF|}kȂM!Vz`"JrD<ϋ`)a@t/$zAh'VCj9EWl uvݾQȽ>.#=6ۧ2U$B䠪lH7QGaߡgh=ٌ Aq( +5_lM)$29"-_TqɋI9inx5-gxUlNjzv6Ѽ;PK +N@word/PKN@}e|word/styles.xml]r*Sr!Wb +%3"e,~V+RT*U'_s&HO0; q@7uOc0ɧy,H`hgK  ^ߜo=8Yƾ&1 X6$B9@Dh0vXf94I#7vo-/nL0wwvd4Xlb+ +4ɒiEN4H7Oo8G픅Ї$f<+ZgE#oMx}MIcY6B ⲙ~Rq@qbۼ)_J?;Ks2 -V & +3(gE'S7w<{ŲۊՆ{p8w6NRws.'~=eSw^'q97`4 "plJ"oq^Y/f,~1沼EEoWi0FceauU0؜v5@"Z/2{`2c.g2gP@ PBR7qнMuoq&[ha ;[E(*Fv0QFvSEMki7%!j/OOmߌ`%)vDAQbG)vDA:l:xJ/EbSEbY^a6MwIݠ4mlIcj""D)ʆļ\nZe5s²tmZl'Z$$W uF۳1+Nөv;3CEe. +llsI67ktm{_0?XDjtnbs͌X q\[׶&Z?Z>f#.u7eۙk=2m1y +:2rӉL30$.@&'<؎D +-N(&st֎(&ԙl(+\kLWD8|J sy\kpc +1wژ;mHdSbLlTA{ֱsԌTb.VP(e+@M&o*5ySɛdGT+ l=4׶- ?MK=ڸW'l?f=,.5*MuO9`VAmy9n-9lkAq| 08[Jt4ĆI("1faM9^̡p4\!)ppuL_>Ir8Y/{`:y'/Wr2~7\k>7;&o4a GoUشSy.+G .$')'=,'IQY 7_k7rdzET5߁&PfJɦ}FN x>[ ]DOၜ=Y{{b +e;I YJj`*׹W! <8{t`yͧ*|ޏ,XK6S^1Oǔ*^)0YfFC-r*&[8I%xppU% a7͠6S2&y6&zjz Uj߭G} bPR^%*S7j(-HV%&]Dks 82b 8ʟsiT$AU.Q]jX JrR 'n7&Y{֫"Tl$;9skx^F<FFl gk"jώ{B>y{m#?VQմk9W2Әw 5W$S&7p!3½l:?(Yl*5+4:+~1ŢXd1@ZzWu}@X\R|6v>~J)j~> 6iD_뷧"6 KiB^ƚD'sȺTW}n L-%cmNsO70[ pm NW}+q`AIzy$+rNLd'2+ eyaM+AN6+7vxP|4a73rJ{sπ+p$Ogq 04zsr'ysO]T' 1) k!vlj @$Tm$*&Yc`ռ\^ܾ>+a.{mL=%5l77|qu`>>kȔk%EQEk|av$jGtuWPKN@1B3word/settings.xml]sǑ7b{2azۣcwG8E˿~QNo,DuWWeeǛ޼x>ݽ~Yzxwy?qb|pwu9_x~?ǯ?\<˷.^|{=x|{xo_߽^5U^~|绋|?y(C.No\_?O#p{iO>?<݇Gs?W?L xw>]٠ۛϽ=\A?.XWO~UzO3l.0Of~}p͇Ïï>IdO^ۻ ^tŻ톱BߟϧwW|<NGe't/~||pzfvu>|`~{炙?p}֩w7>=1zƹ;cOo%SV|y~mg'8C>\_p׏rq +9#eΗпc뮯^6뷇wJ?7xu.n~ +G6e.~6 >\9`?w^_qxOCwW?|~= 2{X踟8._S7凇c>Orpv.#k>qK|Y\?}O?|}[wxq~_]q߿x3>?z쯟n&pTxm" +E`('pi>aOޞ:??//toSUUoolyͿ~Ȍ/y|Տ04RO~ (QprLSiz(Yٳfmt>ڏSwPvZ?7{RZ)muZ=C7} ITSMu4]7=2_̠PR94)O9/fVMQfiy5hk_M]0]N\>xZڂS]S9k0lU0ai]~溦,tM7O׺eԝ_RRi}Σ}`L}>=}.)R=t!eqYXQW'5spug&߹4 ):+g=T3UC]:zZ?CJ)8YÐ8V Y5g{l1麍Mpq9ĕQZO>K5o jnUĹ |f|sۂ +tY},MYv׸f[d-vItK:K aw@?X&k|֋GRM Ahsy\`Os=.C2*i:w;s~S[5rAq{Ey xgنyޫ&:]V_Ys0݃wmu{\>7GO(x|JA6XI9쑔J&S2mML)n'4uBYnʒZ77c4-՞]w fރ_i1o&lk({0 BATv{ +rLW_ZգGYjsHצ`O;m_͓7һA-2smv^| vTiz`LCp ZߓޣM'CY=Bd} ֮1=ibzu?C[s:, z5[0r}l5#μޟOlЃ{a췀FĎ8lKaHiDS5n4zk@ѣVN_cU.13[ 1եԯdL~>69MUyDX6;֣w#70NKz@ֆvc*Jgw=յgĤR i f]W˪1GښN9%|) mM\F9tOl۬mZʸ%tQEqPyU$'@[^Q(MQk9_`1B ֭c +~6T F"ᲛzxBD;womV{YTYӖTƷxzOjerXe N}Ƿ[{oqNF\;Jۀ66ZE7N/%֎l3`{C&\9 qeS +o9 Z:7TKv=e[è{zѾYz "t=2yͮ#qgӧs}$5!W9LlOz=S79YS߬!D8>&Ύ$ՙ|fsGɭ(G+@euf`Hc[& AkR瀯KFguXY`kXD\=&!I4V[hV.'&5Ҏswո e +[ : K%c^1=Ɋ>=kXbx-=k1纽d?JpwTUĽtKv nZ0:n3!99Wv_.-l= +PAgݓgZ'짞֩GYcmYs ˧ok2j=Ń^@^E.C>{XPc zz߃TO c6T2ړ7:uTC2P=g@3G߈u+J[Q.1A|pUA`E{`v*-{K$(k +cK@!9=턅OcLL£ˈsyz*J8nrq1HV b] \b8bs REmO1VgZWE۱$8#nU${ql8IAK>Su؇[tj<" e ̎f藯یgaT{J$es]> md i=B\Ek=6gH綂rwK_2ɫwBFW' (Dw=]2rD4B~n$#8: +޿gkgVt׀{:֣X~>gx;xo@D 3sp(Z]$Ǫ*$jOPv&MՅyTP(K_(ndj=rpѝB).FE}< ;'V+%TnhVN"LLϠ_ba8g]F(S;mmskN1} (Ύ9>z$ɾ:4PV +lvz)}TكSByG$YHx6 cKyPP=i +5 jH}ǭ*#2dHӹ +,٩FtGdqJ^ć +g JP3nH(㬷& +cXo(îR 1i^-f( D^q{ yiƖqip28 {H=Dܗ6`:=owh̩셒]ZF #Bc#{` hPX1D,7νP06}rrFq֠oo%.FJ|zXJ<ԔSb` )ơ*g$&Ł{rҵ@:tnԬs JuuLVku@-{EӛiĘ +DgPL5%J^R|nisՈq\0pbA'[dUq/%K]&HSMsL @}$ Qґޭj(iG2+e -*z(#pꗂ7qP} _ ǒ7|)K + `P<>f=#ǡ΂x kP@`!;rL]8Y1ƁVJD!$c#BGE.-Go8G{^{OKQuR׍*䎄ǻM4N$9bnTus9Jw@;mHu^,KĐGIA2(Gy{(蜈J66jr}\Q1#RhvW{nOBi5t +5>]dtH֒jd;ysy0Ѿ6Pa ~BeA خs)dIP)y{pRCFel1&x }ZBR&Ý*Z' F}aU oZ@v14қ >i>z&Cxeyy( +ϭ:0f*P{#?JQlҷ,,މd6D"GxMTv1:Aq'4=F %PY(5J%ک_츀 $gnAǙVLs?,@_4zeHVL#Z4JnM#n +'@ƏS5NUv(*i?Tqc6ʜnoOTG@u3V+Op3A;&s`lvzvާJΣs`#82sHs3ύ/Y/;xiP߳MijںN+v}y<{.GK$"mMj>I&>k0Q? jLD3Gm@w{vᄽܴTQv?V֜6 Cvz*9'R{M 2ht$D5S"P~cۙڬnP2Ef=xr91fƣ<*"nPzxB>)I)B1\Y@Y/4>)K:?ZnRtFO xJйA}('@ ۭ%3g'm3 o3qp1x'g 9u/%5l8ԭ5(9F쑻wZN a캽0  dv +<]6.In< +w}Z .x\:$6#5c>NNHs3軍=3!ę3ع +gK;;Be^HR¨cp$RYػ,d8Ž9:w~#/,`\,rs?ܠ՚a|-)Q(ʹR8\SOQʵ(FН BC t JAI(=ia 5{PҼ}u΀2?ߡu1A_e텬P_ 'Υ֣l`EIw4Ђ4PV.Ks! Tu+PdQj\GcAgv.Nj{ *ȧ]hPK@A[$ǘ-TX(r9iR[w/pa3qJ) s'uALa 2(,5(=Liq*Eꬡ7-99)Pk/ڻO1Aga(v@_`LO(ZɰWX!,B+Ո}(ɗ=>%Oz!hTm^B2<]μk r :9^cmW|A!;"ݯ %.߸=,M JlA\eP= C O]@ZS# YX^2dkÑ= 9PQGe9-\P+UF#.[޳É:{TmXv_Tmg0-tl z96wcc{a%j])0tTvANjQ$8N$KLcP}琕\+\ԸW2߳g(V(z暂ա{wpiJ8QcAQաʛg +$eziC_p-niNAW:*^hō%W4f5<uY%XQ@Y X>D +<L` 2=0\sHϗ@]P벗CdPde{8=~ŏ:st(#|{\9Ÿ(;G0hZ0fuVWȴ 8+=:=[&{(<ϟFmсL,+ + +zX0H@h?7ǐ~;&JyM&P\PxewvP7 |5Y h^P +M-=Q +8[>cQ^)]̮ b.Iկ]KB a|TE VXGI'.޻ƵN((HOg %8?2v:J'u[*ѹ*xy FtPBIC@[jR`~kRv8Q(iU]es/q=Cp3B +}v8{wOx|f;55SحC(d7|0UEpP<2Tr +RtEzmkiP|"ͣ/;D>s?T41X9`Lv-P +1OTsptAtǗvNe +n3*@oҜ!+^HkVЩ E1RLҾ&q*`%1ln k^3TzWhӐDZܭBّl@'!3 @175Zu>5D 9wz=nz)tDlʸoɲ5sq +_YF͊]o۠%2 +Ux7d6f۩oiCutS}U2kw4Or0.i{;afMyU,ɪ` қr@rS\)4jR}pmuZȵi䱌zLHrjfQ$͍ ލh]Eꎻ^'LNRX=D).\E??t1{(d0rZ 5Q宵ӈ{%Ȍ + [BijU_#B[bE:G\*867Bc.˽PKi_p!,2TWI%R%9C&]pkSd<5[z' QDQďZfChV=Y4Kт*Ѣ3Ȼ׌Ǎ—S፲=QT*? ŕ +S5Dmdq#}O nɚvhzöR/ g"JyS0LO"6‹bk-VϘZ 4!$ !$2][C0NDk@7ޡ|HY +., ,V3$6T!v1m30L8pfiN 7/X275k-Ӫsl<ңKcDUKhC8XQYe* l@{'PG]nm |aӢ"tMg}Ufq,2wVX8jf}̃df35@S*ƴ2Wz(nf6hjkr,2cwVB^}pn7-UYx/ CI y倂 ]^ьD@dnyx>hw)T9P'z +6 EiX; +(h,t%]h +&+S(W!\ F@`۞b|aFUG&6׈A'LG7 +-`! n8&r2MC)]D_ $Tߐ`YiuuPȱ5mEGy]‚ƣi3&2 +elhbx.+P(3(;t{S?S0v8n3 +;R^ .d:ɍޠa .ԪubD94( +9פDPmY(k=|YoM5I@څQﴇ>*FuLF(-3AFw֓}]:`7ٛUNno'2uDv,MJFP@֠薤+Ru +bi 5ͷp 'Vwc[fr:]O{ E#Qyo$ݠtٖvtSO),.Dk9]-omxkcdF Q5{ ᐶ)Y)^\%P@dELe-Çwk(}j[[.ՊD$J2`㒾&R1\HXqL +K'"@%т9g|!F/NS:ni,ig+v`lnW#`[ /$_wb 5Ŧ !m8B5TH +Gې#J%EnL'PdX-2Bײ?Epv qO觑"OEd< 6mOIN 2R$ŝhMM򝍫:h"}|kZP0uJؑuBTЉ⚸m+|vv~z/hܚzO.wR0'iTվ tEq +|AJ;$‰v0hk3B£ w+-f}PP}F`jXT|TyW(rH%YW`gcmtp&C5EXW(t LR#)tU#q+Ј]O=6DKSbkCzwdo;/\Y&pM[+$`홌dA'ލ +XJOFQh1Q [ PT ExQCb9ۺS -^]hnRH5z/JҸ)He1%89]6P1E0-p q[V3%aȂ1p ʝM'/+xŰ4f̀N) 9&G̰Xc %voSF @f67"cUrenz˒ZavP 8cz) ^Ltfdu2ROO>`&,jYO閦 |"Gw}0"zM +V'TkF%Qbn<.\ )p w0!]Q޼8-c"- o tXs1Yt +ئESU,އ,V:%B'+JI>.@W(aQri'1Սi;={i^<})7u2К}!|+y,dl̪OR㠵K(P۟˞en΢/QlK?=ND_c &c2h62nXfLثPP_s5=HXXs~ Gfwvu1b燯1 wyJ-.M^/Hx8XVVZ$dl+FYkXް4-4R54Jmcpe4`򚊂(bEĩƖET"Cid)cauGB6ǯ3dRToW [t0;6Ke/4ӝ$=5G.9a"'qZLϿLb =6KMFr(DE%PB<ŀVM9s4^0-8N)B.ft$5lYS4:, r +P@)@:(&i= &FL$G-@kg Dwp/2pMWN#tunskIң^P58m+9EkF jn@i/H>[R^p1V,dPĐdƽjceal5(+iI2< hϋ!E3An3&JuToz"o8V +k=vgAHnT\$w4,X;?8jkǐ22~[18w2ҊF 鉽`qέ;iyCYZg7=eMqed>ŦH`OF / wK,9P]*tzr8 9%okP2^+L~)N0舨oׄKp-h;Y;My~]tpqͯo/nop~tWEۋo-wooNO)_O~>\>||؛o?=qn/Ϳ}8}yw?{w}7_?; տ}.|iy>\<=pOktO__|}xoX_F9}Y}uxq7֯_\.?Hkiq,_O_}OϿ~>?-=ooxw<\}Y~s9}8^'g?=-/.o_aw_?N8y!O?͏?xs}ssy9__^>wO_)oNߏ _x~NͿx鏳9pz^<^].n~닫[ۯ>>i0L>}cCPKN@I Bword/footnotes.xmln0 ,-#N 66 DA'ٖAЏ]%?Iۻ?MLDyI +m%Y$+щtiJ$!M-Qc*06aTp@mS +C]sʰ]ug@1>=GbЈK(&} ֤Xܩ+bo=yvv1PNbb4ޢ^dq! &mkz M՜{i>&J:^K(hTYěR~M8ߊ](F58vC՗%D \NޗY򛅒Z9 ֕ +L w ic2 48hyd~e1о 0C1A{XjԣM_h8Hx`Sr*Mlݕ0X0O*I֚a&,2F#2k +{ q@fMGo@wG[4h$vR7By }XPKN@dCuword/header1.xmlTێ }`cMJݨվU&1Z``;8W^^ ϹxVY/`jRɄH__I3 S`DMv“ŗX0*Z^6[Qy+4܁M9h +Fp ,bY\xT̓64 >.ݲ RɰCvtTAIP +f.^GwZ00R'j[i6>QRD]oX# d4 yH=VIJ8gP1ixͤ`>73%gs{9'3 Ag'?V~0HNxu "րckby&K B8)b3ӯ$txnPxkp vٛX0`;.˷lO^b,Y oc1acY7"Zm 7p2D$E+2Dٶa\B3LYưF[ӹyMQEU%&#0mpnnB]6=X6Ĺ&d`X1wh\ PoBsI1ۢ| )v;ISu@Q>D<̚"vLpL4^ѷ`[ť394=&HӇH2S0h}x 1ovjn;~ 7i"ٓ>*LGN&& +#ݰxA< x@| jh9KUx WAAbރ66At&.u=n&<@*Ohh~^1$EGRsm_p`9m)C+Hr~38t&0^PҘ#L|",mɘU܀DSG5ӣ.#7y?T-,EB\4)CDJ<q8h543t4zx>JǎAfȑgaȳ4#a,֢OWyA2$Χ&kn|)yi+LHɌsd/:?';"=q-sFmVmm%laO<μη[-Ķy3[ќwc;&BlP0}wt̟DF m뵰1o +x~~#^_Ӱn@54Pk`RoazX|̡s3. + )ƚ]%Wep +(&LI@4w\7(}ƻ ,at_@p[!Neɿv#1WLMԀ''/"!>km XAÃݵ\:69@QFj#M@M{ :0GW ]O >qMw +VЌHq)7| V2KտTa/0ĕpUz-`zcA=]`0:g6':lC~3$#{n˩hkEг;hPUA e^;4\na?Q:".?+u&GSlG\ L//7|SC\ߋʞ~ w^zůϾ~Ox#KݣU@2a܏$.1}:I EOK/ⷿo~w? +FMaa䷎:T~ҥvȟs |վiW:J=:JwX'˖;PCt9Z B + ~ +>DLJK0A|S;C˂MCs8%7?ǹ:Dۿ˅/)mr%že|{[Pgpie2l}߻]u_%S._'{3 \sgN0ʾ؝䳗8 N>r#>Ț/٧ȦزwXNwO%o]ŏDd#L]GHӼ.Մ'xjks'hKģ]K5tume\'Dgm/ӽ/K@fk}k tnC~vYu/xvs.s!#e|?)坙^'xǍSgzu?IO*Gg:}GB}:}fHe}ba8vqf#C%4C{fD1i'ڞ^|v]ۧH:;Μnϋ^d^{1Sc;wIfTu ,\|%`6҇G->B#q?tIz6kv'n,>m"(v#;({yw0<̈́EMC G$}7}p޼y~_( q697h<j7Ow_ͯV?/Z%<3zWk}u魫{TEG:+]6 ސZ +BmMZp܎~~/?~2qt`g$p4g¦lP?#hz*`]Wm1 6XX:V9J:*_BtY4slYڈ8["ٲ[(g]>$xoB"ӿS("y:4@|o~%0D\P%'p[At +dV_W20k{Iutk &NYFGuŌ3 *@&q!VTJ@y}6 nDY@#l$Q++f:Y/P֑?CI|l7|cwm.Oĩ74jω(y[H ; OW7ҷH>l?t)@nq +emesIE A'cq~ +=Z)-b7LQ{Twͫ]*#[F'$?3,NNDoX;hAl)#KNۋR.`۹;aktl5{UcEDc<i"ycV49 ADX׉i%V)f^5H4墥YJk8X:-WDZR)VqLFm˰}ZfUktS:Hgfj^IVP"BF1<W#$jmdK he<#g^:`U'(Db \?\T|-E鴒y+2sP&m%4!sE=r]aɊn hB͚ ڮ9Nq$h8,iVͶKRUn 㹦$lb35X*r7]jl@i[<=TJ9t$A\PԀLvB$&hL7<XY`G1Y-Ԉ %9!REvԅq::#rB¦z,4"7Qc$(I. \C}/tg)MwdYʥ\gx" &ɴiRLs Ƭ=+b.^l4U4((?DzEJU(yu]Ya]ԫH͋y;,TJ|J9bxR9["I".kԈSe52mVnyBf&Z4wjRo*yAghG(KU4&xq.Saa^Dɛzyk0Qq-18l4(+&J9_f2Q~Ѧr3=gasS냌]dIV |Hh+ttr.i/鬶P2qQ{iO.BMWzP:ҔX1ec8E3 \0 AcZ[&4Z-ʕDI+o38eWڔҚ]vԬeIv*fE긣eʡR1j[pƬ86HoU&W>3Z̦bs~Gb0Sjh\Mj3,N*lVl/5y¦|)[Ȳ$W> +d6ƪ]S3!}7.UǫT\0NB6bGܜsZmŪǢTs-I!-Jn$=-2/ [i+^86\ݱ\K<2M-]',"|eZbD,2UUItn,13~;ěv#9^L-G2KTU&M;JI")0UL܈1Z<#X&˜p) pqQb)nC.\TKsQeFM7L)pnJT^ﮖL:LkJ4Lb7Ļ;1U"-l<$y E lǨe&a+9%Pw>I[83Uy2]2dUde%DBꀷ($vlaN bRU%2c6mzP; +uYam%jdH6; ?βD4]Sbßae[jK2e)\HxQ\tcp%9DJ3qZqçkr`L#d4ǒ}ɊBvhyTan䘈Xޏͥ>0(0@4gsCpx̴,J4r!Ȃ~2>@'Ь@- _B1.@_N192E{nBD#8 }`$wG\T^/x{N 4 +}b{PK +N@ word/theme/PKN@3L;word/theme/theme1.xmlYMoE#F{oc'vGuرhF[xw;jf7@%ą*H_RTԿ;3xM6 +C}~Kwb'm~!L1Tޫ߿z}rx{h96qg?~x_Teɣ>} +2|@c"5rvx 8݌AiyzJ`B~OE,;F^v ލX +Wnq:\TFU +`ŸxJw'N~{x3/KnD3NIB!ݢԉ|-:Vd@N5M'm2f&pVwU? ejȖyK&kbzVJ +V5+ njhD|UNviD>fTNJ(8@C6;үK t++^,pFENpDž dViq?#We?sE'pS p+0PJ#l w@],d_}a|jHPXT$Z2wzvY,d*dLCO@s^=A6h֟u0ԛr9R靏mfpa_Xfz/۬FMNZƚxY Q +=H +SzAV?4haP6PiC8A[LZ muQ3z[[v|2UY;k;67Ԑ٣- +C cc~*ć!p?fJZPKN@j?gYjword/document.xmlۓֵ'UŇyd${5%%Y5QqWJ$jIOvb]lْ}l9sNysXW'4SYkAH4n{o_ۥEjfc5y%ZUf46WSo?qZjZ͆RJͬl { nh6-njokWe aTWwMj6IoMˬ|ߚָRvw3zkô5imYvGM6*Fݰ/ý6jjj:<^"HPWX}o +7jux2׈z7x-H:o}auKۅްv>Qm:vwan轃f4ʤ- |W}f]_ANZNy1N5.8B}}5uqmnٚsWvW )H\ܗɽ +^ZڮlVûfK2H(ȮY?Y eln٫#RU]!};Wplw5U.&,E&NXn9D +lTͺ BR۱Mغq 4*||aGVv?մQ/6-.o xgД,.eaaK_.;b6Kz٥5^S#µi`zY@gg.WxjQG.OZF h~uxK s4Sīyr$rə²߭=~-{2d~wf>Iݷ;=)__2M@̻ȻO{JjZ5&Τl 5atֹԣ%j SHv(*AU"~G9⛺h0KÒ_cW#t&/C#)I +a(>k~ƦctX!`?[FL&]kZk?MO{48|9WH)[v5rE]Pj*[,ʠiRKޯ&X7:7/kM<@|%2\QןTSp/66Z}4˗ @5t<>疿 sLItOn~OJUxBz9]olU8VHRtߵ0B@(ᬵd6m5gcKppG/~!+3Om Af9 {Ւ#=Yq6̵-k5q_}zv~wo 4"-o+XW_$0nŨ.7~sȲ-]ӊmUyJh03i+oWS5pkll$յU= ۖnW <ohæ\ڰJ&<5 Me_`;>#N ߖZB@mT7@Ԕ?hmxF۰wzf+|/D ;lGJd LoqZД_ojV͒<]^`L=Vɍw_L2Fׯ (aiibyE|(d[g[`!q!OdR>O??DD{NM'vߍ[ov}OWk~$L>[x$F'f-aFt4?&$am mn;@d1LQ`)vGZo֑3gq ZG.BsV;-߄0U'uNEmJ-{4FE,x} m9=>5K/0b\A/aLLOo? 7Kw&ޜ XԸ.S4Ҧ"BΝ%0 '*t;ڜ1ģx rЦt&'grNQX[jjZ Qf"HWKשc$zm~h5: Gͩ@E, + Ε@Ohq#T<螿1;k$ 20c‚SU/O2-]֑d.r6N)^iΪ*qkC|XX-w-40[sMGrPGG^5"B7|v-ү+$ 7OU!N.O£JjV/q?i: II6Ad +jx= ~e4[$JqWG\*c0\}p%h 슴P?NcϹ8gwYme 5!H0OV“&HfXD8r#79qK#(D^)]`$ +##qlnN˘'eu䑏L  +cYtc5|<#I7K3Y >-f.GTH'+ =N> -I$\O<&=TpS&6qW1H;QtF{y\-ߍ +tvwA hv0BtI~7,C :' #kelH3p>X2$pFC-zz \d9BbZLHc"{S8Hos``/aC{,%DLm %F@`)Rw{p.)TV\\ s[cwؕ䚜E:nɲ w x, +luu!1Q%FMɷ9\ub{祩XX =ŧ 3MM4-sHH<9leĖix#?&He2a2!/"x0A~MO:ܞᅳxyXef`* +>sr,ڍ}~.wy (M\1#OY]^+v1=*N<}5OWQةn+P8㿢Y]}hr?u_u?\5 j8-vmm~Vmab621$}:1k ;K&C}'̆Bhث)=c5XE6@F_,edQt!$-΃*r(b"FH?*DP7r([ҡܥ>ц ٕ:knSuvCO#9]na`Kbqt[ U}"lQO}C۩57ׯɔ˥$&dS TA $O8.G{ψ@؆i:CܱKXaa:o$/`$pK:)׈D#޺+*iQ?"K"d쵍.?"Ra~ <$8 D9A>VGͱpN/ӮF5J7_fn [̉VNT"Ϛѭ4у{RIi0iW@7ˠ夊>aCJ τO$AIJ;fi//!.u\:O +h)S3oV3B63oE daW}.Q;pK{e% 84Whs[Vݝ(4oBc)m!8B N`ޯKb]b_4ݽ݇daW:$(1@鍚bnYlkNFC6ŇzEO'@%ڙ7$$FH?{=^ޓy6x"|\WYEW}U,-X_%V_哪^ oOïX5j"l8Ibɕ/Y5%V5wvebx Ь{Ms5e2Ī太&5osGVMX5&{k3iƬ`E21+Ť?zJ+)L,SrR)J 7;I/;>0+(VPr+*rro|ؾwh[R(0D6 l8ذ^&T upZ},@=RQ1een\)>.Q*q۷n? !}vpSMÃu&MIMR~SuSb{x>y';q)iyl!SqX/a8?vX7nJn*VKgα*URTRKg]J؞>xz?S΁9!S,RJn?>^z @"jJje6^bAg??jX7nb R2J2|͙43xEGZG +V0Mo=Q[Sa`}TTvh> 2gQZ!}VEoNKDCI7^0n}㧗?> Oز:a-gi!ih"+='4`K u񴌊n8G`(Fw6굵-͂_n!Pϣ(=?"\/u46s#ؗG_6up`s樫Wzʳ1hz~P&myܹ勽?~Iַ}~[0ӰOB%-\EVMYպY\W1jjJS~ /|CX?SI]e防uGP摛dULKVSBԦi-ݺfcGѵy>|a4P {5K3h'ĵVS|6 e6igy^Zަ%5<{PD10DѪkf6P-mFbD+S͹NZ \ QX.p l&uF&VwU7C4pFE0-LvQ|m[۱Mypm-B乎_V'-ӽù:|ᦿL>C~r͆]1h +kTL¶f]X5ˆ55j2>wCۆWy)f꥘9z~<ܜP@ [+R՛)nW,6;N#nR#GI &:csD2faA'uVk ̖q5Ī=ڹI-:>ɘ2%D!&+uC( d,Kr߆+3[Zͱ Q9'SŜVM]M $-㺎WTͺ =uKw^⨍^[1m܎z5!Dhx2 ~`g]Qʝ׋m疾za2w5rm-<]6wpnC2kz,@C^Zu-f +׫ XaG!NZF p~Jm5K s8[|gr9I{d ENʧ!$yٵbY;@69;$ SjozC76+ m/2i kDUɔU2GD] m<;wnx.dxSX::hs:F1,ҍi#4J eKΌ a9QR7̫ۋ.&3WqeP+ktJqXdLhצ W2ap{H}q;%HϿ,2?6. ,.U*S*QYRjSMd͒gPŰ3JV_r)Z+^RN6\%㸒S֪֕n:6[8BC"WrdN*rV`pUvB ̝@?qeߊk.v6ŵJf>)2Z";" }6>s燗oGY.Ynx8tlmփE[Y +0&gbAh6?p(͇)Yfe(3rԟX9/q`ЮGlsaY1pAr9k4g9*Ub#0 J@'0$Eɰݷ2 HtMs3(UE[H1J8qP"~a6OFT .'JGv= uz}zdi?NbگFL 0Z':h7AN} ɝ`ws$; aH >Cb47ϢbH#cF/ʐ@{*ytL +sOOO=&FyyyK$ m`bb~/߯?Ӌ< ,3NVSX/lypnkz+PJ5^ h;00&.NuD㸭RA0n@8, d[l7O:7K7N?QLg0 5M>6faxg /|0В"Gl>*?qT&[5XW1F}jy\;6@Civãk&<H\<"]F?8,$=CcšӆCQ˿C@ q 09—lӔYK!$͘2TTT 0HYiuba_Sx(]ƚzX9LGWcvmiM384$w҄rVg6U1&9K0W< zQb>oO?OfȮJasfx- O- ehs* + 77eލԏ4:pu2$O೩S.Հ2.T@oVSr*D9qv f zmx9qƉ3QN3a,$q2WXxRd"48$$z$V `DhD$%ѼQ'&"r١U0dMeeTN}?D2ER5\nts +itEI5_X|ڊivԫ 4ѓ0.5F}6@~OZF ݄kf̩.J2i=.K9\d +e9H,ǘȹ㗈#dt%T$rBnmJR[z,[/8:YZuDHykHC`LtsjB~hixQhܮ75'+c5N}?Ϋ^}FKA7~\6>v@ Џb?~I]37%v#/s.>=Di]N AʲH ?\\\Æ/Pf!ƕs4@ssssS2G,ӘAM)x2eݾ\w +24$@P5\Ζʆ"v9$ą1yRᒲ <ƥҸZqh\Ȍ˳3WS1(E`$AF43 ᜺N-,69[1r$:kᶤNOu=-'dfƵGWwEɽ|c\1V=KoάۻDX( +E2f.[.sڃfgu蜽싀afΖ62F$w&Abo0/4:[!bN4[;a,؈|7E??"@ ErmAόŅ̠ j 9x?ܣl ͤrNKU U5N?6$ES. &η z<"ʨFO0Rw_f[S)ANХh&2GP W:{*1$e7Wl0d4 +%U:F\$A VM857ǰ;c\5QX@H֋=F,mjq$Y=%q5YrēMe17k\BcW{SPF}\q҈mqBb O%p=iZQTF2CgǹW>o? +!gUc(>Q5V=zZh;anPO0YQk&vl`)/yf#sr{vXp&]%*w,oӢeHsSv$TQ^6#%!}ɌTV uqPp{,8F,))q<>9G ;AxEN]IQ8 +}?((ul9 +/WL?z2_t ùE< AI!Kgf鸡 7qpژKZBCMvl +'{8򏿓veN*c'/O6?ಣ/~qad2?2?rkE?lWQ:HHHH sC&,GA 9998JT*Q~db Gx *9(*̰Ig89feU)! +1Eo0~#m-qIݹuŊek(// >sӊU`˩Z5 $l.Q@o7JOסcbtm֡ЎΡOHFOMuRo݃QѹjsMi^֬ fpc+жa}ެf2,酞MAOο|KQ[qZp6& ZJ~eu ha@ Zi +L9Wt .  Js쮴P;dxR$`Q&!1p%cNޜ3D)փFjJxuOM1Q]SQdvJzd٩qu尚ud파)ജ!E-fJhOups:22Sa5k V"64NVPIe(ehq"bMi\/uXBC;,ZἱKm!zpDO`ͭ:ӵ  " *F̀dud۫Pc9$?K(;ˮ r_,0)aX-Lyn<-+@+V4ʒ8~e <-x- +<( %-A +S Pnl+. f"Hk\8(L(V"!JffyKb^F}"{Wˇ[H*bpK]m$[(/d=Z|Q,\F&_=L{P=,e &XZj9%M:?[z{Q"rҷtU/lZNFfpl6ݒn Ίn~0ww rT?;dFGnIHy+lCb +P3T*8%C۷h?]*=*VSzH;3mYhS-x#m oSA7j4Sş=jelr&>i䊸p/~|QΫƶw~|Qݐ+d%DI`"9{ìuEkH]K9t +|LDr~VF<'No֒qo^-TKfE%H +ep7\?S$C$9A|̆->F17["+;ԭMc-; إWv8z9|\Ȁ^m&v;XY$-%{b #a8-6$Hu'ݰ?Ny>yT>[F2xAJPY?\$&mÛ'[H{Ra!\!6(d"ٓYC w9Sds U0katkUӭf +"][1m:turPqfHKL-Z$#+S!Iew `Pc;0oǚCmpT~"g!w!/0h#"qS 4%&{( VEF2֭|S9.D>|"VIzA͚p7O!99wBiƸrnd]f\f\fԡ"%@322Ӹ`wϹ?t7DD\·a&QOH/Z_ɷϷB/=\.Vp+R\4ZDKxC UeTAnm+SaԀ&\ć\:<*s6 ,| mI"fF[/[ {4 yg12]1E| -Zڢ/I8"T,Ķ2NxGE|" ͷu~i"l@pK+S7()HyI(Keͧi\ E@b" T*7B:7 FS]MypIKyBӉ)r W1ݽڟ>$$byoaOȌLqYpF9h|0 DٍnwD(|8e evU)yY"5.k\ָ1Ӹ\(ָqո΃URǗw…,G|I +)o ֟X½lqP|# Dן ( +P<)grVS)Fe7@G-.eָڈ$sL<s=LfќeMLJ= |$9\[O p. `;#>oB7.i%Nk π5M%Ap7ɼ,H@Pzsx.Ch7H"0 ~kbk[ALZFީaUoغ%:\ز m5ue\59iۧjl@J9P#ZݨX(LCPϬC74{I,N\vFpiadƥ aVCrp+5\wg\ade]Mɦ@,Ud[rC=AkadhS Ӹ +\è |OƔ59;+Vt_i#/@ a̤}.TUz00t} Z<,^8 U$l9p.b\GJJá}qBT`$}($1rJO1:$y#'3lΰ$\Ę"Ƙ7gHKL-5TɪLIAz(BulL;+Jy BXE85JQt!S9HBBj>d,@R9\_HS&[p}!f QaK8GV虑H~QӌfԴGO-Xk@5r qyPWץ-B˥tJYrEH֋5n藝eSMe6ga*Ӹ ppo_8\SДÌ !yͬ!X)%,Ac;˜zNd|+ + }QTr!NVXS_CgDlͲe~^W뚅WS[A _/tsN "ՍL"͊P%~8ST}OBP̮F8eBk; +bĮVMhXm4h)cLI,0σj7d4A$5lQN[@7\n7a_rؗ$e1*6 l\ɻz](YUH\Mp45 QϜEh\`Ù`b^8.W1rbXM3T@'Fx#Ѩ`Drt#e^(2B1j:f  qSV䚊2r2W1_\v4 1 #ϑU.ceM\b k*}pwW1 W12Ӷm'mͺ@ue5 "Fe7ƻ.G>_3n,t+Wň~;%=˾%\ŸeGݕ5^S04fMX: \Xk&V ^IʀyY1+Q*L)ܸpE(yj\JVvoS- S"ɼ,H33}&L1R-Uib\"EaOp^OXѫY-zΘs?/*Eq11я*FָQYh\0 U;?݀BFb*FbB!RTQO~-⯽#b,à R"%d)óU|gԒ 1v%u85| +ID!\`v@b\``8.I\ S+X)HeW= 5 .k1bn so"\U$ + yL"!qw&1&@UBP1b.0-}[?ah ӨQVYju{''Uin9'ut:{5ݰù:靪zQn%;6z0eo| S3fC3`<1ACY%5},*EN8SŜ'R]9 ,ҵΜHWs{Q=7 ۡ)<UgI8WX*HTf_Qb6+4d9ɳUQ`*UX:MgBŸ/o2/Q((h6-1IV((zl!LV-oeQyI(yS覝]m߹!wMz. B-ZcSr +8e`||_Dܺdd B|y=Gd =c}s008782􄦲2 w }ƫu]P.R_L:M9~w@3'7z\Ψ1@Bj>ᑷ@P1-FUE;X1 ۚua,ߨA/ж!`f5/.MaD(ڷn?{w{ˀ{}:i×KE z9.f]bE0f.fK~ALIHoY{ +$WP4s(Hb \`nʈY~'d*>:sh7tw,Pc(%E3m9K 4LTz;rЅ#(%m0T.EQѣ$J8J)CFcG)IQ/4y0>zpXQyc[o-wΙZCy' `~~hT@|Q'3=[$H^*1"g*?U !}AtP|HX'CR2!s#|Ν"MS,4yM +łT8F &8v7)*Ba3Y'̆mRcQ";*|zsb>%J(9~\D8r-nQ C$ /6\/c.ERMd hCy)?~booV/B^Ai@aRjI7]X\Ɏd˾3K~ H$@.j6E}z}Q҅&E4 +n9jzؘ0`j "aX@qPP}6e1:ɔt8DZ89v8,'8j: +inҏmp%8 g΍V#p[Y%':+zr`&0e;29ߪL![#+s#Dž,jvIv&mQdEŲa gSw"DE=Oq| MqW!r8P?D\4 +-дТkC0-& j BW-er /4yhbq-E+#s'o::w`U3nvцa4G89Gֶ4 224lkO! QE{7 ,b8#ZN]QU51 (p43*W eqz'{W?پW{ĄR/C?>JΝ;?o|n[1 4nk&5ɱK1jAL|H`e +DgϏt-H_H~hE l܅MhaT9L@BLc?K=IamK:W=9o7lՒpwbK&g#²+<Ʌr MlKny2?|n%DۖքHF]^u;EFԬ;\tGʈyvlSC:pހ9t#Bb` '9(?&ǡr|wj~Ս6 V'T8$!Ft”E۪ۭc`>VQ,aGMW]F2 _?{uuA{ U5ܻ*e j5U &΂artKi%2:'̈]8 }Q8+` 6ʈ6Uڹ ᘏK;'r"ctsIbI,mW`Ʊ&gόuENul,e/w̱NqliQj93ʅ +Q}0JiytQXf*PJXGۏ<~|{O=2 Ty2Tp 6UXxȝ/XTqQqEBD3ps,c)zFPa[!hFKhwsE-D=3ElD$!G0,(X fXSsB~eB!KXCL3(RirD9[~cv'Bx_t{}g;JBX 2qVZ![k92$?91%' E]I"d EH$BQA]vE"^ hIFzk錾tf\c(' V!tu1E/d-rc,8micꀀy9L13 :O+0>"EehW0}_,b(d3{߆s4PS6자n(Z`u]PQ?mMMN|\ ϳ$D m〄3vFnn=s@&OQ]lG4Iq8d5m4L+bE ?V߫-{[B9[ bHK?eɇ_ *s[ +j\M@\blы>?39}ݾ>t ;x (nDu8X$:IH#hH8om>EmϣI5)Oi >N>ww5qh"/~}"Cڨ3Q жmܡ{mV,PlyAggBֆ?d '`X p8!e}ο|KS{ʐX$@`0M?2u=<`&y +XŀQ73mgC;OmC S5_8aG?څ2d ^A#ocV_T9H`HԦ &u8*VHP 0t\#5 .1#5*BD{frlNs}_o%1cajPAtj*~ ZpB;7tQ1(jLym}&bT=?sa\!"\:330?CDnnơQfy`8@Dơq`Jb9O [UZ.YBq|,41EZ3+\pCvoHC#ݹÏ.G\XR$OP=Q ٢̒j7#V}'wMػᱯ;vѮȺ&MR/9Z]_b?7-[ѥliWbKנSްEZk^֬ P2O ]5$Q0?.`>4?xvu|bO~'А~uayՉ zxzey:ݵatrwԁ1]}vC.a ogYAP)zOP7O4ϔVi܁/Ol`%K( 7 ї_Hž@+m&?e +H[O8d[^퉸(VWˈJBKFT|ВKCB{L:]AEe~)Mil*OT.wiTN+*u{BFR/,f:Ab:9!Uhs΁ 31!hnW1a]^B 8=7|JhӖ|1#i/b%&bJ@Cf#X.%j%}pJD'ﲛU&:cUtn$n+owsB]ⱺPPnIeW˸~0T)4Z8\b2#51hf-"zj[߲8YVtx!YW=q66qӖÖv7D/ysd*vJWJʖdYg :Jdsdq`Er#ʫa24a)=Jܻ77Xu&aE/_kw4~ pL\[TfK>u$txLB($X=SbIJκ(jg% +?SwACXkuӂE@yXkj,3iz+B:!K)T= [·PV.ʘ' )Y `ZnF݌f +U9w9c~4p'P %PVh;3]'o"TL 4+A +d|3%QBQ_˼/:_Va42$ ؊&9CGBL?#sB=WcA}$ҙA!z˺uZi5dM?YOX8V;,;x=V +utBpdv#=s8>WwdB_"vOs'D9ԬsYT!M6Pu&쭛9\u|̳4:??ɰʰCG = ȉ:9 +ܺ;?'5u1zV;<, ^Q`fX;B w /-]ȲHO7@9w] "ZMN$ߜA$_wjU7jV3xPKN@*HcustomXml/item2.xmlA +0ErpQK!ntLIboo.{+xFUY&G1yߵQ% )` FE/1܆.}U dcn A +WM2,p3-@$q0xscIuPKN@7customXml/itemProps2.xml]NM0/»ǴV+M.5Zh鋢݈7O0fFvʼng%Z%| E w$ؖM"&{4,C}-qJ-rږWIS,m*N4O'mC I8yAFܝwQ>(\k/IeB_¼9O{e!/PKN@iJ% word/fontTable.xmlVM0#q{&Nj:LH,3#n锞\qXp >IiӪ T/W<L! +0H䄉=/z9JAhE5x|9Jkz!y6})'LfTɩTS|NE"<#9+?ĸ6.r:e }%"Q +=g.-鶔j)PazZQW?*6'H.Nt *FrBJߨ'0˻zqaR@@~uݾ̲"EV5ljc6]n-O#b{ۡi%Tz2< n hkzV, Q͝E-d x6N=ܝq'`U[r9V7QOpZO>Ν69n{W[|-7ı c{> n:7Ꮗ@n:ý +rZVTf'%?]53 +n3|95@yW &ׄ5itEb"b}6=#ڊ({vý+ bS tL, !g#=v.N9'ފ((PKN@H + +word/media/image1.jpeg +JFIFC  +   $.' ",#(7),01444'9=82<.342C  2!!22222222222222222222222222222222222222222222222222Y_" + }!1AQa"q2#BR$3br +%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz + w!1AQaq"2B #3Rbr +$4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?xEPK'%Q`H>Pqְ?rxcI-e ʯlkVpA@['Jl6 Bq=tr q޾yW̟w7=G( +cBKE,q2ct`}Mu:ƌF_0~6bmdm~#%q~aqGX2/ +;g-{j^c7?C'B,)c[d٪i6$d= }sڽ\*FJ(ꭂ+GNeM,nE'}_EP#*_c|=xO:iQmnO(##Ə +=Y/ m&~u +~OxhQub ,}Tr|Z~֧lukl-e?xteA#(}/Qմ]Bs#"׉_ In O?Ыڝ4|mqOAmjwb7\,?Z8[zMDC7Ծ&ı)ll +{uqORccWO:c(E |ͼp$"7<)|+ ^"v'T~_+韈>;=Hn%Cy\qDK/#󯒫CPK=>vL0~$돠O&?' UylS:D@of/jzu?i$l\ {Z#npQ#чr? +O^t;8V(6WoT~z]xBOv'w{z#x5{ Q@_?~"W.qbү>9hCWj1q@loAhMʺ@V[8:| ?^*jX۷r? +$[ ֛"督%Ono +lxYuhuρDz̴QEO]x?yp|l>S^hgZf <+MLt]66Amh?hc&k~Ffac#2@/$Zi23x/~V̫]Bv¯O@EP^}kM +L6Do$xz &20hOx#n7.sfZlKK)"0Fy I.=D妶9~u#XiqKe=Gր>?G} +o6hTX~I?ElIEa/@h4_GҩEpI :~'O𕄶|6*DSy_>;xXcKDx>W'9glO\sހ~ϊVvV6sXz}M}gg h+Oed|5VPEPEPZ4/B#n1\~9oQ@3[Mom32(|[IJ2w.k(.>KKu.u)W.6gף[%P@ JGҭQ@Q@Q@PK +N@_rels/PKN@"" _rels/.relsJ1!}7*"loDH}! L}{r2g|szstxm +U Naq "3zCD62{(.>+㝔Y0W!/6$\ɈzU]ikANl;tr(Θ:b!i> rfu>JG1ے7Pay,]1<h|T!K"-|j{0tN 5՛hY6nfGB-K:mZU`'Zjݑp `r?MCiģQ8hJX=4?AĄ@:Ķk0ILwHbW4ir"P[)QĄHg^ !Qjkp)Vh&)HL/*89-xʬ + ~A +Ȯ޷G?'PKN@X`"word/_rels/header2.xml.rels +0EfoӺnDp+dFI(.^9Lډ=(&㝀^\j ,et +'HL rўi\Fi4!BqIsqHS >Z匚7uxR ~H:xy7 ,2HZYPKN@~ [Content_Types].xmlV;o0 ?\ N(,gH@փ teȓ̄/4=ѶPJdGu=#͓5#ĤU9e8vM~.L>"pJbHfl +BTby+">G+^cÃ~=;l9| j6X|~['gVb"@2UދmB?k/32L:ѩ&JBJnW@ +]X*uBoY5]DUr,=ReGAD z{.S0jNӖ>sm}TֲQRĚcBF?>9FGpc + + @@ -8054,6 +8056,20 @@ MonthReportNewEdit2.aspx + + WeekReport.aspx + ASPXCodeBehind + + + WeekReport.aspx + + + WeekReportEdit.aspx + ASPXCodeBehind + + + WeekReportEdit.aspx + CheckStatisc.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/common/Menu_CQMS.xml b/SGGL/FineUIPro.Web/common/Menu_CQMS.xml index de919474..772210e3 100644 --- a/SGGL/FineUIPro.Web/common/Menu_CQMS.xml +++ b/SGGL/FineUIPro.Web/common/Menu_CQMS.xml @@ -38,6 +38,7 @@ + diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 0fe6f230..c7deac87 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -1460,6 +1460,9 @@ namespace Model partial void InsertManager_Month_CheckC(Manager_Month_CheckC instance); partial void UpdateManager_Month_CheckC(Manager_Month_CheckC instance); partial void DeleteManager_Month_CheckC(Manager_Month_CheckC instance); + partial void InsertManager_Month_ComplianceObligations(Manager_Month_ComplianceObligations instance); + partial void UpdateManager_Month_ComplianceObligations(Manager_Month_ComplianceObligations instance); + partial void DeleteManager_Month_ComplianceObligations(Manager_Month_ComplianceObligations instance); partial void InsertManager_Month_ComplianceObligationsC(Manager_Month_ComplianceObligationsC instance); partial void UpdateManager_Month_ComplianceObligationsC(Manager_Month_ComplianceObligationsC instance); partial void DeleteManager_Month_ComplianceObligationsC(Manager_Month_ComplianceObligationsC instance); @@ -2018,6 +2021,9 @@ namespace Model partial void InsertReport_CQMS_MonthReportItem(Report_CQMS_MonthReportItem instance); partial void UpdateReport_CQMS_MonthReportItem(Report_CQMS_MonthReportItem instance); partial void DeleteReport_CQMS_MonthReportItem(Report_CQMS_MonthReportItem instance); + partial void InsertReport_CQMS_ProblemHandle(Report_CQMS_ProblemHandle instance); + partial void UpdateReport_CQMS_ProblemHandle(Report_CQMS_ProblemHandle instance); + partial void DeleteReport_CQMS_ProblemHandle(Report_CQMS_ProblemHandle instance); partial void InsertReport_CqmsTarget(Report_CqmsTarget instance); partial void UpdateReport_CqmsTarget(Report_CqmsTarget instance); partial void DeleteReport_CqmsTarget(Report_CqmsTarget instance); @@ -6510,6 +6516,14 @@ namespace Model } } + public System.Data.Linq.Table Manager_Month_ComplianceObligations + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Manager_Month_ComplianceObligationsC { get @@ -7998,6 +8012,14 @@ namespace Model } } + public System.Data.Linq.Table Report_CQMS_ProblemHandle + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Report_CqmsTarget { get @@ -21591,8 +21613,6 @@ namespace Model private string _CodeRule; - private EntitySet _Doc_DocManage; - #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -21609,7 +21629,6 @@ namespace Model public Base_DocType() { - this._Doc_DocManage = new EntitySet(new Action(this.attach_Doc_DocManage), new Action(this.detach_Doc_DocManage)); OnCreated(); } @@ -21693,19 +21712,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_DocType", Storage="_Doc_DocManage", ThisKey="DocTypeId", OtherKey="DocTypeId", DeleteRule="NO ACTION")] - public EntitySet Doc_DocManage - { - get - { - return this._Doc_DocManage; - } - set - { - this._Doc_DocManage.Assign(value); - } - } - public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -21725,18 +21731,6 @@ namespace Model this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } - - private void attach_Doc_DocManage(Doc_DocManage entity) - { - this.SendPropertyChanging(); - entity.Base_DocType = this; - } - - private void detach_Doc_DocManage(Doc_DocManage entity) - { - this.SendPropertyChanging(); - entity.Base_DocType = null; - } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_EmergencyType")] @@ -98235,10 +98229,10 @@ namespace Model private string _AuditMan; - private string _Problem; - private string _Measure; + private string _Problem; + private string _RemarkCode; private EntityRef _Sys_User; @@ -98287,10 +98281,10 @@ namespace Model partial void OnStatusChanged(); partial void OnAuditManChanging(string value); partial void OnAuditManChanged(); - partial void OnProblemChanging(string value); - partial void OnProblemChanged(); partial void OnMeasureChanging(string value); partial void OnMeasureChanged(); + partial void OnProblemChanging(string value); + partial void OnProblemChanged(); partial void OnRemarkCodeChanging(string value); partial void OnRemarkCodeChanged(); #endregion @@ -98660,27 +98654,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Problem", DbType="VarChar(50)")] - public string Problem - { - get - { - return this._Problem; - } - set - { - if ((this._Problem != value)) - { - this.OnProblemChanging(value); - this.SendPropertyChanging(); - this._Problem = value; - this.SendPropertyChanged("Problem"); - this.OnProblemChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Measure", DbType="VarChar(100)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Measure", DbType="VarChar(500)")] public string Measure { get @@ -98700,6 +98674,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Problem", DbType="VarChar(100)")] + public string Problem + { + get + { + return this._Problem; + } + set + { + if ((this._Problem != value)) + { + this.OnProblemChanging(value); + this.SendPropertyChanging(); + this._Problem = value; + this.SendPropertyChanged("Problem"); + this.OnProblemChanged(); + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RemarkCode", DbType="NVarChar(50)")] public string RemarkCode { @@ -121058,8 +121052,6 @@ namespace Model private EntityRef _Base_CNProfessional; - private EntityRef _Base_DocType; - private EntityRef _Base_Project; private EntityRef _Base_Unit; @@ -121111,7 +121103,6 @@ namespace Model public Doc_DocManage() { this._Base_CNProfessional = default(EntityRef); - this._Base_DocType = default(EntityRef); this._Base_Project = default(EntityRef); this._Base_Unit = default(EntityRef); this._Sys_User = default(EntityRef); @@ -121190,10 +121181,6 @@ namespace Model { if ((this._DocTypeId != value)) { - if (this._Base_DocType.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } this.OnDocTypeIdChanging(value); this.SendPropertyChanging(); this._DocTypeId = value; @@ -121513,40 +121500,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_DocType", Storage="_Base_DocType", ThisKey="DocTypeId", OtherKey="DocTypeId", IsForeignKey=true)] - public Base_DocType Base_DocType - { - get - { - return this._Base_DocType.Entity; - } - set - { - Base_DocType previousValue = this._Base_DocType.Entity; - if (((previousValue != value) - || (this._Base_DocType.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._Base_DocType.Entity = null; - previousValue.Doc_DocManage.Remove(this); - } - this._Base_DocType.Entity = value; - if ((value != null)) - { - value.Doc_DocManage.Add(this); - this._DocTypeId = value.DocTypeId; - } - else - { - this._DocTypeId = default(string); - } - this.SendPropertyChanged("Base_DocType"); - } - } - } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project { @@ -121717,8 +121670,6 @@ namespace Model private EntityRef _Doc_DocManage; - private EntityRef _Sys_User; - #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -121742,7 +121693,6 @@ namespace Model public Doc_DocManageApprove() { this._Doc_DocManage = default(EntityRef); - this._Sys_User = default(EntityRef); OnCreated(); } @@ -121790,7 +121740,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveMan", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveMan", DbType="NVarChar(500)")] public string ApproveMan { get @@ -121801,10 +121751,6 @@ namespace Model { if ((this._ApproveMan != value)) { - if (this._Sys_User.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } this.OnApproveManChanging(value); this.SendPropertyChanging(); this._ApproveMan = value; @@ -121928,40 +121874,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManageApprove_Sys_User", Storage="_Sys_User", ThisKey="ApproveMan", OtherKey="UserId", IsForeignKey=true)] - public Sys_User Sys_User - { - get - { - return this._Sys_User.Entity; - } - set - { - Sys_User previousValue = this._Sys_User.Entity; - if (((previousValue != value) - || (this._Sys_User.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._Sys_User.Entity = null; - previousValue.Doc_DocManageApprove.Remove(this); - } - this._Sys_User.Entity = value; - if ((value != null)) - { - value.Doc_DocManageApprove.Add(this); - this._ApproveMan = value.UserId; - } - else - { - this._ApproveMan = default(string); - } - this.SendPropertyChanged("Sys_User"); - } - } - } - public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -235749,6 +235661,229 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_Month_ComplianceObligations")] + public partial class Manager_Month_ComplianceObligations : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ComplianceObligationsId; + + private string _MonthReportId; + + private string _InformationContent; + + private string _ResponseMeasures; + + private string _ImplementationStatus; + + private string _EvaluationConclusion; + + private EntityRef _Manager_MonthReportC; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnComplianceObligationsIdChanging(string value); + partial void OnComplianceObligationsIdChanged(); + partial void OnMonthReportIdChanging(string value); + partial void OnMonthReportIdChanged(); + partial void OnInformationContentChanging(string value); + partial void OnInformationContentChanged(); + partial void OnResponseMeasuresChanging(string value); + partial void OnResponseMeasuresChanged(); + partial void OnImplementationStatusChanging(string value); + partial void OnImplementationStatusChanged(); + partial void OnEvaluationConclusionChanging(string value); + partial void OnEvaluationConclusionChanged(); + #endregion + + public Manager_Month_ComplianceObligations() + { + this._Manager_MonthReportC = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ComplianceObligationsId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ComplianceObligationsId + { + get + { + return this._ComplianceObligationsId; + } + set + { + if ((this._ComplianceObligationsId != value)) + { + this.OnComplianceObligationsIdChanging(value); + this.SendPropertyChanging(); + this._ComplianceObligationsId = value; + this.SendPropertyChanged("ComplianceObligationsId"); + this.OnComplianceObligationsIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")] + public string MonthReportId + { + get + { + return this._MonthReportId; + } + set + { + if ((this._MonthReportId != value)) + { + if (this._Manager_MonthReportC.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnMonthReportIdChanging(value); + this.SendPropertyChanging(); + this._MonthReportId = value; + this.SendPropertyChanged("MonthReportId"); + this.OnMonthReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InformationContent", DbType="NVarChar(500)")] + public string InformationContent + { + get + { + return this._InformationContent; + } + set + { + if ((this._InformationContent != value)) + { + this.OnInformationContentChanging(value); + this.SendPropertyChanging(); + this._InformationContent = value; + this.SendPropertyChanged("InformationContent"); + this.OnInformationContentChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResponseMeasures", DbType="NVarChar(500)")] + public string ResponseMeasures + { + get + { + return this._ResponseMeasures; + } + set + { + if ((this._ResponseMeasures != value)) + { + this.OnResponseMeasuresChanging(value); + this.SendPropertyChanging(); + this._ResponseMeasures = value; + this.SendPropertyChanged("ResponseMeasures"); + this.OnResponseMeasuresChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ImplementationStatus", DbType="NVarChar(500)")] + public string ImplementationStatus + { + get + { + return this._ImplementationStatus; + } + set + { + if ((this._ImplementationStatus != value)) + { + this.OnImplementationStatusChanging(value); + this.SendPropertyChanging(); + this._ImplementationStatus = value; + this.SendPropertyChanged("ImplementationStatus"); + this.OnImplementationStatusChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EvaluationConclusion", DbType="NVarChar(50)")] + public string EvaluationConclusion + { + get + { + return this._EvaluationConclusion; + } + set + { + if ((this._EvaluationConclusion != value)) + { + this.OnEvaluationConclusionChanging(value); + this.SendPropertyChanging(); + this._EvaluationConclusion = value; + this.SendPropertyChanged("EvaluationConclusion"); + this.OnEvaluationConclusionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_ComplianceObligations_Manager_MonthReportC", Storage="_Manager_MonthReportC", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)] + public Manager_MonthReportC Manager_MonthReportC + { + get + { + return this._Manager_MonthReportC.Entity; + } + set + { + Manager_MonthReportC previousValue = this._Manager_MonthReportC.Entity; + if (((previousValue != value) + || (this._Manager_MonthReportC.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Manager_MonthReportC.Entity = null; + previousValue.Manager_Month_ComplianceObligations.Remove(this); + } + this._Manager_MonthReportC.Entity = value; + if ((value != null)) + { + value.Manager_Month_ComplianceObligations.Add(this); + this._MonthReportId = value.MonthReportId; + } + else + { + this._MonthReportId = default(string); + } + this.SendPropertyChanged("Manager_MonthReportC"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_Month_ComplianceObligationsC")] public partial class Manager_Month_ComplianceObligationsC : INotifyPropertyChanging, INotifyPropertyChanged { @@ -241948,6 +242083,8 @@ namespace Model private EntitySet _Manager_Month_CheckC; + private EntitySet _Manager_Month_ComplianceObligations; + private EntitySet _Manager_Month_ComplianceObligationsC; private EntitySet _Manager_Month_CostInvestmentPlanC; @@ -242220,6 +242357,7 @@ namespace Model this._Manager_Month_ActivitiesC = new EntitySet(new Action(this.attach_Manager_Month_ActivitiesC), new Action(this.detach_Manager_Month_ActivitiesC)); this._Manager_Month_ActivityDesC = new EntitySet(new Action(this.attach_Manager_Month_ActivityDesC), new Action(this.detach_Manager_Month_ActivityDesC)); this._Manager_Month_CheckC = new EntitySet(new Action(this.attach_Manager_Month_CheckC), new Action(this.detach_Manager_Month_CheckC)); + this._Manager_Month_ComplianceObligations = new EntitySet(new Action(this.attach_Manager_Month_ComplianceObligations), new Action(this.detach_Manager_Month_ComplianceObligations)); this._Manager_Month_ComplianceObligationsC = new EntitySet(new Action(this.attach_Manager_Month_ComplianceObligationsC), new Action(this.detach_Manager_Month_ComplianceObligationsC)); this._Manager_Month_CostInvestmentPlanC = new EntitySet(new Action(this.attach_Manager_Month_CostInvestmentPlanC), new Action(this.detach_Manager_Month_CostInvestmentPlanC)); this._Manager_Month_EmergencyExercisesC = new EntitySet(new Action(this.attach_Manager_Month_EmergencyExercisesC), new Action(this.detach_Manager_Month_EmergencyExercisesC)); @@ -244400,6 +244538,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_ComplianceObligations_Manager_MonthReportC", Storage="_Manager_Month_ComplianceObligations", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] + public EntitySet Manager_Month_ComplianceObligations + { + get + { + return this._Manager_Month_ComplianceObligations; + } + set + { + this._Manager_Month_ComplianceObligations.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_ComplianceObligationsC_Manager_MonthReportC", Storage="_Manager_Month_ComplianceObligationsC", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")] public EntitySet Manager_Month_ComplianceObligationsC { @@ -244981,6 +245132,18 @@ namespace Model entity.Manager_MonthReportC = null; } + private void attach_Manager_Month_ComplianceObligations(Manager_Month_ComplianceObligations entity) + { + this.SendPropertyChanging(); + entity.Manager_MonthReportC = this; + } + + private void detach_Manager_Month_ComplianceObligations(Manager_Month_ComplianceObligations entity) + { + this.SendPropertyChanging(); + entity.Manager_MonthReportC = null; + } + private void attach_Manager_Month_ComplianceObligationsC(Manager_Month_ComplianceObligationsC entity) { this.SendPropertyChanging(); @@ -273325,7 +273488,7 @@ namespace Model private System.Nullable _ProblemType; - private string _SubInspectId; + private string _QuestionTechnologyId; private string _TermItemId; @@ -273339,18 +273502,20 @@ namespace Model private string _InspectUser; - private string _HandleUser; - private string _ApproveUser; - private System.Nullable _AdjustCompleteTime; - private System.Nullable _ApproveState; private string _AddUser; private System.Nullable _AddTime; + private string _HandleUser; + + private System.Nullable _AdjustCompleteTime; + + private string _SubInspectId; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -273367,8 +273532,8 @@ namespace Model partial void OnConstructionUnitChanged(); partial void OnProblemTypeChanging(System.Nullable value); partial void OnProblemTypeChanged(); - partial void OnSubInspectIdChanging(string value); - partial void OnSubInspectIdChanged(); + partial void OnQuestionTechnologyIdChanging(string value); + partial void OnQuestionTechnologyIdChanged(); partial void OnTermItemIdChanging(string value); partial void OnTermItemIdChanged(); partial void OnWorkPackIdChanging(string value); @@ -273381,18 +273546,20 @@ namespace Model partial void OnRectifyTimeChanged(); partial void OnInspectUserChanging(string value); partial void OnInspectUserChanged(); - partial void OnHandleUserChanging(string value); - partial void OnHandleUserChanged(); partial void OnApproveUserChanging(string value); partial void OnApproveUserChanged(); - partial void OnAdjustCompleteTimeChanging(System.Nullable value); - partial void OnAdjustCompleteTimeChanged(); partial void OnApproveStateChanging(System.Nullable value); partial void OnApproveStateChanged(); partial void OnAddUserChanging(string value); partial void OnAddUserChanged(); partial void OnAddTimeChanging(System.Nullable value); partial void OnAddTimeChanged(); + partial void OnHandleUserChanging(string value); + partial void OnHandleUserChanged(); + partial void OnAdjustCompleteTimeChanging(System.Nullable value); + partial void OnAdjustCompleteTimeChanged(); + partial void OnSubInspectIdChanging(string value); + partial void OnSubInspectIdChanged(); #endregion public PreRun_InspectTailTerm() @@ -273520,22 +273687,22 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubInspectId", DbType="VarChar(50)")] - public string SubInspectId + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QuestionTechnologyId", DbType="VarChar(50)")] + public string QuestionTechnologyId { get { - return this._SubInspectId; + return this._QuestionTechnologyId; } set { - if ((this._SubInspectId != value)) + if ((this._QuestionTechnologyId != value)) { - this.OnSubInspectIdChanging(value); + this.OnQuestionTechnologyIdChanging(value); this.SendPropertyChanging(); - this._SubInspectId = value; - this.SendPropertyChanged("SubInspectId"); - this.OnSubInspectIdChanged(); + this._QuestionTechnologyId = value; + this.SendPropertyChanged("QuestionTechnologyId"); + this.OnQuestionTechnologyIdChanged(); } } } @@ -273660,26 +273827,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleUser", DbType="VarChar(50)")] - public string HandleUser - { - get - { - return this._HandleUser; - } - set - { - if ((this._HandleUser != value)) - { - this.OnHandleUserChanging(value); - this.SendPropertyChanging(); - this._HandleUser = value; - this.SendPropertyChanged("HandleUser"); - this.OnHandleUserChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveUser", DbType="VarChar(50)")] public string ApproveUser { @@ -273700,26 +273847,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AdjustCompleteTime", DbType="DateTime")] - public System.Nullable AdjustCompleteTime - { - get - { - return this._AdjustCompleteTime; - } - set - { - if ((this._AdjustCompleteTime != value)) - { - this.OnAdjustCompleteTimeChanging(value); - this.SendPropertyChanging(); - this._AdjustCompleteTime = value; - this.SendPropertyChanged("AdjustCompleteTime"); - this.OnAdjustCompleteTimeChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveState", DbType="Int")] public System.Nullable ApproveState { @@ -273780,6 +273907,66 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleUser", DbType="VarChar(50)")] + public string HandleUser + { + get + { + return this._HandleUser; + } + set + { + if ((this._HandleUser != value)) + { + this.OnHandleUserChanging(value); + this.SendPropertyChanging(); + this._HandleUser = value; + this.SendPropertyChanged("HandleUser"); + this.OnHandleUserChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AdjustCompleteTime", DbType="DateTime")] + public System.Nullable AdjustCompleteTime + { + get + { + return this._AdjustCompleteTime; + } + set + { + if ((this._AdjustCompleteTime != value)) + { + this.OnAdjustCompleteTimeChanging(value); + this.SendPropertyChanging(); + this._AdjustCompleteTime = value; + this.SendPropertyChanged("AdjustCompleteTime"); + this.OnAdjustCompleteTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubInspectId", DbType="NVarChar(50)")] + public string SubInspectId + { + get + { + return this._SubInspectId; + } + set + { + if ((this._SubInspectId != value)) + { + this.OnSubInspectIdChanging(value); + this.SendPropertyChanging(); + this._SubInspectId = value; + this.SendPropertyChanged("SubInspectId"); + this.OnSubInspectIdChanged(); + } + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -273821,14 +274008,14 @@ namespace Model private string _ApproveUser; - private System.Nullable _ApproveType; - private System.Nullable _ApproveState; private string _AddUser; private System.Nullable _AddTime; + private System.Nullable _ApproveType; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -273847,14 +274034,14 @@ namespace Model partial void OnApproveTimeChanged(); partial void OnApproveUserChanging(string value); partial void OnApproveUserChanged(); - partial void OnApproveTypeChanging(System.Nullable value); - partial void OnApproveTypeChanged(); partial void OnApproveStateChanging(System.Nullable value); partial void OnApproveStateChanged(); partial void OnAddUserChanging(string value); partial void OnAddUserChanged(); partial void OnAddTimeChanging(System.Nullable value); partial void OnAddTimeChanged(); + partial void OnApproveTypeChanging(System.Nullable value); + partial void OnApproveTypeChanged(); #endregion public PreRun_InspectTermApproveRecords() @@ -274002,26 +274189,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveType", DbType="Int")] - public System.Nullable ApproveType - { - get - { - return this._ApproveType; - } - set - { - if ((this._ApproveType != value)) - { - this.OnApproveTypeChanging(value); - this.SendPropertyChanging(); - this._ApproveType = value; - this.SendPropertyChanged("ApproveType"); - this.OnApproveTypeChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveState", DbType="Int")] public System.Nullable ApproveState { @@ -274082,6 +274249,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveType", DbType="Int")] + public System.Nullable ApproveType + { + get + { + return this._ApproveType; + } + set + { + if ((this._ApproveType != value)) + { + this.OnApproveTypeChanging(value); + this.SendPropertyChanging(); + this._ApproveType = value; + this.SendPropertyChanged("ApproveType"); + this.OnApproveTypeChanged(); + } + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -275014,7 +275201,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="VarChar(MAX)", UpdateCheck=UpdateCheck.Never)] public string Remark { get @@ -275137,6 +275324,12 @@ namespace Model private string _InspectResult; + private System.Nullable _InspectTime; + + private string _AddUser; + + private System.Nullable _AddTime; + private string _Subcontractor; private string _Contractor; @@ -275145,6 +275338,12 @@ namespace Model private string _Owner; + private System.Nullable _IsUnifyWanderAbout; + + private System.Nullable _UnifyWanderAboutData; + + private string _UnifyWanderAboutOpinion; + private System.Nullable _InspectionIsAllPass; private System.Nullable _SubcontractorIsAllPass; @@ -275155,9 +275354,7 @@ namespace Model private System.Nullable _OwnerIsAllPass; - private System.Nullable _WorkPackType; - - private string _PropertyTechnologyId; + private System.Nullable _WanderIsComplete; private System.Nullable _SubcontractorAllPassData; @@ -275167,35 +275364,25 @@ namespace Model private System.Nullable _OwnerAllPassData; - private System.Nullable _WanderIsComplete; - private System.Nullable _WanderCompleteData; + private System.Nullable _WorkPackType; + private System.Nullable _IsSiteImplement; - private string _SiteImplementUser; - - private System.Nullable _SiteImplementConfirmData; - - private System.Nullable _RecordUploadData; - private System.Nullable _InspectIsClose; - private string _InspectIsCloseUser; - private System.Nullable _InspectCloseData; - private System.Nullable _IsUnifyWanderAbout; + private string _InspectIsCloseUser; - private System.Nullable _UnifyWanderAboutData; + private string _PropertyTechnologyId; - private string _UnifyWanderAboutOpinion; + private System.Nullable _RecordUploadData; - private System.Nullable _InspectTime; + private System.Nullable _SiteImplementConfirmData; - private string _AddUser; - - private System.Nullable _AddTime; + private string _SiteImplementUser; #region 可扩展性方法定义 partial void OnLoaded(); @@ -275217,6 +275404,12 @@ namespace Model partial void OnWorkPackIdChanged(); partial void OnInspectResultChanging(string value); partial void OnInspectResultChanged(); + partial void OnInspectTimeChanging(System.Nullable value); + partial void OnInspectTimeChanged(); + partial void OnAddUserChanging(string value); + partial void OnAddUserChanged(); + partial void OnAddTimeChanging(System.Nullable value); + partial void OnAddTimeChanged(); partial void OnSubcontractorChanging(string value); partial void OnSubcontractorChanged(); partial void OnContractorChanging(string value); @@ -275225,6 +275418,12 @@ namespace Model partial void OnSupervisionChanged(); partial void OnOwnerChanging(string value); partial void OnOwnerChanged(); + partial void OnIsUnifyWanderAboutChanging(System.Nullable value); + partial void OnIsUnifyWanderAboutChanged(); + partial void OnUnifyWanderAboutDataChanging(System.Nullable value); + partial void OnUnifyWanderAboutDataChanged(); + partial void OnUnifyWanderAboutOpinionChanging(string value); + partial void OnUnifyWanderAboutOpinionChanged(); partial void OnInspectionIsAllPassChanging(System.Nullable value); partial void OnInspectionIsAllPassChanged(); partial void OnSubcontractorIsAllPassChanging(System.Nullable value); @@ -275235,10 +275434,8 @@ namespace Model partial void OnSupervisionIsAllPassChanged(); partial void OnOwnerIsAllPassChanging(System.Nullable value); partial void OnOwnerIsAllPassChanged(); - partial void OnWorkPackTypeChanging(System.Nullable value); - partial void OnWorkPackTypeChanged(); - partial void OnPropertyTechnologyIdChanging(string value); - partial void OnPropertyTechnologyIdChanged(); + partial void OnWanderIsCompleteChanging(System.Nullable value); + partial void OnWanderIsCompleteChanged(); partial void OnSubcontractorAllPassDataChanging(System.Nullable value); partial void OnSubcontractorAllPassDataChanged(); partial void OnContractorAllPassDataChanging(System.Nullable value); @@ -275247,36 +275444,26 @@ namespace Model partial void OnSupervisionAllPassDataChanged(); partial void OnOwnerAllPassDataChanging(System.Nullable value); partial void OnOwnerAllPassDataChanged(); - partial void OnWanderIsCompleteChanging(System.Nullable value); - partial void OnWanderIsCompleteChanged(); partial void OnWanderCompleteDataChanging(System.Nullable value); partial void OnWanderCompleteDataChanged(); + partial void OnWorkPackTypeChanging(System.Nullable value); + partial void OnWorkPackTypeChanged(); partial void OnIsSiteImplementChanging(System.Nullable value); partial void OnIsSiteImplementChanged(); - partial void OnSiteImplementUserChanging(string value); - partial void OnSiteImplementUserChanged(); - partial void OnSiteImplementConfirmDataChanging(System.Nullable value); - partial void OnSiteImplementConfirmDataChanged(); - partial void OnRecordUploadDataChanging(System.Nullable value); - partial void OnRecordUploadDataChanged(); partial void OnInspectIsCloseChanging(System.Nullable value); partial void OnInspectIsCloseChanged(); - partial void OnInspectIsCloseUserChanging(string value); - partial void OnInspectIsCloseUserChanged(); partial void OnInspectCloseDataChanging(System.Nullable value); partial void OnInspectCloseDataChanged(); - partial void OnIsUnifyWanderAboutChanging(System.Nullable value); - partial void OnIsUnifyWanderAboutChanged(); - partial void OnUnifyWanderAboutDataChanging(System.Nullable value); - partial void OnUnifyWanderAboutDataChanged(); - partial void OnUnifyWanderAboutOpinionChanging(string value); - partial void OnUnifyWanderAboutOpinionChanged(); - partial void OnInspectTimeChanging(System.Nullable value); - partial void OnInspectTimeChanged(); - partial void OnAddUserChanging(string value); - partial void OnAddUserChanged(); - partial void OnAddTimeChanging(System.Nullable value); - partial void OnAddTimeChanged(); + partial void OnInspectIsCloseUserChanging(string value); + partial void OnInspectIsCloseUserChanged(); + partial void OnPropertyTechnologyIdChanging(string value); + partial void OnPropertyTechnologyIdChanged(); + partial void OnRecordUploadDataChanging(System.Nullable value); + partial void OnRecordUploadDataChanged(); + partial void OnSiteImplementConfirmDataChanging(System.Nullable value); + partial void OnSiteImplementConfirmDataChanged(); + partial void OnSiteImplementUserChanging(string value); + partial void OnSiteImplementUserChanged(); #endregion public PreRun_SubInspectTerm() @@ -275444,6 +275631,66 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectTime", DbType="DateTime")] + public System.Nullable InspectTime + { + get + { + return this._InspectTime; + } + set + { + if ((this._InspectTime != value)) + { + this.OnInspectTimeChanging(value); + this.SendPropertyChanging(); + this._InspectTime = value; + this.SendPropertyChanged("InspectTime"); + this.OnInspectTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AddUser", DbType="VarChar(50)")] + public string AddUser + { + get + { + return this._AddUser; + } + set + { + if ((this._AddUser != value)) + { + this.OnAddUserChanging(value); + this.SendPropertyChanging(); + this._AddUser = value; + this.SendPropertyChanged("AddUser"); + this.OnAddUserChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AddTime", DbType="DateTime")] + public System.Nullable AddTime + { + get + { + return this._AddTime; + } + set + { + if ((this._AddTime != value)) + { + this.OnAddTimeChanging(value); + this.SendPropertyChanging(); + this._AddTime = value; + this.SendPropertyChanged("AddTime"); + this.OnAddTimeChanged(); + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subcontractor", DbType="VarChar(50)")] public string Subcontractor { @@ -275524,6 +275771,66 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsUnifyWanderAbout", DbType="Int")] + public System.Nullable IsUnifyWanderAbout + { + get + { + return this._IsUnifyWanderAbout; + } + set + { + if ((this._IsUnifyWanderAbout != value)) + { + this.OnIsUnifyWanderAboutChanging(value); + this.SendPropertyChanging(); + this._IsUnifyWanderAbout = value; + this.SendPropertyChanged("IsUnifyWanderAbout"); + this.OnIsUnifyWanderAboutChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnifyWanderAboutData", DbType="DateTime")] + public System.Nullable UnifyWanderAboutData + { + get + { + return this._UnifyWanderAboutData; + } + set + { + if ((this._UnifyWanderAboutData != value)) + { + this.OnUnifyWanderAboutDataChanging(value); + this.SendPropertyChanging(); + this._UnifyWanderAboutData = value; + this.SendPropertyChanged("UnifyWanderAboutData"); + this.OnUnifyWanderAboutDataChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnifyWanderAboutOpinion", DbType="VarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + public string UnifyWanderAboutOpinion + { + get + { + return this._UnifyWanderAboutOpinion; + } + set + { + if ((this._UnifyWanderAboutOpinion != value)) + { + this.OnUnifyWanderAboutOpinionChanging(value); + this.SendPropertyChanging(); + this._UnifyWanderAboutOpinion = value; + this.SendPropertyChanged("UnifyWanderAboutOpinion"); + this.OnUnifyWanderAboutOpinionChanged(); + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionIsAllPass", DbType="Int")] public System.Nullable InspectionIsAllPass { @@ -275624,42 +275931,22 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackType", DbType="Int")] - public System.Nullable WorkPackType + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WanderIsComplete", DbType="Int")] + public System.Nullable WanderIsComplete { get { - return this._WorkPackType; + return this._WanderIsComplete; } set { - if ((this._WorkPackType != value)) + if ((this._WanderIsComplete != value)) { - this.OnWorkPackTypeChanging(value); + this.OnWanderIsCompleteChanging(value); this.SendPropertyChanging(); - this._WorkPackType = value; - this.SendPropertyChanged("WorkPackType"); - this.OnWorkPackTypeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyTechnologyId", DbType="VarChar(MAX)", UpdateCheck=UpdateCheck.Never)] - public string PropertyTechnologyId - { - get - { - return this._PropertyTechnologyId; - } - set - { - if ((this._PropertyTechnologyId != value)) - { - this.OnPropertyTechnologyIdChanging(value); - this.SendPropertyChanging(); - this._PropertyTechnologyId = value; - this.SendPropertyChanged("PropertyTechnologyId"); - this.OnPropertyTechnologyIdChanged(); + this._WanderIsComplete = value; + this.SendPropertyChanged("WanderIsComplete"); + this.OnWanderIsCompleteChanged(); } } } @@ -275744,26 +276031,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WanderIsComplete", DbType="Int")] - public System.Nullable WanderIsComplete - { - get - { - return this._WanderIsComplete; - } - set - { - if ((this._WanderIsComplete != value)) - { - this.OnWanderIsCompleteChanging(value); - this.SendPropertyChanging(); - this._WanderIsComplete = value; - this.SendPropertyChanged("WanderIsComplete"); - this.OnWanderIsCompleteChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WanderCompleteData", DbType="DateTime")] public System.Nullable WanderCompleteData { @@ -275784,6 +276051,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackType", DbType="Int")] + public System.Nullable WorkPackType + { + get + { + return this._WorkPackType; + } + set + { + if ((this._WorkPackType != value)) + { + this.OnWorkPackTypeChanging(value); + this.SendPropertyChanging(); + this._WorkPackType = value; + this.SendPropertyChanged("WorkPackType"); + this.OnWorkPackTypeChanged(); + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSiteImplement", DbType="Int")] public System.Nullable IsSiteImplement { @@ -275804,66 +276091,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SiteImplementUser", DbType="VarChar(50)")] - public string SiteImplementUser - { - get - { - return this._SiteImplementUser; - } - set - { - if ((this._SiteImplementUser != value)) - { - this.OnSiteImplementUserChanging(value); - this.SendPropertyChanging(); - this._SiteImplementUser = value; - this.SendPropertyChanged("SiteImplementUser"); - this.OnSiteImplementUserChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SiteImplementConfirmData", DbType="DateTime")] - public System.Nullable SiteImplementConfirmData - { - get - { - return this._SiteImplementConfirmData; - } - set - { - if ((this._SiteImplementConfirmData != value)) - { - this.OnSiteImplementConfirmDataChanging(value); - this.SendPropertyChanging(); - this._SiteImplementConfirmData = value; - this.SendPropertyChanged("SiteImplementConfirmData"); - this.OnSiteImplementConfirmDataChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordUploadData", DbType="DateTime")] - public System.Nullable RecordUploadData - { - get - { - return this._RecordUploadData; - } - set - { - if ((this._RecordUploadData != value)) - { - this.OnRecordUploadDataChanging(value); - this.SendPropertyChanging(); - this._RecordUploadData = value; - this.SendPropertyChanged("RecordUploadData"); - this.OnRecordUploadDataChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectIsClose", DbType="Int")] public System.Nullable InspectIsClose { @@ -275884,26 +276111,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectIsCloseUser", DbType="VarChar(50)")] - public string InspectIsCloseUser - { - get - { - return this._InspectIsCloseUser; - } - set - { - if ((this._InspectIsCloseUser != value)) - { - this.OnInspectIsCloseUserChanging(value); - this.SendPropertyChanging(); - this._InspectIsCloseUser = value; - this.SendPropertyChanged("InspectIsCloseUser"); - this.OnInspectIsCloseUserChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectCloseData", DbType="DateTime")] public System.Nullable InspectCloseData { @@ -275924,122 +276131,102 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsUnifyWanderAbout", DbType="Int")] - public System.Nullable IsUnifyWanderAbout + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectIsCloseUser", DbType="NVarChar(50)")] + public string InspectIsCloseUser { get { - return this._IsUnifyWanderAbout; + return this._InspectIsCloseUser; } set { - if ((this._IsUnifyWanderAbout != value)) + if ((this._InspectIsCloseUser != value)) { - this.OnIsUnifyWanderAboutChanging(value); + this.OnInspectIsCloseUserChanging(value); this.SendPropertyChanging(); - this._IsUnifyWanderAbout = value; - this.SendPropertyChanged("IsUnifyWanderAbout"); - this.OnIsUnifyWanderAboutChanged(); + this._InspectIsCloseUser = value; + this.SendPropertyChanged("InspectIsCloseUser"); + this.OnInspectIsCloseUserChanged(); } } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnifyWanderAboutData", DbType="DateTime")] - public System.Nullable UnifyWanderAboutData + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyTechnologyId", DbType="NVarChar(500)")] + public string PropertyTechnologyId { get { - return this._UnifyWanderAboutData; + return this._PropertyTechnologyId; } set { - if ((this._UnifyWanderAboutData != value)) + if ((this._PropertyTechnologyId != value)) { - this.OnUnifyWanderAboutDataChanging(value); + this.OnPropertyTechnologyIdChanging(value); this.SendPropertyChanging(); - this._UnifyWanderAboutData = value; - this.SendPropertyChanged("UnifyWanderAboutData"); - this.OnUnifyWanderAboutDataChanged(); + this._PropertyTechnologyId = value; + this.SendPropertyChanged("PropertyTechnologyId"); + this.OnPropertyTechnologyIdChanged(); } } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnifyWanderAboutOpinion", DbType="VarChar(MAX)", UpdateCheck=UpdateCheck.Never)] - public string UnifyWanderAboutOpinion + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordUploadData", DbType="DateTime")] + public System.Nullable RecordUploadData { get { - return this._UnifyWanderAboutOpinion; + return this._RecordUploadData; } set { - if ((this._UnifyWanderAboutOpinion != value)) + if ((this._RecordUploadData != value)) { - this.OnUnifyWanderAboutOpinionChanging(value); + this.OnRecordUploadDataChanging(value); this.SendPropertyChanging(); - this._UnifyWanderAboutOpinion = value; - this.SendPropertyChanged("UnifyWanderAboutOpinion"); - this.OnUnifyWanderAboutOpinionChanged(); + this._RecordUploadData = value; + this.SendPropertyChanged("RecordUploadData"); + this.OnRecordUploadDataChanged(); } } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectTime", DbType="DateTime")] - public System.Nullable InspectTime + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SiteImplementConfirmData", DbType="DateTime")] + public System.Nullable SiteImplementConfirmData { get { - return this._InspectTime; + return this._SiteImplementConfirmData; } set { - if ((this._InspectTime != value)) + if ((this._SiteImplementConfirmData != value)) { - this.OnInspectTimeChanging(value); + this.OnSiteImplementConfirmDataChanging(value); this.SendPropertyChanging(); - this._InspectTime = value; - this.SendPropertyChanged("InspectTime"); - this.OnInspectTimeChanged(); + this._SiteImplementConfirmData = value; + this.SendPropertyChanged("SiteImplementConfirmData"); + this.OnSiteImplementConfirmDataChanged(); } } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AddUser", DbType="VarChar(50)")] - public string AddUser + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SiteImplementUser", DbType="NVarChar(50)")] + public string SiteImplementUser { get { - return this._AddUser; + return this._SiteImplementUser; } set { - if ((this._AddUser != value)) + if ((this._SiteImplementUser != value)) { - this.OnAddUserChanging(value); + this.OnSiteImplementUserChanging(value); this.SendPropertyChanging(); - this._AddUser = value; - this.SendPropertyChanged("AddUser"); - this.OnAddUserChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AddTime", DbType="DateTime")] - public System.Nullable AddTime - { - get - { - return this._AddTime; - } - set - { - if ((this._AddTime != value)) - { - this.OnAddTimeChanging(value); - this.SendPropertyChanging(); - this._AddTime = value; - this.SendPropertyChanged("AddTime"); - this.OnAddTimeChanged(); + this._SiteImplementUser = value; + this.SendPropertyChanged("SiteImplementUser"); + this.OnSiteImplementUserChanged(); } } } @@ -276107,22 +276294,6 @@ namespace Model private string _Owner; - private System.Nullable _SubcontractorIsPass; - - private System.Nullable _ContractorIsPass; - - private System.Nullable _SupervisionIsPass; - - private System.Nullable _OwnerIsPass; - - private string _SubcontractorRemark; - - private string _ContractorRemark; - - private string _SupervisionRemark; - - private string _OwnerRemark; - private System.Nullable _WorkPackType; private string _PropertyTechnologyId; @@ -276135,6 +276306,22 @@ namespace Model private System.Nullable _Sort; + private string _SubcontractorRemark; + + private string _ContractorRemark; + + private string _SupervisionRemark; + + private string _OwnerRemark; + + private System.Nullable _SubcontractorIsPass; + + private System.Nullable _ContractorIsPass; + + private System.Nullable _SupervisionIsPass; + + private System.Nullable _OwnerIsPass; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -276175,22 +276362,6 @@ namespace Model partial void OnSupervisionChanged(); partial void OnOwnerChanging(string value); partial void OnOwnerChanged(); - partial void OnSubcontractorIsPassChanging(System.Nullable value); - partial void OnSubcontractorIsPassChanged(); - partial void OnContractorIsPassChanging(System.Nullable value); - partial void OnContractorIsPassChanged(); - partial void OnSupervisionIsPassChanging(System.Nullable value); - partial void OnSupervisionIsPassChanged(); - partial void OnOwnerIsPassChanging(System.Nullable value); - partial void OnOwnerIsPassChanged(); - partial void OnSubcontractorRemarkChanging(string value); - partial void OnSubcontractorRemarkChanged(); - partial void OnContractorRemarkChanging(string value); - partial void OnContractorRemarkChanged(); - partial void OnSupervisionRemarkChanging(string value); - partial void OnSupervisionRemarkChanged(); - partial void OnOwnerRemarkChanging(string value); - partial void OnOwnerRemarkChanged(); partial void OnWorkPackTypeChanging(System.Nullable value); partial void OnWorkPackTypeChanged(); partial void OnPropertyTechnologyIdChanging(string value); @@ -276203,6 +276374,22 @@ namespace Model partial void OnAddTimeChanged(); partial void OnSortChanging(System.Nullable value); partial void OnSortChanged(); + partial void OnSubcontractorRemarkChanging(string value); + partial void OnSubcontractorRemarkChanged(); + partial void OnContractorRemarkChanging(string value); + partial void OnContractorRemarkChanged(); + partial void OnSupervisionRemarkChanging(string value); + partial void OnSupervisionRemarkChanged(); + partial void OnOwnerRemarkChanging(string value); + partial void OnOwnerRemarkChanged(); + partial void OnSubcontractorIsPassChanging(System.Nullable value); + partial void OnSubcontractorIsPassChanged(); + partial void OnContractorIsPassChanging(System.Nullable value); + partial void OnContractorIsPassChanged(); + partial void OnSupervisionIsPassChanging(System.Nullable value); + partial void OnSupervisionIsPassChanged(); + partial void OnOwnerIsPassChanging(System.Nullable value); + partial void OnOwnerIsPassChanged(); #endregion public PreRun_SubInspectTermItem() @@ -276570,166 +276757,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubcontractorIsPass", DbType="Int")] - public System.Nullable SubcontractorIsPass - { - get - { - return this._SubcontractorIsPass; - } - set - { - if ((this._SubcontractorIsPass != value)) - { - this.OnSubcontractorIsPassChanging(value); - this.SendPropertyChanging(); - this._SubcontractorIsPass = value; - this.SendPropertyChanged("SubcontractorIsPass"); - this.OnSubcontractorIsPassChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractorIsPass", DbType="Int")] - public System.Nullable ContractorIsPass - { - get - { - return this._ContractorIsPass; - } - set - { - if ((this._ContractorIsPass != value)) - { - this.OnContractorIsPassChanging(value); - this.SendPropertyChanging(); - this._ContractorIsPass = value; - this.SendPropertyChanged("ContractorIsPass"); - this.OnContractorIsPassChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SupervisionIsPass", DbType="Int")] - public System.Nullable SupervisionIsPass - { - get - { - return this._SupervisionIsPass; - } - set - { - if ((this._SupervisionIsPass != value)) - { - this.OnSupervisionIsPassChanging(value); - this.SendPropertyChanging(); - this._SupervisionIsPass = value; - this.SendPropertyChanged("SupervisionIsPass"); - this.OnSupervisionIsPassChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OwnerIsPass", DbType="Int")] - public System.Nullable OwnerIsPass - { - get - { - return this._OwnerIsPass; - } - set - { - if ((this._OwnerIsPass != value)) - { - this.OnOwnerIsPassChanging(value); - this.SendPropertyChanging(); - this._OwnerIsPass = value; - this.SendPropertyChanged("OwnerIsPass"); - this.OnOwnerIsPassChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubcontractorRemark", DbType="VarChar(1000)")] - public string SubcontractorRemark - { - get - { - return this._SubcontractorRemark; - } - set - { - if ((this._SubcontractorRemark != value)) - { - this.OnSubcontractorRemarkChanging(value); - this.SendPropertyChanging(); - this._SubcontractorRemark = value; - this.SendPropertyChanged("SubcontractorRemark"); - this.OnSubcontractorRemarkChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractorRemark", DbType="VarChar(1000)")] - public string ContractorRemark - { - get - { - return this._ContractorRemark; - } - set - { - if ((this._ContractorRemark != value)) - { - this.OnContractorRemarkChanging(value); - this.SendPropertyChanging(); - this._ContractorRemark = value; - this.SendPropertyChanged("ContractorRemark"); - this.OnContractorRemarkChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SupervisionRemark", DbType="VarChar(1000)")] - public string SupervisionRemark - { - get - { - return this._SupervisionRemark; - } - set - { - if ((this._SupervisionRemark != value)) - { - this.OnSupervisionRemarkChanging(value); - this.SendPropertyChanging(); - this._SupervisionRemark = value; - this.SendPropertyChanged("SupervisionRemark"); - this.OnSupervisionRemarkChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OwnerRemark", DbType="VarChar(1000)")] - public string OwnerRemark - { - get - { - return this._OwnerRemark; - } - set - { - if ((this._OwnerRemark != value)) - { - this.OnOwnerRemarkChanging(value); - this.SendPropertyChanging(); - this._OwnerRemark = value; - this.SendPropertyChanged("OwnerRemark"); - this.OnOwnerRemarkChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackType", DbType="Int")] public System.Nullable WorkPackType { @@ -276750,7 +276777,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyTechnologyId", DbType="VarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertyTechnologyId", DbType="VarChar(50)")] public string PropertyTechnologyId { get @@ -276850,6 +276877,166 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubcontractorRemark", DbType="VarChar(1000)")] + public string SubcontractorRemark + { + get + { + return this._SubcontractorRemark; + } + set + { + if ((this._SubcontractorRemark != value)) + { + this.OnSubcontractorRemarkChanging(value); + this.SendPropertyChanging(); + this._SubcontractorRemark = value; + this.SendPropertyChanged("SubcontractorRemark"); + this.OnSubcontractorRemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractorRemark", DbType="VarChar(1000)")] + public string ContractorRemark + { + get + { + return this._ContractorRemark; + } + set + { + if ((this._ContractorRemark != value)) + { + this.OnContractorRemarkChanging(value); + this.SendPropertyChanging(); + this._ContractorRemark = value; + this.SendPropertyChanged("ContractorRemark"); + this.OnContractorRemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SupervisionRemark", DbType="VarChar(1000)")] + public string SupervisionRemark + { + get + { + return this._SupervisionRemark; + } + set + { + if ((this._SupervisionRemark != value)) + { + this.OnSupervisionRemarkChanging(value); + this.SendPropertyChanging(); + this._SupervisionRemark = value; + this.SendPropertyChanged("SupervisionRemark"); + this.OnSupervisionRemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OwnerRemark", DbType="VarChar(1000)")] + public string OwnerRemark + { + get + { + return this._OwnerRemark; + } + set + { + if ((this._OwnerRemark != value)) + { + this.OnOwnerRemarkChanging(value); + this.SendPropertyChanging(); + this._OwnerRemark = value; + this.SendPropertyChanged("OwnerRemark"); + this.OnOwnerRemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubcontractorIsPass", DbType="Int")] + public System.Nullable SubcontractorIsPass + { + get + { + return this._SubcontractorIsPass; + } + set + { + if ((this._SubcontractorIsPass != value)) + { + this.OnSubcontractorIsPassChanging(value); + this.SendPropertyChanging(); + this._SubcontractorIsPass = value; + this.SendPropertyChanged("SubcontractorIsPass"); + this.OnSubcontractorIsPassChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractorIsPass", DbType="Int")] + public System.Nullable ContractorIsPass + { + get + { + return this._ContractorIsPass; + } + set + { + if ((this._ContractorIsPass != value)) + { + this.OnContractorIsPassChanging(value); + this.SendPropertyChanging(); + this._ContractorIsPass = value; + this.SendPropertyChanged("ContractorIsPass"); + this.OnContractorIsPassChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SupervisionIsPass", DbType="Int")] + public System.Nullable SupervisionIsPass + { + get + { + return this._SupervisionIsPass; + } + set + { + if ((this._SupervisionIsPass != value)) + { + this.OnSupervisionIsPassChanging(value); + this.SendPropertyChanging(); + this._SupervisionIsPass = value; + this.SendPropertyChanged("SupervisionIsPass"); + this.OnSupervisionIsPassChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OwnerIsPass", DbType="Int")] + public System.Nullable OwnerIsPass + { + get + { + return this._OwnerIsPass; + } + set + { + if ((this._OwnerIsPass != value)) + { + this.OnOwnerIsPassChanging(value); + this.SendPropertyChanging(); + this._OwnerIsPass = value; + this.SendPropertyChanged("OwnerIsPass"); + this.OnOwnerIsPassChanged(); + } + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -277851,8 +278038,6 @@ namespace Model private string _RestrictCondition; - private System.Nullable _ResponsibilityProposeSatate; - private System.Nullable _ResponsibilityConfirm; private System.Nullable _ProposeConfirm; @@ -277863,11 +278048,9 @@ namespace Model private System.Nullable _OwnerConfirm; - private System.Nullable _ProposeConfirmData; - private System.Nullable _ResponsibilityConfirmData; - private System.Nullable _ProposeHandleData; + private System.Nullable _ProposeConfirmData; private System.Nullable _GeneraConfirmData; @@ -277883,6 +278066,10 @@ namespace Model private System.Nullable _Sort; + private System.Nullable _ResponsibilityProposeSatate; + + private System.Nullable _ProposeHandleData; + private string _FourDecisionCode; #region 可扩展性方法定义 @@ -277919,8 +278106,6 @@ namespace Model partial void OnRealityDestructionTimeChanged(); partial void OnRestrictConditionChanging(string value); partial void OnRestrictConditionChanged(); - partial void OnResponsibilityProposeSatateChanging(System.Nullable value); - partial void OnResponsibilityProposeSatateChanged(); partial void OnResponsibilityConfirmChanging(System.Nullable value); partial void OnResponsibilityConfirmChanged(); partial void OnProposeConfirmChanging(System.Nullable value); @@ -277931,12 +278116,10 @@ namespace Model partial void OnSupervisionConfirmChanged(); partial void OnOwnerConfirmChanging(System.Nullable value); partial void OnOwnerConfirmChanged(); - partial void OnProposeConfirmDataChanging(System.Nullable value); - partial void OnProposeConfirmDataChanged(); partial void OnResponsibilityConfirmDataChanging(System.Nullable value); partial void OnResponsibilityConfirmDataChanged(); - partial void OnProposeHandleDataChanging(System.Nullable value); - partial void OnProposeHandleDataChanged(); + partial void OnProposeConfirmDataChanging(System.Nullable value); + partial void OnProposeConfirmDataChanged(); partial void OnGeneraConfirmDataChanging(System.Nullable value); partial void OnGeneraConfirmDataChanged(); partial void OnSupervisionConfirmDataChanging(System.Nullable value); @@ -277951,6 +278134,10 @@ namespace Model partial void OnAddTimeChanged(); partial void OnSortChanging(System.Nullable value); partial void OnSortChanged(); + partial void OnResponsibilityProposeSatateChanging(System.Nullable value); + partial void OnResponsibilityProposeSatateChanged(); + partial void OnProposeHandleDataChanging(System.Nullable value); + partial void OnProposeHandleDataChanged(); partial void OnFourDecisionCodeChanging(string value); partial void OnFourDecisionCodeChanged(); #endregion @@ -278260,26 +278447,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResponsibilityProposeSatate", DbType="Int")] - public System.Nullable ResponsibilityProposeSatate - { - get - { - return this._ResponsibilityProposeSatate; - } - set - { - if ((this._ResponsibilityProposeSatate != value)) - { - this.OnResponsibilityProposeSatateChanging(value); - this.SendPropertyChanging(); - this._ResponsibilityProposeSatate = value; - this.SendPropertyChanged("ResponsibilityProposeSatate"); - this.OnResponsibilityProposeSatateChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResponsibilityConfirm", DbType="Int")] public System.Nullable ResponsibilityConfirm { @@ -278380,26 +278547,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProposeConfirmData", DbType="DateTime")] - public System.Nullable ProposeConfirmData - { - get - { - return this._ProposeConfirmData; - } - set - { - if ((this._ProposeConfirmData != value)) - { - this.OnProposeConfirmDataChanging(value); - this.SendPropertyChanging(); - this._ProposeConfirmData = value; - this.SendPropertyChanged("ProposeConfirmData"); - this.OnProposeConfirmDataChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResponsibilityConfirmData", DbType="DateTime")] public System.Nullable ResponsibilityConfirmData { @@ -278420,22 +278567,22 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProposeHandleData", DbType="DateTime")] - public System.Nullable ProposeHandleData + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProposeConfirmData", DbType="DateTime")] + public System.Nullable ProposeConfirmData { get { - return this._ProposeHandleData; + return this._ProposeConfirmData; } set { - if ((this._ProposeHandleData != value)) + if ((this._ProposeConfirmData != value)) { - this.OnProposeHandleDataChanging(value); + this.OnProposeConfirmDataChanging(value); this.SendPropertyChanging(); - this._ProposeHandleData = value; - this.SendPropertyChanged("ProposeHandleData"); - this.OnProposeHandleDataChanged(); + this._ProposeConfirmData = value; + this.SendPropertyChanged("ProposeConfirmData"); + this.OnProposeConfirmDataChanged(); } } } @@ -278580,6 +278727,46 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResponsibilityProposeSatate", DbType="Int")] + public System.Nullable ResponsibilityProposeSatate + { + get + { + return this._ResponsibilityProposeSatate; + } + set + { + if ((this._ResponsibilityProposeSatate != value)) + { + this.OnResponsibilityProposeSatateChanging(value); + this.SendPropertyChanging(); + this._ResponsibilityProposeSatate = value; + this.SendPropertyChanged("ResponsibilityProposeSatate"); + this.OnResponsibilityProposeSatateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProposeHandleData", DbType="DateTime")] + public System.Nullable ProposeHandleData + { + get + { + return this._ProposeHandleData; + } + set + { + if ((this._ProposeHandleData != value)) + { + this.OnProposeHandleDataChanging(value); + this.SendPropertyChanging(); + this._ProposeHandleData = value; + this.SendPropertyChanged("ProposeHandleData"); + this.OnProposeHandleDataChanged(); + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FourDecisionCode", DbType="VarChar(20)")] public string FourDecisionCode { @@ -279292,7 +279479,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="VarChar(MAX)", UpdateCheck=UpdateCheck.Never)] public string Remark { get @@ -314177,6 +314364,164 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Report_CQMS_ProblemHandle")] + public partial class Report_CQMS_ProblemHandle : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _ReportId; + + private string _ReType; + + private string _UnitName; + + private string _ProblemDes; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnReportIdChanging(string value); + partial void OnReportIdChanged(); + partial void OnReTypeChanging(string value); + partial void OnReTypeChanged(); + partial void OnUnitNameChanging(string value); + partial void OnUnitNameChanged(); + partial void OnProblemDesChanging(string value); + partial void OnProblemDesChanged(); + #endregion + + public Report_CQMS_ProblemHandle() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportId", DbType="NVarChar(50)")] + public string ReportId + { + get + { + return this._ReportId; + } + set + { + if ((this._ReportId != value)) + { + this.OnReportIdChanging(value); + this.SendPropertyChanging(); + this._ReportId = value; + this.SendPropertyChanged("ReportId"); + this.OnReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReType", DbType="NChar(20)")] + public string ReType + { + get + { + return this._ReType; + } + set + { + if ((this._ReType != value)) + { + this.OnReTypeChanging(value); + this.SendPropertyChanging(); + this._ReType = value; + this.SendPropertyChanged("ReType"); + this.OnReTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(100)")] + public string UnitName + { + get + { + return this._UnitName; + } + set + { + if ((this._UnitName != value)) + { + this.OnUnitNameChanging(value); + this.SendPropertyChanging(); + this._UnitName = value; + this.SendPropertyChanged("UnitName"); + this.OnUnitNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProblemDes", DbType="NVarChar(100)")] + public string ProblemDes + { + get + { + return this._ProblemDes; + } + set + { + if ((this._ProblemDes != value)) + { + this.OnProblemDesChanging(value); + this.SendPropertyChanging(); + this._ProblemDes = value; + this.SendPropertyChanged("ProblemDes"); + this.OnProblemDesChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Report_CqmsTarget")] public partial class Report_CqmsTarget : INotifyPropertyChanging, INotifyPropertyChanged { @@ -315465,6 +315810,8 @@ namespace Model private string _CreateMan; + private string _ReportType; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -315483,6 +315830,8 @@ namespace Model partial void OnCreateDateChanged(); partial void OnCreateManChanging(string value); partial void OnCreateManChanged(); + partial void OnReportTypeChanging(string value); + partial void OnReportTypeChanged(); #endregion public Report_WeekAndMonthReport_New() @@ -315630,6 +315979,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportType", DbType="NVarChar(10)")] + public string ReportType + { + get + { + return this._ReportType; + } + set + { + if ((this._ReportType != value)) + { + this.OnReportTypeChanging(value); + this.SendPropertyChanging(); + this._ReportType = value; + this.SendPropertyChanged("ReportType"); + this.OnReportTypeChanged(); + } + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -350600,8 +350969,6 @@ namespace Model private EntitySet _Doc_DocManage; - private EntitySet _Doc_DocManageApprove; - private EntitySet _Driver_DriverProgress; private EntitySet _Driver_DriverReport; @@ -351317,7 +351684,6 @@ namespace Model this._DataBase_File = new EntitySet(new Action(this.attach_DataBase_File), new Action(this.detach_DataBase_File)); this._DataBase_StartWorkReport = new EntitySet(new Action(this.attach_DataBase_StartWorkReport), new Action(this.detach_DataBase_StartWorkReport)); this._Doc_DocManage = new EntitySet(new Action(this.attach_Doc_DocManage), new Action(this.detach_Doc_DocManage)); - this._Doc_DocManageApprove = new EntitySet(new Action(this.attach_Doc_DocManageApprove), new Action(this.detach_Doc_DocManageApprove)); this._Driver_DriverProgress = new EntitySet(new Action(this.attach_Driver_DriverProgress), new Action(this.detach_Driver_DriverProgress)); this._Driver_DriverReport = new EntitySet(new Action(this.attach_Driver_DriverReport), new Action(this.detach_Driver_DriverReport)); this._Driver_DriverScheme = new EntitySet(new Action(this.attach_Driver_DriverScheme), new Action(this.detach_Driver_DriverScheme)); @@ -353722,19 +354088,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManageApprove_Sys_User", Storage="_Doc_DocManageApprove", ThisKey="UserId", OtherKey="ApproveMan", DeleteRule="NO ACTION")] - public EntitySet Doc_DocManageApprove - { - get - { - return this._Doc_DocManageApprove; - } - set - { - this._Doc_DocManageApprove.Assign(value); - } - } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Driver_DriverProgress_Sys_User", Storage="_Driver_DriverProgress", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] public EntitySet Driver_DriverProgress { @@ -358239,18 +358592,6 @@ namespace Model entity.Sys_User = null; } - private void attach_Doc_DocManageApprove(Doc_DocManageApprove entity) - { - this.SendPropertyChanging(); - entity.Sys_User = this; - } - - private void detach_Doc_DocManageApprove(Doc_DocManageApprove entity) - { - this.SendPropertyChanging(); - entity.Sys_User = null; - } - private void attach_Driver_DriverProgress(Driver_DriverProgress entity) { this.SendPropertyChanging();