diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index f4794179..355a0e97 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -60,7 +60,6 @@ ..\Lib\Microsoft.SQLServer.ManagedDTS.dll - @@ -1029,7 +1028,7 @@ 4.5.1 - 4.7.0 + 6.0.0 4.7.1 diff --git a/SGGL/BLL/ProjectData/ProjectService.cs b/SGGL/BLL/ProjectData/ProjectService.cs index fa59e49a..a7b50ff4 100644 --- a/SGGL/BLL/ProjectData/ProjectService.cs +++ b/SGGL/BLL/ProjectData/ProjectService.cs @@ -307,6 +307,46 @@ } } + /// + /// 获取userId参与项目下拉框 + /// + /// + public static List GetProjectByUserIdStateDropDownList(string userId, string state) + { + if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId) + { + return (from x in Funs.DB.Base_Project + where x.ProjectState == state + orderby x.ProjectCode descending + select x).ToList(); + } + var getUser = UserService.GetUserByUserId(userId); + if (getUser != null) + { + /// 获取角色类型 + var getRoleP = Funs.DB.Sys_RolePower.FirstOrDefault(x => x.RoleId == getUser.RoleId && x.IsOffice == false); + if (getRoleP != null) + { + return (from x in Funs.DB.Base_Project + where x.ProjectState == state + orderby x.ProjectCode descending + select x).ToList(); + } + else + { + return (from x in Funs.DB.Base_Project + join y in Funs.DB.Project_ProjectUser on x.ProjectId equals y.ProjectId + where y.UserId == userId && y.IsPost == true && x.ProjectState == state + orderby x.ProjectCode descending + select x).Distinct().ToList(); + } + } + else + { + return null; + } + } + #region 项目表下拉框 /// /// 项目表下拉框 @@ -370,6 +410,29 @@ } } + /// + /// + /// + /// + /// + /// + public static void InitProjectShortNameByStateDropDownList(FineUIPro.DropDownList dropName, string userId, string state, bool isShowPlease) + { + dropName.DataValueField = "ProjectId"; + dropName.DataTextField = "ProjectName"; + var projectlist = GetProjectByUserIdStateDropDownList(userId, state); + dropName.DataSource = projectlist; + dropName.DataBind(); + if (projectlist.Count() == 0) + { + isShowPlease = true; + } + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + /// /// 某类型下项目表下拉框 /// @@ -559,7 +622,7 @@ public static List GetProjectWorkList(string unitId) { var getDatas = from x in Funs.DB.Base_Project - where (x.ProjectState == null || x.ProjectState == BLL.Const.ProjectState_1) + where (x.ProjectState == null || x.ProjectState == BLL.Const.ProjectState_1) select x; if (unitId == BLL.Const.UnitId_CWCEC) diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index 7af2d916..4d28f8e3 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -1818,3 +1818,586 @@ 出错时间:08/22/2023 17:32:58 出错时间:08/22/2023 17:32:58 + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:49:59 +出错时间:08/24/2023 14:49:59 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:49:59 +出错时间:08/24/2023 14:49:59 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:00 +出错时间:08/24/2023 14:50:00 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:00 +出错时间:08/24/2023 14:50:00 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:00 +出错时间:08/24/2023 14:50:00 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:01 +出错时间:08/24/2023 14:50:01 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:01 +出错时间:08/24/2023 14:50:01 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:01 +出错时间:08/24/2023 14:50:01 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:01 +出错时间:08/24/2023 14:50:01 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:01 +出错时间:08/24/2023 14:50:01 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:01 +出错时间:08/24/2023 14:50:01 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:02 +出错时间:08/24/2023 14:50:02 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:02 +出错时间:08/24/2023 14:50:02 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:02 +出错时间:08/24/2023 14:50:02 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:02 +出错时间:08/24/2023 14:50:02 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:02 +出错时间:08/24/2023 14:50:02 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:02 +出错时间:08/24/2023 14:50:02 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:02 +出错时间:08/24/2023 14:50:02 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:03 +出错时间:08/24/2023 14:50:03 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:03 +出错时间:08/24/2023 14:50:03 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:03 +出错时间:08/24/2023 14:50:03 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:04 +出错时间:08/24/2023 14:50:04 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:04 +出错时间:08/24/2023 14:50:04 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:04 +出错时间:08/24/2023 14:50:04 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:04 +出错时间:08/24/2023 14:50:04 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:05 +出错时间:08/24/2023 14:50:05 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:05 +出错时间:08/24/2023 14:50:05 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 14:50:08 +出错时间:08/24/2023 14:50:08 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:56 +出错时间:08/24/2023 15:19:56 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:56 +出错时间:08/24/2023 15:19:56 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:56 +出错时间:08/24/2023 15:19:56 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:56 +出错时间:08/24/2023 15:19:56 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:56 +出错时间:08/24/2023 15:19:56 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:57 +出错时间:08/24/2023 15:19:57 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:57 +出错时间:08/24/2023 15:19:57 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:57 +出错时间:08/24/2023 15:19:57 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:57 +出错时间:08/24/2023 15:19:57 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:57 +出错时间:08/24/2023 15:19:57 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:58 +出错时间:08/24/2023 15:19:58 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:58 +出错时间:08/24/2023 15:19:58 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:58 +出错时间:08/24/2023 15:19:58 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:58 +出错时间:08/24/2023 15:19:58 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:58 +出错时间:08/24/2023 15:19:58 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:58 +出错时间:08/24/2023 15:19:58 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:59 +出错时间:08/24/2023 15:19:59 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:59 +出错时间:08/24/2023 15:19:59 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:59 +出错时间:08/24/2023 15:19:59 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:59 +出错时间:08/24/2023 15:19:59 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:59 +出错时间:08/24/2023 15:19:59 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:59 +出错时间:08/24/2023 15:19:59 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:19:59 +出错时间:08/24/2023 15:19:59 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:20:00 +出错时间:08/24/2023 15:20:00 + + +错误信息开始=====> +错误类型:InvalidOperationException +错误信息:不能添加已经存在的实体。 +错误堆栈: + 在 System.Data.Linq.Table`1.InsertOnSubmit(TEntity entity) + 在 System.Data.Linq.Table`1.InsertAllOnSubmit[TSubEntity](IEnumerable`1 entities) + 在 BLL.BOSHENGMonitorService.AddPerson(String projectId, JArray arr, Sys_User user) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\BoSheng\BOSHENGMonitorService.cs:行号 323 +出错时间:08/24/2023 15:20:00 +出错时间:08/24/2023 15:20:00 + diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 6f48642e..f3d9a345 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -339,6 +339,7 @@ + @@ -6694,6 +6695,13 @@ mainProject.aspx + + mainProject2.aspx + ASPXCodeBehind + + + mainProject2.aspx + main_new.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/common/css/base.css b/SGGL/FineUIPro.Web/common/css/base.css index fbb9c055..e4927286 100644 --- a/SGGL/FineUIPro.Web/common/css/base.css +++ b/SGGL/FineUIPro.Web/common/css/base.css @@ -76,7 +76,7 @@ html::-webkit-scrollbar{ } .y_navbars { - align-items: flex-end; + align-items: center; cursor: pointer; } diff --git a/SGGL/FineUIPro.Web/common/mainProject2.aspx b/SGGL/FineUIPro.Web/common/mainProject2.aspx new file mode 100644 index 00000000..48d4a4bc --- /dev/null +++ b/SGGL/FineUIPro.Web/common/mainProject2.aspx @@ -0,0 +1,1235 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="mainProject2.aspx.cs" Inherits="FineUIPro.Web.common.mainProject2" %> + + + + + + + 项目级首页(新) + + + + + + + + +
+ +
+
+
+
+
安全统计
+
+
+
+

0000000000

+
累计安全人工时 +
+
+
+

