2安全生产看板补充在岗人数

This commit is contained in:
夏菊 2025-04-23 11:05:07 +08:00
parent 9047627ae1
commit e84ccc038a
6 changed files with 401 additions and 376 deletions

View File

@ -1356,4 +1356,8 @@
<value>Completion status of engineering quantity</value> <value>Completion status of engineering quantity</value>
<comment>工程量完成情况</comment> <comment>工程量完成情况</comment>
</data> </data>
<data name="main_new0_ProjectNum_OnDuty" xml:space="preserve">
<value>OnDuty</value>
<comment>在岗人数</comment>
</data>
</root> </root>

View File

@ -1200,4 +1200,7 @@
<data name="mainProject2_QuantityDone" xml:space="preserve"> <data name="mainProject2_QuantityDone" xml:space="preserve">
<value>工程量完成情况</value> <value>工程量完成情况</value>
</data> </data>
<data name="main_new0_ProjectNum_OnDuty" xml:space="preserve">
<value>在岗人数</value>
</data>
</root> </root>

View File

@ -1197,4 +1197,7 @@
<data name="mainProject2_QuantityDone" xml:space="preserve"> <data name="mainProject2_QuantityDone" xml:space="preserve">
<value>工程量完成情况</value> <value>工程量完成情况</value>
</data> </data>
<data name="main_new0_ProjectNum_OnDuty" xml:space="preserve">
<value>在岗人数</value>
</data>
</root> </root>

View File

@ -13,13 +13,13 @@ namespace Resources {
/// <summary> /// <summary>
/// 强类型资源类,用于查找本地化字符串等。 /// 一个强类型资源类,用于查找本地化字符串等。
/// </summary> /// </summary>
// 此类是由 StronglyTypedResourceBuilder // 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或除成员,请编辑 .ResX 文件,然后重新运行 ResGen // 若要添加或除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 Visual Studio 项目。 // (以 /str 作为命令选项),或重新生成 Visual Studio 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Web.Application.StronglyTypedResourceProxyBuilder", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Web.Application.StronglyTypedResourceProxyBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Lan { internal class Lan {
@ -33,7 +33,7 @@ namespace Resources {
} }
/// <summary> /// <summary>
/// 返回此类使用的缓存 ResourceManager 实例。 /// 返回此类使用的缓存 ResourceManager 实例。
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager { internal static global::System.Resources.ResourceManager ResourceManager {
@ -47,8 +47,8 @@ namespace Resources {
} }
/// <summary> /// <summary>
/// 覆盖当前线程的 CurrentUICulture 属性 /// 重写当前线程的 CurrentUICulture 属性,对
/// 使用此强类型资源类的资源查找。 /// 使用此强类型资源类的所有资源查找执行重写
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture { internal static global::System.Globalization.CultureInfo Culture {
@ -1689,6 +1689,15 @@ namespace Resources {
} }
} }
/// <summary>
/// 查找类似 在岗人数 的本地化字符串。
/// </summary>
internal static string main_new0_ProjectNum_OnDuty {
get {
return ResourceManager.GetString("main_new0_ProjectNum_OnDuty", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 参建人数 的本地化字符串。 /// 查找类似 参建人数 的本地化字符串。
/// </summary> /// </summary>

View File

@ -90,7 +90,7 @@
</div> </div>
<div class="y_rs_box y_column"> <div class="y_rs_box y_column">
<div class="y_rs_number" id="div_xmcjrs" runat="server">0</div> <div class="y_rs_number" id="div_xmcjrs" runat="server">0</div>
<div class="y_rs_text"><asp:Literal runat="server" Text="<%$ Resources:Lan,main_new0_ProjectNum_Participants%>"/></div> <div class="y_rs_text"><asp:Literal runat="server" Text="<%$ Resources:Lan,main_new0_ProjectNum_OnDuty%>"/></div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -78,13 +78,15 @@ namespace FineUIPro.Web.common
where y.IsHsse == true && x.IsUsed == true where y.IsHsse == true && x.IsUsed == true
select x).Count().ToString(); select x).Count().ToString();
div_qyzbzzrs1.InnerHtml = div_xmzzrs.InnerHtml; div_qyzbzzrs1.InnerHtml = div_xmzzrs.InnerHtml;
//项目参建 //企业总部参建人数
div_xmcjrs.InnerHtml = (from x in db.SitePerson_Person div_qyzbcjrs.InnerHtml = (from x in db.SitePerson_Person
where x.IsUsed == true where x.IsUsed == true
select x).Count().ToString(); select x).Count().ToString();
//项目在岗人数
div_xmcjrs.InnerHtml = (from x in db.SitePerson_Person
where x.IsUsed == true && x.InTime <= DateTime.Now && (!x.OutTime.HasValue || x.OutTime.Value > DateTime.Now)
select x).Count().ToString();
//企业总部参建人数
div_qyzbcjrs.InnerHtml = div_xmcjrs.InnerHtml;
//注安师 //注安师
var ZasSql = @"SELECT Person.ProjectId,Project.ProjectCode,Project.ProjectName,Unit.UnitId,Unit.UnitId,Unit.UnitName, var ZasSql = @"SELECT Person.ProjectId,Project.ProjectCode,Project.ProjectName,Unit.UnitId,Unit.UnitId,Unit.UnitName,
Person.PersonName,Person.PersonId,Person.IdentityCard,Person.Sex,Person.WorkPostId,WorkPost.WorkPostName,Person.Telephone Person.PersonName,Person.PersonId,Person.IdentityCard,Person.Sex,Person.WorkPostId,WorkPost.WorkPostName,Person.Telephone
@ -115,12 +117,17 @@ namespace FineUIPro.Web.common
where y.IsHsse == true && x.IsUsed == true where y.IsHsse == true && x.IsUsed == true
&& pids.Contains(x.ProjectId) && pids.Contains(x.ProjectId)
select x).Count().ToString(); select x).Count().ToString();
//项目参建 //项目参建人数
div_xmcjrs.InnerHtml = (from x in db.SitePerson_Person div_qyzbcjrs.InnerHtml = (from x in db.SitePerson_Person
where x.IsUsed == true where x.IsUsed == true
&& pids.Contains(x.ProjectId) && pids.Contains(x.ProjectId)
select x).Count().ToString(); select x).Count().ToString();
//项目在岗人数
div_xmcjrs.InnerHtml = (from x in db.SitePerson_Person
where x.IsUsed == true && pids.Contains(x.ProjectId) && x.InTime <= DateTime.Now && (!x.OutTime.HasValue || x.OutTime.Value > DateTime.Now)
select x).Count().ToString();
string s1 = string.Format("'{0}'", String.Join(",", pids).Replace(",", "','")); string s1 = string.Format("'{0}'", String.Join(",", pids).Replace(",", "','"));
//注安师 //注安师
@ -142,7 +149,6 @@ namespace FineUIPro.Web.common
div_qyzbrs1.InnerHtml = div_xmrs.InnerHtml; div_qyzbrs1.InnerHtml = div_xmrs.InnerHtml;
div_qyzbzzrs1.InnerHtml = div_xmzzrs.InnerHtml; div_qyzbzzrs1.InnerHtml = div_xmzzrs.InnerHtml;
div_qyzbcjrs.InnerHtml = div_xmcjrs.InnerHtml;
} }