diff --git a/DataBase/版本日志/SGGLDB_WH_2024-04-18-bwj.sql b/DataBase/版本日志/SGGLDB_WH_2024-04-18-bwj.sql
new file mode 100644
index 00000000..778001ef
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_WH_2024-04-18-bwj.sql
@@ -0,0 +1,3 @@
+
+alter table Comprehensive_SpecialEquipment add PositionNum nvarchar(50)
+go
\ No newline at end of file
diff --git a/DataBase/版本日志/SGGLDB_WH_2024-04-18-phf.sql b/DataBase/版本日志/SGGLDB_WH_2024-04-18-phf.sql
new file mode 100644
index 00000000..4b66579e
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_WH_2024-04-18-phf.sql
@@ -0,0 +1,2 @@
+update Comprehensive_DesignChangeOrder set ImplementationFrontState='' where ImplementationFrontState like'%%';
+update Comprehensive_DesignChangeOrder set ImplementationFrontState='ʵʩ' where ImplementationFrontState !='';
diff --git a/SGGL/BLL/CQMS/Check/JointCheckService.cs b/SGGL/BLL/CQMS/Check/JointCheckService.cs
index 7e6a43ec..bdd02f6d 100644
--- a/SGGL/BLL/CQMS/Check/JointCheckService.cs
+++ b/SGGL/BLL/CQMS/Check/JointCheckService.cs
@@ -518,5 +518,15 @@ namespace BLL
db.SubmitChanges();
}
}
+
+ ///
+ /// 根据项目Id获取专项检查
+ ///
+ ///
+ ///
+ public static List GetDriverPlanByProjectId(string projectId)
+ {
+ return (from x in Funs.DB.Check_JointCheck where x.ProjectId == projectId select x).ToList();
+ }
}
}
diff --git a/SGGL/BLL/CQMS/Comprehensive/SpecialEquipmentService.cs b/SGGL/BLL/CQMS/Comprehensive/SpecialEquipmentService.cs
index 6d0f4537..a3f7f589 100644
--- a/SGGL/BLL/CQMS/Comprehensive/SpecialEquipmentService.cs
+++ b/SGGL/BLL/CQMS/Comprehensive/SpecialEquipmentService.cs
@@ -105,6 +105,7 @@ namespace BLL
newEquipment.MonitoringReportNumber = SpecialEquipment.MonitoringReportNumber;
newEquipment.CompileMan = SpecialEquipment.CompileMan;
newEquipment.Status = SpecialEquipment.Status;
+ newEquipment.PositionNum = SpecialEquipment.PositionNum;
db.Comprehensive_SpecialEquipment.InsertOnSubmit(newEquipment);
db.SubmitChanges();
}
@@ -127,6 +128,7 @@ namespace BLL
newEquipment.SubmitDataNumber = SpecialEquipment.SubmitDataNumber;
newEquipment.MonitoringReportNumber = SpecialEquipment.MonitoringReportNumber;
newEquipment.Status = SpecialEquipment.Status;
+ newEquipment.PositionNum = SpecialEquipment.PositionNum;
db.SubmitChanges();
}
}
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index ff6456f1..841ddca2 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -3250,6 +3250,11 @@ namespace BLL
/// 培训记录导入模板原始虚拟路径
///
public const string CQMS_TrainingRecordsTemplateUrl= "File\\Excel\\DataIn\\培训记录导入模板.xlsx";
+
+ ///
+ /// 质量专项检查模板文件原始虚拟路径
+ ///
+ public const string JointCheckTempUrl = "File\\Excel\\CQMS\\质量专项检查模版.xlsx";
#endregion
#region 绩效考核模板文件路径
diff --git a/SGGL/BLL/ProjectData/UnitWorkService.cs b/SGGL/BLL/ProjectData/UnitWorkService.cs
index e3ef0752..16e48681 100644
--- a/SGGL/BLL/ProjectData/UnitWorkService.cs
+++ b/SGGL/BLL/ProjectData/UnitWorkService.cs
@@ -590,5 +590,24 @@ namespace BLL
}
return name;
}
+
+ public static string GetUnitWorkIdsByUnitWorkNames(string projectId,string unitWorks)
+ {
+ if (!string.IsNullOrEmpty(unitWorks))
+ {
+ string[] ins = unitWorks.Split(',');
+ string unitIds = string.Empty;
+ foreach (string s in ins)
+ {
+ var q = GetUnitWorkByUnitWorkName(projectId, s.Trim()).UnitWorkId;
+ unitIds += q + ",";
+ }
+ return unitIds.Substring(0, unitIds.LastIndexOf(','));
+ }
+ else
+ {
+ return string.Empty;
+ }
+ }
}
}
diff --git a/SGGL/BLL/SysManage/UnitService.cs b/SGGL/BLL/SysManage/UnitService.cs
index 4e193bbb..136f269c 100644
--- a/SGGL/BLL/SysManage/UnitService.cs
+++ b/SGGL/BLL/SysManage/UnitService.cs
@@ -671,10 +671,10 @@ namespace BLL
string unitIds = string.Empty;
foreach (string s in ins)
{
- var q = BLL.UnitService.getUnitByUnitName(s);
- unitIds = unitIds + q.UnitId + ",";
+ var q = getUnitByUnitName(s.Trim());
+ unitIds += q.UnitId + ",";
}
- return unitIds.Substring(0, unitIds.Length - 1);
+ return unitIds.Substring(0, unitIds.LastIndexOf(","));
}
else
{
diff --git a/SGGL/FineUIPro.Web/CQMS/Check/JointCheck.aspx b/SGGL/FineUIPro.Web/CQMS/Check/JointCheck.aspx
index 765c8c30..7a597f11 100644
--- a/SGGL/FineUIPro.Web/CQMS/Check/JointCheck.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/Check/JointCheck.aspx
@@ -75,6 +75,9 @@
+
+
diff --git a/SGGL/FineUIPro.Web/CQMS/Check/JointCheck.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Check/JointCheck.aspx.cs
index 6e3bb4a7..34e2e611 100644
--- a/SGGL/FineUIPro.Web/CQMS/Check/JointCheck.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Check/JointCheck.aspx.cs
@@ -3,6 +3,7 @@ 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;
@@ -401,5 +402,188 @@ namespace FineUIPro.Web.CQMS.Check
txtEndTime.Text = "";
bindata();
}
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ protected void btnOut_Click(object sender, EventArgs e)
+ {
+ string rootPath = Server.MapPath("~/");
+ string initTemplatePath = Const.JointCheckTempUrl;
+ string uploadfilepath = string.Empty;
+ string newUrl = string.Empty;
+ uploadfilepath = rootPath + initTemplatePath;
+ var lists = BLL.JointCheckService.GetDriverPlanByProjectId(this.CurrUser.LoginProjectId);
+ if (lists != null)
+ {
+ newUrl = uploadfilepath.Replace("质量专项检查模版.xlsx", "质量专项检查.xlsx");
+ File.Copy(uploadfilepath, newUrl);
+ // 第一步:读取文件流
+ NPOI.SS.UserModel.IWorkbook workbook;
+ using (FileStream stream = new FileStream(newUrl, FileMode.Open, FileAccess.Read))
+ {
+ workbook = new NPOI.XSSF.UserModel.XSSFWorkbook(stream);
+ }
+ // 创建单元格样式
+ NPOI.SS.UserModel.ICellStyle cellStyle = workbook.CreateCellStyle();
+ cellStyle.BorderTop = NPOI.SS.UserModel.BorderStyle.Thin;
+ cellStyle.BorderRight = NPOI.SS.UserModel.BorderStyle.Thin;
+ cellStyle.BorderBottom = NPOI.SS.UserModel.BorderStyle.Thin;
+ cellStyle.BorderLeft = NPOI.SS.UserModel.BorderStyle.Thin;
+ cellStyle.Alignment = NPOI.SS.UserModel.HorizontalAlignment.Center;
+ cellStyle.VerticalAlignment = NPOI.SS.UserModel.VerticalAlignment.Center;
+ var font = workbook.CreateFont();
+ font.FontHeightInPoints = 11;
+ cellStyle.SetFont(font);
+ NPOI.SS.UserModel.ICellStyle cellStyle0 = workbook.CreateCellStyle();
+ cellStyle0.BorderTop = NPOI.SS.UserModel.BorderStyle.Thin;
+ cellStyle0.BorderRight = NPOI.SS.UserModel.BorderStyle.Thin;
+ cellStyle0.BorderBottom = NPOI.SS.UserModel.BorderStyle.Thin;
+ cellStyle0.BorderLeft = NPOI.SS.UserModel.BorderStyle.Thin;
+ cellStyle0.Alignment = NPOI.SS.UserModel.HorizontalAlignment.Center;
+ cellStyle0.VerticalAlignment = NPOI.SS.UserModel.VerticalAlignment.Center;
+ var font0 = workbook.CreateFont();
+ font0.FontHeightInPoints = 12;
+ font0.IsBold = true;
+ cellStyle0.SetFont(font0);
+ // 第二步:创建新数据行
+ NPOI.SS.UserModel.ISheet sheet = workbook.GetSheetAt(0);
+ NPOI.SS.UserModel.IRow row = sheet.GetRow(0);
+ NPOI.SS.UserModel.ICell cell;
+ int i = 1;
+ foreach (var item in lists)
+ {
+ // 第二步:创建新数据行
+ row = sheet.CreateRow(i);
+ // 添加数据
+ cell = row.CreateCell(0);
+ cell.CellStyle = cellStyle;
+ cell.SetCellValue(i.ToString());//序号
+ cell = row.CreateCell(1);
+ cell.CellStyle = cellStyle;
+ cell.SetCellValue(item.JointCheckCode);
+ cell = row.CreateCell(2);
+ cell.CellStyle = cellStyle;
+ cell.SetCellValue(BLL.UnitService.GetUnitNameByUnitId(item.UnitId));
+ cell = row.CreateCell(3);
+ cell.CellStyle = cellStyle;
+ string checkName = string.Empty;
+ if (item.CheckType == "1")
+ {
+ checkName = "周检查";
+ }
+ else if (item.CheckType == "2")
+ {
+ checkName = "月检查";
+ }
+ else if (item.CheckType == "3")
+ {
+ checkName = "不定期检查";
+ }
+ else if (item.CheckType == "4")
+ {
+ checkName = "专业检查";
+ }
+ cell.SetCellValue(checkName);
+ cell = row.CreateCell(4);
+ cell.CellStyle = cellStyle;
+ cell.SetCellValue(item.CheckName);
+ cell = row.CreateCell(5);
+ cell.CellStyle = cellStyle;
+ cell.SetCellValue(item.CheckDate.HasValue ? string.Format("{0:yyyy-MM-dd}", item.CheckDate) : "");
+ cell = row.CreateCell(6);
+ cell.CellStyle = cellStyle;
+ cell.SetCellValue(BLL.UserService.GetUserNameByUserId(item.CheckMan));
+ cell = row.CreateCell(7);
+ cell.CellStyle = cellStyle;
+ string state = string.Empty;
+ if (item.State.ToString() == BLL.Const.JointCheck_ReCompile)
+ {
+ state = "重新编制";
+ }
+ else if (item.State.ToString() == BLL.Const.JointCheck_Compile)
+ {
+ state = "编制";
+ }
+ else if (item.State.ToString() == BLL.Const.JointCheck_Audit1)
+ {
+ state = "分包专工回复";
+ }
+ else if (item.State.ToString() == BLL.Const.JointCheck_Audit2)
+ {
+ state = "分包负责人审批";
+ }
+ else if (item.State.ToString() == BLL.Const.JointCheck_Audit3)
+ {
+ state = "总包专工回复";
+ }
+ else if (item.State.ToString() == BLL.Const.JointCheck_Audit4)
+ {
+ state = "总包负责人审批";
+ }
+ else if (item.State.ToString() == BLL.Const.JointCheck_Complete)
+ {
+ state = "审批完成";
+ }
+ else if (item.State.ToString() == BLL.Const.JointCheck_Z)
+ {
+ state = "整改中";
+ }
+ else if (item.State.ToString() == BLL.Const.JointCheck_Audit1R)
+ {
+ state = "分包专工重新回复";
+ }
+ cell.SetCellValue(state);
+ cell = row.CreateCell(8);
+ cell.CellStyle = cellStyle;
+ string userNames = string.Empty;
+ List list = BLL.JointCheckApproveService.GetJointCheckApprovesByJointCheckId(item.JointCheckId);
+ foreach (var a in list)
+ {
+ if (a != null)
+ {
+ if (a.ApproveMan != null)
+ {
+ if (!userNames.Contains(BLL.UserService.GetUserByUserId(a.ApproveMan).UserName))
+ {
+ userNames += UserService.GetUserByUserId(a.ApproveMan).UserName + ",";
+ }
+ }
+ }
+ }
+ if (!string.IsNullOrEmpty(userNames))
+ {
+ userNames = userNames.Substring(0, userNames.LastIndexOf(","));
+ }
+ cell.SetCellValue(userNames);
+
+ i++;
+ }
+ // 第三步:写入文件流
+ using (FileStream stream = new FileStream(newUrl, FileMode.Create, FileAccess.Write))
+ {
+ workbook.Write(stream);
+ workbook.Close();
+ }
+ 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);
+ }
+ else
+ {
+ Alert.ShowInTop("当前无记录,无法导出!", MessageBoxIcon.Warning);
+ }
+ }
+ #endregion
}
}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/CQMS/Check/JointCheck.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Check/JointCheck.aspx.designer.cs
index 5ca52c9c..8f7cbdb0 100644
--- a/SGGL/FineUIPro.Web/CQMS/Check/JointCheck.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Check/JointCheck.aspx.designer.cs
@@ -129,6 +129,15 @@ namespace FineUIPro.Web.CQMS.Check {
///
protected global::FineUIPro.Button btnNew;
+ ///
+ /// btnOut 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnOut;
+
///
/// lblPageIndex 控件。
///
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignChangeOrderEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignChangeOrderEdit.aspx
index 70b4acc8..6cdfa08b 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignChangeOrderEdit.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignChangeOrderEdit.aspx
@@ -42,7 +42,12 @@
-
+ <%----%>
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignChangeOrderEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignChangeOrderEdit.aspx.cs
index 26ea6252..eb66fad6 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignChangeOrderEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignChangeOrderEdit.aspx.cs
@@ -75,8 +75,8 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
this.txtCompleteDate.Text = string.Format("{0:yyyy-MM-dd}", designChangeOrder.CompleteDate);
}
- this.txtImplementationFrontState.Text = designChangeOrder.ImplementationFrontState;
-
+ //this.txtImplementationFrontState.Text = designChangeOrder.ImplementationFrontState;
+ this.drpImplementationFrontState.SelectedValue= designChangeOrder.ImplementationFrontState;
var currApprove = DesignChangeOrderApproveService.GetCurrentApprove(designChangeOrder.DesignChangeOrderId);
@@ -192,7 +192,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
designChangeOrder.IssuedDate = Funs.GetNewDateTime(this.txtIssuedDate.Text);
designChangeOrder.ApprovalDate = Funs.GetNewDateTime(this.txtApprovalDate.Text);
designChangeOrder.CompleteDate = Funs.GetNewDateTime(this.txtCompleteDate.Text);
- designChangeOrder.ImplementationFrontState = this.txtImplementationFrontState.Text.Trim();
+ designChangeOrder.ImplementationFrontState = this.drpImplementationFrontState.SelectedValue;
if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
{
designChangeOrder.AuditMan = drpAudit.SelectedValue;
@@ -273,7 +273,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
designChangeOrder.IssuedDate = Funs.GetNewDateTime(this.txtIssuedDate.Text);
designChangeOrder.ApprovalDate = Funs.GetNewDateTime(this.txtApprovalDate.Text);
designChangeOrder.CompleteDate = Funs.GetNewDateTime(this.txtCompleteDate.Text);
- designChangeOrder.ImplementationFrontState = this.txtImplementationFrontState.Text.Trim();
+ designChangeOrder.ImplementationFrontState = this.drpImplementationFrontState.SelectedValue;
if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
{
designChangeOrder.AuditMan = drpAudit.SelectedValue;
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignChangeOrderEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignChangeOrderEdit.aspx.designer.cs
index 0bf36a10..5f560bc1 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignChangeOrderEdit.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignChangeOrderEdit.aspx.designer.cs
@@ -114,13 +114,13 @@ namespace FineUIPro.Web.CQMS.Comprehensive
protected global::FineUIPro.DatePicker txtApprovalDate;
///
- /// txtImplementationFrontState 控件。
+ /// drpImplementationFrontState 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.TextBox txtImplementationFrontState;
+ protected global::FineUIPro.DropDownList drpImplementationFrontState;
///
/// txtCompleteDate 控件。
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDrawingsDataIn.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDrawingsDataIn.aspx.cs
index 5dbff734..10c4bd77 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDrawingsDataIn.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDrawingsDataIn.aspx.cs
@@ -126,7 +126,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
oleDBConn.Close();
oleDBConn.Dispose();
- AddDatasetToSQL(ds.Tables[0], 11);
+ AddDatasetToSQL(ds.Tables[0], 12);
hdCheckResult.Text = "1";
}
catch (Exception exc)
@@ -173,6 +173,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var cns = from x in Funs.DB.Base_CNProfessional select x;
+ var unitWorks = from x in Funs.DB.WBS_UnitWork
+ where x.ProjectId == this.CurrUser.LoginProjectId
+ && x.SuperUnitWork == null
+ select x;
+
for (int i = 0; i < ir; i++)
{
string row0 = pds.Rows[i][0].ToString();
@@ -196,35 +201,23 @@ namespace FineUIPro.Web.CQMS.Comprehensive
}
string row2 = pds.Rows[i][2].ToString();
- if (string.IsNullOrEmpty(row2))
+ if (!string.IsNullOrEmpty(row2))
{
- result += (i + 2).ToString() + "," + "图纸内容" + "," + "此项为必填项!" + "|";
- }
-
- string row4 = pds.Rows[i][4].ToString();
- if (!string.IsNullOrEmpty(row4))
- {
- try
+ string[] reunit = row2.Split(',');
+ foreach (string unitWork in reunit)
{
- Int32 date = Convert.ToInt32(row4.Trim());
- }
- catch (Exception)
- {
- result += (i + 2).ToString() + "," + "页数" + "," + "[" + row4 + "]错误!" + "|";
+ var u = unitWorks.Where(x => x.UnitWorkName == unitWork.Trim()).FirstOrDefault();
+ if (u == null)
+ {
+ result += (i + 2).ToString() + "," + "单位工程名称" + "," + "[" + unitWork.Trim() + "]不存在!" + "|";
+ }
}
}
string row5 = pds.Rows[i][5].ToString();
- if (!string.IsNullOrEmpty(row5))
+ if (string.IsNullOrEmpty(row5))
{
- try
- {
- DateTime date = Convert.ToDateTime(row5.Trim());
- }
- catch (Exception)
- {
- result += (i + 2).ToString() + "," + "接收日期" + "," + "[" + row5 + "]错误!" + "|";
- }
+ result += (i + 2).ToString() + "," + "标识编号" + "," + "此项为必填项!" + "|";
}
string row6 = pds.Rows[i][6].ToString();
@@ -232,38 +225,53 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
try
{
- DateTime date = Convert.ToDateTime(row6.Trim());
+ Int32 date = Convert.ToInt32(row6.Trim());
}
catch (Exception)
{
- result += (i + 2).ToString() + "," + "发送日期" + "," + "[" + row6 + "]错误!" + "|";
+ result += (i + 2).ToString() + "," + "页数" + "," + "[" + row6 + "]错误!" + "|";
}
}
string row7 = pds.Rows[i][7].ToString();
if (!string.IsNullOrEmpty(row7))
{
- string[] reunit = row7.Split(',');
- foreach (string unit in reunit)
+ try
{
- var u = units.Where(x => x.UnitName == unit).FirstOrDefault();
- if (u == null)
- {
- result += (i + 2).ToString() + "," + "接收单位" + "," + "[" + unit + "]不存在!" + "|";
- }
+ DateTime date = Convert.ToDateTime(row7.Trim());
+ }
+ catch (Exception)
+ {
+ result += (i + 2).ToString() + "," + "接收日期" + "," + "[" + row7 + "]错误!" + "|";
}
}
- string row10 = pds.Rows[i][10].ToString();
- if (string.IsNullOrEmpty(row10))
+ string row8 = pds.Rows[i][8].ToString();
+ if (!string.IsNullOrEmpty(row8))
{
- result += (i + 2).ToString() + "," + "标识编号" + "," + "此项为必填项!" + "|";
+ try
+ {
+ DateTime date = Convert.ToDateTime(row8.Trim());
+ }
+ catch (Exception)
+ {
+ result += (i + 2).ToString() + "," + "发送日期" + "," + "[" + row8 + "]错误!" + "|";
+ }
+ }
+
+ string row9 = pds.Rows[i][9].ToString();
+ if (!string.IsNullOrEmpty(row9))
+ {
+ string[] reunit = row9.Split(',');
+ foreach (string unit in reunit)
+ {
+ var u = units.Where(x => x.UnitName == unit.Trim()).FirstOrDefault();
+ if (u == null)
+ {
+ result += (i + 2).ToString() + "," + "接收单位" + "," + "[" + unit.Trim() + "]不存在!" + "|";
+ }
+ }
}
- //}
- //else
- //{
- // result += (i + 2).ToString() + "," + "报验编号" + "," + "该单位报验编号已存在!" + "|";
- //}
}
if (!string.IsNullOrEmpty(result))
{
@@ -369,7 +377,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
oleDBConn.Close();
oleDBConn.Dispose();
- AddDatasetToSQL2(ds.Tables[0], 11);
+ AddDatasetToSQL2(ds.Tables[0], 12);
}
catch (Exception ex)
{
@@ -408,72 +416,84 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var cns = from x in Funs.DB.Base_CNProfessional select x;
+ var unitWorks = from x in Funs.DB.WBS_UnitWork
+ where x.ProjectId == this.CurrUser.LoginProjectId
+ && x.SuperUnitWork == null
+ select x;
+
for (int i = 0; i < ir; i++)
{
Model.Comprehensive_DesignDrawings oldViewInfo = new Model.Comprehensive_DesignDrawings();
string row0 = pds.Rows[i][0].ToString().Trim();
var cn = cns.Where(y => y.ProfessionalName == row0).FirstOrDefault();
- oldViewInfo = oldViewInfos.Where(x => x.RemarkCode == pds.Rows[i][10].ToString().Trim()
+ oldViewInfo = oldViewInfos.Where(x => x.RemarkCode == pds.Rows[i][5].ToString().Trim()
).FirstOrDefault();
if (oldViewInfo == null)
{
Model.Comprehensive_DesignDrawings des = new Model.Comprehensive_DesignDrawings();
des.DesignDrawingsId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DesignDrawings));
des.ProjectId = this.CurrUser.LoginProjectId;
- des.CNProfessionalId = cn.CNProfessionalId;
- des.DesignDrawingsCode = pds.Rows[i][1].ToString().Trim();
- des.DesignDrawingsContent = pds.Rows[i][2].ToString().Trim();
- des.Edition = pds.Rows[i][3].ToString().Trim();
- if (!string.IsNullOrEmpty(pds.Rows[i][4].ToString().Trim()))
+ des.CNProfessionalId = cn.CNProfessionalId;//专业名称
+ des.DesignDrawingsCode = pds.Rows[i][1].ToString().Trim();//图纸编号
+ if (!string.IsNullOrEmpty(pds.Rows[i][2].ToString().Trim()))//单位工程
{
- des.PageNumber = Convert.ToInt32(pds.Rows[i][4].ToString().Trim());
- }
- if (!string.IsNullOrEmpty(pds.Rows[i][5].ToString().Trim()))
- {
- des.ReceiveDate = Convert.ToDateTime(pds.Rows[i][5].ToString().Trim());
+ des.UnitWorkId = BLL.UnitWorkService.GetUnitWorkIdsByUnitWorkNames(this.CurrUser.LoginProjectId, pds.Rows[i][2].ToString().Trim());
}
+ des.DesignDrawingsContent = pds.Rows[i][3].ToString().Trim();//图纸内容
+ des.Edition = pds.Rows[i][4].ToString().Trim();//版次
+ des.RemarkCode = pds.Rows[i][5].ToString().Trim();//标志编号
if (!string.IsNullOrEmpty(pds.Rows[i][6].ToString().Trim()))
{
- des.SendDate = Convert.ToDateTime(pds.Rows[i][6].ToString().Trim());
+ des.PageNumber = Convert.ToInt32(pds.Rows[i][6].ToString().Trim());//页数
}
if (!string.IsNullOrEmpty(pds.Rows[i][7].ToString().Trim()))
{
- des.ReceiveUnits = UnitService.GetUnitIds(pds.Rows[i][7].ToString().Trim());
+ des.ReceiveDate = Convert.ToDateTime(pds.Rows[i][7].ToString().Trim());//接收日期
}
- des.ReceiveMan = pds.Rows[i][8].ToString().Trim();
- des.Remark = pds.Rows[i][9].ToString().Trim();
- des.RemarkCode = pds.Rows[i][10].ToString().Trim();
+ if (!string.IsNullOrEmpty(pds.Rows[i][8].ToString().Trim()))
+ {
+ des.SendDate = Convert.ToDateTime(pds.Rows[i][8].ToString().Trim());//发送日期
+ }
+ if (!string.IsNullOrEmpty(pds.Rows[i][9].ToString().Trim()))
+ {
+ des.ReceiveUnits = UnitService.GetUnitIds(pds.Rows[i][9].ToString().Trim());//接收单位
+ }
+ des.ReceiveMan = pds.Rows[i][10].ToString().Trim(); //接收人
+ des.Remark = pds.Rows[i][11].ToString().Trim();//备注
BLL.DesignDrawingsService.AddDesignDrawings(des);
}
else
{
- oldViewInfo.CNProfessionalId = cn.CNProfessionalId;
- oldViewInfo.DesignDrawingsCode = pds.Rows[i][1].ToString().Trim();
- oldViewInfo.DesignDrawingsContent = pds.Rows[i][2].ToString().Trim();
- oldViewInfo.Edition = pds.Rows[i][3].ToString().Trim();
- if (!string.IsNullOrEmpty(pds.Rows[i][4].ToString().Trim()))
+ oldViewInfo.CNProfessionalId = cn.CNProfessionalId;//专业名称
+ oldViewInfo.DesignDrawingsCode = pds.Rows[i][1].ToString().Trim();//图纸编号
+ if (!string.IsNullOrEmpty(pds.Rows[i][2].ToString().Trim()))//单位工程
{
- oldViewInfo.PageNumber = Convert.ToInt32(pds.Rows[i][4].ToString().Trim());
- }
- if (!string.IsNullOrEmpty(pds.Rows[i][5].ToString().Trim()))
- {
- oldViewInfo.ReceiveDate = Convert.ToDateTime(pds.Rows[i][5].ToString().Trim());
+ oldViewInfo.UnitWorkId = BLL.UnitWorkService.GetUnitWorkIdsByUnitWorkNames(this.CurrUser.LoginProjectId, pds.Rows[i][2].ToString().Trim());
}
+ oldViewInfo.DesignDrawingsContent = pds.Rows[i][3].ToString().Trim();//图纸内容
+ oldViewInfo.Edition = pds.Rows[i][4].ToString().Trim();//版次
+ oldViewInfo.RemarkCode = pds.Rows[i][5].ToString().Trim();//标志编号
if (!string.IsNullOrEmpty(pds.Rows[i][6].ToString().Trim()))
{
- oldViewInfo.SendDate = Convert.ToDateTime(pds.Rows[i][6].ToString().Trim());
+ oldViewInfo.PageNumber = Convert.ToInt32(pds.Rows[i][6].ToString().Trim());//页数
}
if (!string.IsNullOrEmpty(pds.Rows[i][7].ToString().Trim()))
{
- oldViewInfo.ReceiveUnits = Funs.DB.Base_Unit.FirstOrDefault(x => x.UnitName == (pds.Rows[i][7].ToString().Trim())).UnitId;
+ oldViewInfo.ReceiveDate = Convert.ToDateTime(pds.Rows[i][7].ToString().Trim());//接收日期
}
- oldViewInfo.ReceiveMan = pds.Rows[i][8].ToString().Trim();
- oldViewInfo.Remark = pds.Rows[i][9].ToString().Trim();
- oldViewInfo.RemarkCode = pds.Rows[i][10].ToString().Trim();
+ if (!string.IsNullOrEmpty(pds.Rows[i][8].ToString().Trim()))
+ {
+ oldViewInfo.SendDate = Convert.ToDateTime(pds.Rows[i][8].ToString().Trim());//发送日期
+ }
+ if (!string.IsNullOrEmpty(pds.Rows[i][9].ToString().Trim()))
+ {
+ oldViewInfo.ReceiveUnits = UnitService.GetUnitIds(pds.Rows[i][9].ToString().Trim());//接收单位
+ }
+ oldViewInfo.ReceiveMan = pds.Rows[i][10].ToString().Trim(); //接收人
+ oldViewInfo.Remark = pds.Rows[i][11].ToString().Trim();//备注
BLL.DesignDrawingsService.UpdateDesignDrawings(oldViewInfo);
}
}
-
}
else
{
@@ -484,7 +504,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
#endregion
#endregion
-
#region 下载模板
///
/// 下载模板按钮
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionPersonEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionPersonEdit.aspx
index 5e08b175..fa368162 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionPersonEdit.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionPersonEdit.aspx
@@ -27,7 +27,7 @@
-
+
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementDataIn.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementDataIn.aspx.cs
index 292b42e1..3501480b 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementDataIn.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementDataIn.aspx.cs
@@ -126,7 +126,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
oleDBConn.Close();
oleDBConn.Dispose();
- AddDatasetToSQL(ds.Tables[0], 10);
+ AddDatasetToSQL(ds.Tables[0], 13);
hdCheckResult.Text = "1";
}
catch (Exception exc)
@@ -173,6 +173,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var cns = from x in Funs.DB.Base_CNProfessional select x;
+ var unitWorks = from x in Funs.DB.WBS_UnitWork
+ where x.ProjectId == this.CurrUser.LoginProjectId
+ && x.SuperUnitWork == null
+ select x;
+
for (int i = 0; i < ir; i++)
{
string row0 = pds.Rows[i][0].ToString();
@@ -225,40 +230,72 @@ namespace FineUIPro.Web.CQMS.Comprehensive
string row5 = pds.Rows[i][5].ToString();
if (!string.IsNullOrEmpty(row5))
{
- string[] reunit = row5.Split(',');
- foreach (string unit in reunit)
+ if (row5 != "过程监督不到位" && row5 != "质量缺陷" && row5 != "质量管理问题" && row5 != "不按设计要求施工" && row5 != "不按程序施工" && row5 != "成品保护不到位")
{
- var u = units.Where(x => x.UnitName == unit).FirstOrDefault();
- if (u == null)
- {
- result += (i + 2).ToString() + "," + "接收单位" + "," + "[" + unit + "]不存在!" + "|";
- }
+ result += (i + 2).ToString() + "," + "问题类别" + "," + "[" + row5 + "]错误!" + "|";
}
}
string row7 = pds.Rows[i][7].ToString();
if (!string.IsNullOrEmpty(row7))
{
- try
+ string[] reunit = row7.Split(',');
+ foreach (string unitWork in reunit)
{
- DateTime date = Convert.ToDateTime(row7.Trim());
- }
- catch (Exception)
- {
- result += (i + 2).ToString() + "," + "要求封闭日期" + "," + "[" + row7 + "]错误!" + "|";
+ var u = unitWorks.Where(x => x.UnitWorkName == unitWork.Trim()).FirstOrDefault();
+ if (u == null)
+ {
+ result += (i + 2).ToString() + "," + "单位工程名称" + "," + "[" + unitWork.Trim() + "]不存在!" + "|";
+ }
}
}
string row8 = pds.Rows[i][8].ToString();
if (!string.IsNullOrEmpty(row8))
+ {
+ string[] reunit = row8.Split(',');
+ foreach (string unit in reunit)
+ {
+ var u = units.Where(x => x.UnitName == unit.Trim()).FirstOrDefault();
+ if (u == null)
+ {
+ result += (i + 2).ToString() + "," + "接收单位" + "," + "[" + unit.Trim() + "]不存在!" + "|";
+ }
+ }
+ }
+
+ string row9 = pds.Rows[i][9].ToString().Trim();
+ if (!string.IsNullOrEmpty(row9))
+ {
+ if (row9 != "整改中" && row9 != "已闭合")
+ {
+ result += (i + 2).ToString() + "," + "实施状态" + "," + "[" + row9 + "]错误!" + "|";
+ }
+ }
+
+ string row11 = pds.Rows[i][11].ToString();
+ if (!string.IsNullOrEmpty(row11))
{
try
{
- DateTime date = Convert.ToDateTime(row8.Trim());
+ DateTime date = Convert.ToDateTime(row11.Trim());
}
catch (Exception)
{
- result += (i + 2).ToString() + "," + "完成日期" + "," + "[" + row8 + "]错误!" + "|";
+ result += (i + 2).ToString() + "," + "要求封闭日期" + "," + "[" + row11 + "]错误!" + "|";
+ }
+ }
+
+ string row12 = pds.Rows[i][12].ToString();
+ if (!string.IsNullOrEmpty(row12))
+ {
+ try
+ {
+ DateTime date = Convert.ToDateTime(row12.Trim());
+ }
+ catch (Exception)
+ {
+ result += (i + 2).ToString() + "," + "完成日期" + "," + "[" + row12 + "]错误!" + "|";
}
}
}
@@ -366,7 +403,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
oleDBConn.Close();
oleDBConn.Dispose();
- AddDatasetToSQL2(ds.Tables[0], 10);
+ AddDatasetToSQL2(ds.Tables[0], 13);
}
catch (Exception ex)
{
@@ -405,6 +442,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var cns = from x in Funs.DB.Base_CNProfessional select x;
+ var unitWorks = from x in Funs.DB.WBS_UnitWork
+ where x.ProjectId == this.CurrUser.LoginProjectId
+ && x.SuperUnitWork == null
+ select x;
+
for (int i = 0; i < ir; i++)
{
Model.Comprehensive_NCRManagement oldViewInfo = new Model.Comprehensive_NCRManagement();
@@ -426,20 +468,27 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
des.IssuedDate = Convert.ToDateTime(pds.Rows[i][4].ToString().Trim());
}
- if (!string.IsNullOrEmpty(pds.Rows[i][5].ToString().Trim()))
- {
- des.ReceiveUnit = BLL.UnitService.GetUnitIds(pds.Rows[i][5].ToString().Trim());
- }
- des.ImplementationFrontState = pds.Rows[i][6].ToString().Trim();
+ des.Problem = pds.Rows[i][5].ToString().Trim();
+ des.Measure = pds.Rows[i][6].ToString().Trim();
if (!string.IsNullOrEmpty(pds.Rows[i][7].ToString().Trim()))
{
- des.ClosedDate = Convert.ToDateTime(pds.Rows[i][7].ToString().Trim());
+ des.UnitWorkId = BLL.UnitWorkService.GetUnitWorkIdsByUnitWorkNames(this.CurrUser.LoginProjectId, pds.Rows[i][7].ToString().Trim());
}
if (!string.IsNullOrEmpty(pds.Rows[i][8].ToString().Trim()))
{
- des.CompleteDate = Convert.ToDateTime(pds.Rows[i][8].ToString().Trim());
+ des.ReceiveUnit = BLL.UnitService.GetUnitIds(pds.Rows[i][8].ToString().Trim());
+ }
+
+ des.ImplementationFrontState = pds.Rows[i][9].ToString().Trim();
+ des.ResponsibleMan = pds.Rows[i][10].ToString().Trim();
+ if (!string.IsNullOrEmpty(pds.Rows[i][11].ToString().Trim()))
+ {
+ des.ClosedDate = Convert.ToDateTime(pds.Rows[i][11].ToString().Trim());
+ }
+ if (!string.IsNullOrEmpty(pds.Rows[i][12].ToString().Trim()))
+ {
+ des.CompleteDate = Convert.ToDateTime(pds.Rows[i][12].ToString().Trim());
}
- des.ResponsibleMan = pds.Rows[i][9].ToString().Trim();
BLL.NCRManagementService.AddNCRManagement(des);
}
}
@@ -454,7 +503,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
#endregion
#endregion
-
#region 下载模板
///
/// 下载模板按钮
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx
index 653c6db2..bd1f658c 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx
@@ -35,7 +35,7 @@
-
+
@@ -88,7 +88,7 @@
-
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.cs
index 0b4321f5..3ffaff70 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.cs
@@ -275,12 +275,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
nCRManagement.NCRManagementId = SQLHelper.GetNewID(typeof(Model.Comprehensive_NCRManagement));
this.hdAttachUrl.Text = nCRManagement.NCRManagementId;
}
- var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == nCRManagement.NCRManagementId);
- if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
- {
- Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
- return;
- }
+ //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == nCRManagement.NCRManagementId);
+ //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
+ //{
+ // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
+ // return;
+ //}
nCRManagement.CompileMan = this.CurrUser.UserId;
nCRManagement.Status = BLL.Const.Comprehensive_Compile;
BLL.NCRManagementService.AddNCRManagement(nCRManagement);
@@ -288,12 +288,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
else
{
nCRManagement.NCRManagementId = this.NCRManagementId;
- var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.NCRManagementId);
- if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
- {
- Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
- return;
- }
+ //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.NCRManagementId);
+ //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
+ //{
+ // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
+ // return;
+ //}
var model = Funs.DB.Comprehensive_NCRManagement.Where(u => u.NCRManagementId == this.NCRManagementId).FirstOrDefault();
if (model != null)
{
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipment.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipment.aspx
index a08d66b8..5c5f0f85 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipment.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipment.aspx
@@ -48,6 +48,9 @@
+
+
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipment.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipment.aspx.cs
index 81356dcf..03e0f526 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipment.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipment.aspx.cs
@@ -32,7 +32,7 @@ namespace FineUIPro.Web.Comprehensive
public void BindGrid()
{
string strSql = @"select C.SpecialEquipmentId, ProjectId,C.EquipmentId, SunNumber, Status,
- InformNumber, SubmitDataNumber, MonitoringReportNumber, CompileMan,U.UnitName,eq.SpecialEquipmentName
+ InformNumber, SubmitDataNumber, MonitoringReportNumber, CompileMan,U.UnitName,eq.SpecialEquipmentName,PositionNum
from Comprehensive_SpecialEquipment C
left join Base_Unit U on C.UnitId=U.UnitId
left join Base_SpecialEquipment eq on eq.SpecialEquipmentId = C.EquipmentId
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx
index 115203ae..318daf38 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx
@@ -33,6 +33,7 @@
+
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.CQMS.Comprehensive
-{
-
-
- public partial class SpecialEquipmentEdit
- {
-
+namespace FineUIPro.Web.CQMS.Comprehensive {
+
+
+ public partial class SpecialEquipmentEdit {
+
///
/// form1 控件。
///
@@ -22,7 +20,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -31,7 +29,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// SimpleForm1 控件。
///
@@ -40,7 +38,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form SimpleForm1;
-
+
///
/// drpUnit 控件。
///
@@ -49,7 +47,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpUnit;
-
+
///
/// drpEquipmentId 控件。
///
@@ -58,7 +56,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpEquipmentId;
-
+
///
/// txtSunNumber 控件。
///
@@ -67,7 +65,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.NumberBox txtSunNumber;
-
+
///
/// txtInformNumber 控件。
///
@@ -76,7 +74,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.NumberBox txtInformNumber;
-
+
///
/// txtSubmitDataNumber 控件。
///
@@ -85,7 +83,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.NumberBox txtSubmitDataNumber;
-
+
///
/// txtMonitoringReportNumber 控件。
///
@@ -94,7 +92,16 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.NumberBox txtMonitoringReportNumber;
-
+
+ ///
+ /// txtPositionNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPositionNum;
+
///
/// Panel2 控件。
///
@@ -103,7 +110,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel2;
-
+
///
/// Label1 控件。
///
@@ -112,7 +119,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label Label1;
-
+
///
/// btnAttach 控件。
///
@@ -121,7 +128,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnAttach;
-
+
///
/// drpAudit 控件。
///
@@ -130,7 +137,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpAudit;
-
+
///
/// txtReportTime 控件。
///
@@ -139,7 +146,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DatePicker txtReportTime;
-
+
///
/// agree 控件。
///
@@ -148,7 +155,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.FormRow agree;
-
+
///
/// rblIsAgree 控件。
///
@@ -157,7 +164,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.RadioButtonList rblIsAgree;
-
+
///
/// options 控件。
///
@@ -166,7 +173,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.FormRow options;
-
+
///
/// txtidea 控件。
///
@@ -175,7 +182,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextArea txtidea;
-
+
///
/// Toolbar1 控件。
///
@@ -184,7 +191,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar1;
-
+
///
/// hdAttachUrl 控件。
///
@@ -193,7 +200,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.HiddenField hdAttachUrl;
-
+
///
/// btnSave 控件。
///
@@ -202,7 +209,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSave;
-
+
///
/// btnSubmit 控件。
///
@@ -211,7 +218,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSubmit;
-
+
///
/// WindowAtt 控件。
///
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReport.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReport.aspx.cs
index 5bae9b6e..b8506108 100644
--- a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReport.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReport.aspx.cs
@@ -684,8 +684,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
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.Status == "3").ToString(); //当期完成数
- checkStatisc.TotalOneOKRate = totalManagementList.Count(x => x.Status == "3").ToString(); //累计完成数
+ checkStatisc.OneOKRate = managementList.Count(x => x.ImplementationFrontState == "已完成").ToString(); //当期完成数
+ checkStatisc.TotalOneOKRate = totalManagementList.Count(x => x.ImplementationFrontState == "已完成").ToString(); //累计完成数
StatisticsList.Add(checkStatisc);
Quantity1Sum += checkStatisc.CheckNum;
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs
index 7f406d21..438065e8 100644
--- a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs
@@ -830,8 +830,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
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.Status == "3").ToString(); //当期完成数
- checkStatisc.TotalOneOKRate = totalManagementList.Count(x => x.Status == "3").ToString(); //累计完成数
+ checkStatisc.OneOKRate = managementList.Count(x => x.ImplementationFrontState == "已完成").ToString(); //当期完成数
+ checkStatisc.TotalOneOKRate = totalManagementList.Count(x => x.ImplementationFrontState == "已完成").ToString(); //累计完成数
StatisticsList.Add(checkStatisc);
Quantity1Sum += checkStatisc.CheckNum;
diff --git a/SGGL/FineUIPro.Web/DataShow/GJSX.aspx b/SGGL/FineUIPro.Web/DataShow/GJSX.aspx
new file mode 100644
index 00000000..f2e79433
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/GJSX.aspx
@@ -0,0 +1,116 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GJSX.aspx.cs" Inherits="FineUIPro.Web.DataShow.GJSX" %>
+
+
+
+
+
+
+
+
+ 关键事项数据
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.cs b/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.cs
new file mode 100644
index 00000000..6cb52bff
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.cs
@@ -0,0 +1,234 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class GJSX : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ this.Panel1.Title = "关键事项数据(" + BLL.UnitService.GetUnitNameByUnitId(BLL.Const.UnitId_CWCEC) + ")";
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 ";
+ List listStr = new List();
+ string cpara = string.Empty;
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND projectId = @projectId"; ///状态为已完成
+ listStr.Add(new SqlParameter("@projectId", this.drpProject.SelectedValue));
+ }
+
+ //if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ //{
+ // strSql += " AND h.RegisterDate >=@StartTime";
+ // listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+
+ // cpara += " AND c.RegisterDate >=" + this.txtStartTime.Text;
+ //}
+ //if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ //{
+ // strSql += " AND h.RegisterDate <=@EndTime";
+ // listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text));
+
+ // cpara += " AND c.RegisterDate <=" + this.txtEndTime.Text;
+ //}
+
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+ Grid1.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(Grid1, tb);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+ #endregion
+
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 表排序、分页、关闭窗口
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 分页显示条数下拉框
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+
+ ///
+ /// 关闭弹出窗
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ BindGrid();
+ }
+ #endregion
+
+ #region Grid双击事件 编辑
+ ///
+ /// Grid行双击事件
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ EditData();
+ }
+
+
+ ///
+ ///
+ ///
+ private void EditData()
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("GJSXItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ #endregion
+
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+
+ ///
+ /// 数量
+ ///
+ ///
+ ///
+ protected int Count1(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var getT = Funs.DB.GJSX.Where(x => x.ProjectId == projectId.ToString());
+ if (datetime1.HasValue)
+ {
+ getT = getT.Where(x => x.CreateDate >= datetime1);
+ }
+ if (datetime2.HasValue)
+ {
+ getT = getT.Where(x => x.CreateDate <= datetime2);
+ }
+
+ cout1 = getT.Count();
+ }
+ return cout1;
+ }
+
+ protected int Count2(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var getT = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString() && x.IsOnceQualified == true);
+ if (datetime1.HasValue)
+ {
+ getT = getT.Where(x => x.InspectionDate >= datetime1);
+ }
+ if (datetime2.HasValue)
+ {
+ getT = getT.Where(x => x.InspectionDate <= datetime2);
+ }
+
+ cout1 = getT.Count();
+ }
+ return cout1;
+ }
+
+ protected string Count4(object projectId)
+ {
+ string rate = string.Empty;
+ if (projectId != null)
+ {
+ var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var getALL = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString());
+
+ if (datetime1.HasValue)
+ {
+ getALL = getALL.Where(x => x.CheckDate >= datetime1);
+ }
+ if (datetime2.HasValue)
+ {
+ getALL = getALL.Where(x => x.CheckDate >= datetime1);
+ }
+ var getT = getALL.Where(x => x.ProjectId == projectId.ToString() && x.IsOnceQualified == true);
+ int coutall = getALL.Count();
+ int cout0 = getT.Count();
+ if (coutall > 0)
+ {
+ rate = Math.Round(cout0 * 1.0 / coutall * 100, 2).ToString();
+ }
+ }
+ return rate;
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.designer.cs
new file mode 100644
index 00000000..6624542d
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.designer.cs
@@ -0,0 +1,177 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow {
+
+
+ public partial class GJSX {
+
+ ///
+ /// 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;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// drpProject 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpProject;
+
+ ///
+ /// txtStartTime 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtStartTime;
+
+ ///
+ /// Label3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label3;
+
+ ///
+ /// txtEndTime 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtEndTime;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// Label2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label2;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnView 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnView;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/DataShow/GJSXItem.aspx b/SGGL/FineUIPro.Web/DataShow/GJSXItem.aspx
new file mode 100644
index 00000000..f7c82221
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/GJSXItem.aspx
@@ -0,0 +1,118 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GJSXItem.aspx.cs" Inherits="FineUIPro.Web.DataShow.GJSXItem" %>
+
+
+
+
+
+
+
+
+ 关键事项详细
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/GJSXItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/GJSXItem.aspx.cs
new file mode 100644
index 00000000..6e6d7ba2
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/GJSXItem.aspx.cs
@@ -0,0 +1,132 @@
+using Aspose.Words;
+using BLL;
+using Org.BouncyCastle.Asn1.Ocsp;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.IO;
+using System.Linq;
+using System.Text;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class GJSXItem : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ string projectId = Request.Params["projectId"];
+ this.txtProject.Text = ProjectService.GetProjectNameByProjectId(projectId);
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格t
+ BindGrid();
+ this.Panel1.Title = "关键事项数据(" + BLL.UnitService.GetUnitNameByUnitId(BLL.Const.UnitId_CWCEC) + ")";
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = "";
+ List listStr = new List();
+ listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"]));
+
+ listStr.Add(new SqlParameter("@sql_where", strSql));
+
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunProc("Sp_GJSX_getlist", parameter);
+ Grid1.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(Grid1, tb);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+ #endregion
+
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 表排序、分页、关闭窗口
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 分页显示条数下拉框
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+ #endregion
+
+ ///
+ /// 获取检查人名称
+ ///
+ ///
+ ///
+ protected string ConvertCheckMan(object CarryUnitIds)
+ {
+ var uname = BLL.UserService.getUserNamesUserIds(CarryUnitIds);
+ if (string.IsNullOrEmpty(uname))
+ {
+ uname = CarryUnitIds.ToString();
+ }
+ return uname;
+
+ }
+
+ protected string ConvertProgressDetail(object GJSXID)
+ {
+ string detailStr = string.Empty;
+ if (!string.IsNullOrEmpty(GJSXID.ToString()))
+ {
+ Model.GJSX_detail detail = (from x in Funs.DB.GJSX_detail where x.GJSXID == GJSXID.ToString() && x.Progress_detail != null && x.Progress_detail != "" orderby x.Date descending select x).FirstOrDefault();
+ if (detail != null)
+ {
+ detailStr = detail.Progress_detail;
+ }
+ }
+ return detailStr;
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/GJSXItem.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/GJSXItem.aspx.designer.cs
new file mode 100644
index 00000000..7fd82545
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/GJSXItem.aspx.designer.cs
@@ -0,0 +1,114 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow {
+
+
+ public partial class GJSXItem {
+
+ ///
+ /// 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;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// txtProject 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtProject;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// Label2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label2;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/DataShow/InspectionManagement.aspx b/SGGL/FineUIPro.Web/DataShow/InspectionManagement.aspx
new file mode 100644
index 00000000..e021230d
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/InspectionManagement.aspx
@@ -0,0 +1,126 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InspectionManagement.aspx.cs" Inherits="FineUIPro.Web.DataShow.InspectionManagement" %>
+
+
+
+
+
+
+
+
+ 质量共检数据
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/InspectionManagement.aspx.cs b/SGGL/FineUIPro.Web/DataShow/InspectionManagement.aspx.cs
new file mode 100644
index 00000000..94223888
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/InspectionManagement.aspx.cs
@@ -0,0 +1,234 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class InspectionManagement : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ this.Panel1.Title = "质量共检数据(" + BLL.UnitService.GetUnitNameByUnitId(BLL.Const.UnitId_CWCEC) + ")";
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 ";
+ List listStr = new List();
+ string cpara = string.Empty;
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND projectId = @projectId"; ///状态为已完成
+ listStr.Add(new SqlParameter("@projectId", this.drpProject.SelectedValue));
+ }
+
+ //if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ //{
+ // strSql += " AND h.RegisterDate >=@StartTime";
+ // listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+
+ // cpara += " AND c.RegisterDate >=" + this.txtStartTime.Text;
+ //}
+ //if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ //{
+ // strSql += " AND h.RegisterDate <=@EndTime";
+ // listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text));
+
+ // cpara += " AND c.RegisterDate <=" + this.txtEndTime.Text;
+ //}
+
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+ Grid1.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(Grid1, tb);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+ #endregion
+
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 表排序、分页、关闭窗口
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 分页显示条数下拉框
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+
+ ///
+ /// 关闭弹出窗
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ BindGrid();
+ }
+ #endregion
+
+ #region Grid双击事件 编辑
+ ///
+ /// Grid行双击事件
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ EditData();
+ }
+
+
+ ///
+ ///
+ ///
+ private void EditData()
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InspectionManagementItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ #endregion
+
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+
+ ///
+ /// 数量
+ ///
+ ///
+ ///
+ protected int Count1(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var getT = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString());
+ if (datetime1.HasValue)
+ {
+ getT = getT.Where(x => x.InspectionDate >= datetime1);
+ }
+ if (datetime2.HasValue)
+ {
+ getT = getT.Where(x => x.InspectionDate <= datetime2);
+ }
+
+ cout1 = getT.Count();
+ }
+ return cout1;
+ }
+
+ protected int Count2(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var getT = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString() && x.IsOnceQualified == true);
+ if (datetime1.HasValue)
+ {
+ getT = getT.Where(x => x.InspectionDate >= datetime1);
+ }
+ if (datetime2.HasValue)
+ {
+ getT = getT.Where(x => x.InspectionDate <= datetime2);
+ }
+
+ cout1 = getT.Count();
+ }
+ return cout1;
+ }
+
+ protected string Count4(object projectId)
+ {
+ string rate = string.Empty;
+ if (projectId != null)
+ {
+ var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var getALL = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString());
+
+ if (datetime1.HasValue)
+ {
+ getALL = getALL.Where(x => x.CheckDate >= datetime1);
+ }
+ if (datetime2.HasValue)
+ {
+ getALL = getALL.Where(x => x.CheckDate >= datetime1);
+ }
+ var getT = getALL.Where(x => x.ProjectId == projectId.ToString() && x.IsOnceQualified == true);
+ int coutall = getALL.Count();
+ int cout0 = getT.Count();
+ if (coutall > 0)
+ {
+ rate = Math.Round(cout0 * 1.0 / coutall * 100, 2).ToString();
+ }
+ }
+ return rate;
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/InspectionManagement.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/InspectionManagement.aspx.designer.cs
new file mode 100644
index 00000000..d8bd60a2
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/InspectionManagement.aspx.designer.cs
@@ -0,0 +1,195 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow {
+
+
+ public partial class InspectionManagement {
+
+ ///
+ /// 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;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// drpProject 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpProject;
+
+ ///
+ /// txtStartTime 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtStartTime;
+
+ ///
+ /// Label3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label3;
+
+ ///
+ /// txtEndTime 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtEndTime;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// Label2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label2;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label1;
+
+ ///
+ /// Label5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label5;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnView 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnView;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/DataShow/InspectionManagementItem.aspx b/SGGL/FineUIPro.Web/DataShow/InspectionManagementItem.aspx
new file mode 100644
index 00000000..34b3a5d4
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/InspectionManagementItem.aspx
@@ -0,0 +1,108 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InspectionManagementItem.aspx.cs" Inherits="FineUIPro.Web.DataShow.InspectionManagementItem" %>
+
+
+
+
+
+
+
+
+ 质量共检详细
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/InspectionManagementItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/InspectionManagementItem.aspx.cs
new file mode 100644
index 00000000..d4e89de6
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/InspectionManagementItem.aspx.cs
@@ -0,0 +1,143 @@
+using Aspose.Words;
+using BLL;
+using Org.BouncyCastle.Asn1.Ocsp;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.IO;
+using System.Linq;
+using System.Text;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class InspectionManagementItem : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ string projectId = Request.Params["projectId"];
+ this.txtProject.Text = ProjectService.GetProjectNameByProjectId(projectId);
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格t
+ BindGrid();
+ this.Panel1.Title = "质量共检数据(" + BLL.UnitService.GetUnitNameByUnitId(BLL.Const.UnitId_CWCEC) + ")";
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT distinct P.InspectionId,
+ P.ProjectId,
+ P.UnitId,
+ P.CNProfessionalId,
+ P.UnitWorkId,
+ U.UnitName,
+ C.ProfessionalName,
+ P.NoticeCode,
+ UnitWork.UnitWorkName,
+ DP.DivisionName AS Branch,
+ BP.BreakdownName AS ControlPointType,
+ BP.Class,
+ P.AcceptanceSite,
+ P.AcceptanceCheckMan,
+ (CASE WHEN IsOnceQualified='True' THEN '是' ELSE '否' END)AS IsOnceQualified,
+ P.InspectionCode,
+ P.InspectionDate"
+ + @" FROM ProcessControl_InspectionManagementDetail AS D"
+ + @" LEFT JOIN ProcessControl_InspectionManagement AS P on P.InspectionId=D.InspectionId"
+ + @" LEFT JOIN Base_Unit AS U ON U.UnitId = P.UnitId"
+ + @" LEFT JOIN Base_CNProfessional C ON C.CNProfessionalId = P.CNProfessionalId"
+ + @" LEFT JOIN WBS_UnitWork AS UnitWork ON UnitWork.UnitWorkId = P.UnitWorkId"
+ + @" LEFT JOIN WBS_DivisionProject AS DP ON DP.DivisionProjectId = P.Branch"
+ + @" LEFT JOIN WBS_BreakdownProject AS BP ON BP.BreakdownProjectId = P.ControlPointType"
+ + @" WHERE P.ProjectId=@ProjectId ";
+ List listStr = new List();
+ listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"]));
+
+ strSql += " AND (P.InspectionDate>=@startTime or @startTime='') and (P.InspectionDate<=@endTime or @endTime='') ";
+ listStr.Add(new SqlParameter("@startTime", !string.IsNullOrEmpty(txtStartTime.Text.Trim()) ? txtStartTime.Text.Trim() + " 00:00:00" : ""));
+ listStr.Add(new SqlParameter("@endTime", !string.IsNullOrEmpty(txtEndTime.Text.Trim()) ? txtEndTime.Text.Trim() + " 23:59:59" : ""));
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+ Grid1.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(Grid1, tb);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+ #endregion
+
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 表排序、分页、关闭窗口
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 分页显示条数下拉框
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+ #endregion
+
+ ///
+ /// 获取检查人名称
+ ///
+ ///
+ ///
+ protected string ConvertCheckMan(object CarryUnitIds)
+ {
+ var uname = BLL.UserService.getUserNamesUserIds(CarryUnitIds);
+ if (string.IsNullOrEmpty(uname))
+ {
+ uname = CarryUnitIds.ToString();
+ }
+ return uname;
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/InspectionManagementItem.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/InspectionManagementItem.aspx.designer.cs
new file mode 100644
index 00000000..9a2c6254
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/InspectionManagementItem.aspx.designer.cs
@@ -0,0 +1,159 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow {
+
+
+ public partial class InspectionManagementItem {
+
+ ///
+ /// 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;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// txtProject 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtProject;
+
+ ///
+ /// txtStartTime 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtStartTime;
+
+ ///
+ /// Label3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label3;
+
+ ///
+ /// txtEndTime 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtEndTime;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// lblPageIndex 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lblPageIndex;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label1;
+
+ ///
+ /// lbtnFileUrl 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.LinkButton lbtnFileUrl;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/DataShow/WeldOneOK.aspx b/SGGL/FineUIPro.Web/DataShow/WeldOneOK.aspx
new file mode 100644
index 00000000..33747fec
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/WeldOneOK.aspx
@@ -0,0 +1,145 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WeldOneOK.aspx.cs" Inherits="FineUIPro.Web.DataShow.WeldOneOK" %>
+
+
+
+
+
+
+
+
+ 焊接一次合格率
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/WeldOneOK.aspx.cs b/SGGL/FineUIPro.Web/DataShow/WeldOneOK.aspx.cs
new file mode 100644
index 00000000..48736729
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/WeldOneOK.aspx.cs
@@ -0,0 +1,274 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class WeldOneOK : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ this.Panel1.Title = "焊接一次合格数据(" + BLL.UnitService.GetUnitNameByUnitId(BLL.Const.UnitId_CWCEC) + ")";
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 ";
+ List listStr = new List();
+ string cpara = string.Empty;
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND projectId = @projectId"; ///状态为已完成
+ listStr.Add(new SqlParameter("@projectId", this.drpProject.SelectedValue));
+ }
+
+ //if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ //{
+ // strSql += " AND h.RegisterDate >=@StartTime";
+ // listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+
+ // cpara += " AND c.RegisterDate >=" + this.txtStartTime.Text;
+ //}
+ //if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ //{
+ // strSql += " AND h.RegisterDate <=@EndTime";
+ // listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text));
+
+ // cpara += " AND c.RegisterDate <=" + this.txtEndTime.Text;
+ //}
+
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+ Grid1.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(Grid1, tb);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+ #endregion
+
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 表排序、分页、关闭窗口
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 分页显示条数下拉框
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+
+ ///
+ /// 关闭弹出窗
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ BindGrid();
+ }
+ #endregion
+
+ #region Grid双击事件 编辑
+ ///
+ /// Grid行双击事件
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ EditData();
+ }
+
+
+ ///
+ ///
+ ///
+ private void EditData()
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WeldOneOKItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ #endregion
+
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+
+ ///
+ /// 数量
+ ///
+ ///
+ ///
+ protected int? Count1(object projectId)
+ {
+ int? cout1 = null;
+ if (projectId != null)
+ {
+ var getT = (from x in Funs.DB.ProcessControl_NondestructiveTest_New
+ where x.ProfessionalName == "工艺管道" && x.ProjectId == projectId.ToString()
+ orderby x.CreateDate descending
+ select x).FirstOrDefault();
+ if (getT != null && getT.TotalQuantity != null)
+ {
+ cout1 = getT.TotalQuantity.Value;
+ }
+ }
+ return cout1;
+ }
+
+ protected string Count2(object projectId)
+ {
+ string cout1 = null;
+ if (projectId != null)
+ {
+ var getT = (from x in Funs.DB.ProcessControl_NondestructiveTest_New
+ where x.ProfessionalName == "工艺管道" && x.ProjectId == projectId.ToString()
+ orderby x.CreateDate descending
+ select x).FirstOrDefault();
+ if (getT != null)
+ {
+ cout1 = getT.TotalRate;
+ }
+ }
+ return cout1;
+ }
+
+ ///
+ /// 数量
+ ///
+ ///
+ ///
+ protected int? Count3(object projectId)
+ {
+ int? cout1 = null;
+ if (projectId != null)
+ {
+ var getT = (from x in Funs.DB.ProcessControl_NondestructiveTest_New
+ where x.ProfessionalName == "地管" && x.ProjectId == projectId.ToString()
+ orderby x.CreateDate descending
+ select x).FirstOrDefault();
+ if (getT != null && getT.TotalQuantity != null)
+ {
+ cout1 = getT.TotalQuantity.Value;
+ }
+ }
+ return cout1;
+ }
+
+ protected string Count4(object projectId)
+ {
+ string cout1 = null;
+ if (projectId != null)
+ {
+ var getT = (from x in Funs.DB.ProcessControl_NondestructiveTest_New
+ where x.ProfessionalName == "地管" && x.ProjectId == projectId.ToString()
+ orderby x.CreateDate descending
+ select x).FirstOrDefault();
+ if (getT != null)
+ {
+ cout1 = getT.TotalRate;
+ }
+ }
+ return cout1;
+ }
+
+ ///
+ /// 数量
+ ///
+ ///
+ ///
+ protected int? Count5(object projectId)
+ {
+ int? cout1 = null;
+ if (projectId != null)
+ {
+ var getT = (from x in Funs.DB.ProcessControl_NondestructiveTest_New
+ where x.ProfessionalName == "非标" && x.ProjectId == projectId.ToString()
+ orderby x.CreateDate descending
+ select x).FirstOrDefault();
+ if (getT != null && getT.TotalQuantity != null)
+ {
+ cout1 = getT.TotalQuantity.Value;
+ }
+ }
+ return cout1;
+ }
+
+ protected string Count6(object projectId)
+ {
+ string cout1 = null;
+ if (projectId != null)
+ {
+ var getT = (from x in Funs.DB.ProcessControl_NondestructiveTest_New
+ where x.ProfessionalName == "非标" && x.ProjectId == projectId.ToString()
+ orderby x.CreateDate descending
+ select x).FirstOrDefault();
+ if (getT != null)
+ {
+ cout1 = getT.TotalRate;
+ }
+ }
+ return cout1;
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/WeldOneOK.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/WeldOneOK.aspx.designer.cs
new file mode 100644
index 00000000..83484e97
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/WeldOneOK.aspx.designer.cs
@@ -0,0 +1,195 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow {
+
+
+ public partial class WeldOneOK {
+
+ ///
+ /// 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;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// drpProject 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpProject;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// Label2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label2;
+
+ ///
+ /// Label5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label5;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label1;
+
+ ///
+ /// Label3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label3;
+
+ ///
+ /// Label4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label4;
+
+ ///
+ /// Label6 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label6;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnView 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnView;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/DataShow/WeldOneOKItem.aspx b/SGGL/FineUIPro.Web/DataShow/WeldOneOKItem.aspx
new file mode 100644
index 00000000..e3f3b440
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/WeldOneOKItem.aspx
@@ -0,0 +1,101 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WeldOneOKItem.aspx.cs" Inherits="FineUIPro.Web.DataShow.WeldOneOKItem" %>
+
+
+
+
+
+
+
+
+ 焊接一次合格率详细
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/WeldOneOKItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/WeldOneOKItem.aspx.cs
new file mode 100644
index 00000000..32166f59
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/WeldOneOKItem.aspx.cs
@@ -0,0 +1,106 @@
+using Aspose.Words;
+using BLL;
+using Org.BouncyCastle.Asn1.Ocsp;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.IO;
+using System.Linq;
+using System.Text;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class WeldOneOKItem : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ string projectId = Request.Params["projectId"];
+ this.txtProject.Text = ProjectService.GetProjectNameByProjectId(projectId);
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格t
+ BindGrid();
+ this.Panel1.Title = "焊接一次合格率数据(" + BLL.UnitService.GetUnitNameByUnitId(BLL.Const.UnitId_CWCEC) + ")";
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT N.*, U.UnitName "
+ + @" FROM ProcessControl_NondestructiveTest_New AS N"
+ + @" LEFT JOIN Base_Unit AS U ON U.UnitId = N.UnitId"
+ + @" WHERE N.ProjectId=@projectId ";
+ List listStr = new List();
+ listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"]));
+
+ strSql += " AND (N.CreateDate>=@startTime or @startTime='') and (N.CreateDate<=@endTime or @endTime='') ";
+ listStr.Add(new SqlParameter("@startTime", !string.IsNullOrEmpty(txtStartTime.Text.Trim()) ? txtStartTime.Text.Trim() + " 00:00:00" : ""));
+ listStr.Add(new SqlParameter("@endTime", !string.IsNullOrEmpty(txtEndTime.Text.Trim()) ? txtEndTime.Text.Trim() + " 23:59:59" : ""));
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+ Grid1.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(Grid1, tb);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+ #endregion
+
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 表排序、分页、关闭窗口
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 分页显示条数下拉框
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/WeldOneOKItem.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/WeldOneOKItem.aspx.designer.cs
new file mode 100644
index 00000000..1cfe32c9
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/WeldOneOKItem.aspx.designer.cs
@@ -0,0 +1,150 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow {
+
+
+ public partial class WeldOneOKItem {
+
+ ///
+ /// 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;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// txtProject 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtProject;
+
+ ///
+ /// txtStartTime 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtStartTime;
+
+ ///
+ /// Label3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label3;
+
+ ///
+ /// txtEndTime 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtEndTime;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// lblPageIndex 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lblPageIndex;
+
+ ///
+ /// lbtnFileUrl 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.LinkButton lbtnFileUrl;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/File/Excel/CQMS/质量专项检查模版.xlsx b/SGGL/FineUIPro.Web/File/Excel/CQMS/质量专项检查模版.xlsx
new file mode 100644
index 00000000..37d2fbc1
Binary files /dev/null and b/SGGL/FineUIPro.Web/File/Excel/CQMS/质量专项检查模版.xlsx differ
diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/NCR管理导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/NCR管理导入模板.xls
index 877d056a..ff2cba5f 100644
Binary files a/SGGL/FineUIPro.Web/File/Excel/DataIn/NCR管理导入模板.xls and b/SGGL/FineUIPro.Web/File/Excel/DataIn/NCR管理导入模板.xls differ
diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/图纸收发记录导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/图纸收发记录导入模板.xls
index cba4076e..c2cbc441 100644
Binary files a/SGGL/FineUIPro.Web/File/Excel/DataIn/图纸收发记录导入模板.xls and b/SGGL/FineUIPro.Web/File/Excel/DataIn/图纸收发记录导入模板.xls differ
diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/设计变更单导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/设计变更单导入模板.xls
index c51fd734..7859e742 100644
Binary files a/SGGL/FineUIPro.Web/File/Excel/DataIn/设计变更单导入模板.xls and b/SGGL/FineUIPro.Web/File/Excel/DataIn/设计变更单导入模板.xls differ
diff --git a/SGGL/FineUIPro.Web/File/Word/CQMS/项目质量月报.doc b/SGGL/FineUIPro.Web/File/Word/CQMS/项目质量月报.doc
index 56814ef9..d896d188 100644
Binary files a/SGGL/FineUIPro.Web/File/Word/CQMS/项目质量月报.doc and b/SGGL/FineUIPro.Web/File/Word/CQMS/项目质量月报.doc differ
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index ebc933f7..aa09bb51 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -599,12 +599,16 @@
+
+
+
+
@@ -625,6 +629,8 @@
+
+
@@ -8565,6 +8571,20 @@
Environmental.aspx
+
+ GJSX.aspx
+ ASPXCodeBehind
+
+
+ GJSX.aspx
+
+
+ GJSXItem.aspx
+ ASPXCodeBehind
+
+
+ GJSXItem.aspx
+
HiddenRectification.aspx
ASPXCodeBehind
@@ -8607,6 +8627,20 @@
HJGLWeldingItem.aspx
+
+ InspectionManagement.aspx
+ ASPXCodeBehind
+
+
+ InspectionManagement.aspx
+
+
+ InspectionManagementItem.aspx
+ ASPXCodeBehind
+
+
+ InspectionManagementItem.aspx
+
LargeEngineering.aspx
ASPXCodeBehind
@@ -8747,6 +8781,20 @@
SecurityRiskItem.aspx
+
+ WeldOneOK.aspx
+ ASPXCodeBehind
+
+
+ WeldOneOK.aspx
+
+
+ WeldOneOKItem.aspx
+ ASPXCodeBehind
+
+
+ WeldOneOKItem.aspx
+
WorkingHours.aspx
ASPXCodeBehind
diff --git a/SGGL/FineUIPro.Web/Web.config b/SGGL/FineUIPro.Web/Web.config
index 9fc55c34..eafda425 100644
--- a/SGGL/FineUIPro.Web/Web.config
+++ b/SGGL/FineUIPro.Web/Web.config
@@ -77,7 +77,7 @@
-
+
diff --git a/SGGL/FineUIPro.Web/common/main_new.aspx b/SGGL/FineUIPro.Web/common/main_new.aspx
index fef77127..947da205 100644
--- a/SGGL/FineUIPro.Web/common/main_new.aspx
+++ b/SGGL/FineUIPro.Web/common/main_new.aspx
@@ -100,15 +100,15 @@
质量培训累计人员
0
-