0000000000

+
本月安全人工时 +
+
+
+

0

+
安全培训累计人员 +
+
+
+
+
+
安全管理人员
+
0
+
+
+
未遂事件
+
0
+
+
+
+
整改数据
+
+
+
0 +
+
总数
+
+
+
0 +
+
已完成
+
+
+
0 +
+
未完成
+
+
+
0% +
+
完成率
+
+
+
+
+
+
+
风险预警
+
+
+
+
+
+
资质预警
+
<%=getEarlyWarningCounts() %>
+
+
+
机械预警
+
<%=GetJxyjNum() %>
+
+
+
+
危大工程
+
+
+
<%=GetCompletedNum() %>
+
审批完成
+
+
+
<%=GetTrainPersonNum() %>
+
培训人次数
+
+
+
<%=GetConstructionNum() %>
+
施工个数
+
+
+
<%=GetFinishedNum() %>
+
完工个数
+
+
+
+
+
超危大工程
+
+
+
<%=GetSuperCompletedNum() %>
+
审批完成
+
+
+
<%=GetSuperTrainPersonNum() %>
+
培训人次数
+
+
+
<%=GetSuperConstructionNum() %>
+
施工个数
+
+
+
<%=GetSuperFinishedNum() %>
+
完工个数
+
+
+
+
+
+
+
+
作业许可
+
+
+
+
动火
+
<%=getWrokCount0() %>
+
+
+
高处
+
<%=getWrokCount1() %>
+
+
+
吊装
+
<%=getWrokCount2() %>
+
+
+
其他
+
<%=getWrokCount3() %>
+
+
+
+ <%=getLicenseManager() %> + <%--
003-十一化建-合成氨区域-非高风险-T0001设备吊装
--%> + +
+
+ +
+
+
+
+
工程概括
+
+
+
工程名称:<%=spanProjectName %>
+
建设单位: <%=spanOwnUnit %>
+
施工单位: <%=spanSGUnit %>
+
监理单位:<%=spanJLUnit %>
+
工程概况:
+
+
+
+
+
+
+
+
+
+ +
+ + +
+
+
+
+
+
+
合同工期
+
0
+
+
+
合同到期时间
+
+
+
+
合同剩余
+
0
+
+
+
+ +
+
+
赢得值曲线 + <%--
关键事项准点率90%
--%> +
+
+ <%--
+ +
--%> + +
+
+
质量概况
+
+
+
+
质量培训累计人员
+
0
+
+
+
施工方案审批量
+
0
+
+
+
+
+
+
+
+
+
+
+
+
+
工作台面
+
+
+
+
关键事项
+
0
+
+
+
待办事项
+
0
+
+
+
个人流程
+
0
+
+
+
已办任务
+
0
+
+
+
+ +
+
+ +
+
+
人员信息
+
+
+
+
当前现场人数
+
0
+
+
+
作业人员总数
+
0
+
+
+
管理人员总数
+
0
+
+
+ +
+ <%--
+ +
--%> +
+ +
+
+
+ 材料到货 +
管道材料 + 设备材料
+
+
+
+
+
+
+

材料类别

+
+
+

设计量

+
+
+

采购量

+

采购量百分比

+
+
+

到货量

+

已到货百分比

+
+
+

领料量

+

已领料百分比

