diff --git a/DataBase/版本日志/SUBQHSE_V2025-11-11-geh(全部事项).sql b/DataBase/版本日志/SUBQHSE_V2025-11-11-geh(全部事项).sql new file mode 100644 index 00000000..e5cc272d --- /dev/null +++ b/DataBase/版本日志/SUBQHSE_V2025-11-11-geh(全部事项).sql @@ -0,0 +1,75 @@ +--关键事项 + +CREATE PROCEDURE [dbo].[Sp_GJSX_getlist] + -- Add the parameters for the stored procedure here + @ProjectId nvarchar(max), + @sql_where varchar(max) +AS +BEGIN + IF EXISTS(select * from tempdb..sysobjects where id=object_id('tempdb..#GJSX_List')) + BEGIN + DROP TABLE #GJSX_List + END + DECLARE @Sql NVARCHAR(max) + select * into #GJSX_List + from( + select + a.GJSXID + ,a.ProjectId + ,a.detail + ,b.username + ,a.createDate + ,User_ReceiveID=STUFF(( SELECT ',' + p2.UserName FROM dbo.Sys_User as p2 where PATINDEX('%,' + RTRIM(p2.UserId) + ',%',',' +a.User_ReceiveID + ',') >0 FOR XML PATH('')), 1, 1,'') + , CNProfessionalId=STUFF(( SELECT ',' + Base_CNProfessional.ProfessionalName FROM dbo.Base_CNProfessional where PATINDEX('%,' + RTRIM(Base_CNProfessional.CNProfessionalId) + ',%',',' +a.CNProfessional_ID + ',') >0 FOR XML PATH('')), 1, 1,'') + ,Base_Project.ProjectName + ,Base_Unit.unitname + ,a.CloseDate + --,a.state + --,case a.state when 2 then '正在进行' when 3 then '正在进行' when 0 then '已关闭' when 1 then '编辑中' end as stateStr + ,case a.state when 2 then (case when GETDATE()>a.CompleteDate then 4 else a.state end) when 3 then (case when GETDATE()>a.CompleteDate then 4 else a.state end) when 0 then a.state when 1 then a.state end as state + ,case a.state when 2 then (case when GETDATE()>a.CompleteDate then '已超期' else '正在进行' end) when 3 then (case when GETDATE()>a.CompleteDate then '已超期' else '正在进行' end) when 0 then '已关闭' when 1 then '编辑中' end as stateStr + ,QuestionTypeName=STUFF(( SELECT ',' + Base_QuestionType.QuestionTypeName FROM dbo.Base_QuestionType where PATINDEX('%,' + RTRIM(Base_QuestionType.QuestionTypeID) + ',%',',' +a.QuestionTypeID + ',') >0 FOR XML PATH('')), 1, 1,'') + ,GJSXTypeName = STUFF((SELECT ',' + Base_GJSXType.GJSXTypeName FROM dbo.Base_GJSXType where PATINDEX('%,' + RTRIM(Base_GJSXType.GJSXTypeID) + ',%', ',' + a.GJSXTypeID + ',') > 0 FOR XML PATH('')), 1, 1,'') + ,a.IsManypeople + ,a.CompleteDate + ,a.AttachUrl + ,user_Acceptance =STUFF(( SELECT ',' + p2.UserName FROM dbo.Sys_User as p2 where PATINDEX('%,' + RTRIM(p2.UserId) + ',%',',' +a.user_Acceptance + ',') >0 FOR XML PATH('')), 1, 1,'') + ,(select top 1 ProgressStatus+':'+Progress_detail from GJSX_detail where GJSXID=a.GJSXID order by Date desc) as LastProgress + from GJSX as a left join Sys_User as b on a.UserId=b.UserId + left join [dbo].[Base_Project] on a.ProjectId =Base_Project.ProjectId + left join [dbo].[Base_Unit] on a.UnitId=Base_Unit.UnitId + --left join [dbo].[Base_QuestionType] on a.QuestionTypeID=Base_QuestionType.QuestionTypeID + --left join[dbo].[Base_GJSXType] on a.GJSXTypeID = Base_GJSXType.GJSXTypeID + where a.ProjectId=@ProjectId + ) as a + + set @Sql ='select * from #GJSX_List where 1=1 ' +@sql_where +' order by state desc,GJSXID asc' + + exec(@Sql) + + + --select + --a.GJSXID + --,a.ProjectId + --,a.detail + --,b.username + --,a.createDate + --,User_ReceiveID=STUFF(( SELECT ',' + p2.UserName FROM dbo.Sys_User as p2 where PATINDEX('%,' + RTRIM(p2.UserId) + ',%',',' +a.User_ReceiveID + ',') >0 FOR XML PATH('')), 1, 1,'') + --, CNProfessionalId=STUFF(( SELECT ',' + Base_CNProfessional.ProfessionalName FROM dbo.Base_CNProfessional where PATINDEX('%,' + RTRIM(Base_CNProfessional.CNProfessionalId) + ',%',',' +a.CNProfessional_ID + ',') >0 FOR XML PATH('')), 1, 1,'') + --,Base_Project.ProjectName + --,Base_Unit.unitname + --,a.CloseDate + --,case a.state when 2 then '正在进行' when 3 then '待办' when 0 then '已关闭' when 1 then '开放' end as state + --,QuestionTypeName=STUFF(( SELECT ',' + Base_QuestionType.QuestionTypeName FROM dbo.Base_QuestionType where PATINDEX('%,' + RTRIM(Base_QuestionType.QuestionTypeID) + ',%',',' +a.QuestionTypeID + ',') >0 FOR XML PATH('')), 1, 1,'') + --,GJSXTypeName = STUFF((SELECT ',' + Base_GJSXType.GJSXTypeName FROM dbo.Base_GJSXType where PATINDEX('%,' + RTRIM(Base_GJSXType.GJSXTypeID) + ',%', ',' + a.GJSXTypeID + ',') > 0 FOR XML PATH('')), 1, 1,'') + --,a.IsManypeople + --,a.CompleteDate + --,a.AttachUrl + --,user_Acceptance =STUFF(( SELECT ',' + p2.UserName FROM dbo.Sys_User as p2 where PATINDEX('%,' + RTRIM(p2.UserId) + ',%',',' +a.user_Acceptance + ',') >0 FOR XML PATH('')), 1, 1,'') + --from GJSX as a left join Sys_User as b on a.UserId=b.UserId + --left join [dbo].[Base_Project] on a.ProjectId =Base_Project.ProjectId + --left join [dbo].[Base_Unit] on a.UnitId=Base_Unit.UnitId + ----left join [dbo].[Base_QuestionType] on a.QuestionTypeID=Base_QuestionType.QuestionTypeID + ----left join[dbo].[Base_GJSXType] on a.GJSXTypeID = Base_GJSXType.GJSXTypeID + --where a.ProjectId=@ProjectId +END \ No newline at end of file diff --git a/SGGL/BLL/JDGL/SGManPower/SGManPowerService.cs b/SGGL/BLL/JDGL/SGManPower/SGManPowerService.cs index 3693673d..57e1f90b 100644 --- a/SGGL/BLL/JDGL/SGManPower/SGManPowerService.cs +++ b/SGGL/BLL/JDGL/SGManPower/SGManPowerService.cs @@ -21,7 +21,8 @@ namespace BLL foreach (var project in projects) { // 检查管理人员到期未到岗情况 - var items1 = CheckManagerNotArrived(project.ProjectId); + // var items1 = CheckManagerNotArrived(project.ProjectId); + var items1 = CheckHistoricalContinuousShortage(project.ProjectId); // 检查作业人员人力偏差情况 var items2 = CheckWorkerDeviation(project.ProjectId); @@ -48,7 +49,7 @@ namespace BLL } - /// + /*/// /// 检查管理人员到期未到岗情况(超过一周发出预警) /// /// 项目ID @@ -85,9 +86,9 @@ namespace BLL } return lItems; - } + }*/ - //获取实际考勤人员数 + /*//获取实际考勤人员数 private static int getInOutRecordNum(JDGL_SGManPower sgManPower) { string strSql = @" @@ -155,7 +156,7 @@ namespace BLL } return dataSource.Count(); - } + }*/ /// /// 发送管理人员预警 @@ -163,7 +164,7 @@ namespace BLL /// 项目ID /// 单位id private static List SendManagerWarning(string unitId, string projectId, string workPostId, - string unitWorkId, DateTime? planDate, int? quantity, int num) + string unitWorkId, DateTime? startDate, DateTime? endDate, int? quantity, int num) { // 发送预警信息 var toDoItems = new List(); @@ -250,15 +251,15 @@ namespace BLL if (unitWorks != null) { warningContent = - $"{projectUnits.UnitName}单位{unitWorks.UnitWorkName}装置计划{string.Format("{0:yyyy-MM-dd}", planDate)}投入人力{quantity}人,实际考勤为{num}人。"; + $"{projectUnits.UnitName}单位{unitWorks.UnitWorkName}装置计划{string.Format("{0:yyyy-MM-dd}", startDate)}~{string.Format("{0:yyyy-MM-dd}", endDate)}投入人力{quantity}人,实际考勤为{num}人。"; } else { warningContent = - $"{projectUnits.UnitName}单位计划{string.Format("{0:yyyy-MM-dd}", planDate)}投入人力{quantity}人,实际考勤为{num}人。"; + $"{projectUnits.UnitName}单位计划{string.Format("{0:yyyy-MM-dd}", startDate)}~{string.Format("{0:yyyy-MM-dd}", endDate)}投入人力{quantity}人,实际考勤为{num}人。"; } - string urlParams = "JDGL/SGManPower/SGWarningDetails.aspx?projectId=" + projectId; + string urlParams = "JDGL/SGManPower/SGWarningDetailsEdit.aspx?projectId=" + projectId; // 添加单位参数(如果已选择) if (!string.IsNullOrEmpty(unitId)) { @@ -278,26 +279,32 @@ namespace BLL } // 添加时间参数 - if (planDate.HasValue) + if (startDate.HasValue) { - urlParams += "&planDate=" + string.Format("{0:yyyy-MM-dd}", planDate); + urlParams += "&startTime=" + string.Format("{0:yyyy-MM-dd}", startDate); + } + + // 添加时间参数 + if (endDate.HasValue) + { + urlParams += "&endTime=" + string.Format("{0:yyyy-MM-dd}", endDate); } - // 添加岗位参数(如果已选择) - if (quantity.HasValue) - { - urlParams += "&quantity=" + quantity.Value; - } - - // 添加岗位参数(如果已选择) - if (num >= 0) - { - urlParams += "&num=" + num; - } - else - { - urlParams += "&num=0"; - } + // // 添加岗位参数(如果已选择) + // if (quantity.HasValue) + // { + // urlParams += "&quantity=" + quantity.Value; + // } + // + // // 添加岗位参数(如果已选择) + // if (num >= 0) + // { + // urlParams += "&num=" + num; + // } + // else + // { + // urlParams += "&num=0"; + // } foreach (var userId in toUserIds) @@ -589,5 +596,101 @@ namespace BLL return toDoItems; } + + + /// + /// 检查所有历史数据中连续一周以上人力不足的情况 + /// + private static IEnumerable CheckHistoricalContinuousShortage(string projectId) + { + string strSql = @" +WITH LatestVersions AS ( + SELECT ProjectId, MAX(Version) AS MaxVersion + FROM JDGL_SGManPower + WHERE ProjectId = @ProjectId + GROUP BY ProjectId +), +PlanVsActual AS ( + SELECT + p.ProjectId, + p.UnitId, + p.UnitWorkId, + p.WorkPostId, + p.PlanDate, + p.Quantity AS PlanQuantity, + ISNULL(a.ActualQuantity, 0) AS ActualQuantity, + CASE WHEN ISNULL(a.ActualQuantity, 0) < p.Quantity THEN 1 ELSE 0 END AS IsShortage, + lv.MaxVersion + FROM JDGL_SGManPower p + INNER JOIN LatestVersions lv ON p.ProjectId = lv.ProjectId AND p.Version = lv.MaxVersion + LEFT JOIN ( + SELECT + * FROM View_EmployInOutRecord + ) a ON p.ProjectId = a.ProjectId + AND p.UnitId = a.UnitId + AND p.WorkPostId = a.PostId + AND p.PlanDate = a.RecordDate + AND ISNULL(p.UnitWorkId, '') = ISNULL(a.UnitWorkId, '') + WHERE p.ProjectId = @ProjectId AND p.PlanDate <= GETDATE() +), +ShortageWithRowNum AS ( + SELECT *, + ROW_NUMBER() OVER ( + PARTITION BY ProjectId, UnitId, UnitWorkId, WorkPostId + ORDER BY PlanDate + ) AS RowNum + FROM PlanVsActual + WHERE IsShortage = 1 +), +ContinuousGroups AS ( + SELECT *, + DATEADD(DAY, -RowNum, PlanDate) AS GroupId + FROM ShortageWithRowNum +), +ContinuousCounts AS ( + SELECT + ProjectId, + UnitId, + UnitWorkId, + WorkPostId, + GroupId, + COUNT(*) AS ContinuousDays, + MIN(PlanDate) AS StartDate, + MAX(PlanDate) AS EndDate, + SUM(PlanQuantity) as PlanQuantity, + SUM(ActualQuantity) as ActualQuantity, + MaxVersion + FROM ContinuousGroups + GROUP BY ProjectId, UnitId, UnitWorkId, WorkPostId, GroupId,MaxVersion +) +SELECT + ProjectId, + UnitId, + UnitWorkId, + WorkPostId, + ContinuousDays, + MaxVersion, + StartDate, + EndDate,PlanQuantity,ActualQuantity +FROM ContinuousCounts +WHERE ContinuousDays >= 7"; + + var parameters = new List + { + new System.Data.SqlClient.SqlParameter("@ProjectId", projectId) + }; + var warningItems = new List(); + var dt = SQLHelper.GetDataTableRunText(strSql, parameters.ToArray()); + + + foreach (DataRow row in dt.Rows) + { + warningItems.AddRange(SendManagerWarning(row["UnitId"].ToString(),row["ProjectId"].ToString(),row["WorkPostId"].ToString(),row["UnitWorkId"].ToString(), + Convert.ToDateTime(row["StartDate"]), Convert.ToDateTime(row["EndDate"]), Convert.ToInt32(row["PlanQuantity"]), Convert.ToInt32(row["ActualQuantity"]))); + } + return warningItems; + } + + } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index f671a8a9..3abc0b00 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -1553,6 +1553,7 @@ + @@ -15055,6 +15056,13 @@ SGWarningDetails.aspx + + ASPXCodeBehind + SGWarningDetailsEdit.aspx + + + SGWarningDetailsEdit.aspx + WBSCompleteAudit.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx b/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx new file mode 100644 index 00000000..f351703c --- /dev/null +++ b/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx @@ -0,0 +1,102 @@ +<%@ Page Language="C#" CodeBehind="SGWarningDetailsEdit.aspx.cs" Inherits="FineUIPro.Web.JDGL.SGManPower.SGWarningDetailsEdit" %> + + + + + + + Title + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx.cs b/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx.cs new file mode 100644 index 00000000..75975fca --- /dev/null +++ b/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx.cs @@ -0,0 +1,314 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + + +namespace FineUIPro.Web.JDGL.SGManPower +{ + public partial class SGWarningDetailsEdit : PageBase + { + #region 定义项 + + /// + /// 项目主键 + /// + public string ProjectId + { + get { return (string)ViewState["ProjectId"]; } + set { ViewState["ProjectId"] = value; } + } + + public string UnitId + { + get => (string)ViewState["UnitId"]; + set => ViewState["UnitId"] = value; + } + + public string UnitWorkId + { + get => (string)ViewState["UnitWorkId"]; + set => ViewState["UnitWorkId"] = value; + } + + public string WorkPostId + { + get => (string)ViewState["WorkPostId"]; + set => ViewState["WorkPostId"] = value; + } + public string StartTime + { + get => (string)ViewState["StartTime"]; + set => ViewState["StartTime"] = value; + } + + public string EndTime + { + get => (string)ViewState["EndTime"]; + set => ViewState["EndTime"] = value; + } + + private static string Version = "1"; + + #endregion + + #region 加载页面 + + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ProjectId = this.CurrUser.LoginProjectId; + // 判断projectId参数是否为空 + if (!string.IsNullOrEmpty(Request.Params["projectId"])) + { + this.ProjectId = Request.Params["projectId"]; + } + Funs.DropDownPageSize(this.ddlPageSize); + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);//单位 + this.txtStartTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddDays(-30)); + this.txtEndTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddDays(30)); + WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true); //岗位 + UnitWorkService.InitUnitWorkDownList(drpUnitWork, this.ProjectId, true); //单位工程(装置) + this.UnitId = Request.Params["unitId"]; + this.UnitWorkId = Request.Params["unitWorkId"]; + this.WorkPostId = Request.Params["workPostId"]; + this.StartTime = Request.Params["startTime"]; + this.EndTime = Request.Params["endTime"]; + + if (!string.IsNullOrEmpty(this.UnitId)) + { + this.drpUnit.SelectedValue = UnitId; + } + if (!string.IsNullOrEmpty(this.UnitWorkId)) + { + this.drpUnitWork.SelectedValue = UnitWorkId; + } + if (!string.IsNullOrEmpty(this.WorkPostId)) + { + this.drpWorkPost.SelectedValue = WorkPostId; + } + if (!string.IsNullOrEmpty(this.StartTime)) + { + this.txtStartTime.Text = StartTime; + } + if (!string.IsNullOrEmpty(this.EndTime)) + { + this.txtEndTime.Text = EndTime; + } + + + + var sgMan = Funs.DB.JDGL_SGManPower.Where(x => x.ProjectId == this.ProjectId).OrderByDescending(x => x.Version) + .FirstOrDefault(); + if (sgMan != null) + { + Version = sgMan.Version; + } + + // 绑定表格 + BindGrid(); + } + + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = + @"SELECT + p.Id, + p.ProjectId, + p.UnitId, + p.UnitWorkId, + p.WorkPostId, + p.Version, + p.Quantity, + p.PlanDate, + ISNULL(a.ActualQuantity, 0) AS ActualQuantity +FROM JDGL_SGManPower p +LEFT JOIN ( + SELECT * from View_EmployInOutRecord +) a ON p.ProjectId = a.ProjectId + AND p.UnitId = a.UnitId + AND p.WorkPostId = a.PostId + AND p.PlanDate = a.RecordDate + AND ISNULL(p.UnitWorkId, '') = ISNULL(a.UnitWorkId, '') where p.Version = '" + Version + "'"; + List listStr = new List(); + + if (!string.IsNullOrEmpty(this.ProjectId)) + { + strSql += " AND p.ProjectId = @ProjectId "; + listStr.Add(new SqlParameter("@ProjectId", this.ProjectId)); + } + + if (!string.IsNullOrEmpty(this.drpUnit.SelectedValue) && this.drpUnit.SelectedValue != "null") + { + strSql += " AND p.UnitId = @UnitId "; + listStr.Add(new SqlParameter("@UnitId", this.drpUnit.SelectedValue)); + } + if (!string.IsNullOrEmpty(this.drpUnitWork.SelectedValue) && this.drpUnitWork.SelectedValue != "null") + { + strSql += " AND p.UnitWorkId = @UnitWorkId "; + listStr.Add(new SqlParameter("@UnitWorkId", this.drpUnitWork.SelectedValue)); + } + if (!string.IsNullOrEmpty(this.drpWorkPost.SelectedValue) && this.drpWorkPost.SelectedValue != "null") + { + strSql += " AND p.WorkPostId = @WorkPostId "; + listStr.Add(new SqlParameter("@WorkPostId", this.drpWorkPost.SelectedValue)); + } + + if (!string.IsNullOrEmpty(this.txtStartTime.Text)) + { + strSql += " AND p.PlanDate >= @StartTime "; + listStr.Add(new SqlParameter("@StartTime", Convert.ToDateTime(this.txtStartTime.Text))); + } + if (!string.IsNullOrEmpty(this.txtEndTime.Text)) + { + strSql += " AND p.PlanDate <= @EndTime "; + listStr.Add(new SqlParameter("@EndTime", Convert.ToDateTime(this.txtEndTime.Text))); + } + + strSql += " ORDER BY p.PlanDate, p.UnitId, p.UnitWorkId, p.WorkPostId"; + + 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 Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid(); + } + + #endregion + + #region 格式化字符串 + + /// + /// 格式化受伤情况 + /// + /// + /// + protected string ConvertWorkPostName(object workPostId) + { + string name = string.Empty; + if (workPostId != null) + { + name = BLL.WorkPostService.getWorkPostNameById(workPostId.ToString()); + } + + return name; + } + + protected string ConvertUnitName(object unitId) + { + string name = string.Empty; + if (unitId != null) + { + name = UnitService.GetUnitNameByUnitId(unitId); + } + + return name; + } + + /// + /// 格式化受伤情况 + /// + /// + /// + protected string ConvertUnitWorkName(object unitWorkId) + { + string name = string.Empty; + if (unitWorkId != null) + { + name = BLL.UnitWorkService.GetNameById(unitWorkId.ToString()); + } + + return name; + } + + #endregion + + #region 查询事件 + + /// + /// 查询 + /// + /// + /// + protected void btnQuery_OnClick(object sender, EventArgs e) + { + if (drpUnit.SelectedValue != Const._Null && !string.IsNullOrEmpty(drpUnit.SelectedValue)) + { + UnitId = drpUnit.SelectedValue; + } + if (drpUnitWork.SelectedValue != Const._Null && !string.IsNullOrEmpty(drpUnitWork.SelectedValue)) + { + UnitWorkId = drpUnitWork.SelectedValue; + } + if (drpWorkPost.SelectedValue != Const._Null && !string.IsNullOrEmpty(drpWorkPost.SelectedValue)) + { + WorkPostId = drpWorkPost.SelectedValue; + } + if ( !string.IsNullOrEmpty(this.txtStartTime.Text)) + { + StartTime = this.txtStartTime.Text; + } + if ( !string.IsNullOrEmpty(this.txtStartTime.Text)) + { + EndTime = this.txtEndTime.Text; + } + + this.BindGrid(); + } + + #endregion + + + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx.designer.cs new file mode 100644 index 00000000..0ba1832a --- /dev/null +++ b/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx.designer.cs @@ -0,0 +1,188 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JDGL.SGManPower +{ + + + public partial class SGWarningDetailsEdit + { + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Grid1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// drpUnit control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.DropDownList drpUnit; + + /// + /// txtStartTime control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// drpUnitWork control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.DropDownList drpUnitWork; + + /// + /// drpWorkPost control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.DropDownList drpWorkPost; + + /// + /// ToolbarFill1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnQuery control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.Button btnQuery; + + /// + /// lbUnitName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lbUnitName; + + /// + /// lbUnitWorkName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lbUnitWorkName; + + /// + /// lbtfWorkPostName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lbtfWorkPostName; + + /// + /// ToolbarSeparator1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Menu1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::FineUIPro.Menu Menu1; + } +} diff --git a/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXFind.aspx b/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXFind.aspx index 6886cf1c..14098127 100644 --- a/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXFind.aspx +++ b/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXFind.aspx @@ -115,6 +115,9 @@ + + diff --git a/SGGL/FineUIPro.Web/WorkBench.aspx.cs b/SGGL/FineUIPro.Web/WorkBench.aspx.cs index 5cd0360d..23efab53 100644 --- a/SGGL/FineUIPro.Web/WorkBench.aspx.cs +++ b/SGGL/FineUIPro.Web/WorkBench.aspx.cs @@ -144,17 +144,17 @@ namespace FineUIPro.Web string returnDbHtml = ""; var getDataList = Funs.DB.Sp_WorkBench_GetToDoItems(userId, sType).ToList(); //调人力预警接口 - if (sType != "2") - { - var sgList = SGManPowerService.CheckAndSendPersonWarning(userId); - if (sgList != null) - { - foreach (var item in sgList) - { - getDataList.Add(item); - } - } - } + // if (sType != "2") + // { + // var sgList = SGManPowerService.CheckAndSendPersonWarning(userId); + // if (sgList != null) + // { + // foreach (var item in sgList) + // { + // getDataList.Add(item); + // } + // } + // } //把getDataList和sgList的数据合并 foreach (var item in getDataList) { diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 089cbf7a..eaf1903a 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -9356,6 +9356,14 @@ namespace Model } } + public System.Data.Linq.Table Sys_User2 + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Sys_UserRead { get @@ -10204,6 +10212,14 @@ namespace Model } } + public System.Data.Linq.Table View_EmployInOutRecord + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table View_Environmental_ArchitectureReport { get @@ -53546,7 +53562,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WED_Class", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WED_Class", DbType="NVarChar(500)")] public string WED_Class { get @@ -385991,6 +386007,969 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Sys_User2")] + public partial class Sys_User2 + { + + private string _UserId; + + private string _DepartId; + + private string _UnitId; + + private string _Account; + + private string _UserCode; + + private string _Password; + + private string _UserName; + + private string _RoleId; + + private System.Nullable _IsPost; + + private string _LoginProjectId; + + private string _Sex; + + private System.Nullable _BirthDay; + + private string _Marriage; + + private string _Nation; + + private string _IdentityCard; + + private string _Email; + + private string _Telephone; + + private string _Education; + + private string _Hometown; + + private string _PositionId; + + private string _PhotoUrl; + + private string _Performance; + + private System.Nullable _PageSize; + + private System.Nullable _IsOffice; + + private string _DeviceId; + + private string _SessionString; + + private System.Nullable _RCount; + + private string _DataSources; + + private string _SignatureUrl; + + private string _OpenId; + + private string _LastMenuType; + + private System.Nullable _LastIsOffice; + + private string _LastProjectId; + + private string _Politicalstatus; + + private string _Graduate; + + private string _Major; + + private System.Nullable _IntoDate; + + private string _Certificate; + + private System.Nullable _ValidityDate; + + private string _ProjectId; + + private string _ProjectRoleId; + + private string _CertificateId; + + private string _PostTitleId; + + private string _WorkPostId; + + private string _ProjectWorkPostId; + + private string _RoleType; + + private string _MainCNProfessionalId; + + private string _ViceCNProfessionalId; + + private string _WorkNo; + + private string _RawPassword; + + private string _HomePageType; + + private string _CompanyProjectId; + + private System.Nullable _IsInspectionBrigade; + + public Sys_User2() + { + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + this._UserId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartId", DbType="NVarChar(50)")] + public string DepartId + { + get + { + return this._DepartId; + } + set + { + if ((this._DepartId != value)) + { + this._DepartId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + this._UnitId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Account", DbType="NVarChar(50)")] + public string Account + { + get + { + return this._Account; + } + set + { + if ((this._Account != value)) + { + this._Account = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserCode", DbType="NVarChar(20)")] + public string UserCode + { + get + { + return this._UserCode; + } + set + { + if ((this._UserCode != value)) + { + this._UserCode = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Password", DbType="NVarChar(50)")] + public string Password + { + get + { + return this._Password; + } + set + { + if ((this._Password != value)) + { + this._Password = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserName", DbType="NVarChar(50)")] + public string UserName + { + get + { + return this._UserName; + } + set + { + if ((this._UserName != value)) + { + this._UserName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RoleId", DbType="NVarChar(50)")] + public string RoleId + { + get + { + return this._RoleId; + } + set + { + if ((this._RoleId != value)) + { + this._RoleId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsPost", DbType="Bit")] + public System.Nullable IsPost + { + get + { + return this._IsPost; + } + set + { + if ((this._IsPost != value)) + { + this._IsPost = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LoginProjectId", DbType="NVarChar(50)")] + public string LoginProjectId + { + get + { + return this._LoginProjectId; + } + set + { + if ((this._LoginProjectId != value)) + { + this._LoginProjectId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Sex", DbType="Char(1)")] + public string Sex + { + get + { + return this._Sex; + } + set + { + if ((this._Sex != value)) + { + this._Sex = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BirthDay", DbType="DateTime")] + public System.Nullable BirthDay + { + get + { + return this._BirthDay; + } + set + { + if ((this._BirthDay != value)) + { + this._BirthDay = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Marriage", DbType="NVarChar(20)")] + public string Marriage + { + get + { + return this._Marriage; + } + set + { + if ((this._Marriage != value)) + { + this._Marriage = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Nation", DbType="NVarChar(20)")] + public string Nation + { + get + { + return this._Nation; + } + set + { + if ((this._Nation != value)) + { + this._Nation = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IdentityCard", DbType="NVarChar(50)")] + public string IdentityCard + { + get + { + return this._IdentityCard; + } + set + { + if ((this._IdentityCard != value)) + { + this._IdentityCard = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Email", DbType="NVarChar(100)")] + public string Email + { + get + { + return this._Email; + } + set + { + if ((this._Email != value)) + { + this._Email = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Telephone", DbType="NVarChar(50)")] + public string Telephone + { + get + { + return this._Telephone; + } + set + { + if ((this._Telephone != value)) + { + this._Telephone = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Education", DbType="NVarChar(20)")] + public string Education + { + get + { + return this._Education; + } + set + { + if ((this._Education != value)) + { + this._Education = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Hometown", DbType="NVarChar(50)")] + public string Hometown + { + get + { + return this._Hometown; + } + set + { + if ((this._Hometown != value)) + { + this._Hometown = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PositionId", DbType="NVarChar(50)")] + public string PositionId + { + get + { + return this._PositionId; + } + set + { + if ((this._PositionId != value)) + { + this._PositionId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PhotoUrl", DbType="NVarChar(500)")] + public string PhotoUrl + { + get + { + return this._PhotoUrl; + } + set + { + if ((this._PhotoUrl != value)) + { + this._PhotoUrl = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Performance", DbType="NVarChar(800)")] + public string Performance + { + get + { + return this._Performance; + } + set + { + if ((this._Performance != value)) + { + this._Performance = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PageSize", DbType="Int")] + public System.Nullable PageSize + { + get + { + return this._PageSize; + } + set + { + if ((this._PageSize != value)) + { + this._PageSize = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOffice", DbType="Bit")] + public System.Nullable IsOffice + { + get + { + return this._IsOffice; + } + set + { + if ((this._IsOffice != value)) + { + this._IsOffice = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeviceId", DbType="NVarChar(100)")] + public string DeviceId + { + get + { + return this._DeviceId; + } + set + { + if ((this._DeviceId != value)) + { + this._DeviceId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SessionString", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + public string SessionString + { + get + { + return this._SessionString; + } + set + { + if ((this._SessionString != value)) + { + this._SessionString = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RCount", DbType="Int")] + public System.Nullable RCount + { + get + { + return this._RCount; + } + set + { + if ((this._RCount != value)) + { + this._RCount = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DataSources", DbType="NVarChar(50)")] + public string DataSources + { + get + { + return this._DataSources; + } + set + { + if ((this._DataSources != value)) + { + this._DataSources = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SignatureUrl", DbType="NVarChar(500)")] + public string SignatureUrl + { + get + { + return this._SignatureUrl; + } + set + { + if ((this._SignatureUrl != value)) + { + this._SignatureUrl = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OpenId", DbType="NVarChar(100)")] + public string OpenId + { + get + { + return this._OpenId; + } + set + { + if ((this._OpenId != value)) + { + this._OpenId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastMenuType", DbType="NVarChar(50)")] + public string LastMenuType + { + get + { + return this._LastMenuType; + } + set + { + if ((this._LastMenuType != value)) + { + this._LastMenuType = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastIsOffice", DbType="Bit")] + public System.Nullable LastIsOffice + { + get + { + return this._LastIsOffice; + } + set + { + if ((this._LastIsOffice != value)) + { + this._LastIsOffice = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastProjectId", DbType="NVarChar(50)")] + public string LastProjectId + { + get + { + return this._LastProjectId; + } + set + { + if ((this._LastProjectId != value)) + { + this._LastProjectId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Politicalstatus", DbType="NVarChar(50)")] + public string Politicalstatus + { + get + { + return this._Politicalstatus; + } + set + { + if ((this._Politicalstatus != value)) + { + this._Politicalstatus = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Graduate", DbType="NVarChar(50)")] + public string Graduate + { + get + { + return this._Graduate; + } + set + { + if ((this._Graduate != value)) + { + this._Graduate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Major", DbType="NVarChar(50)")] + public string Major + { + get + { + return this._Major; + } + set + { + if ((this._Major != value)) + { + this._Major = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IntoDate", DbType="DateTime")] + public System.Nullable IntoDate + { + get + { + return this._IntoDate; + } + set + { + if ((this._IntoDate != value)) + { + this._IntoDate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Certificate", DbType="NVarChar(50)")] + public string Certificate + { + get + { + return this._Certificate; + } + set + { + if ((this._Certificate != value)) + { + this._Certificate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ValidityDate", DbType="DateTime")] + public System.Nullable ValidityDate + { + get + { + return this._ValidityDate; + } + set + { + if ((this._ValidityDate != value)) + { + this._ValidityDate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this._ProjectId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectRoleId", DbType="NVarChar(500)")] + public string ProjectRoleId + { + get + { + return this._ProjectRoleId; + } + set + { + if ((this._ProjectRoleId != value)) + { + this._ProjectRoleId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificateId", DbType="NVarChar(500)")] + public string CertificateId + { + get + { + return this._CertificateId; + } + set + { + if ((this._CertificateId != value)) + { + this._CertificateId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PostTitleId", DbType="NVarChar(50)")] + public string PostTitleId + { + get + { + return this._PostTitleId; + } + set + { + if ((this._PostTitleId != value)) + { + this._PostTitleId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPostId", DbType="NVarChar(500)")] + public string WorkPostId + { + get + { + return this._WorkPostId; + } + set + { + if ((this._WorkPostId != value)) + { + this._WorkPostId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectWorkPostId", DbType="NVarChar(50)")] + public string ProjectWorkPostId + { + get + { + return this._ProjectWorkPostId; + } + set + { + if ((this._ProjectWorkPostId != value)) + { + this._ProjectWorkPostId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RoleType", DbType="NVarChar(10)")] + public string RoleType + { + get + { + return this._RoleType; + } + set + { + if ((this._RoleType != value)) + { + this._RoleType = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MainCNProfessionalId", DbType="NVarChar(50)")] + public string MainCNProfessionalId + { + get + { + return this._MainCNProfessionalId; + } + set + { + if ((this._MainCNProfessionalId != value)) + { + this._MainCNProfessionalId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViceCNProfessionalId", DbType="NVarChar(500)")] + public string ViceCNProfessionalId + { + get + { + return this._ViceCNProfessionalId; + } + set + { + if ((this._ViceCNProfessionalId != value)) + { + this._ViceCNProfessionalId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkNo", DbType="NVarChar(50)")] + public string WorkNo + { + get + { + return this._WorkNo; + } + set + { + if ((this._WorkNo != value)) + { + this._WorkNo = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RawPassword", DbType="NVarChar(100)")] + public string RawPassword + { + get + { + return this._RawPassword; + } + set + { + if ((this._RawPassword != value)) + { + this._RawPassword = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HomePageType", DbType="NVarChar(10)")] + public string HomePageType + { + get + { + return this._HomePageType; + } + set + { + if ((this._HomePageType != value)) + { + this._HomePageType = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanyProjectId", DbType="NVarChar(2000)")] + public string CompanyProjectId + { + get + { + return this._CompanyProjectId; + } + set + { + if ((this._CompanyProjectId != value)) + { + this._CompanyProjectId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsInspectionBrigade", DbType="Bit")] + public System.Nullable IsInspectionBrigade + { + get + { + return this._IsInspectionBrigade; + } + set + { + if ((this._IsInspectionBrigade != value)) + { + this._IsInspectionBrigade = value; + } + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Sys_UserRead")] public partial class Sys_UserRead : INotifyPropertyChanging, INotifyPropertyChanged { @@ -431020,6 +431999,123 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_EmployInOutRecord")] + public partial class View_EmployInOutRecord + { + + private string _ProjectId; + + private string _UnitId; + + private string _PostId; + + private System.Nullable _RecordDate; + + private string _UnitWorkId; + + private System.Nullable _ActualQuantity; + + public View_EmployInOutRecord() + { + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this._ProjectId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="VarChar(100)")] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + this._UnitId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PostId", DbType="NVarChar(50)")] + public string PostId + { + get + { + return this._PostId; + } + set + { + if ((this._PostId != value)) + { + this._PostId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordDate", DbType="DateTime")] + public System.Nullable RecordDate + { + get + { + return this._RecordDate; + } + set + { + if ((this._RecordDate != value)) + { + this._RecordDate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitWorkId", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + public string UnitWorkId + { + get + { + return this._UnitWorkId; + } + set + { + if ((this._UnitWorkId != value)) + { + this._UnitWorkId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualQuantity", DbType="Int")] + public System.Nullable ActualQuantity + { + get + { + return this._ActualQuantity; + } + set + { + if ((this._ActualQuantity != value)) + { + this._ActualQuantity = value; + } + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_Environmental_ArchitectureReport")] public partial class View_Environmental_ArchitectureReport {