diff --git a/DataBase/版本日志/SGGLDB_WH_2023-03-25_集团查看数据脚本.sql b/DataBase/版本日志/SGGLDB_WH_2023-03-25_集团查看数据脚本.sql
new file mode 100644
index 00000000..67326838
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_WH_2023-03-25_集团查看数据脚本.sql
@@ -0,0 +1,29 @@
+alter table [dbo].[Solution_LargerHazard] add TrainPersonNum int null
+alter table [dbo].[Solution_LargerHazard] add IsSuperLargerHazard bit null
+alter table [dbo].[Hazard_HazardSelectedItem] add IsStart bit null
+alter table [dbo].[Comprehensive_InspectionPerson] add IsTrain bit null
+alter table [dbo].[Comprehensive_InspectionMachine] add IsCheckOK bit null
+alter table [dbo].[Comprehensive_DesignDetails] add JoinPersonNum int null
+alter table [dbo].[Hazard_HazardSelectedItem] add ProjectId nvarchar(50) null
+GO
+
+
+
+CREATE TABLE [dbo].[Base_RiskLevel](
+ [RiskLevelId] [nvarchar](50) NOT NULL,
+ [RiskLevel] [int] NULL,
+ [RiskLevelName] [nvarchar](50) NULL,
+ [MinValue] [int] NULL,
+ [MaxValue] [int] NULL,
+ [ControlMeasures] [nvarchar](500) NULL,
+ [Days] [int] NULL,
+ [Remark] [nvarchar](100) NULL,
+ CONSTRAINT [PK_Base_RiskLevel] PRIMARY KEY CLUSTERED
+(
+ [RiskLevelId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+
diff --git a/SGGL/BLL/Common/AttachFileService.cs b/SGGL/BLL/Common/AttachFileService.cs
index 75b971ca..d40e30c0 100644
--- a/SGGL/BLL/Common/AttachFileService.cs
+++ b/SGGL/BLL/Common/AttachFileService.cs
@@ -455,5 +455,22 @@ namespace BLL
}
return filename;//返回相对路径
}
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static IList GetBeforeFileList(string toKeyId, string menuId)
+ {
+ List listToKeyId = new List();
+ listToKeyId.Add(toKeyId);
+ // listToKeyId.Add(toKeyId + "r");
+ //listToKeyId.Add(toKeyId + "re");
+ var list = Funs.DB.AttachFile.Where(p => listToKeyId.Contains(p.ToKeyId) && p.MenuId == menuId).ToList();
+ return list;
+
+ }
}
}
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index 9a07fd70..0a82d94f 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -3566,6 +3566,11 @@ namespace BLL
///
public const string PostMangerId = "13B6BD84-62FD-48F9-8C69-3594DACCF95D";
+ ///
+ /// 安全总监岗位Id
+ ///
+ public static string WorkPost_HSSEDirector = "8A7C2CDF-AFB5-4826-9951-343253342DAC";
+
#region WBS_BreakdownProject表中SourceBreakdownId
public const string SourceBreakdownId = "2cbaabf0-c58a-4a12-b36e-4f8e588fa18e";
diff --git a/SGGL/FineUIPro.Web/DataShow/Accident.aspx b/SGGL/FineUIPro.Web/DataShow/Accident.aspx
new file mode 100644
index 00000000..9c3085f2
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Accident.aspx
@@ -0,0 +1,131 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Accident.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.Accident" %>
+
+
+
+
+
+
+
+ 安全事故
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/Accident.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Accident.aspx.cs
new file mode 100644
index 00000000..3c48c3b1
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Accident.aspx.cs
@@ -0,0 +1,201 @@
+using BLL;
+using FineUIPro.Web.BaseInfo;
+using Model;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+using static NPOI.HSSF.Util.HSSFColor;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class Accident : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = string.Empty;
+ List listStr = new List();
+
+ if (rbType.SelectedValue == "0" || rbType.SelectedValue == "1")
+ {
+ strSql = @"SELECT Record.AccidentPersonRecordId AS ID,Record.ProjectId,Project.ProjectCode,Project.ProjectName,
+ Record.AccidentTypeId,AccidentType.AccidentTypeName,Record.AccidentDate
+ ,Unit.UnitId,Unit.UnitName,Record.States, 1 AS PeopleNum
+ ,(CASE WHEN Record.Injury =1 THEN '死亡' WHEN Record.Injury =2 THEN '重伤' ELSE '轻伤' END) AS Info
+ FROM Accident_AccidentPersonRecord AS Record
+ LEFT JOIN Base_AccidentType AS AccidentType ON AccidentType.AccidentTypeId = Record.AccidentTypeId
+ LEFT JOIN Base_Project AS Project ON Record.ProjectId = Project.ProjectId
+ LEFT JOIN SitePerson_Person AS Person ON Person.PersonId = Record.PersonId
+ LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = Person.UnitId
+ WHERE 1=1 ";
+
+ if (rbType.SelectedValue == "0")
+ {
+ strSql += " AND AccidentType.AccidentTypeName LIKE @values";
+ listStr.Add(new SqlParameter("@values", "% 未遂%"));
+ }
+ else
+ {
+ strSql += " AND '未遂' NOT IN (AccidentType.AccidentTypeName)";
+ }
+ }
+ else
+ {
+ strSql = @"SELECT Record.AccidentReportId AS ID,Record.ProjectId,Project.ProjectCode,Project.ProjectName,
+ Record.AccidentTypeId,ConstText AS AccidentTypeName,Record.AccidentDate
+ ,Unit.UnitId,Unit.UnitName,Record.States, 1 AS PeopleNum
+ , Record.Abstract AS Info
+ FROM Accident_AccidentReport AS Record
+ LEFT JOIN Sys_Const AS AccidentType ON AccidentType.ConstValue = Record.AccidentTypeId AND GroupId='AccidentReportRegistration'
+ LEFT JOIN Base_Project AS Project ON Record.ProjectId = Project.ProjectId
+ LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = Record.UnitId
+ WHERE 1 = 1 ";
+ if (rbType.SelectedValue == "2")
+ {
+ strSql += " AND Record.AccidentDegree ='1'";
+ }
+ else if (rbType.SelectedValue == "3")
+ {
+ strSql += " AND Record.AccidentDegree ='2'";
+ }
+ else if (rbType.SelectedValue == "4")
+ {
+ strSql += " AND Record.AccidentDegree ='3'";
+ }
+ else if (rbType.SelectedValue == "5")
+ {
+ strSql += " AND Record.AccidentDegree ='4'";
+ }
+ }
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND Record.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+ 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;
+ }
+ if (this.rbType.SelectedValue == "0" || this.rbType.SelectedValue == "1")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/Accident/AccidentPersonRecordView.aspx?AccidentPersonRecordId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ else
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/Accident/AccidentReportView.aspx?AccidentReportId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ }
+ #endregion
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/Accident.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/Accident.aspx.designer.cs
new file mode 100644
index 00000000..4a52699e
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Accident.aspx.designer.cs
@@ -0,0 +1,152 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class Accident
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// rbType 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbType;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// 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/Check.aspx b/SGGL/FineUIPro.Web/DataShow/Check.aspx
new file mode 100644
index 00000000..070d979e
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Check.aspx
@@ -0,0 +1,130 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Check.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.Check" %>
+
+
+
+
+
+
+
+ 安全监督检查
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/Check.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Check.aspx.cs
new file mode 100644
index 00000000..14be1c57
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Check.aspx.cs
@@ -0,0 +1,288 @@
+using Aspose.Words;
+using BLL;
+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 Check : PageBase
+ {
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ if (this.rbCom.SelectedValue == "1" || this.rbCom.SelectedValue == "2" || this.rbCom.SelectedValue == "3")
+ {
+ string strSql = @"SELECT S.SuperviseCheckReportId AS ID,S.SuperviseCheckReportCode,S.CheckDate,S.ProjectId,P.ProjectName,S.UnitId,u.UnitName,S.CheckTeam,S.EvaluationResult,S.AttachUrl,S.IsIssued,case S.CheckType when '1' then '企业负责人带班检查' when '2' then '企业综合检查' when '3' then '企业专项检查' else '' end as CheckTypeName"
+ + @" FROM dbo.Supervise_SuperviseCheckReport AS S"
+ + @" LEFT JOIN dbo.Base_Project AS P ON P.ProjectId=S.ProjectId"
+ + @" LEFT JOIN dbo.Base_Unit AS U ON U.UnitId=S.UnitId"
+ + @" WHERE 1=1 ";
+ List listStr = new List();
+ strSql += " AND S.CheckType= @CheckType";
+ listStr.Add(new SqlParameter("@CheckType", this.rbCom.SelectedValue));
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND S.CheckDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND S.CheckDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text));
+ }
+ 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();
+ }
+ ///项目负责人带班检查
+ else if (this.rbCom.SelectedValue == "4")
+ {
+ string strSql = @"select C.ProjectLeaderCheckId AS ID,C.UnitIds,C.ProjectId,P.ProjectName,C.LeaderIds,C.LeaderNames AS CheckTeam,C.CheckDate
+ ,UnitName= STUFF((SELECT ',' + UnitName FROM dbo.Base_Unit where PATINDEX('%,' + RTRIM(UnitId) + ',%',',' +C.UnitIds + ',')>0 FOR XML PATH('')), 1, 1,'')
+ ,CheckTeam= STUFF((SELECT ',' + UserName FROM dbo.Sys_User where PATINDEX('%,' + RTRIM(UserId) + ',%',',' +C.LeaderIds + ',')>0 FOR XML PATH('')), 1, 1,'')
+ from Check_ProjectLeaderCheck AS C
+ LEFT JOIN Base_Project AS P ON C.ProjectId =P.ProjectId
+ where 1=1 ";
+ List listStr = new List();
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND C.ProjectId =@ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND C.CheckDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND C.CheckDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", 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();
+ this.Grid1.Columns[1].Hidden = false;
+ }
+ ///项目专业检查
+ else if (this.rbCom.SelectedValue == "5")
+ {
+ string strSql = @"select C.HazardRegisterId AS ID,C.ResponsibleUnit,C.ProjectId,P.ProjectName,C.CheckManId,U.UserName AS CheckTeam,C.CheckTime AS CheckDate,Ut.UnitName
+ from HSSE_Hazard_HazardRegister AS C
+ LEFT JOIN Base_Project AS P ON C.ProjectId =P.ProjectId
+ LEFT JOIN Sys_User AS U ON C.CheckManId=U.UserId
+ LEFT JOIN Base_Unit AS Ut ON C.ResponsibleUnit=Ut.UnitId
+ where 1=1 ";
+ List listStr = new List();
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND C.ProjectId =@ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND C.CheckTime >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND C.CheckTime <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", 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();
+ this.Grid1.Columns[1].Hidden = false;
+ }
+ ///项目专项目检查
+ else if (this.rbCom.SelectedValue == "6")
+ {
+ string strSql = @"select C.CheckSpecialId AS ID,C.ProjectId,P.ProjectName, ISNULL(C.PartInPersonNames,'') AS CheckTeam,C.CheckTime AS CheckDate
+ ,UnitName= STUFF((SELECT ',' + UnitName FROM dbo.Base_Unit where PATINDEX('%,' + RTRIM(UnitId) + ',%',',' +(C.PartInUnits) + ',')>0 FOR XML PATH('')), 1, 1,'')
+ from Check_CheckSpecial AS C
+ LEFT JOIN Base_Project AS P ON C.ProjectId =P.ProjectId
+ where 1=1 ";
+ List listStr = new List();
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND C.ProjectId =@ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND C.CheckTime >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND C.CheckTime <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", 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();
+ this.Grid1.Columns[1].Hidden = false;
+ }
+ }
+ #endregion
+
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ if (this.rbCom.SelectedValue == "4" || this.rbCom.SelectedValue == "5" || this.rbCom.SelectedValue == "6")
+ {
+ this.drpProject.Hidden = false;
+ }
+ else
+ {
+ this.drpProject.Hidden = true;
+ }
+ 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;
+ }
+ if (this.rbCom.SelectedValue == "1"|| this.rbCom.SelectedValue == "2" || this.rbCom.SelectedValue == "3")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../ZHGL/Supervise/SuperviseCheckReportEdit.aspx?SuperviseCheckReportId={0}&type=-1", Grid1.SelectedRowID, "查看 - ")));
+ }
+ else if (this.rbCom.SelectedValue == "4")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/Check/ProjectLeaderCheckView.aspx?ProjectLeaderCheckId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ else if (this.rbCom.SelectedValue == "5")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/HiddenInspection/HiddenRectificationView.aspx?HazardRegisterId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ else if (this.rbCom.SelectedValue == "6")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/Check/CheckSpecialView.aspx?CheckSpecialId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ }
+ #endregion
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/Check.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/Check.aspx.designer.cs
new file mode 100644
index 00000000..be33626f
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Check.aspx.designer.cs
@@ -0,0 +1,179 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class Check
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// rbCom 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbCom;
+
+ ///
+ /// 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;
+
+ ///
+ /// 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/CompanyPerson.aspx b/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx
new file mode 100644
index 00000000..81b8e027
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx
@@ -0,0 +1,116 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanyPerson.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.CompanyPerson" %>
+
+
+
+
+
+
+
+ 企业总部人员
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx.cs b/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx.cs
new file mode 100644
index 00000000..fa5dc7ef
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx.cs
@@ -0,0 +1,127 @@
+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 CompanyPerson : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+
+ string strSql = @"SELECT Person.CompanyBranchPersonId,Unit.UnitName, Person.PersonName,case Person.Sex when '1' then '男' else '女' end as SexStr,Person.IdentityCard,WorkPost.WorkPostName,Person.Telephone,Person.IsOnJob,Person.Remark "
+ + @" FROM Person_CompanyBranchPerson AS Person "
+ + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId=Person.UnitId "
+ + @" LEFT JOIN Base_WorkPost AS WorkPost ON Person.WorkPostId=WorkPost.WorkPostId WHERE 1=1 ";
+ List listStr = new List();
+ string UnitId = BLL.Const.UnitId_CWCEC;
+ if (this.rbCom.SelectedValue == "0")
+ {
+ strSql += " AND Person.UnitId = @UnitId";
+ listStr.Add(new SqlParameter("@UnitId", UnitId));
+ }
+ else
+ {
+ strSql += " AND Person.UnitId != @UnitId";
+ listStr.Add(new SqlParameter("@UnitId", UnitId));
+ }
+ if (rbType.SelectedValue == "0")
+ {
+ strSql += " AND Person.WorkPostId = @WorkPostId";
+ listStr.Add(new SqlParameter("@WorkPostId", Const.WorkPost_HSSEDirector));
+ }
+ else
+ {
+ strSql += " AND WorkPost.IsHsse = 1";
+ }
+
+ 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
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx.designer.cs
new file mode 100644
index 00000000..3c98fe80
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx.designer.cs
@@ -0,0 +1,125 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class CompanyPerson
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// rbCom 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbCom;
+
+ ///
+ /// rbType 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbType;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// 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/ConstructionEquipment.aspx b/SGGL/FineUIPro.Web/DataShow/ConstructionEquipment.aspx
new file mode 100644
index 00000000..f8b1f620
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/ConstructionEquipment.aspx
@@ -0,0 +1,143 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ConstructionEquipment.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.ConstructionEquipment" %>
+
+
+
+
+
+
+
+ 施工机具
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/ConstructionEquipment.aspx.cs b/SGGL/FineUIPro.Web/DataShow/ConstructionEquipment.aspx.cs
new file mode 100644
index 00000000..4895b81f
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/ConstructionEquipment.aspx.cs
@@ -0,0 +1,189 @@
+using BLL;
+using Model;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class ConstructionEquipment : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ // btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = string.Empty;
+ List listStr = new List();
+
+ strSql = @"SELECT ID,ProjectId,ProjectCode,ProjectName,UnitId,UnitName,SpecialEquipmentId,SpecialEquipmentName,SizeModel,OwnerCheck,CertificateNum,IsUsed,CompileDate,EQType
+ FROM (SELECT Item.EquipmentInItemId AS ID,EQ.ProjectId,P.ProjectCode,P.ProjectName,EQ.UnitId,Unit.UnitName,Item.SpecialEquipmentId
+ ,SPE.SpecialEquipmentName,Item.SizeModel,Item.OwnerCheck,Item.CertificateNum,Item.IsUsed,EQ.CompileDate,'特种设备' AS EQType
+ FROM InApproveManager_EquipmentInItem AS Item
+ LEFT JOIN InApproveManager_EquipmentIn AS EQ ON EQ.EquipmentInId = Item.EquipmentInId
+ LEFT JOIN Base_SpecialEquipment AS SPE ON Item.SpecialEquipmentId = SPE.SpecialEquipmentId
+ LEFT JOIN Base_Project AS P ON EQ.ProjectId = P.ProjectId
+ LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = EQ.UnitId
+ UNION ALL SELECT Item.GeneralEquipmentInItemId AS ID,EQ.ProjectId,P.ProjectCode,P.ProjectName,EQ.UnitId,Unit.UnitName,Item.SpecialEquipmentId
+ ,SPE.SpecialEquipmentName,Item.SizeModel,Item.OwnerCheck,Item.CertificateNum,Item.IsUsed,EQ.CompileDate,'一般设备' AS EQType
+ FROM InApproveManager_GeneralEquipmentInItem AS Item
+ LEFT JOIN InApproveManager_GeneralEquipmentIn AS EQ ON EQ.GeneralEquipmentInId = Item.GeneralEquipmentInId
+ LEFT JOIN Base_SpecialEquipment AS SPE ON Item.SpecialEquipmentId = SPE.SpecialEquipmentId
+ LEFT JOIN Base_Project AS P ON EQ.ProjectId = P.ProjectId
+ LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = EQ.UnitId ) V
+ WHERE 1=1 ";
+
+ strSql += " AND V.IsUsed = @IsUsed";
+ listStr.Add(new SqlParameter("@IsUsed", "1"));
+ if (this.rbType.SelectedValue == "2")
+ {
+ strSql += " AND V.EQType = @EQType";
+ listStr.Add(new SqlParameter("@EQType", "特种设备"));
+ }
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND V.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND V.CompileDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND V.CompileDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", 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;
+ }
+ var getEQ = Funs.DB.InApproveManager_EquipmentInItem.FirstOrDefault(x => x.EquipmentInItemId == Grid1.SelectedRowID);
+ if (getEQ != null)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/InApproveManager/EquipmentInView.aspx?EquipmentInId={0}", getEQ.EquipmentInId, "查看 - ")));
+ }
+ else
+ {
+ var getGEQ = Funs.DB.InApproveManager_GeneralEquipmentInItem.FirstOrDefault(x => x.GeneralEquipmentInItemId == Grid1.SelectedRowID);
+ if (getGEQ != null)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/InApproveManager/GeneralEquipmentInView.aspx?EquipmentInId={0}", getGEQ.GeneralEquipmentInId, "查看 - ")));
+ }
+ }
+
+
+ }
+ #endregion
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/ConstructionEquipment.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/ConstructionEquipment.aspx.designer.cs
new file mode 100644
index 00000000..1d814f00
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/ConstructionEquipment.aspx.designer.cs
@@ -0,0 +1,179 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class ConstructionEquipment
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// rbType 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbType;
+
+ ///
+ /// 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;
+
+ ///
+ /// 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/EduTrain.aspx b/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx
new file mode 100644
index 00000000..32b611d3
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx
@@ -0,0 +1,133 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EduTrain.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.EduTrain" %>
+
+
+
+
+
+
+
+ 教育培训
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.cs b/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.cs
new file mode 100644
index 00000000..551eb391
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.cs
@@ -0,0 +1,160 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class EduTrain : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ // btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = string.Empty;
+ List listStr = new List();
+
+ strSql = @"select TrainRecord.TrainingId,TrainRecord.TrainTitle,TrainType.TrainTypeName,Project.ProjectId,Project.ProjectCode,Project.ProjectName
+ ,TrainRecord.TrainStartDate,TrainRecord.TrainEndDate,TrainRecord.TrainPersonNum,TrainRecord.UnitIds
+ ,UnitName= STUFF((SELECT ',' + UnitName FROM dbo.Base_Unit where PATINDEX('%,' + RTRIM(UnitId) + ',%',',' +TrainRecord.UnitIds + ',')>0 FOR XML PATH('')), 1, 1,'')
+ from EduTrain_TrainRecord AS TrainRecord
+ LEFT JOIN Base_TrainType AS TrainType ON TrainRecord.TrainTypeId=TrainType.TrainTypeId
+ LEFT JOIN Base_Project AS Project ON TrainRecord.ProjectId=Project.ProjectId
+ WHERE 1=1 ";
+
+ strSql += " AND TrainType.TrainType =@TrainType";
+ listStr.Add(new SqlParameter("@TrainType", this.rbType.SelectedValue));
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND TrainRecord.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND TrainRecord.TrainEndDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND TrainRecord.TrainEndDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", 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("../HSSE/EduTrain/TrainRecordView.aspx?TrainingId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ #endregion
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.designer.cs
new file mode 100644
index 00000000..a7d0f0e5
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.designer.cs
@@ -0,0 +1,179 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class EduTrain
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// rbType 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbType;
+
+ ///
+ /// 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;
+
+ ///
+ /// 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/Emergency.aspx b/SGGL/FineUIPro.Web/DataShow/Emergency.aspx
new file mode 100644
index 00000000..98748361
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Emergency.aspx
@@ -0,0 +1,215 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Emergency.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.Emergency" %>
+
+
+
+
+
+
+
+ 应急信息
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/Emergency.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Emergency.aspx.cs
new file mode 100644
index 00000000..3cf3a8f4
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Emergency.aspx.cs
@@ -0,0 +1,359 @@
+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 Emergency : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ ddlPageSize2.SelectedValue = Grid2.PageSize.ToString();
+ // 绑定表格t
+ BindGrid();
+ BindGrid2();
+ }
+ }
+ #endregion
+
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ if (this.rbCom.SelectedValue == "1")
+ {
+ this.drpProject.Hidden = false;
+ }
+ else
+ {
+ this.drpProject.Hidden = true;
+ }
+ this.BindGrid();
+ this.BindGrid2();
+ }
+ #endregion
+
+ #region 数据绑定1
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ if (this.rbCom.SelectedValue == "0")
+ {
+ string strSql = @"SELECT Em.EmergencyListId,Em.UnitId,Unit.UnitName,EmergencyType.EmergencyTypeName
+ ,Em.EmergencyName,Em.CompileDate,Em.CompileMan,Users.UserName AS CompileManName
+ ,Em.VersionCode,Em.States
+ FROM Emergency_EmergencyList_Unit AS Em
+ LEFT JOIN Base_Unit AS Unit ON Em.UnitId=Unit.UnitId
+ LEFT JOIN Base_EmergencyType AS EmergencyType ON Em.EmergencyTypeId=EmergencyType.EmergencyTypeId
+ LEFT JOIN Sys_User AS Users ON Em.CompileMan=Users.UserId WHERE 1=1 ";
+ List listStr = new List();
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND Em.CompileDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND Em.CompileDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", 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();
+ this.Grid1.Columns[1].Hidden = true;
+ }
+ else if (this.rbCom.SelectedValue == "1")
+ {
+ string strSql = @"SELECT Em.EmergencyListId,Project.ProjectId,Project.ProjectCode,Project.ProjectName
+ ,Em.UnitId,Unit.UnitName,EmergencyType.EmergencyTypeName
+ ,Em.EmergencyName,Em.CompileDate,Em.CompileMan,Users.UserName AS CompileManName
+ ,Em.VersionCode,Em.States
+ FROM Emergency_EmergencyList AS Em
+ LEFT JOIN Base_Unit AS Unit ON Em.UnitId=Unit.UnitId
+ LEFT JOIN Base_Project AS Project ON Em.ProjectId=Project.ProjectId
+ LEFT JOIN Base_EmergencyType AS EmergencyType ON Em.EmergencyTypeId=EmergencyType.EmergencyTypeId
+ LEFT JOIN Sys_User AS Users ON Em.CompileMan=Users.UserId WHERE 1=1 ";
+ List listStr = new List();
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND Project.ProjectId =@ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND Em.CompileDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND Em.CompileDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", 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();
+ this.Grid1.Columns[1].Hidden = true;
+ }
+ }
+
+ #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
+
+ #region Grid双击事件 编辑
+ ///
+ /// Grid行双击事件
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ EditData1();
+ }
+
+ ///
+ ///
+ ///
+ private void EditData1()
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.rbCom.SelectedValue == "0")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../ZHGL/Emergency/EmergencyListView.aspx?EmergencyListId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ else if (this.rbCom.SelectedValue == "1")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/Emergency/EmergencyListView.aspx?EmergencyListId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+
+ }
+ #endregion
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData1();
+ }
+
+ protected void btnView2_Click(object sender, EventArgs e)
+ {
+ EditData2();
+ }
+
+
+ #region 数据绑定2
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid2()
+ {
+ if (this.rbCom.SelectedValue == "0")
+ {
+ string strSql = @"SELECT List.DrillRecordListId
+ ,DrillRecordType.ConstText AS DrillRecordTypeName,List.JointPersonNum,List.DrillCost
+ ,List.DrillRecordName,List.DrillRecordDate
+ ,List.UnitIds,List.UnitNames
+ ,List.States
+ FROM Emergency_DrillRecordList_Unit AS List
+ LEFT JOIN Sys_Const AS DrillRecordType ON DrillRecordType.ConstValue = List.DrillRecordType
+ and DrillRecordType.GroupId='DrillRecordType'
+ WHERE 1=1 ";
+ List listStr = new List();
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND Em.CompileDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND Em.CompileDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text));
+ }
+
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+ Grid2.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(Grid2, tb);
+ Grid2.DataSource = table;
+ Grid2.DataBind();
+ this.Grid2.Columns[1].Hidden = true;
+ }
+ else if (this.rbCom.SelectedValue == "1")
+ {
+ string strSql = @"SELECT List.DrillRecordListId,List.ProjectId,Project.PostCode,Project.ProjectName
+ ,DrillRecordType.ConstText AS DrillRecordTypeName,List.JointPersonNum,List.DrillCost
+ ,List.DrillRecordName,List.DrillRecordDate
+ ,List.UnitIds,List.UnitNames
+ ,List.States
+ FROM Emergency_DrillRecordList AS List
+ LEFT JOIN Base_Project AS Project ON List.Projectid = Project.ProjectId
+ LEFT JOIN Sys_Const AS DrillRecordType ON DrillRecordType.ConstValue = List.DrillRecordType
+ and DrillRecordType.GroupId='DrillRecordType'
+ WHERE 1=1 ";
+ List listStr = new List();
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND Project.ProjectId =@ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND Em.CompileDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND Em.CompileDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text));
+ }
+
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+ Grid2.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(Grid2, tb);
+ Grid2.DataSource = table;
+ Grid2.DataBind();
+ this.Grid2.Columns[1].Hidden = true;
+ }
+ }
+
+ #endregion
+
+ #region 表排序、分页、关闭窗口
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ protected void Grid2_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid2();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid2_Sort(object sender, GridSortEventArgs e)
+ {
+ BindGrid2();
+ }
+
+ ///
+ /// 分页显示条数下拉框
+ ///
+ ///
+ ///
+ protected void ddlPageSize2_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid2.PageSize = Convert.ToInt32(ddlPageSize2.SelectedValue);
+ BindGrid2();
+ }
+
+ #endregion
+
+ #region Grid双击事件 编辑
+ ///
+ /// Grid行双击事件
+ ///
+ ///
+ ///
+ protected void Grid2_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ EditData2();
+ }
+
+ ///
+ ///
+ ///
+ private void EditData2()
+ {
+ if (Grid2.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.rbCom.SelectedValue == "0")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../ZHGL/Emergency/DrillRecordListView.aspx?DrillRecordListId={0}", Grid2.SelectedRowID, "查看 - ")));
+ }
+ else if (this.rbCom.SelectedValue == "1")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/Emergency/DrillRecordListView.aspx?DrillRecordListId={0}", Grid2.SelectedRowID, "查看 - ")));
+ }
+
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/Emergency.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/Emergency.aspx.designer.cs
new file mode 100644
index 00000000..6ab11a35
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Emergency.aspx.designer.cs
@@ -0,0 +1,269 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class Emergency
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// TabStrip1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TabStrip TabStrip1;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// rbCom 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbCom;
+
+ ///
+ /// 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;
+
+ ///
+ /// Tab1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Tab Tab1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Tab3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Tab Tab3;
+
+ ///
+ /// Grid2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid2;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label1;
+
+ ///
+ /// ToolbarSeparator2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator2;
+
+ ///
+ /// ToolbarText2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText2;
+
+ ///
+ /// ddlPageSize2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize2;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnView 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnView;
+
+ ///
+ /// Menu2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu2;
+
+ ///
+ /// btnView2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnView2;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/DataShow/Environmental.aspx b/SGGL/FineUIPro.Web/DataShow/Environmental.aspx
new file mode 100644
index 00000000..80785d6a
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Environmental.aspx
@@ -0,0 +1,129 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Environmental.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.Environmental" %>
+
+
+
+
+
+
+ 环保数据
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/Environmental.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Environmental.aspx.cs
new file mode 100644
index 00000000..5e316a2e
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Environmental.aspx.cs
@@ -0,0 +1,184 @@
+using BLL;
+using Model;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class Environmental : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ // btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = string.Empty;
+ List listStr = new List();
+ if (this.rbType.SelectedValue == "1")
+ {
+ strSql = @"SELECT Report.ChemicalReportId AS ID,Report.Year,Report.Month AS M,Report.FillingDate
+ ,(SELECT ThisYearValue FROM Environmental_ChemicalReportItem WHERE SortIndex='01'
+ AND ChemicalReportId=Report.ChemicalReportId) AS TotalEnergyConsumption
+ ,0 AS IncomeComprehensiveEnergyConsumption
+ ,(SELECT ThisYearValue FROM Environmental_ChemicalReportItem WHERE SortIndex='25'
+ AND ChemicalReportId=Report.ChemicalReportId) AS TotalEnergyConsumption
+ FROM Environmental_ChemicalReport AS Report";
+ }
+ else
+ {
+ strSql = @"SELECT Report.ArchitectureReportId AS ID,Report.Year,Report.Quarters AS M,Report.FillingDate
+ ,(SELECT ThisYearValue FROM Environmental_ArchitectureReportItem WHERE SortIndex='01'
+ AND ArchitectureReportId=Report.ArchitectureReportId) AS TotalEnergyConsumption
+ ,(SELECT ThisYearValue FROM Environmental_ArchitectureReportItem WHERE SortIndex='15'
+ AND ArchitectureReportId=Report.ArchitectureReportId) AS IncomeComprehensiveEnergyConsumption
+ ,(SELECT ThisYearValue FROM Environmental_ArchitectureReportItem WHERE SortIndex='24'
+ AND ArchitectureReportId=Report.ArchitectureReportId) AS TotalEnergyConsumption
+ FROM Environmental_ArchitectureReport AS Report
+ WHERE 1=1 ";
+ }
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND Report.FillingDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND Report.FillingDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", 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();
+ if (this.rbType.SelectedValue == "1")
+ {
+ Grid1.Columns[2].HeaderText = "月份";
+ Grid1.Columns[4].Hidden = true;
+ }
+ else
+ {
+ Grid1.Columns[2].HeaderText = "季度";
+ Grid1.Columns[4].Hidden = false;
+ }
+ }
+ #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;
+ }
+ if (this.rbType.SelectedValue == "1")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../ZHGL/Environmental/ChemicalReportSave.aspx?ChemicalReportId={0}&type=-1", Grid1.SelectedRowID, "查看 - ")));
+ }
+ else
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../ZHGL/Environmental/ArchitectureReportSave.aspx?ArchitectureReportId={0}&type=-1", Grid1.SelectedRowID, "查看 - ")));
+ }
+
+ }
+ #endregion
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/Environmental.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/Environmental.aspx.designer.cs
new file mode 100644
index 00000000..0fc67a5f
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Environmental.aspx.designer.cs
@@ -0,0 +1,170 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class Environmental
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// rbType 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbType;
+
+ ///
+ /// 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;
+
+ ///
+ /// 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/HJGLDefect.aspx b/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx
new file mode 100644
index 00000000..69378869
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx
@@ -0,0 +1,115 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HJGLDefect.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.HJGLDefect" %>
+
+
+
+
+
+
+
+ 缺陷分析
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx.cs
new file mode 100644
index 00000000..787f61e2
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx.cs
@@ -0,0 +1,127 @@
+using BLL;
+using FineUIPro.Web.BaseInfo;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class HJGLDefect : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT Project.ProjectId,Project.ProjectName,Defects_Definition,COUNT(Item.CHT_CheckItemID) AS Counts
+ FROM CH_CheckItem AS Item
+ LEFT JOIN CH_Check AS Checks ON Item.CHT_CheckID =Checks.CHT_CheckID
+ LEFT JOIN Base_Project AS Project ON Checks.ProjectId =Project.ProjectId
+ WHERE 1=1 ";
+
+ List listStr = new List();
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND Checks.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));
+ //}
+ //if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ //{
+ // strSql += " AND h.RegisterDate <=@EndTime";
+ // listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text));
+ //}
+ strSql += " GROUP BY Project.ProjectId,Project.ProjectName,Defects_Definition";
+ 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
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx.designer.cs
new file mode 100644
index 00000000..029e3470
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx.designer.cs
@@ -0,0 +1,116 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class HJGLDefect
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// 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/HJGLWelder.aspx b/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx
new file mode 100644
index 00000000..7cbd5210
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx
@@ -0,0 +1,129 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HJGLWelder.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.HJGLWelder" %>
+
+
+
+
+
+
+
+ 焊工
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx.cs
new file mode 100644
index 00000000..35c4c2b1
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx.cs
@@ -0,0 +1,150 @@
+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 HJGLWelder : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT Welder.WED_ID,Welder.ProjectId,Project.ProjectCode,Project.ProjectName,Welder.WED_Unit,Unit.UnitName
+ ,Welder.TeamGroupId,TeamGroup.TeamGroupName,Welder.WED_Code,Welder.WED_Name,(CASE WHEN Welder.WED_Sex='2' THEN '女' ELSE '男' END ) AS WED_Sex,
+ Welder.WED_Birthday,Welder.WED_WorkCode,Welder.WED_Class,Welder.WederType,
+ (CASE WHEN Welder.WED_IfOnGuard= 1 THEN '是' ELSE '否' END) AS WED_IfOnGuardName
+ FROM BS_Welder AS Welder
+ LEFT JOIN Base_Project AS Project ON Welder.ProjectId = Project.ProjectId
+ LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = Welder.WED_Unit
+ LEFT JOIN ProjectData_TeamGroup AS TeamGroup ON TeamGroup.TeamGroupId = Welder.TeamGroupId
+ WHERE (Welder.WederType='1' OR Welder.WederType is null) AND Welder.ProjectId IS NOT NULL";
+ List listStr = new List();
+ if (this.drpProject.SelectedValue !=Const._Null)
+ {
+ strSql += " AND Welder.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+
+ 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("../HJGL/PersonManage/PersonManageView.aspx?welderId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ #endregion
+
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx.designer.cs
new file mode 100644
index 00000000..0a827aaf
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx.designer.cs
@@ -0,0 +1,143 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class HJGLWelder
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// 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/HJGLWelding.aspx b/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx
new file mode 100644
index 00000000..f288b3c2
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx
@@ -0,0 +1,130 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HJGLWelding.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.HJGLWelding" %>
+
+
+
+
+
+
+
+ 焊接数据
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx.cs
new file mode 100644
index 00000000..47159568
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx.cs
@@ -0,0 +1,300 @@
+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 HJGLWelding : PageBase
+ {
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+
+ ///
+ /// 绑定数据
+ ///
+ 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("HJGLWeldingItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ #endregion
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+
+
+ ///
+ /// 总工时数
+ ///
+ ///
+ ///
+ protected decimal Count1(object projectId)
+ {
+ decimal cout1 = 0;
+ if (projectId != null)
+ {
+ var getD1 = from x in Funs.DB.HJGL_FL_TotalQuantity
+ where x.ProjectId == projectId.ToString()
+ select x;
+ if (getD1.Count() > 0)
+ {
+ cout1 = getD1.Sum(x => Funs.GetNewIntOrZero(x.TotalWeldQuantity ?? ""));
+ }
+ }
+ return cout1;
+ }
+
+ ///
+ /// 损失工时数
+ ///
+ ///
+ ///
+ protected decimal Count2(object projectId)
+ {
+ decimal cout1 = 0;
+ if (projectId != null)
+ {
+ var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ //var getD1 = from x in Funs.DB.PW_JointInfo
+ // join y in Funs.DB.BO_WeldReportMain on x.DReportID equals y.DReportID
+ // where x.ProjectId == projectId.ToString()
+ // select new { x.JOT_DoneDin, y.JOT_WeldDate };
+ var getD1= from x in Funs.DB.HJGL_FL_TotalQuantity
+ where x.ProjectId == projectId.ToString()
+ select x;
+ if (getD1.Count() > 0)
+ {
+ cout1 = getD1.Sum(x => Funs.GetNewIntOrZero(x.TotalWeldQuantity ?? ""));
+ }
+ //if (datetime1.HasValue)
+ //{
+ // getD1 = getD1.Where(x => x.JOT_WeldDate >= datetime1);
+ //}
+ //if (datetime2.HasValue)
+ //{
+ // getD1 = getD1.Where(x => x.JOT_WeldDate <= datetime2);
+ //}
+ //if (getD1.Count() > 0)
+ //{
+ // cout1 += getD1.Sum(x => x.JOT_DoneDin ?? 0);
+ //}
+
+ }
+ return cout1;
+ }
+
+ ///
+ /// 焊接数据数
+ ///
+ ///
+ ///
+ protected decimal Count3(object projectId)
+ {
+ decimal cout1 = 0;
+ if (projectId != null)
+ {
+ var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ //var getC1 = from x in Funs.DB.CH_CheckItem
+ // join y in Funs.DB.CH_Check on x.CHT_CheckID equals y.CHT_CheckID
+ // where y.ProjectId == projectId.ToString()
+ // select new { x.CHT_TotalFilm, y.CHT_CheckDate };
+
+ //if (datetime1.HasValue)
+ //{
+ // getC1 = getC1.Where(x => x.CHT_CheckDate >= datetime1);
+ //}
+ //if (datetime2.HasValue)
+ //{
+ // getC1 = getC1.Where(x => x.CHT_CheckDate <= datetime2);
+ //}
+ //if (getC1.Count() > 0)
+ //{
+ // cout1 = getC1.Sum(x => x.CHT_TotalFilm ?? 0);
+ //}
+ var getD1 = from x in Funs.DB.HJGL_FL_NdtList
+ where x.ProjectId == projectId.ToString()
+ select x;
+ if (getD1.Count() > 0)
+ {
+ cout1 = getD1.Sum(x => Funs.GetNewIntOrZero(x.OneTimeFilmAmount ?? ""));
+ }
+ }
+ return cout1;
+ }
+
+ ///
+ /// 焊接数据数
+ ///
+ ///
+ ///
+ protected decimal Count4(object projectId)
+ {
+ decimal cout1 = 0;
+ if (projectId != null)
+ {
+ var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ //var getC1 = from x in Funs.DB.CH_CheckItem
+ // join y in Funs.DB.CH_Check on x.CHT_CheckID equals y.CHT_CheckID
+ // where y.ProjectId == projectId.ToString()
+ // select new { x.CHT_PassFilm, y.CHT_CheckDate };
+
+ //if (datetime1.HasValue)
+ //{
+ // getC1 = getC1.Where(x => x.CHT_CheckDate >= datetime1);
+ //}
+ //if (datetime2.HasValue)
+ //{
+ // getC1 = getC1.Where(x => x.CHT_CheckDate <= datetime2);
+ //}
+ //if (getC1.Count() > 0)
+ //{
+ // cout1 = getC1.Sum(x => x.CHT_PassFilm ?? 0);
+ //}
+ var getD1 = from x in Funs.DB.HJGL_FL_NdtList
+ where x.ProjectId == projectId.ToString()
+ select x;
+ if (getD1.Count() > 0)
+ {
+ cout1 = getD1.Sum(x => Funs.GetNewIntOrZero(x.OneTimeFilmQualifiedAmount ?? ""));
+ }
+ }
+ return cout1;
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx.designer.cs
new file mode 100644
index 00000000..a00a73ef
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx.designer.cs
@@ -0,0 +1,206 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class HJGLWelding
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// Label4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label4;
+
+ ///
+ /// 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/HJGLWeldingItem.aspx b/SGGL/FineUIPro.Web/DataShow/HJGLWeldingItem.aspx
new file mode 100644
index 00000000..27e2ffba
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HJGLWeldingItem.aspx
@@ -0,0 +1,148 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HJGLWeldingItem.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.HJGLWeldingItem" %>
+
+
+
+
+
+
+
+ 焊接数据
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLWeldingItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HJGLWeldingItem.aspx.cs
new file mode 100644
index 00000000..ce4c8754
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HJGLWeldingItem.aspx.cs
@@ -0,0 +1,188 @@
+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 HJGLWeldingItem : 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();
+ // 绑定表格
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT jointInfo.JOT_ID,
+ jointInfo.ProjectId,
+ jointInfo.JOT_JointNo,
+ jointInfo.is_hj,
+ jointInfo.JointStatusName,
+ jointInfo.JOT_TrustFlagName,
+ jointInfo.JOT_CheckFlagName,
+ jointInfo.ISO_ID,
+ jointInfo.ISO_IsoNo,
+ jointInfo.WorkAreaId,
+ jointInfo.WorkAreaCode,
+ jointInfo.JOT_WeldDate,
+ jointInfo.JOT_DailyReportNo,
+ jointInfo.STE_Name1,
+ jointInfo.STE_Name2,
+ jointInfo.Component1,
+ jointInfo.Component2,
+ jointInfo.WED_Code1,
+ jointInfo.WED_Name1,
+ jointInfo.WED_Code2,
+ jointInfo.WED_Name2,
+ jointInfo.JOT_JointDesc,
+ jointInfo.JOT_Dia,
+ jointInfo.JOT_Size,
+ jointInfo.JOT_Sch,
+ jointInfo.JOT_FactSch,
+ jointInfo.GrooveTypeName,
+ jointInfo.JOTY_ID,
+ jointInfo.WeldTypeName,
+ jointInfo.WME_ID,
+ jointInfo.WeldingMethodName,
+ jointInfo.WeldSilk,
+ jointInfo.WeldMat,
+ jointInfo.WLO_Code,
+ jointInfo.WeldingLocationName,
+ jointInfo.JOT_DoneDin,
+ jointInfo.JOT_PrepareTemp,
+ jointInfo.JOT_JointAttribute,
+ jointInfo.JOT_CellTemp,
+ jointInfo.JOT_LastTemp,
+ jointInfo.JOT_HeartNo1,
+ jointInfo.JOT_HeartNo2,
+ jointInfo.PointDate,
+ jointInfo.PointNo,
+ jointInfo.CH_TrustCode,
+ jointInfo.CH_TrustDate,
+ jointInfo.JOT_FaceCheckResult,
+ jointInfo.JOT_FaceCheckDate,
+ jointInfo.JOT_FaceChecker,
+ detectionRate.DetectionRateValue,
+ jointInfo.IS_Proess,
+ jointInfo.JOT_BelongPipe,
+ jointInfo.JOT_Electricity,
+ detectionType.DetectionTypeName,
+ jointInfo.JOT_Voltage,
+ jointInfo.JOT_ProessDate,
+ jointInfo.JOT_HotRpt,
+ jointInfo.Extend_Length,
+ (select top 1 CHT_CheckDate from CH_Check c left join CH_CheckItem ci on ci.CHT_CheckID=c.CHT_CheckID where ci.JOT_ID=jointInfo.JOT_ID order by CHT_CheckDate desc) as CHT_CheckDate,
+ (select top 1 CHT_CheckCode from CH_Check c left join CH_CheckItem ci on ci.CHT_CheckID=c.CHT_CheckID where ci.JOT_ID=jointInfo.JOT_ID order by CHT_CheckDate desc) as CHT_CheckCode,
+ jointInfo.JOT_Remark
+ from View_JointInfo as jointInfo
+ LEFT JOIN Base_DetectionRate AS detectionRate ON detectionRate.DetectionRateId = jointInfo.DetectionRateId
+ LEFT JOIN Base_DetectionType AS detectionType ON detectionType.DetectionTypeId = jointInfo.DetectionTypeId
+ WHERE 1=1 ";
+ List listStr = new List();
+ strSql += " AND jointInfo.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"]));
+
+ if (!string.IsNullOrEmpty(txtStartTime.Text.Trim()))
+ {
+ strSql += " AND jointInfo.JOT_WeldDate >= @StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text.Trim()));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim()))
+ {
+ strSql += " AND jointInfo.JOT_WeldDate <= @EndTime";
+ listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text.Trim()));
+ }
+
+ 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 ConvertPersonWorkTimeSum(object dayReportId)
+ {
+ if (dayReportId != null)
+ {
+ return (Funs.DB.SitePerson_DayReportDetail.Where(x => x.DayReportId == dayReportId.ToString()).Sum(x => x.PersonWorkTime) ?? 0).ToString();
+ }
+ return "";
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLWeldingItem.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/HJGLWeldingItem.aspx.designer.cs
new file mode 100644
index 00000000..dc1ba2aa
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HJGLWeldingItem.aspx.designer.cs
@@ -0,0 +1,143 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class HJGLWeldingItem
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// 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/HiddenRectification.aspx b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx
new file mode 100644
index 00000000..e81213c3
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx
@@ -0,0 +1,122 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HiddenRectification.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.HiddenRectification" %>
+
+
+
+
+
+
+
+ 隐患排查
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.cs
new file mode 100644
index 00000000..b82fb4db
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.cs
@@ -0,0 +1,181 @@
+using Aspose.Words;
+using BLL;
+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 HiddenRectification : PageBase
+ {
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"select NEWID() as ID, v.ProjectId,v.ProjectCode,v.ProjectName,v.allcount,v.ccount,isnull(v.allCount,0)-ISNULL(v.cCount,0) as ucCount,
+ (case when isnull(v.allCount,0) > 0 then cast((isnull(v.allCount,0)-ISNULL(v.cCount,0)) *1.0 /isnull(v.allCount,0)*100 as decimal(18, 2))
+ else 0 end) as rateV
+ from (select h.ProjectId,p.ProjectCode,p.ProjectName,COUNT(*) as allCount,
+ isnull((select COUNT(*) from HSSE_Hazard_HazardRegister as c
+ where c.ProjectId=h.ProjectId and states =3
+ and '1' = @cpara
+ group by c.ProjectId),0) as cCount
+ from HSSE_Hazard_HazardRegister as h
+ left join Base_Project as p on h.ProjectId=p.ProjectId
+ where p.projectId is not null ";
+ List listStr = new List();
+ string cpara = string.Empty;
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND h.projectId = @projectId"; ///状态为已完成
+ listStr.Add(new SqlParameter("@projectId", this.drpProject.SelectedValue));
+
+ cpara += " AND c.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;
+ }
+ if (!string.IsNullOrEmpty(cpara))
+ {
+ listStr.Add(new SqlParameter("@cpara"," '1' And "+ cpara));
+ }
+ else
+ {
+ listStr.Add(new SqlParameter("@cpara", "'1'"));
+ }
+ strSql += " group by h.ProjectId,p.ProjectCode,p.ProjectName) as v";
+ 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("HiddenRectificationItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ #endregion
+
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.designer.cs
new file mode 100644
index 00000000..cb8fa00e
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.designer.cs
@@ -0,0 +1,170 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class HiddenRectification
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// 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/HiddenRectificationItem.aspx b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx
new file mode 100644
index 00000000..0bee361e
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx
@@ -0,0 +1,108 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HiddenRectificationItem.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.HiddenRectificationItem" %>
+
+
+
+
+
+
+
+ 隐患排查详细
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs
new file mode 100644
index 00000000..4562c643
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs
@@ -0,0 +1,193 @@
+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 HiddenRectificationItem : 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();
+
+ this.drpStates.DataValueField = "Id";
+ this.drpStates.DataTextField = "Name";
+ List handleSteps = new List();
+ Model.HandleStep handleStep1 = new Model.HandleStep();
+ handleStep1.Id = "1";
+ handleStep1.Name = "待整改";
+ handleSteps.Add(handleStep1);
+ Model.HandleStep handleStep2 = new Model.HandleStep();
+ handleStep2.Id = "2";
+ handleStep2.Name = "已整改-待复查验收";
+ handleSteps.Add(handleStep2);
+ Model.HandleStep handleStep3 = new Model.HandleStep();
+ handleStep3.Id = "3";
+ handleStep3.Name = "已闭环";
+ handleSteps.Add(handleStep3);
+ //Model.HandleStep handleStep4 = new Model.HandleStep();
+ //handleStep4.Id = "4";
+ //handleStep4.Name = "已作废";
+ //handleSteps.Add(handleStep4);
+ this.drpStates.DataSource = handleSteps; ;
+ this.drpStates.DataBind();
+ Funs.FineUIPleaseSelect(this.drpStates);
+
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = "SELECT * FROM View_Hazard_HazardRegister WHERE ProblemTypes in ('1' ,'2') ";
+ List listStr = new List();
+ strSql += " AND ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"]));
+
+ if (!string.IsNullOrEmpty(txtStartTime.Text.Trim()))
+ {
+ strSql += " AND CheckTime >= @StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text.Trim()));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim()))
+ {
+ strSql += " AND CheckTime <= @EndTime";
+ listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text.Trim()));
+ }
+ if (this.drpStates.SelectedValue != BLL.Const._Null)
+ {
+ strSql += " AND States LIKE @States";
+ listStr.Add(new SqlParameter("@States", "%" + this.drpStates.SelectedValue + "%"));
+ }
+ 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
+
+ ///
+ /// 获取整改前图片(放于Img中)
+ ///
+ ///
+ ///
+ protected string ConvertImageUrlByImage(object registrationId)
+ {
+ string url = string.Empty;
+ string httpUrl = string.Empty;
+ var sysSet6 = (from x in Funs.DB.Sys_Set where x.SetName == "程序访问地址" select x).ToList().FirstOrDefault();
+ if (sysSet6 != null)
+ {
+ httpUrl = sysSet6.SetValue;
+ }
+ if (registrationId != null)
+ {
+ var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString());
+ if (registration != null)
+ {
+ url = BLL.UploadAttachmentService.ShowImage(httpUrl, registration.ImageUrl);
+ }
+ }
+ return url;
+ }
+
+
+ ///
+ /// 获取整改后图片(放于Img中)
+ ///
+ ///
+ ///
+ protected string ConvertImgUrlByImage(object registrationId)
+ {
+ string url = string.Empty;
+ string httpUrl = string.Empty;
+ var sysSet6 = (from x in Funs.DB.Sys_Set where x.SetName == "程序访问地址" select x).ToList().FirstOrDefault();
+ if (sysSet6 != null)
+ {
+ httpUrl = sysSet6.SetValue;
+ }
+ if (registrationId != null)
+ {
+ var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString());
+ if (registration != null)
+ {
+ url = BLL.UploadAttachmentService.ShowImage(httpUrl, registration.RectificationImageUrl);
+ }
+ }
+ return url;
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.designer.cs
new file mode 100644
index 00000000..2be8e568
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.designer.cs
@@ -0,0 +1,170 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class HiddenRectificationItem
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// drpStates 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpStates;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// lbImageUrl1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lbImageUrl1;
+
+ ///
+ /// lbImageUrl2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lbImageUrl2;
+
+ ///
+ /// 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/LargeEngineering.aspx b/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx
new file mode 100644
index 00000000..023fdc02
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx
@@ -0,0 +1,140 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LargeEngineering.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.LargeEngineering" %>
+
+
+
+
+
+
+
+ 危大工程
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx.cs b/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx.cs
new file mode 100644
index 00000000..c680fc8d
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx.cs
@@ -0,0 +1,248 @@
+using Aspose.Words;
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.IO;
+using System.Linq;
+using System.ServiceModel.Configuration;
+using System.Text;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class LargeEngineering : PageBase
+ {
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ LargerHazard = (from x in Funs.DB.Solution_LargerHazard
+ join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
+ where y.ProjectState == Const.ProjectState_1
+ select x).ToList();
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ public static List LargerHazard = new List();
+
+ ///
+ /// 绑定数据
+ ///
+ 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));
+ }
+
+ 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("LargeEngineeringItem.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)
+ {
+ cout1 = LargerHazard.Where(x => x.ProjectId == projectId.ToString() && x.IsSuperLargerHazard == false).Count();
+ }
+ return cout1;
+ }
+
+ ///
+ /// 获取超危大工程数
+ ///
+ ///
+ ///
+ protected int Count2(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ cout1 = LargerHazard.Where(x => x.ProjectId == projectId.ToString() && x.IsSuperLargerHazard == true).Count();
+ }
+ return cout1;
+ }
+ ///
+ /// 在施危大工程数量
+ ///
+ ///
+ ///
+ protected int Count3(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ cout1 = LargerHazard.Where(x => x.ProjectId == projectId.ToString() && x.States == Const.State_2).Count();
+ }
+ return cout1;
+ }
+
+ ///
+ /// 审批完成数量
+ ///
+ ///
+ ///
+ protected int Count4(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ cout1 = LargerHazard.Where(x => x.ProjectId == projectId.ToString() && x.States == Const.State_1).Count();
+ }
+ return cout1;
+ }
+
+
+ ///
+ /// 培训人次数
+ ///
+ ///
+ ///
+ protected int Count5(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ cout1 = LargerHazard.Where(x => x.ProjectId == projectId.ToString()).Sum(x=>x.TrainPersonNum ?? 0);
+ }
+ return cout1;
+ }
+
+ ///
+ /// 完工个数
+ ///
+ ///
+ ///
+ protected int Count6(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ cout1 = LargerHazard.Where(x => x.ProjectId == projectId.ToString() && x.States == Const.State_3).Count();
+ }
+ return cout1;
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx.designer.cs
new file mode 100644
index 00000000..a183be96
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx.designer.cs
@@ -0,0 +1,197 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class LargeEngineering
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label1;
+
+ ///
+ /// Label4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label4;
+
+ ///
+ /// Label5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label5;
+
+ ///
+ /// Label6 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label6;
+
+ ///
+ /// Label7 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label7;
+
+ ///
+ /// 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/LargeEngineeringItem.aspx b/SGGL/FineUIPro.Web/DataShow/LargeEngineeringItem.aspx
new file mode 100644
index 00000000..9b6187cd
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/LargeEngineeringItem.aspx
@@ -0,0 +1,116 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LargeEngineeringItem.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.LargeEngineeringItem" %>
+
+
+
+
+
+
+
+ 危大工程
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/LargeEngineeringItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/LargeEngineeringItem.aspx.cs
new file mode 100644
index 00000000..463a6b9a
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/LargeEngineeringItem.aspx.cs
@@ -0,0 +1,156 @@
+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 LargeEngineeringItem : PageBase
+ {
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ string projectId = Request.Params["projectId"];
+ this.txtProject.Text=ProjectService.GetProjectNameByProjectId(projectId);
+ Funs.DropDownPageSize(this.ddlPageSize);
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT L.HazardId,L.ProjectId,L.Address,Users.UserName,L.ExpectedTime,L.RecordTime ,L.TrainPersonNum
+ ,case L.States when '1' then '审批完成' when '2' then '作业中' when '3' then '已关闭'
+ when '0' then '已取消' else '' end as StatesStr
+ , case when L.IsArgument=1 then '是' else '否' end as IsArgumentStr,Const.ConstText as TypeName
+ ,case when L.IsSuperLargerHazard=1 then '是' else '否' end as IsSuperLargerHazardStr
+ FROM Solution_LargerHazard AS L
+ LEFT JOIN Sys_User AS Users ON L.RecardMan=Users.UserId
+ LEFT JOIN Sys_Const AS Const ON L.HazardType=Const.ConstValue and Const.GroupId='LargerHazardType'
+ LEFT JOIN Sys_CodeRecords AS CodeRecords ON L.HazardId=CodeRecords.DataId WHERE 1=1 ";
+ List listStr = new List();
+ strSql += " AND L.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"]));
+
+ if (!string.IsNullOrEmpty(txtStartTime.Text.Trim()))
+ {
+ strSql += " AND L.RecordTime >= @StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text.Trim()));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim()))
+ {
+ strSql += " AND L.RecordTime <= @EndTime";
+ listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text.Trim()));
+ }
+ 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
+
+ #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("../HSSE/Solution/LargerHazardView.aspx?HazardId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ #endregion
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/LargeEngineeringItem.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/LargeEngineeringItem.aspx.designer.cs
new file mode 100644
index 00000000..0fb4bd57
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/LargeEngineeringItem.aspx.designer.cs
@@ -0,0 +1,170 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class LargeEngineeringItem
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// 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/License.aspx b/SGGL/FineUIPro.Web/DataShow/License.aspx
new file mode 100644
index 00000000..f073abf9
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/License.aspx
@@ -0,0 +1,147 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="License.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.License" %>
+
+
+
+
+
+
+
+ 施工机具
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/License.aspx.cs b/SGGL/FineUIPro.Web/DataShow/License.aspx.cs
new file mode 100644
index 00000000..fe1f63c7
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/License.aspx.cs
@@ -0,0 +1,161 @@
+using BLL;
+using Model;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class License : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ // btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = string.Empty;
+ List listStr = new List();
+
+ strSql = @"SELECT V.LicenseManagerId,V.ProjectId,V.ProjectCode,V.ProjectName,V.LicenseTypeName,V.UnitName,V.UnitTypeName
+ ,V.WorkAreaName,V.CompileDate,V.StartDate,V.EndDate,V.WorkStatesStr,V.LicenseTypeId,V.UnitId,V.LicenseManageContents
+ ,V.CompileMan,V.CompileDate,V.States,V.UserName
+ FROM View_License_LicenseManager AS V
+ WHERE 1=1";
+ if (this.rbType.SelectedValue=="2")
+ {
+ strSql += " AND V.WorkStates = @WorkStates";
+ listStr.Add(new SqlParameter("@WorkStates", Const.State_3));
+ }
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND V.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND V.StartDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND V.StartDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", 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("../HSSE/License/LicenseManagerView.aspx?LicenseManagerId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ #endregion
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/License.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/License.aspx.designer.cs
new file mode 100644
index 00000000..545e7144
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/License.aspx.designer.cs
@@ -0,0 +1,179 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class License
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// rbType 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbType;
+
+ ///
+ /// 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;
+
+ ///
+ /// 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/Meeting.aspx b/SGGL/FineUIPro.Web/DataShow/Meeting.aspx
new file mode 100644
index 00000000..af2ca81f
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Meeting.aspx
@@ -0,0 +1,130 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Meeting.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.Meeting" %>
+
+
+
+
+
+
+
+ 会议
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/Meeting.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Meeting.aspx.cs
new file mode 100644
index 00000000..89761b46
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Meeting.aspx.cs
@@ -0,0 +1,295 @@
+using Aspose.Words;
+using BLL;
+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 Meeting : PageBase
+ {
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ if (this.rbCom.SelectedValue == "0")
+ {
+ string strSql = @"SELECT Meeting.CompanySafetyMeetingId AS ID,Meeting.CompanySafetyMeetingName AS MeetingName
+ ,Meeting.CompanySafetyMeetingDate AS MeetingDate,Meeting.MeetingHours
+ ,MeetingHostMan AS HostMan,Meeting.AttentPersonNum,Meeting.AttentPerson
+ FROM Meeting_CompanySafetyMeeting AS Meeting
+ LEFT JOIN Sys_User AS Users ON Meeting.MeetingHostMan=Users.UserId
+ where 1=1 ";
+ List listStr = new List();
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND Meeting.CompanySafetyMeetingDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND Meeting.CompanySafetyMeetingDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", 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();
+ this.Grid1.Columns[1].Hidden = true;
+ }
+ else if (this.rbCom.SelectedValue == "1")
+ {
+ string strSql = @"SELECT Meeting.CompanySpecialMeetingId AS ID,Meeting.CompanySpecialMeetingName AS MeetingName
+ ,Meeting.CompanySpecialMeetingDate AS MeetingDate,Meeting.MeetingHours
+ ,MeetingHostMan AS HostMan,Meeting.AttentPersonNum,Meeting.AttentPerson
+ FROM Meeting_CompanySpecialMeeting AS Meeting
+ LEFT JOIN Sys_User AS Users ON Meeting.MeetingHostMan=Users.UserId
+ where 1=1 ";
+ List listStr = new List();
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND Meeting.CompanySpecialMeetingDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND Meeting.CompanySpecialMeetingDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", 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();
+ this.Grid1.Columns[1].Hidden = true;
+ }
+ else if (this.rbCom.SelectedValue == "2")
+ {
+ string strSql = @"SELECT Project.ProjectName,Meeting.SafetyLeaderGroupMeetingId AS ID,Meeting.SafetyLeaderGroupMeetingName AS MeetingName,Meeting.SafetyLeaderGroupMeetingDate AS MeetingDate,Meeting.MeetingHours
+ ,MeetingHostMan AS HostMan,Meeting.AttentPersonNum,Meeting.AttentPerson
+ FROM Meeting_SafetyLeaderGroupMeeting AS Meeting
+ LEFT JOIN Sys_User AS Users ON Meeting.MeetingHostMan=Users.UserId
+ LEFT JOIN Base_Project AS Project ON Meeting.ProjectId=Project.ProjectId
+ where 1=1 ";
+ List listStr = new List();
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND Project.ProjectId =@ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND Meeting.SafetyLeaderGroupMeetingDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND Meeting.SafetyLeaderGroupMeetingDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", 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();
+ this.Grid1.Columns[1].Hidden = false;
+ }
+
+ else if (this.rbCom.SelectedValue == "3")
+ {
+ string strSql = @"SELECT ProjectId,ProjectName, ID, MeetingName, MeetingDate,MeetingHours,HostMan,AttentPersonNum,AttentPerson
+ FROM (SELECT Project.ProjectId,Project.ProjectName,Meeting.MonthMeetingId AS ID,Meeting.MonthMeetingName AS MeetingName,Meeting.MonthMeetingDate AS MeetingDate,Meeting.MeetingHours
+ ,MeetingHostMan AS HostMan,Meeting.AttentPersonNum,Meeting.AttentPerson
+ FROM Meeting_MonthMeeting AS Meeting
+ LEFT JOIN Sys_User AS Users ON Meeting.MeetingHostMan=Users.UserId
+ LEFT JOIN Base_Project AS Project ON Meeting.ProjectId=Project.ProjectId
+ union all
+ SELECT Project.ProjectId,Project.ProjectName,Meeting.WeekMeetingId AS ID,Meeting.WeekMeetingName AS MeetingName,Meeting.WeekMeetingDate AS MeetingDate,Meeting.MeetingHours
+ ,MeetingHostMan AS HostMan,Meeting.AttentPersonNum,Meeting.AttentPerson
+ FROM Meeting_WeekMeeting AS Meeting
+ LEFT JOIN Sys_User AS Users ON Meeting.MeetingHostMan=Users.UserId
+ LEFT JOIN Base_Project AS Project ON Meeting.ProjectId=Project.ProjectId ) V
+ where 1=1 ";
+ List listStr = new List();
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND V.ProjectId =@ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND V.MeetingDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND V.MeetingDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", 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();
+ this.Grid1.Columns[1].Hidden = false;
+ }
+ }
+ #endregion
+
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ if (this.rbCom.SelectedValue == "2" || this.rbCom.SelectedValue == "3")
+ {
+ this.drpProject.Hidden = false;
+ }
+ else
+ {
+ this.drpProject.Hidden = true;
+ }
+ 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;
+ }
+ if (this.rbCom.SelectedValue == "0")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../ZHGL/Meeting/CompanySafetyMeetingView.aspx?CompanySafetyMeetingId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ else if (this.rbCom.SelectedValue == "1")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../ZHGL/Meeting/CompanySpecialMeetingView.aspx?CompanySpecialMeetingId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ else if (this.rbCom.SelectedValue == "2")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/Meeting/SafetyLeaderGroupMeetingView.aspx?SafetyLeaderGroupMeetingId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ else if (this.rbCom.SelectedValue == "3")
+ {
+ var getMeet = BLL.WeekMeetingService.GetWeekMeetingById(Grid1.SelectedRowID);
+ if (getMeet != null)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/Meeting/WeekMeetingView.aspx?WeekMeetingId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ else
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/Meeting/MonthMeetingView.aspx?MonthMeetingId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ }
+ }
+ #endregion
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/Meeting.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/Meeting.aspx.designer.cs
new file mode 100644
index 00000000..10881159
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Meeting.aspx.designer.cs
@@ -0,0 +1,179 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class Meeting
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// rbCom 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbCom;
+
+ ///
+ /// 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;
+
+ ///
+ /// 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/Project.aspx b/SGGL/FineUIPro.Web/DataShow/Project.aspx
new file mode 100644
index 00000000..2ac40111
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Project.aspx
@@ -0,0 +1,154 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Project.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.Project" %>
+
+
+
+
+
+
+
+ 项目
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/Project.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Project.aspx.cs
new file mode 100644
index 00000000..1ec465e9
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Project.aspx.cs
@@ -0,0 +1,205 @@
+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 Project : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = "SELECT Project.ProjectId,Project.ProjectCode,Project.ProjectName,unit.UnitName,Project.StartDate,Project.EndDate,Project.ProjectAddress,ShortName, ConstructionMoney,"
+ + @" (CASE WHEN ProjectState='" + BLL.Const.ProjectState_2 + "' THEN '暂停中' WHEN ProjectState='" + BLL.Const.ProjectState_3 + "' THEN '已完工' ELSE '施工中' END) AS ProjectStateName,Project.ProjectState,(case ProjectAttribute when 'GONGCHENG' then '工程' when 'SHIYE' then '实业' else '' end) as ProjectAttributeName"
+ + @" ,ProjectMoney,DATEDIFF(DAY,Project.StartDate,GETDATE()) AS DayCount,ProjectType.ProjectTypeName AS ProjectTypeName,sysConst.ConstText as ProjectStateName2"
+ + @" FROM Base_Project AS Project LEFT JOIN Base_Unit as unit on unit.UnitId=Project.UnitId "
+ + @" LEFT JOIN Base_ProjectType AS ProjectType ON Project.ProjectType =ProjectType.ProjectTypeId"
+ + @" LEFT JOIN Sys_Const AS sysConst ON Project.ProjectState2 =sysConst.ConstValue AND sysConst.GroupId= '" + BLL.ConstValue.GroupId_ProjectState + "' "
+ + @" WHERE (ProjectAttribute='GONGCHENG' OR ProjectAttribute IS NULL )";
+ List listStr = new List();
+
+ if (this.ckState.SelectedValue != "0")
+ {
+ if (this.ckState.SelectedValue == "1")
+ {
+ strSql += " AND (ProjectState = '1' OR ProjectState IS NULL)";
+ }
+ else
+ {
+ strSql += " AND (ProjectState = @states )";
+ listStr.Add(new SqlParameter("@states", this.ckState.SelectedValue));
+ }
+ }
+
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+ Grid1.RecordCount = tb.Rows.Count;
+ Grid1.DataSource = this.GetPagedDataTable(Grid1, tb);
+ 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 项目经理
+ ///
+ /// 项目经理
+ ///
+ ///
+ ///
+ protected string ConvertProjectManager(object projectId)
+ {
+ return ProjectService.GetProjectManagerName(projectId.ToString());
+ }
+
+ ///
+ /// 施工经理
+ ///
+ ///
+ ///
+ protected string ConvertConstructionManager(object projectId)
+ {
+ return BLL.ProjectService.GetConstructionManagerName(projectId.ToString());
+ }
+
+ ///
+ /// 施工分包商
+ ///
+ ///
+ ///
+ protected string ConvertSubcontractor(object projectId)
+ {
+ string unitName = string.Empty;
+ if (projectId != null)
+ {
+ unitName = ProjectService.getProjectUnitNameByUnitType(projectId.ToString(), Const.ProjectUnitType_2);
+ }
+ return unitName;
+ }
+
+ protected string ConvertOwn(object projectId)
+ {
+ string unitName = string.Empty;
+ if (projectId != null)
+ {
+ unitName = ProjectService.getProjectUnitNameByUnitType(projectId.ToString(), Const.ProjectUnitType_4);
+ }
+ return unitName;
+ }
+ #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("../ProjectData/ProjectSetView.aspx?ProjectId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ #endregion
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/Project.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/Project.aspx.designer.cs
new file mode 100644
index 00000000..5270a3dc
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/Project.aspx.designer.cs
@@ -0,0 +1,170 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class Project
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// ckState 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList ckState;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// lblCM 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lblCM;
+
+ ///
+ /// lbSubcontractor 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lbSubcontractor;
+
+ ///
+ /// lbOwn 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lbOwn;
+
+ ///
+ /// 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/ProjectDivision.aspx b/SGGL/FineUIPro.Web/DataShow/ProjectDivision.aspx
new file mode 100644
index 00000000..531053d0
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/ProjectDivision.aspx
@@ -0,0 +1,125 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectDivision.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.ProjectDivision" %>
+
+
+
+
+
+
+
+ 工程划分
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/ProjectDivision.aspx.cs b/SGGL/FineUIPro.Web/DataShow/ProjectDivision.aspx.cs
new file mode 100644
index 00000000..f530fdad
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/ProjectDivision.aspx.cs
@@ -0,0 +1,128 @@
+using BLL;
+using FineUIPro.Web.BaseInfo;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class ProjectDivision : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT P.ProjectId,P.ProjectCode,P.ProjectName
+ ,(SELECT COUNT(*) FROM Project_Installation AS A WHERE A.ProjectId =P.ProjectId AND A.SuperInstallationId='0') AS count1
+ ,(SELECT COUNT(*) FROM WBS_UnitWork AS B WHERE B.ProjectId =P.ProjectId) AS count2
+ ,(SELECT COUNT(*) FROM WBS_DivisionProject AS C WHERE C.ProjectId =P.ProjectId AND C.SubItemType= '1') AS count3
+ ,(SELECT COUNT(*) FROM WBS_DivisionProject AS D WHERE D.ProjectId =P.ProjectId AND D.SubItemType= '3') AS count4
+ ,(SELECT COUNT(*) FROM WBS_BreakdownProject AS E WHERE E.ProjectId =P.ProjectId ) AS count5
+ FROM Base_Project AS P
+ WHERE P.ProjectState = 1 ";
+ List listStr = new List();
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND P.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));
+ //}
+ //if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ //{
+ // strSql += " AND h.RegisterDate <=@EndTime";
+ // listStr.Add(new SqlParameter("@EndTime", 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
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/ProjectDivision.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/ProjectDivision.aspx.designer.cs
new file mode 100644
index 00000000..c39c6292
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/ProjectDivision.aspx.designer.cs
@@ -0,0 +1,116 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class ProjectDivision
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// 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/ProjectPerson.aspx b/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx
new file mode 100644
index 00000000..03550327
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx
@@ -0,0 +1,137 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectPerson.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.ProjectPerson" %>
+
+
+
+
+
+
+
+ 项目人员
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx.cs b/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx.cs
new file mode 100644
index 00000000..6dd14342
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx.cs
@@ -0,0 +1,177 @@
+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 ProjectPerson : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT Person.ProjectId,Project.ProjectCode,Project.ProjectName,Unit.UnitId,Unit.UnitId,Unit.UnitName,
+ Person.PersonName,Person.PersonId,Person.IdentityCard,Person.Sex,Person.WorkPostId,WorkPost.WorkPostName,Person.Telephone
+ ,(CASE WHEN Sex=2 THEN '女' WHEN Sex=1 THEN '男' ELSE '' END) AS SexStr
+ FROM SitePerson_Person AS Person
+ LEFT JOIN Base_Project AS Project ON Person.ProjectId =Project.ProjectId
+ LEFT JOIN Base_Unit AS Unit ON Person.UnitId =Unit.UnitId
+ LEFT JOIN Base_WorkPost AS WorkPost ON Person.WorkPostId =WorkPost.WorkPostId
+ WHERE IsUsed=1 AND InTime <=GETDATE() AND (OutTime IS NULL OR OutTime > GETDATE()) ";
+ List listStr = new List();
+ if (this.drpProject.SelectedValue !=Const._Null)
+ {
+ strSql += " AND Person.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+ if (rbType.SelectedValue == "0")
+ {
+ strSql += " AND Person.WorkPostId = @WorkPostId";
+ listStr.Add(new SqlParameter("@WorkPostId", Const.WorkPost_HSSEDirector));
+ }
+ else if (rbType.SelectedValue == "1")
+ {
+ strSql += " AND WorkPost.IsHsse = 1";
+ }
+ else if (rbType.SelectedValue == "2")
+ {
+ strSql += " AND Person.IsSafetyMonitoring = 1";
+ }
+ else if (rbType.SelectedValue == "3")
+ {
+ strSql += " AND (SELECT COUNT(*) FROM QualityAudit_PersonQuality AS Q LEFT JOIN Base_Certificate AS Cer ON Q.CertificateId =Cer.CertificateId WHERE Q.PersonId = Person.PersonId AND IsRegisterHSSE =1) > 0";
+ }
+ else if (rbType.SelectedValue == "4")
+ {
+ strSql += " AND (SELECT COUNT(*) FROM QualityAudit_PersonQuality AS Q LEFT JOIN Base_Certificate AS Cer ON Q.CertificateId =Cer.CertificateId WHERE Q.PersonId = Person.PersonId AND CertificateType ='A') > 0";
+ }
+ else if (rbType.SelectedValue == "5")
+ {
+ strSql += " AND (SELECT COUNT(*) FROM QualityAudit_PersonQuality AS Q LEFT JOIN Base_Certificate AS Cer ON Q.CertificateId =Cer.CertificateId WHERE Q.PersonId = Person.PersonId AND CertificateType ='B') > 0";
+ }
+ else if (rbType.SelectedValue == "6")
+ {
+ strSql += " AND (SELECT COUNT(*) FROM QualityAudit_PersonQuality AS Q LEFT JOIN Base_Certificate AS Cer ON Q.CertificateId =Cer.CertificateId WHERE Q.PersonId = Person.PersonId AND CertificateType ='C') > 0";
+ }
+ 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("../HSSE/SitePerson/PersonListEdit.aspx?PersonId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ #endregion
+
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx.designer.cs
new file mode 100644
index 00000000..c3c2155a
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx.designer.cs
@@ -0,0 +1,152 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class ProjectPerson
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// rbType 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbType;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// 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/QualityAcceptance.aspx b/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx
new file mode 100644
index 00000000..f899c548
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx
@@ -0,0 +1,129 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityAcceptance.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.QualityAcceptance" %>
+
+
+
+
+
+
+
+ 质量验收
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx.cs
new file mode 100644
index 00000000..a458d0a1
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx.cs
@@ -0,0 +1,137 @@
+using BLL;
+using FineUIPro.Web.BaseInfo;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class QualityAcceptance : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"select NEWID() as ID, v.ProjectId,v.ProjectCode,v.ProjectName,v.allcount,v.ccount,isnull(v.allCount,0)-ISNULL(v.cCount,0) as ucCount,
+ (case when isnull(v.allCount,0) > 0 then cast((isnull(v.allCount,0)-ISNULL(v.cCount,0)) *1.0 /isnull(v.allCount,0)*100 as decimal(18, 2))
+ else 0 end) as rateV
+ from (select B.ProjectId,p.ProjectCode,p.ProjectName,COUNT(*) as allCount,
+ isnull((select COUNT(*)
+ from ProcessControl_InspectionManagementDetail AS Detail
+ LEFT JOIN WBS_BreakdownProject AS Breakp ON Detail.ControlPointType=Breakp.BreakdownProjectId
+ LEFT JOIN ProcessControl_InspectionManagement AS Inspection ON Detail.InspectionId=Inspection.InspectionId
+ where Breakp.CheckAcceptType =@type AND Inspection.IsOnceQualified = 1
+ group by Breakp.ProjectId),0) as cCount
+ FROM ProcessControl_InspectionManagementDetail AS A
+ LEFT JOIN WBS_BreakdownProject AS B ON A.ControlPointType=B.BreakdownProjectId
+ left join Base_Project as p on B.ProjectId=p.ProjectId
+ where p.projectId is not null AND B.CheckAcceptType =@type ";
+
+ List listStr = new List();
+ listStr.Add(new SqlParameter("@type", this.rbType.SelectedValue));
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND B.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));
+ //}
+ //if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ //{
+ // strSql += " AND h.RegisterDate <=@EndTime";
+ // listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text));
+ //}
+ strSql += " group by B.ProjectId,p.ProjectCode,p.ProjectName) as v";
+ 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
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx.designer.cs
new file mode 100644
index 00000000..d628a759
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx.designer.cs
@@ -0,0 +1,125 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class QualityAcceptance
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// rbType 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbType;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// 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/QualityControlPoint.aspx b/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx
new file mode 100644
index 00000000..5563db0b
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx
@@ -0,0 +1,129 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityControlPoint.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.QualityControlPoint" %>
+
+
+
+
+
+
+
+ 质量控制点
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx.cs
new file mode 100644
index 00000000..8fe601a9
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx.cs
@@ -0,0 +1,200 @@
+using BLL;
+using FineUIPro.Web.BaseInfo;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class QualityControlPoint : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 绑定数据
+ ///
+ 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
+
+ ///
+ /// 总工时数
+ ///
+ ///
+ ///
+ protected int Count1(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ cout1 = getcount(projectId.ToString(), "S");
+ }
+ return cout1;
+ }
+
+ ///
+ /// 损失工时数
+ ///
+ ///
+ ///
+ protected int Count2(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ cout1 = getcount(projectId.ToString(), "A");
+ }
+ return cout1;
+ }
+
+ ///
+ /// 安全工时数
+ ///
+ ///
+ ///
+ protected int Count3(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ cout1= getcount(projectId.ToString(), "B");
+ }
+ return cout1;
+ }
+
+ protected int Count4(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ cout1 = getcount(projectId.ToString(), "C");
+ }
+ return cout1;
+ }
+ ///
+ /// 定义变量
+ ///
+ private static IQueryable getDataLists = from x in Funs.DB.WBS_BreakdownProject
+ select x;
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ private int getcount(string projectId, string level)
+ {
+ int count = 0;
+ count = getDataLists.Where(x => x.ProjectId == projectId && x.Class.Contains(level)).Count();
+ return count;
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx.designer.cs
new file mode 100644
index 00000000..eb094496
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx.designer.cs
@@ -0,0 +1,152 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class QualityControlPoint
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label1;
+
+ ///
+ /// Label4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label4;
+
+ ///
+ /// 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;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx b/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx
new file mode 100644
index 00000000..6ac5fdad
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx
@@ -0,0 +1,121 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityInstruments.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.QualityInstruments" %>
+
+
+
+
+
+
+
+ 计量器具
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx.cs
new file mode 100644
index 00000000..9f6846b5
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx.cs
@@ -0,0 +1,218 @@
+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 QualityInstruments : PageBase
+ {
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+
+ ///
+ /// 绑定数据
+ ///
+ 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("QualityInstrumentsItem.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 getD1 = from x in Funs.DB.Comprehensive_InspectionMachine
+ where x.ProjectId == projectId.ToString() && x.IsOnSite == true && x.InspectionType.Contains("计量")
+ select x;
+ if (datetime1.HasValue)
+ {
+ getD1 = getD1.Where(x => x.CompileDate >= datetime1);
+ }
+ if (datetime2.HasValue)
+ {
+ getD1 = getD1.Where(x => x.CompileDate <= datetime2);
+ }
+
+ cout1 = getD1.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 getD1 = from x in Funs.DB.Comprehensive_InspectionMachine
+ where x.ProjectId == projectId.ToString() && x.IsOnSite == true && x.InspectionType.Contains("计量") && x.IsCheckOK == true
+ select x;
+ if (datetime1.HasValue)
+ {
+ getD1 = getD1.Where(x => x.CompileDate >= datetime1);
+ }
+ if (datetime2.HasValue)
+ {
+ getD1 = getD1.Where(x => x.CompileDate <= datetime2);
+ }
+
+ cout1 = getD1.Count();
+ }
+ return cout1;
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx.designer.cs
new file mode 100644
index 00000000..5287b22b
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx.designer.cs
@@ -0,0 +1,188 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class QualityInstruments
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// 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/QualityInstrumentsItem.aspx b/SGGL/FineUIPro.Web/DataShow/QualityInstrumentsItem.aspx
new file mode 100644
index 00000000..f87ebe4a
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityInstrumentsItem.aspx
@@ -0,0 +1,123 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityInstrumentsItem.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.QualityInstrumentsItem" %>
+
+
+
+
+
+
+
+ 计量器具
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityInstrumentsItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityInstrumentsItem.aspx.cs
new file mode 100644
index 00000000..4a4bd54e
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityInstrumentsItem.aspx.cs
@@ -0,0 +1,130 @@
+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 QualityInstrumentsItem : 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();
+ // 绑定表格
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"select InspectionMachineId, InspectionMachineCode, U.UnitName,CN.ProfessionalName ,Status,
+ InspectionMachineName, SpecificationModel, NextTestDate, TestCycle, C.InspectionDate,
+ (CASE WHEN IsVerification=1 THEN '是' WHEN IsVerification=0 THEN '否' ELSE '' END) AS IsVerification,(CASE WHEN IsCheckOK=1 THEN '是' WHEN IsCheckOK=0 THEN '否' ELSE '' END) AS IsCheckOK, InspectionType, LeaveDate, UnitsCount
+ from Comprehensive_InspectionMachine C
+ left join Base_Unit U on C.UnitId=U.UnitId
+ left join Base_CNProfessional CN on C.CNProfessionalId=CN.CNProfessionalId
+ where C.ProjectId = @ProjectId";
+ List listStr = new List();
+ strSql += " AND C.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"]));
+
+ if (!string.IsNullOrEmpty(txtStartTime.Text.Trim()))
+ {
+ strSql += " AND C.InspectionDate >= @StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text.Trim()));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim()))
+ {
+ strSql += " AND C.InspectionDate <= @EndTime";
+ listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text.Trim()));
+ }
+
+ 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 ConvertPersonWorkTimeSum(object dayReportId)
+ {
+ if (dayReportId != null)
+ {
+ return (Funs.DB.SitePerson_DayReportDetail.Where(x => x.DayReportId == dayReportId.ToString()).Sum(x => x.PersonWorkTime) ?? 0).ToString();
+ }
+ return "";
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityInstrumentsItem.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/QualityInstrumentsItem.aspx.designer.cs
new file mode 100644
index 00000000..c2a12f1c
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityInstrumentsItem.aspx.designer.cs
@@ -0,0 +1,161 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class QualityInstrumentsItem
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// 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;
+
+ ///
+ /// WindowAtt 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window WindowAtt;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx b/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx
new file mode 100644
index 00000000..03d44a3d
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx
@@ -0,0 +1,118 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityPerson.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.QualityPerson" %>
+
+
+
+
+
+
+
+ 质量人员
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs
new file mode 100644
index 00000000..c9fce0e1
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs
@@ -0,0 +1,144 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class QualityPerson : PageBase
+ {
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = string.Empty;
+ List listStr = new List();
+ if (this.rbCom.SelectedValue != "3")
+ {
+ strSql = @"SELECT Person.CompanyBranchPersonId AS ID,Unit.UnitName, Person.PersonName,case Person.Sex when '1' then '男' else '女' end as SexStr
+ ,Person.IdentityCard,WorkPost.WorkPostName,Person.Telephone,Person.IsOnJob,Person.Remark, '' as ProjectName "
+ + @" FROM Person_CompanyBranchPerson AS Person "
+ + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId=Person.UnitId "
+ + @" LEFT JOIN Base_WorkPost AS WorkPost ON Person.WorkPostId=WorkPost.WorkPostId WHERE WorkPost.IsCQMS=1 ";
+ string UnitId = BLL.Const.UnitId_CWCEC;
+ if (this.rbCom.SelectedValue == "1")
+ {
+ strSql += " AND Person.UnitId = @UnitId";
+ }
+ else
+ {
+ strSql += " AND Person.UnitId != @UnitId";
+ }
+ listStr.Add(new SqlParameter("@UnitId", UnitId));
+ this.Grid1.Columns[1].Hidden = true;
+ }
+ else
+ {
+ strSql = @"SELECT Person.PersonId AS ID,Unit.UnitName,Project.ProjectName,Person.PersonName,case Person.Sex when '1' then '男' else '女' end as SexStr,Person.IdentityCard,WorkPost.WorkPostName,Person.Telephone,Person.Remark
+ FROM SitePerson_Person AS Person
+ LEFT JOIN Base_Project AS Project ON Project.ProjectId=Person.ProjectId
+ LEFT JOIN Base_Unit AS Unit ON Unit.UnitId=Person.UnitId
+ LEFT JOIN Base_WorkPost AS WorkPost ON Person.WorkPostId=WorkPost.WorkPostId WHERE WorkPost.IsCQMS=1 ";
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND Person.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+ this.Grid1.Columns[1].Hidden = false;
+ }
+ 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)
+ {
+ if (this.rbCom.SelectedValue == "3")
+ {
+ this.drpProject.Hidden = false;
+ }
+ else
+ {
+ this.drpProject.Hidden = true;
+ }
+ 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
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.designer.cs
new file mode 100644
index 00000000..fd068a50
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.designer.cs
@@ -0,0 +1,125 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class QualityPerson
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// rbCom 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbCom;
+
+ ///
+ /// drpProject 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpProject;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// 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/QualityProblem.aspx b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx
new file mode 100644
index 00000000..248487b7
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx
@@ -0,0 +1,123 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityProblem.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.QualityProblem" %>
+
+
+
+
+
+
+
+ 质量问题
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.cs
new file mode 100644
index 00000000..2d5685f4
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.cs
@@ -0,0 +1,177 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class QualityProblem : PageBase
+ {
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"select NEWID() as ID, v.ProjectId,v.ProjectCode,v.ProjectName,v.allcount,v.ccount,isnull(v.allCount,0)-ISNULL(v.cCount,0) as ucCount,
+ (case when isnull(v.allCount,0) > 0 then cast((isnull(v.allCount,0)-ISNULL(v.cCount,0)) *1.0 /isnull(v.allCount,0)*100 as decimal(18, 2))
+ else 0 end) as rateV
+ from (select h.ProjectId,p.ProjectCode,p.ProjectName,COUNT(*) as allCount,
+ isnull((select COUNT(*) from Check_CheckControl as c
+ where c.ProjectId=h.ProjectId and State =7
+ and '1' = @cpara
+ group by c.ProjectId),0) as cCount
+ from Check_CheckControl as h
+ left join Base_Project as p on h.ProjectId=p.ProjectId
+ where p.projectId is not null ";
+ List listStr = new List();
+ string cpara = string.Empty;
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND h.projectId = @projectId"; ///状态为已完成
+ listStr.Add(new SqlParameter("@projectId", this.drpProject.SelectedValue));
+
+ cpara += " AND c.projectId ="+ this.drpProject.SelectedValue;
+ }
+
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND h.CheckDate >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+
+ cpara += " AND c.CheckDate >=" + this.txtStartTime.Text;
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND h.CheckDate <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text));
+
+ cpara += " AND c.CheckDate <=" + this.txtEndTime.Text;
+ }
+ if (!string.IsNullOrEmpty(cpara))
+ {
+ listStr.Add(new SqlParameter("@cpara"," '1' And "+ cpara));
+ }
+ else
+ {
+ listStr.Add(new SqlParameter("@cpara", "'1'"));
+ }
+ strSql += " group by h.ProjectId,p.ProjectCode,p.ProjectName) as v";
+ 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("QualityProblemItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ #endregion
+
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.designer.cs
new file mode 100644
index 00000000..5c220053
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.designer.cs
@@ -0,0 +1,170 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class QualityProblem
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// 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/QualityProblemItem.aspx b/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx
new file mode 100644
index 00000000..194ea691
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx
@@ -0,0 +1,118 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityProblemItem.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.QualityProblemItem" %>
+
+
+
+
+
+
+
+ 质量问题详细
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx.cs
new file mode 100644
index 00000000..4c5c3773
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx.cs
@@ -0,0 +1,209 @@
+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 QualityProblemItem : 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();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT chec.CheckControlCode,chec.CheckSite,chec.ProjectId,chec.unitId,cNProfessional.ProfessionalName,
+ QualityQuestionType.QualityQuestionType as QuestionType,
+ chec.checkman,chec.CheckDate,chec.DocCode,chec.submitman,chec.state,chec.CNProfessionalCode,
+ unit.UnitName,unitWork.UnitWorkName+(case unitWork.ProjectType when '1' then '(建筑)' else '(安装)' end) as UnitWorkName
+ FROM Check_CheckControl chec
+ left join Base_Unit unit on unit.unitId=chec.unitId
+ left join Base_CNProfessional cNProfessional on cNProfessional.CNProfessionalId=chec.CNProfessionalCode
+ left join WBS_UnitWork unitWork on unitWork.UnitWorkId = chec.UnitWorkId
+ left join Base_QualityQuestionType QualityQuestionType on QualityQuestionType.QualityQuestionTypeId = chec.QuestionType
+ WHERE 1=1 ";
+ List listStr = new List();
+ strSql += " AND chec.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"]));
+
+ strSql += " AND (chec.CheckDate>=@startTime or @startTime='') and (chec.CheckDate<=@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" : ""));
+ if (dpHandelStatus.SelectedValue != "0")
+ {
+ if (dpHandelStatus.SelectedValue.Equals("1"))
+ {
+ strSql += " AND (chec.state='5' or chec.state='6')";
+ }
+ else if (dpHandelStatus.SelectedValue.Equals("2"))
+ {
+ strSql += " AND chec.state='7'";
+ }
+ else if (dpHandelStatus.SelectedValue.Equals("3"))
+ {
+ strSql += " AND DATEADD(day,1,chec.LimitDate)< GETDATE() and chec.state<>5 and chec.state<>6 and chec.state<>7";
+ }
+ else if (dpHandelStatus.SelectedValue.Equals("4"))
+ {
+ strSql += " AND DATEADD(day,1,chec.LimitDate)> GETDATE() and chec.state<>5 and chec.state<>6 and chec.state<>7";
+ }
+ }
+ 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 ConvertImageUrlByImage(object registrationId)
+ {
+ string url = string.Empty;
+ string httpUrl = string.Empty;
+ var sysSet6 = (from x in Funs.DB.Sys_Set where x.SetName == "程序访问地址" select x).ToList().FirstOrDefault();
+ if (sysSet6 != null)
+ {
+ httpUrl = sysSet6.SetValue;
+ }
+ if (registrationId != null)
+ {
+ IList sourlist = AttachFileService.GetBeforeFileList(registrationId.ToString(), BLL.Const.CheckListMenuId);
+
+ if (sourlist != null && sourlist.Count > 0)
+ {
+ string AttachUrl = "";
+ foreach (var item in sourlist)
+ {
+ if (!string.IsNullOrEmpty(item.AttachUrl) && item.AttachUrl.ToLower().EndsWith(".jpg") || item.AttachUrl.ToLower().EndsWith(".jpeg") || item.AttachUrl.ToLower().EndsWith(".png"))
+ AttachUrl += item.AttachUrl.TrimEnd(',') + ",";
+ }
+ url = BLL.UploadAttachmentService.ShowImage(httpUrl, AttachUrl.TrimEnd(','));
+ }
+ }
+ return url;
+ }
+ protected string ConvertImgUrlByImage(object registrationId)
+ {
+ string url = string.Empty;
+ string httpUrl = string.Empty;
+ var sysSet6 = (from x in Funs.DB.Sys_Set where x.SetName == "程序访问地址" select x).ToList().FirstOrDefault();
+ if (sysSet6 != null)
+ {
+ httpUrl = sysSet6.SetValue;
+ }
+ if (registrationId != null)
+ {
+ IList sourlist = AttachFileService.Getfilelist(registrationId.ToString() + "r", BLL.Const.CheckListMenuId);
+
+ if (sourlist != null && sourlist.Count > 0)
+ {
+ string AttachUrl = "";
+ foreach (var item in sourlist)
+ {
+ if (!string.IsNullOrEmpty(item.AttachUrl) && item.AttachUrl.ToLower().EndsWith(".jpg") || item.AttachUrl.ToLower().EndsWith(".jpeg") || item.AttachUrl.ToLower().EndsWith(".png"))
+ AttachUrl += item.AttachUrl.TrimEnd(',') + ",";
+ }
+ url = BLL.UploadAttachmentService.ShowImage(httpUrl, AttachUrl.TrimEnd(','));
+ }
+ }
+ return url;
+ }
+
+ public string Convertstatus(Object code)
+ {
+ Model.Check_CheckControl checkControl = BLL.CheckControlService.GetCheckControl(code.ToString());
+ if (checkControl.State.Equals("5") || checkControl.State.Equals("6"))
+ {
+ return "未确认";
+ }
+ else if (checkControl.State == Const.CheckControl_Complete)
+ { //闭环
+ return "已闭环";
+ }
+ //else if( checkControl.LimitDate> )
+ else if (Convert.ToDateTime(checkControl.LimitDate).AddDays(1) < DateTime.Now) //延期未整改
+ {
+ return "超期未整改";
+
+ }
+ else //期内未整改
+ {
+ return "未整改";
+
+ }
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx.designer.cs
new file mode 100644
index 00000000..d9377d68
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx.designer.cs
@@ -0,0 +1,179 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class QualityProblemItem
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// dpHandelStatus 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList dpHandelStatus;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// lbImageUrl 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lbImageUrl;
+
+ ///
+ /// lbImageUrl2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lbImageUrl2;
+
+ ///
+ /// lbState2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lbState2;
+
+ ///
+ /// 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/QualityTraining.aspx b/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx
new file mode 100644
index 00000000..0836f4a6
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx
@@ -0,0 +1,121 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityTraining.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.QualityTraining" %>
+
+
+
+
+
+
+
+ 质量培训
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx.cs
new file mode 100644
index 00000000..8a11f4c8
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx.cs
@@ -0,0 +1,214 @@
+using Aspose.Words;
+using BLL;
+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 QualityTraining : PageBase
+ {
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+
+ ///
+ /// 绑定数据
+ ///
+ 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;
+ }
+ if (this.rbCom.SelectedValue == "1")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("QualityTrainingItem1.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ else
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("QualityTrainingItem2.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);
+ if (this.rbCom.SelectedValue == "1")
+ {
+ var getT = Funs.DB.Comprehensive_InspectionPerson.Where(x => x.ProjectId == projectId.ToString() && x.IsTrain == true);
+ if (datetime1.HasValue)
+ {
+ getT = getT.Where(x => x.CompileDate >= datetime1);
+ }
+ if (datetime2.HasValue)
+ {
+ getT = getT.Where(x => x.CompileDate <= datetime2);
+ }
+ cout1 = getT.Count();
+ }
+ else
+ {
+ var getT = Funs.DB.Comprehensive_DesignDetails.Where(x => x.ProjectId == projectId.ToString());
+ if (datetime1.HasValue)
+ {
+ getT = getT.Where(x => x.CompileDate >= datetime1);
+ }
+ if (datetime2.HasValue)
+ {
+ getT = getT.Where(x => x.CompileDate <= datetime2);
+ }
+ if (getT.Count() > 0)
+ {
+ cout1 = getT.Sum(x => x.JoinPersonNum ?? 0);
+ }
+ }
+ }
+ return cout1;
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx.designer.cs
new file mode 100644
index 00000000..3ac9ca04
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx.designer.cs
@@ -0,0 +1,188 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class QualityTraining
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// rbCom 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbCom;
+
+ ///
+ /// 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/QualityTrainingItem1.aspx b/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem1.aspx
new file mode 100644
index 00000000..8802be55
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem1.aspx
@@ -0,0 +1,127 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityTrainingItem1.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.QualityTrainingItem1" %>
+
+
+
+
+
+
+
+ 质量培训
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem1.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem1.aspx.cs
new file mode 100644
index 00000000..c3a38788
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem1.aspx.cs
@@ -0,0 +1,150 @@
+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 QualityTrainingItem1 : 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();
+ // 绑定表格
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"select InspectionPersonId, InspectionPersonCode, PersonName, Status,
+ CertificateNumber, QualifiedProjectCode, ValidityDate, ApprovalTime,
+ DepartureTime, AttachUrl,CompileMan, CompileDate,
+ IsOnSite, UnitWorkId,U.UnitName,CN.ProfessionalName ,P.WorkPostName as PostName
+ from Comprehensive_InspectionPerson C
+ left join Base_Unit U on C.UnitId=U.UnitId
+ left join Base_CNProfessional CN on C.CNProfessionalId=CN.CNProfessionalId
+ left join Base_WorkPost P on C.PostId=P.WorkPostId
+ where C.ProjectId = @ProjectId";
+ List listStr = new List();
+ strSql += " AND C.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"]));
+
+ if (!string.IsNullOrEmpty(txtStartTime.Text.Trim()))
+ {
+ strSql += " AND C.CompileDate >= @StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text.Trim()));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim()))
+ {
+ strSql += " AND C.CompileDate <= @EndTime";
+ listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text.Trim()));
+ }
+
+ 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
+
+ #region 格式化字符串
+ ///
+ /// 获取单位工程名称
+ ///
+ ///
+ ///
+ protected string ConvertUnitWork(object CarryUnitWorks)
+ {
+ string CarryUnitWorkName = string.Empty;
+ if (CarryUnitWorks != null)
+ {
+ string[] Ids = CarryUnitWorks.ToString().Split(',');
+ foreach (string t in Ids)
+ {
+ var UnitWork = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(t);
+ if (UnitWork != null)
+ {
+ CarryUnitWorkName += UnitWork.UnitWorkName + ",";
+ }
+ }
+ }
+ if (CarryUnitWorkName != string.Empty)
+ {
+ return CarryUnitWorkName.Substring(0, CarryUnitWorkName.Length - 1);
+ }
+ else
+ {
+ return "";
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem1.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem1.aspx.designer.cs
new file mode 100644
index 00000000..74f0bacb
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem1.aspx.designer.cs
@@ -0,0 +1,170 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class QualityTrainingItem1
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// Label2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label2;
+
+ ///
+ /// 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;
+
+ ///
+ /// WindowAtt 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window WindowAtt;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem2.aspx b/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem2.aspx
new file mode 100644
index 00000000..4af1b43b
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem2.aspx
@@ -0,0 +1,106 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityTrainingItem2.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.QualityTrainingItem2" %>
+
+
+
+
+
+
+
+ 质量培训
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem2.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem2.aspx.cs
new file mode 100644
index 00000000..c79981bc
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem2.aspx.cs
@@ -0,0 +1,176 @@
+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 QualityTrainingItem2 : 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();
+ // 绑定表格
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"select DesignDetailsId,DesignDetailsCode, DetailsMan, DetailsDate, UnitWorkId,Status,
+ UnitName, AttachUrl, CompileMan, CN.ProfessionalName
+ from Comprehensive_DesignDetails C
+ left join Base_CNProfessional CN on C.CNProfessionalId=CN.CNProfessionalId
+ where C.ProjectId = @ProjectId";
+ List listStr = new List();
+ strSql += " AND C.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"]));
+
+ if (!string.IsNullOrEmpty(txtStartTime.Text.Trim()))
+ {
+ strSql += " AND C.DetailsDate >= @StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text.Trim()));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim()))
+ {
+ strSql += " AND C.DetailsDate <= @EndTime";
+ listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text.Trim()));
+ }
+
+ 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
+
+ #region 格式化字符串
+ ///
+ /// 获取单位工程名称
+ ///
+ ///
+ ///
+ protected string ConvertUnitWork(object CarryUnitWorks)
+ {
+ string CarryUnitWorkName = string.Empty;
+ if (CarryUnitWorks != null)
+ {
+ string[] Ids = CarryUnitWorks.ToString().Split(',');
+ foreach (string t in Ids)
+ {
+ var UnitWork = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(t);
+ if (UnitWork != null)
+ {
+ CarryUnitWorkName += UnitWork.UnitWorkName + ",";
+ }
+ }
+ }
+ if (CarryUnitWorkName != string.Empty)
+ {
+ return CarryUnitWorkName.Substring(0, CarryUnitWorkName.Length - 1);
+ }
+ else
+ {
+ return "";
+ }
+ }
+
+ ///
+ /// 获取单位名称
+ ///
+ ///
+ ///
+ protected string ConvertCarryUnit(object CarryUnitIds)
+ {
+ string CarryUnitName = string.Empty;
+ if (CarryUnitIds != null)
+ {
+ string[] Ids = CarryUnitIds.ToString().Split(',');
+ foreach (string t in Ids)
+ {
+ var type = BLL.UnitService.GetUnitByUnitId(t);
+ if (type != null)
+ {
+ CarryUnitName += type.UnitName + ",";
+ }
+ }
+ }
+ if (CarryUnitName != string.Empty)
+ {
+ return CarryUnitName.Substring(0, CarryUnitName.Length - 1);
+ }
+ else
+ {
+ return "";
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem2.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem2.aspx.designer.cs
new file mode 100644
index 00000000..5def9f8c
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/QualityTrainingItem2.aspx.designer.cs
@@ -0,0 +1,179 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class QualityTrainingItem2
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// 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;
+
+ ///
+ /// 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;
+
+ ///
+ /// WindowAtt 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window WindowAtt;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx b/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx
new file mode 100644
index 00000000..2dcaa379
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx
@@ -0,0 +1,126 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SecurityCost.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.SecurityCost" %>
+
+
+
+
+
+
+
+ 安全费用
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx.cs b/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx.cs
new file mode 100644
index 00000000..b94246ad
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx.cs
@@ -0,0 +1,159 @@
+using BLL;
+using Model;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class SecurityCost : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ // btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = string.Empty;
+ List listStr = new List();
+
+ strSql = @"SELECT cost.CostSmallDetailId, p.ProjectId,p.ProjectCode,p.ProjectName,cost.UnitId,Unit.UnitName,cost.Months
+ ,(CAST((SELECT SUM(ISNULL(CostMoney,0)) FROM CostGoods_CostSmallDetailItem
+ WHERE CostSmallDetailId=cost.CostSmallDetailId) *1.0 /10000 as decimal(18, 2) ))AS SUMCost
+ FROM CostGoods_CostSmallDetail as cost
+ left join Base_Project as p on cost.ProjectId =p.ProjectId
+ left join Base_Unit as Unit on cost.UnitId =Unit.UnitId
+ WHERE 1=1";
+
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND cost.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
+ if (!string.IsNullOrEmpty(this.txtStartTime.Text))
+ {
+ strSql += " AND cost.Months >=@StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text))
+ {
+ strSql += " AND cost.Months <=@EndTime";
+ listStr.Add(new SqlParameter("@EndTime", 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("../HSSE/CostGoods/CostSmallDetailView.aspx?CostSmallDetailId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ #endregion
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx.designer.cs
new file mode 100644
index 00000000..cf334106
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx.designer.cs
@@ -0,0 +1,179 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class SecurityCost
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// rbType 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbType;
+
+ ///
+ /// 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;
+
+ ///
+ /// 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/SecurityRisk.aspx b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx
new file mode 100644
index 00000000..fcc62310
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx
@@ -0,0 +1,131 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SecurityRisk.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.SecurityRisk" %>
+
+
+
+
+
+
+
+ 安全风险
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs
new file mode 100644
index 00000000..ace6f7b4
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs
@@ -0,0 +1,248 @@
+using BLL;
+using FineUIPro.Web.BaseInfo;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class SecurityRisk : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 绑定数据
+ ///
+ 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("SecurityRiskItem.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)
+ {
+ cout1 = getcount(projectId.ToString(), 1);
+ }
+ return cout1;
+ }
+
+ ///
+ /// 损失工时数
+ ///
+ ///
+ ///
+ protected int Count2(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ cout1 = getcount(projectId.ToString(),2);
+ }
+ return cout1;
+ }
+
+ ///
+ /// 安全工时数
+ ///
+ ///
+ ///
+ protected int Count3(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ cout1= getcount(projectId.ToString(), 3);
+ }
+ return cout1;
+ }
+
+ protected int Count4(object projectId)
+ {
+ int cout1 = 0;
+ if (projectId != null)
+ {
+ cout1 = getcount(projectId.ToString(), 4);
+ }
+ return cout1;
+ }
+ ///
+ /// 定义变量
+ ///
+ private static IQueryable getDataLists = from x in Funs.DB.Hazard_HazardList
+ select x;
+ ///
+ /// 定义变量
+ ///
+ private static IQueryable getDataItemLists = from x in Funs.DB.Hazard_HazardSelectedItem
+ where x.IsStart == true
+ select x;
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ private int getcount(string projectId, int level)
+ {
+ int count = 0;
+ var getlevel = Funs.DB.Base_RiskLevel.FirstOrDefault(x => x.RiskLevel == level);
+ if (getlevel != null)
+ {
+ count = getDataItemLists.Where(x => x.ProjectId == projectId && x.HazardLevel == getlevel.RiskLevelId).Count();
+ }
+ return count;
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.designer.cs
new file mode 100644
index 00000000..531461aa
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.designer.cs
@@ -0,0 +1,179 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class SecurityRisk
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label1;
+
+ ///
+ /// Label4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label4;
+
+ ///
+ /// 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/SecurityRiskItem.aspx b/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx
new file mode 100644
index 00000000..719a7784
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx
@@ -0,0 +1,134 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SecurityRiskItem.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.SecurityRiskItem" %>
+
+
+
+
+
+
+
+ 安全工时
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx.cs
new file mode 100644
index 00000000..8831ee44
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx.cs
@@ -0,0 +1,212 @@
+using Aspose.Words;
+using BLL;
+using FineUIPro.Web.BaseInfo;
+using Model;
+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 SecurityRiskItem : 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();
+ // 绑定表格
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"select Item.HazardSelectedItemId,Item.HazardListId,List.IdentificationDate,List.WorkAreaName,Item.WorkStage,Item.HazardListTypeId
+ , Item.HazardListTypeId,Item.HazardId,Item.HazardItems,Item.DefectsType,Item.MayLeadAccidents
+ ,Item.HelperMethod,Item.HazardJudge_L,Item.HazardJudge_E,Item.HazardJudge_C,Item.HazardJudge_E
+ ,level.RiskLevelName,Item.ControlMeasures
+ from Hazard_HazardSelectedItem AS Item
+ LEFT JOIN Hazard_HazardList AS List on List.HazardListId = Item.HazardListId
+ LEFT JOIN Base_RiskLevel as level on level.RiskLevelId = Item.HazardLevel
+ WHERE List.States = " + BLL.Const.State_2;
+ List listStr = new List();
+ strSql += " AND List.ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"]));
+ if (!string.IsNullOrEmpty(txtStartTime.Text.Trim()))
+ {
+ strSql += " AND List.IdentificationDate >= @StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text.Trim()));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim()))
+ {
+ strSql += " AND List.IdentificationDate <= @EndTime";
+ listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text.Trim()));
+ }
+ 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
+
+
+ #region 转换字符串
+ ///
+ /// 转换工作阶段
+ ///
+ ///
+ ///
+ protected string ConvertWorkStage(object workStage)
+ {
+ if (workStage != null)
+ {
+ string workStages = string.Empty;
+ string[] strList = workStage.ToString().Split(',');
+ foreach (string str in strList)
+ {
+ Model.Base_WorkStage c = BLL.WorkStageService.GetWorkStageById(str);
+ if (c != null)
+ {
+ workStages += c.WorkStageName + ",";
+ }
+ }
+ if (!string.IsNullOrEmpty(workStages))
+ {
+ workStages = workStages.Substring(0, workStages.LastIndexOf(","));
+ }
+ return workStages;
+ }
+ return "";
+ }
+
+ ///
+ /// 获取危险源编号
+ ///
+ ///
+ ///
+ protected string ConvertHazardCode(object HazardId)
+ {
+ string hazardCode = string.Empty;
+ if (HazardId != null)
+ {
+ Model.Technique_HazardList hazardList = BLL.HazardListService.GetHazardListById(HazardId.ToString());
+ if (hazardList != null)
+ {
+ hazardCode = hazardList.HazardCode;
+ }
+ }
+ return hazardCode;
+ }
+
+ ///
+ /// 获取危险源类别
+ ///
+ ///
+ ///
+ protected string ConvertSupHazardListTypeId(object hazardListTypeId)
+ {
+ if (hazardListTypeId != null)
+ {
+ Model.Technique_HazardListType hazardListType = BLL.HazardListTypeService.GetHazardListTypeById(hazardListTypeId.ToString());
+ if (hazardListType != null)
+ {
+ var hazard = BLL.HazardListTypeService.GetHazardListTypeById(hazardListType.SupHazardListTypeId);
+ if (hazard != null)
+ {
+ return hazard.HazardListTypeName;
+ }
+ }
+ }
+ return null;
+ }
+
+ ///
+ /// 获取危险源项
+ ///
+ ///
+ ///
+ protected string ConvertHazardListTypeId(object hazardListTypeId)
+ {
+ if (hazardListTypeId != null)
+ {
+ Model.Technique_HazardListType hazardListType = BLL.HazardListTypeService.GetHazardListTypeById(hazardListTypeId.ToString());
+ if (hazardListType != null)
+ {
+ return hazardListType.HazardListTypeName;
+ }
+ }
+ return null;
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx.designer.cs
new file mode 100644
index 00000000..a2ef7d65
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx.designer.cs
@@ -0,0 +1,179 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class SecurityRiskItem
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// Label2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label2;
+
+ ///
+ /// Label4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label4;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label1;
+
+ ///
+ /// lblHazardId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lblHazardId;
+
+ ///
+ /// 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/WorkingHours.aspx b/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx
new file mode 100644
index 00000000..d3420f13
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx
@@ -0,0 +1,125 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkingHours.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.WorkingHours" %>
+
+
+
+
+
+
+
+ 安全工时
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx.cs b/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx.cs
new file mode 100644
index 00000000..c232f3c5
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx.cs
@@ -0,0 +1,298 @@
+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 WorkingHours : PageBase
+ {
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ // 绑定表格t
+ BindGrid();
+ }
+ }
+
+
+ ///
+ /// 绑定数据
+ ///
+ 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("WorkingHoursItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ #endregion
+
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+
+
+ ///
+ /// 总工时数
+ ///
+ ///
+ ///
+ protected decimal Count1(object projectId)
+ {
+ decimal cout1 = 0;
+ if (projectId != null)
+ {
+ var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var getD1 = from x in Funs.DB.SitePerson_DayReport
+ join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
+ where y.ProjectState == Const.ProjectState_1
+ select x;
+ if (datetime1.HasValue)
+ {
+ getD1 = getD1.Where(x => x.CompileDate >= datetime1);
+ }
+ if (datetime2.HasValue)
+ {
+ getD1 = getD1.Where(x => x.CompileDate <= datetime2);
+ }
+ var getC = from x in Funs.DB.SitePerson_DayReportDetail
+ join y in getD1 on x.DayReportId equals y.DayReportId
+ where y.ProjectId == projectId.ToString()
+ select x;
+ if (getC.Count() > 0)
+ {
+ cout1 = getC.Sum(x => x.PersonWorkTime ?? 0);
+ }
+ }
+ return cout1;
+ }
+
+ ///
+ /// 损失工时数
+ ///
+ ///
+ ///
+ protected decimal Count2(object projectId)
+ {
+ decimal cout1 = 0;
+ if (projectId != null)
+ {
+ var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var getD1 = from x in Funs.DB.Accident_AccidentHandle
+ join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
+ where y.ProjectState == Const.ProjectState_1
+ select x;
+ var getD2 = from x in Funs.DB.Accident_AccidentReport
+ join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
+ where y.ProjectState == Const.ProjectState_1
+ select x;
+ if (datetime1.HasValue)
+ {
+ getD1 = getD1.Where(x => x.AccidentDate >= datetime1);
+ getD2 = getD2.Where(x => x.CompileDate >= datetime1);
+ }
+ if (datetime2.HasValue)
+ {
+ getD1 = getD1.Where(x => x.AccidentDate <= datetime2);
+ getD2 = getD2.Where(x => x.CompileDate <= datetime2);
+ }
+ if (getD1.Count() > 0)
+ {
+ cout1 += getD1.Sum(x => x.WorkHoursLoss ?? 0);
+ }
+ if (getD2.Count() > 0)
+ {
+ cout1 += getD2.Sum(x => x.WorkingHoursLoss ?? 0);
+ }
+ }
+ return cout1;
+ }
+
+ ///
+ /// 安全工时数
+ ///
+ ///
+ ///
+ protected decimal Count3(object projectId)
+ {
+ decimal cout1 = 0;
+ if (projectId != null)
+ {
+ var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
+ var getC1 = from x in Funs.DB.SitePerson_DayReport
+ join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
+ where y.ProjectState == Const.ProjectState_1
+ select x;
+
+ var getD1 = from x in Funs.DB.Accident_AccidentHandle
+ join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
+ where y.ProjectState == Const.ProjectState_1
+ select x;
+ var getD2 = from x in Funs.DB.Accident_AccidentReport
+ join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
+ where y.ProjectState == Const.ProjectState_1
+ select x;
+
+ if (datetime1.HasValue)
+ {
+ getC1 = getC1.Where(x => x.CompileDate >= datetime1);
+ getD1 = getD1.Where(x => x.AccidentDate >= datetime1);
+ getD2 = getD2.Where(x => x.CompileDate >= datetime1);
+ }
+ if (datetime2.HasValue)
+ {
+ getC1 = getC1.Where(x => x.CompileDate <= datetime2);
+ getD1 = getD1.Where(x => x.AccidentDate <= datetime2);
+ getD2 = getD2.Where(x => x.CompileDate <= datetime2);
+ }
+ var getC = from x in Funs.DB.SitePerson_DayReportDetail
+ join y in getC1 on x.DayReportId equals y.DayReportId
+ where y.ProjectId == projectId.ToString()
+ select x;
+ if (getC.Count() > 0)
+ {
+ cout1 = getC.Sum(x => x.PersonWorkTime ?? 0);
+ }
+
+ if (getD1.Count() > 0)
+ {
+ cout1 = cout1 -getD1.Sum(x => x.WorkHoursLoss ?? 0);
+ }
+ if (getD2.Count() > 0)
+ {
+ cout1 = cout1- getD2.Sum(x => x.WorkingHoursLoss ?? 0);
+ }
+ }
+ return cout1;
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx.designer.cs
new file mode 100644
index 00000000..1f9e1eb8
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx.designer.cs
@@ -0,0 +1,197 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class WorkingHours
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// Label4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label4;
+
+ ///
+ /// 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/WorkingHoursItem.aspx b/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx
new file mode 100644
index 00000000..54435244
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx
@@ -0,0 +1,84 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkingHoursItem.aspx.cs"
+ Inherits="FineUIPro.Web.DataShow.WorkingHoursItem" %>
+
+
+
+
+
+
+
+ 安全工时
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx.cs
new file mode 100644
index 00000000..22fdd1bb
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx.cs
@@ -0,0 +1,124 @@
+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 WorkingHoursItem : 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();
+ // 绑定表格
+ BindGrid();
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"select DayReportId,CompileDate,ProjectId from SitePerson_DayReport WHERE 1=1 ";
+ List listStr = new List();
+ strSql += " AND ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"]));
+
+ if (!string.IsNullOrEmpty(txtStartTime.Text.Trim()))
+ {
+ strSql += " AND CompileDate >= @StartTime";
+ listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text.Trim()));
+ }
+ if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim()))
+ {
+ strSql += " AND CompileDate <= @EndTime";
+ listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text.Trim()));
+ }
+
+ 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 ConvertPersonWorkTimeSum(object dayReportId)
+ {
+ if (dayReportId != null)
+ {
+ return (Funs.DB.SitePerson_DayReportDetail.Where(x => x.DayReportId == dayReportId.ToString()).Sum(x => x.PersonWorkTime) ?? 0).ToString();
+ }
+ return "";
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx.designer.cs
new file mode 100644
index 00000000..6b77216f
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx.designer.cs
@@ -0,0 +1,152 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow
+{
+
+
+ public partial class WorkingHoursItem
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// lblWorkTime 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lblWorkTime;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 689ae4d0..2191594d 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -478,6 +478,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -7612,6 +7647,251 @@
WorkPackageSet2In.aspx
+
+ Accident.aspx
+ ASPXCodeBehind
+
+
+ Accident.aspx
+
+
+ Check.aspx
+ ASPXCodeBehind
+
+
+ Check.aspx
+
+
+ CompanyPerson.aspx
+ ASPXCodeBehind
+
+
+ CompanyPerson.aspx
+
+
+ ConstructionEquipment.aspx
+ ASPXCodeBehind
+
+
+ ConstructionEquipment.aspx
+
+
+ EduTrain.aspx
+ ASPXCodeBehind
+
+
+ EduTrain.aspx
+
+
+ Emergency.aspx
+ ASPXCodeBehind
+
+
+ Emergency.aspx
+
+
+ Environmental.aspx
+ ASPXCodeBehind
+
+
+ Environmental.aspx
+
+
+ HiddenRectification.aspx
+ ASPXCodeBehind
+
+
+ HiddenRectification.aspx
+
+
+ HiddenRectificationItem.aspx
+ ASPXCodeBehind
+
+
+ HiddenRectificationItem.aspx
+
+
+ HJGLDefect.aspx
+ ASPXCodeBehind
+
+
+ HJGLDefect.aspx
+
+
+ HJGLWelder.aspx
+ ASPXCodeBehind
+
+
+ HJGLWelder.aspx
+
+
+ HJGLWelding.aspx
+ ASPXCodeBehind
+
+
+ HJGLWelding.aspx
+
+
+ HJGLWeldingItem.aspx
+ ASPXCodeBehind
+
+
+ HJGLWeldingItem.aspx
+
+
+ LargeEngineering.aspx
+ ASPXCodeBehind
+
+
+ LargeEngineering.aspx
+
+
+ LargeEngineeringItem.aspx
+ ASPXCodeBehind
+
+
+ LargeEngineeringItem.aspx
+
+
+ License.aspx
+ ASPXCodeBehind
+
+
+ License.aspx
+
+
+ Meeting.aspx
+ ASPXCodeBehind
+
+
+ Meeting.aspx
+
+
+ Project.aspx
+ ASPXCodeBehind
+
+
+ Project.aspx
+
+
+ ProjectDivision.aspx
+ ASPXCodeBehind
+
+
+ ProjectDivision.aspx
+
+
+ ProjectPerson.aspx
+ ASPXCodeBehind
+
+
+ ProjectPerson.aspx
+
+
+ QualityAcceptance.aspx
+ ASPXCodeBehind
+
+
+ QualityAcceptance.aspx
+
+
+ QualityControlPoint.aspx
+ ASPXCodeBehind
+
+
+ QualityControlPoint.aspx
+
+
+ QualityInstruments.aspx
+ ASPXCodeBehind
+
+
+ QualityInstruments.aspx
+
+
+ QualityInstrumentsItem.aspx
+ ASPXCodeBehind
+
+
+ QualityInstrumentsItem.aspx
+
+
+ QualityPerson.aspx
+ ASPXCodeBehind
+
+
+ QualityPerson.aspx
+
+
+ QualityProblem.aspx
+ ASPXCodeBehind
+
+
+ QualityProblem.aspx
+
+
+ QualityProblemItem.aspx
+ ASPXCodeBehind
+
+
+ QualityProblemItem.aspx
+
+
+ QualityTraining.aspx
+ ASPXCodeBehind
+
+
+ QualityTraining.aspx
+
+
+ QualityTrainingItem1.aspx
+ ASPXCodeBehind
+
+
+ QualityTrainingItem1.aspx
+
+
+ QualityTrainingItem2.aspx
+ ASPXCodeBehind
+
+
+ QualityTrainingItem2.aspx
+
+
+ SecurityCost.aspx
+ ASPXCodeBehind
+
+
+ SecurityCost.aspx
+
+
+ SecurityRisk.aspx
+ ASPXCodeBehind
+
+
+ SecurityRisk.aspx
+
+
+ SecurityRiskItem.aspx
+ ASPXCodeBehind
+
+
+ SecurityRiskItem.aspx
+
+
+ WorkingHours.aspx
+ ASPXCodeBehind
+
+
+ WorkingHours.aspx
+
+
+ WorkingHoursItem.aspx
+ ASPXCodeBehind
+
+
+ WorkingHoursItem.aspx
+
HSEDataCollect.aspx
ASPXCodeBehind
diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs
index 2257135b..65f7c79d 100644
--- a/SGGL/Model/Model.cs
+++ b/SGGL/Model/Model.cs
@@ -191,6 +191,9 @@ namespace Model
partial void InsertBase_QuestionType(Base_QuestionType instance);
partial void UpdateBase_QuestionType(Base_QuestionType instance);
partial void DeleteBase_QuestionType(Base_QuestionType instance);
+ partial void InsertBase_RiskLevel(Base_RiskLevel instance);
+ partial void UpdateBase_RiskLevel(Base_RiskLevel instance);
+ partial void DeleteBase_RiskLevel(Base_RiskLevel instance);
partial void InsertBase_RulesRegulationsType(Base_RulesRegulationsType instance);
partial void UpdateBase_RulesRegulationsType(Base_RulesRegulationsType instance);
partial void DeleteBase_RulesRegulationsType(Base_RulesRegulationsType instance);
@@ -2626,6 +2629,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table Base_RiskLevel
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Base_RulesRegulationsType
{
get
@@ -32657,6 +32668,236 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_RiskLevel")]
+ public partial class Base_RiskLevel : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _RiskLevelId;
+
+ private System.Nullable _RiskLevel;
+
+ private string _RiskLevelName;
+
+ private System.Nullable _MinValue;
+
+ private System.Nullable _MaxValue;
+
+ private string _ControlMeasures;
+
+ private System.Nullable _Days;
+
+ private string _Remark;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnRiskLevelIdChanging(string value);
+ partial void OnRiskLevelIdChanged();
+ partial void OnRiskLevelChanging(System.Nullable value);
+ partial void OnRiskLevelChanged();
+ partial void OnRiskLevelNameChanging(string value);
+ partial void OnRiskLevelNameChanged();
+ partial void OnMinValueChanging(System.Nullable value);
+ partial void OnMinValueChanged();
+ partial void OnMaxValueChanging(System.Nullable value);
+ partial void OnMaxValueChanged();
+ partial void OnControlMeasuresChanging(string value);
+ partial void OnControlMeasuresChanged();
+ partial void OnDaysChanging(System.Nullable value);
+ partial void OnDaysChanged();
+ partial void OnRemarkChanging(string value);
+ partial void OnRemarkChanged();
+ #endregion
+
+ public Base_RiskLevel()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RiskLevelId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string RiskLevelId
+ {
+ get
+ {
+ return this._RiskLevelId;
+ }
+ set
+ {
+ if ((this._RiskLevelId != value))
+ {
+ this.OnRiskLevelIdChanging(value);
+ this.SendPropertyChanging();
+ this._RiskLevelId = value;
+ this.SendPropertyChanged("RiskLevelId");
+ this.OnRiskLevelIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RiskLevel", DbType="Int")]
+ public System.Nullable RiskLevel
+ {
+ get
+ {
+ return this._RiskLevel;
+ }
+ set
+ {
+ if ((this._RiskLevel != value))
+ {
+ this.OnRiskLevelChanging(value);
+ this.SendPropertyChanging();
+ this._RiskLevel = value;
+ this.SendPropertyChanged("RiskLevel");
+ this.OnRiskLevelChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RiskLevelName", DbType="NVarChar(50)")]
+ public string RiskLevelName
+ {
+ get
+ {
+ return this._RiskLevelName;
+ }
+ set
+ {
+ if ((this._RiskLevelName != value))
+ {
+ this.OnRiskLevelNameChanging(value);
+ this.SendPropertyChanging();
+ this._RiskLevelName = value;
+ this.SendPropertyChanged("RiskLevelName");
+ this.OnRiskLevelNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MinValue", DbType="Int")]
+ public System.Nullable MinValue
+ {
+ get
+ {
+ return this._MinValue;
+ }
+ set
+ {
+ if ((this._MinValue != value))
+ {
+ this.OnMinValueChanging(value);
+ this.SendPropertyChanging();
+ this._MinValue = value;
+ this.SendPropertyChanged("MinValue");
+ this.OnMinValueChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaxValue", DbType="Int")]
+ public System.Nullable MaxValue
+ {
+ get
+ {
+ return this._MaxValue;
+ }
+ set
+ {
+ if ((this._MaxValue != value))
+ {
+ this.OnMaxValueChanging(value);
+ this.SendPropertyChanging();
+ this._MaxValue = value;
+ this.SendPropertyChanged("MaxValue");
+ this.OnMaxValueChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ControlMeasures", DbType="NVarChar(500)")]
+ public string ControlMeasures
+ {
+ get
+ {
+ return this._ControlMeasures;
+ }
+ set
+ {
+ if ((this._ControlMeasures != value))
+ {
+ this.OnControlMeasuresChanging(value);
+ this.SendPropertyChanging();
+ this._ControlMeasures = value;
+ this.SendPropertyChanged("ControlMeasures");
+ this.OnControlMeasuresChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Days", DbType="Int")]
+ public System.Nullable Days
+ {
+ get
+ {
+ return this._Days;
+ }
+ set
+ {
+ if ((this._Days != value))
+ {
+ this.OnDaysChanging(value);
+ this.SendPropertyChanging();
+ this._Days = value;
+ this.SendPropertyChanged("Days");
+ this.OnDaysChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(100)")]
+ public string Remark
+ {
+ get
+ {
+ return this._Remark;
+ }
+ set
+ {
+ if ((this._Remark != value))
+ {
+ this.OnRemarkChanging(value);
+ this.SendPropertyChanging();
+ this._Remark = value;
+ this.SendPropertyChanged("Remark");
+ this.OnRemarkChanged();
+ }
+ }
+ }
+
+ 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.Base_RulesRegulationsType")]
public partial class Base_RulesRegulationsType : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -81867,6 +82108,8 @@ namespace Model
private System.Nullable _CompileDate;
+ private System.Nullable _JoinPersonNum;
+
private EntityRef _Base_Project;
private EntityRef _Sys_User;
@@ -81897,6 +82140,8 @@ namespace Model
partial void OnCompileManChanged();
partial void OnCompileDateChanging(System.Nullable value);
partial void OnCompileDateChanged();
+ partial void OnJoinPersonNumChanging(System.Nullable value);
+ partial void OnJoinPersonNumChanged();
#endregion
public Comprehensive_DesignDetails()
@@ -82134,6 +82379,26 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JoinPersonNum", DbType="Int")]
+ public System.Nullable JoinPersonNum
+ {
+ get
+ {
+ return this._JoinPersonNum;
+ }
+ set
+ {
+ if ((this._JoinPersonNum != value))
+ {
+ this.OnJoinPersonNumChanging(value);
+ this.SendPropertyChanging();
+ this._JoinPersonNum = value;
+ this.SendPropertyChanged("JoinPersonNum");
+ this.OnJoinPersonNumChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Comprehensive_DesignDetails_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
@@ -84158,6 +84423,8 @@ namespace Model
private System.Nullable _UnitsCount;
+ private System.Nullable _IsCheckOK;
+
private EntityRef _Base_CNProfessional;
private EntityRef _Base_Project;
@@ -84204,6 +84471,8 @@ namespace Model
partial void OnLeaveDateChanged();
partial void OnUnitsCountChanging(System.Nullable value);
partial void OnUnitsCountChanged();
+ partial void OnIsCheckOKChanging(System.Nullable value);
+ partial void OnIsCheckOKChanged();
#endregion
public Comprehensive_InspectionMachine()
@@ -84586,6 +84855,26 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsCheckOK", DbType="Bit")]
+ public System.Nullable IsCheckOK
+ {
+ get
+ {
+ return this._IsCheckOK;
+ }
+ set
+ {
+ if ((this._IsCheckOK != value))
+ {
+ this.OnIsCheckOKChanging(value);
+ this.SendPropertyChanging();
+ this._IsCheckOK = value;
+ this.SendPropertyChanged("IsCheckOK");
+ this.OnIsCheckOKChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Comprehensive_InspectionMachine_Base_CNProfessional", Storage="_Base_CNProfessional", ThisKey="CNProfessionalId", OtherKey="CNProfessionalId", IsForeignKey=true)]
public Base_CNProfessional Base_CNProfessional
{
@@ -84751,6 +85040,8 @@ namespace Model
private string _UnitWorkId;
+ private System.Nullable _IsTrain;
+
private EntityRef _Base_Post;
private EntityRef _Base_Project;
@@ -84805,6 +85096,8 @@ namespace Model
partial void OnIsOnSiteChanged();
partial void OnUnitWorkIdChanging(string value);
partial void OnUnitWorkIdChanged();
+ partial void OnIsTrainChanging(System.Nullable value);
+ partial void OnIsTrainChanged();
#endregion
public Comprehensive_InspectionPerson()
@@ -85195,6 +85488,26 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsTrain", DbType="Bit")]
+ public System.Nullable IsTrain
+ {
+ get
+ {
+ return this._IsTrain;
+ }
+ set
+ {
+ if ((this._IsTrain != value))
+ {
+ this.OnIsTrainChanging(value);
+ this.SendPropertyChanging();
+ this._IsTrain = value;
+ this.SendPropertyChanged("IsTrain");
+ this.OnIsTrainChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Comprehensive_InspectionPerson_Base_Post", Storage="_Base_Post", ThisKey="PostId", OtherKey="PostId", IsForeignKey=true)]
public Base_Post Base_Post
{
@@ -127430,6 +127743,10 @@ namespace Model
private string _WorkStage;
+ private System.Nullable _IsStart;
+
+ private string _ProjectId;
+
#region 可扩展性方法定义
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -127470,6 +127787,10 @@ namespace Model
partial void OnRemarkChanged();
partial void OnWorkStageChanging(string value);
partial void OnWorkStageChanged();
+ partial void OnIsStartChanging(System.Nullable value);
+ partial void OnIsStartChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
#endregion
public Hazard_HazardSelectedItem()
@@ -127837,6 +128158,46 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsStart", DbType="Bit")]
+ public System.Nullable IsStart
+ {
+ get
+ {
+ return this._IsStart;
+ }
+ set
+ {
+ if ((this._IsStart != value))
+ {
+ this.OnIsStartChanging(value);
+ this.SendPropertyChanging();
+ this._IsStart = value;
+ this.SendPropertyChanged("IsStart");
+ this.OnIsStartChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -280205,6 +280566,10 @@ namespace Model
private string _Descriptions;
+ private System.Nullable _TrainPersonNum;
+
+ private System.Nullable _IsSuperLargerHazard;
+
private EntityRef _Base_Project;
private EntityRef _Sys_User;
@@ -280237,6 +280602,10 @@ namespace Model
partial void OnStatesChanged();
partial void OnDescriptionsChanging(string value);
partial void OnDescriptionsChanged();
+ partial void OnTrainPersonNumChanging(System.Nullable value);
+ partial void OnTrainPersonNumChanged();
+ partial void OnIsSuperLargerHazardChanging(System.Nullable value);
+ partial void OnIsSuperLargerHazardChanged();
#endregion
public Solution_LargerHazard()
@@ -280494,6 +280863,46 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainPersonNum", DbType="Int")]
+ public System.Nullable TrainPersonNum
+ {
+ get
+ {
+ return this._TrainPersonNum;
+ }
+ set
+ {
+ if ((this._TrainPersonNum != value))
+ {
+ this.OnTrainPersonNumChanging(value);
+ this.SendPropertyChanging();
+ this._TrainPersonNum = value;
+ this.SendPropertyChanged("TrainPersonNum");
+ this.OnTrainPersonNumChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSuperLargerHazard", DbType="Bit")]
+ public System.Nullable IsSuperLargerHazard
+ {
+ get
+ {
+ return this._IsSuperLargerHazard;
+ }
+ set
+ {
+ if ((this._IsSuperLargerHazard != value))
+ {
+ this.OnIsSuperLargerHazardChanging(value);
+ this.SendPropertyChanging();
+ this._IsSuperLargerHazard = value;
+ this.SendPropertyChanged("IsSuperLargerHazard");
+ this.OnIsSuperLargerHazardChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Solution_LargerSolution_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{