+
+
+
+
+ <%=gdclHtml %> +
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs b/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs new file mode 100644 index 00000000..16ec59c2 --- /dev/null +++ b/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs @@ -0,0 +1,943 @@ +using BLL; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.IO; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + + +namespace FineUIPro.Web.common +{ + public partial class mainProject2 : PageBase + { + /// + /// 项目id + /// + public string ProjectId + { + get + { + return (string)ViewState["ProjectId"]; + } + set + { + ViewState["ProjectId"] = value; + } + } + /// + /// 页面加载 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ProjectId = CurrUser.LoginProjectId; + Model.SGGLDB db = Funs.DB; + //安全人工时 + int wHours = db.SitePerson_PersonInOutNumber.Where(x=> x.ProjectId == ProjectId).Max(x => x.WorkHours ) ?? 0; + this.divSafeWorkTime.InnerHtml = wHours.ToString(); + + //本月安全人工时 + int wHoursMonth = db.SitePerson_PersonInOutNumber.Where(x => x.InOutDate > DateTime.Now.AddDays(-Convert.ToInt32(DateTime.Now.Date.Day)) + && x.ProjectId == ProjectId) + .Max(x => x.WorkHours) ?? 0; + this.divSafeWorkTimeMonth.InnerHtml = wHoursMonth.ToString(); + + //安全培训累计人员 + var getTrainRecord = db.EduTrain_TrainRecord.Where(x => x.ProjectId == ProjectId).Max(x => x.TrainPersonNum) ?? 0; + this.divSafePersonNum.InnerHtml = getTrainRecord.ToString(); + + //安全管理人员 + var allSum = from x in Funs.DB.SitePerson_Person + where x.IsUsed == true && x.ProjectId==ProjectId + select x; + var glAllPerson = from x in allSum + join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId + where (y.PostType == "1" || y.PostType == "4") && x.ProjectId==ProjectId //一般管理岗位和特种管理人员 + select x; + this.divSafeManagePersonNum.InnerHtml = glAllPerson.Count().ToString(); + + //未遂事故 + var wsAccidentList1 = from x in db.Accident_AccidentPersonRecord + join y in db.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId + where y.AccidentTypeName.Contains("未遂") && x.ProjectId == ProjectId + select x; + var wsAccidentList2 = from x in db.Accident_AccidentReportOther + join y in db.Sys_Const on x.AccidentTypeId equals y.ConstValue + where y.ConstText.Contains("未遂") && x.ProjectId == ProjectId + select x; + this.divWS.InnerHtml = (wsAccidentList1.Count() + wsAccidentList2.Count()).ToString(); + + //整改数据 + getZgsj(); + + //风险预警 + getHazard(); + + //工程概况 + getProjectInfo(); + + //质量培训人员 + DateTime date = DateTime.Now.AddDays(-1); + int CqmsPxNum = (from x in Funs.DB.Comprehensive_InspectionPerson + where x.IsTrain == true && x.CompileDate.Value.Year == date.Year && x.CompileDate.Value.Month == date.Month && x.CompileDate.Value.Day == date.Day + select x).Count(); + divCqmsPxNum.InnerHtml = CqmsPxNum.ToString(); + + //施工审批量 + int sgspl = Funs.DB.Solution_CQMSConstructSolution.Where(x => x.ProjectId == ProjectId && x.State == "1").Count(); + div_sgfaSpl.InnerHtml = sgspl.ToString() ; + + //质量共检 + getZlgj(); + + //焊接 + getHj(); + + //加载质量问题 + getZlwt(); + + //人员信息 + getSitePerson(); + + //项目人员图表 + getProjectSitePerson(); + + //工作台面 + getGztm(); + + //材料到货 + getCldh(); + } + } + + #region 人员信息 + private void getSitePerson() + { + int AllCount = 0; + int MCount = 0; + var getallin = APIPageDataService.getPersonNum(ProjectId,DateTime.Now); + AllCount = getallin.Count(); + if (AllCount > 0) + { + MCount = getallin.Where(x => x.PostType == Const.PostType_1).Count(); + } + + if (AllCount > 0) + { + ////当前现场总人数 + div_xcrs.InnerHtml = AllCount.ToString(); + //作业人数 + div_zyxcrs.InnerHtml = (AllCount - MCount).ToString(); + //管理人数 + div_glxcrs.InnerHtml = MCount.ToString(); + } + } + #endregion + + #region 项目人员图表 + protected string ProjectPersonCount; + protected string ProjectPersonMc; + private void getProjectSitePerson() + { + var list = Funs.DB.Base_Project.Where(x => (x.ProjectState == Const.ProjectState_1 || x.ProjectState == null) && x.Progress != null + && x.ProjectId==ProjectId).ToList(); + foreach (var item in list) + { + ProjectPersonMc += "'" + item.ShortName + "',"; + ProjectPersonCount += "'" + APIPageDataService.getPersonNum(item.ProjectId, DateTime.Now).Count() + "',"; + } + if (!string.IsNullOrEmpty(ProjectPersonMc)&& !string.IsNullOrEmpty(ProjectPersonCount)) + { + ProjectPersonMc = ProjectPersonMc.TrimEnd(','); + ProjectPersonCount = ProjectPersonCount.TrimEnd(','); + } + } + #endregion + + #region 整改数据 + protected void getZgsj() + { + div_zgsj.InnerHtml = (GetGeneralClosedNum() + GetGeneralNotClosedNum()).ToString(); + div_zgywc.InnerHtml = GetGeneralClosedNum().ToString(); + div_zgwwc.InnerHtml = GetGeneralNotClosedNum().ToString(); + div_zgwcl.InnerHtml = String.Format("{0:N2}", 100.0 * GetGeneralClosedNum() / (GetGeneralNotClosedNum() + GetGeneralClosedNum())) + "%"; + } + + /// + /// 获取隐患整改闭环项 + /// + /// + public int GetGeneralClosedNum() + { + int result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.States == "3" && x.ProjectId == ProjectId + select x).Count(); + return result; + } + /// + /// 获取隐患未整改完成项 + /// + /// + public int GetGeneralNotClosedNum() + { + int result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.States != "3" && x.ProjectId == ProjectId + select x).Count(); + return result; + } + #endregion + + #region 工程概括 + protected string divProjectNameTitle; + protected string divProjectAddressTitle; + protected string divProjectMoneyTitle; + protected string divOwnUnitTitle; + protected string divSGUnitTitle; + protected string divJLUnitTitle; + protected string divProjectImg; + + protected string spanProjectName; + protected string spanProjectAddress; + protected string spanOwnUnit; + protected string spanSGUnit; + protected string spanJLUnit; + protected string spanRemark; + /// + /// + /// + private void getProjectInfo() + { + divProjectNameTitle = ""; + divProjectAddressTitle = ""; + divProjectMoneyTitle = ""; + divOwnUnitTitle = ""; + divSGUnitTitle = ""; + divJLUnitTitle = ""; + divProjectImg = "../res/indexv2/assets/image/index6/center-bg.jpeg"; + var project = ProjectService.GetProjectByProjectId(this.ProjectId); + if (project != null) + { + spanProjectName = "" + project.ShortName + ""; + spanRemark= "" + project.Remark + ""; + divProjectNameTitle = project.ProjectName; + if (!string.IsNullOrEmpty(project.ProjectAddress)) + { + //this.divProjectAddress.InnerHtml = project.ProjectAddress.Length > 8 ? project.ProjectAddress.Substring(0, 8) + "..." : project.ProjectAddress; + spanProjectAddress = spanProjectName = "" + + (project.ProjectAddress.Length > 8 ? project.ProjectAddress.Substring(0, 8) + "..." : project.ProjectAddress) + ""; + divProjectAddressTitle = project.ProjectAddress; + } + string unit_yz = ProjectService.getProjectUnitNameByUnitType(project.ProjectId, Const.ProjectUnitType_4); + if (!string.IsNullOrEmpty(unit_yz)) + { + //this.divOwnUnit.InnerHtml = unit_yz.Length > 8 ? unit_yz.Substring(0, 8) + "..." : unit_yz; + spanOwnUnit = "" + + (unit_yz.Length > 8 ? unit_yz.Substring(0, 8) + "..." : unit_yz) + ""; + divOwnUnitTitle = unit_yz; + } + string unit_JL = ProjectService.getProjectUnitNameByUnitType(project.ProjectId, Const.ProjectUnitType_3); + if (!string.IsNullOrEmpty(unit_JL)) + { + //this.divJLUnit.InnerHtml = unit_JL.Length > 8 ? unit_JL.Substring(0, 8) + "..." : unit_JL; + spanJLUnit = "" + + (unit_JL.Length > 8 ? unit_JL.Substring(0, 8) + "..." : unit_JL) + ""; + divJLUnitTitle = unit_JL; + } + + string unit_FB = ProjectService.getProjectUnitNameByUnitType(project.ProjectId, Const.ProjectUnitType_2); + if (!string.IsNullOrEmpty(unit_FB)) + { + //this.divSGUnit.InnerHtml = unit_FB.Length > 8 ? unit_FB.Substring(0, 8) + "..." : unit_FB + "..."; + spanSGUnit = "" + + (unit_FB.Length > 8 ? unit_FB.Substring(0, 8) + "..." : unit_FB + "...") + ""; + } + + var getSGName = from x in Funs.DB.Project_ProjectUnit + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + where x.ProjectId == project.ProjectId && x.UnitType == Const.ProjectUnitType_2 + select y.UnitName; + foreach (var item in getSGName) + { + divSGUnitTitle += item + ","; + } + //this.divProjectMoney.InnerHtml = divProjectMoneyTitle = project.ProjectMoney.ToString() + "万元"; + if (project.EndDate.HasValue) + { + this.divEndDate.InnerHtml = string.Format("{0:yyyy-MM-dd}", project.EndDate); + int endDays = (project.EndDate.Value - DateTime.Now).Days; + if (endDays >= 0) + { + this.divRemainingDays.InnerHtml = endDays.ToString() + ""; + } + if (project.StartDate.HasValue) + { + int pdays = (project.EndDate.Value - project.StartDate.Value).Days; + if (pdays >= 0) + { + this.divProjectDays.InnerHtml = pdays.ToString() + ""; + } + } + } + + var getImag = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == project.ProjectId); + if (getImag != null && !string.IsNullOrEmpty(getImag.AttachUrl)) + { + string url = getImag.AttachUrl.Replace('\\', '/'); + string firtstUrl = Funs.GetStrListByStr(url, ',').FirstOrDefault(); + if (!string.IsNullOrEmpty(firtstUrl)) + { + string atturl = Funs.RootPath + firtstUrl.Replace(';', ' ').Trim(); + if (File.Exists(atturl)) + { + divProjectImg = "../" + firtstUrl.Replace(';', ' ').Trim(); + //this.divProjectImgs.Src = divProjectImg; + } + } + } + } + } + + #endregion + + #region 风险预警 + protected string riskData1; + protected string riskData2; + protected string riskData3; + protected string riskData4; + /// + /// 获取风险管控 + /// + private void getHazard() + { + var getHazards = from x in Funs.DB.Hazard_HazardSelectedItem + join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId + where x.ProjectId == ProjectId + select new { x.HazardSelectedItemId, y.RiskLevel }; + var riskLevels = from x in Funs.DB.Base_RiskLevel select x; + + List RiskLevelNum = new List(); + List series = new List(); + + riskData1 = getHazards.Count(x => x.RiskLevel == 1).ToString(); + riskData2 = getHazards.Count(x => x.RiskLevel == 2).ToString(); + riskData3 = getHazards.Count(x => x.RiskLevel == 3).ToString(); + riskData4 = getHazards.Count(x => x.RiskLevel == 4).ToString(); + + } + + /// + /// 资质预警 + /// + protected string getEarlyWarningCounts() + { + int allCount = 0; + var getPersonQualitys = from x in Funs.DB.QualityAudit_PersonQuality + join y in Funs.DB.SitePerson_Person on x.PersonId equals y.PersonId + where x.LimitDate.HasValue && x.LimitDate < DateTime.Now && y.ProjectId==ProjectId + select x; + //// 预警人数 + allCount = getPersonQualitys.Count(); + return allCount.ToString(); + } + + /// + /// 机械预警 + /// + /// + protected int GetJxyjNum() + { + int result = 0; + //机具报验的到期提醒和过期提醒记录数加一起 + //机具报验的到期提醒数 + var num1 = Funs.DB.Comprehensive_InspectionMachine.Where(x => x.IsOnSite == true && DateTime.Now < x.NextTestDate && x.ProjectId==ProjectId + && ((DateTime)x.NextTestDate).AddDays(-15) < DateTime.Now).Count(); + //过期提醒记录数 + var num2 = Funs.DB.Comprehensive_InspectionMachine.Where(x => x.IsOnSite == true && x.NextTestDate < DateTime.Now && x.ProjectId == ProjectId).Count(); + result = num1 + num2; + return result; + } + + /// + /// 获取危大工程审批完成数 + /// + /// + protected int GetCompletedNum() + { + var result = Project_HSSEData_HSSEService.GetCompletedNum(ProjectId); + return result; + } + + /// + /// 获取危大工程培训人次数 + /// + /// + protected int GetTrainPersonNum() + { + var result = Project_HSSEData_HSSEService.GetTrainPersonNum(ProjectId); + return result; + } + + /// + /// 获取危大工程施工个数 + /// + /// + protected int GetConstructionNum() + { + var result = Project_HSSEData_HSSEService.GetConstructionNum(ProjectId); + return result; + } + + /// + /// 获取危大工程完工个数 + /// + /// + protected int GetFinishedNum() + { + var result = Project_HSSEData_HSSEService.GetFinishedNum(ProjectId); + return result; + } + + /// + /// 获取超危大工程审批完成数 + /// + /// + protected int GetSuperCompletedNum() + { + var result = Project_HSSEData_HSSEService.GetSuperCompletedNum(ProjectId); + return result; + } + + /// + /// 获取超危大工程培训人次数 + /// + /// + protected int GetSuperTrainPersonNum() + { + var result = Project_HSSEData_HSSEService.GetSuperTrainPersonNum(ProjectId); + return result; + } + + /// + /// 获取超危大工程施工个数 + /// + /// + protected int GetSuperConstructionNum() + { + var result = Project_HSSEData_HSSEService.GetSuperConstructionNum(ProjectId); + return result; + } + + /// + /// 获取超危大工程完工个数 + /// + /// + protected int GetSuperFinishedNum() + { + var result = Project_HSSEData_HSSEService.GetSuperFinishedNum(ProjectId); + return result; + } + #endregion + + #region 作业许可 + /// + /// 动火作业许可证 + /// + /// + protected int getWrokCount0() { + var result = Funs.DB.View_License_LicenseManager.Where(x => x.ProjectId == ProjectId&&x.LicenseTypeName== "动火作业许可证").ToList().Count; + return result; + } + + protected int getWrokCount1() + { + var result = Funs.DB.View_License_LicenseManager.Where(x => x.ProjectId == ProjectId && x.LicenseTypeName == "高处作业许可证").ToList().Count; + return result; + } + + protected int getWrokCount2() + { + var result = Funs.DB.View_License_LicenseManager.Where(x => x.ProjectId == ProjectId && x.LicenseTypeName == "吊装作业许可证").ToList().Count; + return result; + } + + protected int getWrokCount3() + { + var result = Funs.DB.View_License_LicenseManager.Where(x => x.ProjectId == ProjectId + && x.LicenseTypeName != "动火作业许可证" && x.LicenseTypeName != "高处作业许可证" && x.LicenseTypeName != "吊装作业许可证").ToList().Count; + return result; + } + #endregion + + #region 质量问题 + //质量问题总计 + protected string zlallNumber; + //质量问题合格数量 + protected string zlfinishNumber; + //质量问题整改率 + protected string zlzgl; + + protected string zgzglDataValue; + protected void getZlwt() + { + zlallNumber = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now && x.ProjectId==ProjectId + select x).Count().ToString(); + var num2 = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now && x.State == "7" && x.ProjectId == ProjectId + select x).Count(); + zlfinishNumber = num2.ToString(); + var num3 = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now && x.State != "7" && x.ProjectId == ProjectId + select x).Count(); + + var zgl = String.Format("{0:N2}", 100.0 * num2 / (num2 + num3)); + zlzgl = zgl.ToString(); + zgzglDataValue = (100 - (100.0 * num2 / (num2 + num3))).ToString(); + } + #endregion + + #region 质量共检 + protected string zlgjallNumber; + protected string zlgjfinishNumber; + protected string zlgjzgl; + + protected string zggjzglDataValue; + protected void getZlgj() + { + //Check_JointCheck + zlgjallNumber = (from x in Funs.DB.Check_JointCheck + where x.CheckDate <= DateTime.Now && x.ProjectId == ProjectId + select x).Count().ToString(); + + var num2 = (from x in Funs.DB.Check_JointCheck + where x.CheckDate <= DateTime.Now && x.State == BLL.Const.JointCheck_Complete && x.ProjectId == ProjectId + select x).Count(); + zlgjfinishNumber = num2.ToString(); + + var num3 = (from x in Funs.DB.Check_JointCheck + where x.CheckDate <= DateTime.Now && x.State != BLL.Const.JointCheck_Complete && x.ProjectId == ProjectId + select x).Count(); + var zgl = "0"; + if (num2 != 0) + { + zgl = String.Format("{0:N2}", 100.0 * num2 / (num2 + num3)); + zlgjzgl = zgl.ToString(); + zggjzglDataValue = (100 - (100.0 * num2 / (num2 + num3))).ToString(); + } + else { + zlgjzgl = zgl.ToString(); + zggjzglDataValue = "0"; + } + + + } + + #endregion + + #region 焊接 + protected string hjallNumber = "0"; + protected string hjfinishNumber = "0"; + protected string hjzgl = "0"; + + protected string hjDataValue = "0"; + protected void getHj() + { + Model.SingleSerie series = new Model.SingleSerie(); + Model.BusinessColumn businessColumn = new Model.BusinessColumn(); + List listdata = new List(); + double result = 0; + Model.SGGLDB db = Funs.DB; + //一次检测合格焊口数 + int oneCheckJotNum = (from x in db.HJGL_Batch_NDEItem + join y in db.HJGL_Batch_BatchTrustItem on x.TrustBatchItemId equals y.TrustBatchItemId + join z in db.HJGL_Batch_PointBatchItem on y.PointBatchItemId equals z.PointBatchItemId + join a in db.HJGL_Batch_NDE on x.NDEID equals a.NDEID + where z.PointDate != null && z.PointState == "1" && y.RepairRecordId == null + && a.ProjectId ==ProjectId + select x.NDEItemID).Count(); + //一次检测返修焊口数 + int oneCheckRepairJotNum = (from x in db.HJGL_Batch_NDEItem + join y in db.HJGL_Batch_BatchTrustItem on x.TrustBatchItemId equals y.TrustBatchItemId + join z in db.HJGL_Batch_PointBatchItem on y.PointBatchItemId equals z.PointBatchItemId + join a in db.HJGL_Batch_NDE on x.NDEID equals a.NDEID + where z.PointDate != null && z.PointState == "1" && y.RepairRecordId == null && x.CheckResult == "2" + && a.ProjectId ==ProjectId + select x.NDEItemID).Count(); + if (oneCheckJotNum > 0) + { + var a = Convert.ToDouble(oneCheckJotNum - oneCheckRepairJotNum); + var b = Convert.ToDouble(oneCheckJotNum); + result = Convert.ToDouble(decimal.Round(decimal.Parse((a / b * 100).ToString()), 0)); + + hjallNumber = b.ToString(); + hjfinishNumber = a.ToString(); + hjzgl = result.ToString(); + hjDataValue = (100 - result).ToString(); + } + + + } + + #endregion + + #region 赢得值曲线 + protected string Two + { + get + { + List series = new List(); + Model.BusinessColumn businessColumn = new Model.BusinessColumn(); + List listCategories = new List(); + businessColumn.title = "赢得值曲线"; + Model.Project_Installation installation = BLL.Project_InstallationService.GetProjectInstallationByProjectId(this.CurrUser.LoginProjectId); + if (installation != null) + { + Model.SingleSerie s = new Model.SingleSerie(); + Model.SingleSerie s2 = new Model.SingleSerie(); + Model.SingleSerie s3 = new Model.SingleSerie(); + Model.SingleSerie s4 = new Model.SingleSerie(); + Model.SingleSerie s5 = new Model.SingleSerie(); + Model.SingleSerie s6 = new Model.SingleSerie(); + List listdata = new List(); + List listdata2 = new List(); + List listdata3 = new List(); + List listdata4 = new List(); + List listdata5 = new List(); + List listdata6 = new List(); + string strSql = "select distinct (cast(YEAR(Months) as varchar(4))+'.'+cast(MONTH(Months) as varchar(2))) as 月份,t.Months," + + "ThisRealCost as '本月已完工作实际费用-ACWP',ThisPlanCost as '本月已完工作预算费用-BCWP',ThisPlanValue as '本月计划工作预算费用-BCWS',TotalPlanValue as '累计计划工作预算费用-BCWS',TotalRealCost as '累计已完工作实际费用-ACWP',TotalPlanCost as '累计已完工作预算费用-BCWP' " + + "from dbo.View_WBS_CostControlParentDetail as t where ParentId=@Id order by t.Months"; + //string date = DateTime.Now.Year + "-" + DateTime.Now.Month + "-01"; + SqlParameter[] parameter = new SqlParameter[] + { + new SqlParameter("@Id",installation.InstallationId), + //new SqlParameter("@Months",date), + }; + DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); + decimal lastbcws = 0, bcws = 0, lastacwp = 0, acwp = 0, lastbcwp = 0, bcwp = 0; + for (int i = 0; i < dt.Rows.Count; i++) + { + dt.Rows[i]["本月已完工作实际费用-ACWP"] = Funs.GetNewDecimalOrZero(dt.Rows[i]["本月已完工作实际费用-ACWP"].ToString()) / 10000; + dt.Rows[i]["本月已完工作预算费用-BCWP"] = Funs.GetNewDecimalOrZero(dt.Rows[i]["本月已完工作预算费用-BCWP"].ToString()) / 10000; + dt.Rows[i]["本月计划工作预算费用-BCWS"] = Funs.GetNewDecimalOrZero(dt.Rows[i]["本月计划工作预算费用-BCWS"].ToString()) / 10000; + bcws = Funs.GetNewDecimalOrZero(dt.Rows[i]["累计计划工作预算费用-BCWS"].ToString()); + acwp = Funs.GetNewDecimalOrZero(dt.Rows[i]["累计已完工作实际费用-ACWP"].ToString()); + bcwp = Funs.GetNewDecimalOrZero(dt.Rows[i]["累计已完工作预算费用-BCWP"].ToString()); + if (bcws == lastbcws) + { + if (Funs.GetNewDateTimeOrNow(dt.Rows[i]["Months"].ToString()) > DateTime.Now) + { + dt.Rows[i]["累计计划工作预算费用-BCWS"] = 0; + } + else + { + dt.Rows[i]["累计计划工作预算费用-BCWS"] = bcws / 10000; + } + } + else + { + dt.Rows[i]["累计计划工作预算费用-BCWS"] = bcws / 10000; + } + if (acwp == lastacwp) + { + if (Funs.GetNewDateTimeOrNow(dt.Rows[i]["Months"].ToString()) > DateTime.Now) + { + dt.Rows[i]["累计已完工作实际费用-ACWP"] = 0; + } + else + { + dt.Rows[i]["累计已完工作实际费用-ACWP"] = acwp / 10000; + } + } + else + { + dt.Rows[i]["累计已完工作实际费用-ACWP"] = acwp / 10000; + } + if (bcwp == lastbcwp) + { + if (Funs.GetNewDateTimeOrNow(dt.Rows[i]["Months"].ToString()) > DateTime.Now) + { + dt.Rows[i]["累计已完工作预算费用-BCWP"] = 0; + } + else + { + dt.Rows[i]["累计已完工作预算费用-BCWP"] = bcwp / 10000; + } + } + else + { + dt.Rows[i]["累计已完工作预算费用-BCWP"] = bcwp / 10000; + } + lastbcws = bcws; + lastacwp = acwp; + lastbcwp = bcwp; + + listCategories.Add(dt.Rows[i]["月份"].ToString()); + if (Funs.GetNewDateTimeOrNow(dt.Rows[i]["Months"].ToString()) <= DateTime.Now) + { + listdata.Add(Convert.ToDouble(dt.Rows[i]["本月计划工作预算费用-BCWS"])); + listdata2.Add(Convert.ToDouble(dt.Rows[i]["累计计划工作预算费用-BCWS"])); + listdata3.Add(Convert.ToDouble(dt.Rows[i]["本月已完工作预算费用-BCWP"])); + listdata4.Add(Convert.ToDouble(dt.Rows[i]["累计已完工作预算费用-BCWP"])); + listdata5.Add(Convert.ToDouble(dt.Rows[i]["本月已完工作实际费用-ACWP"])); + listdata6.Add(Convert.ToDouble(dt.Rows[i]["累计已完工作实际费用-ACWP"])); + } + } + s.data = listdata; + s2.data = listdata2; + s3.data = listdata3; + s4.data = listdata4; + s5.data = listdata5; + s6.data = listdata6; + series.Add(s); + series.Add(s2); + series.Add(s3); + series.Add(s4); + series.Add(s5); + series.Add(s6); + businessColumn.categories = listCategories; + businessColumn.series = series; + } + return JsonConvert.SerializeObject(businessColumn); + } + } + #endregion + + #region 人力情况 + protected string Person + { + get + { + Model.SGGLDB db = Funs.DB; + List series = new List(); + Model.BusinessColumn businessColumn = new Model.BusinessColumn(); + List listCategories = new List(); + var persons = from x in db.SitePerson_Person where x.ProjectId == this.CurrUser.LoginProjectId && x.IsUsed == true && x.InTime <= DateTime.Now && (!x.OutTime.HasValue || x.OutTime > DateTime.Now) select x; + var posts = (from x in persons + join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId + select y).Distinct(); + Model.SingleSerie s = new Model.SingleSerie(); + List listdata = new List(); + //木工 + listCategories.Add("木工"); + int workPostCount1 = persons.Count(x => x.WorkPostId == Const.WorkPost_Carpentry); + listdata.Add(workPostCount1); + //钢筋工 + listCategories.Add("钢筋工"); + int workPostCount2 = persons.Count(x => x.WorkPostId == Const.WorkPost_SteelWorker); + listdata.Add(workPostCount2); + //瓦工 + listCategories.Add("瓦工"); + int workPostCount3 = persons.Count(x => x.WorkPostId == Const.WorkPost_Bricklayer); + listdata.Add(workPostCount3); + //混凝土工 + listCategories.Add("混凝土工"); + int workPostCount4 = persons.Count(x => x.WorkPostId == Const.WorkPost_ConcreteWorker); + listdata.Add(workPostCount4); + //钳工 + listCategories.Add("钳工"); + int workPostCount5 = persons.Count(x => x.WorkPostId == Const.WorkPost_Fitter1 || x.WorkPostId == Const.WorkPost_Fitter2); + listdata.Add(workPostCount5); + //焊工 + listCategories.Add("焊工"); + int workPostCount6 = persons.Count(x => x.WorkPostId == Const.WorkPost_Welder1 || x.WorkPostId == Const.WorkPost_Welder2 || + x.WorkPostId == Const.WorkPost_Welder3 || x.WorkPostId == Const.WorkPost_Welder4 || x.WorkPostId == Const.WorkPost_Welder5); + listdata.Add(workPostCount6); + //铆工 + listCategories.Add("铆工"); + int workPostCount7 = persons.Count(x => x.WorkPostId == Const.WorkPost_Riveter); + listdata.Add(workPostCount7); + //管工 + listCategories.Add("管工"); + int workPostCount8 = persons.Count(x => x.WorkPostId == Const.WorkPost_Foreman); + listdata.Add(workPostCount8); + //电工 + listCategories.Add("电工"); + int workPostCount9 = persons.Count(x => x.WorkPostId == Const.WorkPost_Electrician1 || x.WorkPostId == Const.WorkPost_Electrician2 + || x.WorkPostId == Const.WorkPost_Electrician3); + listdata.Add(workPostCount9); + //仪表工 + listCategories.Add("仪表工"); + int workPostCount10 = persons.Count(x => x.WorkPostId == Const.WorkPost_Instrumentalist); + listdata.Add(workPostCount10); + //防腐保温工 + listCategories.Add("防腐保温工"); + int workPostCount11 = persons.Count(x => x.WorkPostId == Const.WorkPost_AnticorrosionWorker); + listdata.Add(workPostCount11); + //防腐保温工 + listCategories.Add("管理人员"); + int workPostCount12 = (from x in persons + join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId + where y.PostType == Const.PostType_1 + select x).Count(); + listdata.Add(workPostCount12); + //其他 + listCategories.Add("其他"); + int workPostCount13 = persons.Count() - workPostCount1 - workPostCount2 - workPostCount3 - workPostCount4 - workPostCount5 - workPostCount6 - workPostCount7 + - workPostCount8 - workPostCount9 - workPostCount10 - workPostCount11 - workPostCount12; + listdata.Add(workPostCount13); + s.data = listdata; + series.Add(s); + businessColumn.categories = listCategories; + businessColumn.title = persons.Count().ToString(); + businessColumn.series = series; + return JsonConvert.SerializeObject(businessColumn); + } + } + #endregion + + #region 作业许可列表 + protected string getLicenseManager() { + string returnHtml = ""; + var list = Funs.DB.View_License_LicenseManager.Where(x => x.ProjectId == ProjectId).ToList(); + foreach (var item in list) + { + var gfx = "风险作业"; + if (item.IsHighRisk!=true) + { + gfx = "非高风险"; + } + var shortUnitname = Funs.DB.Base_Unit.Where(x => x.UnitId == item.UnitId).FirstOrDefault().ShortUnitName; + returnHtml+= "
"+item.LicenseManagerCode+"-"+shortUnitname + "-"+item.WorkAreaName+"-"+ gfx+"-"+item.LicenseTypeName + +"
"; + } + return returnHtml; + } + #endregion + + #region 工作台面 + protected void getGztm() { + div_dbsxlist.InnerHtml = ""; + //关键事项 + string strSql = @"SELECT GJSXID AS DataId + ,'0BEA2126-7A48-40EB-8E21-99148E91A22B' AS MenuId + ,'关键事项待处理' AS MenuName + ,GJSX.Detail AS Content + ,users.UserId + ,users.UserName + ,GJSX.CreateDate AS DataTime + ,CONVERT(varchar(100),GJSX.CreateDate, 23) AS DataTimeStr + ,'../PZHGL/GJSX/GJSXListEdit.aspx?ToDo=ToDo&EditType=Edit&ID='+GJSXID AS PCUrl + FROM GJSX + LEFT JOIN Sys_User AS users ON users.UserId =@userId + WHERE GJSX.ProjectId=@projectId AND + GJSX.State != 0 AND (((select count(*) from GJSX_detail detail where detail.Progress_user=@userId and detail.GJSXID=GJSX.GJSXID)=0 + and (select count(*) from GJSX_Process process where process.UserId=@userId and process.GJSXID=GJSX.GJSXID)>0) + or (GJSX.User_Acceptance like '%'+@userId+'%' and (select count(*) from GJSX_detail detail where detail.GJSXID=GJSX.GJSXID)=(select count(*) from GJSX_Process process where process.GJSXID=GJSX.GJSXID)) + )"; + List listStr = new List(); + + listStr.Add(new SqlParameter("@userId", CurrUser.UserId)); + listStr.Add(new SqlParameter("@projectId", ProjectId)); + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + var Gjsxcount = tb.Rows.Count; + div_gjsx.InnerHtml = Gjsxcount.ToString() ; + + var getDataList = Funs.DB.Sp_Project_GetToDoItems(this.CurrUser.LoginProjectId, this.CurrUser.UserId).ToList(); + //待办事项、个人流程 + div_dbsx.InnerHtml= getDataList.Count().ToString(); + div_grlc.InnerHtml = getDataList.Count().ToString(); + string returnHtml = ""; + foreach (var item in getDataList) + { + returnHtml += "
"+ item.MenuName + "" + item.Content+""+ + item.DataTime.ToString().Replace('/','-').Split(' ')[0] + "
"; + } + div_dbsxlist.InnerHtml = returnHtml; + } + #endregion + + /// + /// 关闭弹出窗 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + getGztm(); + } + + + /// + /// 打开待办 + /// + /// + /// + protected void btnshowWindows(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("{0}", hiddenUrl.Value, "办理 - "))); + } + + #region 材料到货 + protected string gdclHtml; + protected string sbclHtml; + + protected string gdclHead = "

材料类别

设计量

采购量

采购量百分比

到货量

已到货百分比

领料量

已领料百分比

"; + protected string sbclHead = "

合同号

" + + "

采购总量

" + + "

发货总量

" + + "

到货总量

" + + "

到货百分比

"; + private void getCldh() + { + //管道材料 + var pid = BLL.ProjectService.GetCLProjectCodeByProjectId(ProjectId).ToString(); + var list = Funs.DB.CLGL_PipelineMaterialSumList.Where(x => x.Type == "M" && x.ProjectId== pid); + foreach (var item in list) + { + gdclHtml += "
"; + gdclHtml += ""+item.C1+""; + gdclHtml += "" + (string.IsNullOrEmpty(item.C2)?"0": item.C2) + ""; + gdclHtml += "" + (string.IsNullOrEmpty(item.C4) ? "0" : item.C4) + ""; + gdclHtml += "" + (string.IsNullOrEmpty(item.C5) ? "0%" : item.C5) + ""; + gdclHtml += "" + (string.IsNullOrEmpty(item.C6)?"0": item.C6) + ""; + gdclHtml += "" + (string.IsNullOrEmpty(item.C7)?"0%": item.C7) + ""; + gdclHtml += "" + (string.IsNullOrEmpty(item.C8)?"0": item.C8) + ""; + gdclHtml += "" + (string.IsNullOrEmpty(item.C9) ? "0%" : item.C9) + ""; + gdclHtml += "
"; + } + + //设备材料 + var SbclList = Funs.DB.CLGL_ContractListSum.Where(x => x.C1 == "设备"&&x.ProjectId==pid); + foreach (var item in SbclList) + { + sbclHtml += "
"; + double SbcllCgl = 0.0; + double Sbdhs = 0.0; + if (string.IsNullOrEmpty(item.C7)) + { + SbcllCgl += 0; + Sbdhs += 0; + } + else + { + SbcllCgl += Convert.ToDouble(item.C7); + Sbdhs += Convert.ToDouble(item.C9); + } + sbclHtml += "" + item.C2 + ""; + sbclHtml += "" + SbcllCgl + ""; + sbclHtml += "" + item.C7 + ""; + sbclHtml += "" + Sbdhs + ""; + //百分比 + var dhbfb = "0%"; + if (SbcllCgl + Sbdhs != 0) + { + dhbfb = String.Format("{0:N2}", 100.0 * Sbdhs / (Sbdhs + SbcllCgl), 2) + "%"; + + } + sbclHtml += "" + dhbfb + ""; + sbclHtml += "
"; + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/common/mainProject2.aspx.designer.cs b/SGGL/FineUIPro.Web/common/mainProject2.aspx.designer.cs new file mode 100644 index 00000000..0b27aabb --- /dev/null +++ b/SGGL/FineUIPro.Web/common/mainProject2.aspx.designer.cs @@ -0,0 +1,260 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.common +{ + + + public partial class mainProject2 + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// divSafeWorkTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divSafeWorkTime; + + /// + /// divSafeWorkTimeMonth 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divSafeWorkTimeMonth; + + /// + /// divSafePersonNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divSafePersonNum; + + /// + /// divSafeManagePersonNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divSafeManagePersonNum; + + /// + /// divWS 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divWS; + + /// + /// div_zgsj 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_zgsj; + + /// + /// div_zgywc 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_zgywc; + + /// + /// div_zgwwc 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_zgwwc; + + /// + /// div_zgwcl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_zgwcl; + + /// + /// divProjectDays 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divProjectDays; + + /// + /// divEndDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divEndDate; + + /// + /// divRemainingDays 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divRemainingDays; + + /// + /// divCqmsPxNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divCqmsPxNum; + + /// + /// div_sgfaSpl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_sgfaSpl; + + /// + /// div_gjsx 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_gjsx; + + /// + /// div_dbsx 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_dbsx; + + /// + /// div_grlc 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_grlc; + + /// + /// div_ybrw 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_ybrw; + + /// + /// div_dbsxlist 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_dbsxlist; + + /// + /// div_xcrs 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_xcrs; + + /// + /// div_zyxcrs 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_zyxcrs; + + /// + /// div_glxcrs 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_glxcrs; + + /// + /// hiddenUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlInputHidden hiddenUrl; + + /// + /// btnShowWindows 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnShowWindows; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + } +} diff --git a/SGGL/FineUIPro.Web/common/main_new.aspx b/SGGL/FineUIPro.Web/common/main_new.aspx index 3f052ecd..95b1e4b4 100644 --- a/SGGL/FineUIPro.Web/common/main_new.aspx +++ b/SGGL/FineUIPro.Web/common/main_new.aspx @@ -249,7 +249,6 @@ + + + - @@ -187,134 +223,65 @@ <%--头部 开始--%> -
-
-
- -
-
中国五环工程有限公司智慧施工管理信息系统(项目级)
- + -
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • - <%--
  • - - -
  • --%> -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • - -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - -
  • -
-
- - -
-
-
+
+ 设置 + - -
  • - + <%--
    帮助
    --%> +
    + 退出 + -
  • -
    +
    全屏
    +
    +
    质量管理
    +
    安全管理
    +
    进度管理
    +
    焊接管理
    +
    材料管理
    +
    试车管理
    +
    关键事项
    +
    视频监控
    +
    现场考勤
    +
    意见收集
    +
    协调与沟通
    +
    <%--头部 结束--%> @@ -430,6 +397,42 @@ EnableMaximize="true" EnableResize="false"> + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/indexProject.aspx.cs b/SGGL/FineUIPro.Web/indexProject.aspx.cs index 6bda20ef..0051d4e1 100644 --- a/SGGL/FineUIPro.Web/indexProject.aspx.cs +++ b/SGGL/FineUIPro.Web/indexProject.aspx.cs @@ -293,7 +293,7 @@ namespace FineUIPro.Web Response.Expires = 0; //设置过期时间 Response.Cache.SetNoStore(); //在服务器端不缓存该页面 Response.AppendHeader("Pragma", "no-cache"); //在客户端不缓存 - ProjectService.InitAllProjectShortNameDropDownList(this.drpProject, this.CurrUser.UserId, false); + ProjectService.InitProjectShortNameByStateDropDownList(this.drpProject, this.CurrUser.UserId, BLL.Const.ProjectState_1, false); if (!string.IsNullOrEmpty(Request.Params["projectId"])) { this.drpProject.SelectedValue = Request.Params["projectId"]; @@ -316,81 +316,81 @@ namespace FineUIPro.Web this.InitMenuModeButton(); this.InitLangMenuButton(); - GetWeather(); + //GetWeather(); } } private void GetWeather() { - try - { - string appkey = "cc220b45380a453a08cb79fd2d40ea3e"; //配置您申请的appkey - //1.根据城市查询天气 - //string url1 = "http://op.juhe.cn/onebox/weather/query"; - //var parameters1 = new Dictionary(); - Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(this.drpProject.SelectedValue); - string city = "武汉"; - if (project != null && !string.IsNullOrEmpty(project.City)) - { - city = project.City; - } - if (!string.IsNullOrEmpty(city)) - { - //parameters1.Add("cityname", city); //要查询的城市,如:温州、上海、北京 - //parameters1.Add("key", appkey);//你申请的key - //parameters1.Add("dtype", ""); //返回数据的格式,xml或json,默认json + //try + //{ + // string appkey = "cc220b45380a453a08cb79fd2d40ea3e"; //配置您申请的appkey + // //1.根据城市查询天气 + // //string url1 = "http://op.juhe.cn/onebox/weather/query"; + // //var parameters1 = new Dictionary(); + // Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(this.drpProject.SelectedValue); + // string city = "武汉"; + // if (project != null && !string.IsNullOrEmpty(project.City)) + // { + // city = project.City; + // } + // if (!string.IsNullOrEmpty(city)) + // { + // //parameters1.Add("cityname", city); //要查询的城市,如:温州、上海、北京 + // //parameters1.Add("key", appkey);//你申请的key + // //parameters1.Add("dtype", ""); //返回数据的格式,xml或json,默认json - //string result1 = sendPost(url1, parameters1, "get"); - Model.Weather oldWeather = BLL.WeatherService.GetWeatherByDateAndCity(DateTime.Now.Date, city); - if (oldWeather == null) //未生成天气记录 - { - string result = BLL.CommonService.CreateGetHttpResponse("http://apis.juhe.cn/simpleWeather/query?city=" + city + "&key=" + appkey); - var j2 = JsonConvert.DeserializeObject(result); - if (j2.reason == "查询成功!") - { - string tem = j2.result.realtime.temperature; - string weather = j2.result.realtime.info; - if (weather == "多云") - { - this.btnWeather.IconFont = IconFont.Cloud; - } - else if (weather == "晴") - { - this.btnWeather.IconFont = IconFont.SunO; - } - else if (weather == "阴") - { - this.btnWeather.IconFont = IconFont.Cloud; - } - else if (weather.Contains("雪")) - { - this.btnWeather.IconFont = IconFont.SnowflakeO; - } - string alltem = j2.result.future[0].temperature; - this.btnWeather.Text = tem; - string date = DateTime.Now.Year + "年" + DateTime.Now.Month + "月" + DateTime.Now.Day + "日"; - this.btnWeather.ToolTip = date + " " + city + " " + weather + " " + alltem; - Model.Weather newWeather = new Model.Weather(); - newWeather.WeatherId = SQLHelper.GetNewID(); - newWeather.City = city; - newWeather.Date = DateTime.Now.Date; - newWeather.WeatherRef = weather; - newWeather.CurrTem = tem; - newWeather.AllTem = alltem; - BLL.WeatherService.AddWeather(newWeather); - } - } - else - { - this.btnWeather.Text = oldWeather.CurrTem; - string date = DateTime.Now.Year + "年" + DateTime.Now.Month + "月" + DateTime.Now.Day + "日"; - this.btnWeather.ToolTip = date + " " + city + " " + oldWeather.WeatherRef + " " + oldWeather.AllTem; - } - } - } - catch (Exception ex) - { - } + // //string result1 = sendPost(url1, parameters1, "get"); + // Model.Weather oldWeather = BLL.WeatherService.GetWeatherByDateAndCity(DateTime.Now.Date, city); + // if (oldWeather == null) //未生成天气记录 + // { + // string result = BLL.CommonService.CreateGetHttpResponse("http://apis.juhe.cn/simpleWeather/query?city=" + city + "&key=" + appkey); + // var j2 = JsonConvert.DeserializeObject(result); + // if (j2.reason == "查询成功!") + // { + // string tem = j2.result.realtime.temperature; + // string weather = j2.result.realtime.info; + // if (weather == "多云") + // { + // this.btnWeather.IconFont = IconFont.Cloud; + // } + // else if (weather == "晴") + // { + // this.btnWeather.IconFont = IconFont.SunO; + // } + // else if (weather == "阴") + // { + // this.btnWeather.IconFont = IconFont.Cloud; + // } + // else if (weather.Contains("雪")) + // { + // this.btnWeather.IconFont = IconFont.SnowflakeO; + // } + // string alltem = j2.result.future[0].temperature; + // this.btnWeather.Text = tem; + // string date = DateTime.Now.Year + "年" + DateTime.Now.Month + "月" + DateTime.Now.Day + "日"; + // this.btnWeather.ToolTip = date + " " + city + " " + weather + " " + alltem; + // Model.Weather newWeather = new Model.Weather(); + // newWeather.WeatherId = SQLHelper.GetNewID(); + // newWeather.City = city; + // newWeather.Date = DateTime.Now.Date; + // newWeather.WeatherRef = weather; + // newWeather.CurrTem = tem; + // newWeather.AllTem = alltem; + // BLL.WeatherService.AddWeather(newWeather); + // } + // } + // else + // { + // this.btnWeather.Text = oldWeather.CurrTem; + // string date = DateTime.Now.Year + "年" + DateTime.Now.Month + "月" + DateTime.Now.Day + "日"; + // this.btnWeather.ToolTip = date + " " + city + " " + oldWeather.WeatherRef + " " + oldWeather.AllTem; + // } + // } + //} + //catch (Exception ex) + //{ + //} } /// @@ -596,11 +596,11 @@ namespace FineUIPro.Web /// protected void MenuSwitchMethod(string type) { - // this.CurrUser.LoginProjectId = this.drpProject.SelectedValue; + // this.CurrUser.LoginProjectId = this.drpProject.SelectedValue; this.XmlDataSource1.DataFile = "common/Menu_Personal.xml"; this.leftPanel.Hidden = true; var projectUser = BLL.ProjectUserService.GetProjectUserByUserIdProjectId(this.CurrUser.LoginProjectId, this.CurrUser.UserId); - if (projectUser != null&&type!=BLL.Const.Menu_Opinion) + if (projectUser != null && type != BLL.Const.Menu_Opinion) { string roleTypes = string.Empty; string roleCNs = string.Empty; @@ -631,12 +631,12 @@ namespace FineUIPro.Web } else { - this.Tab1.IFrameUrl = "~/common/mainProject.aspx"; + this.Tab1.IFrameUrl = "~/common/mainProject2.aspx"; } } else { - this.Tab1.IFrameUrl = "~/common/mainProject.aspx"; + this.Tab1.IFrameUrl = "~/common/mainProject2.aspx"; } this.CurrUser.LastProjectId = null; if (!string.IsNullOrEmpty(type)) @@ -677,17 +677,17 @@ namespace FineUIPro.Web this.Tab1.IFrameUrl = "~/Opinion/OpinionCollection.aspx"; this.Tab1.Title = "意见收集"; } - else if (type==Const.Menu_Doc) + else if (type == Const.Menu_Doc) { this.Tab1.IFrameUrl = "~/DocManage/DocManage.aspx"; this.Tab1.Title = "协调与沟通"; } - else if (type==Const.Menu_ToDo) + else if (type == Const.Menu_ToDo) { this.Tab1.IFrameUrl = "~/SysManage/ProjectToDo.aspx"; } else - { + { this.Tab1.Title = "首页"; } } @@ -803,5 +803,35 @@ namespace FineUIPro.Web { this.MenuSwitchMethod(Const.Menu_ToDo); } + + protected void ProjectZJ_Click(object sender, EventArgs e) + { + ProjectService.InitProjectShortNameByStateDropDownList(this.drpProject, this.CurrUser.UserId, BLL.Const.ProjectState_1, false); + if (this.drpProject.Items.Count > 0) + { + this.drpProject.SelectedIndex = 0; + this.CurrUser.LoginProjectId = this.drpProject.SelectedValue; + } + } + + protected void ProjectTG_Click(object sender, EventArgs e) + { + ProjectService.InitProjectShortNameByStateDropDownList(this.drpProject, this.CurrUser.UserId, BLL.Const.ProjectState_2, false); + if (this.drpProject.Items.Count > 0) + { + this.drpProject.SelectedIndex = 0; + this.CurrUser.LoginProjectId = this.drpProject.SelectedValue; + } + } + + protected void ProjectJG_Click(object sender, EventArgs e) + { + ProjectService.InitProjectShortNameByStateDropDownList(this.drpProject, this.CurrUser.UserId, BLL.Const.ProjectState_3, false); + if (this.drpProject.Items.Count > 0) + { + this.drpProject.SelectedIndex = 0; + this.CurrUser.LoginProjectId = this.drpProject.SelectedValue; + } + } } } diff --git a/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs b/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs index b599ef69..20c08cb8 100644 --- a/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs @@ -59,123 +59,6 @@ namespace FineUIPro.Web /// protected global::FineUIPro.ContentPanel ContentPanel1; - /// - /// Button21 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button Button21; - - /// - /// Button3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button Button3; - - /// - /// btnHSSE 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnHSSE; - - /// - /// btnJDGL 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnJDGL; - - /// - /// btnHJGL 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnHJGL; - - /// - /// btnCLGL 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnCLGL; - - /// - /// btnTestRun 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnTestRun; - - /// - /// btnPGJSX 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnPGJSX; - - /// - /// btnDigitalSite 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnDigitalSite; - - /// - /// btnPDigData 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnPDigData; - - /// - /// btnOpinion 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnOpinion; - - /// - /// btnDoc 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnDoc; - - /// - /// btnPZHGL 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnPZHGL; - /// /// drpProject 控件。 /// @@ -186,31 +69,13 @@ namespace FineUIPro.Web protected global::FineUIPro.DropDownList drpProject; /// - /// btnWeather 控件。 + /// Button21 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Button btnWeather; - - /// - /// Button19 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button Button19; - - /// - /// btnMessage 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnMessage; + protected global::FineUIPro.Button Button21; /// /// btnPersonal 控件。 @@ -445,5 +310,131 @@ namespace FineUIPro.Web /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.XmlDataSource XmlDataSource1; + + /// + /// ProjectZJ 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button ProjectZJ; + + /// + /// ProjectTG 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button ProjectTG; + + /// + /// ProjectJG 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button ProjectJG; + + /// + /// btnCQMS 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnCQMS; + + /// + /// btnHSSE 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnHSSE; + + /// + /// btnJDGL 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnJDGL; + + /// + /// btnHJGL 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnHJGL; + + /// + /// btnCLGL 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnCLGL; + + /// + /// btnTestRun 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnTestRun; + + /// + /// btnPGJSX 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPGJSX; + + /// + /// btnDigitalSite 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDigitalSite; + + /// + /// btnPDigData 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPDigData; + + /// + /// btnOpinion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOpinion; + + /// + /// btnDoc 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDoc; } }